/* ═══════════════════════════════════════════════════════════
   LINCODE OPERATIONS PORTAL — Design System
   Brand Fonts: Inter (primary) + Bebas Neue (display/headings)
   Brand Colors: per Lincode Brand Book 2024
   ═══════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Inter:wght@300;400;500;600;700&display=swap');

/* Light Theme */
:root {
  --bg-base:          #F4F5FB;
  --bg-surface:       #FFFFFF;
  --bg-elevated:      #FFFFFF;
  --bg-sidebar:       #0D0E6B;
  --bg-sidebar-hover: #1a26c1;
  --bg-input:         #EEF0FB;
  --accent-primary:   #1a26c1;
  --accent-dark:      #1414b9;
  --accent-light:     #e8e9f9;
  --accent-glow:      rgba(26,38,193,0.14);
  --accent-red:       #b50000;
  --accent-red-light: #fce8e8;
  --text-primary:     #0a0b2e;
  --text-secondary:   #3d4270;
  --text-muted:       #7a7fb5;
  --text-inverse:     #FFFFFF;
  --text-sidebar:     #a8addd;
  --text-sidebar-active: #FFFFFF;
  --border:           #d8daf0;
  --border-focus:     #1a26c1;
  --divider:          #eaecf8;
  --status-green:     #098f36;
  --status-green-bg:  #e3f5ea;
  --status-amber:     #8a7d00;
  --status-amber-bg:  #fafbe8;
  --status-red:       #b50000;
  --status-red-bg:    #fce8e8;
  --status-blue:      #1a26c1;
  --status-blue-bg:   #e8e9f9;
  --shadow-sm:    0 1px 3px rgba(26,38,193,0.08);
  --shadow-md:    0 4px 16px rgba(26,38,193,0.11);
  --shadow-lg:    0 8px 32px rgba(26,38,193,0.15);
  --shadow-sidebar: 4px 0 24px rgba(0,0,0,0.22);
  --radius-sm: 6px; --radius-md: 10px; --radius-lg: 16px; --radius-xl: 24px;
  --sidebar-width: 248px; --topbar-h: 60px;
  --transition: all 0.18s cubic-bezier(0.4,0,0.2,1);
}

/* Dark Theme */
[data-theme="dark"] {
  --bg-base:          #07081a;
  --bg-surface:       #0d0f2b;
  --bg-elevated:      #141640;
  --bg-sidebar:       #050614;
  --bg-sidebar-hover: #1a26c1;
  --bg-input:         #0d0f2b;
  --accent-primary:   #4d5ef5;
  --accent-dark:      #3a4de0;
  --accent-light:     #111640;
  --accent-glow:      rgba(77,94,245,0.18);
  --accent-red:       #e05050;
  --accent-red-light: #2a0a0a;
  --text-primary:     #e8eaf8;
  --text-secondary:   #8890cc;
  --text-muted:       #484e8a;
  --text-inverse:     #07081a;
  --text-sidebar:     #6670b0;
  --text-sidebar-active: #FFFFFF;
  --border:           #1c2060;
  --border-focus:     #4d5ef5;
  --divider:          #111440;
  --status-green:     #34d399;
  --status-green-bg:  #052a18;
  --status-amber:     #cdb800;
  --status-amber-bg:  #1e1a02;
  --status-red:       #e05050;
  --status-red-bg:    #2a0a0a;
  --status-blue:      #4d5ef5;
  --status-blue-bg:   #0e1240;
  --shadow-sm:  0 1px 3px rgba(0,0,0,0.35);
  --shadow-md:  0 4px 16px rgba(0,0,0,0.45);
  --shadow-lg:  0 8px 32px rgba(0,0,0,0.55);
  --shadow-sidebar: 4px 0 28px rgba(0,0,0,0.55);
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg-base);
  color: var(--text-primary);
  line-height: 1.6;
  font-weight: 400;
  transition: background 0.25s ease, color 0.25s ease;
  overflow-x: hidden;
}

/* Bebas Neue for all headings and display text */
.card-title, .stat-value, .page-header h1, .topbar-title,
.modal-title, .notif-header, .nav-section-label,
.sidebar-logo-text .brand, .login-title, .hero-tagline,
.hero-stat-val, .mini-kpi-label, .mini-kpi-value,
.fin-card-val, .kpi-metric-val, .acct-stat-val,
.hero-kpi-val, .amount-large, .deploy-meta-val,
h1, h2, h3 {
  font-family: 'Bebas Neue', sans-serif;
  letter-spacing: 0.5px;
}

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

