@import url('https://fonts.googleapis.com/css2?family=Lato:wght@300;400;700;900&display=swap');

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

:root {
  --dark:        #0c0b02;
  --dark-2:      #191915;
  --bg:          #f9f9f5;
  --card:        #ffffff;
  --text:        #0c0b02;
  --text-muted:  #666;
  --text-light:  #aaa;
  --border:      #e8e8df;
  --accent:      #ba0c8e;
  --accent-2:    #f06722;
  --grad:        linear-gradient(135deg, #ba0c8e, #f06722);
  --success:     #059669;
  --warning:     #d97706;
  --danger:      #dc2626;
  --shadow:      0 2px 12px rgba(0,0,0,.08);
  --shadow-md:   0 4px 20px rgba(0,0,0,.12);
  --shadow-lg:   0 8px 32px rgba(0,0,0,.16);
  --radius:      0.75rem;
  --radius-sm:   0.5rem;
  --radius-lg:   1.25rem;
  --radius-btn:  100px;
  --nav-h:       68px;
  --ease:        0.25s ease;
  /* backward-compat aliases */
  --header:      #0c0b02;
  --accent-dark: #9a0a76;
  --border-color:#e8e8df;
}

body {
  font-family: 'Lato', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 15px;
}

/* ── UTILITIES ───────────────────────────────────────────────────── */
.hidden { display: none !important; }
.container    { max-width: 1240px; margin: 0 auto; padding: 0 2rem; }
.container-sm { max-width: 680px;  margin: 0 auto; padding: 0 2rem; }
.container-md { max-width: 900px;  margin: 0 auto; padding: 0 2rem; }
.text-center { text-align: center; }
.text-muted  { color: var(--text-muted); }
.section     { padding: 5rem 0; }
.section-sm  { padding: 3rem 0; }

/* ── BUTTONS ─────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: .75rem 2rem;
  border-radius: var(--radius-btn);
  font-size: 1rem; font-weight: 700; font-family: inherit;
  cursor: pointer; border: none; text-decoration: none; white-space: nowrap;
  transition: opacity var(--ease), transform var(--ease), background var(--ease);
  line-height: 1; position: relative; overflow: hidden;
}
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .45; cursor: not-allowed; pointer-events: none; }

.btn-primary { background: var(--grad); color: #fff; }
.btn-primary:hover { opacity: .9; transform: translateY(-1px); }

.btn-ghost { background: rgba(255,255,255,.1); color: #fff; border: 1.5px solid rgba(255,255,255,.3); }
.btn-ghost:hover { background: rgba(255,255,255,.2); }

.btn-outline { background: transparent; color: var(--text); border: 1.5px solid rgba(12,11,2,.25); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }

.btn-outline-white { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.6); }
.btn-outline-white:hover { background: rgba(255,255,255,.08); }

.btn-success { background: #ecfdf5; color: #059669; border: 1px solid #a7f3d0; }
.btn-success:hover { background: #d1fae5; }

.btn-danger  { background: #fee2e2; color: var(--danger); border: 1px solid #fecaca; }
.btn-danger:hover { background: #fecaca; }

.btn-google  { background: #fff; color: #3c4043; border: 1.5px solid var(--border); }
.btn-google:hover { background: #f8f9fa; }
.btn-google img { width: 18px; height: 18px; }

.btn-sm   { padding: .5rem 1.25rem; font-size: .875rem; }
.btn-xs   { padding: .35rem .9rem;  font-size: .8125rem; }
.btn-lg   { padding: .9rem 2.25rem; font-size: 1.05rem; }
.btn-full { width: 100%; justify-content: center; }

/* ── HEADER / NAV ────────────────────────────────────────────────── */
.site-header {
  background: var(--dark);
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 2px 20px rgba(0,0,0,.4);
}
.header-inner {
  max-width: 1240px; margin: 0 auto;
  padding: 0 2rem; height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.header-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.header-logo {
  width: 34px; height: 34px; border-radius: 8px;
  background: var(--grad);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 900; color: #fff; flex-shrink: 0;
}
.header-title { font-size: 1.1rem; font-weight: 900; color: #fff; }
.header-sub   { font-size: 11px; color: #aaa; }
.header-nav   { display: flex; gap: 4px; align-items: center; }
.header-actions { display: flex; gap: 8px; align-items: center; }
.nav-link {
  padding: 7px 14px; border-radius: var(--radius-btn);
  font-size: .875rem; font-weight: 700;
  color: rgba(255,255,255,.7); text-decoration: none;
  transition: color var(--ease), background var(--ease);
}
.nav-link:hover { color: #fff; background: rgba(255,255,255,.08); }
.nav-link.active { color: #fff; }

/* ── MARKETING NAV ───────────────────────────────────────────────── */
.mkt-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  height: var(--nav-h);
  display: flex; align-items: center;
  background: rgba(12,11,2,.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,.06);
  transition: background var(--ease);
}
.mkt-nav-inner {
  max-width: 1240px; margin: 0 auto; padding: 0 2rem;
  display: flex; align-items: center; gap: 2rem; width: 100%;
}
.mkt-nav-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.mkt-nav-logo {
  width: 34px; height: 34px; border-radius: 8px; background: var(--grad);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 900; color: #fff; flex-shrink: 0;
}
.mkt-nav-name { font-size: 1.21rem; font-weight: 900; color: #fff; }
.mkt-nav-links { display: flex; gap: 2px; margin-left: auto; }
.mkt-nav-link {
  padding: 6px 14px; border-radius: var(--radius-btn);
  font-size: .875rem; font-weight: 700;
  color: rgba(255,255,255,.7); text-decoration: none;
  transition: color var(--ease), background var(--ease);
}
.mkt-nav-link:hover { color: #fff; background: rgba(255,255,255,.08); }
.mkt-nav-actions { display: flex; gap: 10px; align-items: center; }

/* ── HERO ────────────────────────────────────────────────────────── */
.hero {
  min-height: 92vh;
  background: var(--dark);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
  padding: calc(var(--nav-h) + 4rem) 2rem 5rem;
  position: relative; overflow: hidden;
}
.hero-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; z-index: 0;
  opacity: 0.54;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: rgba(12,11,2,.58);
  z-index: 1;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(186,12,142,.22) 0%, transparent 70%);
  pointer-events: none; z-index: 2;
}
.hero-content {
  position: relative; z-index: 3;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  width: 100%;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(186,12,142,.12); border: 1px solid rgba(186,12,142,.3);
  border-radius: var(--radius-btn);
  padding: .35rem 1rem; font-size: .8125rem; font-weight: 700;
  color: #e879d4; margin-bottom: 1.75rem; position: relative;
}
.hero-h1 {
  font-size: clamp(2.5rem, 6vw, 4.25rem);
  font-weight: 900; color: #fff; line-height: 1.1;
  max-width: 820px; margin: 0 auto 1.25rem;
}
.hero-h1 .grad { background: var(--grad); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero-sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255,255,255,.65); max-width: 560px; margin: 0 auto 2.5rem;
  line-height: 1.7;
}
.hero-ctas { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; margin-bottom: 3.5rem; }
.hero-proof {
  display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; justify-content: center;
  font-size: .875rem; color: rgba(255,255,255,.45);
}
.hero-proof span { display: flex; align-items: center; gap: 5px; }

/* ── SECTION HEADERS ─────────────────────────────────────────────── */
.section-eyebrow {
  font-size: .8125rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .08em; color: var(--accent); margin-bottom: .75rem;
}
.section-title {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 900; color: var(--text); line-height: 1.15;
  margin-bottom: 1rem;
}
.section-sub {
  font-size: 1.05rem; color: var(--text-muted); max-width: 560px;
  margin: 0 auto; line-height: 1.7;
}

/* ── FEATURES GRID ───────────────────────────────────────────────── */
.features-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.5rem; margin-top: 3.5rem; }
.feature-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 2rem;
  box-shadow: var(--shadow);
  transition: box-shadow var(--ease), transform var(--ease);
}
.feature-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.feature-icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: var(--grad); display: flex; align-items: center; justify-content: center;
  font-size: 22px; margin-bottom: 1.25rem;
}
.feature-title { font-size: 1.1rem; font-weight: 900; color: var(--text); margin-bottom: .5rem; }
.feature-desc  { font-size: .9375rem; color: var(--text-muted); line-height: 1.65; }

/* ── HOW IT WORKS ────────────────────────────────────────────────── */
.steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 2rem; margin-top: 3.5rem; }
.step-card { text-align: center; }
.step-num {
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--grad); color: #fff; font-size: 1.25rem; font-weight: 900;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.25rem;
}
.step-title { font-size: 1.1rem; font-weight: 900; color: var(--text); margin-bottom: .5rem; }
.step-desc  { font-size: .9375rem; color: var(--text-muted); line-height: 1.65; }

