/* MixerPayment — Design System
   Минималистичный стиль: финтех-точность, без лишнего шума
   --------------------------------------------------------- */

@import url('https://fonts.googleapis.com/css2?family=Sora:wght@300;400;500;600&family=JetBrains+Mono:wght@400;500&display=swap');

/* ─── Переменные ─────────────────────────────────────────── */
:root {
  --bg:           #F6F4EF;
  --surface:      #FFFFFF;
  --surface-2:    #F0EDE6;
  --border:       #E2DDD4;
  --border-dark:  #C8C2B6;

  --text-primary:   #0F0E0C;
  --text-secondary: #6B6457;
  --text-muted:     #A09890;

  --accent:         #1B4D3E;   /* тёмный зелёный — деньги */
  --accent-hover:   #153D31;
  --accent-light:   #EAF0ED;
  --accent-mid:     #4A8C72;

  --warning:        #B87A12;
  --warning-light:  #FBF3E3;
  --success:        #1A7A4A;
  --success-light:  #E6F4EC;
  --danger:         #A83232;
  --danger-light:   #FAEAEA;
  --info:           #2B5F8C;
  --info-light:     #E8EFF7;

  --font-body:   'Sora', sans-serif;
  --font-mono:   'JetBrains Mono', monospace;

  --radius:      4px;
  --radius-lg:   8px;
  --shadow:      none;

  --nav-width:   240px;
  --header-h:    56px;
}

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

html { font-size: 15px; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

/* ─── Typography ─────────────────────────────────────────── */
h1 { font-size: 2rem;   font-weight: 600; line-height: 1.2; }
h2 { font-size: 1.4rem; font-weight: 600; line-height: 1.3; }
h3 { font-size: 1.1rem; font-weight: 600; }
h4 { font-size: 0.95rem; font-weight: 600; }

.mono { font-family: var(--font-mono); }

/* ─── Layout ─────────────────────────────────────────────── */
.app-shell {
  display: flex;
  min-height: 100vh;
}

/* Sidebar nav */
.sidebar {
  width: var(--nav-width);
  background: var(--surface);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0; bottom: 0;
  z-index: 100;
}

.sidebar-logo {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
}

.sidebar-logo .logo-mark {
  width: 32px; height: 32px;
  background: var(--accent);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.5px;
  flex-shrink: 0;
}

.sidebar-logo .logo-text {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.2;
}
.sidebar-logo .logo-sub {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.sidebar-nav {
  flex: 1;
  padding: 16px 0;
  overflow-y: auto;
}

.nav-section-label {
  padding: 4px 24px 8px;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 24px;
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 400;
  cursor: pointer;
  transition: all 0.15s;
  border-left: 2px solid transparent;
  text-decoration: none;
}

.nav-item:hover {
  color: var(--text-primary);
  background: var(--bg);
  text-decoration: none;
}

.nav-item.active {
  color: var(--accent);
  background: var(--accent-light);
  border-left-color: var(--accent);
  font-weight: 500;
}

.nav-item .nav-icon {
  width: 16px;
  opacity: 0.6;
  flex-shrink: 0;
}
.nav-item.active .nav-icon { opacity: 1; }

.nav-badge {
  margin-left: auto;
  background: var(--danger);
  color: white;
  font-size: 0.65rem;
  font-family: var(--font-mono);
  padding: 1px 6px;
  border-radius: 10px;
}

.sidebar-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border);
}

.user-chip {
  display: flex;
  align-items: center;
  gap: 10px;
}

.user-avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--accent-light);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  flex-shrink: 0;
}

.user-info .user-name { font-size: 0.8rem; font-weight: 500; }
.user-info .user-role { font-size: 0.7rem; color: var(--text-muted); }

.logout-btn {
  margin-left: auto;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  font-size: 0.75rem;
}
.logout-btn:hover { color: var(--danger); }

/* Main content area */
.main-content {
  margin-left: var(--nav-width);
  flex: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.page-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 20px 32px;
  position: sticky;
  top: 0;
  z-index: 50;
}

.page-header-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.page-title { font-size: 1.15rem; font-weight: 600; }
.page-subtitle { font-size: 0.8rem; color: var(--text-secondary); margin-top: 2px; }

.page-actions { display: flex; gap: 8px; align-items: center; }

.page-body {
  padding: 32px;
  flex: 1;
}

