/* ──────────────────────────────────────────────────────────────────────────
   Tanya · Founder Kendra VIP — 3D Obsidian & Champagne Gold (v3)
   Ported from Founder-Kendra-Vip-3d.html into the real Tanya surfaces.
   One centered 1200px container · zero overflow · dark autofill-safe inputs.
   ────────────────────────────────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,500;0,600;1,500;1,600&family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
  --bg: #080809;
  --bg-mid: #121214;
  --bg-warm: #24201a;
  --surface: #151517;
  --input-bg: #0f0f11;
  --input-border: #303033;
  --gold: #e8c86a;
  --gold-light: #ffe68f;
  --gold-deep: #d4af37;
  --gold-dark: #9a741e;
  --cream: #f5f0e6;
  --muted: #8a8a93;
  --line: rgba(232, 200, 106, 0.28);
  --hairline: rgba(232, 200, 106, 0.22);
  --hairline-soft: rgba(255, 255, 255, 0.07);
  --emerald: #34d399;
  --amber: #f2bc55;
  --danger: #f87171;
  --font-serif: "Playfair Display", Georgia, serif;
  --font-sans: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --shadow-card: 0 32px 80px rgba(0, 0, 0, 0.62), 0 0 0 1px rgba(232, 200, 106, 0.14), inset 0 1px rgba(255, 255, 255, 0.07);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--cream);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.6;
  overflow-x: clip;
  background: radial-gradient(circle at 50% 24%, var(--bg-warm) 0%, var(--bg-mid) 42%, var(--bg) 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}
img, svg, iframe, canvas, video { max-width: 100%; }
a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-light); }
::selection { background: rgba(232, 200, 106, 0.3); color: #fff; }
button { font-family: var(--font-sans); cursor: pointer; }

/* Chrome autofill — never paint a white box on a dark gate. */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active,
textarea:-webkit-autofill,
select:-webkit-autofill,
.code-wrap input:-webkit-autofill,
.code-wrap input:-webkit-autofill:hover,
.code-wrap input:-webkit-autofill:focus,
.code-wrap input:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 1000px #0f0f11 inset !important;
  box-shadow: 0 0 0 1000px #0f0f11 inset !important;
  -webkit-text-fill-color: #f5f0e6 !important;
  caret-color: #f5f0e6 !important;
  border-color: rgba(232, 200, 106, 0.45) !important;
  transition: background-color 99999s ease-in-out 0s !important;
}

/* ── fixed atmosphere ──────────────────────────────────────────────────── */
.bg-layer { position: fixed; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.gold-glow {
  position: absolute; width: 720px; height: 520px; left: 50%; top: 24%;
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse, rgba(232, 200, 106, 0.22), rgba(212, 175, 55, 0.07) 42%, transparent 70%);
  filter: blur(8px);
}
.streak { position: absolute; width: 1px; height: 70vh; background: linear-gradient(transparent, rgba(232, 200, 106, 0.16), transparent); transform: rotate(24deg); }
.streak-one { left: 18%; top: -10%; }
.streak-two { right: 16%; top: 8%; opacity: .7; }
.vignette { position: absolute; inset: 0; background: radial-gradient(ellipse at center, transparent 48%, rgba(0, 0, 0, 0.62) 100%); }
.particle {
  position: absolute; border-radius: 999px; background: #f4d67f;
  box-shadow: 0 0 12px 2px rgba(232, 200, 106, 0.65);
  animation: floatParticle 9s ease-in-out infinite alternate;
}
@keyframes floatParticle { from { transform: translate(0, 0); } to { transform: translate(14px, -34px); } }
body:not(.gated) .particle { opacity: .12 !important; }

/* ── single centered container ─────────────────────────────────────────── */
.shell { position: relative; z-index: 1; width: 100%; max-width: 1200px; margin: 0 auto; padding: 20px 24px 96px; }
body.gated .shell { max-width: none; padding: 0; }
body.gated .topbar { display: none; }