/* ── STATS ROW ───────────────────────────────────────────────────── */
.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; margin-top: 3.5rem; }
.stat-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 2rem 1.5rem;
  box-shadow: var(--shadow); text-align: center;
}
.stat-value { font-size: 2.5rem; font-weight: 900; background: var(--grad); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; line-height: 1; margin-bottom: .25rem; }
.stat-label { font-size: .875rem; font-weight: 700; color: var(--text-muted); }

/* ── CTA BAND ────────────────────────────────────────────────────── */
.cta-band {
  background: var(--dark);
  padding: 5rem 2rem;
  text-align: center;
  position: relative; overflow: hidden;
}
.cta-band::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 70% 80% at 50% 0%, rgba(186,12,142,.2) 0%, transparent 70%);
  pointer-events: none;
}
.cta-band h2 { font-size: clamp(1.75rem, 3.5vw, 2.75rem); font-weight: 900; color: #fff; margin-bottom: 1rem; position: relative; }
.cta-band p  { font-size: 1.05rem; color: rgba(255,255,255,.6); margin-bottom: 2.5rem; position: relative; }
.cta-band .btn { position: relative; }

/* ── PRICING ─────────────────────────────────────────────────────── */
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; margin-top: 3.5rem; }
.pricing-card {
  background: var(--card); border: 1.5px solid var(--border);
  border-radius: var(--radius-lg); padding: 2.5rem 2rem;
  box-shadow: var(--shadow); position: relative;
  transition: box-shadow var(--ease), transform var(--ease);
}
.pricing-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.pricing-card.featured {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), var(--shadow-md);
}
.pricing-badge {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--grad); color: #fff; font-size: .75rem; font-weight: 900;
  padding: .3rem 1rem; border-radius: var(--radius-btn);
  white-space: nowrap;
}
.pricing-plan  { font-size: .8125rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--text-muted); margin-bottom: .5rem; }
.pricing-price { font-size: 3rem; font-weight: 900; color: var(--text); line-height: 1; margin-bottom: .25rem; }
.pricing-price sup { font-size: 1.5rem; vertical-align: top; margin-top: .5rem; }
.pricing-price .period { font-size: 1rem; font-weight: 400; color: var(--text-muted); }
.pricing-desc  { font-size: .9375rem; color: var(--text-muted); margin-bottom: 2rem; line-height: 1.55; }
.pricing-divider { height: 1px; background: var(--border); margin-bottom: 1.5rem; }
.pricing-features { list-style: none; display: flex; flex-direction: column; gap: .875rem; margin-bottom: 2rem; }
.pricing-features li { font-size: .9375rem; color: var(--text); display: flex; align-items: flex-start; gap: .6rem; }
.pricing-features li::before { content: '✓'; font-weight: 900; color: var(--accent); font-size: .875rem; flex-shrink: 0; margin-top: 1px; }
.pricing-features li.na { color: var(--text-light); }
.pricing-features li.na::before { content: '—'; color: var(--text-light); }

