/* ══════════════════════════════════════════════════
   Ontable Affiliate Portal — Stylesheet
   ══════════════════════════════════════════════════ */

:root {
  --primary:      #6c47ff;
  --primary-dark: #5435d4;
  --primary-light:#ede9fe;
  --gold:         #f59e0b;
  --gold-light:   #fef3c7;
  --success:      #10b981;
  --success-light:#d1fae5;
  --danger:       #ef4444;
  --danger-light: #fee2e2;
  --text-1:       #0f172a;
  --text-2:       #475569;
  --text-3:       #94a3b8;
  --border:       #e2e8f0;
  --bg:           #f8fafc;
  --white:        #ffffff;
  --radius:       12px;
  --shadow:       0 4px 24px rgba(0,0,0,.08);
  --shadow-lg:    0 12px 48px rgba(0,0,0,.14);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Sarabun', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 15px;
  color: var(--text-1);
  background: var(--bg);
  line-height: 1.6;
}

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

img { max-width: 100%; }

/* ── Utility ── */
.text-center { text-align: center; }
.text-right  { text-align: right; }
.mt-4  { margin-top:  4px; }
.mt-8  { margin-top:  8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-4  { margin-bottom:  4px; }
.mb-8  { margin-bottom:  8px; }
.gap-8  { gap:  8px; }
.gap-12 { gap: 12px; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.flex-1 { flex: 1; }
.hidden { display: none !important; }
.fw-700 { font-weight: 700; }
.fs-13  { font-size: 13px; }
.fs-12  { font-size: 12px; }
.c-text2 { color: var(--text-2); }
.c-primary { color: var(--primary); }
.c-success { color: var(--success); }
.c-gold    { color: var(--gold); }
.c-danger  { color: var(--danger); }

/* ── Container ── */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}
.container-sm {
  max-width: 520px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ── Navbar ── */
.navbar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
  height: 60px;
  display: flex; align-items: center; justify-content: space-between;
}
.navbar-brand {
  display: flex; align-items: center; gap: 10px;
  font-size: 18px; font-weight: 800; color: var(--primary);
  text-decoration: none;
}
.navbar-brand-icon {
  width: 36px; height: 36px; border-radius: 10px;
  background: var(--primary); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 900;
}
.navbar-actions { display: flex; align-items: center; gap: 10px; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px 20px;
  border-radius: var(--radius);
  font-size: 14px; font-weight: 700;
  border: none; cursor: pointer;
  transition: all .15s; text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--primary); color: #fff;
  box-shadow: 0 4px 14px rgba(108,71,255,.3);
}
.btn-primary:hover { background: var(--primary-dark); }

