/* ============================================================
   GRANT PLATFORM — Shared Styles
   PLACEHOLDER: Update product name when finalized
   Smart Solutions Consulting, LLC
   ============================================================ */

:root {
  /* Brand — Smart Solutions family */
  --primary:       #1F3864;
  --primary-dark:  #162c4a;
  --ss-red:        #EC1F28;

  /* Product identity — mint for grants/nonprofits */
  --green:         #4FBF8A;
  --green-mid:     #3DAF7C;
  --green-pale:    #E6F9F2;
  --green-border:  #9FDFC8;

  /* Accent — coral-amber */
  --gold:          #E07840;
  --gold-light:    #FDE8D8;
  --gold-border:   #ECA878;

  /* Neutrals */
  --bg:            #F3F7F4;
  --surface:       #FFFFFF;
  --border:        #D8E4DC;
  --text:          #1A2820;
  --text-muted:    #5C7268;
  --text-light:    #9AAFA8;

  /* Status */
  --danger:        #C93030;
  --info:          #1B5FA8;
  --warning:       #C8861A;

  /* Sizing */
  --radius-sm:     6px;
  --radius:        10px;
  --radius-lg:     14px;
  --shadow:        0 2px 12px rgba(26,40,32,0.08);
  --shadow-md:     0 4px 24px rgba(26,40,32,0.12);
  --shadow-lg:     0 8px 40px rgba(26,40,32,0.16);
  --nav-height:    62px;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Calibri', 'Segoe UI', Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  font-size: 15px;
}
img { max-width: 100%; display: block; }
a { color: var(--green); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── TYPOGRAPHY ── */
h1 { font-size: clamp(24px, 4vw, 40px); font-weight: 800; line-height: 1.15; color: var(--text); }
h2 { font-size: clamp(20px, 3vw, 28px); font-weight: 700; line-height: 1.2; color: var(--text); }
h3 { font-size: clamp(16px, 2vw, 20px); font-weight: 700; line-height: 1.3; color: var(--text); }
h4 { font-size: 16px; font-weight: 700; color: var(--text); }
p  { font-size: 14px; line-height: 1.7; color: var(--text-muted); }

/* ── NAV ── */
.nav {
  background: var(--primary);
  height: var(--nav-height);
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 16px rgba(0,0,0,0.22);
}
.nav-brand { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.nav-logo {
  font-family: 'Outfit', 'Segoe UI', sans-serif;
  color: #fff;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.3px;
}
.nav-logo span { color: #4FBF8A; }

.ss-badge {
  display: flex; align-items: center; gap: 0;
  padding-left: 16px;
  margin-left: 4px;
  border-left: 1px solid rgba(255,255,255,0.18);
  text-decoration: none;
}
.ss-text {
  font-size: 11px; color: rgba(255,255,255,0.45);
  font-weight: 500; white-space: nowrap; letter-spacing: 0.2px;
}
.ss-badge:hover .ss-text { color: rgba(255,255,255,0.75); text-decoration: none; }

.nav-links { display: flex; align-items: center; gap: 5px; }
.nav-link {
  color: rgba(255,255,255,0.82);
  font-size: 12.5px; font-weight: 600;
  padding: 6px 13px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.1);
  text-decoration: none;
  transition: all 0.15s;
  white-space: nowrap;
  letter-spacing: 0.1px;
}
.nav-link:hover { background: rgba(255,255,255,0.2); color: #fff; text-decoration: none; }
.nav-link.active { background: rgba(79,191,138,0.25); color: #4FBF8A; font-weight: 700; }
.nav-cta {
  background: var(--green) !important;
  color: var(--primary) !important;
  font-weight: 700 !important;
}
.nav-cta:hover { background: var(--green-mid) !important; color: var(--primary) !important; }
.nav-guide { margin-left: 4px; }
.nav-guide.active { background: rgba(79,191,138,0.25) !important; color: #4FBF8A !important; }

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 10px 22px;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 14px; font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.16s;
  text-decoration: none;
  white-space: nowrap;
  line-height: 1;
}
.btn:hover   { transform: translateY(-1px); text-decoration: none; }
.btn:active  { transform: translateY(0); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none !important; }

.btn-primary  { background: var(--green);    color: var(--primary); }
.btn-primary:hover  { background: var(--green-mid); color: var(--primary); }
.btn-secondary { background: var(--primary);  color: #fff; }
.btn-secondary:hover { background: var(--primary-dark); }
.btn-gold     { background: var(--gold);     color: #fff; }
.btn-gold:hover     { background: #a56e12; }
.btn-outline  { background: transparent; color: var(--green); border: 1.5px solid var(--green); }
.btn-outline:hover  { background: var(--green-pale); }
.btn-ghost    { background: transparent; color: var(--text-muted); border: 1.5px solid var(--border); }
.btn-ghost:hover    { background: #fff; color: var(--text); }
.btn-danger   { background: var(--danger);   color: #fff; }

.btn-sm   { padding: 7px 14px;  font-size: 12px; }
.btn-lg   { padding: 14px 32px; font-size: 16px; font-weight: 700; }
.btn-full { width: 100%; justify-content: center; }

/* ── FORMS ── */
.form-group { margin-bottom: 20px; }
.form-label {
  display: block;
  font-size: 13px; font-weight: 600;
  color: var(--primary);
  margin-bottom: 6px;
}
.req { color: var(--danger); margin-left: 2px; }
.form-hint { font-size: 11px; color: var(--text-muted); margin-top: 5px; line-height: 1.5; }
.form-hint.example { font-style: italic; }

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-family: inherit;
  color: var(--text);
  background: var(--surface);
  transition: border-color 0.15s, box-shadow 0.15s;
  outline: none;
  -webkit-appearance: none;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(79,191,138,0.15);
}
.form-input::placeholder, .form-textarea::placeholder { color: var(--text-light); }
.form-textarea   { resize: vertical; min-height: 100px; line-height: 1.65; }
.form-textarea.lg { min-height: 160px; }
.form-textarea.xl { min-height: 220px; }
.char-row { display: flex; justify-content: flex-end; }
.char-count { font-size: 11px; color: var(--text-light); margin-top: 3px; }
.char-count.over { color: var(--danger); font-weight: 700; }

.form-row   { display: grid; grid-template-columns: 1fr 1fr;    gap: 16px; }
.form-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
@media (max-width: 640px) { .form-row, .form-row-3 { grid-template-columns: 1fr; } }

/* Checkbox grid */
.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 8px;
  margin-top: 8px;
}
.cb-item {
  display: flex; align-items: center; gap: 9px;
  padding: 9px 12px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 13px; font-weight: 500;
  transition: all 0.15s;
  user-select: none;
}
.cb-item:hover { border-color: var(--green); background: var(--green-pale); }
.cb-item input[type="checkbox"] {
  width: 16px; height: 16px;
  accent-color: var(--green);
  flex-shrink: 0;
}
.cb-item.checked { border-color: var(--green); background: var(--green-pale); color: var(--green); }

/* ── CARDS ── */
.card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
.card-sm { padding: 18px 20px; }
.card-header { margin-bottom: 20px; }
.card-title    { font-size: 16px; font-weight: 700; color: var(--primary); }
.card-subtitle { font-size: 12px; color: var(--text-muted); margin-top: 3px; }

/* ── BADGES ── */
.badge {
  display: inline-flex; align-items: center;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.4px;
  white-space: nowrap;
}
.badge-green    { background: #D0EDDB; color: #145A30; }
.badge-gold     { background: var(--gold-light); color: #7A5010; }
.badge-blue     { background: #D6E8FF; color: #1B4D8E; }
.badge-red      { background: #FFD6D6; color: #8B1A1A; font-weight: 700; }
.badge-gray     { background: #E4EAE8; color: #3D5047; }
.badge-upcoming { background: #D8F5E8; color: #145A30; }
.badge-awarded  { background: linear-gradient(135deg,#D8F5E8,#C6EED8); color: #0D4A28; font-weight: 700; letter-spacing: 0.2px; }

/* ── ALERTS ── */
.alert {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  display: flex; gap: 10px; align-items: flex-start;
  margin-bottom: 20px;
}
.alert-icon { font-size: 15px; flex-shrink: 0; margin-top: 1px; }
.alert-info    { background: #EBF3FF; border-left: 4px solid var(--info);    color: #1B4D8E; }
.alert-warning { background: var(--gold-light); border-left: 4px solid var(--gold); color: #7A5010; }
.alert-success { background: var(--green-pale); border-left: 4px solid var(--green); color: #1A4A2F; }
.alert-danger  { background: #FFE8E8; border-left: 4px solid var(--danger);  color: #7A1A1A; }

/* ── PAGE LAYOUT ── */
.page-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 36px 24px;
}
.page-header { margin-bottom: 28px; }
.page-title    { font-size: 26px; font-weight: 800; color: var(--primary); margin-bottom: 4px; }
.page-subtitle { font-size: 14px; color: var(--text-muted); }
.breadcrumb    { font-size: 12px; color: var(--text-muted); margin-bottom: 6px; }
.breadcrumb a  { color: var(--green); }

/* ── WIZARD LAYOUT ── */
.wizard-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 28px;
  align-items: start;
}
@media (max-width: 800px) {
  .wizard-layout { grid-template-columns: 1fr; }
  .wizard-sidebar { display: none; }
}
.wizard-sidebar {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  position: sticky;
  top: calc(var(--nav-height) + 16px);
}
.wizard-sidebar h4 {
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.sidebar-step {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  font-size: 13px; font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.15s;
  margin-bottom: 2px;
}
.sidebar-step:hover  { background: var(--bg); color: var(--text); }
.sidebar-step.active { background: var(--green-pale); color: var(--green); font-weight: 700; }
.sidebar-step.done   { color: var(--green); }
.s-num {
  width: 22px; height: 22px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700;
  background: var(--border); color: var(--text-muted);
  flex-shrink: 0;
}
.sidebar-step.active .s-num { background: var(--green); color: var(--primary); }
.sidebar-step.done .s-num   { background: var(--green-pale); color: var(--green); font-size: 13px; }
.sidebar-progress { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--border); }
.progress-bar { height: 6px; background: var(--border); border-radius: 3px; overflow: hidden; margin-top: 6px; }
.progress-fill { height: 100%; background: var(--green); border-radius: 3px; transition: width 0.35s; }
.progress-text { font-size: 11px; color: var(--text-muted); }

.wizard-main {
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  overflow: hidden;
}
.w-step { display: none; padding: 36px 40px; }
.w-step.active { display: block; }
@media (max-width: 640px) { .w-step { padding: 24px 20px; } }

.w-step-header {
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}
.w-step-header h2 { font-size: 22px; font-weight: 800; color: var(--primary); margin-bottom: 4px; }
.w-step-header p  { font-size: 13px; color: var(--text-muted); }
.step-eyebrow {
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1.2px;
  color: var(--green);
  margin-bottom: 6px;
}
.wizard-footer {
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px 40px;
  border-top: 1px solid var(--border);
  background: var(--bg);
}
@media (max-width: 640px) { .wizard-footer { padding: 16px 20px; } }
.wizard-footer .step-count { font-size: 12px; color: var(--text-muted); font-weight: 600; }

/* ── PROGRAM BLOCKS ── */
.program-block {
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 16px;
  background: var(--surface);
  position: relative;
}
.program-block-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 16px;
}
.program-num {
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.8px;
  color: var(--green);
}
.add-block-btn {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px;
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  background: transparent;
  color: var(--text-muted);
  font-size: 13px; font-weight: 600;
  cursor: pointer;
  width: 100%;
  transition: all 0.15s;
  margin-top: 4px;
  font-family: inherit;
}
.add-block-btn:hover { border-color: var(--green); color: var(--green); background: var(--green-pale); }

/* Outcome sub-items */
.outcome-row {
  display: grid;
  grid-template-columns: 1fr 160px;
  gap: 10px;
  margin-bottom: 8px;
}
.outcome-row input { margin: 0; }
.remove-btn {
  background: none; border: none; cursor: pointer;
  color: var(--text-light); font-size: 16px;
  padding: 4px; border-radius: 4px;
  transition: color 0.15s;
}
.remove-btn:hover { color: var(--danger); }

/* ── TWO-PANEL (generate) ── */
.two-panel {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 24px;
  align-items: start;
}
@media (max-width: 900px) { .two-panel { grid-template-columns: 1fr; } }
.panel-sticky { position: sticky; top: calc(var(--nav-height) + 16px); max-height: calc(100vh - 100px); overflow-y: auto; }

/* ── NARRATIVE OUTPUT ── */
.output-wrap {
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.output-tabs {
  display: flex; gap: 4px;
  padding: 12px 16px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
  flex-wrap: nowrap;
}
.out-tab {
  padding: 5px 12px;
  border-radius: var(--radius-sm);
  font-size: 12px; font-weight: 600;
  cursor: pointer;
  border: 1.5px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  white-space: nowrap;
  transition: all 0.15s;
  font-family: inherit;
}
.out-tab:hover  { border-color: var(--green); color: var(--green); }
.out-tab.active { background: var(--green); color: var(--primary); border-color: var(--green); font-weight: 700; }
.out-tab.done::after { content: " ✓"; opacity: 0.8; }

.output-toolbar {
  display: flex; gap: 8px; align-items: center;
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}
.word-count-badge {
  font-size: 11px; color: var(--text-muted);
  background: var(--bg); border: 1px solid var(--border);
  padding: 3px 10px; border-radius: 20px;
  margin-left: auto;
}
.output-body {
  padding: 28px 32px;
  font-size: 15px; line-height: 1.85;
  color: var(--text);
  min-height: 340px;
  white-space: pre-wrap;
  font-family: 'Georgia', 'Times New Roman', serif;
}
.output-body.empty {
  display: flex; align-items: center; justify-content: center;
  color: var(--text-light); font-style: italic;
  font-family: inherit;
  flex-direction: column; gap: 12px; text-align: center;
}
.output-body .empty-icon { font-size: 40px; opacity: 0.35; }

/* ── SCORE DISPLAY ── */
.score-container { text-align: center; padding: 28px 0 20px; }
.score-ring {
  width: 148px; height: 148px;
  border-radius: 50%;
  border: 8px solid var(--border);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  margin: 0 auto 14px;
  transition: border-color 0.4s;
}
.score-ring.excellent { border-color: #4FBF8A; }
.score-ring.good      { border-color: #1B5FA8; }
.score-ring.fair      { border-color: var(--gold); }
.score-ring.weak      { border-color: var(--danger); }
.score-big { font-size: 44px; font-weight: 800; line-height: 1; }
.score-ring.excellent .score-big { color: #4FBF8A; }
.score-ring.good .score-big      { color: #1B5FA8; }
.score-ring.fair .score-big      { color: var(--gold); }
.score-ring.weak .score-big      { color: var(--danger); }
.score-pts { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); }
.score-grade { font-size: 18px; font-weight: 700; margin-bottom: 4px; }
.score-summary { font-size: 13px; color: var(--text-muted); max-width: 340px; margin: 0 auto; }

.criterion-row {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 10px;
}
.criterion-name { font-size: 12px; font-weight: 600; color: var(--text); min-width: 170px; flex-shrink: 0; }
.criterion-bar  { flex: 1; height: 8px; background: var(--border); border-radius: 4px; overflow: hidden; }
.criterion-fill { height: 100%; border-radius: 4px; background: var(--green); transition: width 0.9s cubic-bezier(.4,0,.2,1); }
.criterion-fill.mid  { background: var(--gold); }
.criterion-fill.low  { background: var(--danger); }
.criterion-pts  { font-size: 12px; font-weight: 700; color: var(--text); min-width: 36px; text-align: right; flex-shrink: 0; }

.flag-item {
  display: flex; gap: 10px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
  font-size: 13px; line-height: 1.5;
}
.flag-item .flag-icon { font-size: 14px; flex-shrink: 0; margin-top: 1px; }
.flag-critical   { background: #FFF0F0; border-left: 3px solid var(--danger); }
.flag-moderate   { background: #FFFAED; border-left: 3px solid var(--gold); }
.flag-suggestion { background: var(--green-pale); border-left: 3px solid var(--green); }

/* ── DASHBOARD ── */
.dash-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 18px;
  margin-bottom: 24px;
}
.stat-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 20px 22px;
  border: 1px solid var(--border);
  border-left: 4px solid var(--green);
  box-shadow: var(--shadow);
}
.stat-card.gold { border-left-color: var(--gold); }
.stat-card.blue { border-left-color: var(--info); }
.stat-card.navy { border-left-color: var(--primary); }
.stat-val   { font-size: 28px; font-weight: 800; color: var(--primary); line-height: 1; margin-bottom: 3px; }
.stat-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.4px; color: var(--text-muted); }

/* Community data panel */
.data-panel {
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  margin-bottom: 24px;
}
.data-panel-title {
  font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1.2px;
  color: #4FBF8A;
  margin-bottom: 16px;
}
.data-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px;
}
.ds-val   { font-size: 22px; font-weight: 800; color: #fff; line-height: 1; }
.ds-label { font-size: 11px; color: rgba(255,255,255,0.6); margin-top: 3px; line-height: 1.3; }
.ds-src   { font-size: 10px; color: rgba(255,255,255,0.3); margin-top: 4px; }

/* ── WELCOME HERO ── */
.welcome-hero {
  background: linear-gradient(135deg, #1F3864 0%, #1a3f6e 60%, #163260 100%);
  color: #fff;
  padding: 80px 24px 64px;
  text-align: center;
}
.welcome-hero .eyebrow {
  display: inline-block;
  background: rgba(79,191,138,0.15);
  border: 1px solid rgba(79,191,138,0.4);
  color: #4FBF8A;
  font-size: 11px; font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase;
  border-radius: 20px; padding: 5px 16px;
  margin-bottom: 22px;
}
.welcome-hero h1 { max-width: 760px; margin: 0 auto 16px; color: #fff; }
.welcome-hero h1 span { color: #4FBF8A; }
.welcome-hero .sub { font-size: 17px; color: rgba(255,255,255,0.85); max-width: 600px; margin: 0 auto 32px; line-height: 1.65; }
.welcome-features {
  display: flex; justify-content: center; gap: 28px;
  flex-wrap: wrap; margin-bottom: 40px;
  font-size: 13px; color: rgba(255,255,255,0.8);
}
.welcome-features span::before { content: "✓  "; color: #4FBF8A; font-weight: 700; }

/* ── SPINNERS + LOADING ── */
.spinner {
  width: 18px; height: 18px;
  border: 2.5px solid rgba(255,255,255,0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.65s linear infinite;
  display: inline-block; flex-shrink: 0;
}
.spinner-green {
  border-color: rgba(79,191,138,0.2);
  border-top-color: var(--green);
}
@keyframes spin { to { transform: rotate(360deg); } }

.loading-overlay {
  position: fixed; inset: 0;
  background: rgba(26,40,32,0.45);
  display: flex; align-items: center; justify-content: center;
  z-index: 500;
}
.loading-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 32px 40px;
  text-align: center;
  box-shadow: var(--shadow-lg);
  max-width: 320px;
}
.loading-card p { color: var(--text-muted); margin-top: 12px; font-size: 14px; }

/* ── TOAST ── */
.toast-container {
  position: fixed; bottom: 24px; right: 24px;
  z-index: 9999;
  display: flex; flex-direction: column; gap: 8px;
}
.toast {
  background: var(--primary); color: #fff;
  padding: 12px 18px;
  border-radius: var(--radius);
  font-size: 13px; font-weight: 500;
  box-shadow: var(--shadow-md);
  animation: toastIn 0.22s ease;
  max-width: 340px; line-height: 1.4;
}
.toast.success { background: var(--green); color: var(--primary); }
.toast.error   { background: var(--danger); }
.toast.warning { background: var(--gold); }
@keyframes toastIn { from { opacity: 0; transform: translateX(16px); } to { opacity: 1; transform: translateX(0); } }

/* ── EMPTY STATE ── */
.empty-state { text-align: center; padding: 44px 24px; }
.empty-state .ei { font-size: 44px; margin-bottom: 14px; opacity: 0.35; }
.empty-state h3  { color: var(--text); margin-bottom: 8px; }
.empty-state p   { max-width: 360px; margin: 0 auto 20px; font-size: 13px; }

/* ── SECTION DIVIDER ── */
.divider {
  display: flex; align-items: center; gap: 12px;
  margin: 24px 0;
}
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.divider span {
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1px;
  color: var(--text-muted); white-space: nowrap;
}

/* ── DEADLINE ROW ── */
.deadline-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 13px 0;
  border-bottom: 1px solid var(--border);
  gap: 16px;
  flex-wrap: wrap;
}
.deadline-row:last-child { border-bottom: none; }
.dl-title { font-size: 14px; font-weight: 700; color: var(--primary); }
.dl-sub   { font-size: 12px; color: var(--text-muted); margin-top: 2px; }

/* ── UTILITIES ── */
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mb-8  { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.text-center  { text-align: center; }
.text-right   { text-align: right; }
.text-muted   { color: var(--text-muted) !important; }
.text-green   { color: var(--green); }
.text-gold    { color: var(--gold); }
.text-danger  { color: var(--danger); }
.text-primary { color: var(--primary); }
.fw-700 { font-weight: 700; }
.fw-800 { font-weight: 800; }
.fs-12  { font-size: 12px; }
.fs-13  { font-size: 13px; }
.fs-14  { font-size: 14px; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.flex-center  { display: flex; align-items: center; }
.gap-8  { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }

@media (max-width: 480px) {
  .page-wrap { padding: 20px 16px; }
  .card      { padding: 18px; }
  .welcome-features { flex-direction: column; align-items: center; gap: 10px; }
}