/* ── BLOG ────────────────────────────────────────────────────────── */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1.5rem; margin-top: 2.5rem; }
.blog-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); text-decoration: none; color: inherit;
  transition: box-shadow var(--ease), transform var(--ease); display: flex; flex-direction: column;
}
.blog-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.blog-card-img {
  height: 180px; background: var(--grad); display: flex; align-items: center; justify-content: center;
  font-size: 3rem; flex-shrink: 0;
}
.blog-card-body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }
.blog-card-tag {
  font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
  color: var(--accent); margin-bottom: .5rem;
}
.blog-card-title { font-size: 1.1rem; font-weight: 900; color: var(--text); line-height: 1.35; margin-bottom: .75rem; }
.blog-card-desc { font-size: .9rem; color: var(--text-muted); line-height: 1.6; flex: 1; margin-bottom: 1rem; }
.blog-card-meta { font-size: .8125rem; color: var(--text-light); }

/* ── FOOTER ──────────────────────────────────────────────────────── */
.site-footer {
  background: var(--dark); padding: 4rem 0 2rem;
}
.footer-inner {
  max-width: 1240px; margin: 0 auto; padding: 0 2rem;
}
.footer-top { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 3rem; margin-bottom: 3rem; }
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 1rem; }
.footer-logo { width: 32px; height: 32px; border-radius: 8px; background: var(--grad); display: flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 900; color: #fff; }
.footer-name { font-size: 1rem; font-weight: 900; color: #fff; }
.footer-tagline { font-size: .875rem; color: rgba(255,255,255,.45); line-height: 1.6; max-width: 240px; }
.footer-col-title { font-size: .8125rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: rgba(255,255,255,.4); margin-bottom: 1rem; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: .6rem; }
.footer-links a { font-size: .9375rem; color: rgba(255,255,255,.6); text-decoration: none; transition: color var(--ease); }
.footer-links a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.07); padding-top: 1.5rem; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }
.footer-copy { font-size: .875rem; color: rgba(255,255,255,.35); }
.footer-bottom-links { display: flex; gap: 1.5rem; }
.footer-bottom-links a { font-size: .875rem; color: rgba(255,255,255,.35); text-decoration: none; transition: color var(--ease); }
.footer-bottom-links a:hover { color: rgba(255,255,255,.7); }

