@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');
@import url('https://cdnjs.cloudflare.com/ajax/libs/animate.css/4.1.1/animate.min.css');

:root {
  --green: #059669;
  --green-light: #10b981;
  --green-bg: #ecfdf5;
  --green-border: #a7f3d0;
  --navy: #0f172a;
  --navy-mid: #1e293b;
  --blue: #2563eb;
  --blue-dark: #1d4ed8;
  --text: #0f172a;
  --muted: #64748b;
  --muted-light: #94a3b8;
  --border: #e2e8f0;
  --bg: #f8fafc;
  --white: #ffffff;
  --danger: #dc2626;
  --danger-bg: #fef2f2;
  --sidebar: #0f172a;
  --sidebar-text: #cbd5e1;
  --shadow: 0 4px 24px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 20px 50px rgba(15, 23, 42, 0.12);
  --radius: 12px;
  --radius-lg: 16px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font: 15px/1.6 'Inter', system-ui, sans-serif;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--green); text-decoration: none; }
a:hover { color: var(--green-light); }
.hidden { display: none !important; }

/* Logo */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 20px;
  color: var(--navy);
  text-decoration: none;
}
.logo:hover { color: var(--navy); }
.logo-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--green-light), var(--green));
  display: grid;
  place-items: center;
  color: #fff;
  flex-shrink: 0;
}
.logo-mark svg { width: 20px; height: 20px; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 10px;
  border: 0;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s cubic-bezier(.34,1.56,.64,1), box-shadow 0.25s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,.25) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.55s ease;
}
.btn:hover::after { transform: translateX(120%); }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(0.98); }
.btn-primary {
  background: linear-gradient(135deg, var(--green-light), var(--green));
  color: #fff;
  box-shadow: 0 4px 14px rgba(5, 150, 105, 0.35);
}
.btn-primary:hover {
  background: linear-gradient(135deg, #34d399, #047857);
  color: #fff;
  box-shadow: 0 8px 24px rgba(5, 150, 105, 0.45);
}
.btn-navy {
  background: linear-gradient(135deg, #1e293b, var(--navy));
  color: #fff;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.3);
}
.btn-navy:hover {
  background: linear-gradient(135deg, #334155, #0f172a);
  color: #fff;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.4);
}
.btn-outline {
  background: #fff;
  color: var(--navy);
  border: 1.5px solid var(--border);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}
.btn-outline:hover {
  border-color: var(--blue);
  color: var(--blue);
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.12);
}
.btn-ghost {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--border);
}
.btn-ghost:hover { background: var(--bg); color: var(--text); }
.btn-lg { padding: 14px 24px; font-size: 16px; }
.btn-block { width: 100%; }
.btn-icon {
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 10px;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--muted);
}
.btn-icon:hover { background: #fff; color: var(--green); border-color: var(--green-border); }
.btn-icon svg { width: 18px; height: 18px; }

/* Forms */
.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text);
}
.input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.input-wrap svg.field-icon {
  position: absolute;
  left: 14px;
  width: 18px;
  height: 18px;
  color: var(--muted-light);
  pointer-events: none;
}
.input-wrap .toggle-pw {
  position: absolute;
  right: 12px;
  background: none;
  border: 0;
  padding: 4px;
  cursor: pointer;
  color: var(--muted-light);
}
.input-wrap input,
.input-wrap select {
  width: 100%;
  padding: 12px 14px 12px 42px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font: inherit;
  background: #fff;
  color: var(--text);
  transition: border-color .15s, box-shadow .15s;
}
.input-wrap input[type="password"] { padding-right: 42px; }
.input-wrap select { appearance: none; }
.input-wrap input:focus,
.input-wrap select:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}
.input-wrap.no-icon input,
.input-wrap.no-icon select { padding-left: 14px; }
.field-hint { font-size: 12px; color: var(--muted); margin-top: 6px; }
.form-error { color: var(--danger); font-size: 13px; margin-top: 10px; min-height: 18px; }

/* Auth split layout */
.auth-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: linear-gradient(135deg, #f0fdf4 0%, #f8fafc 50%, #eff6ff 100%);
}
.auth-body {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 40px 32px 60px;
  align-items: center;
}
.auth-marketing { padding-right: 20px; }
.auth-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: var(--green-bg);
  color: var(--green);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 20px;
}
.auth-marketing h1 {
  font-size: clamp(32px, 4vw, 44px);
  line-height: 1.15;
  margin: 0 0 16px;
  font-weight: 800;
  color: var(--navy);
}
.auth-marketing h1 em { font-style: normal; color: var(--green); }
.auth-marketing > p { color: var(--muted); font-size: 16px; margin: 0 0 32px; max-width: 480px; }
.feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.feature-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.feature-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--green-bg);
  color: var(--green);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.feature-icon svg { width: 20px; height: 20px; }