/* ─── Cards / Surfaces ───────────────────────────────────── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.card-sm { padding: 16px; }
.card-lg { padding: 32px; }

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.card-title { font-size: 0.9rem; font-weight: 600; }
.card-subtitle { font-size: 0.75rem; color: var(--text-secondary); margin-top: 2px; }

/* ─── Buttons ────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
  border: 1px solid transparent;
  white-space: nowrap;
  text-decoration: none;
}
.btn:hover { text-decoration: none; }

.btn-primary {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }

.btn-secondary {
  background: var(--surface);
  color: var(--text-primary);
  border-color: var(--border-dark);
}
.btn-secondary:hover { background: var(--bg); }

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border-color: transparent;
}
.btn-ghost:hover { background: var(--bg); color: var(--text-primary); }

.btn-danger {
  background: var(--danger-light);
  color: var(--danger);
  border-color: var(--danger);
}

.btn-sm { padding: 5px 12px; font-size: 0.8rem; }
.btn-lg { padding: 11px 22px; font-size: 0.95rem; }

/* ─── Forms ──────────────────────────────────────────────── */
.form-group { margin-bottom: 16px; }

label {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

input, select, textarea {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--border-dark);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--text-primary);
  background: var(--surface);
  transition: border-color 0.15s;
  outline: none;
}

input:focus, select:focus, textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(27, 77, 62, 0.08);
}

input[type="range"] {
  padding: 0;
  border: none;
  background: none;
  accent-color: var(--accent);
}

.input-hint {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ─── KPI Cards ──────────────────────────────────────────── */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}

.kpi-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
}

.kpi-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 500;
  margin-bottom: 8px;
}

.kpi-value {
  font-family: var(--font-mono);
  font-size: 1.8rem;
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1;
}

.kpi-value.accent { color: var(--accent); }

.kpi-delta {
  font-size: 0.75rem;
  margin-top: 6px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.kpi-delta.up { color: var(--success); }
.kpi-delta.down { color: var(--danger); }

/* ─── Tables ─────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; }

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

th {
  text-align: left;
  padding: 10px 16px;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--text-primary);
  vertical-align: middle;
}

tr:last-child td { border-bottom: none; }
tr:hover td { background: var(--bg); }

.td-mono { font-family: var(--font-mono); font-size: 0.82rem; }

/* ─── Badges / Status ────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 500;
  white-space: nowrap;
}

.badge::before {
  content: '';
  width: 5px; height: 5px;
  border-radius: 50%;
  flex-shrink: 0;
}

.badge-success { background: var(--success-light); color: var(--success); }
.badge-success::before { background: var(--success); }

.badge-warning { background: var(--warning-light); color: var(--warning); }
.badge-warning::before { background: var(--warning); }

.badge-danger  { background: var(--danger-light);  color: var(--danger);  }
.badge-danger::before  { background: var(--danger);  }

.badge-info    { background: var(--info-light);    color: var(--info);    }
.badge-info::before    { background: var(--info);    }

.badge-neutral { background: var(--surface-2); color: var(--text-secondary); }
.badge-neutral::before { background: var(--text-muted); }

/* ─── Stepper ─────────────────────────────────────────────── */
.stepper {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 32px;
}

.step-item {
  display: flex;
  align-items: center;
  flex: 1;
}

.step-circle {
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 2px solid var(--border-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  flex-shrink: 0;
  background: var(--surface);
}

.step-item.done .step-circle {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}
.step-item.active .step-circle {
  border-color: var(--accent);
  color: var(--accent);
}

.step-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-left: 8px;
  white-space: nowrap;
}
.step-item.active .step-label { color: var(--accent); font-weight: 500; }
.step-item.done .step-label  { color: var(--text-secondary); }

.step-line {
  flex: 1;
  height: 1px;
  background: var(--border);
  margin: 0 8px;
}
.step-item.done + .step-item .step-line,
.step-item.done ~ .step-item .step-line { /* not needed */ }

/* ─── Progress bar ───────────────────────────────────────── */
.progress-bar-wrap {
  background: var(--surface-2);
  border-radius: 20px;
  height: 6px;
  overflow: hidden;
}
.progress-bar-fill {
  height: 100%;
  border-radius: 20px;
  background: var(--accent);
  transition: width 0.4s ease;
}
.progress-bar-fill.warning { background: var(--warning); }
.progress-bar-fill.danger  { background: var(--danger);  }

/* ─── Platform cards ─────────────────────────────────────── */
.platform-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
}

.platform-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color 0.15s;
}
.platform-card:hover { border-color: var(--border-dark); }
.platform-card.active-platform { border-color: var(--accent); }

.platform-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.platform-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.platform-icon {
  width: 36px; height: 36px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  color: white;
  flex-shrink: 0;
  overflow: hidden;
}

.platform-name { font-weight: 600; font-size: 0.9rem; }
.platform-type { font-size: 0.72rem; color: var(--text-muted); }

