:root {
  --teal: #00A896;
  --teal2: #05C98A;
  --navy: #0D2B3E;
  --sidebar-w: 250px;
  --topbar-h: 64px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'DM Sans', Arial, sans-serif; background: #F3F4F6; color: #374151; }

/* ── AUTH ───────────────────────────────── */
.auth-body { min-height: 100vh; background: var(--navy); display: flex; }
.auth-shell { display: flex; width: 100%; min-height: 100vh; }
.auth-brand { width: 400px; flex-shrink: 0; padding: 48px 40px; display: flex; flex-direction: column; justify-content: center; color: #fff; }
.auth-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-bottom: 40px; font-family: 'Sora', sans-serif; font-size: 1.3rem; color: #fff; }
.logo-mark { width: 36px; height: 36px; background: linear-gradient(135deg, var(--teal), var(--teal2)); border-radius: 9px; display: flex; align-items: center; justify-content: center; color: #fff; font-size: .9rem; flex-shrink: 0; }
.logo-name strong { color: var(--teal); }
.auth-brand h2 { font-family: 'Sora', sans-serif; font-size: 1.4rem; font-weight: 700; margin-bottom: 10px; }
.auth-brand p { color: rgba(255,255,255,.6); line-height: 1.6; margin-bottom: 20px; font-size: .9rem; }
.auth-brand ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.auth-brand li { display: flex; align-items: center; gap: 8px; color: rgba(255,255,255,.75); font-size: .875rem; }
.auth-brand li i { color: var(--teal); }
.auth-card { flex: 1; background: #fff; padding: 48px 40px; display: flex; flex-direction: column; justify-content: center; overflow-y: auto; }
.auth-form-header { margin-bottom: 28px; }
.auth-form-header h1 { font-family: 'Sora', sans-serif; font-size: 1.7rem; font-weight: 800; color: #111827; margin-bottom: 4px; }
.auth-form-header p { color: #6B7280; font-size: .875rem; }
.label-link { float: right; font-size: .8rem; color: var(--teal); font-weight: 600; }
.btn-auth { width: 100%; padding: 13px; background: linear-gradient(135deg, var(--teal), var(--teal2)); color: #fff; border: none; border-radius: 9px; font-family: 'Sora', sans-serif; font-size: 1rem; font-weight: 700; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px; transition: .2s; box-shadow: 0 4px 14px rgba(0,168,150,.3); margin-top: 4px; }
.btn-auth:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(0,168,150,.4); }
.auth-footer-link { text-align: center; margin-top: 18px; font-size: .875rem; color: #6B7280; }
.auth-footer-link a { color: var(--teal); font-weight: 600; }

/* ── FORMS ──────────────────────────────── */
.form-group { margin-bottom: 14px; }
.form-group label { display: block; font-size: .82rem; font-weight: 600; color: #374151; margin-bottom: 5px; }
.form-input { width: 100%; padding: 10px 12px; border: 1.5px solid #D1D5DB; border-radius: 8px; font-size: .9rem; font-family: inherit; outline: none; transition: .2s; background: #fff; }
.form-input:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(0,168,150,.1); }
.form-input[readonly] { background: #F9FAFB; color: #6B7280; }
.form-hint { font-size: .75rem; color: #9CA3AF; margin-top: 3px; display: block; }
.form-info { background: #EFF6FF; border: 1px solid #BFDBFE; border-radius: 8px; padding: 10px 14px; font-size: .85rem; color: #1E40AF; margin: 10px 0; }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-grid-2 .span-2 { grid-column: span 2; }
.form-actions { display: flex; justify-content: flex-end; margin-top: 20px; gap: 10px; }
.input-wrap { position: relative; }
.input-wrap i.prefix { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: #9CA3AF; pointer-events: none; font-size: .85rem; }
.input-wrap .form-input { padding-left: 36px; }
.input-wrap .pw-eye { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); background: none; border: none; color: #9CA3AF; cursor: pointer; padding: 4px; }
.checkbox-label { display: flex; align-items: center; gap: 8px; font-size: .875rem; color: #374151; cursor: pointer; margin-bottom: 14px; }
.checkbox-label a { color: var(--teal); }

/* ── ALERTS ─────────────────────────────── */
.alert { display: flex; align-items: flex-start; gap: 10px; padding: 12px 16px; border-radius: 9px; font-size: .875rem; margin-bottom: 16px; border: 1.5px solid; }
.alert i { flex-shrink: 0; margin-top: 2px; }
.alert-danger  { background: #FEE2E2; color: #991B1B; border-color: #FECACA; }
.alert-success { background: #D1FAE5; color: #065F46; border-color: #A7F3D0; }
.alert-warning { background: #FEF3C7; color: #92400E; border-color: #FDE68A; }
.alert-info    { background: #DBEAFE; color: #1E40AF; border-color: #BFDBFE; }

/* ── BUTTONS ─────────────────────────────── */
.btn-primary { display: inline-flex; align-items: center; gap: 7px; padding: 10px 20px; background: linear-gradient(135deg, var(--teal), var(--teal2)); color: #fff; border: none; border-radius: 8px; font-size: .875rem; font-weight: 700; font-family: inherit; cursor: pointer; text-decoration: none; transition: .2s; }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,168,150,.35); }
.btn-ghost-sm { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border: 1.5px solid #D1D5DB; background: #fff; color: #374151; border-radius: 7px; font-size: .8rem; font-weight: 600; cursor: pointer; text-decoration: none; font-family: inherit; transition: .2s; }
.btn-ghost-sm:hover { border-color: var(--teal); color: var(--teal); }
.btn-ghost-modal { display: inline-flex; align-items: center; gap: 6px; padding: 10px 20px; border: 1.5px solid #D1D5DB; background: #fff; color: #374151; border-radius: 8px; font-size: .875rem; font-weight: 600; cursor: pointer; font-family: inherit; }
.btn-danger-outline { display: inline-flex; align-items: center; gap: 7px; padding: 10px 20px; border: 1.5px solid #EF4444; background: #fff; color: #EF4444; border-radius: 8px; font-size: .875rem; font-weight: 700; cursor: pointer; font-family: inherit; transition: .2s; }
.btn-danger-outline:hover { background: #EF4444; color: #fff; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border: 1px solid #E5E7EB; background: #fff; color: #6B7280; border-radius: 7px; cursor: pointer; text-decoration: none; font-size: .8rem; transition: .15s; }
.icon-btn:hover { border-color: var(--teal); color: var(--teal); }
.icon-btn-danger:hover { border-color: #EF4444; color: #EF4444; }
.row-actions { display: flex; gap: 5px; }

/* ── DASHBOARD SHELL ─────────────────────── */
.dash-body { display: flex; min-height: 100vh; background: #F3F4F6; }
.sidebar { width: var(--sidebar-w); background: var(--navy); display: flex; flex-direction: column; position: fixed; top: 0; left: 0; height: 100vh; overflow-y: auto; z-index: 100; transition: width .2s; }
.sidebar-header { display: flex; align-items: center; justify-content: space-between; padding: 18px 16px; border-bottom: 1px solid rgba(255,255,255,.08); }
.sidebar-logo { display: flex; align-items: center; gap: 9px; text-decoration: none; font-family: 'Sora', sans-serif; font-size: 1.05rem; color: #fff; }
.sidebar-collapse { background: none; border: none; color: rgba(255,255,255,.4); cursor: pointer; font-size: .9rem; padding: 4px; }
.sidebar-user { padding: 16px; border-bottom: 1px solid rgba(255,255,255,.08); display: flex; align-items: center; gap: 10px; }
.su-avatar { width: 36px; height: 36px; background: linear-gradient(135deg, var(--teal), var(--teal2)); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-size: .8rem; font-weight: 700; flex-shrink: 0; }
.su-info { overflow: hidden; }
.su-info strong { display: block; font-size: .82rem; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.su-info span { display: block; font-size: .72rem; color: rgba(255,255,255,.45); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.su-plan { font-size: .65rem; background: rgba(0,168,150,.25); color: var(--teal2); padding: 1px 7px; border-radius: 99px; display: inline-block; margin-top: 2px; }
.sidebar-nav { padding: 12px 8px; flex: 1; }
.nav-section-label { font-size: .62rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.28); padding: 10px 10px 4px; }
.nav-item { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 8px; color: rgba(255,255,255,.55); text-decoration: none; font-size: .85rem; transition: .15s; margin-bottom: 1px; }
.nav-item:hover, .nav-item.active { background: rgba(255,255,255,.1); color: #fff; }
.nav-item.active { background: rgba(0,168,150,.2); color: var(--teal2); }
.nav-item i { width: 16px; text-align: center; }
.main-content { margin-left: var(--sidebar-w); flex: 1; display: flex; flex-direction: column; min-height: 100vh; transition: margin .2s; }
.topbar { height: var(--topbar-h); background: #fff; border-bottom: 1px solid #E5E7EB; display: flex; align-items: center; justify-content: space-between; padding: 0 24px; position: sticky; top: 0; z-index: 50; }
.topbar-left { display: flex; align-items: center; gap: 14px; }
.topbar-toggle { background: none; border: none; font-size: 1rem; color: #6B7280; cursor: pointer; display: none; }
.breadcrumb { display: flex; align-items: center; gap: 6px; font-size: .82rem; color: #6B7280; }
.breadcrumb a { color: var(--teal); text-decoration: none; }
.topbar-right { display: flex; align-items: center; gap: 12px; }
.notif-wrap { position: relative; }
.notif-btn { background: none; border: 1px solid #E5E7EB; border-radius: 8px; width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; color: #6B7280; cursor: pointer; position: relative; }
.notif-dot { position: absolute; top: -4px; right: -4px; background: #EF4444; color: #fff; font-size: .6rem; font-weight: 700; width: 16px; height: 16px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.notif-panel { display: none; position: absolute; top: 44px; right: 0; width: 320px; background: #fff; border: 1px solid #E5E7EB; border-radius: 12px; box-shadow: 0 8px 32px rgba(0,0,0,.12); z-index: 200; }
.notif-wrap.open .notif-panel { display: block; }
.np-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; border-bottom: 1px solid #F3F4F6; font-size: .85rem; font-weight: 600; }
.np-head a { color: var(--teal); font-size: .78rem; }
.np-list { max-height: 300px; overflow-y: auto; }
.np-item { padding: 12px 16px; border-bottom: 1px solid #F9FAFB; font-size: .8rem; }
.np-item.unread { background: #F0FDF9; }
.np-item strong { display: block; color: #111827; margin-bottom: 2px; }
.np-item span { color: #6B7280; display: block; }
.np-item em { color: #9CA3AF; font-size: .72rem; font-style: normal; display: block; margin-top: 2px; }
.topbar-user { display: flex; align-items: center; gap: 8px; cursor: pointer; position: relative; padding: 6px 10px; border-radius: 8px; border: 1px solid #E5E7EB; }
.tu-avatar { width: 30px; height: 30px; background: linear-gradient(135deg, var(--teal), var(--teal2)); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-size: .72rem; font-weight: 700; }
.tu-info strong { display: block; font-size: .8rem; color: #111827; }
.tu-info span { display: block; font-size: .7rem; color: #9CA3AF; }
.tu-arrow { font-size: .65rem; color: #9CA3AF; }
.user-menu { display: none; position: absolute; top: 46px; right: 0; background: #fff; border: 1px solid #E5E7EB; border-radius: 10px; box-shadow: 0 8px 24px rgba(0,0,0,.1); min-width: 180px; z-index: 200; padding: 6px; }
.topbar-user.open .user-menu { display: block; }
.user-menu a { display: flex; align-items: center; gap: 9px; padding: 9px 12px; border-radius: 7px; font-size: .83rem; color: #374151; text-decoration: none; }
.user-menu a:hover { background: #F3F4F6; }
.user-menu hr { border: none; border-top: 1px solid #E5E7EB; margin: 4px 0; }
.user-menu .um-danger { color: #EF4444; }
.page-body { padding: 24px; flex: 1; }
.page-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 24px; }
.page-title { font-family: 'Sora', sans-serif; font-size: 1.5rem; font-weight: 800; color: var(--navy); }
.page-desc { color: #6B7280; font-size: .875rem; margin-top: 3px; }
.welcome-banner { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }

/* ── CARDS ──────────────────────────────── */
.card { background: #fff; border-radius: 12px; border: 1px solid #E5E7EB; }
.card-head { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border-bottom: 1px solid #F3F4F6; }
.card-head h3 { font-family: 'Sora', sans-serif; font-size: .95rem; font-weight: 700; color: var(--navy); }
.card-sub { font-size: .75rem; color: #9CA3AF; }
.count-badge { background: #E6F7F5; color: var(--teal); border-radius: 99px; font-size: .72rem; font-weight: 700; padding: 1px 8px; margin-left: 6px; }

/* ── KPI GRID ───────────────────────────── */
.kpi-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; margin-bottom: 20px; }
.kpi-card { background: #fff; border-radius: 12px; border: 1px solid #E5E7EB; padding: 20px; display: flex; gap: 14px; align-items: flex-start; }
.kpi-icon { width: 44px; height: 44px; background: color-mix(in srgb, var(--accent, var(--teal)) 12%, transparent); color: var(--accent, var(--teal)); border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; flex-shrink: 0; }
.kpi-label { font-size: .75rem; color: #9CA3AF; display: block; margin-bottom: 3px; }
.kpi-value { font-family: 'Sora', sans-serif; font-size: 1.6rem; font-weight: 800; color: var(--navy); line-height: 1; }
.kpi-trend { font-size: .72rem; margin-top: 4px; }
.kpi-trend.up { color: #10B981; }
.kpi-trend.down { color: #EF4444; }

/* ── CHARTS ─────────────────────────────── */
.dashboard-grid { display: grid; grid-template-columns: 1fr 320px; gap: 16px; margin-bottom: 20px; }
.dashboard-grid-2 { display: grid; grid-template-columns: 1fr 300px; gap: 16px; margin-bottom: 20px; }
.chart-wrapper { height: 220px; padding: 16px; }

/* ── TABLE ──────────────────────────────── */
.table-wrap { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: .83rem; }
.data-table th { padding: 10px 16px; background: #F9FAFB; color: #6B7280; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; text-align: left; border-bottom: 1px solid #E5E7EB; white-space: nowrap; }
.data-table td { padding: 12px 16px; border-bottom: 1px solid #F3F4F6; color: #374151; vertical-align: middle; }
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: #FAFAFA; }
.empty-row { text-align: center; color: #9CA3AF; padding: 32px !important; }
.empty-row a { color: var(--teal); }
.table-footer { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; border-top: 1px solid #E5E7EB; font-size: .8rem; color: #6B7280; }
.pagination { display: flex; gap: 4px; }
.page-btn { padding: 4px 10px; border: 1px solid #E5E7EB; border-radius: 6px; color: #374151; text-decoration: none; font-size: .78rem; }
.page-btn.active { background: var(--teal); color: #fff; border-color: var(--teal); }

/* ── FILTER BAR ─────────────────────────── */
.filter-bar { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; }
.filter-search { flex: 1; min-width: 200px; position: relative; }
.filter-search i { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: #9CA3AF; font-size: .8rem; }
.filter-search input { width: 100%; padding: 8px 12px 8px 32px; border: 1.5px solid #E5E7EB; border-radius: 8px; font-size: .85rem; font-family: inherit; outline: none; }
.filter-search input:focus { border-color: var(--teal); }
.filter-pills { display: flex; gap: 5px; flex-wrap: wrap; }
.pill { padding: 6px 14px; border: 1.5px solid #E5E7EB; background: #fff; border-radius: 99px; font-size: .78rem; font-weight: 600; color: #6B7280; cursor: pointer; font-family: inherit; transition: .15s; }
.pill.active, .pill:hover { border-color: var(--teal); color: var(--teal); background: #E6F7F5; }

/* ── MODAL ──────────────────────────────── */
.modal-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 300; align-items: center; justify-content: center; padding: 20px; }
.modal-overlay.open { display: flex; }
.modal { background: #fff; border-radius: 14px; width: 100%; max-width: 560px; box-shadow: 0 20px 60px rgba(0,0,0,.2); overflow: hidden; }
.modal-head { display: flex; justify-content: space-between; align-items: center; padding: 18px 22px; border-bottom: 1px solid #E5E7EB; }
.modal-head h3 { font-family: 'Sora', sans-serif; font-size: 1rem; font-weight: 700; color: var(--navy); }
.modal-close { background: none; border: none; color: #9CA3AF; cursor: pointer; font-size: 1rem; }
.modal-body { padding: 22px; max-height: 70vh; overflow-y: auto; }
.modal-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 16px 22px; border-top: 1px solid #E5E7EB; background: #F9FAFB; }

/* ── USER CELL ──────────────────────────── */
.user-cell { display: flex; align-items: center; gap: 10px; }
.user-av { width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: .75rem; font-weight: 700; flex-shrink: 0; }
.user-cell strong { display: block; font-size: .85rem; color: #111827; }
.user-cell span { display: block; font-size: .75rem; color: #9CA3AF; }

/* ── RX ITEM ─────────────────────────────── */
.rx-code { background: #F3F4F6; padding: 2px 8px; border-radius: 5px; font-size: .78rem; font-family: 'Courier New', monospace; color: var(--navy); }
.rx-item { background: #F9FAFB; border: 1.5px solid #E5E7EB; border-radius: 10px; padding: 16px; margin-bottom: 12px; }
.rx-item-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.rx-item-num { font-size: .78rem; font-weight: 700; color: var(--teal); }
.form-2col { display: grid; grid-template-columns: 1fr 1.5fr; gap: 20px; align-items: start; }

/* ── SETTINGS ───────────────────────────── */
.settings-layout { display: grid; grid-template-columns: 200px 1fr; gap: 20px; align-items: start; }
.settings-nav { background: #fff; border: 1px solid #E5E7EB; border-radius: 12px; overflow: hidden; }
.sn-item { display: flex; align-items: center; gap: 9px; padding: 12px 16px; font-size: .85rem; color: #6B7280; text-decoration: none; border-left: 3px solid transparent; transition: .15s; }
.sn-item:hover, .sn-item.active { background: #F0FDF9; color: var(--teal); border-color: var(--teal); }
.settings-panels { }
.settings-panel { display: none; }
.settings-panel.active { display: block; }
.sp-title { margin-bottom: 16px; }
.sp-title h2 { font-family: 'Sora', sans-serif; font-size: 1.1rem; font-weight: 700; color: var(--navy); display: flex; align-items: center; gap: 8px; }
.settings-card { background: #fff; border: 1px solid #E5E7EB; border-radius: 12px; padding: 24px; }
.toggle-row { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; border-bottom: 1px solid #F3F4F6; }
.toggle-row p { font-size: .8rem; color: #6B7280; margin-top: 2px; }
.toggle-switch { position: relative; width: 44px; height: 24px; flex-shrink: 0; }
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.ts-slider { position: absolute; inset: 0; background: #D1D5DB; border-radius: 99px; cursor: pointer; transition: .2s; }
.ts-slider:before { content: ''; position: absolute; width: 18px; height: 18px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: .2s; }
.toggle-switch input:checked + .ts-slider { background: var(--teal); }
.toggle-switch input:checked + .ts-slider:before { transform: translateX(20px); }
.current-plan-card { background: linear-gradient(135deg, var(--navy), #1a3a54); border-radius: 12px; padding: 24px; color: #fff; display: flex; justify-content: space-between; align-items: flex-start; }
.cp-plan-name { display: flex; align-items: center; gap: 8px; font-family: 'Sora', sans-serif; font-size: 1rem; font-weight: 700; margin-bottom: 6px; }
.cp-price { font-family: 'Sora', sans-serif; font-size: 1.8rem; font-weight: 800; }
.cp-price span { font-size: .9rem; font-weight: 400; opacity: .6; }
.cp-next { font-size: .78rem; opacity: .6; margin-top: 4px; }

/* ── ACTIVITY ───────────────────────────── */
.activity-list { padding: 16px; }
.activity-item { display: flex; align-items: flex-start; gap: 12px; padding: 10px 0; border-bottom: 1px solid #F3F4F6; }
.activity-item:last-child { border-bottom: none; }
.act-icon { width: 32px; height: 32px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: .8rem; flex-shrink: 0; }
.act-body strong { display: block; font-size: .82rem; color: #111827; text-transform: capitalize; }
.act-body span { font-size: .75rem; color: #9CA3AF; }
.role-badge { padding: 2px 10px; border-radius: 99px; font-size: .72rem; font-weight: 700; }
.time-ago { font-size: .78rem; color: #9CA3AF; }

/* ── DONUT LEGEND ───────────────────────── */
.donut-wrap { position: relative; padding: 16px; height: 160px; }
.donut-center { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); text-align: center; pointer-events: none; }
.donut-center strong { display: block; font-family: 'Sora', sans-serif; font-size: 1.4rem; font-weight: 800; color: var(--navy); }
.donut-center span { font-size: .72rem; color: #9CA3AF; }
.donut-legend { padding: 0 16px 16px; display: flex; flex-direction: column; gap: 6px; }
.dl-item { display: flex; align-items: center; gap: 8px; font-size: .78rem; color: #374151; }
.dl-item span { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.dl-item strong { margin-left: auto; }

/* ── TOAST ──────────────────────────────── */
.toast { position: fixed; bottom: 24px; right: 24px; background: var(--navy); color: #fff; padding: 12px 20px; border-radius: 10px; font-size: .875rem; display: none; z-index: 9999; box-shadow: 0 8px 24px rgba(0,0,0,.2); }
.toast.show { display: flex; align-items: center; gap: 10px; }
.toast.success { background: #065F46; }
.toast.error   { background: #991B1B; }

/* ── RESPONSIVE ─────────────────────────── */
@media (max-width: 1024px) {
    .kpi-grid { grid-template-columns: repeat(2,1fr); }
    .dashboard-grid { grid-template-columns: 1fr; }
    .dashboard-grid-2 { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    .auth-brand { display: none; }
    .sidebar { transform: translateX(-100%); }
    .sidebar.open { transform: translateX(0); }
    .main-content { margin-left: 0; }
    .topbar-toggle { display: flex; }
    .kpi-grid { grid-template-columns: repeat(2,1fr); }
    .form-2col { grid-template-columns: 1fr; }
    .form-row-2, .form-grid-2 { grid-template-columns: 1fr; }
    .form-grid-2 .span-2 { grid-column: span 1; }
    .settings-layout { grid-template-columns: 1fr; }
}
