@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@600;700;800&family=Inter:wght@400;500;600&display=swap');

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

:root {
  --bg: #F7F8FC;          /* surface */
  --panel: #FFFFFF;
  --panel-2: #F1F2F9;     /* inputs, subtle fills */
  --border: #E4E6F0;
  --text: #1F2937;        /* dark text */
  --muted: #6B7280;
  --primary: #5B5BD6;     /* brand purple */
  --primary-dark: #4747B8;
  --secondary: #8B5CF6;   /* vibrant accents */
  --accent: #FF7A59;      /* warm highlights */
  --gold: #F5B021;        /* premium */
  --danger: #E5484D;
  --shadow: 0 2px 10px rgba(31, 41, 55, 0.06);
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  min-height: 100vh;
}

h1, h2, h3, h4, .logo { font-family: 'Manrope', 'Inter', sans-serif; }
a { color: var(--primary); }

.btn {
  display: inline-block;
  background: var(--panel);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 18px;
  font-size: 15px;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
}
.btn:hover { border-color: var(--primary); color: var(--primary); }
.btn:disabled { opacity: 0.45; cursor: default; }
.btn:disabled:hover { border-color: var(--border); color: var(--text); }
.btn-primary { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); color: #fff; }
.btn-danger { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn-danger:hover { filter: brightness(0.92); color: #fff; }
.btn-gold { background: var(--gold); border-color: var(--gold); color: #3b2c00; }
.btn-gold:hover { filter: brightness(0.95); color: #3b2c00; }

input, select, textarea {
  background: var(--panel-2);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 15px;
  font-family: 'Inter', sans-serif;
  width: 100%;
}
input:focus, select:focus { outline: 2px solid var(--primary); outline-offset: -1px; }
label { display: block; margin: 12px 0 4px; color: var(--muted); font-size: 14px; font-weight: 500; }

/* ---------- header ---------- */
.topbar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 24px;
  background: var(--panel);
  border-bottom: 1px solid var(--border);
}
.topbar .logo {
  display: flex; align-items: center; gap: 9px;
  font-size: 20px; font-weight: 800; color: var(--text); text-decoration: none;
}
.topbar .logo img { width: 34px; height: 34px; }
.topbar .logo em { font-style: normal; color: var(--primary); }
.topbar nav { display: flex; gap: 4px; margin-left: 16px; }
.topbar nav a {
  color: var(--muted); text-decoration: none; font-size: 15px; font-weight: 500;
  padding: 8px 12px; border-radius: 8px;
}
.topbar nav a:hover, .topbar nav a.active { color: var(--primary); background: var(--panel-2); }
.topbar .spacer { flex: 1; }
.topbar .who { color: var(--muted); font-size: 14px; }
.badge {
  font-size: 12px; padding: 3px 9px; border-radius: 10px;
  background: var(--gold); color: #3b2c00; font-weight: 700;
}

/* ---------- landing ---------- */
.hero {
  max-width: 760px; margin: 0 auto; padding: 72px 24px 40px;
  text-align: center;
}
.hero h1 {
  font-size: 52px; font-weight: 800; line-height: 1.1; letter-spacing: -1px;
  margin-bottom: 18px;
}
.hero h1 .grad { color: var(--primary); }
.hero .sub { color: var(--muted); font-size: 19px; line-height: 1.5; margin-bottom: 26px; }
.hero-checks {
  display: flex; gap: 22px; justify-content: center; flex-wrap: wrap;
  margin-bottom: 34px; color: var(--muted); font-size: 15px; font-weight: 500;
}
.hero-checks span::before { content: '✓ '; color: var(--primary); font-weight: 700; }
.hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero-cta .btn { font-size: 17px; padding: 15px 34px; border-radius: 12px; }

/* ---------- split hero with visual ---------- */
.hero-split {
  display: grid; grid-template-columns: 1.05fr 0.95fr; align-items: center;
  gap: 48px; max-width: 1080px; margin: 0 auto; padding: 64px 24px 56px;
}
.hero-copy h1 {
  font-size: 50px; font-weight: 800; line-height: 1.08; letter-spacing: -1px;
  margin-bottom: 18px;
}
.hero-copy h1 .grad { color: var(--primary); }
.hero-copy .sub { color: var(--muted); font-size: 18px; line-height: 1.55; margin-bottom: 22px; max-width: 460px; }
.hero-copy .hero-checks { justify-content: flex-start; gap: 16px; margin-bottom: 28px; }
.hero-copy .hero-cta { justify-content: flex-start; }

.hero-visual { position: relative; padding: 0 0 44px 36px; }
.hero-visual::before {
  content: ''; position: absolute; inset: -8% -4% 4% -2%; z-index: 0;
  background: radial-gradient(closest-side, rgba(124, 92, 246, 0.16), transparent 72%);
}
.hv-card {
  position: relative; z-index: 1; overflow: hidden;
  border: 4px solid #fff; border-radius: 22px;
  box-shadow: 0 18px 44px rgba(31, 41, 55, 0.18);
  background: var(--panel-2);
}
.hv-card img { display: block; width: 100%; height: auto; }
.hv-main { width: 78%; margin-left: auto; }
.hv-small {
  position: absolute; z-index: 2; left: 0; bottom: 0; width: 38%;
  border-radius: 16px;
}
.hv-chip {
  position: absolute; top: 12px; left: 12px;
  background: rgba(255, 255, 255, 0.92); color: var(--text);
  font-size: 12px; font-weight: 600; padding: 5px 10px 5px 22px; border-radius: 999px;
}
.hv-chip::before {
  content: ''; position: absolute; left: 9px; top: 50%; transform: translateY(-50%);
  width: 8px; height: 8px; border-radius: 50%; background: #22C55E;
}
.hv-controls {
  position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 8px;
  background: rgba(31, 41, 55, 0.45); backdrop-filter: blur(6px);
  padding: 7px; border-radius: 999px;
}
.hv-controls span {
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  display: flex; align-items: center; justify-content: center; font-size: 15px;
}
.hv-controls .hv-end { background: var(--danger); color: #fff; font-weight: 700; }
.hv-badge {
  position: absolute; z-index: 3; width: 48px; height: 48px; border-radius: 14px;
  background: #fff; box-shadow: 0 8px 22px rgba(31, 41, 55, 0.16);
  display: flex; align-items: center; justify-content: center; font-size: 21px;
}
.hv-heart { top: -12px; right: -6px; transform: rotate(8deg); }
.hv-globe { top: 38%; left: 12px; transform: rotate(-8deg); }

@media (max-width: 900px) {
  .hero-split { grid-template-columns: 1fr; gap: 36px; text-align: center; padding-top: 44px; }
  .hero-copy h1 { font-size: 38px; }
  .hero-copy .sub { margin-left: auto; margin-right: auto; }
  .hero-copy .hero-checks, .hero-copy .hero-cta { justify-content: center; }
  .hero-visual { max-width: 430px; margin: 0 auto; }
}

.trust-row {
  display: flex; gap: 14px; justify-content: center; flex-wrap: wrap;
  padding: 26px 24px 64px;
}
.trust-row span {
  background: var(--panel); border: 1px solid var(--border); border-radius: 999px;
  padding: 9px 18px; font-size: 14px; font-weight: 500; color: var(--muted);
  box-shadow: var(--shadow);
}

.footer {
  border-top: 1px solid var(--border);
  padding: 22px 24px; text-align: center; color: var(--muted); font-size: 14px;
  background: var(--panel);
}
.footer a { color: var(--muted); margin: 0 10px; text-decoration: none; }
.footer a:hover { color: var(--primary); }

/* ---------- homepage sections ---------- */
.section { max-width: 1020px; margin: 0 auto; padding: 64px 24px; text-align: center; }
.section h2 { font-size: 32px; font-weight: 800; letter-spacing: -0.5px; margin-bottom: 10px; }
.section-sub { color: var(--muted); font-size: 17px; max-width: 620px; margin: 0 auto 36px; }
.section-alt {
  max-width: none;
  background: var(--panel);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.section-alt > * { max-width: 1020px; margin-left: auto; margin-right: auto; }

.feature-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px; text-align: left;
}
.feature-card {
  background: var(--panel); border: 1px solid var(--border); border-radius: 16px;
  padding: 26px; box-shadow: var(--shadow);
}
.feature-card .icon {
  width: 46px; height: 46px; border-radius: 12px;
  background: var(--panel-2); display: flex; align-items: center; justify-content: center;
  font-size: 22px; margin-bottom: 14px;
}
.feature-card h3 { margin-bottom: 6px; font-size: 18px; }
.feature-card p { color: var(--muted); font-size: 15px; line-height: 1.5; }

.steps-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}
.step { padding: 10px; }
.step-num {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--primary); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Manrope', sans-serif; font-weight: 800; font-size: 19px;
  margin: 0 auto 14px;
}
.step h3 { margin-bottom: 6px; }
.step p { color: var(--muted); font-size: 15px; }

.premium-band {
  display: flex; align-items: center; justify-content: space-between; gap: 22px;
  flex-wrap: wrap; text-align: left;
  background: var(--panel); border: 2px solid var(--gold); border-radius: 18px;
  padding: 30px 34px; box-shadow: var(--shadow);
}
.premium-band h2 { font-size: 26px; margin: 0; }
.premium-band .btn { white-space: nowrap; }

.faq-list { max-width: 720px; margin: 0 auto; text-align: left; }
.faq-list details {
  background: var(--bg); border: 1px solid var(--border); border-radius: 12px;
  padding: 16px 20px; margin-bottom: 10px;
}
.faq-list summary {
  cursor: pointer; font-weight: 600; font-size: 16px;
  list-style: none; position: relative; padding-right: 26px;
}
.faq-list summary::after {
  content: '+'; position: absolute; right: 0; top: 0;
  color: var(--primary); font-weight: 700; font-size: 20px; line-height: 1;
}
.faq-list details[open] summary::after { content: '–'; }
.faq-list details p { color: var(--muted); margin-top: 10px; line-height: 1.55; }

.cta-band {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  text-align: center; padding: 64px 24px; margin-top: 24px;
}
.cta-band h2 { color: #fff; font-size: 32px; margin-bottom: 22px; letter-spacing: -0.5px; }
.btn-on-dark { background: #fff; border-color: #fff; color: var(--primary); font-size: 17px; padding: 14px 32px; }
.btn-on-dark:hover { background: var(--panel-2); color: var(--primary-dark); }

/* ---------- auth card ---------- */
.auth-wrap { max-width: 420px; margin: 7vh auto; padding: 0 16px; }
.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 26px;
  box-shadow: var(--shadow);
}
.tabs { display: flex; gap: 8px; margin-bottom: 16px; }
.tabs button {
  flex: 1; padding: 10px; border-radius: 10px; border: 1px solid var(--border);
  background: var(--panel-2); color: var(--muted); cursor: pointer;
  font-size: 15px; font-weight: 600; font-family: 'Inter', sans-serif;
}
.tabs button.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.error { color: var(--danger); margin-top: 12px; font-size: 14px; min-height: 18px; }
.fineprint { color: var(--muted); font-size: 12px; margin-top: 16px; text-align: center; }

/* ---------- age gate ---------- */
.age-gate {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(31, 41, 55, 0.55);
  backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
}
.age-gate-box {
  max-width: 460px; margin: 16px; padding: 32px;
  background: var(--panel); border: 1px solid var(--border); border-radius: 16px;
  text-align: center; box-shadow: 0 18px 50px rgba(31, 41, 55, 0.25);
}
.age-gate-box h2 { margin-bottom: 12px; }
.age-gate-box p { color: var(--muted); margin-bottom: 20px; line-height: 1.5; }
.age-gate-box .btn { margin: 4px; }

/* ---------- chat page ---------- */
.chat-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 14px;
  padding: 14px 24px;
  height: calc(100vh - 61px);
}
.video-area { display: flex; flex-direction: column; gap: 12px; min-width: 0; }

.videos { position: relative; flex: 1; min-height: 0; }
#remoteVideo {
  width: 100%; height: 100%; object-fit: cover;
  background: #181a2a; border-radius: 16px; border: 1px solid var(--border);
}
#localVideo {
  position: absolute; right: 14px; bottom: 14px;
  width: 24%; max-width: 220px; border-radius: 12px;
  border: 2px solid #fff; background: #181a2a;
  box-shadow: var(--shadow);
  transform: scaleX(-1);
}
.video-status {
  position: absolute; inset: 0; display: flex; align-items: center;
  justify-content: center; text-align: center; color: #c7cbe6;
  font-size: 18px; padding: 20px; pointer-events: none;
}

