/* ===================================================================
   OPULENCE — African Luxury Cultural Infrastructure
   Design system: obsidian black · antique gold · ivory
   =================================================================== */
:root {
  --black: #0b0b0c;
  --ink: #131316;
  --panel: #1a1a1e;
  --panel-2: #212127;
  --line: #2c2c33;
  --gold: #c5a35a;
  --gold-bright: #ddc07f;
  --gold-deep: #9c7f3f;
  --ivory: #f4f0e8;
  --ivory-dim: #cfc9bd;
  --muted: #8d8a83;
  --muted-2: #6c6a64;
  --success: #7fae8a;
  --danger: #c97a6d;
  --radius: 4px;
  --radius-lg: 8px;
  --maxw: 1180px;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --display: 'Playfair Display', Georgia, serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--black);
  color: var(--ivory);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

::selection { background: var(--gold); color: var(--black); }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }

.eyebrow {
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
}

.serif { font-family: var(--serif); }

h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.1; letter-spacing: -0.01em; }

.section-title { font-size: clamp(28px, 4vw, 46px); margin: 14px 0 0; }
.lede { color: var(--ivory-dim); font-size: 18px; max-width: 640px; margin-top: 18px; font-family: var(--serif); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--sans); font-size: 13px; font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 14px 28px; border-radius: var(--radius); cursor: pointer;
  border: 1px solid transparent; transition: all 0.25s ease; white-space: nowrap;
}
.btn-gold { background: var(--gold); color: var(--black); }
.btn-gold:hover { background: var(--gold-bright); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ivory); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-bright); }
.btn-block { width: 100%; justify-content: center; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 28px; backdrop-filter: blur(10px);
  background: rgba(11, 11, 12, 0.6); border-bottom: 1px solid transparent;
  transition: all 0.3s ease;
}
.nav.scrolled { background: rgba(11, 11, 12, 0.92); border-bottom-color: var(--line); padding: 14px 28px; }
.brand { font-family: var(--display); font-size: 22px; font-weight: 600; letter-spacing: 0.18em; }
.brand .dot { color: var(--gold); }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { font-size: 13px; letter-spacing: 0.04em; color: var(--ivory-dim); transition: color 0.2s; }
.nav-links a:hover { color: var(--gold-bright); }
.nav-cta { display: flex; gap: 12px; align-items: center; }
.nav-toggle { display: none; background: none; border: 0; color: var(--ivory); font-size: 24px; cursor: pointer; }

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: 100vh; display: flex; align-items: center;
  padding: 120px 0 80px;
  background:
    radial-gradient(900px 600px at 78% 12%, rgba(197, 163, 90, 0.14), transparent 60%),
    radial-gradient(700px 500px at 10% 90%, rgba(197, 163, 90, 0.06), transparent 60%),
    var(--black);
  overflow: hidden;
}
.hero::after {
  content: ''; position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60'%3E%3Cpath d='M0 0h60v60H0z' fill='none'/%3E%3Cpath d='M30 0v60M0 30h60' stroke='%23ffffff' stroke-opacity='0.018'/%3E%3C/svg%3E");
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 2; max-width: 900px; }
.hero h1 { font-size: clamp(44px, 7vw, 92px); letter-spacing: -0.02em; margin: 26px 0 0; }
.hero h1 .gold { color: var(--gold); font-style: italic; }
.hero p.sub { font-family: var(--serif); font-size: clamp(19px, 2.4vw, 26px); color: var(--ivory-dim); margin-top: 26px; max-width: 680px; }
.hero-actions { display: flex; gap: 16px; margin-top: 40px; flex-wrap: wrap; }
.hero-meta { display: flex; gap: 36px; margin-top: 56px; flex-wrap: wrap; }
.hero-meta .stat .n { font-family: var(--display); font-size: 34px; color: var(--ivory); }
.hero-meta .stat .l { font-size: 12px; color: var(--muted); letter-spacing: 0.05em; max-width: 180px; margin-top: 4px; }

/* ---------- generic section ---------- */
section.block { padding: 100px 0; border-top: 1px solid var(--line); }
section.block.alt { background: var(--ink); }
.section-head { margin-bottom: 56px; max-width: 720px; }

