/* =========================================================
   DEGREEVERSE360 — DESIGN TOKENS
   Palette: deep indigo brand, teal for progress/positive signals,
   amber for attention, coral for risk. Sora for display, Inter for UI/data.
   ========================================================= */
:root {
  --navy-950: #0F1430;
  --navy-900: #131A3A;
  --navy-800: #1B2350;
  --indigo-600: #2A3EB1;
  --indigo-500: #3B4FD1;
  --indigo-100: #E7E9FA;
  --teal-500: #00B8A9;
  --teal-100: #DFF7F4;
  --amber-500: #F5A623;
  --amber-100: #FDF0DA;
  --coral-500: #E14B4B;
  --coral-100: #FBE4E4;
  --green-500: #1FAE6B;
  --green-100: #E1F6EC;
  --violet-500: #7C5CFC;

  --ink-900: #171B33;
  --ink-700: #40456B;
  --ink-500: #6B7094;
  --ink-300: #A6AAC6;
  --line: #E4E6F1;
  --bg: #F4F5FA;
  --surface: #FFFFFF;

  --font-display: 'Sora', 'Inter', sans-serif;
  --font-body: 'Inter', sans-serif;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --shadow-card: 0 1px 2px rgba(23,27,51,0.04), 0 6px 20px rgba(23,27,51,0.06);
  --shadow-pop: 0 12px 32px rgba(23,27,51,0.18);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink-900);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-family: var(--font-display); margin: 0; color: var(--ink-900); }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; }
:focus-visible { outline: 2px solid var(--indigo-500); outline-offset: 2px; }

/* =========================================================
   LOGIN SCREEN
   ========================================================= */
.login-screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(1100px 600px at 15% -10%, rgba(124,92,252,0.18), transparent 60%),
    radial-gradient(900px 500px at 110% 10%, rgba(0,184,169,0.16), transparent 55%),
    var(--navy-950);
  padding: 24px;
}
.login-panel {
  width: 100%;
  max-width: 400px;
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 36px 32px 28px;
  box-shadow: var(--shadow-pop);
}
.login-brand { text-align: left; margin-bottom: 28px; }
.brand-mark {
  width: 44px; height: 44px; border-radius: 12px;
  background: linear-gradient(135deg, var(--indigo-600), var(--violet-500));
  color: #fff; font-family: var(--font-display); font-weight: 800; font-size: 13px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
}
.brand-mark.small { width: 34px; height: 34px; font-size: 11px; border-radius: 9px; }
.login-brand h1 { font-size: 24px; font-weight: 700; letter-spacing: -0.02em; }
.login-brand h1 span { color: var(--indigo-600); }
.login-brand p { margin: 6px 0 0; color: var(--ink-500); font-size: 14px; line-height: 1.5; }
.login-form { display: flex; flex-direction: column; gap: 16px; }
.login-form label { font-size: 13px; font-weight: 600; color: var(--ink-700); display: flex; flex-direction: column; gap: 6px; }
.login-form input {
  border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  padding: 11px 13px; font-size: 14.5px; color: var(--ink-900);
}
.login-form input:focus { border-color: var(--indigo-500); }
.form-error {
  background: var(--coral-100); color: var(--coral-500);
  padding: 9px 12px; border-radius: var(--radius-sm); font-size: 13px; margin: 0;
}
.login-meta { margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line); display: flex; gap: 8px; align-items: flex-end; }
.api-url-label { flex: 1; font-size: 11.5px; color: var(--ink-500); display: flex; flex-direction: column; gap: 5px; }
.api-url-label input { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 7px 9px; font-size: 12.5px; width: 100%; }

/* =========================================================
   BUTTONS
   ========================================================= */