.controls { display: flex; gap: 10px; }
.controls .btn { flex: 1; font-size: 16px; padding: 13px; }

.chat-panel {
  display: flex; flex-direction: column;
  background: var(--panel); border: 1px solid var(--border); border-radius: 16px;
  min-height: 0; box-shadow: var(--shadow);
}

.filters {
  display: flex; gap: 10px; align-items: end; flex-wrap: wrap;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
}
.filters .field { min-width: 120px; flex: 1; }
.filters .field-wide { flex-basis: 100%; }
.filters label { margin: 0 0 4px; }
.lock-note { font-size: 12px; color: var(--gold); font-weight: 600; }

.chat-messages { flex: 1; overflow-y: auto; padding: 14px; }
.msg { margin-bottom: 10px; line-height: 1.4; word-wrap: break-word; }
.msg .from { font-weight: 700; }
.msg.me .from { color: var(--secondary); }
.msg.them .from { color: var(--primary); }
.msg.system { color: var(--muted); font-style: italic; font-size: 14px; }
.chat-input { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--border); }

@media (max-width: 800px) {
  .chat-layout { grid-template-columns: 1fr; height: auto; }
  .videos { height: 50vh; }
  .chat-panel { max-height: 60vh; }
  .hero h1 { font-size: 36px; }
  .topbar { padding: 10px 14px; gap: 8px; }
  .topbar .btn { padding: 8px 12px; font-size: 14px; white-space: nowrap; }
  .topbar .who { display: none; }
  .topbar nav { display: none; }
}