/* ---------- stat band ---------- */
.stat-band { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.stat-band .cell { background: var(--ink); padding: 38px 32px; }
.stat-band .cell .n { font-family: var(--display); font-size: clamp(36px, 5vw, 54px); color: var(--gold); }
.stat-band .cell .t { margin-top: 8px; color: var(--ivory-dim); font-size: 15px; }
.stat-band .cell .s { margin-top: 6px; color: var(--muted-2); font-size: 12px; letter-spacing: 0.04em; }

/* ---------- pillars ---------- */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pillar { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 36px 30px; transition: all 0.3s; }
.pillar:hover { border-color: var(--gold-deep); transform: translateY(-4px); }
.pillar .k { font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
.pillar h3 { font-size: 26px; margin: 14px 0 4px; }
.pillar .role { color: var(--gold); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; }
.pillar p { margin-top: 16px; color: var(--ivory-dim); font-size: 15px; }

/* ---------- service grid ---------- */
.cluster-label { font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold); margin: 40px 0 18px; }
.cluster-label:first-of-type { margin-top: 0; }
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.service-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px 26px; transition: all 0.3s; position: relative; overflow: hidden; }
.service-card:hover { border-color: var(--gold-deep); }
.service-card .num { position: absolute; top: 18px; right: 22px; font-family: var(--display); font-size: 40px; color: var(--panel-2); }
.service-card .ico { width: 44px; height: 44px; color: var(--gold); margin-bottom: 16px; }
.service-card h4 { font-family: var(--display); font-size: 22px; }
.service-card .tag { color: var(--gold-deep); font-size: 12px; letter-spacing: 0.06em; margin-top: 4px; }
.service-card p { color: var(--ivory-dim); font-size: 14px; margin-top: 12px; }

/* ---------- membership tiers ---------- */
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.tier {
  display: flex; flex-direction: column; background: var(--panel);
  border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 36px 30px; transition: all 0.3s;
}
.tier.featured { border-color: var(--gold); background: linear-gradient(180deg, rgba(197,163,90,0.08), var(--panel) 40%); transform: scale(1.03); box-shadow: var(--shadow); }
.tier:hover { border-color: var(--gold-deep); }
.tier .badge { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); }
.tier h3 { font-size: 30px; margin: 8px 0 16px; }
.tier .price { display: flex; align-items: baseline; gap: 8px; }
.tier .price .amt { font-family: var(--display); font-size: 44px; color: var(--ivory); }
.tier .price .per { color: var(--muted); font-size: 13px; }
.tier .model { margin-top: 16px; font-size: 13px; color: var(--gold-bright); letter-spacing: 0.04em; }
.tier .target { color: var(--muted); font-size: 13px; margin-bottom: 20px; }
.tier ul { list-style: none; margin: 20px 0; flex: 1; }
.tier ul li { position: relative; padding-left: 24px; margin: 12px 0; color: var(--ivory-dim); font-size: 14px; }
.tier ul li::before { content: ''; position: absolute; left: 0; top: 9px; width: 10px; height: 6px; border-left: 1.5px solid var(--gold); border-bottom: 1.5px solid var(--gold); transform: rotate(-45deg); }

/* ---------- afruence ---------- */
.afruence-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.afr-col { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 32px 28px; }
.afr-col h4 { font-family: var(--display); font-size: 24px; color: var(--gold-bright); }
.afr-col .note { color: var(--muted); font-size: 13px; margin: 6px 0 18px; font-style: italic; }
.afr-col ul { list-style: none; }
.afr-col ul li { padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 15px; color: var(--ivory-dim); font-family: var(--serif); }
.afr-col ul li:last-child { border-bottom: 0; }

/* ---------- cta band ---------- */
.cta-band { text-align: center; padding: 110px 0; background: radial-gradient(700px 400px at 50% 0%, rgba(197,163,90,0.12), transparent 60%), var(--ink); }
.cta-band h2 { font-size: clamp(32px, 5vw, 56px); }
.cta-band p { color: var(--ivory-dim); font-family: var(--serif); font-size: 20px; margin: 18px auto 36px; max-width: 560px; }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 56px 0 40px; background: var(--black); }
.footer .cols { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 32px; }
.footer .brand { font-size: 20px; }
.footer .tg { color: var(--muted); font-size: 13px; margin-top: 10px; max-width: 280px; }
.footer .fcol h5 { font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; }
.footer .fcol a, .footer .fcol p { display: block; color: var(--ivory-dim); font-size: 14px; margin: 8px 0; }
.footer .legal { margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted-2); font-size: 12px; line-height: 1.7; }