.btn {
  border: none; border-radius: var(--radius-sm); padding: 10px 16px;
  font-size: 14px; font-weight: 600; transition: transform .05s ease, opacity .15s ease;
  display: inline-flex; align-items: center; gap: 6px; justify-content: center;
}
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--indigo-600); color: #fff; }
.btn-primary:hover { background: var(--indigo-500); }
.btn-secondary { background: var(--indigo-100); color: var(--indigo-600); }
.btn-ghost { background: transparent; color: var(--ink-700); border: 1px solid var(--line); }
.btn-danger { background: var(--coral-100); color: var(--coral-500); }
.btn-success { background: var(--green-100); color: var(--green-500); }
.btn-small { padding: 7px 12px; font-size: 12.5px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* =========================================================
   APP SHELL
   ========================================================= */
.app-shell { display: flex; min-height: 100vh; }
.sidebar {
  width: 236px; flex-shrink: 0; background: var(--navy-900); color: #C7CCF0;
  display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh;
  transition: transform .2s ease; z-index: 40;
}
.sidebar-brand { display: flex; align-items: center; gap: 10px; padding: 20px 18px 16px; }
.brand-word { font-family: var(--font-display); font-weight: 700; font-size: 15.5px; color: #fff; }
.brand-word span { color: var(--teal-500); }
.sidebar-nav { flex: 1; padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; }
.sidebar-nav a {
  display: flex; align-items: center; gap: 11px; padding: 10px 12px; border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 500; color: #AEB4DE;
}
.sidebar-nav a:hover { background: rgba(255,255,255,0.06); color: #fff; }
.sidebar-nav a.active { background: var(--indigo-600); color: #fff; }
.sidebar-nav a i { width: 18px; height: 18px; display: inline-block; }
.sidebar-footer { padding: 14px; border-top: 1px solid rgba(255,255,255,0.08); }
.user-chip { display: flex; align-items: center; gap: 10px; padding: 6px 6px 10px; }
.user-avatar {
  width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-size: 13px; flex-shrink: 0;
}
.user-chip-info { line-height: 1.3; overflow: hidden; }
.user-chip-name { font-size: 13.5px; font-weight: 600; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-chip-role { font-size: 11.5px; color: var(--ink-300); text-transform: capitalize; }
.btn-logout { width: 100%; background: rgba(255,255,255,0.06); color: #C7CCF0; border: none; padding: 9px; border-radius: var(--radius-sm); font-size: 13px; font-weight: 600; }
.btn-logout:hover { background: rgba(255,255,255,0.12); }

.main-col { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar {
  display: flex; align-items: center; gap: 14px; padding: 14px 24px; background: var(--surface);
  border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 30;
}
.hamburger { display: none; background: none; border: none; font-size: 20px; }
.topbar-search { flex: 1; max-width: 460px; }
.topbar-search input {
  width: 100%; padding: 9px 14px; border-radius: 999px; border: 1.5px solid var(--line);
  background: var(--bg); font-size: 13.5px;
}
.topbar-search input:focus { border-color: var(--indigo-500); background: #fff; }
.topbar-actions { margin-left: auto; position: relative; }
.icon-btn { background: var(--bg); border: 1px solid var(--line); border-radius: 50%; width: 38px; height: 38px; font-size: 15px; position: relative; }
.notif-badge {
  position: absolute; top: -3px; right: -3px; background: var(--coral-500); color: #fff;
  font-size: 10px; font-weight: 700; border-radius: 999px; padding: 1px 5px; min-width: 16px;
}
.notif-dropdown {
  position: absolute; right: 0; top: 46px; width: 320px; max-height: 400px; overflow-y: auto;
  background: #fff; border-radius: var(--radius-md); box-shadow: var(--shadow-pop); border: 1px solid var(--line);
}
.notif-item { padding: 12px 14px; border-bottom: 1px solid var(--line); font-size: 13px; }
.notif-item:last-child { border-bottom: none; }
.notif-item.unread { background: var(--indigo-100); }
.notif-time { color: var(--ink-500); font-size: 11px; margin-top: 3px; }
.notif-empty { padding: 24px; text-align: center; color: var(--ink-500); font-size: 13px; }

.page-content { padding: 24px 28px 60px; max-width: 1400px; width: 100%; margin: 0 auto; }

/* =========================================================
   PAGE HEADER
   ========================================================= */
.page-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.page-header h2 { font-size: 21px; font-weight: 700; letter-spacing: -0.01em; }
.page-header .subtitle { color: var(--ink-500); font-size: 13.5px; margin-top: 3px; }
.page-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* =========================================================
   DASHBOARD
   ========================================================= */
.hero-stats { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.hero-card {
  background: linear-gradient(135deg, var(--indigo-600), #4C3FCB);
  border-radius: var(--radius-lg); padding: 24px; color: #fff; position: relative; overflow: hidden;
}
.hero-card .hero-number { font-family: var(--font-display); font-size: 42px; font-weight: 800; line-height: 1; }
.hero-card .hero-label { font-size: 13.5px; opacity: 0.85; margin-top: 8px; }
.hero-card .hero-sub { margin-top: 14px; font-size: 12.5px; opacity: 0.75; display: flex; gap: 14px; }
.stat-tile {
  background: var(--surface); border-radius: var(--radius-lg); padding: 20px; box-shadow: var(--shadow-card);
  display: flex; flex-direction: column; justify-content: center;
}
.stat-tile .stat-number { font-family: var(--font-display); font-size: 28px; font-weight: 700; color: var(--ink-900); }
.stat-tile .stat-label { font-size: 12.5px; color: var(--ink-500); margin-top: 4px; }
.stat-tile.warn .stat-number { color: var(--amber-500); }
.stat-tile.danger .stat-number { color: var(--coral-500); }

.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 20px; }
.mini-stat { background: var(--surface); border-radius: var(--radius-md); padding: 16px; box-shadow: var(--shadow-card); }
.mini-stat .mini-number { font-size: 22px; font-weight: 700; font-family: var(--font-display); }
.mini-stat .mini-label { font-size: 12px; color: var(--ink-500); margin-top: 3px; }

.pipeline-card { background: var(--surface); border-radius: var(--radius-lg); padding: 20px 22px; box-shadow: var(--shadow-card); margin-bottom: 20px; }
.pipeline-title { font-size: 14px; font-weight: 700; margin-bottom: 14px; }
.pipeline-track { display: flex; border-radius: 999px; overflow: hidden; height: 34px; }
.pipeline-seg { display: flex; align-items: center; justify-content: center; color: #fff; font-size: 11.5px; font-weight: 700; min-width: 3px; transition: flex-grow .3s; }
.pipeline-legend { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 12px; }
.pipeline-legend-item { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ink-700); }
.pipeline-dot { width: 9px; height: 9px; border-radius: 50%; }

.charts-row { display: grid; grid-template-columns: 1.4fr 1fr; gap: 16px; margin-bottom: 20px; }
.chart-card { background: var(--surface); border-radius: var(--radius-lg); padding: 20px 22px; box-shadow: var(--shadow-card); }
.chart-card h3 { font-size: 14px; margin-bottom: 14px; }
.chart-card canvas { max-height: 260px; }

/* =========================================================
   TABLE / LEADS
   ========================================================= */
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; }
.toolbar select, .toolbar input[type=text], .toolbar input[type=date] {
  padding: 8px 11px; border-radius: var(--radius-sm); border: 1.5px solid var(--line); font-size: 13px; background: #fff;
}
.filter-chip-bar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.filter-chip { background: var(--indigo-100); color: var(--indigo-600); font-size: 12px; font-weight: 600; padding: 5px 10px; border-radius: 999px; display: flex; align-items: center; gap: 6px; }
.filter-chip button { background: none; border: none; color: var(--indigo-600); font-weight: 800; cursor: pointer; }

.table-card { background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); overflow: hidden; }
.table-wrap { overflow-x: auto; }
table.data-table { width: 100%; border-collapse: collapse; font-size: 13.5px; min-width: 1100px; }
table.data-table th {
  text-align: left; padding: 12px 14px; background: var(--bg); color: var(--ink-500);
  font-weight: 600; font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.03em;
  border-bottom: 1px solid var(--line); white-space: nowrap;
  position: sticky; top: 0; z-index: 5;
}
table.data-table td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; white-space: nowrap; }
table.data-table tr:last-child td { border-bottom: none; }
table.data-table tr:hover { background: #FAFBFF; }
.lead-name-cell { display: flex; flex-direction: column; position: relative; }
.lead-name-cell strong { font-weight: 600; cursor: pointer; }
.lead-name-cell strong:hover { color: var(--indigo-600); }
.lead-name-cell small { color: var(--ink-500); font-size: 11.5px; }

.swipe-wrap { position: relative; overflow: hidden; }
.swipe-content { position: relative; background: var(--surface); transition: transform .2s ease; z-index: 2; }
.swipe-content.open { transform: translateX(-96px); }
.swipe-actions { position: absolute; top: 0; right: 0; bottom: 0; width: 96px; display: flex; z-index: 1; }
.swipe-actions button { flex: 1; border: none; color: #fff; font-size: 16px; }
.swipe-actions button.swipe-call { background: var(--indigo-600); }
.swipe-actions button.swipe-wa { background: var(--teal-500); }

.badge { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 700; white-space: nowrap; }
.priority-High { background: var(--coral-100); color: var(--coral-500); }
.priority-Medium { background: var(--amber-100); color: var(--amber-500); }
.priority-Low { background: var(--indigo-100); color: var(--indigo-600); }
.temp-Hot::before { content: '●'; color: var(--coral-500); }
.temp-Warm::before { content: '●'; color: var(--amber-500); }
.temp-Cold::before { content: '●'; color: var(--indigo-500); }

.action-icons { display: flex; gap: 6px; }
.action-icons button {
  width: 30px; height: 30px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: #fff; font-size: 13px;
}
.action-icons button:hover { background: var(--bg); }

.pagination-bar { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-top: 1px solid var(--line); font-size: 13px; color: var(--ink-500); }
.pagination-bar .btn { padding: 6px 12px; }

.empty-state { text-align: center; padding: 60px 20px; color: var(--ink-500); }
.empty-state h3 { color: var(--ink-700); margin-bottom: 8px; }

/* Skeleton loading placeholders */
@keyframes skeleton-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }
.skeleton-block { background: var(--line); border-radius: 6px; animation: skeleton-pulse 1.3s ease-in-out infinite; }
.skeleton-row { display: flex; gap: 14px; align-items: center; padding: 14px 18px; }
.skeleton-row .skeleton-block:first-child { width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0; }
.skeleton-row .skeleton-line { flex: 1; height: 13px; }

/* =========================================================
   MODAL / DRAWER
   ========================================================= */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(15,20,48,0.5); display: flex; align-items: flex-start; justify-content: center;
  padding: 40px 16px; overflow-y: auto; z-index: 100; backdrop-filter: blur(2px);
}
.modal-panel { background: #fff; border-radius: var(--radius-lg); width: 100%; max-width: 640px; box-shadow: var(--shadow-pop); }
.modal-panel.wide { max-width: 920px; }
.modal-header { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.modal-header h3 { font-size: 16px; }
.modal-close { background: none; border: none; font-size: 20px; color: var(--ink-500); }
.modal-body { padding: 22px; max-height: 70vh; overflow-y: auto; }
.modal-footer { padding: 16px 22px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; gap: 10px; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-grid .span-2 { grid-column: span 2; }
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field label { font-size: 12.5px; font-weight: 600; color: var(--ink-700); }
.form-field input, .form-field select, .form-field textarea {
  border: 1.5px solid var(--line); border-radius: var(--radius-sm); padding: 9px 11px; font-size: 13.5px; width: 100%;
}
.form-field textarea { resize: vertical; min-height: 70px; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { border-color: var(--indigo-500); }
.form-field input[readonly] { background: var(--bg); color: var(--ink-500); cursor: not-allowed; }

/* =========================================================
   LEAD PROFILE
   ========================================================= */
.profile-header { background: var(--surface); border-radius: var(--radius-lg); padding: 22px 24px; box-shadow: var(--shadow-card); margin-bottom: 18px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.profile-header .name-block h2 { font-size: 20px; }
.profile-header .name-block .code { color: var(--ink-500); font-size: 12.5px; margin-top: 3px; }
.profile-meta-row { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 14px; }
.profile-meta-item { font-size: 12.5px; }
.profile-meta-item .k { color: var(--ink-500); display: block; margin-bottom: 2px; }
.profile-meta-item .v { font-weight: 600; }

.profile-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 18px; align-items: flex-start; }
.info-card { background: var(--surface); border-radius: var(--radius-lg); padding: 18px 20px; box-shadow: var(--shadow-card); margin-bottom: 16px; }
.info-card h4 { font-size: 13.5px; margin-bottom: 12px; display: flex; justify-content: space-between; align-items: center; }
.info-row { display: flex; justify-content: space-between; padding: 7px 0; font-size: 13px; border-bottom: 1px dashed var(--line); }
.info-row:last-child { border-bottom: none; }
.info-row .k { color: var(--ink-500); }
.info-row .v { font-weight: 600; text-align: right; }

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 16px; }
.tab-btn { padding: 10px 4px; margin-right: 18px; background: none; border: none; font-size: 13.5px; font-weight: 600; color: var(--ink-500); border-bottom: 2px solid transparent; }
.tab-btn.active { color: var(--indigo-600); border-color: var(--indigo-600); }

.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.timeline li:last-child { border-bottom: none; }
.timeline-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--indigo-500); margin-top: 6px; flex-shrink: 0; }
.timeline-content { font-size: 13px; }
.timeline-content .meta { color: var(--ink-500); font-size: 11.5px; margin-top: 2px; }

.note-item { padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.note-item .note-head { display: flex; justify-content: space-between; color: var(--ink-500); font-size: 11.5px; margin-bottom: 4px; }
.note-type-badge { background: var(--teal-100); color: var(--teal-500); padding: 2px 8px; border-radius: 999px; font-weight: 700; font-size: 10.5px; }

.followup-item { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-md); margin-bottom: 8px; }
.followup-item.overdue { border-color: var(--coral-500); background: var(--coral-100); }
.followup-item .fu-main { font-size: 13px; font-weight: 600; }
.followup-item .fu-sub { font-size: 11.5px; color: var(--ink-500); margin-top: 2px; }

/* =========================================================
   SETTINGS TABS / GENERIC LIST
   ========================================================= */
.settings-tabs { display: flex; gap: 6px; margin-bottom: 18px; flex-wrap: wrap; }
.settings-tab { padding: 9px 16px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 13px; font-weight: 600; color: var(--ink-700); }
.settings-tab.active { background: var(--indigo-600); color: #fff; border-color: var(--indigo-600); }

.simple-list-row { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.simple-list-row:last-child { border-bottom: none; }

/* =========================================================
   CSV IMPORT WIZARD
   ========================================================= */
.dropzone { border: 2px dashed var(--line); border-radius: var(--radius-lg); padding: 40px; text-align: center; color: var(--ink-500); cursor: pointer; }
.dropzone:hover { border-color: var(--indigo-500); background: var(--indigo-100); }
.import-summary { display: flex; gap: 16px; margin: 16px 0; }
.import-summary .pill { padding: 10px 16px; border-radius: var(--radius-md); font-size: 13px; font-weight: 700; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1080px) {
  .hero-stats { grid-template-columns: 1fr; }
  .charts-row { grid-template-columns: 1fr; }
  .profile-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .sidebar { position: fixed; left: 0; transform: translateX(-100%); box-shadow: var(--shadow-pop); }
  .sidebar.open { transform: translateX(0); }
  .hamburger { display: block; }
  .topbar-search { max-width: none; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .span-2 { grid-column: span 1; }
  table.data-table { min-width: 900px; }
  .page-content { padding-bottom: 76px; }
  .bottom-tabs { display: flex; }
}
@media (min-width: 861px) {
  .bottom-tabs { display: none; }
}
.bottom-tabs {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 50;
  background: var(--navy-900); border-top: 1px solid rgba(255,255,255,0.08);
  padding: 6px 4px calc(6px + env(safe-area-inset-bottom, 0px));
  justify-content: space-around; align-items: center;
}
.bottom-tabs a {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  color: #AEB4DE; font-size: 10.5px; font-weight: 600; padding: 4px 8px; border-radius: 8px; flex: 1;
  transition: color .15s ease;
}
.bottom-tabs a i { width: 20px; height: 20px; display: inline-block; }
.bottom-tabs a.active { color: #fff; }
.bottom-tabs a.active i { color: var(--teal-500); }
@media (max-width: 520px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .page-content { padding: 16px 14px 40px; }
  .login-panel { padding: 28px 22px; }
}
