:root {
  --bg: #f4f7fb;
  --card: #ffffff;
  --text: #12233d;
  --muted: #64748b;
  --border: #d7e2ef;
  --primary: #2563eb;
  --primary-600: #1d4ed8;
  --warning: #fff7d6;
  --warning-border: #f4d35e;
  --error: #fff1f2;
  --error-border: #ef4444;
  --success: #ecfdf5;
  --success-border: #22c55e;
}
* { box-sizing: border-box; }
body { margin:0; font-family: Arial, Helvetica, sans-serif; background: var(--bg); color: var(--text); }
a { color: inherit; text-decoration: none; }
.auth-body { display:flex; min-height:100vh; align-items:center; justify-content:center; padding:24px; }
.auth-card, .card { background: var(--card); border:1px solid var(--border); border-radius:20px; box-shadow:0 12px 30px rgba(15,23,42,.08); }
.auth-card { width:100%; max-width:460px; padding:28px; }
.auth-card h1 { margin-top:0; }
.client-shell { display:grid; grid-template-columns: 240px 1fr; min-height:100vh; }
.client-sidebar { background:#0f172a; color:#fff; padding:24px 18px; }
.brand-title { font-size: 24px; font-weight: 700; }
.brand-subtitle { color:#cbd5e1; margin-top:6px; margin-bottom:12px; }
.plan-pill { display:inline-block; padding:6px 10px; border-radius:999px; font-size:12px; font-weight:700; }
.plan-elite { background:#dbeafe; color:#1d4ed8; }
.plan-premium { background:#fef3c7; color:#b45309; }
.client-nav { display:flex; flex-direction:column; gap:8px; margin-top:24px; }
.client-nav a { padding:11px 12px; border-radius:12px; color:#e2e8f0; }
.client-nav a.active, .client-nav a:hover { background:rgba(255,255,255,.1); }
.client-main { padding:28px; }
.client-topbar { display:flex; justify-content:space-between; align-items:flex-start; gap:16px; margin-bottom:20px; }
.client-topbar h1 { margin:0 0 6px; }
.muted { color:var(--muted); }
.small { font-size: 12px; }
.alert { padding:12px 14px; border-radius:14px; margin-bottom:16px; border:1px solid transparent; }
.alert.success { background:var(--success); border-color:var(--success-border); }
.alert.error { background:var(--error); border-color:var(--error-border); }
.alert.warning { background:var(--warning); border-color:var(--warning-border); }
.card-grid { display:grid; gap:20px; }
.card-grid.two { grid-template-columns: repeat(2, minmax(0,1fr)); }
.card { padding:22px; }
.stats-grid { display:grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap:16px; margin-bottom:20px; }
.stat-card { background:var(--card); border:1px solid var(--border); border-radius:18px; padding:18px; box-shadow:0 8px 24px rgba(15,23,42,.05); }
.stat-label { display:block; color:var(--muted); margin-bottom:8px; }
.feature-list { margin:0; padding-left:18px; line-height:1.7; }
.upgrade-box { background:#eff6ff; border:1px solid #bfdbfe; border-radius:16px; padding:16px; margin-top:18px; }
.quick-actions { display:grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap:12px; }
.btn { display:inline-flex; align-items:center; justify-content:center; padding:12px 16px; border-radius:14px; border:1px solid var(--border); font-weight:700; cursor:pointer; background:#fff; }
.btn.primary { background:var(--primary); border-color:var(--primary); color:#fff; }
.btn.primary:hover { background:var(--primary-600); }
.btn.ghost { background:#fff; color:var(--text); }
.btn.small { padding:8px 12px; border-radius:10px; font-size:13px; }
.stack-form { display:grid; gap:12px; }
.stack-form.two-col { grid-template-columns: repeat(2, minmax(0,1fr)); }
.stack-form.two-col button, .stack-form.two-col .checkbox { grid-column: 1 / -1; }
label { font-weight:700; font-size:14px; }
input, select, textarea { width:100%; padding:12px 14px; border:1px solid var(--border); border-radius:14px; font-size:15px; background:#fff; }
textarea { resize:vertical; }
.checkbox { display:flex; align-items:center; gap:10px; font-weight:700; }
.checkbox input { width:auto; }
.list-stack { display:grid; gap:12px; }
.list-item { display:flex; justify-content:space-between; align-items:flex-start; gap:12px; padding:14px; border:1px solid var(--border); border-radius:14px; }
.mini-badge { background:#eef2ff; color:#3730a3; padding:6px 10px; border-radius:999px; font-size:12px; font-weight:700; }
.table-wrap { overflow:auto; }
table { width:100%; border-collapse:collapse; }
th, td { padding:12px 10px; border-bottom:1px solid var(--border); text-align:left; vertical-align:top; }
.mb-16 { margin-bottom:16px; }
@media (max-width: 1024px) {
  .client-shell { grid-template-columns: 1fr; }
  .client-sidebar { position:sticky; top:0; z-index:10; }
  .stats-grid, .card-grid.two, .quick-actions, .stack-form.two-col { grid-template-columns: 1fr; }
}
