/* ============================================================
   SPANO HUB — Complete Portal CSS
   Anthony Spano Foundation · #1B3528 · #C9A84C
   ============================================================ */

/* ── Reset & Root Variables ─────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --green:          #1B3528;
  --green-light:    #254a38;
  --green-xlight:   #2d5a44;
  --gold:           #C9A84C;
  --gold-light:     #d9bc72;
  --gold-pale:      #f5efd4;
  --white:          #ffffff;
  --gray-50:        #f8f9fa;
  --gray-100:       #f0f2f0;
  --gray-200:       #e2e8e4;
  --gray-300:       #c8d4cc;
  --gray-400:       #9aada3;
  --gray-500:       #6b8278;
  --gray-600:       #4a5e55;
  --text:           #1a2820;
  --text-soft:      #3d5247;
  --text-muted:     #6b8278;
  --red:            #c0392b;
  --red-light:      #fdf2f1;
  --orange:         #e67e22;
  --orange-light:   #fef9f0;
  --blue:           #2563eb;
  --blue-light:     #eff6ff;
  --purple:         #7c3aed;
  --purple-light:   #f5f3ff;
  --teal:           #0d9488;
  --teal-light:     #f0fdfa;
  --success:        #16a34a;
  --success-light:  #f0fdf4;
  --sidebar-w:      260px;
  --topbar-h:       64px;
  --shadow-sm:      0 1px 3px rgba(0,0,0,.08);
  --shadow-md:      0 4px 12px rgba(0,0,0,.10);
  --shadow-lg:      0 8px 32px rgba(0,0,0,.14);
  --radius:         8px;
  --radius-lg:      12px;
  --radius-xl:      20px;
  --transition:     all .15s ease;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--gray-50);
  color: var(--text);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* ── Sidebar ─────────────────────────────────────────────────── */
.spano-sidebar {
  width: var(--sidebar-w);
  background: var(--green);
  position: fixed;
  top: 0; left: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  z-index: 200;
  overflow-y: auto;
  transition: transform .3s ease;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,.1) transparent;
}
.spano-sidebar::-webkit-scrollbar { width: 4px; }
.spano-sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,.15); border-radius: 4px; }

.spano-sidebar-logo {
  padding: 18px 18px 14px;
  border-bottom: 1px solid rgba(255,255,255,.1);
  flex-shrink: 0;
}
.spano-logo-wrap { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.spano-logo-icon {
  width: 40px; height: 40px;
  background: var(--gold);
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 15px; color: var(--green);
  flex-shrink: 0;
}
.spano-logo-text .hub  { font-size: 16px; font-weight: 700; color: var(--white); line-height: 1; }
.spano-logo-text .sub  { font-size: 10px; color: rgba(255,255,255,.45); margin-top: 2px; }

.spano-user-badge {
  margin: 10px 14px;
  background: rgba(201,168,76,.15);
  border: 1px solid rgba(201,168,76,.3);
  border-radius: 8px;
  padding: 10px 12px;
  display: flex; align-items: center; gap: 10px;
}
.spano-user-avatar {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--gold);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 13px; color: var(--green);
  flex-shrink: 0;
  overflow: hidden;
}
.spano-user-avatar img { width: 100%; height: 100%; object-fit: cover; }
.spano-user-name  { font-size: 12px; font-weight: 600; color: var(--white); }
.spano-user-role  { font-size: 10px; color: var(--gold-light); margin-top: 1px; }

.spano-nav        { flex: 1; padding: 6px 0 16px; }
.spano-nav-label  {
  font-size: 10px; font-weight: 600;
  color: rgba(255,255,255,.35);
  text-transform: uppercase; letter-spacing: .09em;
  padding: 10px 18px 3px;
}
.spano-nav-item {
  display: flex; align-items: center; gap: 9px;
  padding: 9px 18px;
  cursor: pointer;
  transition: var(--transition);
  color: rgba(255,255,255,.7);
  font-size: 13px; font-weight: 500;
  border-left: 3px solid transparent;
  text-decoration: none;
  user-select: none;
}
.spano-nav-item:hover  { background: rgba(255,255,255,.06); color: var(--white); }
.spano-nav-item.active { background: rgba(201,168,76,.12); color: var(--gold); border-left-color: var(--gold); }
.spano-nav-icon  { width: 16px; text-align: center; flex-shrink: 0; font-size: 14px; }
.spano-nav-badge {
  margin-left: auto;
  background: var(--gold); color: var(--green);
  font-size: 10px; font-weight: 700;
  padding: 1px 6px; border-radius: 10px; line-height: 1.6;
}