.platform-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.platform-stat-item .stat-label {
  font-size: 0.68rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.platform-stat-item .stat-value {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-primary);
}

/* ─── Task list ──────────────────────────────────────────── */
.task-list { display: flex; flex-direction: column; gap: 8px; }

.task-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 16px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.task-item.urgent { border-left: 3px solid var(--danger); }
.task-item.warning { border-left: 3px solid var(--warning); }
.task-item.info { border-left: 3px solid var(--info); }

.task-icon {
  width: 24px; height: 24px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  margin-top: 1px;
}

.task-text .task-title { font-size: 0.85rem; font-weight: 500; }
.task-text .task-desc  { font-size: 0.78rem; color: var(--text-secondary); margin-top: 2px; }

.task-action { margin-left: auto; flex-shrink: 0; }

/* ─── Upload zone ────────────────────────────────────────── */
.upload-zone {
  border: 2px dashed var(--border-dark);
  border-radius: var(--radius-lg);
  padding: 24px;
  text-align: center;
  cursor: pointer;
  transition: all 0.15s;
}
.upload-zone:hover {
  border-color: var(--accent);
  background: var(--accent-light);
}
.upload-zone .upload-icon { font-size: 1.5rem; margin-bottom: 8px; }
.upload-zone .upload-label { font-size: 0.85rem; font-weight: 500; }
.upload-zone .upload-hint  { font-size: 0.75rem; color: var(--text-muted); margin-top: 4px; }

.upload-done {
  background: var(--success-light);
  border: 1px solid var(--success);
  border-radius: var(--radius);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--success);
}

/* ─── Routing visualizer ─────────────────────────────────── */
.routing-visual {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 20px 0;
  overflow-x: auto;
}

.routing-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-width: 80px;
}

.routing-node-circle {
  width: 44px; height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--border);
  background: var(--surface);
  font-size: 1.1rem;
}
.routing-node-circle.active { border-color: var(--accent); background: var(--accent-light); }
.routing-node-circle.primary { background: var(--accent); border-color: var(--accent); }

.routing-node-label { font-size: 0.7rem; color: var(--text-secondary); text-align: center; }

.routing-arrow {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  min-width: 40px;
}
.routing-arrow svg { color: var(--text-muted); }

/* ─── Info box ───────────────────────────────────────────── */
.info-box {
  padding: 12px 16px;
  border-radius: var(--radius);
  font-size: 0.82rem;
  line-height: 1.5;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.info-box.info    { background: var(--info-light);    border-left: 3px solid var(--info);    color: var(--info);   }
.info-box.success { background: var(--success-light); border-left: 3px solid var(--success); color: var(--success); }
.info-box.warning { background: var(--warning-light); border-left: 3px solid var(--warning); color: var(--warning); }
.info-box .info-icon { flex-shrink: 0; font-size: 1rem; }
.info-box .info-text { color: var(--text-primary); }
.info-box .info-text strong { font-weight: 600; }

/* ─── Tabs ───────────────────────────────────────────────── */
.tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
}

.tab-btn {
  padding: 10px 20px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: all 0.15s;
  font-family: var(--font-body);
}
.tab-btn:hover { color: var(--text-primary); }
.tab-btn.active { color: var(--accent); border-bottom-color: var(--accent); }

.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ─── Filter bar ─────────────────────────────────────────── */
.filter-bar {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.filter-chip {
  padding: 5px 14px;
  border: 1px solid var(--border-dark);
  border-radius: 20px;
  font-size: 0.8rem;
  cursor: pointer;
  background: var(--surface);
  transition: all 0.15s;
  font-family: var(--font-body);
}
.filter-chip:hover { border-color: var(--accent); color: var(--accent); }
.filter-chip.active {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}

/* ─── Step guide (platform pages) ───────────────────────── */
.step-guide { display: flex; flex-direction: column; gap: 24px; }

.step-guide-item {
  display: flex;
  gap: 20px;
}

.step-num {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--accent);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  flex-shrink: 0;
  margin-top: 2px;
}

.step-content .step-title { font-weight: 600; font-size: 0.95rem; margin-bottom: 6px; }
.step-content .step-desc  { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.6; }

.step-screenshot {
  margin-top: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.step-screenshot-mock {
  background: var(--surface-2);
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.8rem;
}

/* ─── Grid helpers ───────────────────────────────────────── */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 20px; }
.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; }
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mb-8  { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-8  { gap: 8px; }
.gap-12 { gap: 12px; }
.flex-1 { flex: 1; }

.text-sm   { font-size: 0.8rem; }
.text-xs   { font-size: 0.72rem; }
.text-muted { color: var(--text-muted); }
.text-secondary { color: var(--text-secondary); }
.text-success { color: var(--success); }
.text-warning { color: var(--warning); }
.text-danger  { color: var(--danger); }
.text-accent  { color: var(--accent); }
.font-mono { font-family: var(--font-mono); }
.font-600  { font-weight: 600; }

.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 20px 0;
}

