/* ===================================================
   It Means — Mockup Design System
   =================================================== */

:root {
  --primary:       #0f766e;
  --primary-50:    #f0fdfa;
  --primary-100:   #ccfbf1;
  --primary-600:   #0d9488;
  --primary-700:   #0f766e;
  --primary-800:   #115e59;
  --primary-900:   #134e4a;

  --slate-50:  #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-300: #cbd5e1;
  --slate-400: #94a3b8;
  --slate-500: #64748b;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-800: #1e293b;
  --slate-900: #0f172a;

  --emerald-100: #d1fae5;
  --emerald-600: #059669;
  --emerald-700: #047857;
  --amber-100:   #fef3c7;
  --amber-600:   #d97706;
  --blue-100:    #dbeafe;
  --blue-600:    #2563eb;
  --red-100:     #fee2e2;
  --red-600:     #dc2626;
  --purple-100:  #ede9fe;
  --purple-600:  #7c3aed;

  --sidebar-width: 240px;
  --radius:    8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow:    0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.07), 0 2px 4px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 15px rgba(0,0,0,0.1), 0 4px 6px rgba(0,0,0,0.05);
}

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Inter, sans-serif;
  color: var(--slate-700);
  background: var(--slate-50);
  line-height: 1.5;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
input, select, textarea { font-family: inherit; }

/* ===== Sidebar layout ===== */
.layout {
  display: flex;
  height: 100vh;
  overflow: hidden;
}

.sidebar {
  width: var(--sidebar-width);
  min-width: var(--sidebar-width);
  background: var(--slate-900);
  color: white;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  flex-shrink: 0;
}

.sidebar-logo {
  padding: 20px 20px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.logo-mark {
  width: 32px; height: 32px;
  background: var(--primary);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; flex-shrink: 0;
}
.logo-text { font-size: 16px; font-weight: 700; letter-spacing: -0.3px; }

.sidebar-nav { flex: 1; padding: 12px 8px; }

.nav-section {
  padding: 16px 12px 4px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--slate-500);
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  font-size: 13.5px;
  color: var(--slate-400);
  border-radius: 6px;
  transition: all 0.12s;
  cursor: pointer;
  margin-bottom: 1px;
}
.nav-item:hover { color: white; background: rgba(255,255,255,0.06); }
.nav-item.active { color: white; background: var(--primary); }
.nav-icon { font-size: 15px; width: 20px; text-align: center; flex-shrink: 0; }
.nav-badge {
  margin-left: auto;
  background: rgba(255,255,255,0.15);
  color: white;
  font-size: 10px;
  font-weight: 600;
  padding: 1px 6px;
  border-radius: 10px;
}
.nav-item.active .nav-badge { background: rgba(255,255,255,0.2); }

.phase-tag {
  margin-left: auto;
  font-size: 9px;
  font-weight: 700;
  padding: 2px 5px;
  border-radius: 4px;
  background: rgba(217,119,6,0.25);
  color: #fbbf24;
}

