:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --ink: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --soft: #f8fafc;
  --panel: #ffffff;
  --dark: #0f172a;
  --sky: #0284c7;
  --green: #059669;
  --amber: #d97706;
}

* { box-sizing: border-box; }
body { margin: 0; background: #f1f5f9; color: var(--ink); }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; border: 0; }
.shell { min-height: 100vh; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 10; background: #0f172a; color: #cbd5e1; border-bottom: 1px solid #1e293b; padding: 12px 20px; display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 900; color: white; }
.bolt { width: 28px; height: 28px; border-radius: 7px; background: #38bdf8; color: #082f49; display: grid; place-items: center; font-weight: 900; }
.pill { display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; padding: 4px 8px; font-size: 10px; font-weight: 800; text-transform: uppercase; background: rgba(14,165,233,.1); color: #7dd3fc; border: 1px solid rgba(125,211,252,.22); }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.tab { background: #111827; color: #cbd5e1; border: 1px solid #334155; padding: 8px 10px; border-radius: 8px; font-size: 12px; font-weight: 750; }
.tab.active { background: #38bdf8; color: #082f49; border-color: #38bdf8; }
.auth { min-height: 100vh; display: grid; place-items: center; background: #020617; color: white; padding: 28px; }
.auth-grid { width: min(1040px, 100%); display: grid; grid-template-columns: 1.1fr .9fr; gap: 36px; align-items: center; }
.auth h1 { margin: 0; font-size: clamp(32px, 5vw, 54px); letter-spacing: -.02em; }
.auth p { color: #94a3b8; line-height: 1.55; }
.auth-card { background: white; color: var(--ink); border-radius: 12px; border: 1px solid var(--line); padding: 22px; box-shadow: 0 24px 70px rgba(0,0,0,.38); }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; background: #f1f5f9; border-radius: 10px; margin-bottom: 18px; }
.seg button { padding: 10px; border-radius: 8px; background: transparent; color: #64748b; font-size: 12px; font-weight: 850; }
.seg button.active { background: #0f172a; color: white; }
.form { display: grid; gap: 12px; }
.field { display: grid; gap: 5px; }
.field label { font-size: 11px; text-transform: uppercase; color: #64748b; font-weight: 850; }
.field input, .field select, .field textarea { width: 100%; border: 1px solid var(--line); border-radius: 9px; padding: 10px 11px; outline: none; background: white; }
.primary { background: #0284c7; color: white; border-radius: 9px; padding: 11px 14px; font-weight: 850; }
.secondary { background: #0f172a; color: white; border-radius: 9px; padding: 9px 12px; font-weight: 800; }
.ghost { background: white; color: #334155; border: 1px solid var(--line); border-radius: 9px; padding: 9px 12px; font-weight: 800; }
.layout { display: flex; flex: 1; }
.sidebar { width: 250px; background: #0f172a; color: #94a3b8; padding: 22px 14px; display: flex; flex-direction: column; justify-content: space-between; }
.side-title { font-size: 10px; text-transform: uppercase; letter-spacing: .12em; color: #64748b; font-weight: 900; padding: 0 10px 12px; }
.nav { display: grid; gap: 6px; }
.nav button { background: transparent; color: #cbd5e1; text-align: left; padding: 11px 12px; border-radius: 9px; font-size: 13px; font-weight: 760; }
.nav button.active { background: #38bdf8; color: #082f49; }
.main { flex: 1; width: 100%; max-width: 1280px; margin: 0 auto; padding: 26px; }
.header { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; border-bottom: 1px solid var(--line); padding-bottom: 18px; margin-bottom: 20px; }
.header h2 { margin: 0; font-size: 26px; letter-spacing: -.02em; }
.header p { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
.grid { display: grid; gap: 18px; }
.metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.two { grid-template-columns: 2fr 1fr; }
.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 18px; box-shadow: 0 1px 2px rgba(15,23,42,.04); }
.metric { display: flex; justify-content: space-between; align-items: center; }
.metric span { display: block; font-size: 11px; color: #64748b; font-weight: 850; text-transform: uppercase; }
.metric strong { display: block; margin-top: 4px; font-size: 29px; letter-spacing: -.02em; }
.table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table th { text-align: left; color: #64748b; font-size: 11px; text-transform: uppercase; padding: 0 8px 10px; border-bottom: 1px solid #f1f5f9; }
.table td { padding: 12px 8px; border-bottom: 1px solid #f8fafc; vertical-align: top; }
.muted { color: var(--muted); }
.tiny { font-size: 11px; }
.status { display: inline-flex; border-radius: 999px; padding: 3px 8px; font-size: 10px; font-weight: 900; background: #f1f5f9; color: #334155; }
.status.green { background: #ecfdf5; color: #047857; }
.status.blue { background: #eff6ff; color: #0369a1; }
.status.amber { background: #fffbeb; color: #b45309; }
.list { display: grid; gap: 10px; }
.list-item { border: 1px solid #f1f5f9; background: #f8fafc; border-radius: 9px; padding: 12px; display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.avatar { width: 36px; height: 36px; border-radius: 999px; object-fit: cover; }
.split { display: flex; align-items: center; gap: 10px; }
.mobile-frame { width: min(420px, 100%); margin: 0 auto; background: #020617; color: #e2e8f0; min-height: 620px; border-radius: 28px; border: 1px solid #1e293b; padding: 24px; display: flex; flex-direction: column; justify-content: space-between; }
.clock { width: 168px; height: 168px; border-radius: 999px; background: #38bdf8; color: #082f49; margin: 26px auto 16px; display: grid; place-items: center; text-align: center; font-weight: 950; border: 5px solid #7dd3fc; }
.portal { width: min(920px, 100%); margin: 0 auto; background: #f8fafc; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.portal-head { background: #082f49; color: white; padding: 22px; display: flex; justify-content: space-between; gap: 14px; }
.portal-body { padding: 22px; display: grid; grid-template-columns: 3fr 2fr; gap: 18px; }
.pay-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pay-grid button.active { background: #0284c7; color: white; border-color: #0284c7; }
.hidden { display: none !important; }
.product-hero { display: grid; grid-template-columns: 1.25fr .95fr; gap: 22px; align-items: stretch; border-bottom: 1px solid var(--line); padding-bottom: 24px; margin-bottom: 24px; }
.product-hero h1 { margin: 12px 0 8px; font-size: clamp(34px, 4.5vw, 58px); line-height: .98; letter-spacing: -.04em; max-width: 820px; }
.product-hero p { color: var(--muted); font-size: 18px; line-height: 1.45; max-width: 880px; }
.version-tag { display: inline-flex; margin-left: 8px; color: #64748b; font-size: 11px; font-weight: 800; }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; }
.tour-card { background: #0f172a; color: white; border: 1px solid #1e293b; border-radius: 12px; padding: 20px; box-shadow: 0 16px 48px rgba(15,23,42,.18); }
.tour-card h3 { margin: 0 0 8px; font-size: 19px; }
.tour-card p { color: #cbd5e1; font-size: 14px; margin: 0 0 14px; }
.tour-list { display: grid; gap: 9px; margin: 14px 0 18px; }
.tour-list div { background: #020617; color: #e0f2fe; border: 1px solid #1e293b; border-radius: 9px; padding: 11px; font-size: 13px; font-weight: 800; }
.section-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 18px; }
.intro-card h2, .card h2 { margin: 0 0 10px; font-size: 22px; letter-spacing: -.02em; }
.intro-card p { color: var(--muted); line-height: 1.55; margin: 0; }
.section-head { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-bottom: 16px; }
.section-head h2 { margin: 0; font-size: 24px; letter-spacing: -.02em; }
.workflow { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.flow-step { display: grid; grid-template-columns: 36px 1fr; gap: 11px; align-items: start; border: 1px solid #e2e8f0; border-radius: 10px; padding: 14px; background: #f8fafc; min-height: 134px; }
.flow-step span { width: 32px; height: 32px; border-radius: 999px; display: grid; place-items: center; background: #0284c7; color: white; font-weight: 900; font-size: 13px; }
.flow-step strong { display: block; font-size: 14px; color: #0f172a; margin-bottom: 5px; }
.flow-step p { margin: 0; color: #64748b; font-size: 12px; line-height: 1.45; }
.feature-list { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.feature-list div { background: #f8fafc; border: 1px solid #e2e8f0; color: #334155; border-radius: 8px; padding: 10px; font-size: 13px; font-weight: 700; }
.role-list { display: grid; gap: 10px; }
.role-item { border: 1px solid #e2e8f0; background: #f8fafc; border-radius: 10px; padding: 13px; }
.role-item strong { display: block; color: #0f172a; margin-bottom: 5px; }
.role-item p { margin: 0; color: #64748b; font-size: 13px; line-height: 1.45; }
@media (max-width: 900px) {
  .auth-grid, .two, .three, .metrics, .portal-body, .product-hero, .section-grid, .workflow, .feature-list { grid-template-columns: 1fr; }
  .layout { display: block; }
  .sidebar { width: 100%; display: block; }
  .main { padding: 18px; }
  .header { flex-direction: column; }
  .section-head { align-items: flex-start; flex-direction: column; }
}
