/* ============================================================
   DamuLink -- Main stylesheet
   Sections: icon sizing, main site, embedded dashboard (scoped
   to #dashboard-section so it doesn't leak into the rest of
   the page's styling).
   ============================================================ */

  .logo-mark svg { width: 16px; height: 16px; stroke: white; }
  .emergency-detail-icon svg { width: 26px; height: 26px; stroke: white; }
  .why-icon svg { width: 20px; height: 20px; stroke: var(--red-primary); }
  .feature-row .icon svg { width: 19px; height: 19px; stroke: var(--red-primary); }
  .involve-photo-top svg { width: 38px; height: 38px; stroke: var(--maroon-deep); stroke-width: 1.6; }
  .phone-tile .emoji svg { width: 16px; height: 16px; stroke: var(--ink-soft); display: block; margin: 0 auto; }
  .quote-icon svg { width: 22px; height: 22px; stroke: var(--red-primary); }
  :root {
    --maroon-deep: #3D0A12;
    --red-primary: #AF101A;
    --red-bright: #D4202B;
    --paper: #FBF6F3;
    --paper-dim: #F1E9E4;
    --ink: #201415;
    --ink-soft: #5C4A47;
    --gold: #C89550;
    --sage: #3F7D5C;
    --line: rgba(32,20,21,0.12);
  }
  * { box-sizing: border-box; margin: 0; padding: 0; }
  html { scroll-behavior: smooth; }
  body {
    background: var(--paper);
    color: var(--ink);
    font-family: 'Inter', sans-serif;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
  }
  h1, h2, h3, .display { font-family: 'Fraunces', serif; font-weight: 600; letter-spacing: -0.01em; line-height: 1.08; }
  .mono { font-family: 'IBM Plex Mono', monospace; }
  a { color: inherit; text-decoration: none; }
  .wrap { max-width: 1160px; margin: 0 auto; padding: 0 28px; }
  section { padding: 92px 0; }
  .section-eyebrow {
    font-family: 'IBM Plex Mono', monospace; font-size: 12px; letter-spacing: 0.12em;
    text-transform: uppercase; color: var(--red-primary); margin-bottom: 14px; font-weight: 500;
  }
  .section-head { max-width: 620px; margin-bottom: 44px; }
  .section-head h2 { font-size: clamp(26px, 3.6vw, 40px); }
  .section-head p { margin-top: 14px; color: var(--ink-soft); font-size: 16px; }

  /* ---------- Nav ---------- */
  nav {
    position: sticky; top: 0; z-index: 60;
    background: rgba(251,246,243,0.9); backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
  }
  nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 70px; }
  .logo { display: flex; align-items: center; gap: 10px; font-family: 'Fraunces', serif; font-weight: 600; font-size: 19px; }
  .logo-mark {
    width: 30px; height: 30px; border-radius: 8px;
    background: linear-gradient(135deg, var(--red-bright), var(--maroon-deep));
    display: flex; align-items: center; justify-content: center; color: white; font-size: 14px;
  }
  .nav-links { display: flex; gap: 28px; font-size: 13.5px; font-weight: 500; color: var(--ink-soft); }
  .nav-links a:hover { color: var(--red-primary); }
  .nav-cta { background: var(--red-primary); color: white !important; padding: 9px 18px; border-radius: 100px; font-size: 13.5px; font-weight: 600; }
  .nav-cta:hover { background: var(--maroon-deep); }
  .nav-mobile-hide { display: flex; }
  @media (max-width: 780px) { .nav-mobile-hide { display: none; } }

  /* Mega menu */
  .nav-item-drop { position: relative; }
  .mega-menu {
    display: none; position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
    background: white; border: 1px solid var(--line); border-radius: 14px; padding: 24px;
    box-shadow: 0 12px 32px rgba(61,10,18,0.12); width: 640px; margin-top: 14px;
    grid-template-columns: repeat(3,1fr); gap: 24px;
  }
  .nav-item-drop:hover .mega-menu { display: grid; }
  .mega-col h5 { font-family:'IBM Plex Mono',monospace; font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--red-primary); margin-bottom: 10px; }
  .mega-col a { display: block; font-size: 13.5px; color: var(--ink); padding: 5px 0; }
  .mega-col a:hover { color: var(--red-primary); }

  .nav-search { display: flex; align-items: center; gap: 0; }
  .nav-search input {
    width: 90px; padding: 9px 12px; border: 1px solid var(--line); border-right: none;
    border-radius: 8px 0 0 8px; font-family: inherit; font-size: 13px;
  }
  .nav-search button {
    background: var(--red-primary); border: none; color: white; padding: 9px 14px;
    border-radius: 0 8px 8px 0; cursor: pointer; font-size: 14px;
  }

  /* Dark alert hero */
  .alert-hero { background: var(--ink); color: white; padding: 56px 0 0; }
  .alert-hero .wrap { display: grid; grid-template-columns: 220px 1fr; gap: 40px; align-items: center; padding-bottom: 48px; }
  .alert-icon-wrap { display: flex; justify-content: center; }
  .alert-icon { position: relative; width: 160px; }
  .alert-icon svg { width: 100%; }
  .alert-hero h1 { color: white; font-size: clamp(28px,3.6vw,42px); }
  .alert-hero p { margin-top: 14px; color: rgba(251,246,243,0.75); font-size: 16px; max-width: 520px; }
  .alert-search { margin-top: 22px; display: flex; gap: 12px; align-items: end; flex-wrap: wrap; }
  .alert-search .find-field label { color: rgba(251,246,243,0.6); }
  .alert-search .find-field select { width: 160px; background: white; }
  @media (max-width: 760px) { .alert-hero .wrap { grid-template-columns: 1fr; text-align: center; } .alert-icon-wrap { justify-content: center; } .alert-search { justify-content: center; } }

  .emergency-detail { background: var(--red-primary); color: white; }
  .emergency-detail .wrap { display: flex; align-items: center; gap: 20px; padding: 28px; }
  .emergency-detail-icon {
    width: 60px; height: 60px; border-radius: 50%; border: 2px solid white; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center; font-size: 24px;
  }
  .emergency-detail h3 { color: white; font-size: 19px; font-family:'Inter',sans-serif; font-weight: 700; }
  .emergency-detail p { margin-top: 4px; font-size: 14px; color: rgba(255,255,255,0.9); }
  .emergency-detail a.underline-link { color: white; font-weight: 700; text-decoration: underline; font-size: 14px; }

  /* App promo */
  .app-promo { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
  .app-promo h2 { font-size: clamp(26px,3.4vw,38px); }
  .app-promo p { margin-top: 14px; color: var(--ink-soft); font-size: 16px; max-width: 420px; }
  .phone-mock {
    width: 240px; margin: 0 auto; border-radius: 32px; background: var(--ink); padding: 10px;
    box-shadow: 0 20px 50px rgba(61,10,18,0.25);
  }
  .phone-screen { background: var(--paper); border-radius: 22px; overflow: hidden; }
  .phone-status { background: var(--maroon-deep); color: white; padding: 14px 16px; font-size: 12px; }
  .phone-body { padding: 14px; }
  .phone-hero-card { background: linear-gradient(135deg, var(--red-bright), var(--maroon-deep)); border-radius: 12px; padding: 14px; color: white; margin-bottom: 10px; }
  .phone-hero-card .tag { font-size: 9px; letter-spacing: .06em; opacity: .85; }
  .phone-hero-card .title { font-family:'Fraunces',serif; font-size: 14px; margin-top: 4px; }
  .phone-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .phone-tile { background: white; border-radius: 10px; padding: 12px 8px; text-align: center; font-size: 10px; color: var(--ink-soft); border: 1px solid var(--line); }
  .phone-tile .emoji { font-size: 16px; display: block; margin-bottom: 4px; }
  .app-side-right { display: flex; flex-direction: column; align-items: center; gap: 16px; }
  .launch-badge {
    width: 108px; height: 108px; border-radius: 50%; border: 2px solid var(--red-primary); color: var(--red-primary);
    display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
    font-family: 'IBM Plex Mono', monospace; font-size: 11px; font-weight: 600; line-height: 1.3;
  }
  .qr-box { padding: 10px; background: white; border: 1px solid var(--line); border-radius: 10px; }
  .qr-box img { display: block; width: 100px; height: 100px; }
  @media (max-width: 860px) { .app-promo { grid-template-columns: 1fr; } .app-side-right { flex-direction: row; justify-content: center; } }

  /* Photo-style involve cards */
  .involve-photo-card { background: white; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); }
  .involve-photo-top {
    height: 140px; display: flex; align-items: center; justify-content: center; font-size: 40px;
    background: linear-gradient(135deg, var(--paper-dim), var(--gold) 220%);
  }
  .involve-photo-body { padding: 20px; }
  .involve-photo-body h3 { font-family:'Inter',sans-serif; font-size: 15.5px; font-weight: 700; margin-bottom: 6px; }
  .involve-photo-body p { font-size: 13px; color: var(--ink-soft); margin-bottom: 12px; }

  /* ---------- Hero ---------- */
  .hero { position: relative; padding: 84px 0 56px; overflow: hidden; }
  .eyebrow-pulse {
    font-family: 'IBM Plex Mono', monospace; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
    color: var(--red-primary); font-weight: 500; margin-bottom: 20px; display: flex; align-items: center; gap: 10px;
  }
  .eyebrow-pulse::before {
    content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--red-primary);
    animation: pulse-dot 1.6s ease-in-out infinite;
  }
  @keyframes pulse-dot { 0%,100% { opacity:1; transform:scale(1);} 50% { opacity:0.4; transform:scale(0.75);} }
  .hero h1 { font-size: clamp(38px, 5.6vw, 68px); max-width: 900px; }
  .hero h1 em { font-style: italic; color: var(--red-primary); }
  .hero-sub { margin-top: 22px; font-size: 18px; color: var(--ink-soft); max-width: 580px; }
  .hero-actions { margin-top: 32px; display: flex; gap: 14px; flex-wrap: wrap; }
  .btn-primary {
    background: var(--red-primary); color: white; padding: 15px 28px; border-radius: 100px;
    font-weight: 600; font-size: 15px; display: inline-flex; align-items: center; gap: 8px;
    transition: transform .15s ease, background .15s ease; border: none; cursor: pointer;
  }
  .btn-primary:hover { background: var(--maroon-deep); transform: translateY(-1px); }
  .btn-secondary {
    border: 1.5px solid var(--line); color: var(--ink); padding: 15px 28px; border-radius: 100px;
    font-weight: 600; font-size: 15px; transition: border-color .15s ease, background .15s ease;
  }
  .btn-secondary:hover { border-color: var(--red-primary); background: white; }

  /* Find blood tool */
  .find-tool {
    margin-top: 44px; background: white; border: 1px solid var(--line); border-radius: 18px;
    padding: 22px; display: grid; grid-template-columns: 1fr 1fr auto; gap: 12px; align-items: end;
    box-shadow: 0 4px 20px rgba(61,10,18,0.06);
  }
  .find-field label { display: block; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-soft); margin-bottom: 6px; }
  .find-field select {
    width: 100%; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line);
    font-family: inherit; font-size: 14px; background: var(--paper);
  }
  @media (max-width: 640px) { .find-tool { grid-template-columns: 1fr; } }

  .pulse-wrap { margin-top: 56px; height: 80px; }
  .pulse-wrap svg { width: 100%; height: 100%; }
  .pulse-line {
    fill: none; stroke: var(--red-primary); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round;
    stroke-dasharray: 1400; stroke-dashoffset: 1400; animation: draw-pulse 3.2s ease-in-out infinite;
  }
  @keyframes draw-pulse {
    0% { stroke-dashoffset:1400; opacity:.15; } 8% { opacity:1; } 55% { stroke-dashoffset:0; opacity:1; }
    70% { opacity:.15; } 100% { stroke-dashoffset:-1400; opacity:.15; }
  }
  .pulse-track { fill:none; stroke: var(--line); stroke-width: 1.5; }

  .stat-strip {
    margin-top: 8px; display: grid; grid-template-columns: repeat(4,1fr); gap: 1px;
    background: var(--line); border: 1px solid var(--line); border-radius: 16px; overflow: hidden;
  }
  .stat-cell { background: var(--paper); padding: 20px 18px; }
  .stat-num { font-family: 'IBM Plex Mono', monospace; font-size: clamp(20px,2.6vw,28px); font-weight: 500; color: var(--red-primary); }
  .stat-label { margin-top: 4px; font-size: 11.5px; color: var(--ink-soft); }
  @media (max-width: 640px) { .stat-strip { grid-template-columns: repeat(2,1fr); } }

  /* ---------- Emergency banner (live) ---------- */
  .emergency-banner { background: var(--maroon-deep); color: white; }
  .emergency-banner .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding: 26px 28px; }
  .emergency-left { display: flex; align-items: center; gap: 16px; }
  .emergency-tag { font-family:'IBM Plex Mono',monospace; font-size:11px; letter-spacing:.1em; background: rgba(255,255,255,0.14); padding: 5px 12px; border-radius: 100px; }
  .emergency-text { font-size: 15px; }
  .emergency-text strong { font-weight: 700; }
  #emergency-banner-wrap { display: none; }

  /* ---------- Demand chart ---------- */
  .demand-card { background: white; border-radius: 18px; padding: 28px; border: 1px solid var(--line); }
  .demand-row { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
  .demand-type { width: 44px; font-family:'IBM Plex Mono',monospace; font-weight: 600; font-size: 13px; }
  .demand-bar-track { flex: 1; height: 10px; background: var(--paper-dim); border-radius: 6px; overflow: hidden; }
  .demand-bar-fill { height: 100%; background: linear-gradient(90deg, var(--red-primary), var(--red-bright)); border-radius: 6px; transition: width .6s ease; }
  .demand-count { width: 60px; text-align: right; font-family:'IBM Plex Mono',monospace; font-size: 13px; color: var(--ink-soft); }

  /* ---------- Why cards ---------- */
  .why-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
  .why-card { background: white; padding: 30px 24px; }
  .why-illustration { width: 64px; height: 64px; margin-bottom: 18px; }
  .why-illustration svg { width: 100%; height: 100%; }
  .why-card h3 { font-family: 'Inter', sans-serif; font-size: 16px; font-weight: 600; margin-bottom: 8px; }
  .why-card p { font-size: 13.5px; color: var(--ink-soft); }
  @media (max-width: 900px) { .why-grid { grid-template-columns: repeat(2,1fr); } }
  @media (max-width: 560px) { .why-grid { grid-template-columns: 1fr; } }

  .context-note { margin-top: 20px; font-size: 12.5px; color: var(--ink-soft); border-left: 2px solid var(--gold); padding-left: 14px; }

  /* ---------- Steps ---------- */
  .steps { display: grid; grid-template-columns: repeat(4,1fr); gap: 28px; }
  .step-line { height: 1px; background: var(--line); margin-bottom: 20px; position: relative; }
  .step-line::before { content:''; position:absolute; left:0; top:-3px; width:7px; height:7px; border-radius:50%; background: var(--red-primary); }
  .step-num { font-family:'IBM Plex Mono',monospace; font-size:13px; color: var(--gold); margin-bottom: 14px; }
  .step h3 { font-family:'Inter',sans-serif; font-size:16px; font-weight:600; margin-bottom:6px; }
  .step p { font-size: 13.5px; color: var(--ink-soft); }
  @media (max-width: 800px) { .steps { grid-template-columns: repeat(2,1fr); } }
  @media (max-width: 480px) { .steps { grid-template-columns: 1fr; } }

  /* ---------- Features ---------- */
  .feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 18px; }
  .feature-card {
    background: white; border: 1px solid var(--line); border-radius: 16px;
    padding: 26px 22px 24px; text-align: center;
  }
  .feature-illustration { width: 64px; height: 64px; margin: 0 auto 16px; }
  .feature-illustration svg { width: 100%; height: 100%; }
  .feature-card h3 { font-family: 'Inter', sans-serif; font-size: 15px; font-weight: 600; margin-bottom: 6px; }
  .feature-card p { font-size: 13px; color: var(--ink-soft); line-height: 1.5; }

  /* ---------- Campaigns (live) ---------- */
  .campaign-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
  .campaign-card { background: white; border: 1px solid var(--line); border-radius: 14px; padding: 22px; }
  .campaign-card h3 { font-family: 'Inter', sans-serif; font-size: 15.5px; font-weight: 700; margin-bottom: 6px; }
  .campaign-meta { font-size: 12.5px; color: var(--ink-soft); margin-bottom: 12px; }
  .campaign-bar-track { height: 7px; background: var(--paper-dim); border-radius: 5px; overflow: hidden; margin-bottom: 8px; }
  .campaign-bar-fill { height: 100%; background: var(--sage); }
  @media (max-width: 860px) { .campaign-grid { grid-template-columns: 1fr 1fr; } }
  @media (max-width: 560px) { .campaign-grid { grid-template-columns: 1fr; } }
  .empty-note { color: var(--ink-soft); font-size: 14px; padding: 30px; text-align: center; border: 1px dashed var(--line); border-radius: 14px; }

  /* ---------- Get involved ---------- */
  .involve-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
  .involve-card { background: var(--paper-dim); border-radius: 16px; padding: 26px; }
  .involve-card h3 { font-family: 'Inter', sans-serif; font-size: 16px; font-weight: 700; margin-bottom: 8px; }
  .involve-card p { font-size: 13.5px; color: var(--ink-soft); margin-bottom: 16px; }
  .involve-link { font-size: 13px; font-weight: 700; color: var(--red-primary); display: inline-flex; align-items: center; gap: 6px; }
  @media (max-width: 860px) { .involve-grid { grid-template-columns: 1fr; } }

  /* ---------- Vision (network motif) ---------- */
  .vision { background: var(--maroon-deep); color: var(--paper); }
  .vision .section-eyebrow { color: var(--gold); }
  .vision h2 { color: white; font-size: clamp(28px,4vw,44px); max-width: 680px; }
  .vision p.lead { margin-top: 18px; color: rgba(251,246,243,0.75); max-width: 560px; font-size: 16px; }
  .network-svg { margin-top: 48px; width: 100%; height: 200px; }
  .network-dot { fill: var(--gold); }
  .network-dot.active { fill: var(--red-bright); }
  .network-line { stroke: rgba(251,246,243,0.18); stroke-width: 1.5; }
  .network-line.pulse { stroke: var(--red-bright); stroke-dasharray: 6 400; animation: travel 4s linear infinite; }
  @keyframes travel { to { stroke-dashoffset: -406; } }
  .region-labels { display: flex; justify-content: space-between; margin-top: 12px; font-family:'IBM Plex Mono',monospace; font-size: 11px; color: rgba(251,246,243,0.5); }

  /* ---------- CTA band ---------- */
  .cta-band { background: var(--red-primary); color: white; padding: 76px 0; text-align: center; }
  .cta-band h2 { font-size: clamp(28px,4.5vw,46px); color: white; }
  .cta-band p { margin: 16px auto 32px; max-width: 480px; color: rgba(255,255,255,.85); }
  .cta-band .btn-primary { background: white; color: var(--red-primary); }
  .cta-band .btn-primary:hover { background: var(--paper-dim); }

  /* ---------- Footer ---------- */
  footer { padding: 56px 0 40px; border-top: 1px solid var(--line); }
  .footer-grid { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 32px; }
  .footer-brand p { margin-top: 10px; font-size: 13.5px; color: var(--ink-soft); max-width: 280px; }
  .footer-col h4 { font-family:'IBM Plex Mono',monospace; font-size:11px; letter-spacing:.1em; text-transform:uppercase; color: var(--ink-soft); margin-bottom: 14px; }
  .footer-col a, .footer-col p { display: block; font-size: 14px; color: var(--ink); margin-bottom: 10px; }
  .footer-col a:hover { color: var(--red-primary); }
  .footer-bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--ink-soft); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }

  @media (prefers-reduced-motion: reduce) {
    .pulse-line, .eyebrow-pulse::before, .network-line.pulse { animation: none; }
    .pulse-line { stroke-dashoffset: 0; opacity: 1; }
  }

  /* ---------- Gallery ---------- */
  .gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
  .gallery-photo { border-radius: 12px; overflow: hidden; aspect-ratio: 1; }
  .gallery-photo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s ease; }
  .gallery-photo:hover img { transform: scale(1.05); }
  @media (max-width: 860px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }

  /* ---------- Blog ---------- */
  .blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .blog-card { background: white; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; cursor: pointer; transition: transform .15s ease; }
  .blog-card:hover { transform: translateY(-3px); }
  .blog-card-cover { height: 160px; background: var(--paper-dim); }
  .blog-card-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
  .blog-card-body { padding: 20px; }
  .blog-card-date { font-family: 'IBM Plex Mono', monospace; font-size: 11px; color: var(--red-primary); margin-bottom: 8px; }
  .blog-card h3 { font-size: 17px; margin-bottom: 8px; }
  .blog-card p { font-size: 13.5px; color: var(--ink-soft); }
  @media (max-width: 860px) { .blog-grid { grid-template-columns: 1fr 1fr; } }
  @media (max-width: 560px) { .blog-grid { grid-template-columns: 1fr; } }

  .article-reader-overlay {
    display: none; position: fixed; inset: 0; background: rgba(32,20,21,0.5);
    z-index: 200; align-items: flex-start; justify-content: center; padding: 40px 20px; overflow-y: auto;
  }
  .article-reader {
    background: white; border-radius: 20px; max-width: 720px; width: 100%; padding: 0 0 40px;
    margin-bottom: 40px;
  }
  .article-reader-cover { width: 100%; height: 280px; object-fit: cover; border-radius: 20px 20px 0 0; display: block; }
  .article-reader-body { padding: 32px 40px 0; }
  .article-reader-close {
    position: sticky; top: 16px; float: right; background: white; border: 1px solid var(--line);
    border-radius: 50%; width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
    cursor: pointer; margin: 16px 16px 0 0;
  }
  .article-reader-date { font-family:'IBM Plex Mono',monospace; font-size: 12px; color: var(--red-primary); margin-bottom: 10px; }
  .article-reader h1 { font-size: clamp(24px,3vw,34px); margin-bottom: 18px; }
  .article-reader-content { font-size: 16px; line-height: 1.7; color: var(--ink); }
  .article-reader-content img { max-width: 100%; border-radius: 10px; margin: 16px 0; }
  .article-reader-content p { margin-bottom: 14px; }
