/**
 * GenAIGuard Pro — SaaS Stylesheet
 * Covers: Landing page, Login/Register, Payment, Dashboard
 */

/* ── Reset & Base ───────────────────────────────────────── */
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }

:root {
  --brand:    #667eea;
  --brand2:   #764ba2;
  --green:    #10b981;
  --red:      #ef4444;
  --orange:   #f59e0b;
  --blue:     #3b82f6;
  --purple:   #8b5cf6;
  --pink:     #ec4899;
  --teal:     #14b8a6;
  --yellow:   #eab308;

  --bg:       #f7f8fc;
  --surface:  #ffffff;
  --border:   #e5e7eb;
  --text:     #1f2328;
  --muted:    #6b7280;
  --sidebar-w: 240px;
  --topbar-h:  60px;

  --radius:   12px;
  --radius-lg: 20px;
  --shadow:   0 2px 8px rgba(0,0,0,.08);
  --shadow-lg: 0 8px 32px rgba(0,0,0,.12);
}

body.dark {
  --bg:      #0f1117;
  --surface: #1a1d27;
  --border:  #2d3140;
  --text:    #e2e8f0;
  --muted:   #94a3b8;
}

body {
  font-family: -apple-system, "Segoe UI", system-ui, sans-serif;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }

/* ── Typography ─────────────────────────────────────────── */
h1 { font-size: 2rem; font-weight: 800; line-height: 1.2; }
h2 { font-size: 1.75rem; font-weight: 700; }
h3 { font-size: 1.125rem; font-weight: 600; }
h4 { font-size: 1rem; font-weight: 600; }
small { font-size: 12px; color: var(--muted); }