.sidebar-footer {
  padding: 16px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.user-info { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.user-avatar {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 600; color: white; flex-shrink: 0;
}
.user-name { font-size: 13px; font-weight: 600; color: white; line-height: 1.2; }
.user-role { font-size: 11px; color: var(--slate-400); }
.sign-out { font-size: 12px; color: var(--slate-500); }
.sign-out:hover { color: white; }

/* ===== Main ===== */
.main { flex: 1; display: flex; flex-direction: column; overflow-y: auto; }

.page-header {
  padding: 20px 32px;
  background: white;
  border-bottom: 1px solid var(--slate-200);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.page-header-left h1 {
  font-size: 20px; font-weight: 700;
  color: var(--slate-900); letter-spacing: -0.3px;
}
.page-subtitle { font-size: 13px; color: var(--slate-500); margin-top: 2px; }

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

/* ===== Cards ===== */
.card {
  background: white;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}
.card + .card { margin-top: 16px; }
.card-header {
  display: flex; align-items: flex-start; justify-content: space-between;
  margin-bottom: 20px;
}
.card-title { font-size: 14px; font-weight: 600; color: var(--slate-800); }
.card-subtitle { font-size: 12px; color: var(--slate-500); margin-top: 2px; }

/* ===== Stats ===== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.stat-card {
  background: white;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}
.stat-label {
  font-size: 11px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.5px;
  color: var(--slate-500); margin-bottom: 8px;
}
.stat-value {
  font-size: 30px; font-weight: 800;
  color: var(--slate-900); letter-spacing: -1px; line-height: 1;
}
.stat-unit { font-size: 13px; font-weight: 500; color: var(--slate-500); }
.stat-sub { font-size: 12px; color: var(--slate-500); margin-top: 6px; }
.stat-up { color: var(--emerald-600); }
.stat-down { color: var(--red-600); }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 18px;
  border-radius: var(--radius); font-size: 14px; font-weight: 500;
  cursor: pointer; border: none; transition: all 0.12s;
  line-height: 1; white-space: nowrap; text-decoration: none;
}
.btn-primary   { background: var(--primary); color: white; }
.btn-primary:hover { background: var(--primary-800); }
.btn-secondary { background: white; color: var(--slate-700); border: 1px solid var(--slate-300); }
.btn-secondary:hover { background: var(--slate-50); }
.btn-ghost     { background: transparent; color: var(--slate-600); }
.btn-ghost:hover { background: var(--slate-100); }
.btn-danger    { background: var(--red-600); color: white; }
.btn-danger:hover { background: #b91c1c; }
.btn-success   { background: var(--emerald-600); color: white; }
.btn-sm  { padding: 6px 12px; font-size: 13px; }
.btn-lg  { padding: 12px 24px; font-size: 15px; }
.btn-xl  { padding: 14px 32px; font-size: 16px; font-weight: 600; }
.btn-full { width: 100%; justify-content: center; }

/* ===== Badges ===== */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 9px; border-radius: 100px;
  font-size: 11px; font-weight: 600; letter-spacing: 0.2px;
}
.badge-green   { background: var(--emerald-100); color: var(--emerald-700); }
.badge-amber   { background: var(--amber-100);   color: var(--amber-600); }
.badge-blue    { background: var(--blue-100);    color: var(--blue-600); }
.badge-red     { background: var(--red-100);     color: var(--red-600); }
.badge-slate   { background: var(--slate-100);   color: var(--slate-600); }
.badge-purple  { background: var(--purple-100);  color: var(--purple-600); }
.badge-teal    { background: var(--primary-100); color: var(--primary-800); }

.phase-badge { font-size: 10px; padding: 2px 6px; border-radius: 4px; font-weight: 700; letter-spacing: 0.3px; }
.p1 { background: #d1fae5; color: #065f46; }
.p2 { background: #fef3c7; color: #92400e; }
.p3 { background: #dbeafe; color: #1e40af; }

/* ===== Forms ===== */
.form-group { margin-bottom: 20px; }
.form-label {
  display: block; font-size: 13px; font-weight: 500;
  color: var(--slate-700); margin-bottom: 6px;
}
.form-label .req { color: var(--red-600); margin-left: 2px; }
.form-input, .form-select, .form-textarea {
  width: 100%; padding: 9px 12px;
  border: 1px solid var(--slate-300); border-radius: var(--radius);
  font-size: 14px; color: var(--slate-800); background: white;
  transition: border-color 0.12s; outline: none;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(15,118,110,0.1);
}
.form-textarea { resize: vertical; min-height: 80px; }
.form-hint { font-size: 12px; color: var(--slate-500); margin-top: 4px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }

/* ===== Tables ===== */
.table-wrap { overflow-x: auto; border-radius: var(--radius-lg); border: 1px solid var(--slate-200); }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
thead th {
  text-align: left; padding: 10px 16px;
  font-size: 11px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.5px;
  color: var(--slate-500); background: var(--slate-50);
  border-bottom: 1px solid var(--slate-200);
}
tbody td {
  padding: 13px 16px; border-bottom: 1px solid var(--slate-100);
  color: var(--slate-700);
}
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover td { background: var(--slate-50); }
.td-main { font-weight: 500; color: var(--slate-900); }
.td-mono { font-family: monospace; font-size: 12px; color: var(--slate-500); }

/* ===== Public pages (no sidebar) ===== */
.public-nav {
  background: var(--slate-900); padding: 0 40px; height: 64px;
  display: flex; align-items: center; justify-content: space-between;
  position: sticky; top: 0; z-index: 50;
}
.public-nav .logo { display: flex; align-items: center; gap: 10px; color: white; font-size: 16px; font-weight: 700; }
.logo-dot { width: 30px; height: 30px; background: var(--primary); border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 14px; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { color: var(--slate-400); font-size: 14px; font-weight: 500; transition: color 0.12s; }
.nav-links a:hover { color: white; }
.nav-links .cta { background: var(--primary); color: white; padding: 8px 16px; border-radius: 8px; }
.nav-links .cta:hover { background: var(--primary-800); }

.hero {
  background: linear-gradient(135deg, var(--slate-900) 0%, #0c3b38 100%);
  color: white; padding: 96px 40px;
  text-align: center;
}
.hero h1 { font-size: 52px; font-weight: 800; letter-spacing: -1.5px; line-height: 1.1; margin-bottom: 18px; }
.hero .tagline { font-size: 13px; letter-spacing: 1px; text-transform: uppercase; color: var(--primary-600); font-weight: 600; margin-bottom: 16px; }
.hero p { font-size: 18px; color: var(--slate-300); max-width: 560px; margin: 0 auto 36px; line-height: 1.6; }
.hero-actions { display: flex; gap: 12px; justify-content: center; }

.container { max-width: 1080px; margin: 0 auto; padding: 0 40px; }
.section { padding: 72px 0; }
.section-title { font-size: 28px; font-weight: 700; color: var(--slate-900); letter-spacing: -0.5px; margin-bottom: 8px; }
.section-sub { font-size: 16px; color: var(--slate-500); margin-bottom: 40px; }

/* ===== Auth ===== */
.auth-wrap {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--slate-900) 0%, #0c3b38 100%);
  padding: 32px;
}
.auth-card {
  background: white; border-radius: var(--radius-xl);
  padding: 40px; width: 100%; max-width: 420px;
  box-shadow: var(--shadow-lg);
}
.auth-logo { display: flex; align-items: center; gap: 12px; margin-bottom: 28px; }
.auth-logo-mark { width: 40px; height: 40px; background: var(--primary); border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 18px; }
.auth-logo-text { font-size: 20px; font-weight: 800; color: var(--slate-900); letter-spacing: -0.5px; }
.auth-title { font-size: 22px; font-weight: 700; color: var(--slate-900); margin-bottom: 6px; }
.auth-sub { font-size: 14px; color: var(--slate-500); margin-bottom: 28px; }

/* ===== Divider ===== */
.divider { height: 1px; background: var(--slate-200); margin: 24px 0; }
.divider-label {
  display: flex; align-items: center; gap: 12px;
  font-size: 12px; color: var(--slate-400); margin: 20px 0;
}
.divider-label::before, .divider-label::after { content: ''; flex: 1; height: 1px; background: var(--slate-200); }

/* ===== 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-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }

/* ===== Flex utilities ===== */
.flex { display: flex; }
.flex-col { display: flex; flex-direction: column; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-4  { gap: 4px; }
.gap-8  { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.gap-20 { gap: 20px; }
.gap-24 { gap: 24px; }
.flex-1 { flex: 1; }

/* ===== Spacing ===== */
.mb-4  { margin-bottom: 4px; }
.mb-8  { margin-bottom: 8px; }
.mb-12 { margin-bottom: 12px; }
.mb-16 { margin-bottom: 16px; }
.mb-20 { margin-bottom: 20px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.mt-4  { margin-top: 4px; }
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.ml-auto { margin-left: auto; }

/* ===== Typography ===== */
.text-xs   { font-size: 11px; }
.text-sm   { font-size: 13px; }
.text-base { font-size: 14px; }
.text-lg   { font-size: 16px; }
.text-xl   { font-size: 18px; }
.text-muted   { color: var(--slate-500); }
.text-primary { color: var(--primary); }
.text-success { color: var(--emerald-600); }
.text-danger  { color: var(--red-600); }
.text-amber   { color: var(--amber-600); }
.font-medium  { font-weight: 500; }
.font-semi    { font-weight: 600; }
.font-bold    { font-weight: 700; }
.text-900 { color: var(--slate-900); }
.text-center { text-align: center; }

/* ===== Alerts ===== */
.alert {
  padding: 12px 16px; border-radius: var(--radius);
  font-size: 13px; display: flex; align-items: flex-start; gap: 10px;
  margin-bottom: 16px; line-height: 1.5;
}
.alert-info    { background: var(--blue-100);    color: #1e40af; border: 1px solid #bfdbfe; }
.alert-success { background: var(--emerald-100); color: #065f46; border: 1px solid #a7f3d0; }
.alert-warning { background: var(--amber-100);   color: #92400e; border: 1px solid #fde68a; }
.alert-danger  { background: var(--red-100);     color: #991b1b; border: 1px solid #fecaca; }

/* ===== Phase notice ===== */
.phase-notice {
  background: #fffbeb; border: 1px dashed var(--amber-600);
  border-radius: var(--radius); padding: 12px 16px;
  font-size: 13px; color: #92400e;
  display: flex; align-items: center; gap: 8px; margin-bottom: 20px;
}

/* ===== Step indicator ===== */
.step-bar { display: flex; align-items: center; margin-bottom: 32px; }
.step-dot {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--slate-200); color: var(--slate-500);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 600; position: relative; z-index: 1; flex-shrink: 0;
}
.step-dot.active { background: var(--primary); color: white; }
.step-dot.done   { background: var(--emerald-600); color: white; }
.step-label { font-size: 12px; color: var(--slate-500); margin-top: 4px; white-space: nowrap; }
.step-item { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.step-line { flex: 1; height: 2px; background: var(--slate-200); }
.step-line.done { background: var(--emerald-600); }

/* ===== Unit selector ===== */
.unit-row { display: flex; align-items: center; justify-content: space-between; padding: 16px 0; border-bottom: 1px solid var(--slate-100); }
.unit-row:last-child { border-bottom: none; }
.unit-name { font-size: 15px; font-weight: 600; color: var(--slate-900); }
.unit-rate { font-size: 12px; color: var(--slate-500); margin-top: 2px; }
.unit-controls { display: flex; align-items: center; gap: 12px; }
.unit-btn {
  width: 32px; height: 32px; border-radius: var(--radius); border: 1px solid var(--slate-300);
  background: white; font-size: 18px; cursor: pointer;
  display: flex; align-items: center; justify-content: center; transition: all 0.12s;
}
.unit-btn:hover { border-color: var(--primary); color: var(--primary); }
.unit-count { font-size: 18px; font-weight: 700; min-width: 28px; text-align: center; color: var(--slate-900); }

/* ===== QR ===== */
.qr-wrap {
  background: white; padding: 28px;
  border-radius: var(--radius-xl); display: inline-flex;
  flex-direction: column; align-items: center; gap: 16px;
  box-shadow: var(--shadow-lg); text-align: center;
}
.qr-code {
  width: 192px; height: 192px;
  background-image:
    repeating-linear-gradient(0deg,   transparent 0 6px, #000 6px 8px),
    repeating-linear-gradient(90deg,  transparent 0 6px, #000 6px 8px);
  border: 3px solid white; outline: 2px solid #000;
  position: relative;
}
.qr-code::before, .qr-code::after {
  content: ''; position: absolute;
  width: 48px; height: 48px;
  background: white;
  border: 3px solid #000;
}
.qr-code::before { top: 8px; left: 8px; }
.qr-code::after  { bottom: 8px; right: 8px; }
.qr-name    { font-size: 17px; font-weight: 700; color: var(--slate-900); }
.qr-balance { font-size: 13px; color: var(--slate-500); }

/* ===== Scan viewfinder ===== */
.scan-area {
  background: var(--slate-900); border-radius: var(--radius-xl);
  padding: 40px; text-align: center; color: white;
}
.viewfinder {
  width: 220px; height: 220px; margin: 0 auto 24px;
  border: 2px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-xl);
  display: flex; align-items: center; justify-content: center;
  position: relative; background: rgba(0,0,0,0.4);
  font-size: 48px;
}
.viewfinder-corner {
  position: absolute; width: 28px; height: 28px; border-color: var(--primary-600); border-style: solid;
}
.vc-tl { top: -2px; left: -2px; border-width: 3px 0 0 3px; border-radius: 8px 0 0 0; }
.vc-tr { top: -2px; right: -2px; border-width: 3px 3px 0 0; border-radius: 0 8px 0 0; }
.vc-bl { bottom: -2px; left: -2px; border-width: 0 0 3px 3px; border-radius: 0 0 0 8px; }
.vc-br { bottom: -2px; right: -2px; border-width: 0 3px 3px 0; border-radius: 0 0 8px 0; }
.scan-prompt { font-size: 14px; color: var(--slate-400); }

/* ===== Merchant card ===== */
.merchant-card {
  display: flex; align-items: center; gap: 16px; padding: 16px;
  background: white; border: 1px solid var(--slate-200); border-radius: var(--radius-lg);
  cursor: pointer; transition: all 0.12s;
}
.merchant-card:hover { border-color: var(--primary); box-shadow: 0 0 0 1px var(--primary); }
.merchant-icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: var(--primary-50); display: flex; align-items: center;
  justify-content: center; font-size: 22px; flex-shrink: 0;
  border: 1px solid var(--primary-100);
}
.merchant-name { font-size: 15px; font-weight: 600; color: var(--slate-900); }
.merchant-meta { font-size: 12px; color: var(--slate-500); margin-top: 2px; }

/* ===== Avatar ===== */
.avatar {
  border-radius: 50%; background: var(--primary); color: white;
  display: flex; align-items: center; justify-content: center; font-weight: 600; flex-shrink: 0;
}
.avatar-sm { width: 32px; height: 32px; font-size: 12px; }
.avatar-md { width: 40px; height: 40px; font-size: 14px; }
.avatar-lg { width: 56px; height: 56px; font-size: 20px; }
.avatar-xl { width: 80px; height: 80px; font-size: 28px; }

/* ===== Progress ===== */
.progress { height: 6px; background: var(--slate-100); border-radius: 100px; overflow: hidden; }
.progress-bar { height: 100%; background: var(--primary); border-radius: 100px; }

/* ===== Timeline / steps ===== */
.timeline { display: flex; flex-direction: column; gap: 0; }
.tl-item { display: flex; gap: 16px; padding-bottom: 24px; position: relative; }
.tl-item:not(:last-child)::after {
  content: ''; position: absolute; left: 15px; top: 32px;
  width: 2px; height: calc(100% - 32px); background: var(--slate-200);
}
.tl-dot {
  width: 32px; height: 32px; border-radius: 50%; background: var(--primary);
  color: white; display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; flex-shrink: 0; position: relative; z-index: 1;
}
.tl-dot.pending { background: var(--slate-200); color: var(--slate-500); }
.tl-content { flex: 1; padding-top: 5px; }
.tl-title { font-size: 14px; font-weight: 600; color: var(--slate-900); margin-bottom: 3px; }
.tl-desc  { font-size: 13px; color: var(--slate-500); }

/* ===== Balance display ===== */
.balance-display {
  background: linear-gradient(135deg, var(--primary-900) 0%, var(--primary-700) 100%);
  border-radius: var(--radius-xl); padding: 28px; color: white;
}
.balance-label { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.8px; color: rgba(255,255,255,0.6); margin-bottom: 12px; }
.balance-services { font-size: 20px; font-weight: 700; line-height: 1.4; }
.balance-note { font-size: 12px; color: rgba(255,255,255,0.5); margin-top: 8px; }
.balance-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 16px; }
.balance-item { background: rgba(255,255,255,0.1); border-radius: 10px; padding: 12px; }
.balance-item-val { font-size: 28px; font-weight: 800; line-height: 1; }
.balance-item-lbl { font-size: 12px; color: rgba(255,255,255,0.6); margin-top: 4px; }

/* ===== Cardholder result card ===== */
.cardholder-result {
  border: 2px solid var(--primary); border-radius: var(--radius-xl);
  padding: 20px; background: var(--primary-50);
  display: flex; align-items: center; gap: 16px;
}

/* ===== Ledger numbers ===== */
.ledger-big { font-size: 48px; font-weight: 900; letter-spacing: -2px; color: var(--slate-900); line-height: 1; }
.ledger-unit { font-size: 14px; color: var(--slate-500); margin-top: 4px; font-weight: 500; }

/* ===== Status dot ===== */
.status-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.status-dot.green  { background: var(--emerald-600); }
.status-dot.amber  { background: var(--amber-600); }
.status-dot.red    { background: var(--red-600); }
.status-dot.slate  { background: var(--slate-400); }

/* ===== Upload area ===== */
.upload-area {
  border: 2px dashed var(--slate-300); border-radius: var(--radius-lg);
  padding: 32px; text-align: center; cursor: pointer; transition: all 0.12s;
  background: var(--slate-50);
}
.upload-area:hover { border-color: var(--primary); background: var(--primary-50); }
.upload-icon { font-size: 32px; margin-bottom: 8px; }
.upload-text { font-size: 14px; font-weight: 500; color: var(--slate-700); }
.upload-hint { font-size: 12px; color: var(--slate-500); margin-top: 4px; }

/* ===== Health indicator ===== */
.health-row {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 0; border-bottom: 1px solid var(--slate-100);
}
.health-row:last-child { border-bottom: none; }
.health-name { font-size: 14px; font-weight: 500; color: var(--slate-800); flex: 1; }
.health-val  { font-size: 13px; color: var(--slate-500); }

/* ===== Role selector ===== */
.role-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; margin-bottom: 24px; }
.role-btn {
  padding: 14px 10px; border: 2px solid var(--slate-200); border-radius: var(--radius-lg);
  background: white; cursor: pointer; text-align: center; transition: all 0.12s;
}
.role-btn:hover { border-color: var(--primary); background: var(--primary-50); }
.role-btn.selected { border-color: var(--primary); background: var(--primary-50); }
.role-emoji { font-size: 24px; margin-bottom: 4px; }
.role-name { font-size: 12px; font-weight: 600; color: var(--slate-700); }

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .layout { flex-direction: column; height: auto; overflow: visible; }
  .sidebar { width: 100%; min-width: 0; height: auto; }
  .main { overflow-y: visible; }
  .form-row, .form-row-3, .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .page-body { padding: 16px; }
  .page-header { padding: 16px; }
  .hero h1 { font-size: 32px; }
  .hero { padding: 60px 24px; }
}