/* ---------- static pages / admin ---------- */
.page { max-width: 880px; margin: 34px auto; padding: 0 24px; line-height: 1.6; }
.page h1 { margin-bottom: 16px; }
.page h2 { margin: 22px 0 8px; }
.page p, .page li { color: var(--muted); }
.page ul { margin-left: 22px; }

.placeholder-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px; margin-top: 26px;
}
.placeholder-card {
  background: var(--panel); border: 1px solid var(--border); border-radius: 16px;
  padding: 24px; box-shadow: var(--shadow);
}
.placeholder-card .icon { font-size: 28px; margin-bottom: 10px; }
.placeholder-card h3 { margin-bottom: 6px; }
.placeholder-card p { font-size: 14px; }

table { width: 100%; border-collapse: collapse; margin-top: 14px; font-size: 14px; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--border); }
th { color: var(--muted); }
td .btn { padding: 5px 10px; font-size: 13px; margin-right: 6px; }

.price-card {
  background: var(--panel); border: 2px solid var(--gold); border-radius: 16px;
  padding: 28px; max-width: 380px; margin: 24px auto; text-align: center;
  box-shadow: var(--shadow);
}
.price-card .price { font-size: 40px; font-weight: 800; color: var(--gold); margin: 10px 0; font-family: 'Manrope', sans-serif; }