.grad {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand2) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Container ──────────────────────────────────────────── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ── Buttons ────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 20px; border-radius: var(--radius);
  font-size: 14px; font-weight: 600; cursor: pointer;
  border: none; transition: all .2s ease; text-decoration: none;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn-primary  { background: linear-gradient(135deg, var(--brand), var(--brand2)); color: #fff; }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(102,126,234,.4); }
.btn-outline  { background: transparent; border: 2px solid var(--brand); color: var(--brand); }
.btn-outline:hover { background: var(--brand); color: #fff; }
.btn-ghost    { background: transparent; color: var(--muted); border: 2px solid var(--border); }
.btn-ghost:hover { background: var(--border); }
.btn-white    { background: #fff; color: var(--brand); }
.btn-white:hover { background: #f0f0ff; }
.btn-social   { background: var(--surface); border: 1px solid var(--border); color: var(--text); flex:1; justify-content:center; }
.btn-social:hover { background: var(--bg); }
.btn-lg       { padding: 14px 28px; font-size: 15px; }
.btn-sm       { padding: 6px 14px; font-size: 13px; }
.btn-xs       { padding: 4px 8px; font-size: 12px; }
.btn-block    { display: flex; width: 100%; justify-content: center; }
.btn:disabled { opacity: .6; cursor: not-allowed; transform: none; }

/* ── Spinner ────────────────────────────────────────────── */
.spinner {
  width: 16px; height: 16px;
  border: 2px solid rgba(255,255,255,.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .8s linear infinite;
  display: inline-block; vertical-align: middle;
}
@keyframes spin { to { transform: rotate(360deg); } }
.hidden { display: none !important; }

/* ── Forms ──────────────────────────────────────────────── */
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 500; margin-bottom: 6px; font-size: 13px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius); font-size: 14px;
  background: var(--surface); color: var(--text);
  transition: border-color .2s;
}
.field input:focus, .field select:focus { outline: none; border-color: var(--brand); }
.field-row { display: flex; gap: 12px; align-items: center; margin-bottom: 16px; }
.field-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.input-wrap { position: relative; }
.input-wrap > i { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.input-wrap input { padding-left: 38px; }
.eye-btn { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); background: none; border: none; cursor: pointer; color: var(--muted); }
.checkbox-label { display: flex; align-items: center; gap: 8px; cursor: pointer; font-size: 13px; }
.checkbox-label input { width: 14px; height: 14px; }
.opt { color: var(--muted); font-weight: 400; }

/* ── Toggle ─────────────────────────────────────────────── */
.toggle-label { position: relative; display: inline-flex; align-items: center; cursor: pointer; }
.toggle-label input { opacity: 0; width: 0; height: 0; }
.toggle-slider {
  width: 40px; height: 22px;
  background: var(--border);
  border-radius: 99px;
  position: relative; display: inline-block;
  transition: .2s;
}
.toggle-slider::after {
  content: ''; position: absolute;
  top: 3px; left: 3px;
  width: 16px; height: 16px;
  background: #fff; border-radius: 50%;
  transition: .2s;
}
.toggle-label input:checked + .toggle-slider { background: var(--green); }
.toggle-label input:checked + .toggle-slider::after { transform: translateX(18px); }

/* ── Alerts ─────────────────────────────────────────────── */
.auth-alert { padding: 12px 16px; border-radius: var(--radius); margin-bottom: 16px; font-size: 13px; display: flex; align-items: center; gap: 8px; }
.auth-alert-error   { background: #fef2f2; border: 1px solid #fecaca; color: #dc2626; }
.auth-alert-success { background: #f0fdf4; border: 1px solid #bbf7d0; color: #16a34a; }
.auth-alert-info    { background: #eff6ff; border: 1px solid #bfdbfe; color: #2563eb; }

/* ── Password strength ──────────────────────────────────── */
.password-strength { font-size: 12px; margin-top: 4px; }
.promo-msg { font-size: 12px; margin-top: 4px; }
.text-green { color: var(--green); }
.text-red   { color: var(--red); }

/* ════════════════════════════════════════════════════════
   NAV (Landing)
═══════════════════════════════════════════════════════ */
.nav { background: rgba(255,255,255,.95); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 100; }
.nav-inner { max-width: 1200px; margin: 0 auto; padding: 0 24px; height: 64px; display: flex; align-items: center; justify-content: space-between; }
.logo { font-size: 20px; font-weight: 800; color: var(--text); display: inline-flex; align-items: center; gap: 8px; }
.logo i { color: var(--brand); }
.logo span { background: linear-gradient(135deg, var(--brand), var(--brand2)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.logo.white { color: #fff; }
.logo.white i { color: #fff; }
.logo.white span { background: none; -webkit-text-fill-color: rgba(255,255,255,.8); }
.nav-links { display: flex; align-items: center; gap: 24px; }
.nav-links a { font-size: 14px; font-weight: 500; color: var(--muted); transition: color .2s; }
.nav-links a:hover { color: var(--text); text-decoration: none; }
.hamburger { display: none; background: none; border: none; font-size: 20px; cursor: pointer; }
.mobile-menu { display: none; padding: 16px 24px; border-top: 1px solid var(--border); }
.mobile-menu.open { display: block; }
.mobile-menu a { display: block; padding: 10px 0; font-weight: 500; color: var(--text); }

/* ════════════════════════════════════════════════════════
   HERO
═══════════════════════════════════════════════════════ */
.hero {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  color: #fff; padding: 100px 0 80px; position: relative; overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; background: radial-gradient(ellipse at 70% 50%, rgba(102,126,234,.15) 0%, transparent 60%); pointer-events: none; }
.hero-content { position: relative; z-index: 1; text-align: center; }
.badge-pill { display: inline-flex; align-items: center; gap: 8px; background: rgba(102,126,234,.2); border: 1px solid rgba(102,126,234,.4); color: #a5b4fc; padding: 6px 16px; border-radius: 99px; font-size: 13px; font-weight: 600; margin-bottom: 24px; }
.hero h1 { font-size: clamp(2.5rem, 5vw, 4rem); color: #fff; margin-bottom: 20px; }
.hero-sub { font-size: 1.1rem; color: rgba(255,255,255,.7); max-width: 640px; margin: 0 auto 36px; line-height: 1.7; }
.hero-cta { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 60px; }
.hero-stats { display: flex; gap: 48px; justify-content: center; flex-wrap: wrap; }
.hstat { text-align: center; }
.hstat span { display: block; font-size: 2rem; font-weight: 800; background: linear-gradient(135deg, #fff, #a5b4fc); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hstat small { color: rgba(255,255,255,.6); font-size: 13px; }

/* ════════════════════════════════════════════════════════
   TRUST BAR
═══════════════════════════════════════════════════════ */
.trust-bar { padding: 32px 0; background: #f9fafb; border-bottom: 1px solid var(--border); }
.trust-label { text-align: center; color: var(--muted); font-size: 13px; margin-bottom: 16px; }
.trust-logos { display: flex; gap: 32px; justify-content: center; flex-wrap: wrap; }
.trust-logos span { font-weight: 700; color: #9ca3af; font-size: 15px; }

/* ════════════════════════════════════════════════════════
   SECTIONS
═══════════════════════════════════════════════════════ */
.section { padding: 80px 0; }
.section.alt { background: #f9fafb; }
.section-header { text-align: center; margin-bottom: 56px; }
.section-header h2 { margin-bottom: 12px; }
.section-header p { color: var(--muted); font-size: 16px; }

/* Features grid */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.feat-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px; transition: transform .2s, box-shadow .2s; }
.feat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.feat-icon { width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 20px; margin-bottom: 16px; }
.feat-icon.red    { background: #fef2f2; color: var(--red); }
.feat-icon.orange { background: #fffbeb; color: var(--orange); }
.feat-icon.purple { background: #f5f3ff; color: var(--purple); }
.feat-icon.blue   { background: #eff6ff; color: var(--blue); }
.feat-icon.green  { background: #f0fdf4; color: var(--green); }
.feat-icon.yellow { background: #fefce8; color: var(--yellow); }
.feat-icon.teal   { background: #f0fdfa; color: var(--teal); }
.feat-icon.pink   { background: #fdf2f8; color: var(--pink); }
.feat-card h3 { margin-bottom: 8px; }
.feat-card p { color: var(--muted); font-size: 13px; line-height: 1.6; }

/* Steps */
.steps { display: flex; align-items: flex-start; justify-content: center; gap: 0; flex-wrap: wrap; }
.step { text-align: center; max-width: 200px; padding: 24px; }
.step-num { width: 52px; height: 52px; background: linear-gradient(135deg, var(--brand), var(--brand2)); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 800; margin: 0 auto 16px; }
.step h4 { margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 13px; }
.step-arrow { padding: 60px 8px 0; color: var(--muted); font-size: 20px; }

/* ════════════════════════════════════════════════════════
   PRICING
═══════════════════════════════════════════════════════ */
.billing-toggle { display: flex; align-items: center; justify-content: center; gap: 16px; margin-bottom: 40px; }
.bill-opt { font-size: 14px; font-weight: 600; color: var(--muted); cursor: pointer; }
.bill-opt.active { color: var(--brand); }
.toggle-switch { width: 44px; height: 24px; background: var(--border); border-radius: 99px; cursor: pointer; position: relative; }
.toggle-ball { width: 18px; height: 18px; background: var(--brand); border-radius: 50%; position: absolute; top: 3px; left: 3px; transition: transform .2s; }
.save-badge { background: var(--green); color: #fff; padding: 2px 8px; border-radius: 99px; font-size: 11px; margin-left: 6px; }

.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; align-items: start; }
.plan-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 32px; position: relative; }
.plan-card.featured { border-color: var(--brand); box-shadow: 0 0 0 2px var(--brand); }
.plan-badge { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); background: linear-gradient(135deg, var(--brand), var(--brand2)); color: #fff; padding: 4px 16px; border-radius: 99px; font-size: 11px; font-weight: 700; white-space: nowrap; }
.plan-header { margin-bottom: 24px; }
.plan-header h3 { font-size: 1.2rem; margin-bottom: 8px; }
.plan-header p { color: var(--muted); font-size: 13px; }
.plan-price { display: flex; align-items: baseline; gap: 4px; margin: 8px 0; }
.plan-price .amount { font-size: 2.5rem; font-weight: 800; color: var(--text); }
.plan-price small { color: var(--muted); }
.plan-features { list-style: none; margin-bottom: 28px; }
.plan-features li { display: flex; align-items: center; gap: 10px; padding: 8px 0; font-size: 13px; border-bottom: 1px solid var(--border); }
.plan-features li i { color: var(--green); }
.plan-features li.dim { color: var(--muted); }
.plan-features li.dim i { color: #d1d5db; }

/* ════════════════════════════════════════════════════════
   CTA BANNER
═══════════════════════════════════════════════════════ */
.cta-banner { background: linear-gradient(135deg, var(--brand), var(--brand2)); padding: 64px 0; color: #fff; text-align: center; }
.cta-inner h2 { color: #fff; margin-bottom: 12px; }
.cta-inner p { color: rgba(255,255,255,.8); margin-bottom: 28px; font-size: 16px; }

/* ════════════════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════════════ */
.footer { background: #111827; color: #9ca3af; padding: 40px 0 0; }
.footer-inner { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 24px; padding-bottom: 32px; }
.footer .logo { color: #fff; }
.footer .logo span { -webkit-text-fill-color: #a5b4fc; }
.footer p { font-size: 13px; margin-top: 6px; }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-links a { color: #9ca3af; font-size: 13px; }
.footer-links a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid #1f2937; padding: 16px 24px; text-align: center; font-size: 12px; }

/* ════════════════════════════════════════════════════════
   AUTH PAGES
═══════════════════════════════════════════════════════ */
.auth-body {
  background: linear-gradient(135deg, #1a1a2e 0%, #0f3460 100%);
  min-height: 100vh; display: flex; align-items: stretch;
}
.auth-container {
  display: flex; width: 100%; max-width: 1000px; margin: auto;
  background: var(--surface); border-radius: 24px;
  overflow: hidden; box-shadow: 0 24px 80px rgba(0,0,0,.3);
  min-height: 600px;
}
.auth-left {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand2) 100%);
  padding: 48px 40px; flex: 1; display: flex; flex-direction: column;
  color: #fff;
}
.auth-hero-text { flex: 1; margin: 32px 0; }
.auth-hero-text h2 { color: #fff; font-size: 1.75rem; margin-bottom: 12px; }
.auth-hero-text p { color: rgba(255,255,255,.75); font-size: 15px; line-height: 1.7; }
.auth-features { display: flex; flex-direction: column; gap: 12px; margin-bottom: 28px; }
.auth-feat { display: flex; align-items: center; gap: 10px; font-size: 14px; color: rgba(255,255,255,.9); }
.auth-feat i { opacity: .8; width: 18px; }
.auth-trust { font-size: 13px; color: rgba(255,255,255,.7); }

.auth-right { flex: 1; padding: 48px 40px; display: flex; flex-direction: column; overflow-y: auto; }
.auth-tabs { display: flex; gap: 0; margin-bottom: 28px; border-bottom: 2px solid var(--border); }
.auth-tab { flex: 1; padding: 12px; background: none; border: none; font-size: 15px; font-weight: 600; color: var(--muted); cursor: pointer; border-bottom: 3px solid transparent; transition: all .2s; margin-bottom: -2px; }
.auth-tab.active { color: var(--brand); border-bottom-color: var(--brand); }
.auth-form h3 { font-size: 1.4rem; margin-bottom: 4px; }
.form-sub { color: var(--muted); font-size: 13px; margin-bottom: 24px; }
.demo-creds { background: #eff6ff; border: 1px solid #bfdbfe; padding: 10px 14px; border-radius: var(--radius); font-size: 12px; color: #1d4ed8; margin-bottom: 20px; }
.forgot-link { float: right; color: var(--brand); font-size: 12px; font-weight: 400; }
.divider { text-align: center; margin: 20px 0; position: relative; color: var(--muted); font-size: 12px; }
.divider::before, .divider::after { content: ''; position: absolute; top: 50%; width: 40%; height: 1px; background: var(--border); }
.divider::before { left: 0; } .divider::after { right: 0; }
.social-btns { display: flex; gap: 12px; margin-bottom: 16px; }
.auth-switch { text-align: center; font-size: 13px; color: var(--muted); margin-top: 16px; }

/* ════════════════════════════════════════════════════════
   PAYMENT PAGE
═══════════════════════════════════════════════════════ */
.pay-page { display: flex; min-height: 100vh; }
.pay-summary {
  width: 380px; flex-shrink: 0;
  background: linear-gradient(160deg, #1a1a2e 0%, #0f3460 100%);
  padding: 48px 36px; display: flex; flex-direction: column;
  color: rgba(255,255,255,.85);
}
.order-card { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15); border-radius: var(--radius-lg); padding: 24px; margin-bottom: 24px; }
.order-card h3 { color: #fff; margin-bottom: 16px; }
.order-plan { display: flex; align-items: center; gap: 12px; padding: 12px; background: rgba(255,255,255,.1); border-radius: var(--radius); margin-bottom: 16px; }
.order-icon { width: 36px; height: 36px; background: var(--brand); border-radius: 8px; display: flex; align-items: center; justify-content: center; color: #fff; }
.order-plan > div:last-child { margin-left: auto; font-size: 1.2rem; font-weight: 800; color: #fff; }
.order-plan strong { display: block; color: #fff; font-size: 14px; }
.order-plan small { color: rgba(255,255,255,.6); }
.order-items { display: flex; flex-direction: column; gap: 8px; }
.order-item { display: flex; justify-content: space-between; font-size: 13px; }
.order-divider { border: none; border-top: 1px solid rgba(255,255,255,.15); margin: 12px 0; }
.order-total { display: flex; justify-content: space-between; font-size: 16px; font-weight: 700; color: #fff; }
.order-note { font-size: 12px; color: rgba(255,255,255,.5); margin-top: 12px; line-height: 1.5; }
.pay-trust { display: flex; flex-direction: column; gap: 10px; margin-bottom: 24px; }
.trust-item { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.trust-item i { color: var(--green); }
.pay-badges { display: flex; gap: 8px; flex-wrap: wrap; }
.pay-badge { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); padding: 4px 10px; border-radius: 6px; font-size: 11px; font-weight: 700; color: rgba(255,255,255,.8); }

.pay-form-wrap { flex: 1; background: var(--surface); padding: 48px; overflow-y: auto; }
.pay-form-header { margin-bottom: 28px; }
.pay-form-header h2 { margin-bottom: 6px; }
.pay-form-header p { color: var(--muted); }
.demo-notice { background: #fffbeb; border: 1px solid #fde68a; padding: 12px 16px; border-radius: var(--radius); font-size: 13px; color: #92400e; margin-bottom: 20px; }
.demo-notice code { background: rgba(0,0,0,.08); padding: 1px 6px; border-radius: 4px; font-family: monospace; }

.pay-steps { display: flex; align-items: center; margin-bottom: 32px; }
.pay-step { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); font-weight: 500; }
.pay-step span { width: 24px; height: 24px; border-radius: 50%; background: var(--border); color: var(--muted); display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; }
.pay-step.active span { background: var(--brand); color: #fff; }
.pay-step.active { color: var(--text); }
.pay-step.done span { background: var(--green); color: #fff; }
.pay-step-line { flex: 1; height: 2px; background: var(--border); margin: 0 8px; }
.step-title { display: flex; align-items: center; gap: 8px; margin-bottom: 20px; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.btn-row { display: flex; gap: 12px; justify-content: flex-end; margin-top: 24px; }
.promo-row { display: flex; gap: 8px; }
.promo-row input { flex: 1; }

/* Card preview */
.card-preview {
  background: linear-gradient(135deg, #1a1a2e, #16213e);
  border-radius: 16px; padding: 24px; margin-bottom: 24px;
  color: #fff; position: relative; min-height: 160px;
  box-shadow: 0 8px 24px rgba(0,0,0,.3);
}
.card-chip i { font-size: 24px; color: #d4af37; margin-bottom: 16px; display: block; }
.card-number-disp { font-size: 18px; font-family: monospace; letter-spacing: 3px; margin-bottom: 20px; }
.card-row { display: flex; justify-content: space-between; font-size: 13px; }
.card-row small { opacity: .6; display: block; font-size: 10px; text-transform: uppercase; letter-spacing: 1px; }
.card-logo { position: absolute; top: 24px; right: 24px; font-size: 28px; opacity: .9; }
.card-brand { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); font-size: 20px; color: var(--muted); }

/* Success */
.success-anim { text-align: center; padding: 32px 0 16px; }
.success-circle { width: 80px; height: 80px; background: var(--green); border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: #fff; font-size: 32px; animation: popIn .5s ease; }
@keyframes popIn { 0% { transform: scale(0); } 70% { transform: scale(1.1); } 100% { transform: scale(1); } }
.success-title { text-align: center; font-size: 1.5rem; margin: 16px 0 8px; }
.success-sub { text-align: center; color: var(--muted); margin-bottom: 24px; }
.success-details { display: flex; flex-direction: column; gap: 12px; background: var(--bg); border-radius: var(--radius); padding: 20px; }
.sdet { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.sdet i { color: var(--brand); width: 16px; }

/* ════════════════════════════════════════════════════════
   DASHBOARD
═══════════════════════════════════════════════════════ */
.dash-body { background: var(--bg); }
.dash-topbar {
  position: fixed; top: 0; left: 0; right: 0; height: var(--topbar-h); z-index: 200;
  background: var(--surface); border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 20px; box-shadow: var(--shadow);
}
.dash-topbar-left, .dash-topbar-right { display: flex; align-items: center; gap: 16px; }
.sidebar-toggle { background: none; border: none; font-size: 18px; cursor: pointer; color: var(--muted); }
.plan-badge { background: #f0f4ff; color: var(--brand); padding: 4px 12px; border-radius: 99px; font-size: 12px; font-weight: 700; }
.icon-btn { background: none; border: none; font-size: 16px; cursor: pointer; color: var(--muted); padding: 6px; border-radius: 6px; }
.icon-btn:hover { background: var(--bg); }
.user-menu { position: relative; }
.user-avatar { width: 36px; height: 36px; background: linear-gradient(135deg, var(--brand), var(--brand2)); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; cursor: pointer; }
.user-drop { position: absolute; right: 0; top: 44px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 8px; width: 200px; z-index: 300; }
.user-drop-info { padding: 8px 12px; border-bottom: 1px solid var(--border); margin-bottom: 6px; }
.user-drop-info strong { display: block; font-size: 13px; }
.user-drop-info small { color: var(--muted); }
.user-drop hr { border: none; border-top: 1px solid var(--border); margin: 6px 0; }
.user-drop a { display: flex; align-items: center; gap: 10px; padding: 8px 12px; font-size: 13px; color: var(--text); border-radius: 8px; }
.user-drop a:hover { background: var(--bg); text-decoration: none; }

.dash-sidebar {
  position: fixed; top: var(--topbar-h); left: 0; bottom: 0;
  width: var(--sidebar-w); background: var(--surface);
  border-right: 1px solid var(--border);
  display: flex; flex-direction: column;
  padding: 16px 12px; z-index: 100;
  transition: transform .3s ease;
  overflow-y: auto;
}
.dash-sidebar.collapsed { transform: translateX(-100%); }
.dash-nav { flex: 1; }
.nav-section-label { font-size: 11px; font-weight: 600; text-transform: uppercase; color: var(--muted); letter-spacing: .08em; padding: 8px 12px 4px; }
.dash-nav-item { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 8px; font-size: 13px; font-weight: 500; color: var(--muted); transition: all .15s; margin-bottom: 2px; }
.dash-nav-item:hover { background: var(--bg); color: var(--text); text-decoration: none; }
.dash-nav-item.active { background: linear-gradient(135deg, var(--brand), var(--brand2)); color: #fff; }
.dash-nav-item i { width: 16px; }
.nav-badge { padding: 2px 7px; border-radius: 99px; font-size: 10px; font-weight: 700; margin-left: auto; }
.nav-badge.danger { background: #fef2f2; color: var(--red); }
.nav-badge.info { background: #eff6ff; color: var(--blue); }
.upgrade-link { background: linear-gradient(135deg, #fffbeb, #fef3c7); color: #b45309 !important; border: 1px solid #fde68a; margin-top: 8px; }
.sidebar-status { display: flex; align-items: center; gap: 10px; padding: 12px; background: var(--bg); border-radius: var(--radius); font-size: 12px; }
.status-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.status-dot.online { background: var(--green); box-shadow: 0 0 0 3px rgba(16,185,129,.2); animation: pulse 2s infinite; }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 3px rgba(16,185,129,.2); } 50% { box-shadow: 0 0 0 6px rgba(16,185,129,.1); } }
.sidebar-status strong { display: block; }

.dash-main {
  margin-left: var(--sidebar-w);
  margin-top: var(--topbar-h);
  padding: 28px;
  min-height: calc(100vh - var(--topbar-h));
  transition: margin-left .3s;
}

.dash-section { }
.dash-section.hidden { display: none; }
.dash-section-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 24px; flex-wrap: wrap; gap: 12px; }
.dash-section-header h1 { font-size: 1.5rem; }
.dash-section-header p { color: var(--muted); font-size: 13px; margin-top: 2px; }
.header-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

/* KPI cards */
.kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 24px; }
.kpi-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 20px; display: flex; align-items: center; gap: 14px; position: relative; overflow: hidden; }
.kpi-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; }
.kpi-card.red::before    { background: var(--red); }
.kpi-card.blue::before   { background: var(--blue); }
.kpi-card.orange::before { background: var(--orange); }
.kpi-card.green::before  { background: var(--green); }
.kpi-icon { width: 44px; height: 44px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; }
.kpi-card.red    .kpi-icon { background: #fef2f2; color: var(--red); }
.kpi-card.blue   .kpi-icon { background: #eff6ff; color: var(--blue); }
.kpi-card.orange .kpi-icon { background: #fffbeb; color: var(--orange); }
.kpi-card.green  .kpi-icon { background: #f0fdf4; color: var(--green); }
.kpi-info small { display: block; font-size: 12px; color: var(--muted); margin-bottom: 2px; }
.kpi-info strong { font-size: 1.6rem; font-weight: 800; }
.kpi-trend { margin-left: auto; font-size: 12px; color: var(--muted); text-align: right; }
.kpi-trend.up { color: var(--green); }

/* Charts */
.charts-row { display: flex; gap: 20px; margin-bottom: 24px; flex-wrap: wrap; }
.chart-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 20px; flex: 1; min-width: 260px; }
.chart-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.chart-header h3 { font-size: 14px; }
.card-link { font-size: 13px; color: var(--brand); }

/* Dash card */
.dash-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 20px; margin-bottom: 20px; }
.dash-card h3 { margin-bottom: 16px; }
.dash-card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }

/* Tables */
.table-wrap { overflow-x: auto; }
.dtable { width: 100%; border-collapse: collapse; font-size: 13px; }
.dtable th { text-align: left; padding: 10px 12px; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); border-bottom: 2px solid var(--border); font-weight: 600; }
.dtable td { padding: 12px 12px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.dtable tr:last-child td { border-bottom: none; }
.dtable tr:hover td { background: var(--bg); }
.empty-row { text-align: center; color: var(--muted); padding: 32px !important; }
.prompt-cell { max-width: 200px; font-family: monospace; font-size: 12px; }

/* Badges */
.risk-badge { padding: 3px 10px; border-radius: 99px; font-size: 11px; font-weight: 700; }
.r-critical { background: #fef2f2; color: var(--red); }
.r-high     { background: #fffbeb; color: var(--orange); }
.r-medium   { background: #f5f3ff; color: var(--purple); }
.r-low      { background: #f0fdf4; color: var(--green); }
.status-badge { padding: 3px 10px; border-radius: 99px; font-size: 11px; font-weight: 700; }
.blocked { background: #fef2f2; color: var(--red); }
.allowed { background: #f0fdf4; color: var(--green); }

/* Status dot small */
.status-dot-sm { width: 8px; height: 8px; border-radius: 50%; display: inline-block; margin-right: 4px; }
.status-dot-sm.online  { background: var(--green); }
.status-dot-sm.offline { background: #d1d5db; }
.status-dot-sm.away    { background: var(--orange); }

/* Employee KPIs */
.emp-kpi-row { display: flex; gap: 16px; margin-bottom: 16px; flex-wrap: wrap; }
.emp-kpi { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 20px; display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; }
.emp-kpi.online  i { color: var(--green); }
.emp-kpi.offline i { color: #d1d5db; }
.emp-kpi.risk    i { color: var(--orange); }

/* Search */
.search-input { padding: 7px 14px; border: 1.5px solid var(--border); border-radius: var(--radius); font-size: 13px; background: var(--surface); color: var(--text); }

/* Settings */
.settings-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.plan-info { font-size: 14px; margin-bottom: 8px; }

/* Toast */
.toast { position: fixed; bottom: 24px; right: 24px; background: #1f2328; color: #fff; padding: 12px 20px; border-radius: var(--radius); font-size: 13px; z-index: 9999; box-shadow: var(--shadow-lg); }

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 900px) {
  .auth-left { display: none; }
  .auth-container { max-width: 480px; }
  .pay-summary { display: none; }
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .step-arrow { display: none; }
}
@media (max-width: 640px) {
  .hamburger { display: block; }
  .nav-links { display: none; }
  .kpi-grid { grid-template-columns: 1fr 1fr; }
  .dash-main { margin-left: 0; padding: 16px; }
  .dash-sidebar { transform: translateX(-100%); }
  .dash-sidebar.open { transform: translateX(0); }
  .field-row-2 { grid-template-columns: 1fr; }
  h1 { font-size: 1.4rem; }
  .pay-form-wrap { padding: 24px 16px; }
}

/* Made with Bob */
