:root {
    --bg: #070B0F;
    --card: rgba(255, 255, 255, .06);
    --border: rgba(255, 255, 255, .10);
    --text: #EAF1F7;
    --muted: #9AA7B5;
    --green: #18B26B;
    --green2: #12A760;
    --glow: rgba(24, 178, 107, .35);
    --shadow: 0 18px 60px rgba(0, 0, 0, .55);
    --radius: 22px;
}

* { box-sizing: border-box }

body {
    margin: 0;
    font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial;
    background:
        radial-gradient(900px 450px at 15% 10%, rgba(24, 178, 107, .14), transparent 60%),
        radial-gradient(700px 420px at 90% 20%, rgba(24, 178, 107, .10), transparent 55%),
        radial-gradient(800px 500px at 55% 95%, rgba(24, 178, 107, .08), transparent 60%),
        var(--bg);
    color: var(--text);
}

a { color: inherit; text-decoration: none }

.container { width: min(1120px, 92vw); margin: 0 auto }

nav {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(14px);
    background: rgba(7, 11, 15, .55);
    border-bottom: 1px solid rgba(255, 255, 255, .06);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0
}

/* ===== Brand (supports logo version) ===== */
.brand-link { text-decoration: none; color: inherit; }

.brand {
    display: flex;
    gap: 12px;
    align-items: center;
    font-weight: 800;
    letter-spacing: .4px
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 18px var(--glow)
}

/* When you use logo markup, hide the dot */
.brand .dot { display: none; }

.brand-logo {
    width: 44px;
    height: 44px;
    object-fit: contain;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,.10);
    background: rgba(255,255,255,.04);
    padding: 6px;
    box-shadow: 0 10px 30px rgba(0,0,0,.35);
}

.brand-text { line-height: 1.05; }

.brand-name {
    font-weight: 900;
    letter-spacing: .5px;
    font-size: 14px;
}

.brand-tagline {
    margin-top: 3px;
    font-size: 12px;
    color: var(--muted);
    font-weight: 700;
}

.nav-links {
    display: flex;
    gap: 18px;
    align-items: center
}

.nav-links a {
    color: var(--muted);
    font-weight: 600
}

.nav-links a:hover { color: var(--text) }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 16px;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, .04);
    font-weight: 700;
}

.btn-primary {
    background: linear-gradient(180deg, var(--green), var(--green2));
    border: none;
    box-shadow: 0 10px 30px rgba(24, 178, 107, .22);
}

.btn-primary:hover { filter: brightness(1.05) }

.btn-outline:hover {
    border-color: rgba(24, 178, 107, .55);
    box-shadow: 0 0 0 4px rgba(24, 178, 107, .12)
}

.hero { padding: 70px 0 40px }

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    gap: 26px;
    align-items: center
}

.kicker {
    display: inline-flex;
    gap: 10px;
    align-items: center;
    color: var(--muted);
    font-weight: 700
}

h1 {
    font-size: clamp(34px, 4.3vw, 54px);
    line-height: 1.05;
    margin: 14px 0 14px
}

.sub {
    color: var(--muted);
    font-size: 16px;
    line-height: 1.6;
    max-width: 58ch
}

.badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 18px 0
}

.badge {
    border: 1px solid rgba(255, 255, 255, .08);
    background: rgba(255, 255, 255, .04);
    padding: 8px 10px;
    border-radius: 999px;
    color: var(--muted);
    font-weight: 700;
    font-size: 13px;
}

.card {
    border: 1px solid var(--border);
    background: linear-gradient(180deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .03));
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.hero-card { padding: 18px }

.grid4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin: 24px 0 0
}

.service {
    padding: 18px;
    transition: .2s
}

.service:hover {
    transform: translateY(-4px);
    border-color: rgba(24, 178, 107, .55);
    box-shadow: 0 22px 70px rgba(0, 0, 0, .65), 0 0 0 4px rgba(24, 178, 107, .12);
}