.feature-item strong { display: block; font-size: 14px; margin-bottom: 2px; }
.feature-item span { font-size: 13px; color: var(--muted); }
.feature-list { display: flex; flex-direction: column; gap: 20px; }
.feature-list .feature-item { align-items: center; }

.auth-card {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 36px 32px;
  max-width: 440px;
  width: 100%;
  margin-left: auto;
}
.auth-card-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--green-bg);
  color: var(--green);
  display: grid;
  place-items: center;
  margin: 0 auto 16px;
}
.auth-card-icon svg { width: 28px; height: 28px; }
.auth-card h2 { text-align: center; margin: 0 0 6px; font-size: 24px; }
.auth-card .auth-sub { text-align: center; color: var(--muted); margin: 0 0 28px; font-size: 14px; }
.auth-links {
  text-align: center;
  margin-top: 20px;
  font-size: 14px;
  color: var(--muted);
}
.auth-links a { font-weight: 600; }
.auth-privacy {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 16px;
  font-size: 12px;
  color: var(--muted);
}
.auth-privacy svg { width: 14px; height: 14px; color: var(--green); }

.auth-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 32px;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}
.auth-footer, .site-footer {
  border-top: 1px solid var(--border);
  padding: 20px 32px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--muted);
  background: rgba(255,255,255,.6);
}
.auth-footer-trust {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
}
.auth-footer-trust svg { width: 16px; height: 16px; color: var(--green); }
.auth-footer-links a { color: var(--muted); margin-left: 12px; }
.auth-footer-links a:hover { color: var(--green); }