/* ---------- auth pages ---------- */
.auth-page { min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr; }
.auth-aside {
  position: relative; padding: 64px 56px; display: flex; flex-direction: column; justify-content: space-between;
  background: radial-gradient(600px 500px at 30% 20%, rgba(197,163,90,0.16), transparent 60%), var(--ink);
  border-right: 1px solid var(--line);
}
.auth-aside .brand { font-size: 24px; }
.auth-aside h2 { font-size: clamp(30px, 4vw, 46px); margin-top: auto; }
.auth-aside p { color: var(--ivory-dim); font-family: var(--serif); font-size: 19px; margin-top: 16px; max-width: 420px; }
.auth-aside .quote { margin-top: 28px; }
.auth-main { display: flex; align-items: center; justify-content: center; padding: 56px 40px; background: var(--black); overflow-y: auto; }
.auth-card { width: 100%; max-width: 460px; }
.auth-card h1 { font-size: 34px; }
.auth-card .sub { color: var(--muted); margin: 8px 0 32px; font-size: 15px; }

/* ---------- forms ---------- */
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ivory-dim); margin-bottom: 8px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 15px; background: var(--panel); color: var(--ivory);
  border: 1px solid var(--line); border-radius: var(--radius); font-family: var(--sans); font-size: 15px; transition: border-color 0.2s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); }