.service h3 { margin: 10px 0 8px }

.service p {
    margin: 0 0 12px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.55
}

.service ul {
    margin: 0;
    padding-left: 16px;
    color: var(--muted);
    font-weight: 600;
    font-size: 13px;
    line-height: 1.6
}

.section { padding: 46px 0 }

.section h2 {
    margin: 0 0 8px;
    font-size: 28px
}

.section .lead {
    color: var(--muted);
    margin: 0 0 18px;
    max-width: 70ch
}

.footer {
    padding: 32px 0;
    border-top: 1px solid rgba(255, 255, 255, .06);
    color: var(--muted)
}

.cols {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 18px
}

.small { font-size: 13px; line-height: 1.6 }

input,
select,
textarea {
    width: 100%;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, .10);
    background: rgba(0, 0, 0, .25);
    color: var(--text);
    outline: none;
}

label {
    display: block;
    margin: 12px 0 6px;
    color: var(--muted);
    font-weight: 700
}

.row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px
}

hr {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, .08);
    margin: 18px 0
}

.status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 999px;
    font-weight: 800;
    font-size: 12px;
    border: 1px solid rgba(255, 255, 255, .10);
    background: rgba(255, 255, 255, .04);
}

.status.good { border-color: rgba(24, 178, 107, .45) }

@media(max-width:980px) {
    .hero-grid { grid-template-columns: 1fr }
    .grid4 { grid-template-columns: 1fr 1fr }
    .cols { grid-template-columns: 1fr }
}

@media(max-width:560px) {
    .grid4 { grid-template-columns: 1fr }
    .row { grid-template-columns: 1fr }

    /* Brand small */
    .brand-logo { width: 40px; height: 40px; }
    .brand-tagline { display: none; }
}
/* =========================
   Mobile Premium Optimization
   ========================= */

/* General small-screen spacing */
@media (max-width: 720px) {
  .hero { padding: 46px 0 26px; }
  .section { padding: 30px 0; }

  h1 { font-size: clamp(30px, 7vw, 40px); }
  .sub { font-size: 15px; }
  .section h2 { font-size: 24px; }

  .card, .service { border-radius: 18px; }
  .service { padding: 16px; }

  .btn { padding: 12px 14px; border-radius: 14px; }
}

/* Navbar: compact + premium wrap */
@media (max-width: 820px) {
  .nav-inner {
    padding: 12px 0;
    gap: 12px;
    align-items: flex-start;
  }

  /* keep brand on top-left */
  .brand {
    min-width: 210px;
  }

  /* make links wrap nicely on smaller screens */
  .nav-links {
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
    row-gap: 10px;
  }

  .nav-links a {
    font-size: 13px;
  }

  /* WhatsApp button stays clear */
  .nav-links .btn {
    padding: 10px 12px;
    font-size: 13px;
    border-radius: 12px;
  }
}

/* Ultra small: show only important nav links */
@media (max-width: 560px) {
  /* Keep nav single-line feeling */
  .nav-inner { align-items: center; }

  /* Hide less critical links to avoid crowding */
  .nav-links a[href="/services.php"],
  .nav-links a[href="/projects.php"],
  .nav-links a[href="/contact.php"] {
    display: none;
  }

  /* Keep only Home + Service Center + WhatsApp */
  .nav-links a[href="/index.php"],
  .nav-links a[href="/service-center.php"],
  .nav-links .btn {
    display: inline-flex;
  }

  /* Make buttons full tap-friendly */
  .nav-links .btn {
    padding: 11px 14px;
    font-size: 13px;
  }

  /* Form inputs feel premium */
  input, select, textarea {
    padding: 13px 14px;
    border-radius: 14px;
    font-size: 16px; /* prevents iOS zoom */
  }

  label { font-size: 13px; }

  /* Cards spacing */
  .service p { font-size: 14px; }
  .small { font-size: 13px; }

  /* Badges wrap better */
  .badges { gap: 8px; }
  .badge { font-size: 12px; padding: 7px 10px; }
}