.spano-sidebar-footer {
  padding: 10px 14px;
  border-top: 1px solid rgba(255,255,255,.08);
  flex-shrink: 0;
}
.spano-sidebar-footer a {
  display: flex; align-items: center; gap: 7px;
  color: rgba(255,255,255,.45);
  font-size: 11.5px; text-decoration: none;
  padding: 5px 4px;
  transition: var(--transition);
}
.spano-sidebar-footer a:hover { color: var(--white); }

.spano-sidebar-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 199;
}
.spano-sidebar-overlay.open { display: block; }

/* ── Main Layout ─────────────────────────────────────────────── */
.spano-main {
  margin-left: var(--sidebar-w);
  flex: 1;
  display: flex; flex-direction: column;
  min-height: 100vh;
  transition: margin-left .3s ease;
}

/* ── Topbar ──────────────────────────────────────────────────── */
.spano-topbar {
  height: var(--topbar-h);
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  display: flex; align-items: center;
  padding: 0 24px; gap: 14px;
  position: sticky; top: 0; z-index: 100;
  box-shadow: var(--shadow-sm);
}
.spano-topbar-menu-btn {
  display: none;
  width: 36px; height: 36px;
  border: 1.5px solid var(--gray-200); border-radius: 7px;
  background: var(--white); cursor: pointer;
  font-size: 18px; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.spano-topbar-title { font-size: 16px; font-weight: 700; color: var(--green); flex: 1; }
.spano-topbar-actions { display: flex; align-items: center; gap: 10px; }
.spano-notif-btn {
  width: 36px; height: 36px; border-radius: 7px;
  border: 1.5px solid var(--gray-200); background: var(--white);
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  font-size: 15px; position: relative; flex-shrink: 0;
}
.spano-notif-dot {
  position: absolute; top: 6px; right: 6px;
  width: 7px; height: 7px;
  background: var(--gold); border-radius: 50%;
  border: 1.5px solid var(--white);
}

/* ── Buttons ─────────────────────────────────────────────────── */
.spano-btn {
  padding: 7px 13px; border-radius: 6px;
  font-size: 12.5px; font-weight: 600;
  cursor: pointer; border: none;
  transition: var(--transition);
  white-space: nowrap; font-family: inherit;
  display: inline-flex; align-items: center; gap: 5px;
}
.spano-btn-primary   { background: var(--green); color: var(--white); }
.spano-btn-primary:hover { background: var(--green-light); }
.spano-btn-secondary { background: var(--white); color: var(--green); border: 1.5px solid var(--gray-200); }
.spano-btn-secondary:hover { border-color: var(--green); background: var(--gray-50); }
.spano-btn-gold      { background: var(--gold); color: var(--green); font-weight: 700; }
.spano-btn-gold:hover { background: var(--gold-light); }
.spano-btn-danger    { background: var(--red); color: var(--white); }
.spano-btn-danger:hover { background: #a93226; }
.spano-btn-lg { padding: 11px 20px; font-size: 14px; }
.spano-btn-sm { padding: 4px 9px; font-size: 11px; }
.spano-btn-full { width: 100%; justify-content: center; }

/* ── Content Area ────────────────────────────────────────────── */
.spano-content { padding: 24px; flex: 1; }
.spano-page    { display: none; }
.spano-page.active { display: block; }

/* ── Page Header ─────────────────────────────────────────────── */
.spano-page-header {
  display: flex; align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 20px; gap: 14px; flex-wrap: wrap;
}
.spano-page-header h1 { font-size: 21px; font-weight: 800; color: var(--green); line-height: 1.2; }
.spano-page-header p  { font-size: 12.5px; color: var(--text-muted); margin-top: 3px; }
.spano-action-btns    { display: flex; gap: 8px; flex-wrap: wrap; }

/* ── Cards ───────────────────────────────────────────────────── */
.spano-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
  margin-bottom: 18px;
}
.spano-card-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--gray-200);
  display: flex; align-items: center;
  justify-content: space-between; flex-wrap: wrap; gap: 8px;
}
.spano-card-title { font-size: 13.5px; font-weight: 700; color: var(--green); }
.spano-card-body  { padding: 20px; }
.spano-card-body-flush { padding: 0; }

/* ── Stats Grid ──────────────────────────────────────────────── */
.spano-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px; margin-bottom: 20px;
}
.spano-stat-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
  padding: 18px; box-shadow: var(--shadow-sm);
}
.spano-stat-card.highlight { background: var(--green); border-color: var(--green); }
.spano-stat-label {
  font-size: 10.5px; font-weight: 600; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: .06em; margin-bottom: 6px;
}
.spano-stat-card.highlight .spano-stat-label { color: rgba(255,255,255,.55); }
.spano-stat-value { font-size: 24px; font-weight: 800; color: var(--green); line-height: 1; }
.spano-stat-card.highlight .spano-stat-value { color: var(--gold); }
.spano-stat-sub { font-size: 11.5px; color: var(--text-muted); margin-top: 4px; }
.spano-stat-card.highlight .spano-stat-sub { color: rgba(255,255,255,.45); }
.spano-stat-up   { color: var(--success); font-size: 11px; font-weight: 600; }
.spano-stat-warn { color: var(--orange);  font-size: 11px; font-weight: 600; }