/* ── STATUS BADGES ───────────────────────────────────────────────── */
.status-badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 12px; border-radius: var(--radius-btn);
  font-size: .75rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .4px; white-space: nowrap;
}
.status-badge::before { content:''; width:6px; height:6px; border-radius:50%; background:currentColor; flex-shrink:0; }
.status-draft   { background:#f3f3ec; color:#888; }
.status-running { background:#ecfdf5; color:#059669; }
.status-paused  { background:#fffbeb; color:#d97706; }
.status-ended   { background:#f3f3ec; color:#aaa; }

/* ── CARDS ───────────────────────────────────────────────────────── */
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--border); }

/* ── AUTH PAGES ──────────────────────────────────────────────────── */
.auth-page {
  min-height: 100vh;
  background: var(--dark);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  position: relative; overflow: hidden;
}
.auth-page::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 10%, rgba(186,12,142,.15) 0%, transparent 70%);
  pointer-events: none;
}
.auth-back { position: absolute; top: 1.5rem; left: 1.5rem; }
.auth-card {
  background: #fff; border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 2.75rem; width: 100%; max-width: 440px; position: relative;
}
.auth-logo {
  width: 52px; height: 52px; background: var(--grad); border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; font-weight: 900; color: #fff; margin: 0 auto 1.25rem;
}
.auth-title { font-size: 1.6rem; font-weight: 900; color: var(--text); text-align: center; margin-bottom: .3rem; }
.auth-sub   { font-size: .9375rem; color: var(--text-muted); text-align: center; margin-bottom: 2rem; line-height: 1.5; }
.auth-divider {
  display: flex; align-items: center; gap: 12px;
  margin: 1.25rem 0; color: var(--text-light); font-size: .875rem;
}
.auth-divider::before, .auth-divider::after { content:''; flex:1; height:1px; background:var(--border); }
.auth-footer { text-align: center; font-size: .9375rem; color: var(--text-muted); margin-top: 1.5rem; }
.auth-footer a { color: var(--accent); text-decoration: none; font-weight: 700; }
.auth-footer a:hover { text-decoration: underline; }

/* ── FORMS ───────────────────────────────────────────────────────── */
.form-section {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 1.75rem 2rem;
  box-shadow: var(--shadow); margin-bottom: 16px;
}
.form-section-title {
  font-size: .75rem; font-weight: 700; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: .06em;
  margin-bottom: 1.25rem; padding-bottom: .75rem; border-bottom: 1px solid var(--border);
}
.form-row { margin-bottom: 1rem; }
.form-row:last-child { margin-bottom: 0; }
.form-label { display: block; font-size: .875rem; font-weight: 700; color: var(--text); margin-bottom: 6px; }
.form-label .req { color: var(--danger); margin-left: 2px; }
.form-input, .form-textarea, .form-select {
  width: 100%; padding: .7rem 1rem;
  border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  font-size: .9375rem; font-family: inherit; color: var(--text);
  background: #fff; outline: none;
  transition: border-color var(--ease), box-shadow var(--ease);
}
.form-input:focus, .form-textarea:focus, .form-select:focus {
  border-color: var(--accent); box-shadow: 0 0 0 3px rgba(186,12,142,.1);
}
.form-textarea { resize: vertical; min-height: 86px; line-height: 1.6; }
.form-hint { font-size: .8125rem; color: var(--text-muted); margin-top: 5px; line-height: 1.5; }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-actions { display: flex; gap: 12px; align-items: center; margin-top: 8px; }
.inline-saved    { font-size: .875rem; color: var(--success); font-weight: 600; }
.inline-spinner  { display: flex; align-items: center; gap: 8px; font-size: .875rem; color: var(--text-muted); }
.inline-spinner .spinner { width: 16px; height: 16px; border-width: 2px; }