/* Contact/Service forms: make 2-column rows become 1-column earlier */
@media (max-width: 900px) {
  .row { grid-template-columns: 1fr; }
}

/* Improve image cards on phones */
@media (max-width: 560px) {
  .grid4 { grid-template-columns: 1fr; }
  img { max-width: 100%; height: auto; }
}

/* Make footer cleaner on phone */
@media (max-width: 560px) {
  .footer { padding: 22px 0; }
  .cols { gap: 14px; }
}
/* =========================
   Mobile Hamburger Menu
   ========================= */

/* Hamburger button */
.nav-toggle{
  display:none;
  width:44px;height:44px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
  color: var(--text);
  cursor:pointer;
  align-items:center;
  justify-content:center;
  font-weight:900;
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
}
.nav-toggle:hover{
  border-color: rgba(24,178,107,.55);
  box-shadow: 0 0 0 4px rgba(24,178,107,.12);
}

/* Dropdown container (mobile panel) */
.nav-mobile{
  display:none;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: calc(100% + 10px);
  width: min(1120px, 92vw);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 18px;
  background: rgba(7, 11, 15, .72);
  backdrop-filter: blur(14px);
  box-shadow: 0 25px 90px rgba(0,0,0,.70), 0 0 0 4px rgba(24,178,107,.10);
  padding: 12px;
  z-index: 60;
}

/* Show panel */
.nav-mobile.show{ display:block; }

/* Mobile links grid */
.nav-mobile .nav-mobile-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

/* Mobile link buttons */
.nav-mobile a{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
  color: var(--text);
  font-weight: 800;
  font-size: 13px;
}
.nav-mobile a:hover{
  border-color: rgba(24,178,107,.55);
  box-shadow: 0 0 0 4px rgba(24,178,107,.12);
}

/* Make WhatsApp button full width */
.nav-mobile .nav-mobile-actions{
  margin-top: 10px;
  display:grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
.nav-mobile .nav-mobile-actions .btn{
  width:100%;
}

/* Backdrop for clicking outside */
.nav-backdrop{
  display:none;
  position:fixed;
  inset:0;
  background: rgba(0,0,0,.40);
  backdrop-filter: blur(6px);
  z-index:55;
}
.nav-backdrop.show{ display:block; }

/* Enable hamburger on mobile, hide normal nav links */
@media (max-width: 760px){
  nav{ position: sticky; }
  .nav-inner{ position: relative; }

  .nav-links{ display:none; }
  .nav-toggle{ display:inline-flex; }

  /* Make brand + toggle align nicely */
  .nav-inner{
    align-items:center;
  }

  /* On very small screens use 1 column */
  .nav-mobile .nav-mobile-grid{
    grid-template-columns: 1fr;
  }
}
/* =========================
   PREMIUM HERO (index only)
   ========================= */

.hero-premium{
  position: relative;
  padding: 72px 0 44px;
  overflow: hidden;
}

.hero-premium-grid{
  position: relative;
  z-index: 2;
  align-items: start;
}

.hero-orbs{
  position:absolute; inset:-40px;
  background:
    radial-gradient(520px 320px at 14% 18%, rgba(24,178,107,.22), transparent 60%),
    radial-gradient(520px 360px at 88% 12%, rgba(24,178,107,.14), transparent 60%),
    radial-gradient(680px 420px at 55% 96%, rgba(24,178,107,.10), transparent 65%);
  filter: blur(0px);
  z-index: 0;
}

.hero-gridlines{
  position:absolute; inset:0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 56px 56px;
  opacity: .08;
  z-index: 1;
  mask-image: radial-gradient(circle at 35% 25%, rgba(0,0,0,.95), rgba(0,0,0,.35) 55%, transparent 78%);
}

.kicker-premium{
  gap: 12px;
  font-weight: 800;
}

.kicker-chip{
  margin-left: 10px;
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
  color: var(--muted);
}

.hero-title{
  font-size: clamp(38px, 4.7vw, 66px);
  line-height: 1.03;
  letter-spacing: -0.6px;
  margin: 16px 0 14px;
}

.hero-sub{
  max-width: 64ch;
}

.hero-badges .badge{
  background: rgba(255,255,255,.045);
  border-color: rgba(255,255,255,.10);
}

.hero-cta{
  display:flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.btn-lg{
  padding: 13px 18px;
  border-radius: 16px;
}

.hero-card-premium{
  padding: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,.04));
  border-color: rgba(255,255,255,.12);
}