.btn-gold {
  background: var(--gold); color: #fff;
  box-shadow: 0 4px 14px rgba(245,158,11,.3);
}
.btn-gold:hover { background: #d97706; }

.btn-outline {
  background: transparent; color: var(--primary);
  border: 1.5px solid var(--primary);
}
.btn-outline:hover { background: var(--primary-light); }

.btn-ghost {
  background: transparent; color: var(--text-2);
}
.btn-ghost:hover { background: var(--bg); }

.btn-sm { padding: 7px 14px; font-size: 13px; }
.btn-lg { padding: 14px 28px; font-size: 16px; }
.btn-full { width: 100%; }

.btn-icon {
  width: 36px; height: 36px; padding: 0;
  border-radius: 9px;
}

/* ── Hero ── */
.hero {
  background: linear-gradient(135deg, #3c1fa8 0%, #6c47ff 50%, #a855f7 100%);
  padding: 80px 24px 100px;
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 20px; padding: 5px 14px;
  font-size: 13px; font-weight: 700; margin-bottom: 20px;
}
.hero h1 {
  font-size: clamp(28px, 5vw, 52px);
  font-weight: 900; line-height: 1.15;
  margin-bottom: 16px; letter-spacing: -.5px;
}
.hero h1 span { color: var(--gold); }
.hero p {
  font-size: clamp(15px, 2vw, 19px);
  color: rgba(255,255,255,.85);
  max-width: 580px; margin: 0 auto 32px;
}
.hero-ctas { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ── Stats bar ── */
.stats-bar {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 20px 24px;
  display: flex; justify-content: center; gap: 0;
  flex-wrap: wrap;
}
.stat-item {
  padding: 12px 40px;
  text-align: center;
  border-right: 1px solid var(--border);
}
.stat-item:last-child { border-right: none; }
.stat-num {
  font-size: 26px; font-weight: 900; color: var(--primary);
  line-height: 1;
}
.stat-lbl { font-size: 12px; color: var(--text-3); margin-top: 4px; font-weight: 600; }

/* ── Section ── */
.section { padding: 72px 0; }
.section-alt { background: var(--white); }
.section-title {
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 900; text-align: center; margin-bottom: 8px;
}
.section-sub {
  text-align: center; color: var(--text-2);
  font-size: 15px; margin-bottom: 48px;
}

/* ── Steps ── */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.step-card {
  background: var(--white); border-radius: var(--radius);
  padding: 28px 24px; border: 1px solid var(--border);
  text-align: center; position: relative;
  transition: box-shadow .2s;
}
.step-card:hover { box-shadow: var(--shadow); }
.step-num {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--primary-light); color: var(--primary);
  font-size: 18px; font-weight: 900;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
}
.step-card h3 { font-size: 16px; font-weight: 800; margin-bottom: 8px; }
.step-card p { font-size: 13px; color: var(--text-2); line-height: 1.6; }

/* ── Tier cards ── */
.tier-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; }
.tier-card {
  border-radius: var(--radius); padding: 24px 20px;
  border: 2px solid transparent; text-align: center;
  transition: transform .2s, box-shadow .2s;
  position: relative; overflow: hidden;
}
.tier-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.tier-card.bronze { background: #fff8f6; border-color: #fcd9bd; }
.tier-card.silver { background: #f8f9fb; border-color: #cbd5e1; }
.tier-card.gold   { background: #fffbeb; border-color: #fde68a; }
.tier-card.platinum { background: #f5f3ff; border-color: #c4b5fd; }
.tier-card.popular::before {
  content: 'ยอดนิยม';
  position: absolute; top: 12px; right: -10px;
  background: var(--gold); color: #fff;
  font-size: 10px; font-weight: 800;
  padding: 3px 18px 3px 10px;
  border-radius: 3px;
}
.tier-icon {
  font-size: 36px; margin-bottom: 10px; display: block;
}
.tier-name {
  font-size: 18px; font-weight: 900; margin-bottom: 6px;
}
.tier-rate {
  font-size: 34px; font-weight: 900; line-height: 1; margin: 8px 0;
}
.tier-rate sup { font-size: 16px; vertical-align: super; }
.tier-threshold {
  font-size: 12px; color: var(--text-3); margin-bottom: 12px;
}
.tier-feature { font-size: 13px; color: var(--text-2); line-height: 1.8; }

/* ── Register card ── */
.register-card {
  background: var(--white);
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  max-width: 620px; margin: 0 auto;
}
.register-card-header {
  background: linear-gradient(135deg, var(--primary) 0%, #a855f7 100%);
  padding: 28px 32px; color: #fff; text-align: center;
}
.register-card-header h2 { font-size: 22px; font-weight: 900; }
.register-card-header p { font-size: 13px; opacity: .85; margin-top: 4px; }
.register-card-body { padding: 32px; }

/* ── Form ── */
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.form-row.single { grid-template-columns: 1fr; }
@media (max-width: 480px) { .form-row { grid-template-columns: 1fr; } }

.form-group { display: flex; flex-direction: column; gap: 5px; }
.form-label {
  font-size: 13px; font-weight: 700; color: var(--text-2);
}
.form-label .req { color: var(--danger); }
.form-input {
  width: 100%; padding: 11px 14px;
  border: 1.5px solid var(--border); border-radius: 10px;
  font-size: 14px; font-family: inherit; color: var(--text-1);
  background: #fff; outline: none; transition: border-color .15s, box-shadow .15s;
}
.form-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(108,71,255,.12);
}
select.form-input { cursor: pointer; }
textarea.form-input { resize: vertical; min-height: 80px; line-height: 1.5; }
.form-hint { font-size: 12px; color: var(--text-3); }

/* ── Alert ── */
.alert {
  border-radius: 10px; padding: 12px 16px;
  font-size: 13px; font-weight: 600;
  display: flex; align-items: flex-start; gap: 8px;
  margin-bottom: 16px;
}
.alert-success { background: var(--success-light); color: #065f46; border: 1px solid #6ee7b7; }
.alert-danger  { background: var(--danger-light);  color: #991b1b; border: 1px solid #fca5a5; }
.alert-warning { background: var(--gold-light);    color: #78350f; border: 1px solid #fde68a; }
.alert-info    { background: var(--primary-light); color: #3c1fa8; border: 1px solid #c4b5fd; }

/* ── Auth page layout ── */
.auth-page {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  padding: 40px 20px;
  background: linear-gradient(135deg, #3c1fa8 0%, #6c47ff 60%, #a855f7 100%);
}
.auth-card {
  background: var(--white);
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  width: 100%; max-width: 420px;
  overflow: hidden;
}
.auth-card-header {
  padding: 32px 32px 24px; text-align: center;
}
.auth-logo {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 20px; font-weight: 900; color: var(--primary);
  margin-bottom: 20px; text-decoration: none;
}
.auth-logo-icon {
  width: 40px; height: 40px; border-radius: 11px;
  background: var(--primary); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; font-weight: 900;
}
.auth-card-header h2 { font-size: 22px; font-weight: 900; margin-bottom: 4px; }
.auth-card-header p { font-size: 13px; color: var(--text-2); }
.auth-card-body { padding: 0 32px 32px; }
.auth-card-footer {
  border-top: 1px solid var(--border); padding: 16px 32px;
  text-align: center; font-size: 13px; color: var(--text-2);
}

/* ── Dashboard layout ── */
.dash-layout {
  display: flex; min-height: 100vh;
}
.dash-sidebar {
  width: 260px; flex-shrink: 0;
  background: linear-gradient(180deg, #1e0a5c 0%, #3c1fa8 100%);
  color: #fff; display: flex; flex-direction: column;
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
.dash-sidebar-brand {
  padding: 20px 20px 16px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.dash-brand-logo {
  display: flex; align-items: center; gap: 10px;
  font-size: 17px; font-weight: 900; color: #fff;
  text-decoration: none; margin-bottom: 16px;
}
.dash-brand-icon {
  width: 34px; height: 34px; border-radius: 9px;
  background: rgba(255,255,255,.15);
  display: flex; align-items: center; justify-content: center;
  font-size: 17px;
}
.dash-user-card {
  background: rgba(255,255,255,.1);
  border-radius: 12px; padding: 14px;
}
.dash-user-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 900; margin-bottom: 10px;
}
.dash-user-name { font-size: 15px; font-weight: 800; }
.dash-user-id   { font-size: 11px; opacity: .65; font-family: monospace; margin-top: 2px; }
.dash-tier-badge {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11px; font-weight: 800;
  padding: 3px 9px; border-radius: 20px; margin-top: 8px;
}
.tier-bronze  { background: #fcd9bd; color: #92400e; }
.tier-silver  { background: #e2e8f0; color: #334155; }
.tier-gold    { background: #fde68a; color: #78350f; }
.tier-platinum{ background: #c4b5fd; color: #3c1fa8; }

.dash-nav { padding: 16px 12px; flex: 1; }
.dash-nav-label {
  font-size: 10px; font-weight: 800; letter-spacing: 1px;
  opacity: .5; padding: 0 8px 6px; text-transform: uppercase;
}
.dash-nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: 10px;
  font-size: 14px; font-weight: 600; color: rgba(255,255,255,.75);
  cursor: pointer; text-decoration: none;
  transition: all .15s; margin-bottom: 2px;
}
.dash-nav-item:hover  { background: rgba(255,255,255,.1); color: #fff; text-decoration: none; }
.dash-nav-item.active { background: rgba(255,255,255,.15); color: #fff; font-weight: 800; }
.dash-nav-item svg { width: 18px; height: 18px; flex-shrink: 0; }

.dash-sidebar-footer {
  padding: 16px 20px; border-top: 1px solid rgba(255,255,255,.1);
}
.dash-logout-btn {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: rgba(255,255,255,.6);
  cursor: pointer; background: none; border: none;
  padding: 0; transition: color .15s; width: 100%;
}
.dash-logout-btn:hover { color: #fff; }

.dash-main {
  flex: 1; overflow-y: auto;
  background: var(--bg);
  min-width: 0;
}
.dash-topbar {
  background: var(--white); border-bottom: 1px solid var(--border);
  padding: 16px 24px;
  display: flex; align-items: center; justify-content: space-between;
}
.dash-page-title { font-size: 20px; font-weight: 800; }
.dash-page-sub   { font-size: 12px; color: var(--text-3); margin-top: 1px; }

.dash-content { padding: 24px; }

/* ── KPI strip ── */
.kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; margin-bottom: 24px; }
.kpi-card {
  background: var(--white); border-radius: var(--radius);
  padding: 18px 20px; border: 1px solid var(--border);
}
.kpi-label { font-size: 11px; font-weight: 700; color: var(--text-3); text-transform: uppercase; letter-spacing: .5px; }
.kpi-val   { font-size: 26px; font-weight: 900; line-height: 1.1; margin: 6px 0 4px; }
.kpi-sub   { font-size: 12px; color: var(--text-3); }
.kpi-card.primary .kpi-val { color: var(--primary); }
.kpi-card.success .kpi-val { color: var(--success); }
.kpi-card.gold    .kpi-val { color: var(--gold); }
.kpi-card.pending .kpi-val { color: #f59e0b; }

/* ── Referral code card ── */
.code-card {
  background: linear-gradient(135deg, var(--primary) 0%, #a855f7 100%);
  border-radius: var(--radius); padding: 24px;
  color: #fff; margin-bottom: 24px;
}
.code-card-label { font-size: 12px; opacity: .8; font-weight: 700; margin-bottom: 8px; }
.code-pill-lg {
  display: inline-flex; align-items: center; gap: 12px;
  background: rgba(255,255,255,.15);
  border: 1.5px solid rgba(255,255,255,.3);
  border-radius: 12px; padding: 10px 18px;
  font-family: monospace; font-size: 20px; font-weight: 900;
  letter-spacing: 2px; cursor: pointer;
  transition: background .15s;
}
.code-pill-lg:hover { background: rgba(255,255,255,.25); }
.code-url-row {
  display: flex; align-items: center; gap: 8px; margin-top: 12px;
  background: rgba(0,0,0,.2); border-radius: 8px; padding: 8px 12px;
}
.code-url-text {
  font-size: 12px; font-family: monospace; flex: 1;
  opacity: .8; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.code-copy-btn {
  background: rgba(255,255,255,.2); border: none; border-radius: 6px;
  padding: 4px 10px; font-size: 11px; font-weight: 700; color: #fff;
  cursor: pointer; flex-shrink: 0; transition: background .15s;
}
.code-copy-btn:hover { background: rgba(255,255,255,.35); }

/* ── Tier progress ── */
.tier-progress-card {
  background: var(--white); border-radius: var(--radius);
  border: 1px solid var(--border); padding: 20px;
  margin-bottom: 24px;
}
.tier-progress-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 12px;
}
.tier-progress-title { font-size: 14px; font-weight: 800; }
.tier-track-row {
  display: flex; align-items: center; gap: 0;
  margin-bottom: 8px;
}
.tier-seg {
  flex: 1; height: 8px;
  transition: all .3s;
}
.tier-seg:first-child { border-radius: 4px 0 0 4px; }
.tier-seg:last-child  { border-radius: 0 4px 4px 0; }
.tier-dot-s {
  width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid #fff; flex-shrink: 0; z-index: 1;
}
.tier-labels-row {
  display: flex; justify-content: space-between;
  font-size: 10px; font-weight: 800; color: var(--text-3);
}

/* ── Table ── */
.table-card {
  background: var(--white); border-radius: var(--radius);
  border: 1px solid var(--border); overflow: hidden;
  margin-bottom: 24px;
}
.table-card-header {
  padding: 14px 20px; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  background: #f9fafb;
}
.table-card-title { font-size: 13px; font-weight: 800; }

.data-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.data-table th {
  padding: 10px 16px; text-align: left;
  font-size: 11px; font-weight: 700; color: var(--text-3);
  background: #f9fafb; border-bottom: 1px solid var(--border);
  text-transform: uppercase; letter-spacing: .3px;
}
.data-table td {
  padding: 11px 16px; border-bottom: 1px solid #f1f5f9;
  vertical-align: middle;
}
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: #f8fafc; }

/* ── Badges ── */
.badge {
  display: inline-flex; align-items: center;
  font-size: 11px; font-weight: 700;
  padding: 3px 9px; border-radius: 20px;
}
.badge-pending   { background: var(--gold-light);    color: #78350f; }
.badge-confirmed { background: #dbeafe; color: #1d4ed8; }
.badge-paid      { background: var(--success-light); color: #065f46; }
.badge-cancelled { background: var(--danger-light);  color: #991b1b; }
.badge-active    { background: var(--success-light); color: #065f46; }
.badge-expired   { background: #f1f5f9; color: var(--text-3); }

/* ── Empty state ── */
.empty-state {
  text-align: center; padding: 48px 24px;
  color: var(--text-3);
}
.empty-state svg { width: 56px; height: 56px; opacity: .3; margin-bottom: 12px; }
.empty-state p   { font-size: 14px; }

/* ── Profile card ── */
.profile-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 640px) { .profile-grid { grid-template-columns: 1fr; } }

.info-card {
  background: var(--white); border-radius: var(--radius);
  border: 1px solid var(--border); overflow: hidden;
}
.info-card-header {
  padding: 12px 18px; border-bottom: 1px solid var(--border);
  background: #f9fafb;
  display: flex; justify-content: space-between; align-items: center;
}
.info-card-title { font-size: 13px; font-weight: 800; }
.info-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 18px; border-bottom: 1px solid #f1f5f9; font-size: 13px;
}
.info-row:last-child { border-bottom: none; }
.info-key   { color: var(--text-3); font-weight: 600; }
.info-val   { font-weight: 700; text-align: right; }

/* ── Footer ── */
.site-footer {
  background: #0f172a; color: rgba(255,255,255,.6);
  padding: 40px 24px; text-align: center; font-size: 13px;
}
.site-footer a { color: rgba(255,255,255,.8); }
.site-footer-brand {
  font-size: 18px; font-weight: 900; color: #fff;
  margin-bottom: 8px; display: block;
}

/* ── Success card ── */
.success-card {
  background: var(--white); border-radius: 20px;
  padding: 48px 40px; text-align: center;
  box-shadow: var(--shadow-lg); max-width: 480px; margin: 0 auto;
}
.success-icon {
  width: 72px; height: 72px; border-radius: 50%;
  background: var(--success-light); margin: 0 auto 20px;
  display: flex; align-items: center; justify-content: center;
}
.success-card h2 { font-size: 22px; font-weight: 900; margin-bottom: 8px; }
.success-card p  { color: var(--text-2); font-size: 14px; line-height: 1.7; }
.success-id {
  background: #f1f5f9; border-radius: 10px; padding: 12px 20px;
  font-family: monospace; font-size: 18px; font-weight: 900;
  color: var(--primary); margin: 20px 0; letter-spacing: 1px;
}

/* ── Spinner ── */
.spinner {
  width: 20px; height: 20px;
  border: 2.5px solid rgba(255,255,255,.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .6s linear infinite;
  flex-shrink: 0;
}
.spinner-dark {
  border-color: rgba(108,71,255,.2);
  border-top-color: var(--primary);
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Toast ── */
.toast-container {
  position: fixed; top: 20px; right: 20px; z-index: 9999;
  display: flex; flex-direction: column; gap: 8px;
}
.toast {
  background: #1e293b; color: #fff;
  padding: 12px 18px; border-radius: 10px;
  font-size: 13px; font-weight: 600;
  display: flex; align-items: center; gap: 8px;
  box-shadow: var(--shadow-lg);
  animation: slideIn .2s ease;
  max-width: 320px;
}
.toast.success { background: #065f46; }
.toast.error   { background: #991b1b; }
@keyframes slideIn {
  from { opacity: 0; transform: translateX(20px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .dash-sidebar { display: none; }
  .hero { padding: 48px 20px 60px; }
  .stat-item { padding: 12px 20px; border-right: none; border-bottom: 1px solid var(--border); }
  .stats-bar { flex-direction: column; align-items: center; gap: 0; }
  .section { padding: 48px 0; }
  .register-card-body { padding: 20px; }
  .kpi-grid { grid-template-columns: 1fr 1fr; }
}
