/* =============================================================
   Adaptive Fraud Detection & Fallback System — Prototype
   Shared design system (freezed_design reference)
   ============================================================= */

:root {
  /* Brand */
  --fop-primary: #0F2A47;
  --fop-primary-700: #0B1F35;
  --fop-accent: #2E7CF6;
  --fop-accent-soft: #E8F0FE;

  --cvp-primary: #4F46E5;
  --cvp-primary-700: #3F36C7;
  --cvp-accent: #14B8A6;
  --cvp-bg: #F7F8FF;

  /* Semantic */
  --success: #16A34A;
  --success-soft: #DCFCE7;
  --warning: #D97706;
  --warning-soft: #FEF3C7;
  --danger: #DC2626;
  --danger-soft: #FEE2E2;
  --info: #0EA5E9;
  --info-soft: #E0F2FE;

  /* Surfaces / text */
  --bg: #F4F6FB;
  --surface: #FFFFFF;
  --surface-2: #F9FAFC;
  --border: #E2E6EE;
  --border-strong: #CBD2DE;
  --text: #0F172A;
  --text-muted: #64748B;
  --text-faint: #94A3B8;

  /* Spacing & shape */
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 14px;
  --shadow-sm: 0 1px 2px rgba(15, 42, 71, 0.06);
  --shadow: 0 4px 12px rgba(15, 42, 71, 0.08);
  --shadow-lg: 0 18px 40px rgba(15, 42, 71, 0.16);

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, "Noto Sans", sans-serif;
  --font-mono: "SF Mono", "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--fop-accent); text-decoration: none; }
a:hover { text-decoration: underline; }

button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; font-size: 14px; }

/* =============================================================
   Layout — Fraud Operations Portal
   ============================================================= */

.app {
  display: grid;
  grid-template-columns: 248px 1fr;
  min-height: 100vh;
}

.sidebar {
  background: var(--fop-primary);
  color: #DCE3EE;
  padding: 22px 0;
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 22px 24px;
}

.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--fop-accent), #6F4BFB);
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.18);
}

.brand-text { line-height: 1.15; }
.brand-text .name { color: #fff; font-weight: 600; font-size: 14px; }
.brand-text .sub { color: #8DA0BD; font-size: 11px; letter-spacing: 0.04em; text-transform: uppercase; }

.nav-section-title {
  color: #8DA0BD;
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 14px 22px 6px;
}

.nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 22px;
  color: #C7D1E1;
  font-size: 13.5px;
  border-left: 3px solid transparent;
}

.nav a:hover {
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  text-decoration: none;
}

.nav a.active {
  background: rgba(46, 124, 246, 0.16);
  border-left-color: var(--fop-accent);
  color: #fff;
}

.nav a .icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  opacity: 0.85;
}

.sidebar-footer {
  margin-top: auto;
  padding: 14px 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 12px;
  color: #8DA0BD;
}

.sidebar-footer .user {
  display: flex; align-items: center; gap: 10px;
}
.avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6F4BFB, #2E7CF6);
  color: #fff; font-weight: 600; display: grid; place-items: center;
  font-size: 12px;
}

.main { display: flex; flex-direction: column; min-width: 0; }

.topbar {
  height: 60px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  gap: 16px;
}

.topbar h1 {
  font-size: 16px;
  font-weight: 600;
  margin: 0;
  color: var(--text);
}