.field textarea { resize: vertical; min-height: 88px; }
.field .hint { color: var(--muted-2); font-size: 12px; margin-top: 6px; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* tier select cards (join) */
.tier-select { display: grid; gap: 12px; margin-bottom: 8px; }
.tier-opt { position: relative; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; cursor: pointer; transition: all 0.2s; display: flex; justify-content: space-between; align-items: center; background: var(--panel); }
.tier-opt:hover { border-color: var(--gold-deep); }
.tier-opt input { position: absolute; opacity: 0; }
.tier-opt.sel { border-color: var(--gold); background: linear-gradient(180deg, rgba(197,163,90,0.08), var(--panel)); }
.tier-opt .tn { font-family: var(--display); font-size: 19px; }
.tier-opt .tm { font-size: 12px; color: var(--muted); }
.tier-opt .tp { font-family: var(--display); font-size: 19px; color: var(--gold-bright); }

.form-msg { padding: 12px 15px; border-radius: var(--radius); font-size: 14px; margin-bottom: 18px; display: none; }
.form-msg.err { display: block; background: rgba(201,122,109,0.12); border: 1px solid var(--danger); color: #e3a99f; }
.form-msg.ok { display: block; background: rgba(127,174,138,0.12); border: 1px solid var(--success); color: #a8d0b1; }
.auth-foot { margin-top: 24px; color: var(--muted); font-size: 14px; text-align: center; }
.auth-foot a { color: var(--gold-bright); }

/* ---------- dashboard ---------- */
.dash-nav { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; justify-content: space-between; padding: 16px 28px; background: rgba(11,11,12,0.94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.dash-nav .right { display: flex; align-items: center; gap: 18px; }
.dash-nav .who { text-align: right; }
.dash-nav .who .nm { font-size: 14px; }
.dash-nav .who .rf { font-size: 11px; color: var(--muted); letter-spacing: 0.08em; }
.avatar { width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(135deg, var(--gold), var(--gold-deep)); color: var(--black); display: grid; place-items: center; font-family: var(--display); font-size: 17px; font-weight: 600; }

.dash { padding: 40px 0 80px; }
.dash-hero { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 36px; }
.dash-hero h1 { font-size: clamp(28px, 4vw, 40px); }
.dash-hero .greet { color: var(--gold); letter-spacing: 0.04em; }
.tier-chip { display: inline-flex; align-items: center; gap: 10px; padding: 10px 18px; border: 1px solid var(--gold-deep); border-radius: 40px; background: linear-gradient(180deg, rgba(197,163,90,0.1), transparent); }
.tier-chip .label { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.tier-chip .val { font-family: var(--display); font-size: 18px; color: var(--gold-bright); }

.dash-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; align-items: start; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; }
.card h2 { font-size: 22px; margin-bottom: 4px; }
.card .csub { color: var(--muted); font-size: 14px; margin-bottom: 22px; }

.svc-tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.svc-tile { text-align: left; background: var(--panel-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; cursor: pointer; transition: all 0.2s; color: var(--ivory); font-family: var(--sans); }
.svc-tile:hover { border-color: var(--gold); transform: translateY(-2px); }
.svc-tile .ico { width: 28px; height: 28px; color: var(--gold); margin-bottom: 10px; }
.svc-tile .nm { font-family: var(--display); font-size: 18px; }
.svc-tile .tl { font-size: 12px; color: var(--muted); margin-top: 2px; }

/* bookings list */
.bk { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; margin-bottom: 12px; transition: border-color 0.2s; }
.bk:hover { border-color: var(--gold-deep); }
.bk .top { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.bk .bt { font-family: var(--display); font-size: 17px; }
.bk .meta { color: var(--muted); font-size: 12.5px; margin-top: 4px; }
.bk .est { color: var(--gold-bright); font-size: 14px; margin-top: 8px; }
.status { font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; padding: 4px 10px; border-radius: 30px; white-space: nowrap; }
.status.requested { background: rgba(197,163,90,0.14); color: var(--gold-bright); }
.status.confirmed { background: rgba(127,174,138,0.14); color: #a8d0b1; }
.status.cancelled { background: rgba(201,122,109,0.14); color: #e3a99f; }
.bk-cancel { background: none; border: 0; color: var(--muted); font-size: 12px; cursor: pointer; margin-top: 10px; padding: 0; text-decoration: underline; }
.bk-cancel:hover { color: var(--danger); }
.empty { text-align: center; padding: 40px 20px; color: var(--muted); }
.empty .ico { width: 48px; height: 48px; color: var(--line); margin: 0 auto 14px; }

/* ---------- modal ---------- */
.modal-overlay { position: fixed; inset: 0; background: rgba(5,5,6,0.78); backdrop-filter: blur(4px); z-index: 200; display: none; align-items: flex-start; justify-content: center; overflow-y: auto; padding: 5vh 20px; }
.modal-overlay.open { display: flex; }
.modal { background: var(--ink); border: 1px solid var(--line); border-radius: var(--radius-lg); width: 100%; max-width: 540px; box-shadow: var(--shadow); animation: pop 0.25s ease; }
@keyframes pop { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.modal-head { display: flex; justify-content: space-between; align-items: flex-start; padding: 26px 28px 0; }
.modal-head .eyebrow { margin-bottom: 4px; }
.modal-head h3 { font-size: 26px; }
.modal-close { background: none; border: 0; color: var(--muted); font-size: 26px; cursor: pointer; line-height: 1; }
.modal-close:hover { color: var(--ivory); }
.modal-body { padding: 22px 28px 28px; }
.summary-line { display: flex; justify-content: space-between; padding: 12px 0; border-top: 1px solid var(--line); margin-top: 6px; }
.summary-line .lbl { color: var(--muted); font-size: 14px; }
.summary-line .v { font-family: var(--display); font-size: 20px; color: var(--gold-bright); }

/* ---------- admin console ---------- */
.admin-stats { display: flex; gap: 14px; flex-wrap: wrap; }
.admin-stats .s { border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 20px; background: var(--panel); text-align: center; }
.admin-stats .s .n { font-family: var(--display); font-size: 26px; color: var(--gold-bright); }
.admin-stats .s .l { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }

.table-wrap { overflow-x: auto; }
.adm-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.adm-table th { text-align: left; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); font-weight: 500; padding: 10px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.adm-table td { padding: 13px 14px; border-bottom: 1px solid var(--line); color: var(--ivory-dim); vertical-align: middle; }
.adm-table tr:hover td { background: var(--panel-2); }
.adm-table .mref { font-size: 12px; color: var(--muted); }
.adm-table .strong { color: var(--ivory); font-family: var(--display); font-size: 15px; }
.tier-pill { display: inline-block; font-size: 11px; letter-spacing: 0.06em; padding: 3px 10px; border-radius: 30px; border: 1px solid var(--gold-deep); color: var(--gold-bright); white-space: nowrap; }
.adm-select { background: var(--panel-2); color: var(--ivory); border: 1px solid var(--line); border-radius: var(--radius); padding: 7px 10px; font-family: var(--sans); font-size: 13px; cursor: pointer; }
.adm-select:focus { outline: none; border-color: var(--gold); }
.adm-filter { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.chip { font-size: 12px; letter-spacing: 0.04em; padding: 7px 14px; border-radius: 30px; border: 1px solid var(--line); background: var(--panel); color: var(--ivory-dim); cursor: pointer; transition: all 0.2s; text-transform: capitalize; }
.chip:hover { border-color: var(--gold-deep); }
.chip.active { border-color: var(--gold); color: var(--gold-bright); background: linear-gradient(180deg, rgba(197,163,90,0.1), var(--panel)); }
.status.in_progress { background: rgba(110,150,200,0.16); color: #a9c4e8; }
.status.completed { background: rgba(127,174,138,0.18); color: #a8d0b1; }

/* ---------- checkout ---------- */
.checkout-wrap { padding: 60px 28px 100px; max-width: 1100px; margin: 0 auto; }
.checkout-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 28px; align-items: start; }
.checkout-summary { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 36px 32px; position: sticky; top: 96px; }
.checkout-summary h1 { font-size: clamp(28px, 4vw, 38px); margin-top: 10px; }
.co-line-items { margin: 30px 0; padding: 22px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.co-line-items .row { display: flex; justify-content: space-between; padding: 10px 0; font-size: 14px; }
.co-line-items .row .l { color: var(--ivory-dim); }
.co-line-items .row .v { color: var(--ivory); font-family: var(--display); font-size: 16px; }
.co-total { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 26px; }
.co-total .lbl { color: var(--muted); letter-spacing: 0.06em; font-size: 12px; text-transform: uppercase; }
.co-total .amt { font-family: var(--display); font-size: 38px; color: var(--gold-bright); }
.trust-list { list-style: none; }
.trust-list li { position: relative; padding: 8px 0 8px 24px; color: var(--muted); font-size: 13px; border-bottom: 1px solid var(--line); }
.trust-list li:last-child { border-bottom: 0; }
.trust-list li::before { content: '✓'; position: absolute; left: 0; color: var(--gold); font-weight: bold; }
.provider-tag { margin-top: 22px; color: var(--muted-2); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; }
.checkout-form-wrap { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 40px 36px; }
.checkout-form-wrap h2 { font-size: 24px; margin-bottom: 20px; }

.card-row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; }
.card-row .field { margin-bottom: 18px; }
/* Billing cadence toggle */
.cadence { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 26px; }
.cadence label { position: relative; display: block; padding: 18px 20px; background: var(--panel-2); border: 1px solid var(--line); border-radius: var(--radius); cursor: pointer; transition: all 0.2s; }
.cadence label:hover { border-color: var(--gold-deep); }
.cadence input { position: absolute; opacity: 0; }
.cadence label.sel { border-color: var(--gold); background: linear-gradient(180deg, rgba(197,163,90,0.1), var(--panel-2)); }
.cadence .ct { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.cadence .cv { font-family: var(--display); font-size: 22px; color: var(--ivory); margin-top: 4px; }
.cadence .cn { font-size: 12px; color: var(--gold-bright); margin-top: 6px; }
.cadence label.sel .ct { color: var(--gold); }
.cadence .save-tag { position: absolute; top: -8px; right: 12px; background: var(--gold); color: var(--black); font-size: 9.5px; font-weight: 600; letter-spacing: 0.08em; padding: 3px 8px; border-radius: 30px; text-transform: uppercase; }

.schedule-box { background: var(--ink); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 18px; margin-bottom: 22px; font-size: 13px; color: var(--ivory-dim); }
.schedule-box .l { color: var(--muted); }
.schedule-box .row { display: flex; justify-content: space-between; padding: 4px 0; }
.schedule-box .v { color: var(--gold-bright); font-family: var(--display); font-size: 15px; }

.test-cards { background: var(--ink); border: 1px dashed var(--line); border-radius: var(--radius); padding: 14px 18px; margin-bottom: 22px; font-size: 12.5px; color: var(--muted); }
.test-cards strong { color: var(--gold-bright); }
.test-cards code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--panel-2); padding: 1px 6px; border-radius: 3px; color: var(--ivory-dim); }

.payment-result { text-align: center; padding: 20px 0; }
.payment-result .ico { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 18px; font-size: 38px; }
.payment-result.ok .ico { background: rgba(127,174,138,0.18); color: #a8d0b1; border: 1px solid var(--success); }
.payment-result.err .ico { background: rgba(201,122,109,0.18); color: #e3a99f; border: 1px solid var(--danger); }
.payment-result h3 { font-size: 26px; }
.payment-result p { color: var(--ivory-dim); margin: 12px 0 26px; }

/* ---------- activate banner + pay button ---------- */
.activate-banner { display: flex; gap: 22px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-bottom: 28px; padding: 22px 28px; border: 1px solid var(--gold-deep); border-radius: var(--radius-lg); background: linear-gradient(135deg, rgba(197,163,90,0.16), rgba(197,163,90,0.04)); }
.activate-banner .title { font-family: var(--display); font-size: 22px; color: var(--ivory); }
.activate-banner .sub { color: var(--ivory-dim); margin-top: 4px; font-size: 14px; }
.bk-pay { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; padding: 8px 16px; background: var(--gold); color: var(--black); border: 0; border-radius: var(--radius); cursor: pointer; margin-top: 10px; margin-right: 10px; font-family: var(--sans); font-weight: 500; }
.bk-pay:hover { background: var(--gold-bright); }
.pay-pill { font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; padding: 4px 10px; border-radius: 30px; margin-left: 8px; white-space: nowrap; }
.pay-pill.paid { background: rgba(127,174,138,0.18); color: #a8d0b1; }
.pay-pill.unpaid { background: rgba(197,163,90,0.16); color: var(--gold-bright); }

/* ---------- member-area page nav ---------- */
.nav-pages { display: flex; gap: 6px; flex: 1; justify-content: center; flex-wrap: wrap; }
.nav-pages a { font-size: 13px; letter-spacing: 0.05em; color: var(--ivory-dim); padding: 8px 16px; border-radius: 30px; border: 1px solid transparent; transition: all 0.2s; }
.nav-pages a:hover { color: var(--gold-bright); }
.nav-pages a.on { border-color: var(--gold-deep); color: var(--gold-bright); background: rgba(197,163,90,0.08); }

.page-head { margin: 36px 0 28px; display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; }
.page-head h1 { font-size: clamp(28px, 4vw, 40px); }

/* ---------- rides ---------- */
.rides-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 24px; align-items: start; }
.ride-types { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 20px; }
.ride-type { padding: 14px 16px; background: var(--panel-2); border: 1px solid var(--line); border-radius: var(--radius); cursor: pointer; transition: all 0.2s; text-align: left; color: var(--ivory); font-family: var(--sans); }
.ride-type:hover { border-color: var(--gold-deep); }
.ride-type.sel { border-color: var(--gold); background: linear-gradient(180deg, rgba(197,163,90,0.1), var(--panel-2)); }
.ride-type .t { font-family: var(--display); font-size: 16px; }
.ride-type .n { font-size: 11px; color: var(--muted); margin-top: 3px; }

.veh-list { display: flex; flex-direction: column; gap: 10px; margin: 18px 0; max-height: 380px; overflow-y: auto; }
.veh { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 16px; background: var(--panel-2); border: 1px solid var(--line); border-radius: var(--radius); cursor: pointer; transition: all 0.2s; }
.veh:hover { border-color: var(--gold-deep); }
.veh.sel { border-color: var(--gold); background: linear-gradient(90deg, rgba(197,163,90,0.1), var(--panel-2)); }
.veh.disabled { opacity: 0.35; cursor: not-allowed; }
.veh .vn { font-family: var(--display); font-size: 17px; }
.veh .vm { font-size: 12px; color: var(--muted); margin-top: 2px; }
.veh .vp { font-family: var(--display); font-size: 17px; color: var(--gold-bright); white-space: nowrap; }
.veh .vp small { display: block; font-family: var(--sans); font-size: 10.5px; color: var(--muted); text-align: right; }

/* live trip card */
.trip-route { display: flex; align-items: center; gap: 10px; margin: 6px 0 18px; }
.trip-route .dot-a, .trip-route .dot-b { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.trip-route .dot-a { background: var(--gold); }
.trip-route .dot-b { border: 2px solid var(--gold); }
.trip-route .line { flex: 1; height: 2px; background: var(--line); position: relative; border-radius: 2px; overflow: visible; }
.trip-route .line .fill { position: absolute; inset: 0; width: 0%; background: var(--gold); border-radius: 2px; transition: width 1s linear; }
.trip-route .line .car { position: absolute; top: -9px; left: 0%; transition: left 1s linear; color: var(--gold-bright); }
.trip-route .loc { font-size: 12.5px; color: var(--ivory-dim); max-width: 130px; }

.trip-steps { display: flex; flex-direction: column; gap: 0; margin: 16px 0; }
.trip-step { display: flex; gap: 14px; align-items: flex-start; padding: 8px 0; opacity: 0.35; }
.trip-step.done, .trip-step.now { opacity: 1; }
.trip-step .bullet { width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; font-size: 12px; color: var(--muted); flex: none; }
.trip-step.done .bullet { background: var(--gold); border-color: var(--gold); color: var(--black); }
.trip-step.now .bullet { border-color: var(--gold); color: var(--gold-bright); animation: pulse 1.6s infinite; }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(197,163,90,0.4); } 50% { box-shadow: 0 0 0 8px rgba(197,163,90,0); } }
.trip-step .lbl { font-size: 14px; color: var(--ivory-dim); padding-top: 3px; }
.trip-step.now .lbl { color: var(--ivory); }

.driver-card { display: flex; gap: 14px; align-items: center; padding: 16px; background: var(--panel-2); border: 1px solid var(--gold-deep); border-radius: var(--radius); margin: 14px 0; }
.driver-card .dn { font-family: var(--display); font-size: 18px; }
.driver-card .dm { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.driver-card .plate { margin-left: auto; font-family: ui-monospace, Menlo, monospace; background: var(--ink); border: 1px solid var(--line); padding: 6px 12px; border-radius: 4px; font-size: 13px; letter-spacing: 0.1em; color: var(--gold-bright); white-space: nowrap; }

.stars { display: inline-flex; gap: 6px; font-size: 26px; cursor: pointer; }
.stars span { color: var(--line); transition: color 0.15s; }
.stars span.on { color: var(--gold); }

.ride-hist { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; margin-bottom: 10px; }
.ride-hist .top { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }

/* ---------- stays marketplace ---------- */
.stay-filters { display: grid; grid-template-columns: 1.4fr 1fr 1fr 0.8fr 0.9fr auto; gap: 12px; align-items: end; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 20px; margin-bottom: 28px; }
.stay-filters .field { margin: 0; }
.stays-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.stay-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; cursor: pointer; transition: all 0.25s; }
.stay-card:hover { border-color: var(--gold-deep); transform: translateY(-3px); }
.stay-card .ph { height: 190px; background: var(--panel-2); position: relative; overflow: hidden; }
.stay-card .ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.stay-card .ib { position: absolute; top: 12px; left: 12px; background: rgba(11,11,12,0.8); border: 1px solid var(--gold-deep); color: var(--gold-bright); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; padding: 4px 10px; border-radius: 30px; backdrop-filter: blur(4px); }
.stay-card .bd { padding: 16px 18px 18px; }
.stay-card .ttl { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.stay-card h3 { font-size: 19px; }
.stay-card .rate { font-size: 13px; color: var(--gold-bright); white-space: nowrap; }
.stay-card .loc { color: var(--muted); font-size: 13px; margin-top: 3px; }
.stay-card .specs { color: var(--ivory-dim); font-size: 12.5px; margin-top: 8px; }
.stay-card .pr { margin-top: 10px; font-family: var(--display); font-size: 19px; color: var(--ivory); }
.stay-card .pr small { font-family: var(--sans); font-size: 12px; color: var(--muted); }

/* stay detail modal */
.modal.wide { max-width: 820px; }
.gallery { height: 280px; border-radius: var(--radius); overflow: hidden; margin-bottom: 18px; background: var(--panel-2); }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.amenities { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }
.amenities span { font-size: 12px; color: var(--ivory-dim); border: 1px solid var(--line); border-radius: 30px; padding: 5px 12px; }
.review { border-top: 1px solid var(--line); padding: 12px 0; font-size: 14px; color: var(--ivory-dim); }
.review .who { color: var(--gold-bright); font-size: 12.5px; margin-bottom: 4px; }
.book-box { background: var(--panel-2); border: 1px solid var(--gold-deep); border-radius: var(--radius); padding: 18px; margin-top: 16px; }

/* ---------- host console ---------- */
.host-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.prop-row { display: flex; gap: 14px; align-items: center; border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; margin-bottom: 10px; }
.prop-row .th { width: 84px; height: 60px; border-radius: 4px; overflow: hidden; background: var(--panel-2); flex: none; }
.prop-row .th img { width: 100%; height: 100%; object-fit: cover; }
.prop-row .pt { font-family: var(--display); font-size: 16px; }
.prop-row .pm { font-size: 12px; color: var(--muted); margin-top: 2px; }
.prop-row .actions { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.photo-drop { border: 1px dashed var(--gold-deep); border-radius: var(--radius); padding: 18px; text-align: center; color: var(--muted); font-size: 13px; cursor: pointer; transition: all 0.2s; }
.photo-drop:hover { background: rgba(197,163,90,0.06); }
.photo-previews { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.photo-previews img { width: 74px; height: 54px; object-fit: cover; border-radius: 4px; border: 1px solid var(--line); }
.req-row { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; margin-bottom: 10px; }
.req-row .actions { display: flex; gap: 10px; margin-top: 10px; }
.btn-sm { padding: 8px 16px; font-size: 11px; }

/* ---------- messages ---------- */
.msg-layout { display: grid; grid-template-columns: 320px 1fr; gap: 0; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; height: 64vh; min-height: 420px; background: var(--panel); }
.thread-list { border-right: 1px solid var(--line); overflow-y: auto; }
.thread-item { padding: 16px 18px; border-bottom: 1px solid var(--line); cursor: pointer; transition: background 0.15s; }
.thread-item:hover { background: var(--panel-2); }
.thread-item.sel { background: var(--panel-2); border-left: 3px solid var(--gold); padding-left: 15px; }
.thread-item .cn { font-family: var(--display); font-size: 16px; display: flex; justify-content: space-between; align-items: center; }
.thread-item .pt { font-size: 11.5px; color: var(--gold-deep); letter-spacing: 0.04em; margin-top: 2px; }
.thread-item .lm { font-size: 12.5px; color: var(--muted); margin-top: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.unread-dot { min-width: 20px; height: 20px; border-radius: 10px; background: var(--gold); color: var(--black); font-size: 11px; font-weight: 600; display: grid; place-items: center; padding: 0 6px; }
.chat { display: flex; flex-direction: column; }
.chat-head { padding: 14px 20px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; }
.chat-head .privacy { font-size: 11px; color: var(--muted-2); letter-spacing: 0.04em; }
.chat-body { flex: 1; overflow-y: auto; padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.bubble { max-width: 70%; padding: 10px 14px; border-radius: 12px; font-size: 14px; line-height: 1.5; }
.bubble.them { align-self: flex-start; background: var(--panel-2); border: 1px solid var(--line); color: var(--ivory-dim); border-bottom-left-radius: 3px; }
.bubble.me { align-self: flex-end; background: linear-gradient(135deg, var(--gold), var(--gold-deep)); color: var(--black); border-bottom-right-radius: 3px; }
.bubble .at { display: block; font-size: 10px; opacity: 0.65; margin-top: 4px; }
.chat-input { display: flex; gap: 10px; padding: 14px; border-top: 1px solid var(--line); }
.chat-input input { flex: 1; padding: 12px 15px; background: var(--panel-2); color: var(--ivory); border: 1px solid var(--line); border-radius: 30px; font-family: var(--sans); font-size: 14px; }
.chat-input input:focus { outline: none; border-color: var(--gold); }

@media (max-width: 900px) {
  .rides-grid, .host-grid { grid-template-columns: 1fr; }
  .stays-grid { grid-template-columns: 1fr; }
  .stay-filters { grid-template-columns: 1fr 1fr; }
  .ride-types { grid-template-columns: 1fr; }
  .msg-layout { grid-template-columns: 1fr; height: auto; }
  .thread-list { max-height: 200px; border-right: 0; border-bottom: 1px solid var(--line); }
  .nav-pages { display: none; }
}

/* ---------- PWA / standalone (installed desktop & iOS app) ---------- */
@media (display-mode: standalone) {
  .dash-nav, .nav { padding-top: calc(16px + env(safe-area-inset-top)); }
  body { padding-bottom: env(safe-area-inset-bottom); }
}
@supports (-webkit-touch-callout: none) {
  .auth-main, .dash { padding-bottom: calc(40px + env(safe-area-inset-bottom)); }
}

/* ---------- toast ---------- */
.toast { position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%) translateY(20px); background: var(--panel-2); border: 1px solid var(--gold-deep); color: var(--ivory); padding: 14px 24px; border-radius: var(--radius); font-size: 14px; z-index: 300; opacity: 0; transition: all 0.3s; box-shadow: var(--shadow); }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .stat-band, .pillars, .services, .tiers, .afruence-grid { grid-template-columns: 1fr; }
  .tier.featured { transform: none; }
  .dash-grid { grid-template-columns: 1fr; }
  .auth-page { grid-template-columns: 1fr; }
  .auth-aside { display: none; }
  .svc-tiles { grid-template-columns: 1fr; }
  .row-2 { grid-template-columns: 1fr; }
  .checkout-grid { grid-template-columns: 1fr; }
  .checkout-summary { position: static; }
  .card-row { grid-template-columns: 1fr; }
}