/* ─── Landing page ───────────────────────────────────────── */
.landing {
  min-height: 100vh;
  background: var(--bg);
}

.landing-nav {
  padding: 20px 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.landing-hero {
  padding: 100px 64px 80px;
  max-width: 1100px;
  margin: 0 auto;
}

.hero-eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 24px;
}

.hero-title {
  font-size: 3.2rem;
  font-weight: 600;
  line-height: 1.1;
  max-width: 700px;
  margin-bottom: 20px;
}

.hero-title span { color: var(--accent); }

.hero-sub {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 560px;
  line-height: 1.7;
  margin-bottom: 40px;
}

.hero-cta { display: flex; gap: 12px; align-items: center; }

.landing-section {
  padding: 80px 64px;
  max-width: 1100px;
  margin: 0 auto;
}

.section-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.section-title {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 16px;
}

.section-sub {
  font-size: 0.95rem;
  color: var(--text-secondary);
  max-width: 540px;
  line-height: 1.7;
  margin-bottom: 48px;
}

.how-it-works-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.hw-step {
  position: relative;
}

.hw-number {
  font-family: var(--font-mono);
  font-size: 2.5rem;
  font-weight: 600;
  color: var(--border);
  line-height: 1;
  margin-bottom: 12px;
}

.hw-title { font-size: 0.95rem; font-weight: 600; margin-bottom: 8px; }
.hw-desc  { font-size: 0.82rem; color: var(--text-secondary); line-height: 1.6; }

.roles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.role-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
}

.role-icon { font-size: 1.8rem; margin-bottom: 16px; }
.role-title { font-size: 1.05rem; font-weight: 600; margin-bottom: 8px; }
.role-desc  { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.6; }

.law-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--warning);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 32px;
  margin-top: 48px;
}

.law-item .law-label {
  font-size: 0.72rem;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.law-item .law-value {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
}
.law-item .law-value.warn { color: var(--warning); }

/* ─── Login page ─────────────────────────────────────────── */
.login-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.login-left {
  background: var(--accent);
  padding: 64px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: white;
}

.login-left .brand { font-size: 1.2rem; font-weight: 600; }
.login-left .brand-sub { font-size: 0.8rem; opacity: 0.7; font-family: var(--font-mono); }

.login-left h2 { font-size: 2rem; line-height: 1.3; margin-top: 64px; font-weight: 600; }
.login-left p { font-size: 0.9rem; opacity: 0.8; margin-top: 12px; line-height: 1.7; }

.demo-logins {
  background: rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-top: 40px;
}

.demo-login-title {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.7;
  margin-bottom: 12px;
  font-family: var(--font-mono);
}

.demo-login-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.15);
  font-size: 0.82rem;
  cursor: pointer;
}
.demo-login-item:last-child { border-bottom: none; }
.demo-login-item:hover { opacity: 0.8; }

.demo-login-item .demo-role { opacity: 0.7; font-size: 0.75rem; }
.demo-login-item .demo-fill { opacity: 0.5; font-size: 0.72rem; font-family: var(--font-mono); }

.login-right {
  background: var(--bg);
  padding: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-form-wrap { width: 100%; max-width: 360px; }
.login-form-wrap h2 { font-size: 1.5rem; margin-bottom: 8px; }
.login-form-wrap .login-sub { font-size: 0.85rem; color: var(--text-secondary); margin-bottom: 32px; }

/* ─── Donut / chart placeholder ──────────────────────────── */
.chart-wrap {
  position: relative;
  height: 200px;
}

/* ─── Scrollbar ──────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-dark); border-radius: 3px; }

/* ─── Animations ─────────────────────────────────────────── */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.fade-in { animation: fadeIn 0.3s ease forwards; }

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.4; }
}

.live-dot {
  display: inline-block;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--success);
  animation: pulse-dot 2s ease infinite;
  margin-right: 5px;
}

/* ─── Modal ──────────────────────────────────────────────── */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15,14,12,0.5);
  z-index: 200;
  align-items: center;
  justify-content: center;
}
.modal-overlay.open { display: flex; }

.modal {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 32px;
  width: 100%;
  max-width: 480px;
  border: 1px solid var(--border);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.modal-close {
  background: none; border: none; cursor: pointer;
  color: var(--text-muted); font-size: 1.2rem;
}