/* ── Sidebar ─────────────────────────────────── */
.sidebar {
  width: var(--sidebar-width);
  background: var(--bg-sidebar);
  box-shadow: var(--shadow-sidebar);
  display: flex; flex-direction: column;
  position: fixed; top: 0; left: 0; height: 100vh;
  z-index: 100; overflow: hidden; transition: var(--transition);
}

.sidebar-logo {
  display: flex; align-items: center; gap: 10px;
  padding: 16px 20px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.sidebar-logo img { height: 24px; width: auto; object-fit: contain; display: block; }
[data-theme="dark"] .sidebar-logo img { opacity: 0.9; }
.sidebar-logo-icon {
  width: 36px; height: 36px; background: var(--accent-primary);
  border-radius: 6px; display: flex; align-items: center; justify-content: center;
  font-family: 'Bebas Neue', sans-serif; font-size: 15px; color: white;
  letter-spacing: 1px; flex-shrink: 0;
}
.sidebar-logo-text { flex: 1; }
.sidebar-logo-text .brand { font-family: 'Bebas Neue', sans-serif; font-size: 15px; color: #fff; letter-spacing: 1.5px; line-height: 1.2; }
.sidebar-logo-text .sub   { font-family: 'Inter', sans-serif; font-size: 9px; color: var(--text-sidebar); letter-spacing: 1px; text-transform: uppercase; margin-top: 1px; }

.sidebar-nav { flex: 1; overflow-y: auto; padding: 10px 0; }
.sidebar-nav::-webkit-scrollbar { width: 0; }

.nav-section-label {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 11px; letter-spacing: 2px;
  color: var(--text-muted); padding: 14px 20px 5px;
}

.nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 20px; cursor: pointer; text-decoration: none;
  color: var(--text-sidebar); font-family: 'Inter', sans-serif;
  font-size: 13px; font-weight: 400; transition: var(--transition);
  margin: 1px 8px; border-radius: var(--radius-sm);
}
.nav-item:hover  { background: var(--bg-sidebar-hover); color: #fff; }
.nav-item.active { background: var(--accent-primary); color: #fff; font-weight: 500; }
.nav-icon { width: 18px; height: 18px; flex-shrink: 0; opacity: 0.7; }
.nav-item:hover .nav-icon, .nav-item.active .nav-icon { opacity: 1; }
.nav-badge { margin-left: auto; background: #b50000; color: white; font-size: 10px; font-weight: 600; padding: 1px 6px; border-radius: 10px; }

.sidebar-footer { padding: 12px 10px; border-top: 1px solid rgba(255,255,255,0.07); }
.user-card { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: var(--radius-md); cursor: pointer; transition: var(--transition); }
.user-card:hover { background: var(--bg-sidebar-hover); }
.user-avatar { width: 32px; height: 32px; background: var(--accent-primary); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: 'Inter', sans-serif; font-size: 11px; font-weight: 700; color: white; flex-shrink: 0; }
.user-info { flex: 1; min-width: 0; }
.user-name { font-family: 'Inter', sans-serif; font-size: 12.5px; font-weight: 600; color: white; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-role { font-family: 'Inter', sans-serif; font-size: 10px; color: var(--text-sidebar); }

.mini-kpi { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.08); border-radius: var(--radius-md); padding: 10px 14px; margin: 6px 12px 0; }
.mini-kpi-label { font-family: 'Bebas Neue', sans-serif; font-size: 10px; color: var(--text-sidebar); letter-spacing: 1px; text-transform: uppercase; }
.mini-kpi-value { font-family: 'Bebas Neue', sans-serif; font-size: 22px; letter-spacing: 1px; color: white; margin-top: 1px; }
.mini-kpi-sub   { font-family: 'Inter', sans-serif; font-size: 10px; color: #4d5ef5; margin-top: 1px; }

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

/* ── Topbar ──────────────────────────────────── */
.topbar {
  height: var(--topbar-h); background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; padding: 0 28px; gap: 16px;
  position: sticky; top: 0; z-index: 50; box-shadow: var(--shadow-sm);
}
.topbar-title { font-family: 'Bebas Neue', sans-serif; font-size: 20px; letter-spacing: 1.5px; color: var(--text-primary); flex: 1; line-height: 1; }
.topbar-subtitle { font-family: 'Inter', sans-serif; font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.topbar-actions { display: flex; align-items: center; gap: 10px; }

.icon-btn { width: 36px; height: 36px; border: none; background: var(--bg-input); border-radius: var(--radius-sm); cursor: pointer; display: flex; align-items: center; justify-content: center; color: var(--text-secondary); transition: var(--transition); position: relative; }
.icon-btn:hover { background: var(--accent-light); color: var(--accent-primary); }
.icon-btn .badge { position: absolute; top: 4px; right: 4px; width: 8px; height: 8px; background: #b50000; border-radius: 50%; border: 2px solid var(--bg-surface); }

.theme-toggle { display: flex; align-items: center; gap: 6px; padding: 6px 12px; background: var(--bg-input); border: 1px solid var(--border); border-radius: 20px; cursor: pointer; font-family: 'Inter', sans-serif; font-size: 12px; font-weight: 500; color: var(--text-secondary); transition: var(--transition); }
.theme-toggle:hover { border-color: var(--accent-primary); color: var(--accent-primary); }

/* ── Page content ────────────────────────────── */
.page-content { flex: 1; padding: 28px; animation: fadeIn 0.3s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

.page-header { margin-bottom: 24px; display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.page-header h1 { font-family: 'Bebas Neue', sans-serif; font-size: 28px; letter-spacing: 1.5px; color: var(--text-primary); line-height: 1; }
.page-header p  { font-family: 'Inter', sans-serif; font-size: 13px; color: var(--text-muted); margin-top: 4px; }

/* ── Cards ───────────────────────────────────── */
.card { background: var(--bg-surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); transition: var(--transition); }
.card-header { padding: 16px 22px 13px; border-bottom: 1px solid var(--divider); display: flex; align-items: center; justify-content: space-between; }
.card-title  { font-family: 'Bebas Neue', sans-serif; font-size: 15px; letter-spacing: 1px; color: var(--text-primary); }
.card-body   { padding: 20px 22px; }

/* ── Stat cards ──────────────────────────────── */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-bottom: 24px; }
.stat-card { background: var(--bg-surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 20px 22px; position: relative; overflow: hidden; transition: var(--transition); box-shadow: var(--shadow-sm); }
.stat-card:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); }
.stat-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--accent-primary), var(--accent-dark)); }
.stat-icon  { width: 38px; height: 38px; background: var(--accent-light); border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; margin-bottom: 12px; }
.stat-value { font-family: 'Bebas Neue', sans-serif; font-size: 30px; letter-spacing: 1px; color: var(--text-primary); line-height: 1; }
.stat-label { font-family: 'Inter', sans-serif; font-size: 11px; color: var(--text-muted); margin-top: 4px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.5px; }
.stat-change { font-family: 'Inter', sans-serif; font-size: 12px; margin-top: 6px; display: flex; align-items: center; gap: 4px; }
.stat-change.up   { color: var(--status-green); }
.stat-change.down { color: var(--status-red); }

/* ── Buttons ─────────────────────────────────── */
.btn { display: inline-flex; align-items: center; gap: 7px; padding: 8px 18px; border-radius: var(--radius-sm); font-family: 'Inter', sans-serif; font-size: 13px; font-weight: 500; cursor: pointer; border: none; transition: var(--transition); white-space: nowrap; text-decoration: none; letter-spacing: 0.2px; }
.btn-primary    { background: var(--accent-primary); color: white; }
.btn-primary:hover { background: var(--accent-dark); box-shadow: 0 4px 14px var(--accent-glow); transform: translateY(-1px); }
.btn-secondary  { background: var(--bg-input); color: var(--text-secondary); border: 1px solid var(--border); }
.btn-secondary:hover { border-color: var(--accent-primary); color: var(--accent-primary); }
.btn-ghost      { background: transparent; color: var(--text-secondary); }
.btn-ghost:hover { background: var(--accent-light); color: var(--accent-primary); }
.btn-danger     { background: var(--accent-red-light); color: var(--accent-red); }
.btn-danger:hover { background: var(--accent-red); color: white; }
.btn-sm { padding: 5px 12px; font-size: 12px; }
.btn-lg { padding: 11px 24px; font-size: 14px; }

/* ── Tables ──────────────────────────────────── */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
thead th { text-align: left; padding: 9px 14px; font-family: 'Bebas Neue', sans-serif; font-size: 12px; letter-spacing: 1.2px; color: var(--text-muted); background: var(--bg-input); border-bottom: 1px solid var(--border); }
thead th:first-child { border-radius: var(--radius-sm) 0 0 0; }
thead th:last-child  { border-radius: 0 var(--radius-sm) 0 0; }
tbody td { padding: 12px 14px; border-bottom: 1px solid var(--divider); color: var(--text-primary); vertical-align: middle; font-family: 'Inter', sans-serif; }
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover td { background: var(--bg-input); }

/* ── Badges ──────────────────────────────────── */
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 20px; font-family: 'Inter', sans-serif; font-size: 11px; font-weight: 600; }
.badge-green { background: var(--status-green-bg); color: var(--status-green); }
.badge-amber { background: var(--status-amber-bg); color: var(--status-amber); }
.badge-red   { background: var(--status-red-bg);   color: var(--status-red); }
.badge-blue  { background: var(--status-blue-bg);  color: var(--status-blue); }
.badge-muted { background: var(--divider);         color: var(--text-muted); }
.dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* ── Health bar ──────────────────────────────── */
.health-bar  { height: 6px; background: var(--divider); border-radius: 3px; overflow: hidden; margin-top: 4px; }
.health-fill { height: 100%; border-radius: 3px; transition: width 0.8s cubic-bezier(0.4,0,0.2,1); }
.health-high .health-fill { background: var(--status-green); }
.health-mid  .health-fill { background: #CDC106; }
.health-low  .health-fill { background: var(--status-red); }

/* ── Forms ───────────────────────────────────── */
.form-group { margin-bottom: 16px; }
label { display: block; font-family: 'Inter', sans-serif; font-size: 11px; font-weight: 600; color: var(--text-secondary); margin-bottom: 5px; text-transform: uppercase; letter-spacing: 0.5px; }
input, select, textarea { width: 100%; padding: 9px 13px; background: var(--bg-input); border: 1px solid var(--border); border-radius: var(--radius-sm); font-family: 'Inter', sans-serif; font-size: 13.5px; color: var(--text-primary); transition: var(--transition); outline: none; }
input:focus, select:focus, textarea:focus { border-color: var(--border-focus); box-shadow: 0 0 0 3px var(--accent-glow); }

/* ── Grids ───────────────────────────────────── */
.grid-2    { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.grid-3    { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 20px; }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }

/* ── Charts ──────────────────────────────────── */
.chart-area { background: var(--bg-input); border-radius: var(--radius-md); height: 180px; display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; }
canvas.spark { width: 100%; height: 80px; display: block; }

/* ── Steps ───────────────────────────────────── */
.steps { display: flex; align-items: center; gap: 0; margin: 16px 0; }
.step  { display: flex; flex-direction: column; align-items: center; flex: 1; position: relative; }
.step::before { content: ''; position: absolute; top: 14px; left: -50%; width: 100%; height: 2px; background: var(--border); z-index: 0; }
.step:first-child::before { display: none; }
.step-dot { width: 28px; height: 28px; border-radius: 50%; background: var(--divider); border: 2px solid var(--border); display: flex; align-items: center; justify-content: center; font-family: 'Inter', sans-serif; font-size: 11px; font-weight: 700; color: var(--text-muted); position: relative; z-index: 1; transition: var(--transition); }
.step.done   .step-dot { background: var(--status-green); border-color: var(--status-green); color: white; }
.step.active .step-dot { background: var(--accent-primary); border-color: var(--accent-primary); color: white; }
.step.done::before { background: var(--status-green); }
.step-label { font-family: 'Inter', sans-serif; font-size: 10px; color: var(--text-muted); margin-top: 5px; text-align: center; font-weight: 500; }
.step.active .step-label { color: var(--accent-primary); font-weight: 600; }
.step.done   .step-label { color: var(--status-green); }

/* ── Notifications ───────────────────────────── */
.notif-dropdown { position: absolute; top: calc(var(--topbar-h) - 2px); right: 28px; width: 320px; background: var(--bg-surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); z-index: 200; display: none; }
.notif-dropdown.open { display: block; animation: dropIn 0.2s ease; }
@keyframes dropIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }
.notif-header { padding: 13px 18px 10px; border-bottom: 1px solid var(--divider); font-family: 'Bebas Neue', sans-serif; font-size: 14px; letter-spacing: 1px; }
.notif-item   { padding: 11px 18px; border-bottom: 1px solid var(--divider); display: flex; gap: 10px; cursor: pointer; transition: var(--transition); }
.notif-item:hover { background: var(--bg-input); }
.notif-item:last-child { border-bottom: none; }
.notif-dot      { width: 8px; height: 8px; border-radius: 50%; background: var(--accent-primary); margin-top: 5px; flex-shrink: 0; }
.notif-dot.read { background: var(--divider); }
.notif-text     { font-family: 'Inter', sans-serif; font-size: 12.5px; color: var(--text-primary); }
.notif-time     { font-family: 'Inter', sans-serif; font-size: 11px; color: var(--text-muted); margin-top: 2px; }

/* ── Signature pad ───────────────────────────── */
.sig-pad-wrap { border: 2px dashed var(--border); border-radius: var(--radius-md); padding: 10px; background: var(--bg-input); cursor: crosshair; }
#sig-canvas   { display: block; width: 100%; height: 130px; border-radius: var(--radius-sm); background: transparent; touch-action: none; }

/* ── Modal ───────────────────────────────────── */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.5); backdrop-filter: blur(3px); z-index: 500; display: none; align-items: center; justify-content: center; }
.modal-overlay.open { display: flex; animation: fadeIn 0.2s ease; }
.modal { background: var(--bg-surface); border: 1px solid var(--border); border-radius: var(--radius-xl); box-shadow: var(--shadow-lg); width: 90%; max-width: 560px; animation: scaleIn 0.25s cubic-bezier(0.34,1.56,0.64,1); }
@keyframes scaleIn { from { opacity: 0; transform: scale(0.92); } to { opacity: 1; transform: scale(1); } }
.modal-header { padding: 20px 26px 14px; border-bottom: 1px solid var(--divider); display: flex; align-items: center; justify-content: space-between; }
.modal-title  { font-family: 'Bebas Neue', sans-serif; font-size: 18px; letter-spacing: 1px; color: var(--text-primary); }
.modal-close  { cursor: pointer; background: none; border: none; color: var(--text-muted); font-size: 20px; line-height: 1; }
.modal-body   { padding: 20px 26px; }
.modal-footer { padding: 14px 26px 20px; border-top: 1px solid var(--divider); display: flex; justify-content: flex-end; gap: 10px; }

/* ── Login page ──────────────────────────────── */
.login-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: var(--bg-base); position: relative; overflow: hidden; }
.login-bg   { position: absolute; inset: 0; background: linear-gradient(135deg, #0d0e6b 0%, #1a26c1 50%, #1414b9 100%); opacity: 0.06; pointer-events: none; }
.login-card { background: var(--bg-surface); border: 1px solid var(--border); border-radius: var(--radius-xl); box-shadow: var(--shadow-lg); padding: 42px 40px; width: 100%; max-width: 420px; }
.login-logo { display: flex; align-items: center; gap: 12px; margin-bottom: 28px; }
.login-logo-icon { width: 48px; height: 48px; background: var(--accent-primary); border-radius: 10px; display: flex; align-items: center; justify-content: center; font-family: 'Bebas Neue', sans-serif; font-size: 18px; letter-spacing: 1px; color: white; }
.login-logo-text .brand { font-family: 'Bebas Neue', sans-serif; font-size: 22px; letter-spacing: 2px; color: var(--text-primary); }
.login-logo-text .sub   { font-family: 'Inter', sans-serif; font-size: 11px; color: var(--text-muted); letter-spacing: 0.8px; text-transform: uppercase; }
.login-title { font-family: 'Bebas Neue', sans-serif; font-size: 26px; letter-spacing: 1.5px; margin-bottom: 5px; color: var(--text-primary); }
.login-sub   { font-family: 'Inter', sans-serif; font-size: 13.5px; color: var(--text-muted); margin-bottom: 26px; }
.login-divider { display: flex; align-items: center; gap: 10px; margin: 14px 0; }
.login-divider span { font-size: 11px; color: var(--text-muted); white-space: nowrap; }
.login-divider::before, .login-divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.role-selector { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 18px; }
.role-btn { padding: 10px 8px; border: 1.5px solid var(--border); border-radius: var(--radius-md); background: var(--bg-input); cursor: pointer; text-align: center; transition: var(--transition); font-family: 'Inter', sans-serif; }
.role-btn:hover    { border-color: var(--accent-primary); }
.role-btn.selected { border-color: var(--accent-primary); background: var(--accent-light); }
.role-btn .role-icon { font-size: 22px; margin-bottom: 4px; }
.role-btn .role-name { font-size: 12px; font-weight: 600; color: var(--text-primary); }

.hero-panel { display: none; flex: 1; background: linear-gradient(135deg, #0d0e6b 0%, #1a26c1 100%); min-height: 100vh; align-items: center; justify-content: center; padding: 60px; position: relative; overflow: hidden; }
@media(min-width:900px) { .hero-panel { display: flex; } }
.hero-bg-circle { position: absolute; border-radius: 50%; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.07); }
.hero-content { position: relative; z-index: 1; color: white; max-width: 420px; }
.hero-tagline   { font-family: 'Bebas Neue', sans-serif; font-size: 48px; letter-spacing: 2px; line-height: 1.1; margin-bottom: 16px; }
.hero-tagline span { color: #e8e9f9; }
.hero-desc      { font-family: 'Inter', sans-serif; font-size: 15px; color: rgba(255,255,255,0.65); line-height: 1.7; margin-bottom: 28px; }
.hero-pills     { display: flex; flex-wrap: wrap; gap: 8px; }
.hero-pill      { background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.15); color: rgba(255,255,255,0.8); font-family: 'Inter', sans-serif; font-size: 12px; padding: 5px 12px; border-radius: 20px; }
.hero-stat-row  { display: flex; gap: 28px; margin-top: 36px; padding-top: 28px; border-top: 1px solid rgba(255,255,255,0.12); }
.hero-stat-val  { font-family: 'Bebas Neue', sans-serif; font-size: 32px; letter-spacing: 1px; }
.hero-stat-lab  { font-family: 'Inter', sans-serif; font-size: 12px; color: rgba(255,255,255,0.5); margin-top: 2px; }
.login-wrap     { display: flex; align-items: center; justify-content: center; flex: 0 0 480px; padding: 40px 32px; background: var(--bg-base); min-height: 100vh; }

/* ── Tabs ────────────────────────────────────── */
.tab-bar { display: flex; gap: 0; border-bottom: 2px solid var(--border); margin-bottom: 20px; }
.tab { padding: 10px 20px; font-family: 'Inter', sans-serif; font-size: 13.5px; font-weight: 500; color: var(--text-muted); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -2px; transition: var(--transition); }
.tab.active { color: var(--accent-primary); border-bottom-color: var(--accent-primary); }
.tab:hover  { color: var(--text-primary); }

/* ── Chips ───────────────────────────────────── */
.filter-chip { padding: 5px 13px; border-radius: 20px; border: 1.5px solid var(--border); background: var(--bg-surface); font-family: 'Inter', sans-serif; font-size: 12px; font-weight: 500; color: var(--text-secondary); cursor: pointer; transition: var(--transition); }
.filter-chip.active { border-color: var(--accent-primary); background: var(--accent-light); color: var(--accent-primary); }
.filter-chip:hover  { border-color: var(--accent-primary); }

/* ── Utilities ───────────────────────────────── */
.flex         { display: flex; }
.flex-center  { display: flex; align-items: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-8  { gap: 8px; }  .gap-12 { gap: 12px; }  .gap-16 { gap: 16px; }
.mt-4 { margin-top: 4px; }   .mt-8  { margin-top: 8px; }
.mt-16{ margin-top: 16px; }  .mt-24 { margin-top: 24px; }
.mb-16{ margin-bottom: 16px; }.mb-24 { margin-bottom: 24px; }
.section-gap { margin-bottom: 24px; }
.text-muted  { color: var(--text-muted); font-size: 12.5px; }
.text-sm     { font-size: 13px; }
.font-mono   { font-family: 'Courier New', monospace; }
.truncate    { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

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

/* ── Animations ──────────────────────────────── */
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.4; } }
@keyframes slideIn { from { opacity:0; transform:translateX(30px); } to { opacity:1; transform:translateX(0); } }

/* ── Responsive ──────────────────────────────── */
@media (max-width: 900px) {
  .sidebar { width: 60px; }
  .sidebar-logo-text, .nav-item span, .nav-section-label,
  .user-info, .mini-kpi, .nav-badge { display: none; }
  .main-content { margin-left: 60px; }
  .nav-item { justify-content: center; padding: 10px; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .page-content { padding: 16px; }
  .topbar { padding: 0 16px; }
  .stat-grid { grid-template-columns: 1fr; }
}