.hero-card-head{
  display:flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
}

.hero-card-hint{
  font-size: 13px;
  color: var(--muted);
  font-weight: 700;
}

.hero-card-actions{
  display:flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-card-actions a{
  flex: 1;
  min-width: 170px;
}

.hero-card-divider{
  height: 1px;
  background: rgba(255,255,255,.10);
  margin: 14px 0;
}

.hero-card-meta{
  display:flex;
  flex-direction: column;
  gap: 6px;
  color: rgba(234,241,247,.92);
}

.hero-card-mini{
  display:flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.mini-pill{
  font-size: 12px;
  font-weight: 800;
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid rgba(24,178,107,.30);
  background: rgba(24,178,107,.10);
  color: rgba(234,241,247,.92);
}

.hero-stats{
  margin-top: 14px;
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.stat{
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.035);
  border-radius: 18px;
  padding: 12px 12px;
}

.stat-k{
  font-size: 12px;
  color: var(--muted);
  font-weight: 900;
  letter-spacing: .2px;
}

.stat-v{
  margin-top: 4px;
  font-size: 13px;
  font-weight: 900;
  color: rgba(234,241,247,.95);
}

/* MOBILE polish */
@media(max-width:980px){
  .hero-premium{ padding: 56px 0 36px; }
  .hero-stats{ grid-template-columns: 1fr; }
  .hero-card-actions a{ min-width: 0; }
}

@media(max-width:560px){
  .hero-title{ letter-spacing: -0.2px; }
  .kicker-chip{ display:none; }
  .hero-card-premium{ padding: 16px; }
}
/* =========================
   HERO PREMIUM POLISH v2
   (only affects the new hero)
   ========================= */

.hero-premium{
  padding: 78px 0 48px; /* a bit more breathing room */
}

/* Softer + more premium background */
.hero-orbs{
  background:
    radial-gradient(620px 380px at 12% 18%, rgba(24,178,107,.24), transparent 62%),
    radial-gradient(620px 420px at 88% 10%, rgba(24,178,107,.14), transparent 62%),
    radial-gradient(820px 520px at 55% 98%, rgba(24,178,107,.10), transparent 70%);
}

/* Reduce “template grid” feeling */
.hero-gridlines{
  opacity: .045;                 /* was .08 */
  background-size: 64px 64px;    /* bigger cells = calmer */
  mask-image: radial-gradient(circle at 35% 25%,
    rgba(0,0,0,.90),
    rgba(0,0,0,.30) 58%,
    transparent 82%);
}

/* Headline: slightly tighter & more premium */
.hero-title{
  letter-spacing: -0.9px;
  line-height: 1.01;
}

/* Sub text: slightly clearer */
.hero-sub{
  font-size: 16px;
  color: rgba(154,167,181,.95);
}

/* CTA buttons look more “pro” */
.btn-lg{
  padding: 14px 18px;
  border-radius: 16px;
  backdrop-filter: blur(10px);
}

/* Add spotlight behind card (premium depth) */
.hero-card-premium{
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg,
    rgba(255,255,255,.10),
    rgba(255,255,255,.045));
  box-shadow:
    0 26px 90px rgba(0,0,0,.62),
    0 0 0 1px rgba(255,255,255,.08) inset;
}

/* Card highlight layer */
.hero-card-premium::before{
  content:"";
  position:absolute;
  inset:-40%;
  background:
    radial-gradient(circle at 30% 20%,
      rgba(255,255,255,.18),
      transparent 40%),
    radial-gradient(circle at 70% 60%,
      rgba(24,178,107,.18),
      transparent 55%);
  filter: blur(10px);
  opacity: .75;
  pointer-events:none;
}

/* Card border glow */
.hero-card-premium::after{
  content:"";
  position:absolute;
  inset:0;
  border-radius: var(--radius);
  box-shadow: 0 0 0 1px rgba(24,178,107,.18) inset;
  pointer-events:none;
  opacity: .85;
}

/* Quick actions spacing */
.hero-card-actions{
  margin-top: 10px;
}

/* Make “mini pills” more refined */
.mini-pill{
  border-color: rgba(24,178,107,.25);
  background: rgba(24,178,107,.08);
  color: rgba(234,241,247,.92);
}

/* Badges look cleaner */
.hero-badges .badge{
  background: rgba(255,255,255,.04);
  border-color: rgba(255,255,255,.09);
}

/* Better layout balance on medium screens */
@media(max-width:1200px){
  .hero-premium{ padding: 60px 0 40px; }
}

/* Mobile: more premium breathing room */
@media(max-width:560px){
  .hero-premium{ padding: 46px 0 32px; }
  .hero-title{ letter-spacing: -0.4px; }
}

/* ===== HERO BACKGROUND (premium dots image) ===== */
.hero-premium{
  position: relative;
  overflow: hidden;
}

/* Background image layer */
.hero-premium::before{
  content:"";
  position:absolute;
  inset:0;
  background:
    radial-gradient(900px 520px at 15% 10%, rgba(24,178,107,.22), transparent 60%),
    radial-gradient(700px 420px at 90% 20%, rgba(24,178,107,.14), transparent 55%),
    url("/assets/img/hero-bg.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: saturate(1.08) contrast(1.08);
  transform: scale(1.03);
  opacity: .90;
  z-index: 0;
}

/* Dark overlay for readability */
.hero-premium::after{
  content:"";
  position:absolute;
  inset:0;
  background: linear-gradient(
    90deg,
    rgba(7,11,15,.88) 0%,
    rgba(7,11,15,.70) 45%,
    rgba(7,11,15,.55) 100%
  );
  z-index: 1;
}

/* Make hero content sit above background */
.hero-premium > .container,
.hero-premium .hero-gridlines,
.hero-premium .hero-orbs{
  position: relative;
  z-index: 2;
}

/* Optional: subtle motion (premium) */
@media (prefers-reduced-motion: no-preference){
  .hero-premium::before{
    animation: heroFloat 12s ease-in-out infinite;
  }
  @keyframes heroFloat{
    0%{ transform: scale(1.03) translateY(0px); }
    50%{ transform: scale(1.05) translateY(-10px); }
    100%{ transform: scale(1.03) translateY(0px); }
  }
}
/* =========================
   PREMIUM MODAL (Check Status)
   ========================= */
.no-scroll { overflow: hidden; }

.modal{
  position: fixed;
  inset: 0;
  display: none;
  z-index: 200;
}

.modal.show{ display: block; }

.modal-backdrop{
  position:absolute;
  inset:0;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(8px);
}

.modal-card{
  position: relative;
  width: min(560px, 92vw);
  margin: 10vh auto 0;
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,.12);
  background: linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,.04));
  box-shadow: 0 40px 140px rgba(0,0,0,.75);
  overflow: hidden;
  transform: translateY(12px) scale(.985);
  opacity: 0;
  animation: modalIn .18s ease-out forwards;
}