.topbar .breadcrumbs {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

.topbar-actions { display: flex; align-items: center; gap: 10px; }

.search {
  position: relative;
  width: 320px;
}
.search input {
  width: 100%;
  height: 36px;
  padding: 0 12px 0 36px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  outline: none;
  transition: border-color .15s, background .15s;
}
.search input:focus { border-color: var(--fop-accent); background: #fff; }
.search svg { position: absolute; left: 11px; top: 9px; opacity: 0.5; }

.page { padding: 28px; flex: 1; }

.page-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.page-header h2 {
  margin: 0 0 4px 0;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.page-header .sub { color: var(--text-muted); font-size: 13.5px; }

/* =============================================================
   Cards, KPIs, tables, badges, buttons
   ============================================================= */

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.card-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.card-header h3 {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
}
.card-header .meta { color: var(--text-muted); font-size: 12px; }
.card-body { padding: 18px 20px; }
.card-footer {
  padding: 12px 20px;
  border-top: 1px solid var(--border);
  font-size: 12.5px;
  color: var(--text-muted);
  display: flex; justify-content: space-between; align-items: center;
}

.grid { display: grid; gap: 16px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-2-1 { grid-template-columns: 2fr 1fr; }
.grid-1-2 { grid-template-columns: 1fr 2fr; }
@media (max-width: 1100px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-2-1, .grid-1-2 { grid-template-columns: 1fr; }
}

.kpi {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  box-shadow: var(--shadow-sm);
}
.kpi .label {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
}
.kpi .value {
  font-size: 28px;
  font-weight: 700;
  margin-top: 4px;
  letter-spacing: -0.02em;
  display: flex; align-items: baseline; gap: 8px;
}
.kpi .value .unit { font-size: 14px; color: var(--text-muted); font-weight: 500; }
.kpi .delta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 8px;
  font-size: 12px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--success-soft);
  color: var(--success);
}
.kpi .delta.neg { background: var(--danger-soft); color: var(--danger); }
.kpi .delta.warn { background: var(--warning-soft); color: var(--warning); }
.kpi .delta.neutral { background: var(--info-soft); color: var(--info); }

.kpi .footnote { font-size: 11.5px; color: var(--text-faint); margin-top: 8px; }

/* Badge */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 600;
  background: var(--surface-2);
  color: var(--text-muted);
  border: 1px solid var(--border);
  line-height: 1.2;
}
.badge.success { background: var(--success-soft); color: var(--success); border-color: transparent; }
.badge.danger  { background: var(--danger-soft); color: var(--danger); border-color: transparent; }
.badge.warn    { background: var(--warning-soft); color: var(--warning); border-color: transparent; }
.badge.info    { background: var(--info-soft); color: var(--info); border-color: transparent; }
.badge.accent  { background: var(--fop-accent-soft); color: var(--fop-accent); border-color: transparent; }
.badge.solid   { background: var(--fop-primary); color: #fff; border-color: transparent; }

.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.dot.success { background: var(--success); }
.dot.danger { background: var(--danger); }
.dot.warn { background: var(--warning); }
.dot.info { background: var(--info); }
.dot.muted { background: var(--text-faint); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  transition: background .15s, border-color .15s, transform .05s;
  text-decoration: none;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--fop-accent); color: #fff; }
.btn-primary:hover { background: #1F66D9; }
.btn-secondary { background: var(--surface); color: var(--text); border-color: var(--border); }
.btn-secondary:hover { background: var(--surface-2); }
.btn-success { background: var(--success); color: #fff; }
.btn-success:hover { background: #128A3F; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #B91C1C; }
.btn-ghost { background: transparent; color: var(--text); }
.btn-ghost:hover { background: var(--surface-2); }
.btn-sm { padding: 5px 10px; font-size: 12px; }
.btn-lg { padding: 11px 18px; font-size: 14px; }
.btn-block { width: 100%; justify-content: center; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; }

/* Tables */
.table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 13px;
}
.table th {
  text-align: left;
  font-size: 11.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 600;
  padding: 12px 16px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
}
.table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.table tr:last-child td { border-bottom: none; }
.table tr.clickable { cursor: pointer; }
.table tr.clickable:hover td { background: var(--surface-2); }

.table .id { font-family: var(--font-mono); font-size: 12px; color: var(--text-muted); }

/* Inputs */
.field {
  display: flex; flex-direction: column; gap: 6px;
  margin-bottom: 16px;
}
.field label {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text);
}
.field .hint { font-size: 11.5px; color: var(--text-muted); }
.input, select.input, textarea.input {
  height: 38px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  width: 100%;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
textarea.input { height: auto; padding: 10px 12px; min-height: 96px; resize: vertical; }
.input:focus { border-color: var(--fop-accent); box-shadow: 0 0 0 3px rgba(46,124,246,.15); }

.toolbar {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin-bottom: 16px;
}
.toolbar .input, .toolbar select.input { width: auto; min-width: 140px; }
.toolbar .spacer { flex: 1; }

/* Risk pill */
.risk-pill {
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 700; font-size: 12px;
  padding: 4px 10px; border-radius: 999px;
}
.risk-pill.high { background: var(--danger-soft); color: var(--danger); }
.risk-pill.med  { background: var(--warning-soft); color: var(--warning); }
.risk-pill.low  { background: var(--success-soft); color: var(--success); }

/* Progress bar */
.progress { background: var(--surface-2); border-radius: 999px; height: 8px; overflow: hidden; }
.progress > span { display: block; height: 100%; border-radius: 999px; background: var(--fop-accent); }

/* Detail rows */
.kv {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 6px 14px;
  font-size: 13px;
}
.kv dt { color: var(--text-muted); font-weight: 500; }
.kv dd { margin: 0; color: var(--text); font-weight: 600; }

/* Alert banner */
.alert {
  display: flex; gap: 12px;
  border-radius: var(--radius);
  padding: 12px 14px;
  border: 1px solid var(--warning-soft);
  background: #FFFBEB;
  color: #92400E;
  font-size: 13px;
  align-items: flex-start;
}
.alert.info { background: var(--info-soft); border-color: #BAE6FD; color: #075985; }
.alert.danger { background: var(--danger-soft); border-color: #FECACA; color: #991B1B; }
.alert.success { background: var(--success-soft); border-color: #BBF7D0; color: #166534; }
.alert strong { font-weight: 700; }
.alert .icon { flex-shrink: 0; }
.alert .body { flex: 1; }

/* Chart helpers (inline SVG) */
.chart { width: 100%; }
.axis-label { font-size: 10.5px; fill: var(--text-faint); }
.grid-line { stroke: var(--border); stroke-dasharray: 3 3; }
.area-fill { fill: rgba(46,124,246,0.15); }
.area-line { fill: none; stroke: var(--fop-accent); stroke-width: 2; }
.bar-default { fill: var(--fop-accent); }
.bar-success { fill: var(--success); }
.bar-warning { fill: var(--warning); }
.bar-danger  { fill: var(--danger); }

.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--text-muted); }
.legend span.swatch { width: 10px; height: 10px; border-radius: 2px; display: inline-block; margin-right: 6px; vertical-align: middle; }

/* Tabs */
.tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 18px;
}
.tab {
  padding: 9px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  border-bottom: 2px solid transparent;
  cursor: pointer;
  background: transparent;
  border-radius: 0;
  border-left: none; border-right: none; border-top: none;
}
.tab.active { color: var(--fop-accent); border-bottom-color: var(--fop-accent); }
.tab:hover { color: var(--text); }

/* Risk factor list */
.factor-row {
  display: grid;
  grid-template-columns: 1fr 80px 100px;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.factor-row:last-child { border-bottom: none; }
.factor-row .name { font-weight: 600; }
.factor-row .meta { font-size: 12px; color: var(--text-muted); }
.factor-bar {
  height: 6px;
  background: var(--surface-2);
  border-radius: 999px;
  overflow: hidden;
  position: relative;
}
.factor-bar > span { display: block; height: 100%; }
.factor-bar > span.pos { background: var(--danger); }
.factor-bar > span.neg { background: var(--success); }

/* Timeline */
.timeline { position: relative; padding-left: 22px; }
.timeline::before {
  content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px;
  width: 2px; background: var(--border);
}
.timeline .item { position: relative; padding-bottom: 14px; }
.timeline .item::before {
  content: ""; position: absolute; left: -22px; top: 4px;
  width: 14px; height: 14px; border-radius: 50%;
  background: #fff; border: 2px solid var(--fop-accent);
}
.timeline .item.success::before { border-color: var(--success); }
.timeline .item.danger::before { border-color: var(--danger); }
.timeline .item.warn::before { border-color: var(--warning); }
.timeline .item .when { font-size: 11.5px; color: var(--text-muted); }
.timeline .item .what { font-weight: 600; font-size: 13px; }
.timeline .item .desc { font-size: 12.5px; color: var(--text-muted); }

/* Toggle */
.toggle { position: relative; display: inline-block; width: 38px; height: 22px; }
.toggle input { opacity: 0; width: 0; height: 0; }
.toggle .slider {
  position: absolute; cursor: pointer; inset: 0;
  background: var(--border-strong); border-radius: 999px; transition: .2s;
}
.toggle .slider::before {
  position: absolute; content: ""; height: 16px; width: 16px;
  left: 3px; top: 3px; background: #fff; border-radius: 50%;
  transition: .2s; box-shadow: 0 1px 2px rgba(0,0,0,0.2);
}
.toggle input:checked + .slider { background: var(--success); }
.toggle input:checked + .slider::before { transform: translateX(16px); }

/* =============================================================
   Customer Verification Portal — friendlier theme
   ============================================================= */

body.cvp {
  background: var(--cvp-bg);
}

.cvp-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.cvp-topbar {
  background: #fff;
  border-bottom: 1px solid var(--border);
  height: 64px;
  display: flex;
  align-items: center;
  padding: 0 28px;
  justify-content: space-between;
}
.cvp-topbar .brand { padding: 0; }
.cvp-topbar .brand-mark { background: linear-gradient(135deg, var(--cvp-primary), var(--cvp-accent)); }
.cvp-topbar .help { color: var(--text-muted); font-size: 13px; }

.cvp-page {
  flex: 1;
  display: grid;
  place-items: center;
  padding: 40px 20px;
}
.cvp-card {
  background: #fff;
  border-radius: 18px;
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 480px;
  overflow: hidden;
}
.cvp-card .body { padding: 32px 32px 28px; }
.cvp-card .body h2 { margin: 0 0 6px; font-size: 22px; letter-spacing: -0.01em; }
.cvp-card .body .lead { color: var(--text-muted); font-size: 14px; }

.cvp-steps {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 18px 32px 0;
}
.cvp-step { display: flex; align-items: center; gap: 8px; color: var(--text-faint); font-size: 12.5px; }
.cvp-step .num {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--surface-2); color: var(--text-muted);
  display: grid; place-items: center; font-weight: 700; font-size: 11px;
  border: 1px solid var(--border);
}
.cvp-step.active { color: var(--cvp-primary); }
.cvp-step.active .num { background: var(--cvp-primary); color: #fff; border-color: var(--cvp-primary); }
.cvp-step.done .num { background: var(--success); color: #fff; border-color: var(--success); }
.cvp-step-bar { flex: 1; height: 2px; background: var(--border); border-radius: 999px; }
.cvp-step-bar.active { background: var(--cvp-primary); }

.cvp-method {
  display: flex;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
  transition: border-color .15s, background .15s;
  align-items: center;
  margin-bottom: 12px;
  text-decoration: none;
  color: var(--text);
}
.cvp-method:hover { border-color: var(--cvp-primary); background: #FAFAFF; text-decoration: none; }
.cvp-method .ico {
  width: 44px; height: 44px; border-radius: 10px;
  background: var(--cvp-bg); color: var(--cvp-primary);
  display: grid; place-items: center;
}
.cvp-method .name { font-weight: 700; font-size: 14.5px; }
.cvp-method .desc { font-size: 12.5px; color: var(--text-muted); }
.cvp-method .arrow { margin-left: auto; color: var(--text-faint); }

.tx-summary {
  background: var(--cvp-bg);
  border-radius: 12px;
  padding: 14px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
  font-size: 13px;
}
.tx-summary .merchant { font-weight: 700; }
.tx-summary .amount { font-weight: 700; font-size: 16px; }

.otp-row { display: flex; gap: 10px; justify-content: center; margin: 20px 0 14px; }
.otp-cell {
  width: 48px; height: 56px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #fff;
  font-size: 22px;
  text-align: center;
  font-weight: 700;
}
.otp-cell:focus { outline: none; border-color: var(--cvp-primary); box-shadow: 0 0 0 3px rgba(79,70,229,0.18); }

.btn-cvp {
  background: var(--cvp-primary);
  color: #fff;
}
.btn-cvp:hover { background: var(--cvp-primary-700); }

.camera-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 14px;
  background: linear-gradient(135deg, #1f2937, #0f172a);
  overflow: hidden;
  margin-bottom: 18px;
  display: grid; place-items: center;
  color: #94A3B8;
}
.camera-frame .silhouette {
  width: 56%;
  aspect-ratio: 1 / 1.2;
  border: 2px dashed rgba(255,255,255,0.55);
  border-radius: 50% 50% 45% 45% / 60% 60% 40% 40%;
}
.camera-frame .hint {
  position: absolute; left: 0; right: 0; bottom: 12px; text-align: center;
  color: rgba(255,255,255,0.85); font-size: 12.5px;
}

.outcome-icon {
  width: 80px; height: 80px;
  border-radius: 50%;
  display: grid; place-items: center;
  margin: 4px auto 16px;
}
.outcome-icon.success { background: var(--success-soft); color: var(--success); }
.outcome-icon.fail { background: var(--danger-soft); color: var(--danger); }
.outcome-icon.warn { background: var(--warning-soft); color: var(--warning); }

.privacy {
  background: var(--surface-2);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 11.5px;
  color: var(--text-muted);
  border: 1px solid var(--border);
  display: flex; gap: 8px; align-items: flex-start;
  margin-top: 12px;
}

.cvp-footer {
  padding: 18px 28px;
  text-align: center;
  font-size: 12px;
  color: var(--text-faint);
}

/* =============================================================
   Login screen
   ============================================================= */
.login-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
}
@media (max-width: 900px) { .login-shell { grid-template-columns: 1fr; } }

.login-art {
  background: radial-gradient(circle at 30% 20%, #1B3A66 0%, var(--fop-primary) 60%, var(--fop-primary-700) 100%);
  color: #fff;
  padding: 56px;
  display: flex; flex-direction: column; justify-content: space-between;
  position: relative; overflow: hidden;
}
.login-art .brand { padding: 0; color: #fff; }
.login-art .brand-text .name { color: #fff; font-size: 16px; }
.login-art .brand-text .sub { color: #9DB3D2; }
.login-art h2 { font-size: 32px; line-height: 1.2; letter-spacing: -0.02em; margin: 0 0 14px; }
.login-art p { color: #C7D1E1; font-size: 14px; max-width: 380px; }
.login-art .stat-row { display: flex; gap: 28px; margin-top: 28px; }
.login-art .stat .val { font-size: 22px; font-weight: 700; }
.login-art .stat .lbl { font-size: 12px; color: #9DB3D2; letter-spacing: 0.04em; text-transform: uppercase; }

.login-art .orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.6;
  pointer-events: none;
}
.login-art .orb.a { width: 260px; height: 260px; background: #2E7CF6; right: -60px; bottom: -60px; }
.login-art .orb.b { width: 220px; height: 220px; background: #6F4BFB; right: 120px; top: 140px; opacity: 0.35; }

.login-form-wrap {
  display: grid; place-items: center;
  padding: 56px;
  background: var(--surface);
}
.login-form { width: 100%; max-width: 360px; }
.login-form h1 { font-size: 24px; margin: 0 0 6px; letter-spacing: -0.01em; }
.login-form .sub { color: var(--text-muted); margin-bottom: 24px; font-size: 13.5px; }
.login-form .role-picker {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}
.login-form .role-picker label {
  flex: 1;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 12px;
  text-align: center;
  cursor: pointer;
  color: var(--text-muted);
  font-weight: 600;
}
.login-form .role-picker input { display: none; }
.login-form .role-picker input:checked + label,
.login-form .role-picker label.active {
  border-color: var(--fop-accent);
  color: var(--fop-accent);
  background: var(--fop-accent-soft);
}

.mfa-row { display: flex; gap: 10px; margin: 10px 0 6px; }
.mfa-cell {
  width: 100%; height: 48px; text-align: center;
  border: 1px solid var(--border); border-radius: 10px;
  font-size: 20px; font-weight: 700;
}

/* =============================================================
   Index landing
   ============================================================= */
.landing {
  min-height: 100vh;
  background: radial-gradient(circle at top right, #233D63 0%, var(--fop-primary) 50%, var(--fop-primary-700) 100%);
  color: #fff;
  padding: 56px;
  display: grid; grid-template-rows: auto 1fr auto;
}
.landing .brand { padding: 0; color: #fff; }
.landing .brand-text .name { color: #fff; font-size: 16px; }
.landing .brand-text .sub { color: #9DB3D2; }
.landing .hero { display: grid; place-items: center; }
.landing .hero-inner { max-width: 980px; }
.landing h1 {
  font-size: 44px;
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin: 18px 0;
}
.landing h1 .accent { background: linear-gradient(135deg, #6F4BFB, #2E7CF6, #14B8A6); -webkit-background-clip: text; background-clip: text; color: transparent; }
.landing p.lead { color: #C7D1E1; font-size: 17px; max-width: 720px; line-height: 1.5; }
.landing .platforms { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 36px; }
@media (max-width: 800px) { .landing .platforms { grid-template-columns: 1fr; } }
.platform-card {
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 18px;
  padding: 24px;
  color: #fff;
  text-decoration: none;
  transition: transform .15s, border-color .15s;
}
.platform-card:hover { transform: translateY(-2px); border-color: rgba(255,255,255,0.25); text-decoration: none; }
.platform-card .tag {
  display: inline-block; padding: 3px 10px; border-radius: 999px;
  background: rgba(46,124,246,0.18); color: #93C5FD; font-size: 11px;
  letter-spacing: 0.04em; text-transform: uppercase; font-weight: 700;
  margin-bottom: 12px;
}
.platform-card h3 { margin: 0 0 8px; font-size: 22px; }
.platform-card p { color: #C7D1E1; margin: 0 0 16px; font-size: 14px; line-height: 1.5; }
.platform-card .screens {
  display: grid; grid-template-columns: 1fr 1fr; gap: 6px 10px; font-size: 12.5px;
  color: #DCE3EE;
}
.platform-card .screens a { color: #93C5FD; }

.landing footer { color: #93A6C6; font-size: 12px; }

/* =============================================================
   Misc utilities
   ============================================================= */
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 6px; }
.mt-2 { margin-top: 12px; }
.mt-3 { margin-top: 18px; }
.mt-4 { margin-top: 24px; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 6px; }
.mb-2 { margin-bottom: 12px; }
.mb-3 { margin-bottom: 18px; }
.mb-4 { margin-bottom: 24px; }
.flex { display: flex; }
.between { justify-content: space-between; }
.center { align-items: center; }
.gap-1 { gap: 6px; }
.gap-2 { gap: 12px; }
.gap-3 { gap: 18px; }
.text-muted { color: var(--text-muted); }
.text-faint { color: var(--text-faint); }
.text-right { text-align: right; }
.mono { font-family: var(--font-mono); }
.nowrap { white-space: nowrap; }
.divider { height: 1px; background: var(--border); margin: 16px 0; }
.hidden { display: none !important; }