.wave-bg {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 400px;
  height: 300px;
  background: radial-gradient(circle at 30% 80%, rgba(16,185,129,.08) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* Landing page */
.landing { background: #fff; }
.landing-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 32px;
  max-width: 1200px;
  margin: 0 auto;
  border-bottom: 1px solid var(--border);
}
.landing-nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.landing-nav-links a { color: var(--muted); font-weight: 500; font-size: 14px; }
.landing-nav-links a:hover { color: var(--navy); }
.landing-nav-actions { display: flex; gap: 10px; align-items: center; }

.hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px 32px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 64px 32px 80px;
  align-items: center;
}
.hero-copy { max-width: 540px; }
.hero h1 {
  font-size: clamp(36px, 4.5vw, 52px);
  line-height: 1.1;
  font-weight: 800;
  color: var(--navy);
  margin: 0 0 20px;
}
.hero h1 span { color: var(--blue); }
.hero p { color: var(--muted); font-size: 17px; margin: 0 0 28px; line-height: 1.7; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-graph-wrap {
  max-width: 420px;
  width: 100%;
  margin-left: auto;
  margin-right: 16px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  animation: fadeInRight 0.8s ease both;
}
.hero-graph {
  display: block;
  width: 100%;
  height: auto;
  max-height: 340px;
  object-fit: contain;
  object-position: center;
}
@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(24px); }
  to { opacity: 1; transform: none; }
}
.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--green);
  background: var(--green-bg);
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse-dot 1.5s ease infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); box-shadow: 0 0 0 0 rgba(16,185,129,.5); }
  50% { opacity: .8; transform: scale(1.1); box-shadow: 0 0 0 6px rgba(16,185,129,0); }
}
.hero-stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}
.hero-stat-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px;
  animation: floatIn 0.6s ease both;
}
.hero-stat-card:nth-child(2) { animation-delay: .1s; }
.hero-stat-card:nth-child(3) { animation-delay: .2s; }
.hero-stat-card:nth-child(4) { animation-delay: .3s; }
@keyframes floatIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}
.hero-stat-card .label { font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.hero-stat-card .value {
  font-size: 28px;
  font-weight: 800;
  color: var(--blue);
  line-height: 1;
}
.hero-stat-card .delta {
  font-size: 11px;
  margin-top: 6px;
  font-weight: 600;
}
.hero-stat-card .delta.up { color: var(--green); }
.hero-stat-card .delta.down { color: var(--danger); }
.activity-feed {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px;
  max-height: 160px;
  overflow: hidden;
}
.activity-feed h4 {
  margin: 0 0 10px;
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .04em;
}
.activity-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  animation: slideFeed 0.5s ease both;
}
.activity-item:last-child { border-bottom: 0; }
@keyframes slideFeed {
  from { opacity: 0; transform: translateX(-8px); }
  to { opacity: 1; transform: none; }
}
.activity-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.activity-dot.pass { background: var(--green); }
.activity-dot.block { background: var(--danger); }
.activity-dot.warn { background: #f59e0b; }
.activity-item time { margin-left: auto; font-size: 11px; color: var(--muted-light); white-space: nowrap; }

.pricing-note {
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  margin-top: -24px;
  margin-bottom: 32px;
}
.pricing-volume {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin-top: 4px;
  font-weight: 500;
}

.section { padding: 80px 32px; max-width: 1200px; margin: 0 auto; }
.section-header { text-align: center; margin-bottom: 48px; }
.section-header h2 { font-size: 36px; font-weight: 800; color: var(--navy); margin: 0 0 12px; }
.section-header p { color: var(--muted); font-size: 16px; margin: 0; }

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  align-items: start;
  max-width: 800px;
  margin: 0 auto;
}
.pricing-card {
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  text-align: center;
  position: relative;
  transition: box-shadow .2s;
}
.pricing-card:hover { box-shadow: var(--shadow); }
.pricing-card.popular {
  border-color: var(--blue);
  box-shadow: 0 8px 32px rgba(37,99,235,.15);
}
.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--blue);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.pricing-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #eff6ff;
  color: var(--blue);
  display: grid;
  place-items: center;
  margin: 0 auto 16px;
}
.pricing-icon svg { width: 24px; height: 24px; }
.pricing-card h3 { margin: 0 0 8px; font-size: 20px; }
.pricing-price { font-size: 36px; font-weight: 800; color: var(--navy); margin: 12px 0; }
.pricing-price span { font-size: 16px; font-weight: 500; color: var(--muted); }
.pricing-features {
  list-style: none;
  padding: 0;
  margin: 24px 0;
  text-align: left;
  font-size: 14px;
  color: var(--muted);
}
.pricing-features li {
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 8px;
}
.pricing-features li::before { content: '✓'; color: var(--green); font-weight: 700; }
.pricing-custom {
  margin-top: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: var(--radius);
  padding: 28px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.pricing-custom p { margin: 0; color: var(--muted); }
.pricing-custom strong { display: block; color: var(--navy); font-size: 16px; margin-bottom: 4px; }

.integrations-row {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}
.integration-box {
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 32px;
  min-width: 160px;
  text-align: center;
  font-weight: 600;
  color: var(--navy);
  font-size: 14px;
}
.integration-box span { display: block; font-size: 28px; margin-bottom: 8px; }

.landing-footer {
  background: var(--navy);
  color: #94a3b8;
  padding: 56px 32px 24px;
}
.landing-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.landing-footer h4 { color: #fff; font-size: 14px; margin: 0 0 16px; }
.landing-footer ul { list-style: none; padding: 0; margin: 0; }
.landing-footer li { margin-bottom: 10px; }
.landing-footer a { color: #94a3b8; font-size: 14px; }
.landing-footer a:hover { color: #fff; }
.landing-footer .logo { color: #fff; margin-bottom: 12px; }
.landing-footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.1);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
}

/* Dashboard */
.app { display: flex; min-height: 100vh; }
.sidebar {
  width: 260px;
  flex-shrink: 0;
  background: var(--sidebar);
  color: #fff;
  display: flex;
  flex-direction: column;
  padding: 0;
}
.sidebar-brand {
  padding: 24px 20px 20px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.sidebar-brand .logo { color: #fff; font-size: 18px; }
.sidebar-brand .logo-mark { width: 32px; height: 32px; }
.sidebar-brand p { margin: 6px 0 0; font-size: 12px; color: var(--sidebar-text); }
.nav-section { padding: 12px 12px 4px; }
.nav-section-title {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #64748b;
  padding: 8px 10px 6px;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  margin: 2px 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--sidebar-text);
  font: inherit;
  cursor: pointer;
  text-decoration: none;
  font-size: 14px;
}
.nav-item svg { width: 18px; height: 18px; flex-shrink: 0; opacity: .7; }
.nav-item:hover { background: rgba(255,255,255,.06); color: #fff; }
.nav-item.active { background: rgba(16,185,129,.18); color: #fff; font-weight: 600; }
.nav-item .count {
  margin-left: auto;
  background: rgba(255,255,255,.12);
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
}
.sidebar-footer {
  margin-top: auto;
  padding: 16px;
  border-top: 1px solid rgba(255,255,255,.08);
  display: flex;
  gap: 8px;
}
.sidebar-footer .btn-icon { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.1); color: var(--sidebar-text); }
.sidebar-footer .btn-icon:hover { background: rgba(255,255,255,.12); color: #fff; }

.main { flex: 1; padding: 28px 32px 48px; overflow-x: hidden; background: var(--bg); }
.main-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}
.main-top h2 { margin: 0 0 4px; font-size: 24px; font-weight: 700; }
.main-top p { margin: 0; color: var(--muted); font-size: 14px; }
.main-actions { display: flex; gap: 8px; }

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}
.stat {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}
.stat .num { font-size: 32px; font-weight: 800; color: var(--blue); line-height: 1; }
.stat .lbl { color: var(--muted); font-size: 13px; margin-top: 6px; }

.panel {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 20px;
}
.panel h3 { margin: 0 0 8px; font-size: 18px; }
.panel p { color: var(--muted); margin: 0 0 16px; font-size: 14px; }
.code-block {
  background: var(--navy);
  color: #e2e8f0;
  border-radius: 10px;
  padding: 16px;
  overflow-x: auto;
  font: 13px/1.55 ui-monospace, monospace;
  white-space: pre-wrap;
  word-break: break-word;
}

.session-picker-wrap { margin-bottom: 20px; }
.session-picker-wrap label { display: block; font-weight: 600; font-size: 13px; margin-bottom: 6px; }
.session-picker-wrap select { padding-left: 14px; }
.session-detail {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.session-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  align-items: center;
}
.session-meta { color: var(--muted); font-size: 13px; margin-top: 4px; }
.badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}
.badge.terminate { background: var(--danger-bg); color: var(--danger); }
.badge.continue, .badge.in_progress { background: #eff6ff; color: var(--blue); }
.badge.completed { background: var(--green-bg); color: var(--green); }
.progress-wrap { padding: 0 20px 16px; }
.progress-label { font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.progress-bar { height: 8px; border-radius: 999px; background: var(--border); overflow: hidden; }
.progress-fill { height: 100%; background: var(--blue); border-radius: 999px; transition: width .3s; }
.progress-text { font-size: 12px; color: var(--muted); margin-top: 6px; }
.failure {
  margin: 0 20px 16px;
  padding: 14px 16px;
  border-radius: 10px;
  background: var(--danger-bg);
  color: #991b1b;
  border: 1px solid #fecaca;
  font-size: 14px;
}
.qa-list { padding: 0 20px 20px; }
.qa-item { border-top: 1px solid var(--border); padding: 14px 0; }
.qa-item:first-child { border-top: 0; }
.qa-q { font-weight: 600; margin-bottom: 4px; font-size: 14px; }
.qa-a { color: var(--muted); font-size: 14px; }
.qa-type { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 4px; }
.empty { text-align: center; color: var(--muted); padding: 48px 16px; }

.table-wrap {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { padding: 12px 16px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
th { background: var(--bg); font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 600; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; }
.actions .btn { padding: 8px 14px; font-size: 13px; }

.user-list { display: flex; flex-direction: column; gap: 12px; }
.user-list.empty {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 48px 16px;
  text-align: center;
  color: var(--muted);
}
.user-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.user-card.expanded { border-color: #bfdbfe; box-shadow: 0 4px 16px rgba(37, 99, 235, 0.08); }
.user-card-head {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 12px;
  align-items: center;
  padding: 16px 18px;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
  font: inherit;
  color: inherit;
}
.user-card-head:hover { background: var(--bg); }
.user-card-main { min-width: 0; }
.user-card-name { display: block; font-size: 15px; color: var(--navy); margin-bottom: 2px; }
.user-card-email { display: block; font-size: 13px; color: var(--muted); word-break: break-word; }
.user-card-meta { font-size: 12px; color: var(--muted-light); white-space: nowrap; }
.user-card-chevron {
  color: var(--muted);
  font-size: 14px;
  transition: transform 0.2s ease;
}
.user-card.expanded .user-card-chevron { transform: rotate(180deg); color: var(--blue); }
.user-card-body {
  padding: 0 18px 18px;
  border-top: 1px solid var(--border);
}
.user-cred-grid {
  display: grid;
  gap: 12px;
  padding-top: 14px;
}
.user-cred-grid div { font-size: 13px; }
.user-cred-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin-bottom: 4px;
}
.user-cred-grid code {
  display: block;
  font-size: 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 10px;
  word-break: break-all;
}
.break-all { word-break: break-all; }
.user-card-actions { margin-top: 14px; }

@media (max-width: 960px) {
  .user-card-head { grid-template-columns: 1fr auto; }
  .user-card-meta { display: none; }
}
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #b91c1c; color: #fff; }

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(4px);
  display: grid;
  place-items: center;
  z-index: 1000;
  padding: 20px;
  animation: fadeIn .2s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 36px 32px;
  max-width: 420px;
  width: 100%;
  text-align: center;
  animation: slideUp .25s ease;
}
@keyframes slideUp { from { transform: translateY(16px); opacity: 0; } to { transform: none; opacity: 1; } }
.modal-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin: 0 auto 20px;
}
.modal-icon.success { background: var(--green-bg); color: var(--green); }
.modal-icon.info { background: #eff6ff; color: var(--blue); }
.modal-icon svg { width: 32px; height: 32px; }
.modal h3 { margin: 0 0 10px; font-size: 22px; color: var(--navy); }
.modal p { margin: 0 0 24px; color: var(--muted); font-size: 15px; line-height: 1.6; }
.modal .btn { min-width: 140px; }

@media (max-width: 960px) {
  .auth-body { grid-template-columns: 1fr; }
  .auth-marketing { display: none; }
  .auth-card { margin: 0 auto; }
  .hero { grid-template-columns: 1fr; }
  .hero-copy { max-width: none; }
  .hero-graph-wrap { margin: 8px auto 0; max-width: 100%; margin-right: auto; }
  .pricing-grid { grid-template-columns: 1fr; }
  .landing-footer-inner { grid-template-columns: 1fr 1fr; }
  .app { flex-direction: column; }
  .sidebar { width: 100%; }
  .stats { grid-template-columns: 1fr; }
  .landing-nav-links { display: none; }
  .hero-stat-grid { grid-template-columns: 1fr 1fr; }
}

/* Admin blue theme */
body.admin-theme { --accent: var(--blue); --accent-light: #3b82f6; --accent-bg: #eff6ff; --accent-border: #bfdbfe; }
body.admin-theme .auth-page {
  background: linear-gradient(135deg, #eff6ff 0%, #f8fafc 50%, #eef2ff 100%);
}
body.admin-theme a { color: var(--blue); }
body.admin-theme a:hover { color: var(--blue-dark); }
body.admin-theme .logo-mark { background: linear-gradient(135deg, #3b82f6, #2563eb); }
body.admin-theme .auth-marketing h1 em { color: var(--blue); }
body.admin-theme .auth-badge { background: var(--accent-bg); color: var(--blue); }
body.admin-theme .feature-icon { background: var(--accent-bg); color: var(--blue); }
body.admin-theme .auth-card-icon { background: var(--accent-bg); color: var(--blue); }
body.admin-theme .btn-primary {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}
body.admin-theme .btn-primary:hover {
  background: linear-gradient(135deg, #60a5fa, #1d4ed8);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.45);
}
body.admin-theme .input-wrap input:focus,
body.admin-theme .input-wrap select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}
body.admin-theme .auth-footer-trust svg { color: var(--blue); }
body.admin-theme .auth-footer-links a:hover { color: var(--blue); }
body.admin-theme .auth-links a { color: var(--blue); }
body.admin-theme .auth-privacy svg { color: var(--blue); }
body.admin-theme .wave-bg { background: radial-gradient(circle at 30% 80%, rgba(37,99,235,.08) 0%, transparent 70%); }
body.admin-theme .sidebar .nav-item.active { background: rgba(37, 99, 235, 0.2); }
body.admin-theme .sidebar-footer .btn-icon:hover { color: var(--blue); border-color: var(--accent-border); }
body.admin-theme .stat .num { color: var(--blue); }
body.admin-theme .badge { background: var(--accent-bg); color: var(--blue); }
body.admin-theme .main-actions .btn-icon:hover { color: var(--blue); border-color: var(--accent-border); }
body.admin-theme .modal-icon.success { background: var(--accent-bg); color: var(--blue); }
