/* ── Fonts ─────────────────────────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Playfair+Display:wght@600&display=swap');

/* ── Design Tokens ─────────────────────────────────────────────────────────── */
:root {
  --primary:     #0f172a;
  --secondary:   #2563eb;
  --accent:      #4ade80;
  --background:  #f8fafc;
  --surface:     #ffffff;
  --border:      #e2e8f0;
  --input-bg:    #f1f5f9;

  --text-primary:   #0f172a;
  --text-secondary: #475569;
  --text-muted:     #94a3b8;

  --success:  #16a34a;
  --warning:  #d97706;
  --danger:   #dc2626;
  --info:     #0284c7;

  --success-bg: #f0fdf4;
  --warning-bg: #fffbeb;
  --danger-bg:  #fef2f2;
  --info-bg:    #f0f9ff;

  --radius-lg: 1.5rem;   /* 24px — cards */
  --radius-md: 0.75rem;  /* 12px — inputs, smaller cards */
  --radius-sm: 0.5rem;   /* 8px  — buttons, badges */

  --shadow-sm: 0 1px 3px 0 rgb(0 0 0 / 0.08);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.06);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.07);

  --nav-height: 60px;
  --sidebar-width: 240px;
}

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

html { -webkit-font-smoothing: antialiased; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--background);
  min-height: 100vh;
}

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

img, svg { display: block; max-width: 100%; }

/* ── Typography ────────────────────────────────────────────────────────────── */
h1, h2, h3, h4 { font-weight: 600; line-height: 1.3; color: var(--primary); }
h1 { font-size: 1.875rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.125rem; }
h4 { font-size: 1rem; }

.display-heading {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 600;
}

p { color: var(--text-secondary); }

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

.main-content {
  flex: 1;
  padding: 1.25rem 1.5rem;
  margin-left: var(--sidebar-width);
  min-width: 0;
}

.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
  gap: 0.75rem;
}

.page-title { font-size: 1.5rem; font-weight: 700; }

/* ── Navigation Sidebar ────────────────────────────────────────────────────── */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--sidebar-width);
  height: 100vh;
  background: var(--primary);
  display: flex;
  flex-direction: column;
  padding: 1.5rem 0;
  z-index: 100;
  overflow-y: auto;
}

.sidebar-logo {
  padding: 0 1.25rem 1.5rem;
  border-bottom: 1px solid rgb(255 255 255 / 0.1);
  margin-bottom: 0.75rem;
}

.sidebar-logo a {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
}

.sidebar-logo .logo-icon {
  width: 32px;
  height: 32px;
  background: var(--secondary);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.nav-section { padding: 0 0.75rem; }

.nav-section-label {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgb(255 255 255 / 0.35);
  padding: 0.75rem 0.5rem 0.375rem;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.625rem 0.75rem;
  border-radius: var(--radius-sm);
  color: rgb(255 255 255 / 0.65);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
  margin-bottom: 0.125rem;
}

.nav-item:hover { background: rgb(255 255 255 / 0.08); color: #fff; text-decoration: none; }
.nav-item.active { background: var(--secondary); color: #fff; }

.nav-item svg { flex-shrink: 0; opacity: 0.8; }
.nav-item.active svg { opacity: 1; }

.sidebar-footer {
  margin-top: auto;
  padding: 1rem 0.75rem 0;
  border-top: 1px solid rgb(255 255 255 / 0.1);
}

.sidebar-user {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  margin-bottom: 0.25rem;
}

.sidebar-user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.sidebar-user-info { min-width: 0; }
.sidebar-user-name { font-size: 0.8125rem; font-weight: 600; color: #fff; truncate: ellipsis; white-space: nowrap; overflow: hidden; }
.sidebar-user-role { font-size: 0.6875rem; color: rgb(255 255 255 / 0.45); text-transform: capitalize; }

/* ── Cards ─────────────────────────────────────────────────────────────────── */
.card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  padding: 1.5rem;
}

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

.card-title { font-size: 1rem; font-weight: 600; }

.stat-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  padding: 1.5rem;
}

.stat-label { font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); margin-bottom: 0.5rem; }
.stat-value { font-size: 2rem; font-weight: 700; color: var(--primary); line-height: 1; }
.stat-sub   { font-size: 0.8125rem; color: var(--text-muted); margin-top: 0.375rem; }

/* ── Buttons ───────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  border: 1px solid transparent;
  transition: opacity 0.15s, background 0.15s, border-color 0.15s;
  text-decoration: none;
  white-space: nowrap;
  line-height: 1.4;
}

.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn:hover:not(:disabled) { opacity: 0.88; }

.btn-primary { background: var(--primary); color: #fff; border-color: var(--primary); }
.btn-blue    { background: var(--secondary); color: #fff; border-color: var(--secondary); }
.btn-danger  { background: var(--danger); color: #fff; border-color: var(--danger); }

.btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--border);
}
.btn-outline:hover:not(:disabled) { background: var(--input-bg); opacity: 1; }

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

.btn-sm { padding: 0.1875rem 0.5rem; font-size: 0.8125rem; }
.btn-lg { padding: 0.75rem 1.5rem; font-size: 1rem; }

.btn-full { width: 100%; }

/* ── Forms ─────────────────────────────────────────────────────────────────── */
.form-group { margin-bottom: 1rem; }
.form-group:last-child { margin-bottom: 0; }

label, .form-label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 0.375rem;
}