@keyframes modalIn{
  to{ transform: translateY(0) scale(1); opacity: 1; }
}

/* Light highlight */
.modal-card::before{
  content:"";
  position:absolute;
  inset:-40%;
  background:
    radial-gradient(circle at 30% 20%, rgba(255,255,255,.18), transparent 42%),
    radial-gradient(circle at 80% 60%, rgba(24,178,107,.20), transparent 55%);
  filter: blur(12px);
  opacity: .75;
  pointer-events:none;
}

.modal-head{
  position: relative;
  z-index: 2;
  display:flex;
  justify-content:space-between;
  gap:16px;
  padding: 18px 18px 10px;
}

.modal-kicker{
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .2px;
  color: rgba(154,167,181,.95);
}

.modal-title{
  margin: 6px 0 6px;
  font-size: 22px;
  letter-spacing: -.2px;
}

.modal-sub{
  margin: 0;
  color: var(--muted);
  font-weight: 700;
  font-size: 13px;
  line-height: 1.5;
}

.modal-x{
  position: relative;
  z-index: 2;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.05);
  color: var(--text);
  font-weight: 900;
  cursor: pointer;
}

.modal-x:hover{
  border-color: rgba(24,178,107,.55);
  box-shadow: 0 0 0 4px rgba(24,178,107,.12);
}