/* ── Two / Three Column Grids ────────────────────────────────── */
.spano-two-col   { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.spano-three-col { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }

/* ── Tables ──────────────────────────────────────────────────── */
.spano-table-wrap { overflow-x: auto; }
.spano-table {
  width: 100%; border-collapse: collapse; font-size: 12.5px;
}
.spano-table th {
  font-size: 10.5px; font-weight: 600; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: .05em;
  padding: 9px 13px; border-bottom: 2px solid var(--gray-200);
  text-align: left; background: var(--gray-50); white-space: nowrap;
}
.spano-table td {
  padding: 11px 13px; border-bottom: 1px solid var(--gray-100);
  color: var(--text); vertical-align: middle;
}
.spano-table tr:hover td { background: var(--gray-50); }
.spano-table tr:last-child td { border-bottom: none; }

/* ── Badges ──────────────────────────────────────────────────── */
.spano-badge {
  display: inline-flex; align-items: center; gap: 3px;
  padding: 3px 8px; border-radius: 20px;
  font-size: 10.5px; font-weight: 600; white-space: nowrap;
}
.spano-badge-green  { background: var(--success-light); color: var(--success); }
.spano-badge-red    { background: var(--red-light);     color: var(--red); }
.spano-badge-orange { background: var(--orange-light);  color: var(--orange); }
.spano-badge-blue   { background: var(--blue-light);    color: var(--blue); }
.spano-badge-purple { background: var(--purple-light);  color: var(--purple); }
.spano-badge-teal   { background: var(--teal-light);    color: var(--teal); }
.spano-badge-gray   { background: var(--gray-100);      color: var(--gray-600); }
.spano-badge-gold   { background: var(--gold-pale);     color: #7a5a1a; }

/* ── Forms ───────────────────────────────────────────────────── */
.spano-form-grid   { display: grid; gap: 14px; }
.spano-form-grid-2 { grid-template-columns: 1fr 1fr; }
.spano-form-grid-3 { grid-template-columns: 1fr 1fr 1fr; }
.spano-form-group  { display: flex; flex-direction: column; gap: 4px; }
.spano-form-label  { font-size: 11.5px; font-weight: 600; color: var(--text-soft); }
.spano-form-label.required::after { content: ' *'; color: var(--red); }
.spano-input, .spano-select, .spano-textarea {
  border: 1.5px solid var(--gray-200); border-radius: 6px;
  padding: 8px 11px; font-size: 12.5px; color: var(--text);
  background: var(--white); outline: none;
  transition: border-color .15s; font-family: inherit; width: 100%;
}
.spano-input:focus, .spano-select:focus, .spano-textarea:focus { border-color: var(--green); }
.spano-input.error, .spano-select.error, .spano-textarea.error { border-color: var(--red); }
.spano-textarea    { resize: vertical; min-height: 80px; }
.spano-form-hint   { font-size: 11px; color: var(--text-muted); }
.spano-form-error  { font-size: 11px; color: var(--red); }

/* ── Alerts ──────────────────────────────────────────────────── */
.spano-alert {
  border-radius: var(--radius); padding: 11px 14px;
  margin-bottom: 14px;
  display: flex; gap: 9px; align-items: flex-start;
  font-size: 12.5px; line-height: 1.5;
}
.spano-alert-icon  { flex-shrink: 0; font-size: 15px; margin-top: 1px; }
.spano-alert-urgent  { background: #fdf2f1; border: 1px solid #f5c6c2; color: #922b21; }
.spano-alert-warn    { background: #fef9f0; border: 1px solid #f5d99c; color: #7d5a00; }
.spano-alert-info    { background: #eff6ff; border: 1px solid #bfdbfe; color: #1e40af; }
.spano-alert-success { background: var(--success-light); border: 1px solid #bbf7d0; color: #14532d; }

/* ── Tabs ────────────────────────────────────────────────────── */
.spano-tabs {
  display: flex; gap: 3px;
  background: var(--gray-100); padding: 3px;
  border-radius: 8px; margin-bottom: 18px; flex-wrap: wrap;
}
.spano-tab {
  padding: 6px 13px; border-radius: 6px;
  font-size: 12.5px; font-weight: 600;
  cursor: pointer; color: var(--text-muted);
  border: none; background: none;
  transition: var(--transition); font-family: inherit;
}
.spano-tab.active { background: var(--white); color: var(--green); box-shadow: var(--shadow-sm); }
.spano-tab:hover:not(.active) { color: var(--text); }

/* ── Toggle Switch ───────────────────────────────────────────── */
.spano-toggle-row {
  display: flex; align-items: center;
  justify-content: space-between;
  padding: 9px 0; border-bottom: 1px solid var(--gray-100);
}
.spano-toggle-row:last-child { border-bottom: none; }
.spano-toggle-label { font-size: 12.5px; color: var(--text); font-weight: 500; }
.spano-toggle-sub   { font-size: 11px; color: var(--text-muted); margin-top: 1px; }
.spano-toggle {
  width: 42px; height: 22px; background: var(--gray-300);
  border-radius: 11px; position: relative;
  cursor: pointer; transition: background .2s; flex-shrink: 0;
  border: none; outline: none;
}
.spano-toggle.on { background: var(--green); }
.spano-toggle::after {
  content: ''; position: absolute;
  width: 16px; height: 16px; background: var(--white);
  border-radius: 50%; top: 3px; left: 3px;
  transition: transform .2s;
  box-shadow: 0 1px 3px rgba(0,0,0,.2);
}
.spano-toggle.on::after { transform: translateX(20px); }

/* ── Progress Bar ────────────────────────────────────────────── */
.spano-progress { background: var(--gray-200); border-radius: 20px; height: 6px; overflow: hidden; }
.spano-progress-fill { height: 100%; border-radius: 20px; background: var(--gold); transition: width .3s; }
.spano-progress-fill.green  { background: var(--success); }
.spano-progress-fill.red    { background: var(--red); }
.spano-progress-fill.blue   { background: var(--blue); }

/* ── Timeline ────────────────────────────────────────────────── */
.spano-timeline-item {
  display: flex; gap: 12px;
  padding-bottom: 16px; position: relative;
}
.spano-timeline-item::before {
  content: ''; position: absolute;
  left: 13px; top: 26px; bottom: 0;
  width: 1px; background: var(--gray-200);
}
.spano-timeline-item:last-child::before { display: none; }
.spano-tl-dot {
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--gold-pale); border: 2px solid var(--gold);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; flex-shrink: 0;
}
.spano-tl-body { flex: 1; min-width: 0; }
.spano-tl-title { font-size: 12.5px; font-weight: 600; color: var(--text); }
.spano-tl-sub   { font-size: 11.5px; color: var(--text-muted); margin-top: 1px; }

/* ── Checklist ───────────────────────────────────────────────── */
.spano-checklist-item {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 9px 0; border-bottom: 1px solid var(--gray-100);
}
.spano-checklist-item:last-child { border-bottom: none; }
.spano-check-circle {
  width: 20px; height: 20px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; flex-shrink: 0; margin-top: 1px;
}
.spano-check-circle.done    { background: var(--success); color: var(--white); }
.spano-check-circle.pending { background: var(--orange-light); color: var(--orange); border: 1.5px solid var(--orange); }
.spano-check-circle.open    { background: var(--gray-100); color: var(--gray-400); border: 1.5px solid var(--gray-300); }

/* ── Doc Row ─────────────────────────────────────────────────── */
.spano-doc-row {
  display: flex; align-items: center; gap: 11px;
  padding: 10px 0; border-bottom: 1px solid var(--gray-100);
}
.spano-doc-row:last-child { border-bottom: none; }
.spano-doc-icon {
  width: 30px; height: 30px; border-radius: 6px;
  background: var(--gold-pale);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; flex-shrink: 0;
}
.spano-doc-name { font-size: 12.5px; font-weight: 500; color: var(--text); flex: 1; }
.spano-doc-meta { font-size: 11px; color: var(--text-muted); }

/* ── Messages ────────────────────────────────────────────────── */
.spano-msg-bubble {
  padding: 11px 15px;
  border-bottom: 1px solid var(--gray-100);
}
.spano-msg-bubble.staff { background: var(--gray-50); }
.spano-msg-bubble.user  { background: var(--gold-pale); }
.spano-msg-from  { font-size: 10.5px; font-weight: 600; color: var(--text-muted); margin-bottom: 3px; }
.spano-msg-text  { font-size: 12.5px; color: var(--text); line-height: 1.5; }
.spano-msg-time  { font-size: 10px; color: var(--gray-400); float: right; margin-top: 4px; }

/* ── Upload Zone ─────────────────────────────────────────────── */
.spano-upload-zone {
  border: 2px dashed var(--gray-300); border-radius: var(--radius);
  padding: 22px; text-align: center; cursor: pointer;
  transition: var(--transition);
}
.spano-upload-zone:hover { border-color: var(--green); background: var(--gray-50); }
.spano-upload-zone.dragover { border-color: var(--gold); background: var(--gold-pale); }

/* ── Vote Cards ──────────────────────────────────────────────── */
.spano-vote-card {
  background: var(--white); border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-lg); padding: 20px; margin-bottom: 14px;
}
.spano-vote-card.urgent { border-color: var(--orange); background: var(--orange-light); }
.spano-vote-card.voted  { border-color: var(--success); background: var(--success-light); }
.spano-vote-btns { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.spano-vote-approve,
.spano-vote-deny,
.spano-vote-abstain {
  padding: 10px 20px; border-radius: 6px;
  font-size: 13px; font-weight: 700;
  border: none; cursor: pointer; font-family: inherit;
  transition: var(--transition);
}
.spano-vote-approve { background: var(--success); color: var(--white); }
.spano-vote-approve:hover { background: #15803d; }
.spano-vote-deny    { background: var(--red); color: var(--white); }
.spano-vote-deny:hover { background: #a93226; }
.spano-vote-abstain { background: var(--gray-100); color: var(--text-muted); }
.spano-vote-abstain:hover { background: var(--gray-200); }

/* ── Fund Hero ───────────────────────────────────────────────── */
.spano-fund-hero {
  background: var(--green); border-radius: var(--radius-lg);
  padding: 26px; margin-bottom: 20px;
  position: relative; overflow: hidden;
}
.spano-fund-hero::before {
  content: ''; position: absolute; top: -50px; right: -50px;
  width: 220px; height: 220px; border-radius: 50%;
  background: rgba(201,168,76,.07);
}
.spano-hero-eyebrow {
  font-size: 10.5px; font-weight: 600; color: rgba(255,255,255,.5);
  text-transform: uppercase; letter-spacing: .08em; margin-bottom: 4px;
}
.spano-hero-fund-name { font-size: 22px; font-weight: 800; color: var(--white); margin-bottom: 2px; }
.spano-hero-fund-type { font-size: 12.5px; color: rgba(255,255,255,.55); margin-bottom: 20px; }
.spano-hero-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
  position: relative; z-index: 1;
}
.spano-hero-stat {
  background: rgba(255,255,255,.06); border-radius: 8px; padding: 13px;
}
.spano-hero-stat-label {
  font-size: 10px; font-weight: 600; color: rgba(255,255,255,.5);
  text-transform: uppercase; letter-spacing: .06em; margin-bottom: 4px;
}
.spano-hero-stat-value { font-size: 20px; font-weight: 800; color: var(--gold); }
.spano-hero-stat-sub   { font-size: 11px; color: rgba(255,255,255,.35); margin-top: 2px; }

/* ── Stepper ─────────────────────────────────────────────────── */
.spano-stepper { display: flex; align-items: center; margin-bottom: 26px; }
.spano-step-item { display: flex; align-items: center; flex: 1; }
.spano-step-circle {
  width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; flex-shrink: 0;
  border: 2px solid var(--gray-300);
  background: var(--white); color: var(--text-muted);
}
.spano-step-circle.done   { background: var(--success); border-color: var(--success); color: var(--white); }
.spano-step-circle.active { background: var(--green);   border-color: var(--green);   color: var(--white); }
.spano-step-text  { font-size: 11px; color: var(--text-muted); margin-left: 7px; white-space: nowrap; }
.spano-step-text.active { color: var(--green); font-weight: 600; }
.spano-step-line  { flex: 1; height: 2px; background: var(--gray-200); margin: 0 8px; }
.spano-step-line.done { background: var(--success); }

/* ── Queue Items ─────────────────────────────────────────────── */
.spano-queue-item {
  background: var(--white); border: 1px solid var(--gray-200);
  border-radius: var(--radius); padding: 14px 16px;
  margin-bottom: 8px; display: flex; align-items: center; gap: 14px;
  cursor: pointer; transition: var(--transition);
}
.spano-queue-item:hover { border-color: var(--green); box-shadow: var(--shadow-sm); }
.spano-queue-item.urgent { border-left: 4px solid var(--red); }
.spano-queue-item.medium { border-left: 4px solid var(--orange); }
.spano-queue-item.normal { border-left: 4px solid var(--success); }
.spano-queue-meta { flex: 1; min-width: 0; }
.spano-queue-title { font-size: 12.5px; font-weight: 600; color: var(--text); margin-bottom: 2px; }
.spano-queue-sub   { font-size: 11.5px; color: var(--text-muted); }
.spano-queue-right { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex-shrink: 0; }

/* ── Quick Actions ───────────────────────────────────────────── */
.spano-quick-actions {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 10px; margin-bottom: 20px;
}
.spano-qa-btn {
  background: var(--white); border: 1.5px solid var(--gray-200);
  border-radius: var(--radius); padding: 14px;
  display: flex; align-items: center; gap: 10px;
  cursor: pointer; transition: var(--transition); text-align: left;
}
.spano-qa-btn:hover { border-color: var(--green); box-shadow: var(--shadow-sm); }
.spano-qa-icon {
  width: 36px; height: 36px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; flex-shrink: 0;
}
.spano-qa-label { font-size: 12.5px; font-weight: 600; color: var(--green); }
.spano-qa-sub   { font-size: 11px; color: var(--text-muted); margin-top: 1px; }

/* ── Workflow Steps ──────────────────────────────────────────── */
.spano-workflow-step {
  background: var(--white); border: 1.5px solid var(--gray-200);
  border-radius: var(--radius); padding: 12px 14px; margin-bottom: 7px;
  display: flex; align-items: flex-start; gap: 10px;
}
.spano-workflow-step.active-step { border-color: var(--green); }
.spano-step-num {
  width: 26px; height: 26px; background: var(--green);
  color: var(--white); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; flex-shrink: 0;
}
.spano-step-num.pending { background: var(--gray-300); }
.spano-step-tag {
  background: var(--gray-100); color: var(--text-muted);
  border-radius: 4px; padding: 2px 7px;
  font-size: 10.5px; font-weight: 500;
}

/* ── Integration Row ─────────────────────────────────────────── */
.spano-integration-row {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 0; border-bottom: 1px solid var(--gray-100);
}
.spano-integration-row:last-child { border-bottom: none; }
.spano-int-logo {
  width: 38px; height: 38px; border-radius: 7px;
  border: 1px solid var(--gray-200); background: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 17px; flex-shrink: 0;
}
.spano-int-name { font-size: 12.5px; font-weight: 600; color: var(--text); }
.spano-int-desc { font-size: 11px; color: var(--text-muted); }
.spano-status-dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.spano-status-dot.on  { background: var(--success); }
.spano-status-dot.off { background: var(--gray-300); }

/* ── Email Preview ───────────────────────────────────────────── */
.spano-email-preview {
  background: var(--gray-50); border: 1px solid var(--gray-200);
  border-radius: var(--radius); padding: 16px;
}
.spano-email-vote-btns { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.spano-email-vote-btn {
  padding: 10px 20px; border-radius: 6px;
  font-size: 13px; font-weight: 700; border: none; cursor: pointer;
}
.spano-email-vote-approve { background: var(--success); color: var(--white); }
.spano-email-vote-deny    { background: var(--red);     color: var(--white); }

/* ── Impact Cards ────────────────────────────────────────────── */
.spano-impact-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 14px; margin-bottom: 20px;
}
.spano-impact-card {
  background: var(--gold-pale); border: 1px solid rgba(201,168,76,.3);
  border-radius: var(--radius-lg); padding: 18px; text-align: center;
}
.spano-impact-number { font-size: 28px; font-weight: 800; color: var(--green); line-height: 1; }
.spano-impact-label  { font-size: 11.5px; color: var(--text-soft); margin-top: 4px; font-weight: 500; }

/* ── Bar Chart ───────────────────────────────────────────────── */
.spano-bar-row { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.spano-bar-label { font-size: 11.5px; color: var(--text-muted); width: 140px; flex-shrink: 0; }
.spano-bar-track { flex: 1; background: var(--gray-200); border-radius: 20px; height: 8px; overflow: hidden; }
.spano-bar-fill  { height: 100%; border-radius: 20px; background: var(--gold); }
.spano-bar-value { font-size: 11.5px; font-weight: 600; color: var(--text); width: 60px; text-align: right; flex-shrink: 0; }

/* ── Divider ─────────────────────────────────────────────────── */
.spano-divider { height: 1px; background: var(--gray-200); margin: 18px 0; }

/* ── Loading / Spinner ───────────────────────────────────────── */
.spano-spinner {
  width: 32px; height: 32px; border-radius: 50%;
  border: 3px solid var(--gray-200);
  border-top-color: var(--green);
  animation: spano-spin .8s linear infinite;
  margin: 20px auto;
}
@keyframes spano-spin { to { transform: rotate(360deg); } }

/* ── Toast Notifications ─────────────────────────────────────── */
.spano-toast {
  position: fixed; bottom: 24px; right: 24px;
  background: var(--green); color: var(--white);
  padding: 12px 18px; border-radius: 8px;
  font-size: 13px; font-weight: 500;
  box-shadow: var(--shadow-lg); z-index: 9999;
  transform: translateY(80px); opacity: 0;
  transition: all .3s ease; max-width: 320px;
  display: flex; align-items: center; gap: 8px;
}
.spano-toast.show { transform: translateY(0); opacity: 1; }
.spano-toast.success { background: var(--success); }
.spano-toast.error   { background: var(--red); }
.spano-toast.warning { background: var(--orange); }

/* ── Login Portal ────────────────────────────────────────────── */
.spano-login-page {
  min-height: 100vh;
  background: var(--green);
  display: flex; align-items: center; justify-content: center;
  padding: 20px; position: relative; overflow: hidden;
}
.spano-login-page::before {
  content: ''; position: absolute; top: -80px; right: -80px;
  width: 320px; height: 320px; border-radius: 50%;
  background: rgba(201,168,76,.07);
}
.spano-login-box {
  background: var(--white); border-radius: var(--radius-xl);
  width: 100%; max-width: 420px;
  box-shadow: var(--shadow-lg); overflow: hidden;
  position: relative; z-index: 1;
}
.spano-login-header {
  background: var(--green); padding: 28px 28px 24px; text-align: center;
}
.spano-login-icon {
  width: 50px; height: 50px; background: var(--gold);
  border-radius: 12px; margin: 0 auto 12px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 18px; color: var(--green);
}
.spano-login-title { font-size: 18px; font-weight: 700; color: var(--white); margin-bottom: 4px; }
.spano-login-sub   { font-size: 12px; color: rgba(255,255,255,.6); }
.spano-login-body  { padding: 24px 28px; }
.spano-login-step  { display: none; }
.spano-login-step.active { display: block; }
.spano-step-dots   { display: flex; justify-content: center; gap: 6px; margin-bottom: 20px; }
.spano-step-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--gray-200); transition: all .2s;
}
.spano-step-dot.active { background: var(--green); width: 20px; border-radius: 4px; }

/* ── SSO Buttons ─────────────────────────────────────────────── */
.spano-sso-btn {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 14px; border: 1.5px solid var(--gray-200);
  border-radius: 8px; background: var(--white);
  cursor: pointer; font-size: 13px; font-weight: 500;
  color: var(--text); transition: var(--transition);
  width: 100%; margin-bottom: 8px; font-family: inherit;
}
.spano-sso-btn:hover { border-color: var(--green); background: var(--gray-50); }
.spano-sso-icon {
  width: 22px; height: 22px; border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; flex-shrink: 0;
}

/* ── MFA Boxes ───────────────────────────────────────────────── */
.spano-mfa-grid { display: flex; gap: 8px; justify-content: center; margin: 16px 0; }
.spano-mfa-box {
  width: 44px; height: 52px; border: 1.5px solid var(--gray-200);
  border-radius: 8px; text-align: center; font-size: 20px;
  font-weight: 700; outline: none; transition: border-color .15s;
  font-family: inherit;
}
.spano-mfa-box:focus { border-color: var(--green); }

/* ── Role Selector ───────────────────────────────────────────── */
.spano-role-option {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 14px; border: 1.5px solid var(--gray-200);
  border-radius: 8px; cursor: pointer; transition: var(--transition);
  font-size: 13px; font-weight: 500; margin-bottom: 8px;
}
.spano-role-option:hover  { border-color: var(--green); background: var(--gray-50); }
.spano-role-option.selected { border-color: var(--green); background: #f0f7f4; }
.spano-role-icon {
  width: 28px; height: 28px; border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; flex-shrink: 0;
}

/* ── Consent Box ─────────────────────────────────────────────── */
.spano-consent-box {
  background: var(--gray-50); border: 1px solid var(--gray-200);
  border-radius: 8px; padding: 14px;
  max-height: 120px; overflow-y: auto;
  font-size: 12px; color: var(--text-muted); line-height: 1.6; margin-bottom: 14px;
}
.spano-consent-check {
  display: flex; align-items: flex-start; gap: 8px;
  margin-bottom: 10px; font-size: 12px; color: var(--text);
}
.spano-consent-check input { margin-top: 2px; accent-color: var(--green); flex-shrink: 0; }

/* ── Resource Directory ──────────────────────────────────────── */
.spano-resource-card {
  background: var(--white); border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg); padding: 20px; margin-bottom: 14px;
  box-shadow: var(--shadow-sm); transition: var(--transition); cursor: pointer;
}
.spano-resource-card:hover { border-color: var(--green); box-shadow: var(--shadow-md); transform: translateY(-1px); }
.spano-resource-card.featured { border-color: var(--gold); }
.spano-cat-chip {
  padding: 6px 14px; border-radius: 20px;
  border: 1.5px solid var(--gray-200); background: var(--white);
  font-size: 12.5px; font-weight: 500; cursor: pointer;
  color: var(--text-muted); transition: var(--transition);
  display: inline-flex; align-items: center; gap: 5px;
  white-space: nowrap;
}
.spano-cat-chip:hover  { border-color: var(--green); color: var(--green); }
.spano-cat-chip.active { background: var(--green); color: var(--white); border-color: var(--green); }

/* ── Modal ───────────────────────────────────────────────────── */
.spano-modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.55);
  z-index: 500; display: none; align-items: center;
  justify-content: center; padding: 20px;
}
.spano-modal-overlay.open { display: flex; }
.spano-modal {
  background: var(--white); border-radius: var(--radius-xl);
  width: 100%; max-width: 560px; max-height: 90vh;
  overflow-y: auto; box-shadow: var(--shadow-lg); position: relative;
}
.spano-modal-header {
  background: var(--green); padding: 20px 22px;
  display: flex; align-items: center; justify-content: space-between;
  position: sticky; top: 0; z-index: 1;
}
.spano-modal-title { font-size: 15px; font-weight: 700; color: var(--white); }
.spano-modal-close {
  width: 28px; height: 28px; border-radius: 50%;
  border: none; background: rgba(255,255,255,.15);
  cursor: pointer; font-size: 15px; color: var(--white);
  display: flex; align-items: center; justify-content: center;
}
.spano-modal-body { padding: 22px 24px; }

/* ── Admin Settings Page ─────────────────────────────────────── */
.spano-admin-wrap { max-width: 900px; }
.spano-admin-card {
  background: var(--white); border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg); padding: 24px; margin-bottom: 20px;
}
.spano-admin-card h2 { font-size: 16px; font-weight: 700; color: var(--green); margin-bottom: 16px; }
.spano-admin-field { margin-bottom: 16px; }
.spano-admin-field label { display: block; font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 5px; }
.spano-admin-field input,
.spano-admin-field select,
.spano-admin-field textarea {
  width: 100%; padding: 8px 11px; border: 1.5px solid var(--gray-200);
  border-radius: 6px; font-size: 13px; font-family: inherit; outline: none;
}
.spano-admin-field input:focus,
.spano-admin-field select:focus { border-color: var(--green); }
.spano-admin-field .description { font-size: 12px; color: var(--text-muted); margin-top: 4px; }

/* ── Responsive — Tablet ─────────────────────────────────────── */
@media ( max-width: 900px ) {
  .spano-sidebar { transform: translateX(-100%); }
  .spano-sidebar.open { transform: translateX(0); }
  .spano-sidebar-overlay.open { display: block; }
  .spano-main { margin-left: 0; }
  .spano-topbar-menu-btn { display: flex; }
  .spano-stats-grid { grid-template-columns: repeat(2, 1fr); }
  .spano-two-col   { grid-template-columns: 1fr; }
  .spano-three-col { grid-template-columns: 1fr 1fr; }
  .spano-form-grid-2 { grid-template-columns: 1fr; }
  .spano-form-grid-3 { grid-template-columns: 1fr; }
  .spano-hero-stats { grid-template-columns: 1fr 1fr; }
  .spano-impact-grid { grid-template-columns: 1fr 1fr; }
  .spano-quick-actions { grid-template-columns: 1fr; }
  .spano-bar-label { width: 100px; font-size: 11px; }
}

/* ── Responsive — Mobile ─────────────────────────────────────── */
@media ( max-width: 600px ) {
  .spano-content { padding: 14px; }
  .spano-topbar  { padding: 0 14px; }
  .spano-stats-grid { grid-template-columns: 1fr 1fr; }
  .spano-three-col  { grid-template-columns: 1fr; }
  .spano-page-header { flex-direction: column; }
  .spano-action-btns { width: 100%; }
  .spano-action-btns .spano-btn { flex: 1; justify-content: center; }
  .spano-table { font-size: 11.5px; }
  .spano-table th, .spano-table td { padding: 8px 10px; }
  .spano-stepper { flex-wrap: wrap; gap: 8px; }
  .spano-step-line { display: none; }
  .spano-vote-btns { flex-direction: column; }
  .spano-vote-approve, .spano-vote-deny, .spano-vote-abstain { width: 100%; text-align: center; }
  .spano-hero-stats { grid-template-columns: 1fr 1fr; }
  .spano-mfa-box { width: 38px; height: 46px; font-size: 18px; }
  .spano-modal { border-radius: var(--radius-lg); }
  .spano-impact-grid { grid-template-columns: 1fr 1fr; }
  .spano-fund-hero { padding: 18px; }
  .spano-hero-fund-name { font-size: 18px; }
  .spano-login-body { padding: 18px; }
}

/* ── Print Styles ────────────────────────────────────────────── */
@media print {
  .spano-sidebar, .spano-topbar, .spano-action-btns,
  .spano-notif-btn, .spano-topbar-menu-btn { display: none !important; }
  .spano-main { margin-left: 0; }
  .spano-content { padding: 0; }
  .spano-card { box-shadow: none; border: 1px solid #ccc; }
}