/* ── top navigation (authenticated) ────────────────────────────────────── */
.topbar {
  position: relative;
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center; gap: 14px;
  width: 100%; padding: 12px 16px; margin-bottom: 20px;
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.06), rgba(21, 21, 23, 0.96) 42%);
  border: 1px solid transparent; background-clip: padding-box;
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
}
.topbar::before, .card::before, .kpi::before, .lux-card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
  background: linear-gradient(135deg, rgba(255, 239, 178, 0.85), rgba(212, 175, 55, 0.22) 28%, rgba(255, 255, 255, 0.04) 58%, rgba(232, 200, 106, 0.55));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  pointer-events: none;
}
.card, .kpi, .lux-card { position: relative; }
.mini-logo {
  width: 42px; height: 42px; flex: 0 0 auto;
  display: grid; place-items: center;
  border: 1px solid rgba(232, 200, 106, 0.65); border-radius: 11px;
  background: rgba(232, 200, 106, 0.06);
  font-family: var(--font-serif); font-size: 17px; color: var(--gold);
  transform: rotate(-2deg);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.08);
}
/* The real Founder Kendra F, recolored gold from the master mark. */
.brand-f {
  display: block;
  width: 26px; height: 26px;
  background: url('/brand/f-emblem-gold.png') center / contain no-repeat;
}
.monogram .brand-f { width: 34px; height: 34px; }
.brand { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.brand h1, h1 {
  margin: 0; color: var(--cream);
  font-family: var(--font-serif); font-weight: 500;
  font-size: clamp(20px, 2.4vw, 27px); line-height: 1.12; letter-spacing: -0.01em;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.brand .sub, .sub { color: var(--muted); font-size: 11.5px; overflow: hidden; text-overflow: ellipsis; }
.sessionbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; min-width: 0; }
.status-pill {
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  padding: 7px 13px; border-radius: 999px;
  border: 1px solid var(--hairline-soft); background: rgba(15, 15, 17, 0.75);
  color: var(--cream); font-size: 11px; font-weight: 600; font-variant-numeric: tabular-nums;
}
.status-pill b { color: var(--cream); font-weight: 700; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--emerald); box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.5); animation: livePulse 2.6s ease-out infinite; }
@keyframes livePulse { 0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.45); } 70% { box-shadow: 0 0 0 7px rgba(52, 211, 153, 0); } 100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); } }
.session-badge, .chip, .chip2 {
  display: inline-flex; align-items: center; gap: 7px; white-space: nowrap;
  padding: 7px 13px; border-radius: 999px;
  border: 1px solid var(--hairline-soft); background: rgba(15, 15, 17, 0.75);
  color: #c9c9d1; font-size: 11px; font-weight: 600; font-variant-numeric: tabular-nums;
}
.session-badge b, .chip b { color: var(--gold); }
.chip button { border: 0; background: rgba(232, 200, 106, 0.12); color: var(--gold); border-radius: 999px; font-size: 10px; font-weight: 800; padding: 4px 9px; cursor: pointer; }
.chip a { color: var(--gold); font-size: 11px; font-weight: 700; }
#signOut, #adminSignOut, .sessionbar button, .icon-btn {
  border: 1px solid var(--line); background: rgba(15, 15, 17, 0.6); color: var(--gold);
  border-radius: 999px; padding: 7px 15px; font: 800 11px var(--font-sans);
  letter-spacing: .06em; transition: all .2s ease;
}
#signOut:hover, #adminSignOut:hover, .sessionbar button:hover, .icon-btn:hover { background: rgba(232, 200, 106, 0.09); color: var(--gold-light); }

/* ── login stage ───────────────────────────────────────────────────────── */
.auth-stage { display: none; }
body.gated .auth-stage {
  min-height: 100vh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 28px 24px;
}
.page-wrap { position: relative; z-index: 1; width: min(100%, 430px); }
.top-header { text-align: center; margin-bottom: 12px; }
.monogram {
  width: 52px; height: 52px; margin: 0 auto 14px;
  border: 1px solid var(--gold); border-radius: 14px;
  display: grid; place-items: center;
  background: linear-gradient(145deg, rgba(232, 200, 106, 0.14), rgba(232, 200, 106, 0.02));
  box-shadow: 0 0 28px rgba(232, 200, 106, 0.14), inset 0 1px rgba(255, 255, 255, 0.08);
  transform: rotate(-2deg);
}
.monogram span { font-family: var(--font-serif); color: var(--gold); font-size: 20px; letter-spacing: .08em; }
.top-header h1 { font-size: clamp(28px, 7vw, 36px); font-weight: 500; letter-spacing: .01em; white-space: normal; }
.top-header > p { margin: 9px 0 0 4px; color: var(--gold); font-size: 9px; font-weight: 700; letter-spacing: .42em; }
.header-rule { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 15px; color: var(--gold); font-size: 7px; }
.header-rule i { display: block; width: 42px; height: 1px; background: linear-gradient(90deg, transparent, rgba(232, 200, 106, 0.7)); }
.header-rule i:last-child { background: linear-gradient(90deg, rgba(232, 200, 106, 0.7), transparent); }