input[type="text"],
input[type="email"],
input[type="number"],
input[type="password"],
input[type="date"],
input[type="search"],
select,
textarea {
  display: block;
  width: 100%;
  padding: 0.5625rem 0.75rem;
  background: var(--input-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-family: inherit;
  color: var(--text-primary);
  transition: border-color 0.15s, box-shadow 0.15s;
  outline: none;
}

input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-decoration { -webkit-appearance: none; }
input[type="search"] { -webkit-appearance: none; }

input:focus, select:focus, textarea:focus {
  border-color: var(--secondary);
  box-shadow: 0 0 0 3px rgb(37 99 235 / 0.12);
  background: var(--surface);
}

input.is-error, select.is-error { border-color: var(--danger); }
input.is-error:focus, select.is-error:focus { box-shadow: 0 0 0 3px rgb(220 38 38 / 0.12); }

.field-error { font-size: 0.8125rem; color: var(--danger); margin-top: 0.25rem; }
.form-help   { font-size: 0.8125rem; color: var(--text-muted); margin-top: 0.25rem; }

/* ── Tables ────────────────────────────────────────────────────────────────── */
.table-wrapper { overflow-x: auto; overflow-y: auto; max-height: 75vh; }
/* Balance page has a stat card above the table — compensate so page body never scrolls */
.balance-table-wrapper { max-height: calc(75vh - 140px); }

table {
  width: 100%;
  border-collapse: collapse;
}

thead tr {
  border-bottom: 1px solid var(--border);
}

th {
  position: sticky;
  top: 0;
  background: var(--surface);
  z-index: 2;
  text-align: left;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  padding: 0.4rem 0.875rem;
  white-space: nowrap;
  box-shadow: 0 1px 0 var(--border);
}
th[data-sort] {
  cursor: pointer;
  user-select: none;
}
th[data-sort]:hover { color: var(--text); }
th[data-sort]::after        { content: ' ⇅'; opacity: 0.3; font-weight: 400; }
th[data-sort].sort-asc::after  { content: ' ↑'; opacity: 1; }
th[data-sort].sort-desc::after { content: ' ↓'; opacity: 1; }

td {
  padding: 0.3125rem 0.875rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.875rem;
  color: var(--text-secondary);
}

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

.td-actions { text-align: right; white-space: nowrap; }

/* ── Badges ────────────────────────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.1875rem 0.5rem;
  border-radius: 999px;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.badge-green  { background: #dcfce7; color: #15803d; }
.badge-red    { background: #fee2e2; color: #b91c1c; }
.badge-blue   { background: #dbeafe; color: #1d4ed8; }
.badge-yellow { background: #fef9c3; color: #a16207; }
.badge-gray   { background: #f1f5f9; color: #475569; }

/* ── Alerts & Toasts ───────────────────────────────────────────────────────── */
.alert {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.875rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  border: 1px solid transparent;
  margin-bottom: 1rem;
}

.alert-success { background: var(--success-bg); color: var(--success); border-color: #bbf7d0; }
.alert-error   { background: var(--danger-bg);  color: var(--danger);  border-color: #fecaca; }
.alert-info    { background: var(--info-bg);    color: var(--info);    border-color: #bae6fd; }
.alert-warning { background: var(--warning-bg); color: var(--warning); border-color: #fde68a; }

.toast-container {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  z-index: 9999;
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  background: var(--primary);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  pointer-events: auto;
  animation: toast-in 0.2s ease;
  max-width: 360px;
}

.toast-success { background: var(--success); }
.toast-error   { background: var(--danger); }

@keyframes toast-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Pagination ────────────────────────────────────────────────────────────── */
.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  margin-top: 0.25rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.pagination-controls { display: flex; align-items: center; gap: 0.25rem; }

/* ── Modal ─────────────────────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgb(0 0 0 / 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 500;
  padding: 1rem;
  backdrop-filter: blur(2px);
}

.modal {
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border);
}

.modal-title { font-size: 1rem; font-weight: 600; }

.modal-body    { padding: 1.5rem; }
.modal-footer  { padding: 1rem 1.5rem; border-top: 1px solid var(--border); display: flex; justify-content: flex-end; gap: 0.5rem; }

/* ── Utility classes ───────────────────────────────────────────────────────── */
.hidden   { display: none !important; }
.sr-only  { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.text-muted   { color: var(--text-muted) !important; }
.text-success { color: var(--success) !important; }
.text-danger  { color: var(--danger) !important; }
.text-primary { color: var(--primary) !important; }

.font-mono { font-family: ui-monospace, monospace; }

.flex           { display: flex; }
.flex-col       { flex-direction: column; }
.items-center   { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }

.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }

/* ── Login Page – Split Layout ─────────────────────────────────────────────── */
.login-body { background: #fff; }

.lp-split {
  display: flex;
  height: 100vh;
  overflow: hidden;
}

/* ── Form panel (left) ── */
.lp-form-panel {
  flex: 0 0 480px;
  display: flex;
  flex-direction: column;
  background: #fff;
  padding: 2rem 3rem;
  position: relative;
  z-index: 1;
  overflow-y: auto;
}

.lp-form-inner {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.lp-header { margin-bottom: auto; padding-bottom: 1.5rem; }

.lp-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  text-decoration: none;
}

.lp-logo-mark {
  width: 36px;
  height: 36px;
  background: var(--primary);
  color: #fff;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}

.lp-logo-name {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: -0.02em;
}

.lp-main { flex: 1; display: flex; flex-direction: column; justify-content: center; }

.lp-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2.25rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 0.625rem;
  line-height: 1.2;
}

.lp-subtitle {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  margin-bottom: 2.25rem;
  line-height: 1.6;
}

.lp-form { display: flex; flex-direction: column; gap: 0.875rem; }

.lp-field { display: flex; flex-direction: column; gap: 0.375rem; }

.lp-input {
  width: 100%;
  padding: 0.875rem 1.125rem;
  background: #f3f4f6;
  border: 1.5px solid transparent;
  border-radius: 12px;
  font-size: 0.9375rem;
  font-family: inherit;
  color: var(--primary);
  outline: none;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}

.lp-input::placeholder { color: #9ca3af; }

.lp-input:focus {
  background: #fff;
  border-color: var(--secondary);
  box-shadow: 0 0 0 3px rgb(37 99 235 / 0.1);
}

.lp-input.is-error { border-color: var(--danger); background: #fff; }

.lp-field-error {
  font-size: 0.8125rem;
  color: var(--danger);
  padding-left: 0.25rem;
}

.lp-btn {
  width: 100%;
  padding: 0.9375rem;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 0.9375rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: opacity 0.15s, transform 0.1s;
  margin-top: 0.375rem;
}

.lp-btn:hover:not(:disabled) { opacity: 0.88; }
.lp-btn:active:not(:disabled) { transform: scale(0.99); }
.lp-btn:disabled { opacity: 0.5; cursor: not-allowed; }

.lp-btn-outline {
  background: #fff;
  color: var(--primary);
  border: 1.5px solid var(--border);
  margin-top: 0.75rem;
}
.lp-btn-outline:hover:not(:disabled) { background: var(--background); opacity: 1; }

.lp-alert {
  padding: 0.875rem 1rem;
  border-radius: 10px;
  font-size: 0.875rem;
  margin-bottom: 1.25rem;
  border: 1px solid transparent;
}

.lp-alert-error {
  background: #fef2f2;
  color: #b91c1c;
  border-color: #fecaca;
}

.lp-success-card {
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
  padding: 1.125rem;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 12px;
  margin-bottom: 0.875rem;
}

.lp-success-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: #dcfce7;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #16a34a;
}

.lp-success-title { font-size: 0.9375rem; font-weight: 600; color: #15803d; margin-bottom: 0.25rem; }
.lp-success-body  { font-size: 0.875rem; color: #166534; line-height: 1.5; }

.lp-footer {
  padding-top: 1rem;
  margin-top: auto;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.lp-footer a { color: var(--secondary); font-weight: 500; }
.lp-footer a:hover { text-decoration: underline; }

/* ── Visual panel (right) ── */
.lp-visual-panel {
  flex: 1;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f0f0f0;
}

.lp-visual-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Glassmorphism feature card */
.lp-glass-card {
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  padding: 2.25rem 2.5rem;
  max-width: 400px;
  width: 100%;
  position: relative;
  z-index: 2;
}

.lp-glass-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(74 222 128 / 0.12);
  border: 1px solid rgba(74 222 128 / 0.25);
  border-radius: 999px;
  padding: 0.3125rem 0.875rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #4ade80;
  margin-bottom: 1.5rem;
}

.lp-glass-dot {
  width: 7px;
  height: 7px;
  background: #4ade80;
  border-radius: 50%;
  box-shadow: 0 0 6px #4ade80;
  animation: pulse-dot 2s ease-in-out infinite;
}

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

.lp-glass-headline {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.625rem;
  font-weight: 600;
  color: #fff;
  line-height: 1.35;
  margin-bottom: 2rem;
}

.lp-glass-stats {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.lp-stat { display: flex; flex-direction: column; gap: 0.25rem; }
.lp-stat-value { font-size: 1.375rem; font-weight: 700; color: #fff; line-height: 1; }
.lp-stat-label { font-size: 0.75rem; color: rgba(255 255 255 / 0.45); }

.lp-stat-divider {
  width: 1px;
  height: 36px;
  background: rgba(255 255 255 / 0.12);
  flex-shrink: 0;
}

/* Decorative blobs */
.lp-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(72px);
  pointer-events: none;
}

.lp-blob-1 {
  width: 380px;
  height: 380px;
  background: rgba(37 99 235 / 0.35);
  top: -80px;
  right: -80px;
}

.lp-blob-2 {
  width: 300px;
  height: 300px;
  background: rgba(74 222 128 / 0.12);
  bottom: -60px;
  left: 10%;
}

.lp-blob-3 {
  width: 200px;
  height: 200px;
  background: rgba(99 102 241 / 0.2);
  top: 40%;
  right: 15%;
}

/* ── Spinner ───────────────────────────────────────────────────────────────── */
.spinner {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2px solid var(--border);
  border-top-color: var(--secondary);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  vertical-align: middle;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.loading-row td {
  text-align: center;
  color: var(--text-muted);
  padding: 2.5rem;
}

/* ── Mobile nav overlay ────────────────────────────────────────────────────── */
.mobile-overlay {
  position: fixed;
  inset: 0;
  background: rgb(0 0 0 / 0.4);
  z-index: 99;
}

/* ── Responsive ────────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.25s ease;
  }

  .sidebar.open { transform: translateX(0); }

  .main-content {
    margin-left: 0;
    padding: 1rem;
  }

  .mobile-nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: none;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    color: var(--text-primary);
  }

  .stat-card .stat-value { font-size: 1.5rem; }

  .page-header { flex-wrap: wrap; }

  table thead { display: none; }

  table tr {
    display: block;
    padding: 0.75rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    margin-bottom: 0.5rem;
  }

  table td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.375rem 0;
    border-bottom: none;
    font-size: 0.8125rem;
  }

  table td::before {
    content: attr(data-label);
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-right: 0.5rem;
  }

  .modal { max-width: 100%; border-radius: var(--radius-md); }

  /* Login split → stacked on mobile */
  .lp-split { flex-direction: column; }
  .lp-form-panel { flex: none; padding: 2rem 1.5rem; min-height: 100%; }
  .lp-visual-panel { display: none; }
  .lp-title { font-size: 1.875rem; }
}

@media (min-width: 769px) {
  .mobile-nav-toggle { display: none; }
  .mobile-overlay    { display: none !important; }
}