/* ── ONBOARDING ──────────────────────────────────────────────────── */
.onboard-page { min-height: 100vh; background: var(--dark); }
.onboard-header { padding: 1.75rem 2.5rem; display: flex; align-items: center; gap: 12px; }
.onboard-logo { width: 36px; height: 36px; background: var(--grad); border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 17px; font-weight: 900; color: #fff; }
.onboard-brand { font-size: 1rem; font-weight: 900; color: #fff; }
.onboard-body  { max-width: 680px; margin: 0 auto; padding: 0 2rem 4rem; }
.onboard-steps { display: flex; align-items: flex-start; gap: 0; margin-bottom: 2rem; }
.onboard-step  { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.step-dot { width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; transition: all .3s; }
.step-dot.done    { background: var(--grad); color: #fff; }
.step-dot.active  { background: var(--grad); color: #fff; box-shadow: 0 0 0 4px rgba(186,12,142,.25); }
.step-dot.pending { background: rgba(255,255,255,.1); color: rgba(255,255,255,.4); border: 2px solid rgba(255,255,255,.15); }
.step-line { flex: 1; height: 2px; background: rgba(255,255,255,.1); margin: 0 6px; align-self: flex-start; margin-top: 15px; }
.step-line.done { background: var(--grad); }
.step-label { font-size: 11px; font-weight: 700; color: rgba(255,255,255,.45); text-align: center; white-space: nowrap; }
.step-label.active { color: #fff; }
.onboard-panel { background: #fff; border-radius: var(--radius-lg); box-shadow: 0 20px 60px rgba(0,0,0,.25); padding: 2.5rem; }
.onboard-panel h2 { font-size: 1.4rem; font-weight: 900; color: var(--text); margin-bottom: .5rem; }
.onboard-panel p  { font-size: .9375rem; color: var(--text-muted); margin-bottom: 1.5rem; line-height: 1.6; }

/* ── SNIPPET ─────────────────────────────────────────────────────── */
.snippet-box { background: var(--dark); border-radius: var(--radius); padding: 1.25rem; margin: 1rem 0; position: relative; }
.snippet-code { font-family: 'SFMono-Regular', Consolas, monospace; font-size: .75rem; color: #e2e8f0; line-height: 1.7; white-space: pre-wrap; word-break: break-all; }
.snippet-copy { position: absolute; top: 12px; right: 12px; background: rgba(255,255,255,.1); color: #94a3b8; border: 1px solid rgba(255,255,255,.15); border-radius: var(--radius-sm); padding: 5px 10px; font-size: 11px; font-weight: 700; font-family: inherit; cursor: pointer; transition: background var(--ease), color var(--ease); }
.snippet-copy:hover  { background: rgba(255,255,255,.2); color: #fff; }
.snippet-copy.copied { color: #34d399; border-color: #34d399; }

/* ── DASHBOARD ───────────────────────────────────────────────────── */
.dash-hero { background: var(--dark); padding: 2.25rem 0; }
.dash-hero-inner { max-width: 1240px; margin: 0 auto; padding: 0 2rem; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.dash-greeting { font-size: 1.5rem; font-weight: 900; color: #fff; margin-bottom: 4px; }
.dash-sub      { font-size: .875rem; color: rgba(255,255,255,.5); }
.dash-stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-bottom: 2rem; }
.stat-card  { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem 1.5rem; box-shadow: var(--shadow); text-align: center; }
.stat-value { font-size: 2rem; font-weight: 900; color: var(--text); line-height: 1; }
.stat-label { font-size: .75rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: .5px; margin-top: 5px; }

/* ── SITE CARDS ──────────────────────────────────────────────────── */
.site-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1rem; }
.site-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.5rem;
  box-shadow: var(--shadow); text-decoration: none; color: inherit;
  transition: box-shadow var(--ease), border-color var(--ease), transform var(--ease);
  display: flex; flex-direction: column; gap: .75rem;
}
.site-card:hover { border-color: var(--accent); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.site-card-header { display: flex; align-items: center; gap: 12px; }
.site-icon { width: 40px; height: 40px; border-radius: 10px; background: var(--grad); display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; }
.site-name   { font-size: .9375rem; font-weight: 900; color: var(--text); }
.site-url    { font-size: .75rem; color: var(--text-muted); font-family: monospace; }
.site-stats  { display: flex; gap: 14px; }
.site-stat   { font-size: .8125rem; color: var(--text-muted); }
.site-stat strong { color: var(--text); font-weight: 700; }

/* ── EXP LIST ────────────────────────────────────────────────────── */
.exp-list { display: flex; flex-direction: column; gap: .75rem; }
.exp-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1rem 1.25rem; box-shadow: var(--shadow);
  text-decoration: none; color: inherit;
  display: flex; align-items: center; gap: 1rem;
  transition: box-shadow var(--ease), border-color var(--ease);
}
.exp-card:hover { border-color: var(--accent); box-shadow: 0 4px 16px rgba(186,12,142,.1); }
.exp-card-main { flex: 1; min-width: 0; }
.exp-card-name { font-size: .9375rem; font-weight: 700; color: var(--text); margin-bottom: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.exp-card-meta { font-size: .8125rem; color: var(--text-muted); display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.exp-card-right { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.exp-arrow { color: var(--text-light); font-size: 16px; transition: color var(--ease); }
.exp-card:hover .exp-arrow { color: var(--accent); }

/* ── FILTER / PAGE TABS ──────────────────────────────────────────── */
.filter-tabs { display: inline-flex; gap: 3px; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-btn); padding: 4px; }
.filter-tab  { padding: 6px 16px; border-radius: var(--radius-btn); font-size: .875rem; font-weight: 700; color: var(--text-muted); cursor: pointer; border: none; background: transparent; font-family: inherit; transition: background var(--ease), color var(--ease); }
.filter-tab.active { background: var(--grad); color: #fff; }
.filter-tab:not(.active):hover { background: #f3f3ec; color: var(--text); }

.page-tabs { display: flex; border-bottom: 2px solid var(--border); margin-bottom: 1.5rem; }
.page-tab  { padding: .75rem 1.25rem; font-size: .875rem; font-weight: 700; color: var(--text-muted); cursor: pointer; border: none; background: transparent; font-family: inherit; border-bottom: 2px solid transparent; margin-bottom: -2px; transition: color var(--ease), border-color var(--ease); }
.page-tab.active { color: var(--accent); border-bottom-color: var(--accent); }
.page-tab:hover:not(.active) { color: var(--text); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ── DETAIL HEADER ───────────────────────────────────────────────── */
.detail-header { background: var(--dark); }
.detail-header-inner { max-width: 1240px; margin: 0 auto; padding: 1.25rem 2rem; display: flex; align-items: center; gap: 1rem; }
.back-link { display: inline-flex; align-items: center; gap: 6px; color: rgba(255,255,255,.5); text-decoration: none; font-size: .875rem; font-weight: 700; flex-shrink: 0; transition: color var(--ease); }
.back-link:hover { color: #fff; }
.detail-header-info { flex: 1; min-width: 0; }
.detail-header-name { font-size: 1.125rem; font-weight: 900; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.detail-header-meta { font-size: .75rem; color: rgba(255,255,255,.5); margin-top: 3px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.detail-header-actions { display: flex; gap: 8px; flex-shrink: 0; }

/* ── VARIANT CARDS ───────────────────────────────────────────────── */
.variants-list { display: flex; flex-direction: column; gap: 12px; }
.variant-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem 1.5rem; box-shadow: var(--shadow); border-left: 4px solid var(--border); }
.variant-card.is-control   { border-left-color: var(--text-muted); }
.variant-card.is-treatment { border-left-color: var(--accent); }
.variant-header { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.variant-name-input { flex: 1; font-size: .9375rem; font-weight: 700; border: 1.5px solid transparent; background: transparent; color: var(--text); font-family: inherit; padding: 3px 6px; border-radius: var(--radius-sm); outline: none; transition: background var(--ease), border-color var(--ease); }
.variant-name-input:hover { background: #f9f9f5; }
.variant-name-input:focus { background: #f3f3ec; border-color: var(--border); }
.variant-badge { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; padding: 3px 10px; border-radius: var(--radius-btn); flex-shrink: 0; }
.badge-control   { background: #f3f3ec; color: var(--text-muted); }
.badge-treatment { background: rgba(186,12,142,.1); color: var(--accent); }
.variant-footer { display: flex; align-items: center; gap: 10px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border); flex-wrap: wrap; }
.split-label { font-size: .8125rem; font-weight: 700; color: var(--text-muted); }
.split-input { width: 68px; padding: 5px 8px; border: 1.5px solid var(--border); border-radius: var(--radius-sm); font-size: .875rem; font-weight: 700; font-family: inherit; color: var(--text); text-align: center; outline: none; }
.split-input:focus { border-color: var(--accent); }
.split-pct { font-size: .875rem; color: var(--text-muted); }
.variant-delete { margin-left: auto; }
.changes-badge { background: rgba(186,12,142,.1); color: var(--accent); font-size: .75rem; font-weight: 700; padding: 2px 10px; border-radius: var(--radius-btn); }

/* ── TRAFFIC SPLIT ───────────────────────────────────────────────── */
.split-bar-wrap { margin-bottom: 1.25rem; }
.split-bar { height: 12px; border-radius: 99px; display: flex; overflow: hidden; background: var(--border); margin-bottom: 10px; }
.split-segment { height: 100%; transition: width .3s ease; }
.split-legend  { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 8px; }
.split-legend-item { display: flex; align-items: center; gap: 6px; font-size: .8125rem; color: var(--text-muted); }
.split-legend-dot { width: 10px; height: 10px; border-radius: 3px; flex-shrink: 0; }
.split-total { font-size: .8125rem; font-weight: 700; }
.split-total.ok   { color: var(--success); }
.split-total.warn { color: var(--danger); }

/* ── TRAFFIC SLIDERS ─────────────────────────────────────────────── */
.traffic-row { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.traffic-label { font-size: .8125rem; color: var(--text); width: 130px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex-shrink: 0; }
.traffic-slider { flex: 1; accent-color: var(--accent); }
.traffic-pct { font-size: .8125rem; font-weight: 700; color: var(--accent); width: 40px; text-align: right; flex-shrink: 0; }

/* ── VARIANT CARD (detail page dark style) ───────────────────────── */
.variants-grid { display: grid; gap: 12px; }
.variant-card-header { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid rgba(255,255,255,.05); }
.variant-card-name-wrap { flex: 1; min-width: 0; }
.variant-card-name    { font-size: .9375rem; font-weight: 900; color: #e2e8f0; }
.variant-card-tag     { font-size: .75rem; color: #94a3b8; margin-top: 2px; }
.variant-card-traffic { font-size: .875rem; font-weight: 700; color: var(--accent); flex-shrink: 0; }
.variant-card-body    { padding: 12px 16px; }
.variant-card-actions { display: flex; gap: 8px; margin-top: 10px; }
.control-badge { display: inline-block; font-size: .625rem; font-weight: 700; background: rgba(255,255,255,.1); color: #94a3b8; border-radius: var(--radius-btn); padding: 2px 8px; margin-left: 6px; vertical-align: middle; }

/* ── MISC (detail page) ──────────────────────────────────────────── */
.btn-success.dark-ctx { background: #059669; color: #fff; border: none; }
.btn-success.dark-ctx:hover { background: #047857; }
.results-placeholder { padding: 3rem 2rem; text-align: center; }
.results-placeholder p { font-size: .875rem; color: var(--text-muted); }
.exp-status-bar { display: flex; align-items: center; gap: 12px; padding: 14px 20px; background: var(--card); border-radius: var(--radius); margin-bottom: 1.5rem; flex-wrap: wrap; border: 1px solid var(--border); box-shadow: var(--shadow); }
.exp-status-bar .status-badge { font-size: .8125rem; padding: 5px 14px; }
.exp-status-actions { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.save-status { font-size: .8125rem; color: #34d399; }

/* ── OVERVIEW ────────────────────────────────────────────────────── */
.overview-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.overview-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem 1.5rem; box-shadow: var(--shadow); }
.overview-card.full { grid-column: 1 / -1; }
.overview-label { font-size: .625rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--text-muted); margin-bottom: 8px; }
.overview-value { font-size: .9375rem; color: var(--text); line-height: 1.65; }
.overview-value.empty { color: var(--text-light); font-style: italic; }

/* ── ALERTS ──────────────────────────────────────────────────────── */
.alert { padding: .75rem 1rem; border-radius: var(--radius-sm); font-size: .9rem; font-weight: 500; margin-bottom: 14px; }
.alert-error   { background: #fee2e2; color: #b91c1c; border: 1px solid #fecaca; }
.alert-success { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.alert-info    { background: rgba(186,12,142,.07); color: #9a0a76; border: 1px solid rgba(186,12,142,.2); }

/* ── DANGER ZONE ─────────────────────────────────────────────────── */
.danger-zone { border-color: #fecaca !important; }
.danger-zone .form-section-title { color: var(--danger); }
.danger-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.danger-row-text strong { display: block; font-size: .875rem; font-weight: 700; color: var(--text); margin-bottom: 3px; }
.danger-row-text span   { font-size: .8125rem; color: var(--text-muted); }

/* ── SECTION LABELS ──────────────────────────────────────────────── */
.section-label  { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--text-muted); margin-bottom: .875rem; }
.section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; flex-wrap: wrap; gap: 10px; }

/* ── LOADING / EMPTY ─────────────────────────────────────────────── */
.loading { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 4rem; gap: 14px; color: var(--text-muted); }
.spinner { width: 30px; height: 30px; border: 3px solid var(--border); border-top-color: var(--accent); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.empty-state { text-align: center; padding: 3.5rem 2rem; color: var(--text-muted); }
.empty-state-icon  { font-size: 3rem; margin-bottom: .875rem; opacity: .35; }
.empty-state-title { font-size: 1.1rem; font-weight: 900; color: var(--text); margin-bottom: .5rem; }
.empty-state-text  { font-size: .9rem; max-width: 360px; margin: 0 auto 1.25rem; line-height: 1.6; }

/* ── ADD VARIANT ─────────────────────────────────────────────────── */
.add-variant-btn { width: 100%; padding: 14px; border: 2px dashed var(--border); border-radius: var(--radius); background: transparent; color: var(--text-muted); font-size: .875rem; font-weight: 700; font-family: inherit; cursor: pointer; transition: border-color var(--ease), color var(--ease), background var(--ease); margin-top: 10px; }
.add-variant-btn:hover { border-color: var(--accent); color: var(--accent); background: rgba(186,12,142,.04); }

/* ── AI HINT ─────────────────────────────────────────────────────── */
.ai-hint { background: rgba(186,12,142,.05); border: 1px solid rgba(186,12,142,.2); border-radius: var(--radius); padding: .875rem 1.125rem; display: flex; align-items: flex-start; gap: .75rem; margin-bottom: 1.125rem; }
.ai-hint-icon  { font-size: 18px; flex-shrink: 0; margin-top: 1px; }
.ai-hint-title { font-size: .8125rem; font-weight: 900; color: var(--accent); margin-bottom: 3px; }
.ai-hint-text  { font-size: .8125rem; color: #9a0a76; line-height: 1.5; }

/* ── EDITOR (dark panel labels) ──────────────────────────────────── */
.editor-panel-label { font-size: .6875rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: #64748b; padding: 14px 16px 4px; display: block; }
.editor-change-form .form-label { color: #e2e8f0; }
.editor-change-item-info { overflow: hidden; padding-right: 24px; }
.editor-change-title { font-size: .75rem; font-weight: 700; color: #e2e8f0; margin-bottom: 4px; }
.editor-change-value { font-size: .75rem; color: #ffffff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.editor-change-del { background: none; border: none; color: #64748b; cursor: pointer; font-size: 18px; padding: 0; line-height: 1; flex-shrink: 0; }
.editor-change-del:hover { color: #ef4444; }
.changes-empty { padding: 1.5rem 1rem; text-align: center; font-size: .75rem; color: #64748b; }
.ai-suggestion-item { background: #1e293b; border: 1px solid #334155; border-radius: 6px; padding: 8px 10px; margin-bottom: 6px; font-size: .6875rem; color: #cbd5e1; cursor: pointer; line-height: 1.5; transition: border-color var(--ease), background var(--ease); }
.ai-suggestion-item:hover { border-color: #ba0c8e; background: #1a1020; color: #e2e8f0; }
.ai-suggestion-item.selected { border-color: #ba0c8e; background: rgba(186,12,142,.15); color: #e879d4; }

/* ── RESPONSIVE ──────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .footer-top { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .stats-row, .dash-stats-row { grid-template-columns: 1fr 1fr; }
  .overview-grid { grid-template-columns: 1fr; }
  .form-row-2 { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .container, .container-sm, .container-md, .header-inner, .detail-header-inner { padding-left: 1rem; padding-right: 1rem; }
  .footer-top { grid-template-columns: 1fr; }
  .stats-row, .dash-stats-row { grid-template-columns: 1fr 1fr; }
  .mkt-nav-links { display: none; }
  .detail-header-actions { display: none; }
  .hero-proof { display: none; }
}