.modal-form{
  position: relative;
  z-index: 2;
  padding: 0 18px 18px;
}

.modal-actions{
  display:flex;
  gap: 10px;
  margin-top: 12px;
}

.modal-actions .btn{
  flex: 1;
}

.modal-hint{
  margin-top: 12px;
  font-size: 12px;
  color: rgba(154,167,181,.95);
  font-weight: 700;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,.08);
}

@media (max-width: 560px){
  .modal-card{ margin: 14vh auto 0; }
  .modal-title{ font-size: 20px; }
}

/* =====================================================
   Mobile-First Responsiveness Patch (2026-01-05)
   ===================================================== */

/* Media should never overflow */
img,
picture,
svg,
video,
canvas,
iframe {
  max-width: 100%;
  height: auto;
}

/* Long words/URLs should wrap instead of causing horizontal scroll */
* { overflow-wrap: anywhere; }

/* Comfortable tap targets & prevent iOS zoom on form focus */
@media (max-width: 760px){
  input, select, textarea, button { font-size: 16px; }
  .btn { min-height: 44px; }
}

/* Kill hard minimum widths that can cause overflow */
@media (max-width: 820px){
  .brand { min-width: 0; }
}

/* Hero actions: stack cleanly on phones */
@media (max-width: 560px){
  .hero-cta { gap: 10px; }
  .hero-cta .btn-lg { width: 100%; }

  .hero-card-actions { flex-direction: column; }
  .hero-card-actions .btn-lg,
  .hero-card-actions a,
  .hero-card-actions button { width: 100%; }
}

/* Responsive tables helper (wrap table inside .table-wrap) */
.table-wrap{
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 16px;
}

table{
  width: 100%;
  border-collapse: collapse;
}

table th,
table td{
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  text-align: left;
  vertical-align: top;
}

@media (max-width: 560px){
  table th,
  table td{ padding: 10px; font-size: 13px; }
}

/* Dense “meta rows” should stack on narrow screens */
@media (max-width: 560px){
  .meta-row{ flex-direction: column; align-items: flex-start; }
}

/* Admin responsiveness helpers */
.admin-topbar{
  display:flex;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
  align-items:center;
}
.admin-actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}
.admin-list-row{
  display:flex;
  justify-content:space-between;
  gap:12px;
  padding:10px 0;
  border-bottom:1px solid rgba(255,255,255,.06);
}
.admin-search{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  align-items:end;
}
.admin-search-field{ flex:1; min-width: 220px; }
.admin-search-btn{ min-width: 160px; }
@media (max-width: 560px){
  .admin-list-row{ flex-direction:column; }
  .admin-search-field{ min-width: 0; }
  .admin-search-btn{ width: 100%; min-width: 0; }
}