.stage { position: relative; padding-top: 26px; overflow: visible; width: 100%; }
.vip-orbit { position: absolute; top: 0; right: 8px; z-index: 3; }
.vip-badge {
  width: 68px; height: 68px; border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, #fff3b0, #e8c86a 42%, #9a741e);
  color: #171203;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  box-shadow: 0 10px 28px rgba(212, 175, 55, 0.45), inset 0 2px 3px rgba(255, 255, 255, 0.7);
  animation: vipSway 11s ease-in-out infinite alternate;
  font-weight: 800; font-size: 10px; letter-spacing: .14em;
}
.vip-badge svg { width: 20px; height: 20px; margin-bottom: 1px; }
@keyframes vipSway { from { transform: rotate(-7deg); } to { transform: rotate(7deg); } }

.tilt-zone { transition: transform .18s ease-out; will-change: transform; transform-style: preserve-3d; }
.lux-card {
  position: relative; overflow: hidden; border-radius: 24px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.06), rgba(21, 21, 23, 0.96) 42%);
  border: 1px solid transparent; background-clip: padding-box;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(232, 200, 106, 0.16), inset 0 1px rgba(255, 255, 255, 0.09);
}
.sheen {
  position: absolute; top: -40%; left: -70%; width: 45%; height: 160%;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.11), transparent);
  transform: rotate(12deg);
  animation: cardSheen 4.8s ease-in-out infinite;
  pointer-events: none; z-index: 1;
}
@keyframes cardSheen { 0%, 58% { left: -70%; } 88%, 100% { left: 130%; } }
.card-inner { position: relative; z-index: 2; padding: 26px 26px 20px; }
.card-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.waveform { display: flex; align-items: center; gap: 4px; height: 24px; }
.waveform span { width: 3px; border-radius: 3px; background: linear-gradient(var(--gold), #8e6f21); animation: wavePulse 1.1s ease-in-out infinite alternate; }
@keyframes wavePulse { from { transform: scaleY(.55); } to { transform: scaleY(1.15); } }
.verified-pill {
  margin: 18px auto 16px; width: fit-content; max-width: 100%;
  display: flex; align-items: center; gap: 6px;
  border: 1px solid rgba(232, 200, 106, 0.45); background: rgba(232, 200, 106, 0.07);
  border-radius: 999px; padding: 7px 11px;
  color: var(--gold); font-size: 8px; font-weight: 800; letter-spacing: .13em; text-align: center;
}
.dot { width: 6px; height: 6px; border-radius: 50%; background: #f3d67c; box-shadow: 0 0 0 4px rgba(232, 200, 106, 0.12); flex: 0 0 auto; }
.card-inner h2 {
  margin: 0; text-align: center;
  font-family: var(--font-serif); font-weight: 500;
  font-size: clamp(27px, 7.2vw, 33px); line-height: 1.12; letter-spacing: 0;
  color: var(--cream); white-space: normal;
}
.card-inner h2 em { color: var(--gold); font-weight: 600; font-style: italic; }
.subtitle { margin: 10px auto 18px; max-width: 320px; text-align: center; color: var(--muted); font-size: 13px; line-height: 1.6; }

.login-form label {
  display: block; margin: 0 0 8px;
  color: #b9b9c1; font-size: 9px; font-weight: 800; letter-spacing: .18em;
}
.login-form input {
  width: 100%; min-height: 48px; padding: 0 14px;
  border: 1px solid var(--input-border); border-radius: 10px;
  background: var(--input-bg); color: var(--cream); font-size: 14px; outline: none;
  transition: border .2s ease, box-shadow .2s ease;
}
.login-form input::placeholder { color: #67676f; }
.login-form input:focus, .login-form input.focused {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(232, 200, 106, 0.13), 0 0 22px rgba(232, 200, 106, 0.08);
}
.login-form > input { margin-bottom: 18px; }
.code-wrap {
  display: flex; align-items: center; overflow: hidden;
  border: 1px solid var(--input-border); border-radius: 10px; background: var(--input-bg);
  transition: border .2s ease, box-shadow .2s ease;
}
.code-wrap:focus-within { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(232, 200, 106, 0.13), 0 0 22px rgba(232, 200, 106, 0.08); }
.code-wrap input { border: 0; background: transparent; box-shadow: none !important; }
.show-btn {
  border: 0; background: transparent; color: var(--gold);
  display: flex; align-items: center; gap: 5px; white-space: nowrap;
  font-size: 10px; font-weight: 800; letter-spacing: .08em; padding: 0 14px 0 4px;
}
.gold-cta {
  width: 100%; min-height: 52px; margin-top: 20px;
  border: 0; border-radius: 12px;
  background: linear-gradient(180deg, #ffe68f, #e8c86a 52%, #bd9a2e);
  color: #151104;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 900; font-size: 12px; letter-spacing: .12em; text-transform: uppercase;
  box-shadow: 0 12px 28px rgba(212, 175, 55, 0.28), inset 0 1px rgba(255, 255, 255, 0.55);
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}
.gold-cta:hover { transform: translateY(-2px); filter: brightness(1.05); box-shadow: 0 16px 34px rgba(212, 175, 55, 0.36); }
.gold-cta:active { transform: translateY(1px); }
.gold-cta:disabled { opacity: .55; cursor: not-allowed; transform: none; }

.msg { margin: 12px 0 0; min-height: 18px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.msg.err { color: var(--danger); background: rgba(248, 113, 113, 0.06); border: 1px solid rgba(248, 113, 113, 0.18); border-radius: 9px; padding: 9px 11px; }
.msg.ok { color: var(--emerald); }

/* ── 2FA panels inside the gate ────────────────────────────────────────── */
.twofa-panel { margin-top: 4px; }
.twofa-panel label { display: block; margin: 14px 0 8px; color: #b9b9c1; font-size: 9px; font-weight: 800; letter-spacing: .18em; }
.twofa-panel input {
  width: 100%; min-height: 48px; padding: 0 14px;
  border: 1px solid var(--input-border); border-radius: 10px;
  background: var(--input-bg); color: var(--cream); font-size: 16px; letter-spacing: .18em; outline: none;
  font-variant-numeric: tabular-nums;
}
.twofa-panel input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(232, 200, 106, 0.13), 0 0 22px rgba(232, 200, 106, 0.08); }
.twofa-panel .gold-cta { margin-top: 16px; }
.qr-tile {
  width: fit-content; margin: 4px auto 12px; padding: 10px;
  border-radius: 14px; background: #ffffff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}
.qr-tile img { display: block; width: 180px; height: 180px; }
.manual-key {
  display: block; margin-top: 4px; padding: 9px 11px;
  border: 1px dashed rgba(232, 200, 106, 0.3); border-radius: 9px;
  background: rgba(15, 15, 17, 0.7); color: var(--gold-light);
  font: 700 12px/1.6 ui-monospace, Consolas, monospace; letter-spacing: .12em;
  word-break: break-all;
}
.twofa-hint { color: var(--muted); font-size: 11px; line-height: 1.6; text-align: center; }
.recovery-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 12px 0 4px; }
.recovery-code {
  padding: 9px 8px; text-align: center; border-radius: 9px;
  border: 1px solid rgba(232, 200, 106, 0.22); background: rgba(15, 15, 17, 0.75);
  color: var(--gold-light); font: 700 13px/1.4 ui-monospace, Consolas, monospace; letter-spacing: .12em;
}
.recovery-grid + button { margin-top: 10px; }

.card-footer { margin-top: 16px; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, 0.08); text-align: center; }
.card-footer > p { margin: 0 auto; max-width: 310px; color: var(--muted); font-size: 11px; line-height: 1.6; }
.whatsapp-link { display: inline-block; margin-top: 8px; color: var(--gold); font-size: 11px; font-weight: 800; }
.whatsapp-link:hover { text-decoration: underline; }
.progress-shimmer { height: 3px; margin: 8px 18px 0; border-radius: 999px; background: #242422; overflow: hidden; }
.progress-shimmer span { display: block; width: 42%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, transparent, var(--gold), transparent); animation: shimmerSweep 2.8s ease-in-out infinite; }
@keyframes shimmerSweep { from { transform: translateX(-110%); } to { transform: translateX(340%); } }
.bottom-copy { margin-top: 10px; display: flex; align-items: center; justify-content: center; gap: 7px; color: #6e6e76; font-size: 9px; letter-spacing: .14em; text-transform: uppercase; }
.bottom-copy b { color: var(--gold); }

/* admin gate extras */
.gsi-frame {
  position: relative; z-index: 3;
  display: flex; align-items: center; justify-content: center;
  width: 100%; margin-top: 4px; padding: 5px;
  border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.09);
  background: #0b0b0d; overflow: visible;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.04);
}
.gsi { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 40px; }
.gsi > div { width: 100% !important; display: flex; justify-content: center; }
.gsi iframe { border-radius: 999px !important; }
.guest-note { margin: 11px 0 7px; text-align: center; color: #a8a8b0; font-size: 11px; }
.trust-row { display: flex; align-items: center; justify-content: center; gap: 7px; margin-top: 12px; color: var(--gold); font-size: 10px; font-weight: 700; flex-wrap: wrap; }
.trust-row i { color: #555; font-style: normal; }
.trust-row svg { width: 12px; height: 12px; }
.cli-link {
  display: block; margin: 18px auto 0; padding: 0 0 2px;
  border: 0; border-bottom: 1px dotted rgba(138, 138, 147, 0.5); background: none;
  color: var(--muted); font: 800 9px var(--font-sans); letter-spacing: .16em; text-transform: uppercase; cursor: pointer;
}
.cli-link:hover { color: var(--gold); }
.cli-box { margin-top: 14px; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, 0.08); }
.cli-box .row { gap: 8px; }

/* ── app cards ─────────────────────────────────────────────────────────── */
.card {
  width: 100%; padding: 24px; margin-bottom: 16px;
  border-radius: 22px; border: 1px solid transparent; background-clip: padding-box;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.045), rgba(21, 21, 23, 0.94) 42%);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  animation: rise .45s cubic-bezier(.2, .8, .2, 1) both;
}
@keyframes rise { from { transform: translateY(7px); } to { transform: none; } }
.card h2, .card-title {
  margin: 0 0 6px; color: var(--cream);
  font-family: var(--font-serif); font-weight: 500;
  font-size: 22px; line-height: 1.2; letter-spacing: -0.01em;
}
.hint, .step-hint { margin: 0 0 16px; color: var(--muted); font-size: 12px; line-height: 1.65; }
.eyebrow, .reveallabel { margin-bottom: 8px; color: var(--gold); font-size: 9px; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; }
.muted { color: var(--muted); font-size: 12px; }

/* KPI strip */
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; width: 100%; margin-bottom: 16px; }
.kpi {
  min-width: 0; padding: 20px; border-radius: 20px;
  border: 1px solid transparent; background-clip: padding-box;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.05), rgba(21, 21, 23, 0.95) 42%);
  box-shadow: var(--shadow-card);
  animation: rise .45s cubic-bezier(.2, .8, .2, 1) both;
}
.kpi-label { color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
.kpi-value {
  margin-top: 8px; color: var(--gold);
  font-family: var(--font-serif); font-size: 34px; font-weight: 500; line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.kpi-value.kpi-small { font-size: 18px; font-family: var(--font-sans); font-weight: 700; color: var(--gold-light); letter-spacing: 0; }
.kpi-sub { margin-top: 4px; color: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; }

/* forms (app) */
label { display: block; margin: 14px 0 6px; color: #b9b9c1; font-size: 9px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
input, textarea, select {
  width: 100%; padding: 11px 13px;
  border: 1px solid var(--input-border); border-radius: 10px;
  background: var(--input-bg); color: var(--cream);
  font: 14px/1.5 var(--font-sans);
  transition: border .2s ease, box-shadow .2s ease;
}
input::placeholder, textarea::placeholder { color: #67676f; }
input:focus, textarea:focus, select:focus {
  outline: none; border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(232, 200, 106, 0.13), 0 0 22px rgba(232, 200, 106, 0.08);
}
select option { background: var(--surface); color: var(--cream); }
.row { display: flex; gap: 14px; flex-wrap: wrap; }
.row > div { flex: 1 1 170px; min-width: 0; }

/* buttons (app) */
.primary, button.primary, .btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; border-radius: 11px; padding: 11px 20px;
  background: linear-gradient(180deg, #ffe68f, #e8c86a 52%, #bd9a2e);
  color: #151104; font: 900 11.5px var(--font-sans); letter-spacing: .08em; text-transform: uppercase;
  box-shadow: 0 12px 28px rgba(212, 175, 55, 0.24), inset 0 1px rgba(255, 255, 255, 0.5);
  transition: transform .2s ease, filter .2s ease, box-shadow .2s ease;
}
.primary:hover, button.primary:hover, .btn:hover { transform: translateY(-1px); filter: brightness(1.05); box-shadow: 0 16px 34px rgba(212, 175, 55, 0.32); }
.primary:active, button.primary:active, .btn:active { transform: none; }
button:disabled, .primary:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.ghost, button.ghost { border: 1px solid var(--line); background: transparent; color: var(--gold); border-radius: 10px; padding: 9px 15px; font: 800 11px var(--font-sans); }
.ghost:hover { background: rgba(232, 200, 106, 0.07); }
.play, .reserve { border: 1px solid var(--line); background: rgba(232, 200, 106, 0.07); color: var(--gold); border-radius: 999px; font: 800 10px var(--font-sans); padding: 6px 12px; }
.del, button.del { border: 1px solid rgba(248, 113, 113, 0.28); background: rgba(248, 113, 113, 0.06); color: var(--danger); border-radius: 999px; font: 800 10px var(--font-sans); padding: 5px 11px; }

/* pill toggles */
.modes, .vibes, .pills, .carrier-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.modes button, .vibes button, .pills button, .carrier-tabs button {
  padding: 9px 17px; border-radius: 999px;
  border: 1px solid #2c2c2f; background: rgba(15, 15, 17, 0.7);
  color: #a8a8b0; font: 700 11.5px var(--font-sans);
  transition: all .2s ease;
}
.modes button:hover, .vibes button:hover, .pills button:hover, .carrier-tabs button:hover { color: var(--cream); border-color: rgba(232, 200, 106, 0.35); }
.modes button.on, .vibes button.on, .pills button.on, .carrier-tabs button.on {
  color: #171203; border-color: var(--gold);
  background: linear-gradient(180deg, #ffe68f, #e8c86a 55%, #c8a43c);
  box-shadow: 0 8px 20px rgba(232, 200, 106, 0.18);
}

/* chips / stats / meter / packs */
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin: 14px 0 0; }
.big { color: var(--gold); font: 500 32px/1.15 var(--font-serif); font-variant-numeric: tabular-nums; }
.stats { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 14px; }
.stat { flex: 1 1 140px; min-width: 0; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--hairline-soft); background: rgba(15, 15, 17, 0.55); }
.stat b { display: block; color: var(--cream); font-size: 22px; font-variant-numeric: tabular-nums; }
.stat span { color: var(--muted); font-size: 11px; }
.meter { height: 7px; margin: 14px 0 8px; border-radius: 999px; background: #242422; overflow: hidden; }
.meter > div { height: 100%; border-radius: 999px; background: linear-gradient(90deg, #9a741e, var(--gold), #ffe68f); }
.banner { margin-top: 14px; padding: 13px 15px; border-radius: 12px; border: 1px solid rgba(242, 188, 85, 0.28); background: rgba(242, 188, 85, 0.06); color: #efd3a2; font-size: 12px; }
.banner b { color: var(--amber); }
.packs { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.pack { flex: 1 1 150px; min-width: 0; text-align: left; padding: 14px 16px; border-radius: 13px; border: 1px solid var(--hairline-soft); background: rgba(15, 15, 17, 0.5); color: var(--cream); }
.pack:hover { border-color: var(--line); }
.pack b { display: block; color: var(--gold); font-size: 18px; font-variant-numeric: tabular-nums; }
.pack div { margin-top: 2px; color: var(--muted); font-size: 11px; }

/* lists / tables */
.viprow, .feedrow, .tenant, .leadev, .numrow {
  display: flex; align-items: center; gap: 12px; justify-content: space-between; min-width: 0;
  padding: 12px 15px; margin-bottom: 8px; border-radius: 13px;
  border: 1px solid var(--hairline-soft); background: rgba(15, 15, 17, 0.5);
}
.feedrow, .tenant { cursor: pointer; transition: border-color .2s ease, background .2s ease; }
.feedrow:hover, .tenant:hover { border-color: var(--line); background: rgba(232, 200, 106, 0.04); }
.tenant b, .leadev b, .feedrow b, .numrow b { color: var(--cream); font-size: 13px; }
.tenant .m, .leadev .m, .lbl { color: var(--muted); font-size: 11px; }
.badge {
  display: inline-flex; align-items: center; gap: 4px; white-space: nowrap;
  padding: 3px 9px; border-radius: 999px;
  border: 1px solid rgba(232, 200, 106, 0.22); background: rgba(232, 200, 106, 0.07);
  color: var(--gold); font-size: 9px; font-weight: 800; letter-spacing: .06em;
}
.badge.SPAM_DEFLECTED { border-color: rgba(248, 113, 113, 0.25); background: rgba(248, 113, 113, 0.07); color: var(--danger); }
.badge.LEAD_CAPTURED, .badge.META_REFERRAL_LEAD { border-color: rgba(52, 211, 153, 0.24); background: rgba(52, 211, 153, 0.07); color: var(--emerald); }
.badge.OFFLOADED_TO_WA { border-color: rgba(242, 188, 85, 0.25); background: rgba(242, 188, 85, 0.07); color: var(--amber); }
.badge.VIP_ALERT { border-color: rgba(255, 230, 143, 0.28); background: rgba(255, 230, 143, 0.07); color: var(--gold-light); }
.pulse { color: var(--gold); font-weight: 700; font-variant-numeric: tabular-nums; }
table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
th { padding: 8px; text-align: left; border-bottom: 1px solid rgba(255, 255, 255, 0.09); color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
td { padding: 11px 8px; border-bottom: 1px solid rgba(255, 255, 255, 0.05); color: #c9c9d1; vertical-align: middle; }
td b { color: var(--cream); }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
tr:hover td { background: rgba(232, 200, 106, 0.025); }
.pill { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 9px; font-weight: 800; letter-spacing: .06em; }
.pill.ACTIVE, .pill.NEW, .pill.TFA_ON { border: 1px solid rgba(52, 211, 153, 0.25); background: rgba(52, 211, 153, 0.08); color: var(--emerald); }
.pill.DISABLED, .pill.CONTACTED { border: 1px solid rgba(242, 188, 85, 0.25); background: rgba(242, 188, 85, 0.08); color: var(--amber); }
.pill.EXPIRED, .pill.REVOKED, .pill.CONVERTED { border: 1px solid rgba(248, 113, 113, 0.25); background: rgba(248, 113, 113, 0.08); color: var(--danger); }
.pill.TFA_OFF { border: 1px solid rgba(255, 255, 255, 0.09); background: rgba(255, 255, 255, 0.03); color: var(--muted); }
.access-tools { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin: 14px 0 4px; }
.access-tools input { flex: 1 1 260px; min-height: 40px; }
.access-tools .tabs { margin: 0; }
.ok { color: var(--emerald); font-weight: 800; } .warn { color: var(--amber); font-weight: 800; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 12px 0 14px; }
.tabs button { padding: 6px 11px; border-radius: 999px; border: 1px solid #2c2c2f; background: transparent; color: var(--muted); font: 800 9px var(--font-sans); letter-spacing: .06em; }
.tabs button.on { border-color: var(--gold); background: rgba(232, 200, 106, 0.08); color: var(--gold); }
.hidden { display: none !important; }

/* drawer */
.backdrop { position: fixed; inset: 0; z-index: 80; background: rgba(0, 0, 0, 0.72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); opacity: 0; pointer-events: none; transition: opacity .22s ease; }
.backdrop.open { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 90; width: min(520px, 94vw);
  display: flex; flex-direction: column;
  border-left: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(18, 18, 20, 0.97), rgba(8, 8, 9, 0.98));
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  box-shadow: -40px 0 120px rgba(0, 0, 0, 0.62);
  transform: translateX(102%); transition: transform .28s cubic-bezier(.2, .8, .2, 1);
}
.drawer.open { transform: none; }
.drawer header { padding: 22px 24px 12px; border-bottom: 1px solid rgba(255, 255, 255, 0.07); }
.drawer h2 { margin: 0; font-family: var(--font-serif); font-size: 24px; font-weight: 500; color: var(--cream); }
.drawer .body { padding: 18px 24px 40px; overflow-y: auto; }
.drawer .x { border: 1px solid rgba(255, 255, 255, 0.09); background: transparent; color: var(--muted); border-radius: 999px; padding: 6px 11px; }
.kv { display: flex; justify-content: space-between; gap: 14px; padding: 8px 0; border-bottom: 1px dashed rgba(255, 255, 255, 0.06); font-size: 12.5px; }
.kv span { color: var(--muted); } .kv b { color: var(--cream); text-align: right; font-variant-numeric: tabular-nums; }
.line { padding: 10px 13px; margin-bottom: 8px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, 0.07); background: rgba(15, 15, 17, 0.55); font-size: 12.5px; }
.line .at { display: block; margin-bottom: 4px; color: var(--gold); font-size: 9px; font-weight: 800; letter-spacing: .12em; }
.line.assistant { border-color: rgba(52, 211, 153, 0.2); }
.line.user { border-color: rgba(232, 200, 106, 0.2); }

/* onboarding */
.progress { display: flex; gap: 6px; margin: 4px 0 24px; }
.progress span { flex: 1; height: 3px; border-radius: 999px; background: #242422; }
.progress span.done { background: linear-gradient(90deg, #9a741e, var(--gold), #ffe68f); }
.voices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 12px; }
.voice { padding: 16px; border-radius: 15px; border: 1px solid rgba(255, 255, 255, 0.07); background: rgba(15, 15, 17, 0.5); cursor: pointer; transition: all .2s ease; }
.voice:hover { border-color: var(--line); }
.voice.selected { border-color: var(--gold); background: rgba(232, 200, 106, 0.06); box-shadow: 0 0 0 1px rgba(232, 200, 106, 0.22); }
.voice b { color: var(--cream); }
.pricing { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 14px; }
.pricing > div { flex: 1 1 150px; min-width: 0; padding: 16px; border-radius: 13px; border: 1px solid rgba(255, 255, 255, 0.07); background: rgba(15, 15, 17, 0.5); }
.pricing b { color: var(--gold); font-size: 19px; font-variant-numeric: tabular-nums; }
.pricing .rent { color: var(--muted); font-size: 11px; }
.city { color: var(--muted); font-size: 11px; }
.codeblock { padding: 16px; border-radius: 13px; border: 1px solid rgba(255, 255, 255, 0.07); background: rgba(8, 8, 9, 0.9); color: #ded8c4; font: 12px/1.8 ui-monospace, Consolas, monospace; white-space: pre-wrap; }
.check { margin-top: 14px; padding: 13px 15px; border-radius: 13px; border: 1px solid rgba(52, 211, 153, 0.24); background: rgba(52, 211, 153, 0.06); color: #c4e9da; font-size: 12px; }

/* admin */
.reveal { margin-top: 16px; padding: 16px 18px; border-radius: 15px; border: 1px solid rgba(232, 200, 106, 0.26); background: rgba(232, 200, 106, 0.05); }
.codebox { margin-top: 6px; color: var(--gold-light); font: 800 19px/1.7 var(--font-sans); letter-spacing: .12em; font-variant-numeric: tabular-nums; }
.walink { align-self: center; color: var(--gold); font-size: 12px; font-weight: 700; }
.rowact { display: flex; gap: 6px; flex-wrap: wrap; }
.rowact button { padding: 5px 9px; border-radius: 8px; border: 1px solid rgba(255, 255, 255, 0.08); background: transparent; color: #c9c9d1; font: 800 10px var(--font-sans); }
.rowact button:hover { border-color: var(--line); color: var(--gold); }
.rowact button.danger { color: var(--danger); border-color: rgba(248, 113, 113, 0.28); }
.sandboxout { margin-top: 12px; padding: 15px; border-radius: 13px; border: 1px solid rgba(255, 255, 255, 0.07); background: rgba(8, 8, 9, 0.85); color: #dce2ec; font-size: 12.5px; white-space: pre-wrap; }
.leak { margin-top: 10px; padding: 11px 13px; border-radius: 11px; border: 1px solid rgba(248, 113, 113, 0.28); background: rgba(248, 113, 113, 0.07); color: var(--danger); font-size: 12px; font-weight: 700; }
footer { margin-top: 32px; text-align: center; color: var(--muted); font-size: 10.5px; letter-spacing: .06em; }
footer a { color: var(--gold); }

/* ── responsive guards ─────────────────────────────────────────────────── */
@media (max-width: 980px) {
  .topbar { grid-template-columns: auto minmax(0, 1fr); }
  .sessionbar { grid-column: 1 / -1; justify-content: flex-start; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 480px) {
  .auth-stage { padding: 22px 12px 36px; }
  .page-wrap { width: min(100% - 24px, 430px); }
  .card-inner { padding: 28px 20px 22px; }
  .verified-pill { font-size: 7px; letter-spacing: .1em; padding: 7px 9px; }
  .vip-badge { width: 60px; height: 60px; }
  /* guard 1: the orbiting seal never touches the viewport edge or the card top */
  .vip-orbit { top: 2px; right: 6px; }
  .card-top { padding-right: 44px; }
  .subtitle { font-size: 12px; }
}
@media (max-width: 720px) {
  .shell { padding: 14px 16px 80px; }
  .brand h1, h1 { font-size: 21px; }
  .kpis { grid-template-columns: 1fr; }
  .voices { grid-template-columns: 1fr; }
  .row { flex-direction: column; gap: 4px; }
  .card { padding: 20px 18px; border-radius: 18px; }
  .card > table { display: block; overflow-x: auto; white-space: nowrap; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  html { scroll-behavior: auto; }
  .tilt-zone { transform: none !important; }
  .particle { display: none; }
}