/* ============ Embedded Admin Dashboard (scoped to #dashboard-section) ============ */
#dashboard-section {
    --primary: #AF101A;
    --primary-dark: #8C0F19;
    --bg: #F4F6F5;
    --surface: #FFFFFF;
    --surface-2: #F1E9E4;
    --ink: #1A1D1E;
    --ink-soft: #5B6366;
    --border: #E2E6E4;
    --critical: #C0152F;
    --warning: #E0902C;
    --success: #2E9E5B;
    --pink: #F6DDE1;
    --gold: #C89550;
    --sidebar: #1A1D1E;
    --sidebar-text: #B8BEC0;
  }#dashboard-section * { box-sizing: border-box; margin: 0; padding: 0; }#dashboard-section {
    font-family: 'Inter', sans-serif;
    background: var(--bg);
    color: var(--ink);
  }#dashboard-section h1, #dashboard-section h2, #dashboard-section h3, #dashboard-section .display-font { font-family: 'Fraunces', serif; font-weight: 600; }#dashboard-section .mono { font-family: 'IBM Plex Mono', monospace; }#dashboard-section button { font-family: inherit; cursor: pointer; }#dashboard-section input, #dashboard-section select, #dashboard-section textarea { font-family: inherit; font-size: 14px; }#dashboard-section /* ---------- Login ---------- */
  #login-screen {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg);
    padding: 24px;
    position: relative;
    overflow: hidden;
  }#dashboard-section .cell-field { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }#dashboard-section .blood-cell {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 32%, #FF6B76, var(--primary-dark) 62%, #6E0D14 100%);
    box-shadow: inset 0 0 0 3px rgba(0,0,0,0.18), 0 0 24px rgba(212,32,43,0.25);
    opacity: 0.5;
    animation: drift linear infinite;
  }#dashboard-section .blood-cell::after {
    content: '';
    position: absolute; inset: 28%;
    border-radius: 50%;
    background: rgba(0,0,0,0.22);
    filter: blur(1px);
  }@keyframes drift {
    0% { transform: translateY(110vh) translateX(0) rotate(0deg); }
    100% { transform: translateY(-15vh) translateX(var(--drift-x, 40px)) rotate(200deg); }
  }#dashboard-section .login-card {
    position: relative; z-index: 2;
    width: 100%; max-width: 380px; text-align: center;
    background: rgba(29,10,13,0.6);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 40px 32px;
    backdrop-filter: blur(14px);
    box-shadow: 0 30px 70px rgba(0,0,0,0.5);
  }#dashboard-section .login-logo {
    width: 60px; height: 60px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    display: flex; align-items: center; justify-content: center;
    font-size: 26px;
    margin: 0 auto 20px;
    box-shadow: 0 8px 24px rgba(212,32,43,0.35);
  }#dashboard-section .login-card h1 { font-size: 23px; font-weight: 600; letter-spacing: -0.01em; }#dashboard-section .login-card .sub { color: var(--ink-soft); font-size: 13.5px; margin-top: 6px; margin-bottom: 30px; }#dashboard-section .field { text-align: left; margin-bottom: 14px; }#dashboard-section .field label { display: block; font-size: 12px; font-weight: 600; margin-bottom: 6px; color: var(--ink-soft); text-transform: uppercase; letter-spacing: 0.04em; }#dashboard-section .field input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: 14px;
    background: rgba(32,20,21,0.02);
    color: var(--ink);
  }#dashboard-section .field input::placeholder { color: rgba(185,155,150,0.5); }#dashboard-section .field input:focus { outline: none; border-color: var(--primary); background: rgba(32,20,21,0.03); }#dashboard-section .btn {
    width: 100%;
    padding: 13px;
    border: none;
    border-radius: 10px;
    background: var(--primary);
    color: white;
    font-weight: 700;
    font-size: 13.5px;
    letter-spacing: 0.02em;
    margin-top: 10px;
    box-shadow: 0 8px 20px rgba(212,32,43,0.28);
  }#dashboard-section .btn:hover { background: var(--primary-dark); }#dashboard-section .btn:disabled { opacity: 0.6; cursor: default; }#dashboard-section .btn-outline {
    background: transparent;
    border: 1.5px solid var(--border);
    color: var(--ink);
  }#dashboard-section .btn-outline.danger { border-color: var(--critical); color: var(--critical); }#dashboard-section .btn-outline.success { border-color: var(--success); color: var(--success); }#dashboard-section .btn-sm { padding: 8px 14px; font-size: 12px; font-weight: 700; border-radius: 8px; }#dashboard-section .error-box {
    background: var(--pink);
    color: var(--critical);
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 13px;
    text-align: left;
    margin-top: 12px;
    display: none;
  }#dashboard-section .hint { font-size: 11.5px; color: var(--ink-soft); margin-top: 20px; line-height: 1.6; }#dashboard-section /* ---------- App shell ---------- */
  #app-screen { display: none; min-height: 100vh; }#dashboard-section .shell { display: flex; min-height: 100vh; }#dashboard-section .sidebar {
    width: 240px;
    background: var(--sidebar);
    color: var(--sidebar-text);
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    padding: 24px 0;
  }#dashboard-section .sidebar-brand {
    display: flex; align-items: center; gap: 10px;
    padding: 0 20px 28px;
    color: white; font-weight: 700; font-size: 17px;
  }#dashboard-section .sidebar-brand .mark {
    width: 32px; height: 32px; border-radius: 9px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    display: flex; align-items: center; justify-content: center;
  }#dashboard-section .nav-item {
    display: flex; align-items: center; gap: 12px;
    padding: 11px 20px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border-left: 3px solid transparent;
  }#dashboard-section .nav-item:hover { color: white; }#dashboard-section .nav-item.active {
    color: white;
    background: rgba(175,16,26,0.18);
    border-left-color: var(--primary);
    font-weight: 600;
  }#dashboard-section .sidebar-footer { margin-top: auto; padding: 0 20px; }#dashboard-section .main { flex: 1; padding: 32px 36px; overflow-x: hidden; }#dashboard-section .page-title { font-size: 24px; font-weight: 700; margin-bottom: 4px; }#dashboard-section .page-sub { color: var(--ink-soft); font-size: 13px; margin-bottom: 24px; }#dashboard-section .chart-title { font-size: 13px; font-weight: 600; color: var(--ink); margin-bottom: 14px; }#dashboard-section .dashboard-charts-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 16px; }#dashboard-section .kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 14px;
    margin-bottom: 28px;
  }#dashboard-section .kpi-card {
    background: var(--surface);
    border-radius: 14px;
    padding: 18px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  }#dashboard-section .kpi-icon {
    width: 34px; height: 34px;
    border-radius: 9px;
    background: var(--pink);
    display: flex; align-items: center; justify-content: center;
    font-size: 16px;
    margin-bottom: 14px;
  }#dashboard-section .kpi-value { font-size: 22px; font-weight: 700; color: var(--primary); }#dashboard-section .kpi-label { font-size: 12px; color: var(--ink-soft); margin-top: 2px; }#dashboard-section .card {
    background: var(--surface);
    border-radius: 14px;
    padding: 20px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    margin-bottom: 12px;
  }#dashboard-section .row-between { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }#dashboard-section .badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.02em;
  }#dashboard-section .badge.open, #dashboard-section .badge.active { background: rgba(46,158,91,0.12); color: var(--success); }#dashboard-section .badge.fulfilled { background: rgba(46,158,91,0.12); color: var(--success); }#dashboard-section .badge.cancelled, #dashboard-section .badge.closed { background: rgba(91,99,102,0.12); color: var(--ink-soft); }#dashboard-section .badge.emergency { background: rgba(192,21,47,0.12); color: var(--critical); }#dashboard-section .badge.urgent { background: rgba(224,144,44,0.12); color: var(--warning); }#dashboard-section .badge.normal { background: rgba(46,158,91,0.12); color: var(--success); }#dashboard-section .filter-chip {
    padding: 7px 14px;
    border-radius: 100px;
    border: 1px solid var(--border);
    font-size: 12.5px;
    font-weight: 600;
    background: var(--surface);
    margin-right: 8px;
  }#dashboard-section .filter-chip.active { background: var(--primary); color: white; border-color: var(--primary); }#dashboard-section .fab {
    position: fixed;
    bottom: 28px; right: 36px;
    background: var(--primary);
    color: white;
    border: none;
    padding: 14px 22px;
    border-radius: 100px;
    font-weight: 700;
    font-size: 13px;
    box-shadow: 0 4px 14px rgba(175,16,26,0.35);
  }#dashboard-section .empty-state {
    text-align: center;
    color: var(--ink-soft);
    padding: 60px 20px;
    font-size: 14px;
  }#dashboard-section .modal-overlay {
    display: none;
    position: fixed; inset: 0;
    background: rgba(32,20,21,0.4);
    align-items: center; justify-content: center;
    z-index: 100;
    padding: 20px;
  }#dashboard-section .modal {
    background: var(--surface);
    border-radius: 16px;
    padding: 26px;
    width: 100%; max-width: 440px;
    max-height: 85vh;
    overflow-y: auto;
  }#dashboard-section .modal h3 { font-size: 18px; margin-bottom: 18px; }#dashboard-section .modal .field { margin-bottom: 14px; }#dashboard-section .modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }#dashboard-section .modal-actions button { width: auto; margin-top: 0; padding: 10px 18px; }#dashboard-section .donor-result {
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    margin-bottom: 6px;
    cursor: pointer;
    font-size: 13.5px;
  }#dashboard-section .donor-result:hover { border-color: var(--primary); }#dashboard-section .chip-select {
    display: flex; flex-wrap: wrap; gap: 8px;
  }#dashboard-section .chip-option {
    padding: 7px 14px;
    border-radius: 100px;
    border: 1px solid var(--border);
    font-size: 12.5px;
    font-weight: 600;
    background: var(--surface);
  }#dashboard-section .chip-option.selected { background: var(--primary); color: white; border-color: var(--primary); }#dashboard-section select.role-select {
    padding: 7px 10px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--surface);
  }#dashboard-section .mobile-topbar { display: none; }@media (max-width: 860px) {#dashboard-section .sidebar { display: none; }#dashboard-section .mobile-topbar {
      display: flex; align-items: center; justify-content: space-between;
      background: var(--sidebar); color: white; padding: 14px 18px;
    }#dashboard-section .mobile-nav {
      display: flex; overflow-x: auto; gap: 6px;
      padding: 10px 12px; background: var(--surface); border-bottom: 1px solid var(--border);
    }#dashboard-section .mobile-nav .nav-item { border-left: none; border-radius: 100px; padding: 8px 14px; color: var(--ink-soft); white-space: nowrap; }#dashboard-section .mobile-nav .nav-item.active { background: var(--primary); color: white; }#dashboard-section .main { padding: 20px 16px; }#dashboard-section .shell { flex-direction: column; }#dashboard-section .dashboard-charts-grid { grid-template-columns: 1fr; }}

