@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;0,900;1,400&family=DM+Sans:opsz,wght@9..40,300;9..40,400;9..40,500;9..40,600&display=swap');

:root {
  --bg: #030c18;
  --surface: #0c1e32;
  --surface2: #0f2540;
  --text: #dde8f4;
  --muted: #8aa6c2;           /* bumped from #5d82a0 for AA contrast on dark */
  --muted-soft: #6e89a4;      /* slightly dimmer, still readable */
  --accent: #2dd4bf;
  --gold: #e8b84b;
  --danger: #f87171;
  --border: rgba(255,255,255,0.07);
  --radius: 12px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--text); font-family: 'DM Sans', sans-serif; overflow-x: hidden; }

/* Skip link for keyboard users */
.skip-link {
  position: absolute; top: -100px; left: 16px; z-index: 1000;
  background: var(--accent); color: #03192e; padding: 10px 16px;
  border-radius: 8px; font-weight: 600; text-decoration: none; font-size: 14px;
  transition: top 0.2s;
}
.skip-link:focus { top: 16px; }

/* Visible focus rings everywhere */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0;
  margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ── NAV ──────────────────────────────── */
#gc-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 22px 48px;
  display: flex; align-items: center; justify-content: space-between;
  transition: padding 0.45s cubic-bezier(0.4,0,0.2,1),
              background 0.45s cubic-bezier(0.4,0,0.2,1),
              border-color 0.45s cubic-bezier(0.4,0,0.2,1);
}
#gc-nav.scrolled {
  background: rgba(3,12,24,0.88);
  backdrop-filter: blur(24px) saturate(1.6);
  -webkit-backdrop-filter: blur(24px) saturate(1.6);
  border-bottom: 1px solid var(--border);
  padding: 14px 48px;
}
.nav-brand { display: flex; align-items: center; gap: 12px; cursor: pointer; text-decoration: none; background: none; border: none; padding: 0; }
.nav-mark {
  width: 38px; height: 38px; border-radius: 9px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--accent) 0%, #0891b2 100%);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; color: #03192e; font-size: 13px; letter-spacing: -0.5px;
}
.nav-brand-name { font-family: 'Playfair Display', serif; font-size: 15px; color: #fff; line-height: 1.2; text-align: left; }
.nav-brand-sub { font-size: 10px; color: var(--muted); font-weight: 400; letter-spacing: 0.5px; text-align: left; }
@media (max-width: 600px) { .nav-brand-sub { display: none; } .nav-brand-name { font-size: 13px; } }
.nav-links { display: flex; align-items: center; gap: 36px; list-style: none; }
.nav-links a {
  color: var(--text); font-size: 14px; font-weight: 500;
  text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px;
  cursor: pointer; transition: color 0.2s; letter-spacing: 0.2px;
  padding: 4px 2px;
}
.nav-links a:hover, .nav-links a.active, .nav-links a:focus-visible { color: var(--accent); }
.nav-actions { display: flex; align-items: center; gap: 10px; }

/* Hamburger */
.nav-toggle {
  display: none;
  background: transparent; border: 1px solid var(--border); border-radius: 8px;
  width: 42px; height: 42px; padding: 0; cursor: pointer;
  align-items: center; justify-content: center; color: var(--text);
  transition: border-color 0.2s, color 0.2s;
}
.nav-toggle:hover { border-color: rgba(45,212,191,0.4); color: var(--accent); }

/* ── BUTTONS ──────────────────────────── */
.btn {
  padding: 9px 20px; border-radius: 8px; font-size: 14px; font-weight: 500;
  cursor: pointer; border: none; transition: all 0.2s ease;
  font-family: 'DM Sans', sans-serif;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; white-space: nowrap;
}
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--border); }
.btn-ghost:hover { border-color: rgba(45,212,191,0.4); color: var(--accent); }
.btn-accent { background: var(--accent); color: #03192e; font-weight: 600; }
.btn-accent:hover { background: #20c5ad; transform: translateY(-1px); box-shadow: 0 8px 24px rgba(45,212,191,0.25); }
.btn-outline { background: transparent; color: var(--accent); border: 1px solid rgba(45,212,191,0.4); }
.btn-outline:hover { background: rgba(45,212,191,0.08); border-color: var(--accent); }
.btn-gold { background: var(--gold); color: #1a0a00; font-weight: 600; }
.btn-gold:hover { background: #d9a83a; }
.btn-lg { padding: 14px 32px; font-size: 16px; border-radius: 10px; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none !important; box-shadow: none !important; }

/* ── HERO ─────────────────────────────── */
#hero {
  position: relative; height: 100vh; min-height: 620px;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background: url('images/hero.jpg') center/cover no-repeat;
  transform: scale(1.15);
  will-change: transform;
}
.hero-vignette {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(3,12,24,0.30) 0%, rgba(3,12,24,0.60) 55%, #030c18 100%);
}
.hero-content { position: relative; z-index: 2; text-align: center; max-width: 840px; padding: 0 32px; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 24px;
  color: var(--accent); font-size: 11px; font-weight: 600; letter-spacing: 3px; text-transform: uppercase;
  opacity: 0; transform: translateY(14px);
  animation: fadeUp 0.8s cubic-bezier(0.4,0,0.2,1) forwards 0.3s;
}
.hero-eyebrow::before, .hero-eyebrow::after { content: ''; width: 22px; height: 1px; background: var(--accent); }
.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(52px, 8vw, 104px);
  font-weight: 700; line-height: 1.02; color: #fff; margin-bottom: 24px;
  opacity: 0; transform: translateY(24px);
  animation: fadeUp 0.95s cubic-bezier(0.4,0,0.2,1) forwards 0.5s;
}
.hero-sub {
  font-size: 18px; color: rgba(255,255,255,0.85); max-width: 520px;
  margin: 0 auto 44px; line-height: 1.75;
  opacity: 0; transform: translateY(14px);
  animation: fadeUp 0.8s cubic-bezier(0.4,0,0.2,1) forwards 0.75s;
}
.hero-actions {
  display: flex; gap: 14px; justify-content: center; flex-wrap: wrap;
  opacity: 0; transform: translateY(14px);
  animation: fadeUp 0.8s cubic-bezier(0.4,0,0.2,1) forwards 0.95s;
}
.hero-scroll {
  position: absolute; bottom: 36px; left: 50%; transform: translateX(-50%); z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: rgba(255,255,255,0.4); font-size: 10px; letter-spacing: 2.5px; text-transform: uppercase;
  animation: scrollBounce 2.5s ease-in-out infinite 1.5s;
}
.scroll-bar { width: 1px; height: 44px; background: linear-gradient(to bottom, rgba(255,255,255,0.4), transparent); }

@keyframes fadeUp { to { opacity: 1; transform: translateY(0); } }
@keyframes scrollBounce { 0%,100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(7px); } }

/* ── LAYOUT ───────────────────────────── */
.section { padding: 100px 48px; max-width: 1240px; margin: 0 auto; }
.section-eyebrow {
  display: flex; align-items: center; gap: 10px;
  color: var(--accent); font-size: 11px; font-weight: 600; letter-spacing: 3px; text-transform: uppercase; margin-bottom: 14px;
}
.section-eyebrow::before { content: ''; width: 18px; height: 1px; background: var(--accent); }
.section-title { font-family: 'Playfair Display', serif; font-size: clamp(30px, 4vw, 52px); font-weight: 700; color: #fff; line-height: 1.1; margin-bottom: 16px; }
.section-sub { color: var(--muted); font-size: 16px; line-height: 1.8; }
.divider { width: 48px; height: 2px; background: var(--accent); margin: 20px 0 40px; }

/* ── CARDS ────────────────────────────── */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease; }
.card:hover { transform: translateY(-4px); border-color: rgba(45,212,191,0.22); box-shadow: 0 24px 64px rgba(0,0,0,0.35); }
.card-pad { padding: 32px; }
.card-h3 { font-family: 'Playfair Display', serif; font-size: 22px; color: #fff; margin-bottom: 10px; line-height: 1.25; }
.card-p { color: var(--muted); line-height: 1.75; margin-bottom: 24px; font-size: 15px; }
.feat-title { font-weight: 600; color: #fff; margin-bottom: 4px; }
.feat-body { color: var(--muted); font-size: 14px; line-height: 1.65; }
.tile-icon {
  width: 48px; height: 48px; border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.tile-icon-accent { background: rgba(45,212,191,0.1); color: var(--accent); }
.tile-icon-gold   { background: rgba(232,184,75,0.12); color: var(--gold); }

/* ── GRID ─────────────────────────────── */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.grid-2-3 { display: grid; grid-template-columns: 1fr 1.4fr; gap: 48px; align-items: start; }

/* ── PAGE HEADER ──────────────────────── */
.page-header {
  padding: 160px 48px 80px;
  background: linear-gradient(to bottom, var(--surface2) 0%, var(--bg) 100%);
  position: relative; overflow: hidden;
}
.page-header::before {
  content: ''; position: absolute; top: -120px; left: -80px;
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(45,212,191,0.055) 0%, transparent 65%);
  pointer-events: none;
}
.page-header-inner { max-width: 1240px; margin: 0 auto; position: relative; }
.page-header-eyebrow { color: var(--accent); font-size: 11px; font-weight: 600; letter-spacing: 3px; text-transform: uppercase; margin-bottom: 14px; }
.page-header-title { font-family: 'Playfair Display', serif; font-size: clamp(36px, 5.5vw, 68px); font-weight: 700; color: #fff; margin-bottom: 14px; line-height: 1.05; }
.page-header-sub { color: var(--muted); font-size: 18px; max-width: 620px; line-height: 1.75; }

/* ── REVEAL ───────────────────────────── */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.65s ease, transform 0.65s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-d1 { transition-delay: 0.1s; }
.reveal-d2 { transition-delay: 0.2s; }
.reveal-d3 { transition-delay: 0.3s; }
.reveal-d4 { transition-delay: 0.4s; }

/* ── FORMS ────────────────────────────── */
.form-group { margin-bottom: 18px; }
.form-label { display: block; font-size: 11px; font-weight: 600; color: var(--muted); letter-spacing: 1px; text-transform: uppercase; margin-bottom: 8px; }
.form-input {
  width: 100%; background: rgba(255,255,255,0.04); border: 1px solid var(--border);
  border-radius: 8px; padding: 12px 16px; color: var(--text); font-size: 15px;
  font-family: 'DM Sans', sans-serif; transition: border-color 0.2s, background 0.2s; outline: none;
}
.form-input:focus { border-color: rgba(45,212,191,0.6); background: rgba(45,212,191,0.03); }
.form-input::placeholder { color: rgba(138,166,194,0.5); }
textarea.form-input { resize: vertical; min-height: 110px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-error { color: var(--danger); font-size: 13px; margin-top: 4px; min-height: 18px; }
.agree-list { color: var(--muted); font-size: 14px; line-height: 1.9; padding-left: 20px; margin: 0; }
.agree-box {
  background: rgba(45,212,191,0.05); border: 1px solid rgba(45,212,191,0.2);
  border-radius: 10px; padding: 16px; margin-bottom: 20px;
}

/* ── FEATURE LIST ─────────────────────── */
.feature-item { display: flex; align-items: flex-start; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--border); }
.feature-icon { width: 40px; height: 40px; flex-shrink: 0; background: rgba(45,212,191,0.1); border-radius: 8px; display: flex; align-items: center; justify-content: center; color: var(--accent); }

/* ── CONTACT ──────────────────────────── */
.contact-card { display: flex; align-items: flex-start; gap: 16px; padding: 20px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.contact-icon { width: 44px; height: 44px; flex-shrink: 0; background: rgba(45,212,191,0.1); border-radius: 10px; display: flex; align-items: center; justify-content: center; color: var(--accent); }

/* ── DOC ITEMS ────────────────────────── */
.doc-item-link { text-decoration: none; display: block; }
.doc-item {
  display: flex; align-items: center; gap: 16px;
  padding: 18px 20px; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius);
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
}
.doc-item-link:hover .doc-item,
.doc-item-link:focus-visible .doc-item {
  border-color: rgba(45,212,191,0.4); background: rgba(45,212,191,0.04); transform: translateX(4px);
}
.doc-size-pill {
  font-size: 11px; font-weight: 600; padding: 4px 10px;
  background: rgba(45,212,191,0.1); border-radius: 20px;
  color: var(--accent); white-space: nowrap;
}
/* Placeholder card for documents not yet posted */
.doc-item-static {
  display: flex; align-items: center; gap: 16px;
  padding: 18px 20px; background: rgba(255,255,255,0.015);
  border: 1px dashed rgba(255,255,255,0.10); border-radius: var(--radius);
}
.doc-item-static .feat-title { color: rgba(255,255,255,0.78); }
.doc-pending-pill {
  font-size: 11px; font-weight: 600; padding: 4px 10px;
  background: rgba(232,184,75,0.10); border: 1px solid rgba(232,184,75,0.22);
  border-radius: 20px; color: var(--gold); white-space: nowrap;
  letter-spacing: 0.3px;
}
/* Documents page group sections */
.doc-group { margin-bottom: 64px; }
.doc-group:last-of-type { margin-bottom: 48px; }
.doc-group-header { margin-bottom: 24px; }
.doc-group-header .divider { margin: 18px 0 18px; }
.doc-group-desc {
  color: var(--muted); font-size: 15px; line-height: 1.75;
  max-width: 680px;
}

/* ── ADMIN CONSOLE ──────────────────────── */
.admin-tabs {
  display: flex; gap: 4px; margin-bottom: 28px; border-bottom: 1px solid var(--border);
  overflow-x: auto; -webkit-overflow-scrolling: touch;
}
.admin-tab {
  background: transparent; border: none; color: var(--muted);
  padding: 12px 18px; font-size: 14px; font-weight: 500; cursor: pointer;
  font-family: inherit; border-bottom: 2px solid transparent; margin-bottom: -1px;
  transition: color 0.2s, border-color 0.2s; white-space: nowrap;
}
.admin-tab:hover { color: var(--text); }
.admin-tab.active { color: var(--accent); border-bottom-color: var(--accent); }

.adm-grid { display: grid; grid-template-columns: 380px 1fr; gap: 32px; align-items: start; }
@media (max-width: 960px) { .adm-grid { grid-template-columns: 1fr !important; } }

.adm-tag {
  display: inline-block; font-size: 11px; font-weight: 600;
  padding: 3px 9px; background: rgba(255,255,255,0.05);
  border: 1px solid var(--border); border-radius: 20px;
  color: var(--muted); white-space: nowrap;
}

.adm-table-wrap {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
}
.adm-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.adm-table thead th {
  text-align: left; padding: 12px 16px;
  background: rgba(255,255,255,0.02);
  border-bottom: 1px solid var(--border);
  font-size: 11px; font-weight: 600; letter-spacing: 1px;
  text-transform: uppercase; color: var(--muted);
}
.adm-table tbody td {
  padding: 14px 16px; border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.adm-table tbody tr:last-child td { border-bottom: none; }
.adm-table tbody tr:hover { background: rgba(45,212,191,0.03); }

.btn-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 6px;
  background: transparent; border: 1px solid var(--border);
  color: var(--muted); cursor: pointer; margin-left: 4px;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
  font-family: inherit; font-size: 13px;
}
.btn-icon:hover { border-color: rgba(45,212,191,0.4); color: var(--accent); }
.btn-icon-danger:hover { border-color: rgba(248,113,113,0.5); color: var(--danger); background: rgba(248,113,113,0.05); }

select.form-input {
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238aa6c2' stroke-width='2' stroke-linecap='round'><path d='M6 9l6 6 6-6'/></svg>");
  background-repeat: no-repeat; background-position: right 14px center;
  padding-right: 38px;
}
input[type="file"].form-input {
  padding: 10px 12px; font-size: 13px; color: var(--muted);
  cursor: pointer;
}
input[type="file"].form-input::file-selector-button {
  background: rgba(45,212,191,0.08); color: var(--accent);
  border: 1px solid rgba(45,212,191,0.3); border-radius: 6px;
  padding: 6px 12px; margin-right: 12px; font-size: 13px;
  font-family: inherit; cursor: pointer;
}

/* ── NAV: signed-in chip ──────────────────── */
.nav-user {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 8px 6px 14px; border-radius: 999px;
  background: rgba(45,212,191,0.08); border: 1px solid rgba(45,212,191,0.2);
  color: var(--accent); font-size: 13px; font-weight: 500;
  cursor: pointer; font-family: inherit;
}
.nav-user:hover { background: rgba(45,212,191,0.14); }
.nav-user .nav-user-dot {
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--accent); color: #03192e;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 11px;
}

/* ── BANNER ───────────────────────────── */
.banner { background: linear-gradient(135deg, rgba(45,212,191,0.09), rgba(8,145,178,0.05)); border: 1px solid rgba(45,212,191,0.16); border-radius: var(--radius); padding: 52px; }

/* ── AMENITY IMG ──────────────────────── */
.amenity-img { width: 100%; height: 260px; object-fit: cover; display: block; transition: transform 0.4s ease; }
.card:hover .amenity-img { transform: scale(1.03); }

/* ── FOOTER ───────────────────────────── */
footer { background: var(--surface); border-top: 1px solid var(--border); padding: 72px 48px 32px; }
.footer-inner { max-width: 1240px; margin: 0 auto; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 56px; margin-bottom: 48px; }
.footer-heading { font-size: 11px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; }
.footer-link {
  display: block; color: rgba(221,232,244,0.68); text-decoration: none;
  font-size: 14px; margin-bottom: 10px; cursor: pointer; transition: color 0.2s;
  background: none; border: none; padding: 0; text-align: left; font-family: inherit;
}
.footer-link:hover, .footer-link:focus-visible { color: var(--accent); }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 24px; display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--muted); }

/* ── SCROLLBAR ────────────────────────── */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: rgba(45,212,191,0.22); border-radius: 3px; }

/* ── RESPONSIVE ───────────────────────── */
@media (max-width: 900px) {
  #gc-nav, #gc-nav.scrolled { padding-left: 16px; padding-right: 16px; padding-top: 14px; padding-bottom: 14px; }
  .nav-brand-name { font-size: 14px; }
  .nav-brand-sub  { font-size: 9px; }
  .nav-mark { width: 34px; height: 34px; font-size: 12px; }

  .nav-links {
    position: fixed; top: 64px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(3,12,24,0.97);
    -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px);
    /* Borders + padding only when open so the closed state is invisible
       (this was the “black bar” showing across the top of the screen). */
    border-top: 0; border-bottom: 0;
    padding: 0 20px;
    max-height: 0; overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease, border-width 0.3s ease;
  }
  .nav-links.open {
    max-height: 420px; padding: 8px 20px 14px;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
  }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 14px 8px; font-size: 16px !important; border-bottom: 1px solid var(--border); min-height: 48px; }
  .nav-links li:last-child a { border-bottom: none; }
  .nav-toggle { display: inline-flex; }
  .btn-hide-sm { display: none !important; }

  /* Pay Dues nav button — tighter on mobile so the bar fits cleanly */
  #gc-nav .nav-actions .btn-accent { padding: 9px 16px; font-size: 13px; }
}
@media (max-width: 960px) {
  .grid-2, .grid-3, .grid-2-3 { grid-template-columns: 1fr !important; }
  .section, .page-header, footer { padding-left: 20px; padding-right: 20px; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .banner { padding: 36px 20px; }
  .card-pad { padding: 24px; }
  /* Larger tap targets for all buttons on touch devices */
  .btn { min-height: 44px; }
  .btn-lg { min-height: 52px; }
  .doc-item { padding: 16px; }
  .doc-item-link:hover .doc-item,
  .doc-item-link:focus-visible .doc-item { transform: none; }
  /* Disable card hover-lift on touch to avoid sticky :hover states */
  .card:hover { transform: none; box-shadow: none; }
  .card:hover .amenity-img { transform: none; }
  .amenity-img { height: 200px; }
  /* Cut hero parallax shimmer on small screens */
  #hero { min-height: 540px; height: 88vh; }
}
@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; gap: 6px; text-align: center; }
  .hero-actions { flex-direction: column; align-items: stretch; gap: 10px; }
  .hero-actions .btn { width: 100%; }
  .hero-sub { font-size: 16px; margin-bottom: 32px; padding: 0 8px; }
  .hero-content { padding: 0 20px; }
  .section { padding-top: 56px; padding-bottom: 56px; }
  .section-title { margin-bottom: 12px; }
  .page-header { padding-top: 120px; padding-bottom: 48px; }
  .page-header-sub { font-size: 16px; }
  .banner { padding: 32px 18px; }
  .card-pad { padding: 20px; }
  /* Doc download row: stack pill below text instead of crowding the row */
  .doc-item { gap: 12px; }
  .doc-size-pill { font-size: 10px; padding: 3px 8px; }
  /* PayPal block flex-wraps cleanly */
  #paypal-name { font-size: 14px !important; }
  /* Form inputs — 16px prevents iOS Safari auto-zoom on focus */
  .form-input { font-size: 16px; }
  textarea.form-input { min-height: 96px; }
  /* Page header eyebrow can wrap on narrow phones */
  .page-header-eyebrow { white-space: normal; line-height: 1.5; }
  .hero-scroll { display: none; }

  /* Mobile auth bar — show sign-in / create-account strip */
  #mobile-auth-bar {
    display: flex !important;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    z-index: 99;
    background: rgba(3, 12, 24, 0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--border);
    padding: 10px 16px 12px;
    padding-bottom: calc(10px + env(safe-area-inset-bottom));
    gap: 10px;
  }
  .mob-auth-btn {
    flex: 1;
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 13px 12px;
    border-radius: 10px;
    font-size: 14px; font-weight: 600;
    font-family: 'DM Sans', sans-serif;
    cursor: pointer; border: none;
    min-height: 48px;
    transition: all 0.18s ease;
  }
  .mob-auth-signin {
    background: transparent;
    color: var(--accent);
    border: 1.5px solid rgba(45,212,191,0.45) !important;
  }
  .mob-auth-signin:active { background: rgba(45,212,191,0.1); }
  .mob-auth-register {
    background: var(--accent);
    color: #03192e;
  }
  .mob-auth-register:active { background: #20c5ad; }
  .mob-auth-user {
    background: rgba(45,212,191,0.1);
    color: var(--accent);
    border: 1.5px solid rgba(45,212,191,0.3) !important;
    gap: 10px;
  }

  /* Push page content up so bottom bar doesn't hide it */
  #main { padding-bottom: 80px; }

  /* Admin users table — stack rows as cards on narrow phones */
  .adm-table thead { display: none; }
  .adm-table, .adm-table tbody, .adm-table tr, .adm-table td { display: block; width: 100%; }
  .adm-table tr { padding: 14px 16px; border-bottom: 1px solid var(--border); }
  .adm-table tr:last-child { border-bottom: none; }
  .adm-table td { padding: 3px 0; border: none; }
  .adm-table td:last-child { padding-top: 10px; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .hero-bg { transform: scale(1.15) !important; }
}