/* ---------- Media section ---------- */
#dashboard-section .media-tabs { display: flex; gap: 8px; margin-bottom: 20px; }
#dashboard-section .media-tab {
  padding: 9px 18px; border-radius: 100px; border: 1px solid var(--border);
  background: var(--surface); color: var(--ink-soft); font-size: 13px; font-weight: 600;
}
#dashboard-section .media-tab.active { background: var(--primary); color: white; border-color: var(--primary); }
#dashboard-section .upload-dropzone {
  border: 2px dashed var(--border); border-radius: 14px; padding: 32px; text-align: center;
  color: var(--ink-soft); margin-bottom: 20px; cursor: pointer; transition: border-color .15s ease;
}
#dashboard-section .upload-dropzone:hover { border-color: var(--primary); }
#dashboard-section .photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; }
#dashboard-section .photo-card { background: var(--surface); border-radius: 12px; overflow: hidden; }
#dashboard-section .photo-card img { width: 100%; height: 120px; object-fit: cover; display: block; }
#dashboard-section .photo-card-body { padding: 10px 12px; }
#dashboard-section .photo-caption { font-size: 12px; color: var(--ink-soft); margin-bottom: 8px; min-height: 16px; }
#dashboard-section .photo-actions { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
#dashboard-section .toggle-label { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--ink-soft); cursor: pointer; }
#dashboard-section .article-row {
  background: var(--surface); border-radius: 12px; padding: 16px 18px; margin-bottom: 10px;
  display: flex; align-items: center; gap: 14px;
}
#dashboard-section .article-cover { width: 56px; height: 56px; border-radius: 10px; object-fit: cover; background: var(--surface-2); flex-shrink: 0; }
#dashboard-section .article-row h3 { font-family: 'Inter', sans-serif; font-size: 14.5px; font-weight: 600; }
#dashboard-section .status-pill { font-size: 10px; font-weight: 700; padding: 3px 10px; border-radius: 100px; text-transform: uppercase; }
#dashboard-section .status-pill.published { background: rgba(74,222,128,0.15); color: var(--success); }
#dashboard-section .status-pill.draft { background: rgba(240,166,76,0.15); color: var(--warning); }

/* Editor modal (wider than the standard modal) */
#dashboard-section .editor-modal { max-width: 720px; width: 92vw; }
#dashboard-section .cover-picker { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
#dashboard-section .cover-pick-thumb { width: 56px; height: 56px; border-radius: 8px; object-fit: cover; cursor: pointer; border: 2px solid transparent; opacity: 0.7; }
#dashboard-section .cover-pick-thumb.selected { border-color: var(--primary); opacity: 1; }
#dashboard-section .ql-toolbar.ql-snow { border-color: var(--border); background: var(--surface); border-radius: 10px 10px 0 0; }
#dashboard-section .ql-container.ql-snow { border-color: var(--border); border-radius: 0 0 10px 10px; background: rgba(32,20,21,0.015); min-height: 200px; }
#dashboard-section .ql-editor { color: var(--ink); min-height: 200px; }
#dashboard-section .ql-snow .ql-stroke { stroke: var(--ink-soft); }
#dashboard-section .ql-snow .ql-picker { color: var(--ink-soft); }
#dashboard-section .ql-editor.ql-blank::before { color: rgba(32,20,21,0.35); }
