/* ==========================================================
   BLOOD DONATION & EMERGENCY DONOR FINDER - STYLES
   Red & white theme, rounded cards, hover effects, animations
   ========================================================== */

/* ---------- 1. COLOR VARIABLES (change the theme here) ---------- */
:root {
    --red: #c8102e;          /* main brand red */
    --red-dark: #8f0b21;     /* hover / headings */
    --red-soft: #f9dce3;     /* light pink backgrounds */
    --red-tint: #fff0f3;     /* very light section background */
    --white: #ffffff;
    --ink: #1d1416;          /* main text */
    --muted: #6b5d61;        /* secondary text */
    --line: #f3d3da;         /* borders */
    --green: #187a4e;
    --green-soft: #e3f4eb;
    --amber: #8f0b21;
    --amber-soft: #fce4ea;
    --blue: #8f0b21;

    --radius: 18px;
    --radius-sm: 12px;
    --shadow: 0 6px 24px rgba(143, 11, 33, 0.08);
    --shadow-hover: 0 14px 36px rgba(143, 11, 33, 0.16);
    --nav-height: 70px;
}

/* ---------- 2. RESET & BASE ---------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Plus Jakarta Sans", system-ui, sans-serif;
    color: var(--ink);
    background: var(--white);
    line-height: 1.6;
    padding-top: var(--nav-height); /* space for the fixed navbar */
}

img { max-width: 100%; }

/* Elements with the "hidden" attribute stay hidden even if a class sets display */
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.container {
    width: min(1180px, 100% - 32px); /* 16px gutter on phones */
    margin-inline: auto;
}

.section {
    padding: 80px 0;
}

.section-tint {
    background: var(--red-tint);
}

.section-head {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 48px;
}

.section-head h2 {
    font-size: clamp(1.7rem, 3vw, 2.4rem);
    margin-bottom: 10px;
}

.section-head p {
    color: var(--muted);
}

.eyebrow {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--red);
    background: var(--red-soft);
    padding: 6px 14px;
    border-radius: 999px;
    margin-bottom: 14px;
}

/* ---------- 3. BUTTONS ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 24px;
    border-radius: 999px;
    border: 2px solid transparent;
    font: inherit;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s, color 0.2s;
    white-space: nowrap;
}

.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

.btn-primary {
    background: var(--red);
    color: var(--white);
    box-shadow: 0 8px 20px rgba(200, 16, 46, 0.3);
}
.btn-primary:hover { background: var(--red-dark); }

.btn-outline {
    background: var(--white);
    color: var(--red);
    border-color: var(--red);
}
.btn-outline:hover { background: var(--red-soft); }

.btn-light {
    background: var(--red-soft);
    color: var(--red-dark);
}
.btn-light:hover { background: #f9d9de; }

.btn-white {
    background: var(--white);
    color: var(--red);
}

.btn-sm { padding: 8px 16px; font-size: 0.85rem; }
.btn-block { width: 100%; }

.btn-danger-text {
    background: none;
    border: none;
    color: var(--muted);
    font: inherit;
    font-size: 0.85rem;
    cursor: pointer;
    text-decoration: underline;
}
.btn-danger-text:hover { color: var(--red); }

/* ---------- 4. NAVBAR (sticky) ---------- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: box-shadow 0.3s;
}

.navbar.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.nav-inner {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 1.15rem;
}

.logo-drop {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    background: var(--red);
    border-radius: 50% 50% 50% 0;   /* drop shape */
    transform: rotate(-45deg);
}

.logo-drop span {
    transform: rotate(45deg);
    color: var(--white);
    font-size: 0.8rem;
    font-weight: 800;
}

.logo b { color: var(--red); }

.nav-links {
    display: flex;
    align-items: center;
    gap: 6px;
    list-style: none;
}

.nav-links a {
    display: block;
    padding: 9px 16px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--muted);
    transition: background 0.2s, color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--red);
    background: var(--red-soft);
}

.nav-links a.nav-emergency {
    background: var(--red);
    color: var(--white);
}
.nav-links a.nav-emergency:hover,
.nav-links a.nav-emergency.active {
    background: var(--red-dark);
    color: var(--white);
}

/* Hamburger button (only visible on mobile) */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    width: 42px;
    height: 42px;
    cursor: pointer;
    border-radius: 10px;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    margin: 5px auto;
    background: var(--ink);
    border-radius: 2px;
    transition: transform 0.3s, opacity 0.3s;
}

.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- 5. HERO ---------- */
.hero {
    position: relative;
    overflow: hidden;
    padding: 70px 0 90px;
    background:
        radial-gradient(circle at 85% 20%, #ffe1e6 0, transparent 40%),
        radial-gradient(circle at 10% 90%, #fff0f2 0, transparent 35%),
        var(--white);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    align-items: center;
    gap: 48px;
}

.hero h1 {
    font-size: clamp(2.2rem, 5vw, 3.6rem);
    font-weight: 800;
    margin-bottom: 18px;
}

.hero h1 span { color: var(--red); }

.hero-text > p {
    font-size: 1.1rem;
    color: var(--muted);
    max-width: 520px;
    margin-bottom: 28px;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 32px;
}

/* Quick search box: blood group + state on row 1, city search + city on row 2 */
.quick-search {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    background: var(--white);
    padding: 10px;
    border-radius: 20px;
    box-shadow: var(--shadow-hover);
    border: 1px solid var(--line);
    max-width: 560px;
}

.quick-search select,
.quick-search input {
    border: 1px solid var(--line);
    background: var(--red-tint);
    border-radius: 14px;
    padding: 12px 14px;
    font: inherit;
    font-size: 0.95rem;
    min-width: 0;
}

.quick-search select:focus,
.quick-search input:focus {
    outline: 2px solid var(--red);
    outline-offset: 1px;
}

.quick-search .btn { grid-column: 1 / -1; }

/* Hero visual: big pulsing drop + floating cards */
.hero-visual {
    position: relative;
    height: 400px;
    display: grid;
    place-items: center;
}

.big-drop {
    width: 220px;
    height: 220px;
    background: linear-gradient(145deg, #e8213f, var(--red-dark));
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    box-shadow: 0 30px 60px rgba(200, 16, 46, 0.35);
    display: grid;
    place-items: center;
    animation: heartbeat 2.4s ease-in-out infinite;
}

.big-drop svg {
    transform: rotate(45deg);
    width: 90px;
    height: 90px;
}

.pulse-ring {
    position: absolute;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    border: 2px solid var(--red);
    opacity: 0;
    animation: ripple 3s ease-out infinite;
}
.pulse-ring.delay { animation-delay: 1.5s; }

.float-card {
    position: absolute;
    background: var(--white);
    border-radius: 16px;
    padding: 12px 16px;
    box-shadow: var(--shadow-hover);
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.85rem;
    animation: float 5s ease-in-out infinite;
}

.float-card strong { display: block; font-size: 0.95rem; }
.float-card small { color: var(--muted); }
.float-card.one { top: 30px; left: 0; }
.float-card.two { bottom: 40px; right: 0; animation-delay: 1.2s; }

/* ---------- 6. STATS ---------- */
.stats {
    margin-top: -50px;
    position: relative;
    z-index: 2;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.stat-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 26px;
    box-shadow: var(--shadow);
    border: 1px solid var(--line);
    transition: transform 0.25s, box-shadow 0.25s;
}

.stat-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
}

.stat-icon {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: var(--red-soft);
    color: var(--red);
    margin-bottom: 14px;
}

.stat-icon svg { width: 24px; height: 24px; }

.stat-number {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--red);
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.stat-label {
    color: var(--muted);
    font-weight: 600;
    margin-top: 6px;
}

/* ---------- 7. HOW IT WORKS ---------- */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    counter-reset: step;
}

.step-card {
    position: relative;
    background: var(--white);
    border-radius: var(--radius);
    padding: 34px 28px 28px;
    box-shadow: var(--shadow);
    transition: transform 0.25s, box-shadow 0.25s;
}

.step-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
}

.step-card::before {
    counter-increment: step;
    content: "0" counter(step);
    position: absolute;
    top: 18px;
    right: 24px;
    font-size: 2.6rem;
    font-weight: 800;
    color: var(--red-soft);
}

.step-icon {
    width: 58px;
    height: 58px;
    border-radius: 18px;
    background: var(--red);
    color: var(--white);
    display: grid;
    place-items: center;
    margin-bottom: 18px;
    box-shadow: 0 10px 20px rgba(200, 16, 46, 0.25);
}

.step-icon svg { width: 28px; height: 28px; }
.step-card h3 { margin-bottom: 8px; }
.step-card p { color: var(--muted); }

/* ---------- 8. BLOOD GROUP CARDS ---------- */
.blood-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.blood-card {
    display: block;
    background: var(--white);
    border: 2px solid var(--line);
    border-radius: var(--radius);
    padding: 22px;
    transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s, background 0.25s;
    cursor: pointer;
}

.blood-card:hover {
    transform: translateY(-6px) scale(1.02);
    border-color: var(--red);
    box-shadow: var(--shadow-hover);
}

.blood-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.blood-type {
    font-size: 2rem;
    font-weight: 800;
    color: var(--red);
}

.donor-count {
    font-size: 0.8rem;
    font-weight: 700;
    background: var(--red-soft);
    color: var(--red-dark);
    padding: 4px 10px;
    border-radius: 999px;
}

.blood-card p {
    font-size: 0.85rem;
    color: var(--muted);
}

.blood-card p b { color: var(--ink); }

.blood-card .find-link {
    display: inline-block;
    margin-top: 12px;
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--red);
}

/* ---------- 9. CTA BAND ---------- */
.cta-band {
    background: linear-gradient(120deg, var(--red), var(--red-dark));
    color: var(--white);
    border-radius: 28px;
    padding: 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.cta-band h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin-bottom: 6px; }
.cta-band p { opacity: 0.9; }

/* ---------- 10. FOOTER ---------- */
.footer {
    background: var(--footer, #5e0a1b);
    color: #f9dce3;
    padding: 60px 0 24px;
    margin-top: 80px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 36px;
    margin-bottom: 36px;
}

.footer .logo { color: var(--white); margin-bottom: 12px; }
.footer p { font-size: 0.92rem; }
.footer h4 { color: var(--white); margin-bottom: 14px; }
.footer ul { list-style: none; }
.footer li { margin-bottom: 8px; font-size: 0.92rem; }
.footer li a:hover { color: var(--white); }

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
    font-size: 0.85rem;
}

/* ---------- 11. PAGE HEADER (inner pages) ---------- */
.page-header {
    background: linear-gradient(120deg, var(--red), var(--red-dark));
    color: var(--white);
    padding: 48px 0 56px;
}

.page-header h1 {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    margin-bottom: 8px;
}

.page-header p { opacity: 0.9; max-width: 640px; }

/* ---------- 12. CARDS / PANELS / FORMS ---------- */
.panel {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--line);
    padding: 28px;
}

.panel-title {
    font-size: 1.2rem;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group.full { grid-column: 1 / -1; }

.form-group label {
    font-weight: 600;
    font-size: 0.9rem;
}

.form-group label .req { color: var(--red); }

/* Small heading for a group of chips/checkboxes */
.form-group .label {
    font-weight: 600;
    font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid var(--line);
    border-radius: var(--radius-sm);
    font: inherit;
    font-size: 0.95rem;
    background: var(--white);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--red);
    box-shadow: 0 0 0 4px rgba(200, 16, 46, 0.12);
}

.form-group input[readonly] {
    background: var(--red-tint);
    color: var(--muted);
}

.form-group textarea { resize: vertical; min-height: 80px; }

.hint {
    font-size: 0.82rem;
    color: var(--muted);
}

.inline-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.inline-row input {
    flex: 1;
    min-width: 160px;
    padding: 12px 14px;
    border: 1.5px solid var(--line);
    border-radius: var(--radius-sm);
    font: inherit;
    font-size: 0.95rem;
}

.inline-row input:focus {
    outline: none;
    border-color: var(--red);
    box-shadow: 0 0 0 4px rgba(200, 16, 46, 0.12);
}

.or-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--muted);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    margin: 14px 0;
}

.or-divider::before,
.or-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--line);
}

/* Distance filter "chips" (radio buttons styled as pills) */
.chips {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.chips input { display: none; }

.chips label {
    padding: 9px 18px;
    border-radius: 999px;
    border: 1.5px solid var(--line);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
}

.chips label:hover { border-color: var(--red); color: var(--red); }

.chips input:checked + label {
    background: var(--red);
    border-color: var(--red);
    color: var(--white);
}

.location-status {
    margin-top: 12px;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    background: var(--red-tint);
    font-size: 0.88rem;
    color: var(--muted);
}

.location-status.ok { background: var(--green-soft); color: var(--green); }
.location-status.error { background: var(--red-soft); color: var(--red-dark); }

/* ---------- 12b. STATE + CITY PICKER ---------- */
/* The search box sits just above the city dropdown */
.city-search {
    background: var(--red-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%236b5d61' stroke-width='2' viewBox='0 0 24 24'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") no-repeat 12px center;
    padding-left: 36px !important;
}

select:disabled,
input:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.location-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.location-fields .form-group { gap: 6px; }

/* ---------- 13. FIND DONOR LAYOUT ---------- */
.search-panel {
    margin-top: -32px;
    position: relative;
    z-index: 5;
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 28px;
}

.results-layout {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 24px;
    margin-top: 32px;
    align-items: start;
}

.results-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
    gap: 12px;
    flex-wrap: wrap;
}

.results-head h2 { font-size: 1.3rem; }

.results-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    max-height: 560px;
    overflow-y: auto;
    padding-right: 4px;
}

.map-box {
    position: sticky; /* stays in view while the list scrolls */
    top: calc(var(--nav-height) + 16px);
    height: 560px;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--line);
    z-index: 1;
}

#map, #regMap { width: 100%; height: 100%; }

.reg-map-box {
    height: 260px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid var(--line);
    margin-top: 12px;
}

/* ---------- 14. DONOR CARD ---------- */
.donor-card {
    display: grid;
    grid-template-columns: 58px 1fr;
    gap: 14px;
    background: var(--white);
    border: 1.5px solid var(--line);
    border-radius: var(--radius);
    padding: 16px;
    transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
    cursor: pointer;
    animation: fadeUp 0.4s ease both;
}

.donor-card:hover,
.donor-card.selected {
    transform: translateY(-3px);
    border-color: var(--red);
    box-shadow: var(--shadow-hover);
}

.donor-badge {
    width: 58px;
    height: 58px;
    border-radius: 16px;
    background: var(--red);
    color: var(--white);
    display: grid;
    place-items: center;
    font-weight: 800;
    font-size: 1.15rem;
}

.donor-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 8px;
}

.donor-card h3 { font-size: 1.05rem; }

.donor-meta {
    color: var(--muted);
    font-size: 0.88rem;
    margin: 2px 0 8px;
}

.distance {
    font-weight: 800;
    color: var(--red);
    white-space: nowrap;
    font-size: 0.95rem;
}

.pill {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 999px;
}

.pill-green { background: var(--green-soft); color: var(--green); }
.pill-gray { background: #f7e6ea; color: #666; }
.pill-red { background: var(--red-soft); color: var(--red-dark); }
.pill-amber { background: var(--amber-soft); color: var(--amber); }

.donor-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 10px;
    align-items: center;
}

.donor-note {
    font-size: 0.85rem;
    color: var(--muted);
    font-style: italic;
}

/* "All donors" grid with edit/delete:
   blood group | state | search city | city | Search | Reset */
.filter-bar {
    display: grid;
    grid-template-columns: 175px 1fr 1fr 1fr auto auto;
    gap: 10px;
    margin-bottom: 20px;
}

.filter-bar select,
.filter-bar input {
    padding: 11px 14px;
    border: 1.5px solid var(--line);
    border-radius: var(--radius-sm);
    font: inherit;
    min-width: 0;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.cards-grid .donor-card { cursor: default; }

.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--muted);
    border: 2px dashed var(--line);
    border-radius: var(--radius);
}

.empty-state strong {
    display: block;
    color: var(--ink);
    font-size: 1.05rem;
    margin-bottom: 4px;
}


/* ---------- 14b. LOCATION SEARCH: donors + blood banks ---------- */

/* Checkbox with its label on one line */
.check-row {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 0.88rem;
    color: var(--muted);
    margin-top: 10px;
    cursor: pointer;
}
.check-row input { accent-color: var(--red); width: 17px; height: 17px; margin-top: 2px; flex-shrink: 0; }

.farther-chips { margin-top: 8px; align-items: center; }
.show-row { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.show-row .check-row { margin-top: 4px; color: var(--ink); font-weight: 600; }

.result-tabs { margin-bottom: 14px; flex-wrap: wrap; border-radius: 18px; }
.result-tabs button span {
    font-variant-numeric: tabular-nums;
    background: var(--red-soft);
    color: var(--red-dark);
    border-radius: 999px;
    padding: 0 7px;
    margin-left: 4px;
    font-size: 0.78rem;
}

/* "No donors within 50 km" message with expand buttons */
.notice {
    background: var(--amber-soft);
    border: 1px solid #f2bcc8;
    color: #8f0b21;
    border-radius: var(--radius-sm);
    padding: 14px 16px;
    margin-bottom: 14px;
    font-size: 0.92rem;
}
.notice strong { display: block; color: var(--ink); margin-bottom: 4px; }
.notice .inline-row { margin-top: 10px; gap: 8px; }

/* Blood bank result card */
.bank-badge {
    width: 58px;
    height: 58px;
    border-radius: 16px;
    background: var(--white);
    border: 2px solid var(--red);
    color: var(--red);
    display: grid;
    place-items: center;
}
.bank-badge svg { width: 28px; height: 28px; }

.pill-blue { background: #e3f4eb; color: #187a4e; }

.bank-address { font-size: 0.86rem; color: var(--muted); margin: 2px 0 6px; overflow-wrap: anywhere; }
.bank-contacts { font-size: 0.86rem; margin-top: 6px; display: grid; gap: 2px; overflow-wrap: anywhere; }
.bank-contacts a { color: var(--red-dark); font-weight: 600; }
.stock-note { font-size: 0.8rem; color: var(--muted); margin-top: 6px; }
.stock-note a { color: var(--red); font-weight: 700; }
.card-pills { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 4px; }

.dir-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--blue);
}
.dir-link:hover { text-decoration: underline; }

/* Map legend sits on top of the map */
.map-legend {
    position: absolute;
    left: 10px;
    bottom: 10px;
    z-index: 800;
    display: flex;
    flex-wrap: wrap;
    gap: 6px 14px;
    background: rgba(255, 255, 255, 0.92);
    border-radius: 12px;
    padding: 6px 12px;
    font-size: 0.78rem;
    color: var(--muted);
    max-width: calc(100% - 90px);
}
.map-legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend-dot { width: 11px; height: 11px; border-radius: 50%; display: inline-block; }
.legend-bank { border-radius: 3px; background: var(--white); border: 2px solid var(--red); }

.bank-pin {
    width: 26px;
    height: 26px;
    border-radius: 7px;
    background: var(--white);
    border: 2px solid var(--red);
    color: var(--red);
    display: grid;
    place-items: center;
    font-weight: 800;
    font-size: 15px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.25);
}


/* ---------- 14c. PLACE SEARCH + GPS ---------- */
.place-search { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; position: relative; }

/* Let the search panels shrink on small phones instead of overflowing */
.search-panel > *,
.results-layout > * { min-width: 0; }

.place-search-row { display: flex; gap: 8px; }
.place-search-row input {
    flex: 1;
    min-width: 0;
    padding: 12px 14px;
    border: 1.5px solid var(--line);
    border-radius: var(--radius-sm);
    font: inherit;
    font-size: 0.95rem;
}
.place-search-row input:focus {
    outline: none;
    border-color: var(--red);
    box-shadow: 0 0 0 4px rgba(200, 16, 46, 0.12);
}

/* Search results list under the search box */
.place-results {
    list-style: none;
    border: 1.5px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--white);
    box-shadow: var(--shadow-hover);
    max-height: 320px;
    overflow-y: auto;
}
.place-results li + li { border-top: 1px solid var(--line); }
.place-results .group-title {
    padding: 8px 14px 4px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
    background: var(--red-tint);
}
.place-results button {
    display: grid;
    grid-template-columns: 28px 1fr;
    gap: 10px;
    width: 100%;
    text-align: left;
    padding: 10px 14px;
    border: none;
    background: none;
    font: inherit;
    cursor: pointer;
}
.place-results button:hover,
.place-results button:focus-visible { background: var(--red-soft); outline: none; }
.place-results .result-icon { font-size: 1.1rem; line-height: 1.4; }
.place-results strong { display: block; font-size: 0.92rem; }
.place-results small { display: block; color: var(--muted); font-size: 0.8rem; overflow-wrap: anywhere; }
.place-results .message { padding: 12px 14px; font-size: 0.88rem; color: var(--muted); }
.place-results .message.error { color: var(--red-dark); background: var(--red-soft); }

/* Address of the selected point */
.place-info {
    margin-top: 12px;
    border: 1.5px solid var(--line);
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    font-size: 0.86rem;
}
.place-info h3 { font-size: 0.95rem; margin-bottom: 6px; }
.place-info dl { display: grid; grid-template-columns: auto 1fr; gap: 3px 12px; }
.place-info dt { color: var(--muted); }
.place-info dd { overflow-wrap: anywhere; font-weight: 600; }
.place-info .hint { display: block; margin-top: 6px; }

/* Marker for a searched place / clicked point */
.search-pin {
    width: 30px;
    height: 30px;
    background: var(--blue);
    border: 3px solid var(--white);
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}


/* ---------- 14d. DEMO RECORDS ---------- */
/* Fictional sample data: grey, dashed and clearly labelled */
.pill-demo {
    background: #8f0b21;
    color: var(--white);
    letter-spacing: 0.04em;
}
.donor-card.is-demo,
.request-card.is-demo { border-style: dashed; }
.donor-card.is-demo .donor-badge { background: #6b5d61; }

.demo-phone {
    font-size: 0.82rem;
    color: var(--muted);
    background: var(--red-tint);
    border: 1px dashed var(--line);
    border-radius: 999px;
    padding: 5px 12px;
}

.donor-pin.demo {
    background: #6b5d61;
    border-style: dashed;
}
.legend-demo { background: #6b5d61; border: 1px dashed var(--white); outline: 1px solid #6b5d61; }

/* Donor list: the text search takes the whole first row */
.filter-bar .filter-search { grid-column: 1 / -1; }
.demo-note { text-align: center; margin-top: 14px; }


/* ---------- 14e. EDUCATIONAL DEMO PROFILES ---------- */
.edu-panel {
    background: var(--white);
    border: 1.5px solid var(--line);
    border-left: 6px solid var(--blue);
    border-radius: var(--radius);
    padding: 20px 24px;
    margin-bottom: 24px;
    box-shadow: var(--shadow);
}
.edu-panel h3 { margin-bottom: 10px; }
.edu-panel ul { padding-left: 20px; display: grid; gap: 8px; font-size: 0.92rem; color: var(--ink); }

.profile-filter { grid-template-columns: 1fr auto auto; }

.pill-purple { background: #f9dce3; color: #8f0b21; }

/* Blood group badge: colour by category, smaller text for "Rh-null" */
.profile-badge { font-size: 1rem; text-align: center; line-height: 1.1; padding: 2px; }
.donor-card.is-demo .profile-badge.universal-donor { background: #187a4e; }
.donor-card.is-demo .profile-badge.universal-recipient { background: #8f0b21; }
.donor-card.is-demo .profile-badge.rare { background: #8f0b21; font-size: 0.82rem; }

/* Wider cards: these profiles have more text */
#profileCards { grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); }

.lab-note {
    margin-top: 6px;
    font-size: 0.85rem;
    font-weight: 700;
    color: #8f0b21;
}
.text-link { color: var(--red); font-weight: 700; }
.text-link:hover { text-decoration: underline; }


/* ---------- 14f. BLOOD DONATION CAMPS ---------- */
.camp-cta { margin-top: 20px; background: linear-gradient(120deg, #187a4e, #146a44); }

/* Date badge on each camp card: month + day */
.camp-date-badge {
    width: 58px;
    height: 58px;
    border-radius: 16px;
    background: var(--red-soft);
    color: var(--red-dark);
    display: grid;
    place-items: center;
    align-content: center;
    line-height: 1.05;
    text-transform: uppercase;
}
.camp-date-badge span { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.06em; }
.camp-date-badge b { font-size: 1.35rem; }
.camp-card.status-completed, .camp-card.status-cancelled { opacity: 0.75; }

/* Status pills */
.camp-status.upcoming { background: #f9dce3; color: #8f0b21; }
.camp-status.ongoing { background: var(--green-soft); color: var(--green); }
.camp-status.completed { background: var(--gray-soft, #f7e6ea); color: var(--muted); }
.camp-status.cancelled { background: var(--red-soft); color: var(--red-dark); text-decoration: line-through; }

/* Map markers: ongoing = green + pulse, upcoming = red, others = grey */
.camp-pin {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 3px solid var(--white);
    display: grid;
    place-items: center;
    font-size: 15px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
    background: var(--red);
}
.camp-pin.ongoing { background: var(--green); animation: campPulse 1.6s infinite; }
.camp-pin.completed, .camp-pin.cancelled { background: #d8a3b0; }
@keyframes campPulse {
    0% { box-shadow: 0 0 0 0 rgba(30, 138, 90, 0.55); }
    100% { box-shadow: 0 0 0 14px rgba(30, 138, 90, 0); }
}

/* Organiser review (admin) */
.admin-panel summary { cursor: pointer; }
.admin-panel input[type="password"], .admin-camp input {
    padding: 10px 12px;
    border: 1.5px solid var(--line);
    border-radius: var(--radius-sm);
    font: inherit;
    min-width: 0;
}
.admin-list { display: grid; gap: 14px; margin-top: 16px; }

/* Long buttons may wrap, and form fields may shrink on small phones */
.btn-wrap { white-space: normal; text-align: center; }
.form-grid > * { min-width: 0; }
.admin-camp { border: 1.5px solid var(--line); border-radius: var(--radius-sm); padding: 14px; display: grid; gap: 8px; }

/* ---------- 14g. CAMP TRACKER: PIN search, hospitals, details window ---------- */
.field-msg { margin-top: 8px; font-size: .86rem; padding: 8px 12px; border-radius: var(--radius-sm); }
.field-msg.error { background: var(--red-soft); color: var(--red-dark); }
.field-msg.ok { background: var(--green-soft); color: var(--green); }
.bank-pin.hospital-pin { border-color: #8f0b21; color: #8f0b21; }
.bank-badge.hospital-badge { border-color: #8f0b21; color: #8f0b21; background: #f9dce3; }
.bank-badge.text-badge { font-weight: 800; font-size: 1.4rem; }
.pill-hospital { background: #f9dce3; color: #8f0b21; }
.legend-bank-sq, .legend-hosp-sq { border-radius: 3px !important; background: var(--white) !important; border: 2px solid var(--red); }
.legend-hosp-sq { border-color: #8f0b21; }
.map-popup { font-size: .85rem; line-height: 1.45; }
.popup-demo { color: var(--red-dark); font-size: .75rem; }
.popup-actions { display: flex; gap: 12px; align-items: center; margin-top: 8px; flex-wrap: wrap; }
.popup-btn { background: var(--red); color: var(--white); border: none; border-radius: 999px; padding: 5px 12px; font-weight: 700; font-size: .8rem; cursor: pointer; }
.camp-status-text.ongoing { color: var(--green); font-weight: 700; }
.camp-status-text.upcoming { color: #8f0b21; font-weight: 700; }
.modal-backdrop { position: fixed; inset: 0; background: rgba(26, 15, 18, .55); z-index: 3000; display: grid; place-items: center; padding: 16px; }
.modal-box { position: relative; background: var(--white); border-radius: 22px; max-width: 560px; width: 100%; max-height: calc(100vh - 32px); overflow-y: auto; padding: 28px 24px 24px; box-shadow: 0 30px 80px rgba(0, 0, 0, .3); }
.modal-box h2 { font-size: 1.3rem; margin: 10px 0 14px; padding-right: 30px; }
.modal-close { position: absolute; top: 12px; right: 14px; width: 36px; height: 36px; border-radius: 50%; border: none; background: var(--red-soft); color: var(--red-dark); font-size: 1.4rem; cursor: pointer; line-height: 1; }
.detail-list { display: grid; margin: 0 0 14px; }
.detail-row { display: grid; grid-template-columns: 120px 1fr; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: .92rem; }
.detail-row dt { color: var(--muted); font-weight: 700; }
.detail-row dd { margin: 0; overflow-wrap: anywhere; }
body.modal-open { overflow: hidden; }
@media (max-width: 520px) { .detail-row { grid-template-columns: 1fr; gap: 2px; } }

/* ---------- 15. EMERGENCY ---------- */
.emergency-layout {
    margin-top: -32px;
    position: relative;
    z-index: 5;
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 28px;
    align-items: start;
}

.tabs {
    display: flex;
    gap: 6px;
    background: var(--red-tint);
    padding: 5px;
    border-radius: 999px;
}

.tabs button {
    border: none;
    background: none;
    font: inherit;
    font-weight: 600;
    font-size: 0.88rem;
    padding: 7px 16px;
    border-radius: 999px;
    cursor: pointer;
    color: var(--muted);
}

.tabs button.active {
    background: var(--white);
    color: var(--red);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.request-card {
    background: var(--white);
    border: 1.5px solid var(--line);
    border-left: 6px solid var(--amber);
    border-radius: var(--radius);
    padding: 18px;
    transition: transform 0.2s, box-shadow 0.2s;
    animation: fadeUp 0.4s ease both;
}

.request-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.request-card.critical { border-left-color: var(--red); }
.request-card.normal { border-left-color: var(--blue); }
.request-card.fulfilled { opacity: 0.65; border-left-color: var(--green); }

.request-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 10px;
}

.request-blood {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--red);
    line-height: 1;
}

.request-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px 16px;
    font-size: 0.88rem;
    color: var(--muted);
    margin: 10px 0;
}

.request-info b { color: var(--ink); }

.critical-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--red);
    margin-right: 6px;
    animation: blink 1s infinite;
}

/* ---------- 16. MAP MARKERS (Leaflet divIcon) ---------- */
.donor-pin {
    width: 36px;
    height: 36px;
    background: var(--red);
    border: 3px solid var(--white);
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    display: grid;
    place-items: center;
}

.donor-pin span {
    transform: rotate(45deg);
    color: var(--white);
    font-weight: 800;
    font-size: 0.68rem;
    font-family: "Plus Jakarta Sans", sans-serif;
}

.donor-pin.unavailable { background: #d8a3b0; }

.user-dot {
    width: 18px;
    height: 18px;
    background: var(--blue);
    border: 3px solid var(--white);
    border-radius: 50%;
    box-shadow: 0 0 0 6px rgba(200, 16, 46, 0.22);
}

.leaflet-popup-content { font-family: "Plus Jakarta Sans", sans-serif; }

/* ---------- 17. TOAST MESSAGE ---------- */
.toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translate(-50%, 120px);
    background: var(--ink);
    color: var(--white);
    padding: 14px 22px;
    border-radius: 14px;
    font-weight: 600;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    z-index: 2000;
    transition: transform 0.35s ease;
    max-width: calc(100% - 32px);
}

.toast.show { transform: translate(-50%, 0); }
.toast.success { background: var(--green); }
.toast.error { background: var(--red); }

/* Loading spinner */
.spinner {
    width: 18px;
    height: 18px;
    border: 3px solid rgba(255, 255, 255, 0.4);
    border-top-color: var(--white);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* ---------- 18. ANIMATIONS ---------- */
/* Elements with class "reveal" fade in when scrolled into view (see common.js) */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes heartbeat {
    0%, 100% { transform: rotate(-45deg) scale(1); }
    15% { transform: rotate(-45deg) scale(1.06); }
    30% { transform: rotate(-45deg) scale(1); }
    45% { transform: rotate(-45deg) scale(1.04); }
}

@keyframes ripple {
    0% { transform: scale(0.8); opacity: 0.6; }
    100% { transform: scale(1.6); opacity: 0; }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

@keyframes blink {
    50% { opacity: 0.2; }
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Respect users who prefer less motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation: none !important;
        transition: none !important;
    }
    .reveal { opacity: 1; transform: none; }
}

/* ---------- 19. RESPONSIVE (tablets & phones) ---------- */
@media (max-width: 1100px) {
    .filter-bar { grid-template-columns: 1fr 1fr 1fr; }
}

@media (max-width: 960px) {
    .hero-grid,
    .search-panel,
    .results-layout,
    .emergency-layout {
        grid-template-columns: 1fr;
    }

    .hero-visual { height: 300px; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .steps-grid { grid-template-columns: 1fr; }
    .blood-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }

    /* On small screens show the map ABOVE the list */
    .map-box { position: relative; top: 0; height: 360px; order: -1; }
    .results-list { max-height: none; }
}

@media (max-width: 760px) {
    /* Mobile menu: links slide down from the navbar */
    .nav-toggle { display: block; }

    .nav-links {
        position: fixed;
        top: var(--nav-height);
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        background: var(--white);
        padding: 12px 16px 20px;
        box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
        transform: translateY(-130%);
        transition: transform 0.35s ease;
        z-index: -1;
    }

    .nav-links.open { transform: translateY(0); }
    .nav-links a { padding: 12px 16px; }

    .section { padding: 56px 0; }
    .hero { padding: 40px 0 80px; }
    .hero-visual { display: none; }

    .quick-search { grid-template-columns: 1fr; }
    /* 16px text stops iPhones zooming in when a field is tapped */
    .quick-search select, .quick-search input,
    .form-group input, .form-group select, .filter-bar select, .filter-bar input { font-size: 16px; }
    .form-grid { grid-template-columns: 1fr; }
    .filter-bar { grid-template-columns: 1fr 1fr; }
    .location-fields { grid-template-columns: 1fr; }
    .profile-filter { grid-template-columns: 1fr 1fr; }
    .profile-filter select { grid-column: 1 / -1; }
    .footer-grid { grid-template-columns: 1fr; }
    .cta-band { padding: 32px 24px; }
    .panel { padding: 20px; }
}

@media (max-width: 420px) {
    .stats-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
    .stat-card { padding: 18px; }
    .stat-number { font-size: 1.7rem; }
    .blood-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
    .blood-card { padding: 16px; }
    .request-info { grid-template-columns: 1fr; }
}

/* ==========================================================
   20. LOGIN, REGISTRATION, WELCOME AND DASHBOARD
   ========================================================== */

/* ----- Welcome page ----- */
.welcome-hero {
    position: relative;
    overflow: hidden;
    padding: 64px 0 80px;
    background:
        radial-gradient(circle at 88% 12%, #ffe1e6 0, transparent 42%),
        radial-gradient(circle at 6% 92%, #fff0f2 0, transparent 38%),
        var(--red-tint);
}
.welcome-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.welcome-text h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); font-weight: 800; line-height: 1.12; margin: 12px 0 14px; }
.welcome-text h1 span { color: var(--red); }
.tagline { font-size: clamp(1.15rem, 2.2vw, 1.45rem); font-weight: 700; color: var(--red-dark); margin-bottom: 14px; }
.welcome-text > p { color: var(--muted); font-size: 1.05rem; max-width: 540px; margin-bottom: 28px; }
.welcome-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.welcome-actions .btn { min-width: 170px; padding: 15px 28px; font-size: 1rem; }
.guest-link { display: inline-block; margin-top: 18px; color: var(--muted); font-weight: 600; font-size: .92rem; text-decoration: underline; text-underline-offset: 3px; }
.guest-link:hover { color: var(--red); }
.welcome-art { position: relative; display: grid; place-items: center; min-height: 360px; }
.welcome-art svg { width: min(100%, 380px); height: auto; filter: drop-shadow(0 24px 40px rgba(200, 16, 46, .22)); }
.welcome-badge {
    position: absolute; background: var(--white); border-radius: 16px; padding: 10px 14px;
    box-shadow: var(--shadow); font-size: .85rem; font-weight: 700; display: flex; gap: 8px; align-items: center;
}
.welcome-badge.one { top: 8%; left: 0; }
.welcome-badge.two { bottom: 10%; right: 0; }
.welcome-badge small { display: block; color: var(--muted); font-weight: 500; }
.role-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.role-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.role-card .role-icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; font-size: 1.5rem; background: var(--red-soft); margin-bottom: 14px; }
.role-card h3 { margin-bottom: 8px; }
.role-card ul { padding-left: 18px; color: var(--muted); font-size: .92rem; display: grid; gap: 4px; }

/* ----- Login / registration layout ----- */
.auth-page { background: var(--red-tint); min-height: 100vh; }
.auth-shell {
    display: grid; grid-template-columns: 0.85fr 1.15fr; max-width: 1080px; margin: 40px auto; background: var(--white);
    border-radius: 28px; overflow: hidden; box-shadow: 0 30px 70px rgba(143, 11, 33, .12);
}
.auth-shell.narrow { grid-template-columns: 0.85fr 1fr; max-width: 920px; }
.auth-side {
    background: linear-gradient(150deg, var(--red), var(--red-dark)); color: var(--white); padding: 44px 36px;
    display: flex; flex-direction: column; gap: 18px; position: relative; overflow: hidden;
}
.auth-side::after {
    content: ""; position: absolute; width: 280px; height: 280px; border-radius: 50%; right: -90px; bottom: -90px;
    background: rgba(255, 255, 255, .08);
}
.auth-side h2 { font-size: 1.7rem; line-height: 1.2; }
.auth-side p { opacity: .9; }
.auth-side ul { list-style: none; display: grid; gap: 10px; padding: 0; }
.auth-side li { display: flex; gap: 10px; align-items: flex-start; }
.auth-side li::before { content: "✓"; font-weight: 800; background: rgba(255, 255, 255, .18); border-radius: 50%; width: 22px; height: 22px; flex: none; display: grid; place-items: center; font-size: .75rem; }
.auth-side .side-drop { width: 86px; height: 86px; }
.auth-main { padding: 40px 44px; }
.auth-main h1 { font-size: 1.75rem; margin-bottom: 6px; }
.auth-main .sub { color: var(--muted); margin-bottom: 22px; }
.auth-switch { text-align: center; margin-top: 18px; color: var(--muted); font-size: .95rem; }
.auth-switch a, .text-link-red { color: var(--red); font-weight: 700; }
.auth-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin: 4px 0 18px; font-size: .92rem; }
.auth-form { display: grid; gap: 16px; }
.auth-form .form-grid { margin: 0; }
.password-wrap { position: relative; display: flex; }
.password-wrap input { flex: 1; padding-right: 74px !important; }
.pw-toggle {
    position: absolute; right: 6px; top: 50%; transform: translateY(-50%); border: none; background: var(--red-soft);
    color: var(--red-dark); font-weight: 700; font-size: .8rem; padding: 6px 12px; border-radius: 999px; cursor: pointer;
}
.mobile-wrap { display: flex; align-items: stretch; }
.mobile-wrap span { display: grid; place-items: center; padding: 0 12px; background: var(--red-soft); color: var(--red-dark); font-weight: 700; border-radius: var(--radius-sm) 0 0 var(--radius-sm); border: 1.5px solid var(--line); border-right: none; }
.mobile-wrap input { flex: 1; min-width: 0; border-radius: 0 var(--radius-sm) var(--radius-sm) 0 !important; }
.field-error { color: var(--red-dark); font-size: .82rem; font-weight: 600; margin: 2px 0 0; }
.form-group input.invalid, .form-group select.invalid { border-color: var(--red) !important; background: #fff8f9; }
.form-alert { padding: 12px 16px; border-radius: var(--radius-sm); font-size: .92rem; font-weight: 600; }
.form-alert.error { background: var(--red-soft); color: var(--red-dark); border-left: 4px solid var(--red); }
.form-alert.success { background: var(--green-soft); color: var(--green); border-left: 4px solid var(--green); }
.form-alert.info { background: #fff0f3; color: #8f0b21; border-left: 4px solid var(--blue); }
.strength { display: flex; align-items: center; gap: 10px; font-size: .78rem; color: var(--muted); }
.strength-bar { flex: 1; height: 6px; border-radius: 6px; background: var(--line); position: relative; overflow: hidden; }
.strength-bar::after { content: ""; position: absolute; inset: 0; width: 0; border-radius: 6px; transition: width .25s, background .25s; }
.strength-bar.level-1::after { width: 33%; background: var(--red); }
.strength-bar.level-2::after { width: 66%; background: var(--amber); }
.strength-bar.level-3::after { width: 100%; background: var(--green); }
.role-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.role-option { position: relative; }
.role-option input { position: absolute; top: 0; left: 0; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.role-option label {
    display: grid; gap: 4px; justify-items: center; text-align: center; padding: 14px 8px; border: 2px solid var(--line);
    border-radius: var(--radius-sm); cursor: pointer; font-weight: 700; font-size: .9rem; height: 100%; transition: border-color .2s, background .2s;
}
.role-option label small { font-weight: 500; color: var(--muted); font-size: .76rem; }
.role-option label .ri { font-size: 1.5rem; }
.role-option input:checked + label { border-color: var(--red); background: var(--red-soft); }
.role-option input:focus-visible + label { outline: 3px solid rgba(200, 16, 46, .35); }
.terms-row { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; }
.terms-row input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--red); flex: none; }
.demo-auth-note { background: #fff0f3; color: #8f0b21; border: 1px dashed #f2bcc8; border-radius: var(--radius-sm); padding: 10px 14px; font-size: .85rem; }

/* ----- Dashboard ----- */
.dash-header { background: linear-gradient(120deg, var(--red), var(--red-dark)); color: var(--white); padding: 36px 0 70px; }
.dash-header-inner { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.dash-header h1 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
.dash-header p { opacity: .9; }
.role-badge { display: inline-flex; gap: 6px; align-items: center; background: rgba(255, 255, 255, .18); padding: 6px 14px; border-radius: 999px; font-weight: 700; font-size: .85rem; margin-bottom: 10px; }
.dash-body { margin-top: -44px; position: relative; z-index: 2; padding-bottom: 60px; }
.dash-tabs { display: flex; gap: 8px; background: var(--white); padding: 8px; border-radius: 999px; box-shadow: var(--shadow); width: fit-content; max-width: 100%; overflow-x: auto; margin-bottom: 22px; }
.dash-tabs button { border: none; background: none; padding: 10px 18px; border-radius: 999px; font: inherit; font-weight: 700; color: var(--muted); cursor: pointer; white-space: nowrap; }
.dash-tabs button[aria-selected="true"] { background: var(--red); color: var(--white); }
.dash-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 22px; }
.dash-stat { background: var(--white); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow); }
.dash-stat b { display: block; font-size: 1.6rem; color: var(--red); }
.dash-stat span { color: var(--muted); font-size: .88rem; font-weight: 600; }
.dash-search { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; align-items: end; }
.dash-filters { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; margin-top: 12px; }
.dash-results { display: grid; grid-template-columns: 1fr 1.1fr; gap: 20px; margin-top: 18px; align-items: start; }
.dash-list { display: grid; gap: 12px; max-height: 560px; overflow-y: auto; padding-right: 4px; }
.dash-map { height: 560px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: #fff0f3; }
.mini-map { height: 300px; border-radius: var(--radius-sm); overflow: hidden; border: 1.5px solid var(--line); background: #fff0f3; }
.profile-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 22px; align-items: start; }
.profile-card { text-align: center; }
.avatar { width: 84px; height: 84px; border-radius: 50%; background: var(--red-soft); color: var(--red); font-size: 2rem; font-weight: 800; display: grid; place-items: center; margin: 0 auto 12px; }
.profile-facts { text-align: left; margin-top: 16px; display: grid; gap: 0; }
.profile-facts div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: .92rem; }
.profile-facts dt { color: var(--muted); font-weight: 600; }
.profile-facts dd { margin: 0; font-weight: 600; text-align: right; overflow-wrap: anywhere; }
.private-note { font-size: .8rem; color: var(--muted); margin-top: 12px; }
.org-camp { border: 1.5px solid var(--line); border-radius: var(--radius-sm); padding: 14px 16px; display: grid; gap: 6px; }
.org-camp h3 { font-size: 1.02rem; }
.review-pill.pending { background: var(--amber-soft); color: var(--amber); }
.review-pill.approved { background: var(--green-soft); color: var(--green); }
.review-pill.rejected { background: var(--red-soft); color: var(--red-dark); }
.btn-danger { background: var(--white); color: var(--red-dark); border-color: #f2c4cc; }
.btn-danger.armed { background: var(--red); color: var(--white); }
.nav-account { border: 2px solid var(--red-soft); }
.loading-screen { min-height: 60vh; display: grid; place-items: center; color: var(--muted); }

@media (max-width: 960px) {
    .welcome-grid, .auth-shell, .auth-shell.narrow, .dash-results, .profile-grid { grid-template-columns: 1fr; }
    .welcome-art { min-height: 280px; order: -1; }
    .role-grid { grid-template-columns: 1fr; }
    .auth-shell { margin: 20px 16px; }
    .auth-side { padding: 28px 24px; }
    .auth-side ul, .auth-side .side-drop { display: none; }
    .dash-map { height: 380px; }
    .dash-list { max-height: none; }
}
@media (max-width: 600px) {
    .auth-main { padding: 28px 20px; }
    .role-options { grid-template-columns: 1fr; }
    .role-option label { grid-template-columns: auto 1fr; justify-items: start; text-align: left; align-items: center; column-gap: 12px; }
    .role-option label .ri { grid-row: span 2; }
    .dash-search { grid-template-columns: 1fr; }
    .dash-stats { grid-template-columns: 1fr; }
    .welcome-actions .btn { flex: 1; }
    .welcome-badge { display: none; }
}

/* ==========================================================
   21. AI ASSISTANT (chatbot) - js/chatbot.js
   ========================================================== */
.cb-root { position: fixed; right: max(20px, env(safe-area-inset-right)); bottom: max(20px, env(safe-area-inset-bottom)); z-index: 2500; font-family: inherit; }
.cb-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Round launcher button */
.cb-launcher {
    width: 60px; height: 60px; border-radius: 50%; border: none; cursor: pointer; color: #fff; display: grid; place-items: center;
    background: linear-gradient(145deg, #e8213f, var(--red-dark)); box-shadow: 0 10px 26px rgba(200, 16, 46, .38);
    transition: transform .2s, box-shadow .2s; position: relative; margin-left: auto;
}
.cb-launcher:hover { transform: translateY(-2px) scale(1.04); box-shadow: 0 14px 30px rgba(200, 16, 46, .45); }
.cb-launcher svg { width: 28px; height: 28px; position: absolute; transition: transform .25s, opacity .2s; }
.cb-launcher .cb-icon-close { opacity: 0; transform: rotate(-90deg) scale(.6); }
.cb-is-open .cb-launcher .cb-icon-chat { opacity: 0; transform: rotate(90deg) scale(.6); }
.cb-is-open .cb-launcher .cb-icon-close { opacity: 1; transform: none; }
.cb-launcher::after { /* soft pulse until the chat is used */
    content: ""; position: absolute; inset: 0; border-radius: 50%; box-shadow: 0 0 0 0 rgba(200, 16, 46, .45); animation: cbPulse 2.4s infinite;
}
.cb-is-open .cb-launcher::after { animation: none; }
@keyframes cbPulse { 0% { box-shadow: 0 0 0 0 rgba(200, 16, 46, .4); } 70%, 100% { box-shadow: 0 0 0 16px rgba(200, 16, 46, 0); } }

/* Welcome message above the button */
.cb-bubble {
    position: absolute; right: 4px; bottom: 74px; display: flex; align-items: flex-start; gap: 4px; width: max-content; max-width: min(260px, calc(100vw - 40px));
    background: #fff; border: 1px solid var(--line); border-radius: 16px 16px 4px 16px; box-shadow: 0 10px 30px rgba(29, 20, 22, .14);
    padding: 4px 4px 4px 0; opacity: 0; transform: translateY(8px) scale(.96); transform-origin: bottom right; transition: opacity .25s, transform .25s;
}
.cb-bubble.show { opacity: 1; transform: none; }
.cb-bubble-text { border: none; background: none; text-align: left; font: inherit; font-weight: 700; font-size: .92rem; color: var(--ink); padding: 10px 4px 10px 14px; cursor: pointer; line-height: 1.4; }
.cb-bubble-x { border: none; background: var(--red-soft); color: var(--red-dark); width: 24px; height: 24px; border-radius: 50%; cursor: pointer; font-size: 1rem; line-height: 1; flex: none; margin: 4px 4px 0 0; }

/* Chat window */
.cb-panel {
    position: absolute; right: 0; bottom: 76px; width: 370px; height: min(560px, calc(100vh - 120px)); display: flex; flex-direction: column;
    background: #fff; border-radius: 22px; box-shadow: 0 24px 60px rgba(29, 20, 22, .22); border: 1px solid var(--line); overflow: hidden;
    opacity: 0; visibility: hidden; transform: translateY(16px) scale(.96); transform-origin: bottom right;
    transition: opacity .22s ease, transform .22s ease, visibility 0s linear .22s;
}
.cb-panel.open { opacity: 1; visibility: visible; transform: none; transition: opacity .22s ease, transform .22s ease, visibility 0s; }
.cb-head { display: flex; align-items: center; gap: 10px; padding: 14px 12px 14px 16px; color: #fff; background: linear-gradient(120deg, var(--red), var(--red-dark)); flex: none; }
.cb-avatar { width: 38px; height: 38px; border-radius: 50%; background: rgba(255, 255, 255, .18); display: grid; place-items: center; flex: none; }
.cb-avatar svg { width: 20px; height: 20px; }
.cb-title { flex: 1; min-width: 0; }
.cb-title h2 { font-size: 1.02rem; color: #fff; margin: 0; }
.cb-title span { font-size: .75rem; opacity: .9; display: flex; align-items: center; gap: 6px; }
.cb-dot { width: 7px; height: 7px; border-radius: 50%; background: #7fd9ae; display: inline-block; }
.cb-head-btn { width: 34px; height: 34px; border-radius: 50%; border: none; background: rgba(255, 255, 255, .14); color: #fff; cursor: pointer; display: grid; place-items: center; flex: none; }
.cb-head-btn:hover { background: rgba(255, 255, 255, .26); }
.cb-head-btn svg { width: 17px; height: 17px; }

.cb-messages { flex: 1; overflow-y: auto; padding: 16px 14px 8px; background: var(--red-tint); display: flex; flex-direction: column; gap: 10px; overscroll-behavior: contain; }
.cb-msg { display: flex; flex-direction: column; max-width: 86%; animation: cbIn .2s ease; }
.cb-user { align-self: flex-end; align-items: flex-end; }
.cb-bot { align-self: flex-start; align-items: flex-start; }
@keyframes cbIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.cb-text { padding: 10px 14px; border-radius: 16px; font-size: .92rem; line-height: 1.5; overflow-wrap: anywhere; }
.cb-user .cb-text { background: var(--red); color: #fff; border-bottom-right-radius: 4px; white-space: pre-wrap; }
.cb-bot .cb-text { background: #fff; color: var(--ink); border: 1px solid var(--line); border-bottom-left-radius: 4px; box-shadow: 0 2px 8px rgba(143, 11, 33, .05); }
.cb-text p { margin: 0 0 6px; } .cb-text p:last-child { margin-bottom: 0; }
.cb-text ul { margin: 4px 0 6px; padding-left: 18px; } .cb-text li { margin: 2px 0; }
.cb-link { color: var(--red); font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.cb-error .cb-text { background: #fff8f9; border-color: #f4c3cc; color: var(--red-dark); }
.cb-retry { margin-top: 6px; border: 1.5px solid var(--red); background: #fff; color: var(--red); font: inherit; font-size: .8rem; font-weight: 700; padding: 4px 12px; border-radius: 999px; cursor: pointer; }
.cb-typing .cb-text { display: flex; gap: 5px; padding: 14px 16px; }
.cb-typing .cb-text span { width: 7px; height: 7px; border-radius: 50%; background: #c9a9b0; animation: cbDot 1.2s infinite; }
.cb-typing .cb-text span:nth-child(2) { animation-delay: .15s; } .cb-typing .cb-text span:nth-child(3) { animation-delay: .3s; }
@keyframes cbDot { 0%, 60%, 100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-5px); opacity: 1; } }

.cb-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px 14px 4px; background: var(--red-tint); flex: none; }
.cb-chips button { border: 1.5px solid #f2c4cc; background: #fff; color: var(--red-dark); font: inherit; font-size: .78rem; font-weight: 600; padding: 6px 11px; border-radius: 999px; cursor: pointer; }
.cb-chips button:hover { background: var(--red-soft); }

.cb-form { display: flex; gap: 8px; align-items: flex-end; padding: 10px 12px; border-top: 1px solid var(--line); background: #fff; flex: none; }
.cb-form textarea {
    flex: 1; min-width: 0; resize: none; border: 1.5px solid var(--line); border-radius: 14px; padding: 10px 12px; font: inherit; font-size: .92rem;
    line-height: 1.4; max-height: 110px; outline: none; background: #fff; color: var(--ink);
}
.cb-form textarea:focus { border-color: var(--red); box-shadow: 0 0 0 3px rgba(200, 16, 46, .12); }
.cb-send { display: inline-flex; align-items: center; gap: 6px; border: none; border-radius: 14px; background: var(--red); color: #fff; font: inherit; font-weight: 700; font-size: .88rem; padding: 10px 14px; cursor: pointer; flex: none; }
.cb-send svg { width: 17px; height: 17px; }
.cb-send:hover { background: var(--red-dark); }
.cb-send:disabled { opacity: .55; cursor: not-allowed; }
.cb-foot { font-size: .7rem; color: var(--muted); text-align: center; padding: 0 12px 8px; background: #fff; margin: 0; flex: none; }

/* Phones: the chat becomes a sheet over the page; the button stays small */
@media (max-width: 600px) {
    .cb-root { right: 14px; bottom: max(14px, env(safe-area-inset-bottom)); }
    .cb-launcher { width: 54px; height: 54px; }
    .cb-bubble { bottom: 66px; }
    .cb-panel { position: fixed; left: 8px; right: 8px; bottom: 8px; width: auto; height: min(78vh, calc(100vh - 80px)); border-radius: 20px; }
    .cb-is-open .cb-launcher { opacity: 0; pointer-events: none; }
    .cb-send span { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    .cb-panel, .cb-bubble, .cb-launcher svg { transition: none; }
    .cb-launcher::after, .cb-typing .cb-text span, .cb-msg { animation: none; }
}

/* ==========================================================
   22. MASCOTS - Dr. Asha (doctor) and Bindu (blood drop)
   js/mascot.js. Only CSS animations; "reduce motion" respected.
   ========================================================== */
.doc-stage { position: relative; width: 100%; height: 100%; min-height: 300px; }
.doc-char {
    position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); width: min(300px, 86%); padding: 0; border: none; background: none;
    cursor: pointer; z-index: 2; -webkit-tap-highlight-color: transparent; border-radius: 40%;
}
.doc-char:focus-visible { outline: 3px solid var(--red); outline-offset: 4px; }
.doc-svg { width: 100%; height: auto; display: block; overflow: visible; filter: drop-shadow(0 18px 28px rgba(143, 11, 33, .16)); }
.doc-svg * { transform-box: fill-box; }

/* idle: breathing + gentle head tilt + blinking */
.doc-body { transform-origin: 50% 100%; animation: docBreathe 4.5s ease-in-out infinite; }
.doc-head { transform-origin: 50% 92%; animation: docTilt 7s ease-in-out infinite; transition: transform .4s; }
.doc-eye { transform-origin: 50% 50%; animation: docBlink 4.2s infinite; }
.doc-eye:nth-child(2) { animation-delay: .04s; }
.doc-eyes { transition: transform .3s; }
.doc-eyes-happy, .doc-smile-big { opacity: 0; transition: opacity .2s; }
.doc-smile { transition: opacity .2s; }
.doc-arm { transform-origin: 50% 0; transition: transform .45s cubic-bezier(.3, 1.4, .5, 1); }
.doc-arm-left { transform: rotate(7deg); }
.doc-arm-right { transform: rotate(-7deg); }
.doc-arm .hand { display: none; }
.doc-arm .hand-open { display: inline; }
.doc-arm-box { pointer-events: none; }
@keyframes docBreathe { 0%, 100% { transform: translateY(0) scale(1); } 50% { transform: translateY(-3px) scale(1.006); } }
@keyframes docTilt { 0%, 100% { transform: rotate(0); } 30% { transform: rotate(-2.5deg); } 65% { transform: rotate(2deg); } }
@keyframes docBlink { 0%, 44%, 50%, 100% { transform: scaleY(1); } 47% { transform: scaleY(.1); } }

/* waving hello */
.is-waving .doc-arm-right { animation: docWave .55s ease-in-out infinite alternate; }
@keyframes docWave { from { transform: rotate(-142deg); } to { transform: rotate(-172deg); } }
/* pointing at a button (content is on the left) */
.is-pointing .doc-arm-left { transform: rotate(98deg); }
.is-pointing .doc-arm-left .hand-open { display: none; }
.is-pointing .doc-arm-left .hand-point { display: inline; }
.is-pointing .doc-head { animation: none; transform: rotate(-6deg); }
.is-pointing .doc-eyes { transform: translateX(-3px); }
/* thumbs-up */
.is-cheering .doc-arm-right { transform: rotate(-160deg); animation: none; }
.is-cheering .doc-arm-right .hand-open { display: none; }
.is-cheering .doc-arm-right .hand-thumb { display: inline; }
.is-cheering .doc-body { animation: docHop .6s ease; }
@keyframes docHop { 40% { transform: translateY(-10px); } }
/* happy face */
.is-happy .doc-eyes { opacity: 0; }
.is-happy .doc-eyes-happy, .is-happy .doc-smile-big { opacity: 1; }
.is-happy .doc-smile { opacity: 0; }

/* speech bubble */
.doc-say {
    position: absolute; top: 2%; left: 0; max-width: 220px; z-index: 3; background: #fff; color: var(--red-dark); font-weight: 800; font-size: .95rem; line-height: 1.35;
    padding: 12px 16px; border-radius: 18px 18px 18px 6px; box-shadow: 0 12px 30px rgba(143, 11, 33, .16); border: 1px solid var(--line);
    opacity: 0; transform: translateY(8px) scale(.92); transform-origin: bottom left; transition: opacity .25s, transform .3s cubic-bezier(.3, 1.5, .5, 1); pointer-events: none;
}
.doc-say::after { content: ""; position: absolute; left: 70%; bottom: -8px; width: 16px; height: 16px; background: #fff; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); transform: rotate(45deg); }
.doc-say.show { opacity: 1; transform: none; }

/* floating drops, hearts and sparkles */
.doc-deco { position: absolute; display: block; pointer-events: none; z-index: 1; }
.doc-deco svg { width: 100%; height: 100%; display: block; }
.doc-drop { color: var(--red); opacity: .85; animation: docFloat 6s ease-in-out infinite; }
.doc-heart { color: #ff6b84; opacity: .8; animation: docFloat 7s ease-in-out infinite; }
.doc-spark { color: #34b27b; animation: docTwinkle 2.6s ease-in-out infinite; }
.d1 { width: 22px; height: 22px; top: 18%; left: 12%; }
.d2 { width: 16px; height: 16px; bottom: 30%; left: 4%; animation-delay: -2s; }
.d3 { width: 14px; height: 14px; top: 46%; right: 4%; animation-delay: -4s; }
.h1 { width: 20px; height: 20px; top: 34%; right: 12%; animation-delay: -1s; }
.h2 { width: 14px; height: 14px; bottom: 16%; right: 8%; animation-delay: -3s; }
.s1 { width: 16px; height: 16px; top: 10%; right: 26%; }
.s2 { width: 12px; height: 12px; top: 56%; left: 14%; animation-delay: -1s; }
.s3 { width: 10px; height: 10px; bottom: 40%; right: 20%; animation-delay: -1.8s; }
@keyframes docFloat { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-14px) rotate(8deg); } }
@keyframes docTwinkle { 0%, 100% { transform: scale(.4) rotate(0); opacity: .2; } 50% { transform: scale(1) rotate(45deg); opacity: 1; } }

/* a drop that turns into a heart */
.doc-morph { position: absolute; top: 14%; right: 6%; width: 38px; height: 38px; z-index: 1; pointer-events: none; }
.doc-morph span { position: absolute; inset: 0; }
.doc-morph svg { width: 100%; height: 100%; }
.m-drop { color: var(--red); animation: docMorphDrop 6s ease-in-out infinite; }
.m-heart { color: #ff4d68; animation: docMorphHeart 6s ease-in-out infinite; }
@keyframes docMorphDrop { 0% { opacity: 0; transform: translateY(-16px) scale(.8); } 12%, 34% { opacity: 1; transform: none; } 44%, 100% { opacity: 0; transform: scale(.4) rotate(-20deg); } }
@keyframes docMorphHeart { 0%, 36% { opacity: 0; transform: scale(.3); } 46% { opacity: 1; transform: scale(1.18); } 54% { transform: scale(.94); } 62% { transform: scale(1.1); } 70% { transform: scale(1); opacity: 1; } 90%, 100% { opacity: 0; transform: translateY(-18px) scale(.9); } }

/* hearts burst on thumbs-up */
.doc-burst { position: absolute; left: 62%; top: 22%; width: 0; height: 0; z-index: 3; pointer-events: none; }
.doc-burst span { position: absolute; width: 16px; height: 16px; left: -8px; top: -8px; color: #ff4d68; opacity: 0; }
.doc-burst span:nth-child(3n) { color: #34b27b; }
.doc-burst span svg { width: 100%; height: 100%; }
.doc-burst.go span { animation: docBurst .9s ease-out forwards; }
@keyframes docBurst { 0% { opacity: 1; transform: rotate(calc(var(--i) * 51deg)) translateY(0) scale(.4); } 100% { opacity: 0; transform: rotate(calc(var(--i) * 51deg)) translateY(-70px) scale(1); } }

.doc-paused, .doc-paused * { animation-play-state: paused !important; }

/* ---------- Bindu, the blood-drop mascot ---------- */
.bindu { display: inline-block; width: 64px; height: 64px; flex: none; pointer-events: none; }
.bindu svg { width: 100%; height: 100%; overflow: visible; }
.bindu .bd-body { transform-box: fill-box; transform-origin: 50% 100%; animation: bdBob 3.2s ease-in-out infinite; }
.bindu .bd-eyes { transform-box: fill-box; transform-origin: 50% 50%; animation: docBlink 3.8s infinite; }
.bindu .bd-arm-l { transform-box: fill-box; transform-origin: 100% 100%; }
.bindu-donor .bd-arm-l { animation: bdWave 1s ease-in-out infinite alternate; }
.bindu .bd-prop { transform-box: fill-box; transform-origin: 50% 100%; animation: bdProp 3.2s ease-in-out infinite; }
@keyframes bdBob { 0%, 100% { transform: translateY(0) scale(1, 1); } 45% { transform: translateY(-5px) scale(.98, 1.03); } 55% { transform: translateY(-5px); } }
@keyframes bdWave { from { transform: rotate(0); } to { transform: rotate(28deg); } }
@keyframes bdProp { 0%, 100% { transform: rotate(-6deg); } 50% { transform: rotate(6deg); } }
/* beside page titles */
.has-bindu { position: relative; }
.bindu-header { position: absolute; right: 16px; bottom: -18px; width: 118px; height: 118px; }
.bindu-inline { width: 46px; height: 46px; vertical-align: middle; margin-right: 6px; }
.cta-band .bindu { width: 84px; height: 84px; }

/* layout around the doctor */
.hero-visual.has-doctor .big-drop { display: none; }
.welcome-art.has-doctor { min-height: 400px; }

@media (max-width: 960px) {
    .hero-visual.has-doctor { display: grid !important; height: 330px; }
    .welcome-art.has-doctor { min-height: 330px; }
}
@media (max-width: 700px) {
    .bindu-header { width: 64px; height: 64px; top: 10px; bottom: auto; right: 10px; }
    .has-bindu h1, .has-bindu > p { padding-right: 64px; }
}
@media (max-width: 600px) {
    .hero-visual.has-doctor { height: 280px; }
    .hero-visual.has-doctor .float-card { display: none; }
    .welcome-art.has-doctor { min-height: 280px; }
    .doc-char { width: min(230px, 70%); }
    .doc-say { max-width: 170px; font-size: .85rem; padding: 10px 12px; }
    .cta-band .bindu { width: 64px; height: 64px; }
}
@media (prefers-reduced-motion: reduce) {
    .doc-stage *, .bindu * { animation: none !important; transition: none !important; }
    .doc-deco, .doc-morph .m-drop { opacity: .6; }
}
.hero-visual.has-doctor > [data-doctor], .welcome-art.has-doctor > [data-doctor] { position: absolute; inset: 0; }
.cta-band.camp-cta { flex-wrap: wrap; }
/* the chat button shows Dr. Asha's face */
.cb-launcher { background: radial-gradient(circle at 35% 30%, #fff, #ffe8ec); border: 3px solid var(--red); overflow: visible; }
.cb-launcher .cb-doc { width: 46px; height: 46px; position: absolute; top: 4px; border-radius: 50%; }
.cb-doc-eyes { transform-box: fill-box; transform-origin: 50% 50%; animation: docBlink 4.2s infinite; }
.cb-badge { position: absolute; right: -4px; bottom: -2px; width: 24px; height: 24px; border-radius: 50%; background: var(--red); color: #fff; display: grid; place-items: center; border: 2px solid #fff; transition: opacity .2s; }
.cb-badge svg { width: 13px; height: 13px; position: static; }
.cb-launcher .cb-icon-close { color: var(--red); }
.cb-is-open .cb-launcher { background: #fff; }
.cb-is-open .cb-badge { opacity: 0; }
.cb-bubble { max-width: min(250px, calc(100vw - 40px)); }
@media (prefers-reduced-motion: reduce) { .cb-doc-eyes { animation: none; } }
/* make room for the doctor: one info card, top right */
.hero-visual.has-doctor .float-card.two { display: none; }
.hero-visual.has-doctor .float-card.one { left: auto; right: 0; top: 2%; z-index: 1; }
.hero-visual.has-doctor .doc-char, .welcome-art.has-doctor .doc-char { width: min(330px, 88%); }
@media (max-width: 600px) { .hero-visual.has-doctor .doc-char, .welcome-art.has-doctor .doc-char { width: min(230px, 70%); } }
/* only the drawn doctor is clickable, never the empty space around her */
.doc-char { pointer-events: none; }
.doc-char .doc-body { pointer-events: visiblePainted; }
@media (max-width: 960px) { .hero-visual.has-doctor { margin-top: 28px; } }
.welcome-art.has-doctor .welcome-badge { display: none; }
@media (max-width: 960px) { .hero-visual.has-doctor { margin-bottom: 56px; } }

/* ==========================================================
   23. COLOUR PALETTE - red · white · soft pink · green
   Red      #c8102e (+ deeper #8f0b21 / #5e0a1b): buttons, headings, highlights
   White    #ffffff: page background, clean space
   Soft pink #f9dce3 (+ #fff0f3 tint, #f2bcc8 accents): sections, cards, decoration
   Green    #187a4e (+ #e3f4eb): success, available / ongoing, positive highlights
   ========================================================== */
:root { --pink: #f9dce3; --pink-strong: #f2bcc8; --green-light: #34b27b; }

/* subtle red -> soft pink gradients */
.btn-primary { background: linear-gradient(135deg, #dc1f3e, var(--red) 55%, #b10c28); }
.btn-primary:hover { background: linear-gradient(135deg, var(--red), var(--red-dark)); }
.btn-light { background: linear-gradient(135deg, var(--pink), #fbe8ed); }
.page-header { background: radial-gradient(circle at 88% 12%, rgba(249, 220, 227, .3), transparent 40%), linear-gradient(120deg, var(--red), var(--red-dark)); }
.section-tint { background: linear-gradient(180deg, var(--red-tint) 0%, #fff 100%); }
.eyebrow { background: var(--pink); color: var(--red-dark); }

/* footer in deep red (no black) */
.footer { background: radial-gradient(circle at 85% 0%, rgba(249, 220, 227, .14), transparent 45%), linear-gradient(160deg, #7a0c22, #5e0a1b); color: var(--pink); }
.footer .logo b { color: var(--pink); }
.footer .logo-drop { background: #fff; }
.footer .logo-drop span { color: var(--red); }
.footer a:hover, .footer li a:hover { color: #fff; }

/* small green accents for positive things */
.stat-card:nth-child(2) .stat-icon { background: var(--green-soft); color: var(--green); }
.stat-card:nth-child(2) .stat-number { color: var(--green); }
.request-card.normal { border-left-color: var(--green); }
.pill-green, .camp-status.ongoing, .review-pill.approved { background: var(--green-soft); color: var(--green); }
.form-alert.success, .location-status.ok, .field-msg.ok { background: var(--green-soft); color: var(--green); }

/* camp statuses: upcoming = red/pink, ongoing = green, past = muted pink */
.camp-status.upcoming { background: var(--pink); color: var(--red-dark); }
.camp-status.completed, .camp-status.cancelled { background: #f7e6ea; color: #8a4a5a; }
.camp-status-text.upcoming { color: var(--red); }
.camp-status-text.ongoing { color: var(--green); }
.camp-pin.completed, .camp-pin.cancelled { background: #d8a3b0; }
.camp-pin.ongoing { background: var(--green); }

/* "you are here" marker: white centre, red ring, pink halo */
.user-dot { background: #fff; border: 4px solid var(--red); box-shadow: 0 0 0 6px rgba(242, 188, 200, .7); }
.legend-dot[style*="--blue"] { background: #fff !important; border: 3px solid var(--red); }

/* hospital vs blood bank: same red family, different style */
.bank-pin.hospital-pin { border-color: var(--red-dark); color: #fff; background: var(--red-dark); }
.bank-badge.hospital-badge { border-color: var(--red-dark); color: #fff; background: var(--red-dark); }
.pill-hospital { background: var(--pink); color: var(--red-dark); }
.legend-hosp-sq { border-color: var(--red-dark) !important; background: var(--red-dark) !important; }

/* chatbot */
.cb-user .cb-text { background: linear-gradient(135deg, #d81e3c, var(--red)); }
.cb-messages { background: linear-gradient(180deg, var(--red-tint), #fff 85%); }
.cb-chips { background: #fff; }
.cb-dot { background: var(--green-light); }
/* role icons (line icons in the palette instead of emoji) */
.role-card .role-icon { color: var(--red); }
.role-card .role-icon svg { width: 26px; height: 26px; }
.role-option label .ri { color: var(--red); display: grid; place-items: center; }
.role-option label .ri svg { width: 26px; height: 26px; }
.role-option input:checked + label .ri { color: var(--red-dark); }
.role-card:nth-child(2) .role-icon { background: var(--green-soft); color: var(--green); }

/* ==========================================================
   24. ROAD ROUTES, CITY MARKERS, QUICK FILTER (js/camp-route.js)
   ========================================================== */
.route-panel {
    background: #fff; border: 1.5px solid var(--line); border-radius: var(--radius); padding: 14px 16px; margin-bottom: 12px;
    box-shadow: 0 8px 24px rgba(143, 11, 33, .08); display: grid; gap: 10px; animation: routeIn .25s ease;
}
@keyframes routeIn { from { opacity: 0; transform: translateY(-6px); } }
.route-head { display: flex; align-items: center; gap: 12px; }
.route-icon { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; flex: none; color: #fff; background: linear-gradient(135deg, #dc1f3e, var(--red-dark)); }
.route-icon svg { width: 22px; height: 22px; }
.route-title { flex: 1; min-width: 0; }
.route-title b { display: block; font-size: .98rem; line-height: 1.3; overflow-wrap: anywhere; }
.route-title small { color: var(--muted); font-size: .82rem; display: block; overflow-wrap: anywhere; }
.route-x { width: 32px; height: 32px; border-radius: 50%; border: none; background: var(--red-soft); color: var(--red-dark); font-size: 1.2rem; cursor: pointer; flex: none; }
.route-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.route-stats div { background: var(--red-tint); border-radius: 12px; padding: 10px 12px; }
.route-stats div:last-child { background: var(--green-soft); }
.route-stats b { display: block; font-size: 1.3rem; color: var(--red-dark); line-height: 1.2; }
.route-stats div:last-child b { color: var(--green); }
.route-stats span { font-size: .75rem; color: var(--muted); font-weight: 600; }
.route-note { font-size: .84rem; color: var(--muted); margin: 0; }
.route-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.route-panel.is-loading .route-note::before { content: ""; display: inline-block; width: 12px; height: 12px; margin-right: 8px; vertical-align: -1px; border-radius: 50%; border: 2px solid var(--pink-strong, #f2bcc8); border-top-color: var(--red); animation: routeSpin .8s linear infinite; }
@keyframes routeSpin { to { transform: rotate(360deg); } }

.route-btn { display: inline-flex; align-items: center; gap: 6px; }
.route-btn svg { width: 16px; height: 16px; flex: none; }
.route-btn.is-active { background: var(--green-soft); color: var(--green); }
.popup-btn-light { background: var(--red-soft); color: var(--red-dark); }

/* destination highlight + start point */
.route-dest { width: 56px; height: 56px; border-radius: 50%; position: relative; }
.route-dest span, .route-dest::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 3px solid var(--red); background: rgba(200, 16, 46, .1); animation: routePulse 1.8s ease-out infinite; }
.route-dest::before { animation-delay: .9s; }
@keyframes routePulse { from { transform: scale(.45); opacity: 1; } to { transform: scale(1.15); opacity: 0; } }
.route-start { width: 20px; height: 20px; border-radius: 50%; background: #fff; border: 5px solid var(--green); box-shadow: 0 0 0 5px rgba(24, 122, 78, .2); }

/* city markers (zoomed out) */
.city-hub {
    border-radius: 50%; display: grid; place-items: center; color: var(--red-dark); font-size: .74rem; cursor: pointer;
    background: radial-gradient(circle at 35% 30%, #fff, var(--red-soft)); border: 2px solid var(--pink-strong, #f2bcc8);
    box-shadow: 0 4px 12px rgba(143, 11, 33, .18); transition: transform .15s;
}
.city-hub.has-camps { border-color: var(--green); }
.city-hub:hover { transform: scale(1.12); }
.city-hub b { font-weight: 800; }
.legend-city { border-radius: 50% !important; background: var(--red-soft) !important; border: 2px solid var(--pink-strong, #f2bcc8); }
.legend-line { display: inline-block; width: 22px; height: 5px; border-radius: 3px; background: var(--red); box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--line); vertical-align: middle; margin-right: 4px; }

/* quick filter above the results */
.result-filter {
    width: 100%; padding: 11px 14px; margin: 4px 0 12px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); font: inherit; font-size: .92rem; background: #fff;
}
.result-filter:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(200, 16, 46, .12); }

@media (max-width: 600px) {
    .route-stats b { font-size: 1.1rem; }
    .route-actions .btn { flex: 1; }
}
@media (prefers-reduced-motion: reduce) {
    .route-dest span, .route-dest::before, .route-panel, .route-panel.is-loading .route-note::before { animation: none; }
}

/* the route panel floats on top of the map (Google-Maps style) */
.map-box > .route-panel {
    position: absolute; top: 10px; left: 54px; right: 10px; width: auto; height: auto; z-index: 1000; margin: 0;
    padding: 10px 12px; gap: 8px; max-height: calc(100% - 20px); overflow: auto; box-shadow: 0 10px 28px rgba(94, 10, 27, .2);
}
.map-box > .route-panel .route-icon { width: 34px; height: 34px; border-radius: 10px; }
.map-box > .route-panel .route-stats div { padding: 6px 10px; }
.map-box > .route-panel .route-stats b { font-size: 1.15rem; }
.map-box > .route-panel .route-note { font-size: .8rem; }
.map-box > .route-panel .route-actions { align-items: center; }
@media (max-width: 600px) {
    .map-box > .route-panel { left: 50px; right: 8px; top: 8px; padding: 8px 10px; gap: 6px; }
    .map-box > .route-panel .route-icon { display: none; }
    .map-box > .route-panel .route-note { font-size: .76rem; }
}

/* ==========================================================
   25. VISUAL IDENTITY - "a community heartbeat"
   Red + white first, with warm cream, soft coral and green.
   Illustrations and icons: js/decor.js (original SVG art).
   ========================================================== */
:root {
    --cream: #fff8f1;
    --cream-2: #fdeee3;
    --coral: #f4846f;
    --coral-soft: #fde4dd;
    --coral-deep: #d9604c;
    --font-display: "Bricolage Grotesque", "Plus Jakarta Sans", system-ui, sans-serif;
    --radius: 20px;
    --shadow: 0 2px 4px rgba(94, 10, 27, .04), 0 10px 28px rgba(143, 11, 33, .08);
    --shadow-hover: 0 4px 8px rgba(94, 10, 27, .06), 0 18px 40px rgba(143, 11, 33, .15);
    --ease-out: cubic-bezier(.22, 1, .36, 1);
}
body { background: var(--cream); }
h1, h2, .logo, .stat-number, .step-num { font-family: var(--font-display); letter-spacing: -0.025em; }
h1 { font-weight: 800; }
::selection { background: var(--coral-soft); color: var(--red-dark); }

/* sections: cream + white rhythm, soft tints */
.section-tint { background: linear-gradient(180deg, var(--cream-2), #fff3f0 60%, var(--cream)); }
.panel, .stat-card, .step-card, .donor-card, .role-card { border-radius: var(--radius); }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; }
.section-head .eyebrow::before {
    content: ""; width: 34px; height: 12px; background: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 60 20%22%3E%3Cpath d=%22M1 10h17l4-7 5 14 4-10 3 3h25%22 stroke=%22black%22 stroke-width=%222.6%22 fill=%22none%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 60 20%22%3E%3Cpath d=%22M1 10h17l4-7 5 14 4-10 3 3h25%22 stroke=%22black%22 stroke-width=%222.6%22 fill=%22none%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22/%3E%3C/svg%3E") center / contain no-repeat;
}

/* ---------- navigation ---------- */
.navbar { background: rgba(255, 252, 248, .9); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid rgba(242, 188, 200, .45); }
.logo-drop { transition: transform .5s var(--ease-out); }
.logo:hover .logo-drop { transform: rotate(-12deg) scale(1.08); }
.nav-links a.has-ico { display: inline-flex; align-items: center; gap: 7px; position: relative; }
.nav-links a .ico { width: 17px; height: 17px; flex: none; transition: transform .35s var(--ease-out); }
.nav-links a:hover .ico, .nav-links a:focus-visible .ico { transform: translateY(-2px) rotate(-8deg) scale(1.12); }
.nav-links a.nav-emergency .ico { animation: sirenTilt 2.4s ease-in-out infinite; transform-origin: 50% 90%; }
@keyframes sirenTilt { 0%, 80%, 100% { transform: rotate(0); } 85% { transform: rotate(-14deg); } 90% { transform: rotate(12deg); } 95% { transform: rotate(-6deg); } }

/* ---------- buttons: lift, ripple, glow ---------- */
.btn { transition: transform .2s var(--ease-out), box-shadow .2s, background .2s, color .2s; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.97); }
.btn-primary { background: linear-gradient(135deg, #de2346, var(--red) 55%, #a90d27); box-shadow: 0 8px 20px rgba(200, 16, 46, .28); }
.btn-primary:hover { background: linear-gradient(135deg, #c8102e, var(--red-dark)); box-shadow: 0 12px 26px rgba(200, 16, 46, .34); }
.ripple-host { overflow: hidden; }
.ripple-rel { position: relative; }
.ripple { position: absolute; border-radius: 50%; background: rgba(255, 255, 255, .45); transform: scale(0); animation: ripple .6s ease-out forwards; pointer-events: none; }
.btn-light .ripple, .btn-outline .ripple, .tabs button .ripple { background: rgba(200, 16, 46, .16); }
@keyframes ripple { to { transform: scale(1); opacity: 0; } }
.heart-burst { position: fixed; z-index: 3000; width: 16px; height: 16px; margin: -8px 0 0 -8px; color: var(--coral); pointer-events: none; animation: heartBurst .9s var(--ease-out) forwards; }
.heart-burst .floater-svg { width: 100%; height: 100%; fill: currentColor; stroke: none; }
@keyframes heartBurst { 0% { transform: translate(0, 0) scale(.4) rotate(0); opacity: 0; } 20% { opacity: 1; } 100% { transform: translate(var(--dx), -64px) scale(1) rotate(var(--rot)); opacity: 0; } }

/* the big "register" style button */
.btn-glow { position: relative; padding-left: 52px !important; padding-right: 26px !important; border-radius: 999px; background: linear-gradient(120deg, #e23a55, var(--red) 45%, var(--red-dark)); box-shadow: 0 10px 26px rgba(200, 16, 46, .32), inset 0 1px 0 rgba(255, 255, 255, .25); }
.btn-glow::before {
    content: ""; position: absolute; left: 18px; top: 50%; width: 22px; height: 22px; margin-top: -11px; background: #fff;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%222.1%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M12 2.8C9 7.2 6 10.2 6 14.2a6 6 0 0 0 12 0c0-4-3-7-6-11.4z%22/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%222.1%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M12 2.8C9 7.2 6 10.2 6 14.2a6 6 0 0 0 12 0c0-4-3-7-6-11.4z%22/%3E%3C/svg%3E") center / contain no-repeat; animation: dropBeat 1.8s ease-in-out infinite;
}
.btn-glow::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .28) 50%, transparent 70%); background-size: 250% 100%; animation: shine 3.2s ease-in-out infinite; pointer-events: none; }
@keyframes dropBeat { 0%, 70%, 100% { transform: scale(1); } 80% { transform: scale(1.22); } 90% { transform: scale(.94); } }
@keyframes shine { 0%, 60% { background-position: 120% 0; } 100% { background-position: -120% 0; } }

/* ---------- floating drops + hearts ---------- */
.has-floaters { position: relative; isolation: isolate; }
.floaters { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: -1; }
.floater { position: absolute; width: calc(26px * var(--s)); height: calc(26px * var(--s)); color: rgba(200, 16, 46, .16); animation: floatUp 9s ease-in-out infinite; animation-delay: calc(var(--d) * -1); }
.floater.heart { color: rgba(244, 132, 111, .3); }
.floater-svg { width: 100%; height: 100%; fill: currentColor; stroke: none; }
.page-header .floater, .auth-side .floater, .dash-header .floater, .cta-band .floater { color: rgba(255, 255, 255, .16); }
.page-header .floater.heart, .auth-side .floater.heart, .dash-header .floater.heart { color: rgba(253, 228, 221, .26); }
@keyframes floatUp { 0%, 100% { transform: translateY(0) rotate(-6deg); } 50% { transform: translateY(-18px) rotate(6deg); } }

/* ---------- home hero ---------- */
.hero { background: radial-gradient(circle at 84% 22%, #ffe0e5 0, transparent 42%), radial-gradient(circle at 8% 92%, var(--coral-soft) 0, transparent 36%), linear-gradient(180deg, #fff, var(--cream)); }
.hero-grid { position: relative; z-index: 1; }
.hero h1 span { position: relative; display: inline-block; background: linear-gradient(100deg, var(--red), #e2475f 60%, var(--coral-deep)); -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: 6px; }
.hero h1 span::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: -8px; height: 14px; background: var(--coral);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 120 20%22%3E%3Cpath d=%22M0 10h44l5-8 6 16 5-12 4 4h56%22 stroke=%22black%22 stroke-width=%222.2%22 fill=%22none%22 stroke-linejoin=%22round%22/%3E%3C/svg%3E") left center / auto 100% repeat-x; mask: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 120 20%22%3E%3Cpath d=%22M0 10h44l5-8 6 16 5-12 4 4h56%22 stroke=%22black%22 stroke-width=%222.2%22 fill=%22none%22 stroke-linejoin=%22round%22/%3E%3C/svg%3E") left center / auto 100% repeat-x; opacity: .85;
}
.hero .eyebrow, .welcome-hero .eyebrow { background: #fff; border: 1px solid var(--line); box-shadow: 0 4px 14px rgba(200, 16, 46, .08); padding: 6px 14px; border-radius: 999px; }
.life-chip { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; font-size: .9rem; font-weight: 700; color: var(--green); background: var(--green-soft); padding: 7px 14px; border-radius: 999px; }
.life-chip .ico { width: 16px; height: 16px; }

.stat-card { position: relative; overflow: hidden; }
.stat-card::after { content: ""; position: absolute; right: -18px; bottom: -18px; width: 74px; height: 74px; background: var(--coral-soft); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%222.1%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M12 2.8C9 7.2 6 10.2 6 14.2a6 6 0 0 0 12 0c0-4-3-7-6-11.4z%22/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%222.1%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M12 2.8C9 7.2 6 10.2 6 14.2a6 6 0 0 0 12 0c0-4-3-7-6-11.4z%22/%3E%3C/svg%3E") center / contain no-repeat; opacity: .55; }
.stat-icon, .step-icon { border-radius: 16px !important; background: linear-gradient(135deg, #fff1ee, var(--coral-soft)) !important; color: var(--red) !important; }
.stat-card:nth-child(2) .stat-icon, .step-card:nth-child(2) .step-icon { background: linear-gradient(135deg, #eefaf3, var(--green-soft)) !important; color: var(--green) !important; }
.stat-card:hover .stat-icon svg, .step-card:hover .step-icon svg { animation: dropBeat 1s ease-in-out; }

.cta-band { position: relative; overflow: hidden; isolation: isolate; background: linear-gradient(120deg, #d61b3b, var(--red) 40%, var(--red-dark)); box-shadow: 0 18px 40px rgba(143, 11, 33, .22); }
.cta-band::before {
    content: ""; position: absolute; inset: auto -10% -30% 40%; height: 160%; z-index: -1; background: rgba(255, 255, 255, .07);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%222.1%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M12 20.5s-8.5-5-8.5-11.2A4.8 4.8 0 0 1 12 6.4a4.8 4.8 0 0 1 8.5 2.9c0 6.2-8.5 11.2-8.5 11.2z%22/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%222.1%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M12 20.5s-8.5-5-8.5-11.2A4.8 4.8 0 0 1 12 6.4a4.8 4.8 0 0 1 8.5 2.9c0 6.2-8.5 11.2-8.5 11.2z%22/%3E%3C/svg%3E") center / contain no-repeat;
}
.cta-band.camp-cta { background: linear-gradient(120deg, #1f8a5a, var(--green) 50%, #0f5c39); }

/* ---------- inner page headers with illustrations ---------- */
.page-header { position: relative; isolation: isolate; overflow: hidden; padding-bottom: 76px; background: radial-gradient(circle at 88% 30%, rgba(244, 132, 111, .45) 0, transparent 38%), linear-gradient(118deg, #d61b3b, var(--red) 45%, var(--red-dark)); }
.page-header::before {
    content: ""; position: absolute; left: 0; right: 0; bottom: 30px; height: 30px; background: rgba(255, 255, 255, .13); z-index: -1;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 120 20%22%3E%3Cpath d=%22M0 10h44l5-8 6 16 5-12 4 4h56%22 stroke=%22black%22 stroke-width=%222.2%22 fill=%22none%22 stroke-linejoin=%22round%22/%3E%3C/svg%3E") left center / auto 100% repeat-x; mask: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 120 20%22%3E%3Cpath d=%22M0 10h44l5-8 6 16 5-12 4 4h56%22 stroke=%22black%22 stroke-width=%222.2%22 fill=%22none%22 stroke-linejoin=%22round%22/%3E%3C/svg%3E") left center / auto 100% repeat-x;
}
.page-header::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 34px; background: var(--cream); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 1440 34%22 preserveAspectRatio=%22none%22%3E%3Cpath d=%22M0 34V20C240 0 480 0 720 14s480 20 720 0v20z%22 fill=%22black%22/%3E%3C/svg%3E") bottom / 100% 100% no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 1440 34%22 preserveAspectRatio=%22none%22%3E%3Cpath d=%22M0 34V20C240 0 480 0 720 14s480 20 720 0v20z%22 fill=%22black%22/%3E%3C/svg%3E") bottom / 100% 100% no-repeat; }
.page-header .container { position: relative; z-index: 1; }
.page-header .ph-has-art { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 28px; }
.page-header .ph-has-art > :not(.ph-art):not(.bindu-header) { grid-column: 1; }
.ph-art { grid-column: 2; grid-row: 1 / span 4; width: 240px; filter: drop-shadow(0 16px 26px rgba(94, 10, 27, .3)); }
.ph-art svg { width: 100%; height: auto; display: block; overflow: visible; }
.has-bindu.ph-has-art .bindu-header { right: 196px; bottom: -40px; width: 104px; height: 104px; z-index: 2; }
.ph-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 0; padding: 0; }
.ph-chips li { background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .26); padding: 6px 12px; border-radius: 999px; font-size: .84rem; font-weight: 700; backdrop-filter: blur(4px); }
.pull-up { margin-top: -44px; }
.sos-bar.pull-up { z-index: 5; }
.page-header.is-terms .ph-art { width: 170px; }

/* tiny motion inside illustrations */
.art-bob { animation: artBob 3.6s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.art-bob.d2 { animation-delay: -1.8s; }
.art-heart { animation: artBeat 2.4s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.art-heart.d2 { animation-delay: -1.2s; }
.art-flag { animation: artFlag 2.6s ease-in-out infinite; transform-box: fill-box; transform-origin: left center; }
.art-twinkle { animation: artTwinkle 2.2s ease-in-out infinite; }
.art-wave { animation: artWave 2.8s ease-in-out infinite; transform-box: view-box; transform-origin: 62px 110px; }
.sos-rays path { animation: sosRay 1.2s ease-in-out infinite; }
.sos-rays path:nth-child(2n) { animation-delay: .6s; }
.sos-ecg { stroke-dasharray: 260; stroke-dashoffset: 260; animation: ecgDraw 2.4s linear infinite; }
@keyframes artBob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes artBeat { 0%, 70%, 100% { transform: scale(1); } 80% { transform: scale(1.18); } 90% { transform: scale(.95); } }
@keyframes artFlag { 0%, 100% { transform: skewY(0); } 50% { transform: skewY(-7deg) scaleX(.94); } }
@keyframes artTwinkle { 0%, 100% { opacity: .2; } 50% { opacity: 1; } }
@keyframes artWave { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(14deg); } }
@keyframes sosRay { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }
@keyframes ecgDraw { 0% { stroke-dashoffset: 260; } 60%, 100% { stroke-dashoffset: 0; } }

/* ---------- emergency: noticeable at a glance ---------- */
.page-header.is-emergency { background: radial-gradient(circle at 86% 40%, rgba(255, 255, 255, .22) 0, transparent 30%), linear-gradient(118deg, #e0213f, #b30c27 50%, #6e0a1e); }
.page-header.is-emergency .ph-art { width: 200px; }
.sos-bar {
    display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 18px; background: #fff; border-radius: 24px;
    padding: 16px 20px; box-shadow: 0 16px 40px rgba(143, 11, 33, .14); border: 1.5px solid #f6c3cd; position: relative; overflow: hidden;
}
.sos-bar::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 5px; background: repeating-linear-gradient(-45deg, var(--red) 0 12px, #fff 12px 20px); background-size: 200% 100%; animation: hazard 6s linear infinite; }
@keyframes hazard { to { background-position: -113px 0; } }
.sos-symbol { width: 74px; height: 74px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #e8344f, var(--red) 55%, var(--red-dark)); display: grid; place-items: center; position: relative; flex: none; }
.sos-symbol svg { width: 58px; height: 58px; }
.sos-symbol::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 3px solid rgba(200, 16, 46, .45); animation: sosPulse 1.6s ease-out infinite; }
@keyframes sosPulse { from { transform: scale(.9); opacity: 1; } to { transform: scale(1.3); opacity: 0; } }
.sos-text b { display: block; font-family: var(--font-display); font-size: 1.2rem; color: var(--red-dark); }
.sos-text span { color: var(--muted); font-size: .9rem; }
.sos-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.sos-actions .btn { display: inline-flex; align-items: center; gap: 8px; }
.sos-actions .ico { width: 18px; height: 18px; }
.sos-call { border-color: var(--green) !important; color: var(--green) !important; }
.sos-call:hover { background: var(--green) !important; color: #fff !important; }
.emergency-layout.after-sos { margin-top: 22px; }
.critical-dot { box-shadow: 0 0 0 0 rgba(200, 16, 46, .5); animation: blink 1s infinite, sosDot 1.6s infinite; }
@keyframes sosDot { 0% { box-shadow: 0 0 0 0 rgba(200, 16, 46, .5); } 100% { box-shadow: 0 0 0 10px rgba(200, 16, 46, 0); } }
.request-card { border-radius: var(--radius); }

/* ---------- cards: donors, camps, banks ---------- */
.donor-card { box-shadow: 0 1px 2px rgba(94, 10, 27, .04); transition: transform .25s var(--ease-out), border-color .2s, box-shadow .25s; }
.donor-card:active { transform: scale(.99); }
.donor-badge.has-avatar { position: relative; background: none !important; padding: 0; overflow: visible; border-radius: 16px; }
.donor-avatar { width: 56px; height: 56px; display: block; border-radius: 16px; transition: transform .3s var(--ease-out); }
.donor-card:hover .donor-avatar { transform: rotate(-4deg) scale(1.04); }
.group-drop {
    position: absolute; right: -9px; bottom: -9px; width: 32px; height: 32px; display: grid; place-items: center; color: #fff;
    background: linear-gradient(135deg, #e2304d, var(--red-dark)); border: 2.5px solid #fff; border-radius: 50% 0 50% 50%; transform: rotate(-45deg);
    box-shadow: 0 4px 10px rgba(143, 11, 33, .3);
}
.group-drop span { transform: rotate(45deg); font-size: .66rem; font-weight: 800; letter-spacing: -.02em; line-height: 1; }
.donor-card.is-demo .group-drop { background: #6b5d61; }
.donor-card.is-demo .donor-avatar { filter: saturate(.55); }

.distance { display: inline-flex; align-items: center; gap: 5px; background: var(--coral-soft); color: var(--red-dark) !important; padding: 3px 10px; border-radius: 999px; font-weight: 800; white-space: nowrap; }
.distance::before { content: ""; width: 13px; height: 13px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%222.1%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Ccircle cx=%226%22 cy=%2219%22 r=%222.5%22/%3E%3Ccircle cx=%2218%22 cy=%225%22 r=%222.5%22/%3E%3Cpath d=%22M8.5 19H15a3.5 3.5 0 0 0 0-7H9a3.5 3.5 0 0 1 0-7h6.5%22/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%222.1%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Ccircle cx=%226%22 cy=%2219%22 r=%222.5%22/%3E%3Ccircle cx=%2218%22 cy=%225%22 r=%222.5%22/%3E%3Cpath d=%22M8.5 19H15a3.5 3.5 0 0 0 0-7H9a3.5 3.5 0 0 1 0-7h6.5%22/%3E%3C/svg%3E") center / contain no-repeat; }
.donor-card:not(.bank-card):not(.camp-card):not(.profile-card) .donor-meta::before,
.bank-address::before {
    content: ""; display: inline-block; width: 14px; height: 14px; margin-right: 5px; vertical-align: -2px; background: var(--red);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%222.1%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M19.5 10c0 6.2-7.5 12-7.5 12S4.5 16.2 4.5 10a7.5 7.5 0 0 1 15 0z%22/%3E%3Ccircle cx=%2212%22 cy=%2210%22 r=%222.8%22/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%222.1%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M19.5 10c0 6.2-7.5 12-7.5 12S4.5 16.2 4.5 10a7.5 7.5 0 0 1 15 0z%22/%3E%3Ccircle cx=%2212%22 cy=%2210%22 r=%222.8%22/%3E%3C/svg%3E") center / contain no-repeat;
}
.camp-card .donor-meta::before {
    content: ""; display: inline-block; width: 14px; height: 14px; margin-right: 5px; vertical-align: -2px; background: var(--green);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%222.1%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Crect x=%223%22 y=%224.5%22 width=%2218%22 height=%2217%22 rx=%222.5%22/%3E%3Cpath d=%22M16 2.5v4M8 2.5v4M3 10h18%22/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%222.1%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Crect x=%223%22 y=%224.5%22 width=%2218%22 height=%2217%22 rx=%222.5%22/%3E%3Cpath d=%22M16 2.5v4M8 2.5v4M3 10h18%22/%3E%3C/svg%3E") center / contain no-repeat;
}
/* camp cards: calendar badge + tent watermark */
.camp-card { position: relative; overflow: hidden; isolation: isolate; }
.camp-card::after {
    content: ""; position: absolute; right: -14px; bottom: -16px; width: 120px; height: 120px; z-index: -1; background: var(--coral-soft); opacity: .5;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%222.1%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M12 3.5 2.5 20.5h19z%22/%3E%3Cpath d=%22M12 12.5l-3.6 8M12 12.5l3.6 8%22/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%222.1%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M12 3.5 2.5 20.5h19z%22/%3E%3Cpath d=%22M12 12.5l-3.6 8M12 12.5l3.6 8%22/%3E%3C/svg%3E") center / contain no-repeat;
}
.camp-card.status-ongoing::after { background: var(--green-soft); opacity: .9; }
.camp-date-badge { position: relative; background: #fff !important; color: var(--ink) !important; border: 1.5px solid var(--line); overflow: visible; padding-top: 18px !important; box-shadow: 0 6px 14px rgba(143, 11, 33, .1); justify-content: center; }
.camp-date-badge span { position: absolute; left: -1.5px; right: -1.5px; top: -1.5px; height: 19px; display: grid; place-items: center; border-radius: 16px 16px 0 0; background: var(--red); color: #fff; font-size: .62rem !important; text-transform: uppercase; }
.camp-date-badge::before, .camp-date-badge::after { content: ""; position: absolute; top: -5px; width: 5px; height: 10px; border-radius: 3px; background: var(--red-dark); z-index: 1; }
.camp-date-badge::before { left: 14px; } .camp-date-badge::after { right: 14px; }
.camp-date-badge b { color: var(--red-dark); line-height: 1; }
.status-ongoing .camp-date-badge span { background: var(--green); }
/* blood bank / hospital badges */
.bank-badge { background: linear-gradient(135deg, #fff, var(--coral-soft)) !important; color: var(--red) !important; border: 1.5px solid #f6c3cd !important; }
.bank-badge.text-badge { font-size: 0 !important; position: relative; }
.bank-badge.text-badge::before { content: ""; width: 28px; height: 28px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%222.1%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Crect x=%226%22 y=%223%22 width=%2212%22 height=%2214.5%22 rx=%223.5%22/%3E%3Cpath d=%22M12 17.5V21%22/%3E%3Cpath d=%22M9.3 10.2h5.4M12 7.5v5.4%22/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%222.1%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Crect x=%226%22 y=%223%22 width=%2212%22 height=%2214.5%22 rx=%223.5%22/%3E%3Cpath d=%22M12 17.5V21%22/%3E%3Cpath d=%22M9.3 10.2h5.4M12 7.5v5.4%22/%3E%3C/svg%3E") center / contain no-repeat; }
.bank-badge.hospital-badge { background: linear-gradient(135deg, #fff, #f9dce3) !important; color: var(--red-dark) !important; }
.bank-badge.hospital-badge::before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%222.1%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M4 21V8l8-4.5L20 8v13%22/%3E%3Cpath d=%22M2 21h20%22/%3E%3Cpath d=%22M12 8.5v5M9.5 11h5%22/%3E%3Cpath d=%22M10 21v-3.5h4V21%22/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%222.1%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M4 21V8l8-4.5L20 8v13%22/%3E%3Cpath d=%22M2 21h20%22/%3E%3Cpath d=%22M12 8.5v5M9.5 11h5%22/%3E%3Cpath d=%22M10 21v-3.5h4V21%22/%3E%3C/svg%3E"); }

/* ---------- map markers + popups ---------- */
.camp-pin { width: 36px; height: 36px; border-radius: 12px; transform: rotate(45deg); background: linear-gradient(135deg, #e2304d, var(--red)); box-shadow: 0 6px 14px rgba(94, 10, 27, .35); }
.camp-pin span { display: none; }
.camp-pin::before { content: ""; width: 19px; height: 19px; background: #fff; transform: rotate(-45deg); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%222.1%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M12 3.5 2.5 20.5h19z%22/%3E%3Cpath d=%22M12 12.5l-3.6 8M12 12.5l3.6 8%22/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%222.1%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M12 3.5 2.5 20.5h19z%22/%3E%3Cpath d=%22M12 12.5l-3.6 8M12 12.5l3.6 8%22/%3E%3C/svg%3E") center / contain no-repeat; }
.camp-pin.ongoing { background: linear-gradient(135deg, #34b27b, var(--green)); }
.camp-pin.completed, .camp-pin.cancelled { background: #d8a3b0; }
.bank-pin { font-size: 0 !important; border-radius: 9px; box-shadow: 0 4px 10px rgba(94, 10, 27, .28); background: #fff; }
.bank-pin::before { content: ""; width: 16px; height: 16px; background: var(--red); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%222.1%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Crect x=%226%22 y=%223%22 width=%2212%22 height=%2214.5%22 rx=%223.5%22/%3E%3Cpath d=%22M12 17.5V21%22/%3E%3Cpath d=%22M9.3 10.2h5.4M12 7.5v5.4%22/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%222.1%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Crect x=%226%22 y=%223%22 width=%2212%22 height=%2214.5%22 rx=%223.5%22/%3E%3Cpath d=%22M12 17.5V21%22/%3E%3Cpath d=%22M9.3 10.2h5.4M12 7.5v5.4%22/%3E%3C/svg%3E") center / contain no-repeat; }
.bank-pin.hospital-pin { background: var(--red-dark); }
.bank-pin.hospital-pin::before { background: #fff; -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%222.1%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M4 21V8l8-4.5L20 8v13%22/%3E%3Cpath d=%22M2 21h20%22/%3E%3Cpath d=%22M12 8.5v5M9.5 11h5%22/%3E%3Cpath d=%22M10 21v-3.5h4V21%22/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%222.1%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M4 21V8l8-4.5L20 8v13%22/%3E%3Cpath d=%22M2 21h20%22/%3E%3Cpath d=%22M12 8.5v5M9.5 11h5%22/%3E%3Cpath d=%22M10 21v-3.5h4V21%22/%3E%3C/svg%3E"); }
.donor-pin { background: linear-gradient(135deg, #e2304d, var(--red-dark)); box-shadow: 0 6px 14px rgba(94, 10, 27, .35); }
.donor-pin::after { content: ""; position: absolute; width: 11px; height: 11px; right: -3px; top: -3px; border-radius: 50%; background: var(--coral); border: 2px solid #fff; }
.donor-pin { position: relative; }
.donor-pin.demo::after { background: #b6a7ab; }
.donor-pin.unavailable::after { display: none; }
.legend-bank-sq, .legend-hosp-sq, .legend-bank { width: 14px !important; height: 14px !important; }
.leaflet-popup-content-wrapper { border-radius: 18px !important; box-shadow: 0 16px 38px rgba(94, 10, 27, .22) !important; border-top: 4px solid var(--red); }
.leaflet-popup-content { margin: 14px 16px !important; }
.leaflet-container a.leaflet-popup-close-button { top: 6px !important; right: 6px !important; border-radius: 50%; }

/* ---------- login / registration ---------- */
.auth-side { background: radial-gradient(circle at 80% 15%, rgba(244, 132, 111, .5) 0, transparent 40%), linear-gradient(150deg, #d61b3b, var(--red) 40%, var(--red-dark)); }
.auth-art { width: 170px; filter: drop-shadow(0 16px 24px rgba(94, 10, 27, .35)); }
.auth-art svg { width: 100%; height: auto; display: block; overflow: visible; }
.auth-side li::before { content: "♥"; background: rgba(255, 255, 255, .2); }
.auth-main input:focus, .auth-main select:focus { box-shadow: 0 0 0 4px rgba(244, 132, 111, .22); }
.auth-page { background: radial-gradient(circle at 10% 10%, var(--coral-soft) 0, transparent 30%), radial-gradient(circle at 90% 90%, #ffe0e5 0, transparent 30%), var(--cream); }

/* dashboard + welcome */
.dash-header { position: relative; overflow: hidden; isolation: isolate; background: radial-gradient(circle at 88% 30%, rgba(244, 132, 111, .45) 0, transparent 38%), linear-gradient(118deg, #d61b3b, var(--red) 45%, var(--red-dark)); }
.welcome-hero { background: radial-gradient(circle at 88% 12%, #ffe1e6 0, transparent 42%), radial-gradient(circle at 6% 92%, var(--coral-soft) 0, transparent 38%), linear-gradient(180deg, #fff, var(--cream)); }
.role-card { transition: transform .25s var(--ease-out), box-shadow .25s; }
.role-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }

/* ---------- footer ---------- */
.footer { position: relative; background: linear-gradient(180deg, #6a0c20, #4a0815); margin-top: 110px; }
.footer::before { content: ""; position: absolute; left: 0; right: 0; top: -39px; height: 40px; background: #6a0c20; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 1440 40%22 preserveAspectRatio=%22none%22%3E%3Cpath d=%22M0 40V22C360 0 720 0 1080 18c140 7 260 6 360-4v26z%22 fill=%22black%22/%3E%3C/svg%3E") bottom / 100% 100% no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 1440 40%22 preserveAspectRatio=%22none%22%3E%3Cpath d=%22M0 40V22C360 0 720 0 1080 18c140 7 260 6 360-4v26z%22 fill=%22black%22/%3E%3C/svg%3E") bottom / 100% 100% no-repeat; }
.footer li.has-ico, .footer a.has-ico { display: inline-flex; align-items: center; gap: 8px; }
.footer .ico { width: 16px; height: 16px; flex: none; color: var(--coral); }
.footer a { transition: color .2s, transform .25s var(--ease-out); }
.footer a:hover { transform: translateX(4px); }
.footer a:hover .ico { color: #fff; }
.footer h4 { display: flex; align-items: center; gap: 8px; }
.footer h4::before { content: ""; width: 10px; height: 13px; background: var(--coral); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22black%22%3E%3Cpath d=%22M12 2.8C9 7.2 6 10.2 6 14.2a6 6 0 0 0 12 0c0-4-3-7-6-11.4z%22/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22black%22%3E%3Cpath d=%22M12 2.8C9 7.2 6 10.2 6 14.2a6 6 0 0 0 12 0c0-4-3-7-6-11.4z%22/%3E%3C/svg%3E") center / contain no-repeat; }
.footer-bottom { border-top-color: rgba(253, 228, 221, .14); }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
    .ph-art { width: 190px; }
    .has-bindu.ph-has-art .bindu-header { right: 150px; width: 86px; height: 86px; }
}
@media (max-width: 760px) {
    .page-header { padding-bottom: 64px; }
    .page-header .ph-has-art { display: block; }
    .ph-art { position: absolute; right: 0; top: -6px; width: 104px; }
    .page-header .ph-has-art:not(.has-bindu) h1, .page-header .ph-has-art:not(.has-bindu) > p:first-of-type { padding-right: 108px; }
    .has-bindu.ph-has-art .ph-art { display: none; }
    .page-header.is-emergency .ph-art, .page-header.is-terms .ph-art { width: 96px; }
    .has-bindu.ph-has-art .bindu-header { right: 10px; width: 64px; height: 64px; top: 10px; bottom: auto; }
    .ph-chips li { font-size: .78rem; }
    .sos-bar { grid-template-columns: auto minmax(0, 1fr); padding: 16px; }
    .sos-actions { grid-column: 1 / -1; justify-content: stretch; }
    .sos-actions .btn { flex: 1 1 auto; justify-content: center; }
    .sos-symbol { width: 60px; height: 60px; } .sos-symbol svg { width: 46px; height: 46px; }
    .auth-art { width: 120px; }
    .footer { margin-top: 90px; }
}
@media (prefers-reduced-motion: reduce) {
    .floater, .art-bob, .art-heart, .art-flag, .art-twinkle, .art-wave, .sos-rays path, .sos-symbol::after, .sos-bar::before,
    .btn-glow::before, .btn-glow::after, .nav-links a.nav-emergency .ico, .critical-dot { animation: none !important; }
    .sos-ecg { animation: none; stroke-dashoffset: 0; }
    .btn:hover, .footer a:hover, .role-card:hover { transform: none; }
}

/* ==========================================================
   26. ADMIN ANALYTICS DASHBOARD (admin.html, js/admin.js)
   ========================================================== */
.admin-page { padding-top: 0; background: radial-gradient(circle at 100% 0, var(--coral-soft, #fde4dd) 0, transparent 30%), var(--cream, #fff8f1); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.adm { display: grid; grid-template-columns: 236px minmax(0, 1fr); min-height: 100vh; }
.adm-side { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 18px; padding: 22px 16px; background: #fff; border-right: 1px solid var(--line); }
.adm-brand { display: flex; align-items: center; gap: 10px; padding: 0 6px; }
.adm-brand b { font-family: var(--font-display, inherit); font-size: 1.2rem; display: block; line-height: 1.1; }
.adm-brand small { color: var(--muted); font-weight: 700; font-size: .74rem; text-transform: uppercase; letter-spacing: .08em; }
.adm-nav { display: grid; gap: 4px; }
.adm-nav a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; font-weight: 700; color: var(--muted); font-size: .92rem; transition: background .2s, color .2s, transform .2s; }
.adm-nav a .ico { width: 18px; height: 18px; flex: none; }
.adm-nav a:hover { background: var(--red-tint); color: var(--red-dark); transform: translateX(3px); }
.adm-nav a.active { background: linear-gradient(120deg, var(--red), var(--red-dark)); color: #fff; box-shadow: 0 8px 18px rgba(200, 16, 46, .25); }
.adm-who { margin-top: auto; display: grid; gap: 8px; padding: 12px; border-radius: 14px; background: var(--cream, #fff8f1); font-weight: 700; font-size: .9rem; }
.adm-who .btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.adm-who .ico { width: 15px; height: 15px; }
.adm-main { padding: 26px clamp(16px, 3vw, 36px) 60px; min-width: 0; }
.adm-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 18px; flex-wrap: wrap; margin-bottom: 16px; }
.adm-top h1 { font-size: clamp(1.7rem, 3vw, 2.4rem); line-height: 1.1; }
.adm-sub { color: var(--muted); max-width: 640px; }
.adm-top-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.adm-top-actions .btn, #admExport2 { display: inline-flex; align-items: center; gap: 8px; }
.adm-top-actions .ico, #admExport2 .ico { width: 16px; height: 16px; }
.adm-switch { display: inline-flex; background: #fff; border: 1.5px solid var(--line); border-radius: 999px; padding: 4px; }
.adm-switch button { border: 0; background: none; padding: 8px 14px; border-radius: 999px; font: inherit; font-weight: 700; font-size: .85rem; color: var(--muted); cursor: pointer; }
.adm-switch button[aria-checked="true"] { background: var(--red); color: #fff; }
.adm-switch button[data-source="demo"][aria-checked="true"] { background: #6b5d61; }
.adm-banner { border-radius: 16px; padding: 14px 18px; margin-bottom: 14px; background: #fff; border: 1.5px solid var(--line); font-size: .92rem; }
.adm-banner.demo { background: repeating-linear-gradient(-45deg, #fff7f2 0 14px, #fdeee3 14px 28px); border: 2px dashed #6b5d61; color: #4a3d41; }
.adm-banner.empty { background: var(--green-soft); border-color: #bfe6d1; }
.adm-banner .btn { margin-left: 6px; }
.adm-filters { position: sticky; top: 0; z-index: 20; display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; padding: 12px 14px; margin: 0 0 18px; background: rgba(255, 255, 255, .92); backdrop-filter: blur(10px); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 6px 18px rgba(143, 11, 33, .06); }
.adm-filters label { display: grid; gap: 3px; font-size: .74rem; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; flex: 1 1 130px; min-width: 0; }
.adm-filters input, .adm-filters select, .adm-tbar input, .adm-tbar select, .adm-form input, .adm-form select, .adm-camp input {
    font: inherit; font-size: .9rem; text-transform: none; letter-spacing: 0; font-weight: 600; color: var(--ink); padding: 9px 10px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; width: 100%; min-width: 0;
}
.adm-filters input:focus, .adm-filters select:focus, .adm-tbar input:focus, .adm-tbar select:focus, .adm-form input:focus, .adm-form select:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(200, 16, 46, .12); }
.adm-status { font-size: .8rem; color: var(--muted); font-weight: 600; flex-basis: 100%; }
.adm-error { background: var(--red-soft); color: var(--red-dark); padding: 12px 16px; border-radius: 14px; font-weight: 600; margin-bottom: 14px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

/* stat cards */
.adm-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 28px; }
.adm-card { position: relative; overflow: hidden; background: #fff; border-radius: 22px; padding: 16px 18px 14px; border: 1px solid var(--line); box-shadow: var(--shadow); transition: transform .25s var(--ease-out, ease), box-shadow .25s; animation: fadeUp .45s ease both; }
.adm-card:nth-child(2) { animation-delay: .04s; } .adm-card:nth-child(3) { animation-delay: .08s; } .adm-card:nth-child(4) { animation-delay: .12s; }
.adm-card:nth-child(5) { animation-delay: .16s; } .adm-card:nth-child(6) { animation-delay: .2s; } .adm-card:nth-child(7) { animation-delay: .24s; } .adm-card:nth-child(8) { animation-delay: .28s; }
.adm-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.adm-card::after { content: ""; position: absolute; right: -26px; top: -26px; width: 92px; height: 92px; border-radius: 50%; background: var(--tone-soft); opacity: .7; }
.adm-card.tone-red { --tone: var(--red); --tone-soft: #ffe1e6; }
.adm-card.tone-coral { --tone: #d9604c; --tone-soft: #fde4dd; }
.adm-card.tone-green { --tone: var(--green); --tone-soft: #dff3e8; }
.adm-card-top { display: flex; justify-content: space-between; align-items: center; position: relative; z-index: 1; }
.adm-card-ico { width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; color: #fff; background: var(--tone); box-shadow: 0 6px 14px rgba(94, 10, 27, .18); }
.adm-card-ico .ico { width: 22px; height: 22px; }
.adm-card-emoji { font-size: 1.5rem; position: relative; z-index: 1; }
.adm-card-num { font-family: var(--font-display, inherit); font-size: 2.1rem; font-weight: 800; color: var(--ink); margin-top: 10px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.adm-card-label { font-weight: 700; font-size: .9rem; color: var(--ink); }
.adm-card-label small { color: var(--muted); font-weight: 600; }
.adm-card-trend { margin-top: 8px; font-size: .78rem; font-weight: 700; padding: 5px 9px; border-radius: 10px; display: inline-block; }
.adm-card-trend small { font-weight: 600; opacity: .8; }
.adm-card-trend.up { background: #dff3e8; color: var(--green); }
.adm-card-trend.down { background: #fde4dd; color: #a53a28; }
.adm-card-trend.same, .adm-card-trend.none { background: #f6eef0; color: var(--muted); }
.adm-card.is-loading .adm-card-num { color: transparent; background: linear-gradient(90deg, #f6e9ec 25%, #fff 50%, #f6e9ec 75%); background-size: 200% 100%; border-radius: 10px; animation: admShimmer 1.2s infinite; width: 60%; }
@keyframes admShimmer { to { background-position: -200% 0; } }

/* sections + charts */
.adm-section { margin-bottom: 34px; scroll-margin-top: 110px; }
.adm-head { margin-bottom: 14px; }
.adm-head h2 { font-size: clamp(1.35rem, 2.4vw, 1.75rem); display: flex; align-items: center; gap: 10px; }
.adm-head h2::before { content: ""; width: 12px; height: 16px; background: var(--red); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22%3E%3Cpath d=%22M12 2.8C9 7.2 6 10.2 6 14.2a6 6 0 0 0 12 0c0-4-3-7-6-11.4z%22/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22%3E%3Cpath d=%22M12 2.8C9 7.2 6 10.2 6 14.2a6 6 0 0 0 12 0c0-4-3-7-6-11.4z%22/%3E%3C/svg%3E") center / contain no-repeat; }
.adm-head p { color: var(--muted); font-size: .92rem; max-width: 760px; }
.adm-grid { display: grid; gap: 16px; }
.adm-grid.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.adm-grid.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.adm-grid + .adm-grid, .adm-mini + .adm-grid, .adm-impact-grid + .adm-grid { margin-top: 16px; }
.adm-box { background: #fff; border-radius: 22px; padding: 18px; border: 1px solid var(--line); box-shadow: var(--shadow); min-width: 0; margin: 0; }
.adm-box + .adm-box { margin-top: 16px; }
.adm-grid > .adm-box + .adm-box { margin-top: 0; }
.adm-box h3 { font-size: 1.02rem; display: flex; align-items: center; gap: 8px; }
.adm-box h3 .ico { width: 18px; height: 18px; color: var(--red); }
.adm-chart figcaption p { color: var(--muted); font-size: .8rem; margin-bottom: 8px; }
.adm-canvas { position: relative; height: 250px; }
.adm-chart.tall .adm-canvas { height: 290px; }
.adm-chart-empty { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; color: var(--muted); font-weight: 600; font-size: .9rem; background: repeating-linear-gradient(-45deg, #fffaf6 0 10px, #fff 10px 20px); border-radius: 16px; padding: 16px; }
.adm-spinner, .adm-spin { width: 28px; height: 28px; border-radius: 50%; border: 3px solid #f6dbe1; border-top-color: var(--red); animation: admSpin .8s linear infinite; }
.adm-spinner { position: absolute; left: 50%; top: 50%; margin: -14px; display: none; }
.adm-chart.is-loading .adm-spinner { display: block; }
.adm-chart.is-loading canvas { opacity: .25; }
.adm-spin { display: inline-block; width: 16px; height: 16px; border-width: 2px; vertical-align: -3px; }
@keyframes admSpin { to { transform: rotate(360deg); } }
.adm-year { margin-top: 16px; background: linear-gradient(120deg, var(--red), var(--red-dark)); color: #fff; border-radius: 24px; padding: 18px 20px; position: relative; overflow: hidden; }
.adm-year::after { content: ""; position: absolute; right: -40px; bottom: -60px; width: 220px; height: 220px; border-radius: 50%; background: rgba(255, 255, 255, .07); }
.adm-year-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.adm-year-head label { font-weight: 700; display: flex; gap: 8px; align-items: center; }
.adm-year-head select { font: inherit; font-weight: 700; padding: 6px 10px; border-radius: 10px; border: 0; color: var(--red-dark); }
.adm-year-nums { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; position: relative; z-index: 1; }
.adm-year-nums div { background: rgba(255, 255, 255, .13); border-radius: 16px; padding: 12px; display: grid; gap: 2px; }
.adm-year-nums b { font-family: var(--font-display, inherit); font-size: 1.6rem; }
.adm-year-nums small { opacity: .9; font-weight: 600; font-size: .78rem; }
.adm-year .adm-empty { color: #fff; }
.adm-mini { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px; }
.adm-mini-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 12px; display: grid; gap: 2px; align-content: start; box-shadow: var(--shadow); }
.adm-mini-card > span { font-size: 1.2rem; }
.adm-mini-card b { font-family: var(--font-display, inherit); font-size: 1.35rem; line-height: 1.2; }
.adm-mini-card small { color: var(--muted); font-weight: 700; font-size: .76rem; }
.adm-mini-card small i { font-weight: 500; font-style: normal; opacity: .85; }

/* impact */
.adm-impact { background: linear-gradient(180deg, #fff, #fff4ee); border-radius: 28px; padding: 22px; border: 1px solid #f6d5cb; }
.adm-impact-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.adm-impact-tile { background: #fff; border-radius: 20px; padding: 16px 12px; text-align: center; display: grid; justify-items: center; gap: 2px; border: 1px solid var(--line); transition: transform .25s; }
.adm-impact-tile:hover { transform: translateY(-3px); }
.adm-impact-tile .ico { width: 30px; height: 30px; color: var(--red); background: #ffe8e4; border-radius: 12px; padding: 6px; box-sizing: content-box; margin-bottom: 4px; }
.adm-impact-tile:nth-child(even) .ico { color: var(--green); background: #e3f4eb; }
.adm-impact-tile b { font-family: var(--font-display, inherit); font-size: 1.7rem; line-height: 1.1; }
.adm-impact-tile span { font-weight: 800; font-size: .86rem; }
.adm-impact-tile small { color: var(--muted); font-size: .74rem; }
.adm-timeline { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 0; }
.adm-timeline li { display: grid; grid-template-columns: 70px 1fr; gap: 12px; padding: 0 0 16px; position: relative; }
.adm-timeline li::before { content: ""; position: absolute; left: 34px; top: 30px; bottom: 0; width: 2px; background: var(--line); }
.adm-timeline li:last-child::before { display: none; }
.adm-tl-year { font-family: var(--font-display, inherit); font-weight: 800; background: var(--red); color: #fff; border-radius: 12px; padding: 4px 0; text-align: center; height: fit-content; position: relative; z-index: 1; }
.adm-timeline li:first-child .adm-tl-year { background: var(--green); }
.adm-timeline small { display: block; color: var(--muted); }
.adm-rules { margin-top: 16px; background: #fff; border-left: 4px solid var(--green); border-radius: 14px; padding: 14px 16px; font-size: .9rem; }
.adm-rules ul { margin: 6px 0 0 18px; display: grid; gap: 4px; color: var(--muted); }
.adm-rules b { color: var(--ink); }

/* management */
.adm-tabs { display: flex; gap: 6px; background: #fff; padding: 6px; border-radius: 999px; border: 1px solid var(--line); width: fit-content; max-width: 100%; overflow-x: auto; margin-bottom: 14px; }
.adm-tabs button { border: 0; background: none; padding: 9px 16px; border-radius: 999px; font: inherit; font-weight: 700; color: var(--muted); cursor: pointer; white-space: nowrap; display: inline-flex; gap: 6px; align-items: center; }
.adm-tabs button[aria-selected="true"] { background: var(--red); color: #fff; }
.adm-badge { background: var(--coral, #f4846f); color: #fff; border-radius: 999px; font-size: .72rem; padding: 1px 7px; }
.adm-tbar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.adm-tbar > * { flex: 1 1 150px; width: auto; }
.adm-tbar input[type=search] { flex: 2 1 220px; }
.adm-count, .adm-hint { color: var(--muted); font-size: .84rem; margin: 4px 0 8px; }
.adm-empty { color: var(--muted); font-style: italic; padding: 10px 0; }
.adm-loading { color: var(--muted); padding: 14px 0; display: flex; gap: 8px; align-items: center; font-weight: 600; }
.adm-table-wrap { overflow-x: auto; border-radius: 16px; border: 1px solid var(--line); background: #fff; }
.adm-table { width: 100%; border-collapse: collapse; font-size: .87rem; }
.adm-table th { text-align: left; background: #fff4f1; color: var(--red-dark); font-size: .74rem; text-transform: uppercase; letter-spacing: .05em; padding: 10px 12px; white-space: nowrap; }
.adm-table td { padding: 10px 12px; border-top: 1px solid #f7e4e8; vertical-align: top; }
.adm-table tbody tr:hover { background: #fffaf7; }
.adm-table td small { display: block; color: var(--muted); }
.adm-table .pill { font-size: .72rem; }
.adm-group { display: inline-grid; place-items: center; min-width: 38px; padding: 3px 8px; border-radius: 999px; background: var(--red-tint); color: var(--red-dark); font-weight: 800; font-size: .8rem; }
.adm-reveal { border: 1px dashed var(--line); background: #fff; border-radius: 8px; padding: 3px 8px; font: inherit; font-size: .84rem; cursor: pointer; font-variant-numeric: tabular-nums; }
.adm-acts { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.adm-form { display: grid; gap: 10px; align-content: start; }
.adm-form label, .adm-camp label { display: grid; gap: 4px; font-size: .8rem; font-weight: 700; color: var(--muted); }
.adm-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.adm-check { display: flex !important; gap: 8px; align-items: flex-start; font-size: .86rem !important; color: var(--ink) !important; }
.adm-check input { width: auto !important; margin-top: 3px; }
.adm-camp { display: grid; gap: 10px; }
.adm-camp p { color: var(--muted); font-size: .88rem; margin-top: 4px; }
.adm-sub-h { margin: 14px 0 10px; font-size: 1rem; }
.adm-toast { position: fixed; right: 20px; bottom: 20px; z-index: 50; background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 14px; font-weight: 600; box-shadow: 0 14px 30px rgba(0, 0, 0, .2); max-width: min(420px, calc(100% - 40px)); animation: fadeUp .3s ease; }
.adm-toast.ok { background: var(--green); } .adm-toast.err { background: var(--red-dark); }
.adm-gate { min-height: 70vh; display: grid; place-content: center; justify-items: center; text-align: center; gap: 12px; padding: 40px 16px; color: var(--muted); font-weight: 600; }
.adm-gate h1 { color: var(--ink); }
.adm-gate p { max-width: 520px; }
.adm-gate-ico { width: 74px; height: 74px; border-radius: 24px; display: grid; place-items: center; background: linear-gradient(135deg, var(--red), var(--red-dark)); color: #fff; }
.adm-gate-ico .ico { width: 38px; height: 38px; }
.admin-login-logo { display: inline-flex; margin-bottom: 14px; }
.admin-login-page .auth-shell { margin-top: 40px; }
.admin-login-note { margin-top: 14px; text-align: center; }

@media (max-width: 1180px) {
    .adm-mini { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .adm-impact-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .adm-year-nums { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .adm-grid.g3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
    .adm { grid-template-columns: 1fr; }
    .adm-side { position: sticky; top: 0; z-index: 30; height: auto; flex-direction: row; align-items: center; padding: 10px 12px; gap: 10px; border-right: 0; border-bottom: 1px solid var(--line); overflow-x: auto; }
    .adm-brand small { display: none; }
    .adm-nav { display: flex; gap: 4px; }
    .adm-nav a { padding: 8px 10px; white-space: nowrap; font-size: .82rem; }
    .adm-nav a:hover { transform: none; }
    .adm-who { margin: 0 0 0 auto; padding: 0; background: none; display: flex; }
    .adm-who > span { display: none; }
    .adm-filters { top: 58px; }
    .adm-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .adm-grid.g2, .adm-grid.g3 { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
    .adm-main { padding: 18px 12px 50px; }
    .adm-filters { position: static; }
    .adm-filters label { flex: 1 1 42%; }
    .adm-card { padding: 14px; border-radius: 18px; }
    .adm-card-num { font-size: 1.6rem; }
    .adm-card-label { font-size: .8rem; }
    .adm-card-emoji { font-size: 1.2rem; }
    .adm-card-ico { width: 36px; height: 36px; }
    .adm-card-trend small { display: none; }
    .adm-mini { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .adm-impact { padding: 14px; }
    .adm-impact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .adm-year-nums { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .adm-canvas, .adm-chart.tall .adm-canvas { height: 240px; }
    .adm-form-row { grid-template-columns: 1fr; }
    .adm-top-actions { width: 100%; }
    .adm-switch { flex: 1; } .adm-switch button { flex: 1; padding: 8px 6px; }
    /* tables become cards */
    .adm-table thead { display: none; }
    .adm-table, .adm-table tbody, .adm-table tr, .adm-table td { display: block; width: 100%; }
    .adm-table tr { border-top: 1px solid var(--line); padding: 8px 4px; }
    .adm-table td { border: 0; padding: 4px 10px; display: grid; grid-template-columns: 96px 1fr; gap: 8px; }
    .adm-table td[data-l]::before { content: attr(data-l); font-size: .72rem; font-weight: 800; color: var(--muted); text-transform: uppercase; }
    .adm-table td:not([data-l]) { display: block; }
}
@media (prefers-reduced-motion: reduce) {
    .adm-card, .adm-toast { animation: none; }
    .adm-card:hover, .adm-impact-tile:hover, .adm-nav a:hover { transform: none; }
    .adm-card.is-loading .adm-card-num { animation: none; }
}
.adm-mini.fb-mini { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.adm-sugg { margin-top: 16px; }
.adm-sugg-list { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 10px; max-height: 380px; overflow-y: auto; }
.adm-sugg-list li { background: var(--cream, #fff8f1); border-left: 4px solid var(--coral, #f4846f); border-radius: 12px; padding: 10px 14px; }
.adm-sugg-list p { font-weight: 600; overflow-wrap: anywhere; }
.adm-sugg-list small { color: var(--muted); }
@media (max-width: 600px) { .adm-mini.fb-mini { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ==========================================================
   27. FEEDBACK FORM  (js/feedback.js)
   ========================================================== */
.feedback-section { padding-top: 40px; }
.fb-card { position: relative; overflow: hidden; isolation: isolate; max-width: 880px; margin: 0 auto; background: #fff; border-radius: 28px; padding: 32px clamp(18px, 4vw, 40px) 30px; border: 1px solid var(--line); box-shadow: 0 18px 50px rgba(143, 11, 33, .1); }
.fb-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 220px; z-index: -1; -webkit-mask-image: linear-gradient(#000 45%, transparent); mask-image: linear-gradient(#000 45%, transparent); background: radial-gradient(circle at 15% 0, var(--coral-soft, #fde4dd) 0, transparent 55%), radial-gradient(circle at 90% 10%, #ffe1e6 0, transparent 50%); }
.fb-deco { position: absolute; z-index: -1; color: var(--coral, #f4846f); opacity: .22; animation: floatUp 8s ease-in-out infinite; }
.fb-deco svg { width: 100%; height: 100%; fill: currentColor; }
.fb-deco.d1 { width: 34px; height: 34px; right: 7%; top: 26px; }
.fb-deco.d2 { width: 26px; height: 26px; left: 6%; top: 40px; color: var(--red); animation-delay: -3s; }
.fb-deco.d3 { width: 20px; height: 20px; right: 18%; top: 92px; animation-delay: -5s; }
.fb-head { text-align: center; margin-bottom: 22px; }
.fb-badge { width: 58px; height: 58px; border-radius: 20px; display: inline-grid; place-items: center; color: #fff; background: linear-gradient(135deg, #e2304d, var(--red-dark)); box-shadow: 0 10px 24px rgba(200, 16, 46, .3); margin-bottom: 10px; animation: dropBeat 2.4s ease-in-out infinite; }
.fb-badge svg { width: 30px; height: 30px; fill: currentColor; }
.fb-badge.small { width: 40px; height: 40px; border-radius: 14px; margin: 0; flex: none; }
.fb-badge.small svg { width: 20px; height: 20px; }
.fb-head h2 { font-size: clamp(1.45rem, 3.2vw, 2rem); margin-bottom: 6px; }
.fb-head p { color: var(--muted); max-width: 520px; margin: 0 auto; }
.fb-time { display: inline-block; margin-top: 10px; font-weight: 700; color: var(--green); background: var(--green-soft); padding: 4px 12px; border-radius: 999px; font-size: .8rem; }
.fb-note { margin-top: 10px !important; font-size: .84rem; background: #fff7f2; border: 1.5px dashed #6b5d61; border-radius: 12px; padding: 8px 12px; color: #4a3d41 !important; }
.fb-form { display: grid; gap: 16px; }
.fb-q { border: 0; margin: 0; padding: 14px 16px 16px; border-radius: 20px; background: var(--cream, #fff8f1); transition: box-shadow .2s, background .2s; }
.fb-q legend, .fb-legend { float: left; width: 100%; display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: .98rem; margin-bottom: 10px; padding: 0; }
.fb-q legend + * { clear: both; }
.fb-num { width: 26px; height: 26px; border-radius: 50%; display: inline-grid; place-items: center; flex: none; background: var(--red); color: #fff; font-size: .8rem; }
.fb-req { font-weight: 600; color: var(--muted); font-size: .8rem; }
.fb-options { display: grid; gap: 10px; }
.fb-options.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.fb-options.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.fb-opt { position: relative; cursor: pointer; display: block; }
.fb-opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.fb-opt-box { position: relative; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 6px; padding: 14px 10px; border-radius: 16px; background: #fff; border: 2px solid var(--line); font-weight: 700; font-size: .88rem; line-height: 1.3; transition: transform .2s var(--ease-out, ease), border-color .2s, background .2s, box-shadow .2s; }
.fb-emoji { font-size: 1.6rem; line-height: 1; transition: transform .25s var(--ease-out, ease); }
.fb-tick { position: absolute; top: 7px; right: 7px; width: 20px; height: 20px; border-radius: 50%; background: var(--green); color: #fff; font-size: .7rem; display: grid; place-items: center; transform: scale(0); transition: transform .25s var(--ease-out, ease); }
.fb-opt:hover .fb-opt-box { border-color: #f2a3b3; transform: translateY(-2px); box-shadow: 0 8px 18px rgba(143, 11, 33, .08); }
.fb-opt input:focus-visible + .fb-opt-box { outline: 3px solid rgba(200, 16, 46, .35); outline-offset: 2px; }
.fb-opt input:checked + .fb-opt-box { border-color: var(--red); background: #fff0f3; box-shadow: 0 8px 20px rgba(200, 16, 46, .14); }
.fb-opt input:checked + .fb-opt-box .fb-emoji { transform: scale(1.18); }
.fb-opt input:checked + .fb-opt-box .fb-tick { transform: scale(1); }
.fb-q.invalid { background: #fff0ed; box-shadow: inset 4px 0 0 var(--coral-deep, #d9604c); }
.fb-error { color: #a53a28; font-weight: 700; font-size: .84rem; margin-top: 8px; }
.fb-q textarea { width: 100%; font: inherit; font-size: .95rem; padding: 12px 14px; border-radius: 14px; border: 2px solid var(--line); background: #fff; resize: vertical; min-height: 64px; }
.fb-q textarea:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 4px rgba(244, 132, 111, .2); }
.fb-under { display: flex; justify-content: space-between; gap: 10px; margin-top: 6px; color: var(--muted); font-size: .78rem; }
.fb-count { white-space: nowrap; font-variant-numeric: tabular-nums; }
.fb-alert { background: var(--red-soft); color: var(--red-dark); font-weight: 700; border-radius: 12px; padding: 10px 14px; font-size: .9rem; }
.fb-submit { justify-self: center; min-width: 260px; padding: 15px 30px; border-radius: 999px; font-size: 1.02rem; }
.fb-thanks { text-align: center; padding: 18px 8px 6px; outline: none; animation: fadeUp .4s ease; }
.fb-thanks-art { position: relative; width: 92px; height: 92px; margin: 0 auto 14px; display: grid; place-items: center; border-radius: 50%; background: radial-gradient(circle, #ffe1e6, #fff0f3); animation: fbPop .6s var(--ease-out, ease); }
.fb-thanks-art > svg { width: 52px; height: 52px; fill: var(--red); animation: dropBeat 1.8s ease-in-out infinite; }
.fb-thanks-art span { position: absolute; right: 2px; bottom: 6px; width: 30px; height: 30px; border-radius: 50%; background: var(--green); display: grid; place-items: center; }
.fb-thanks-art span svg { width: 16px; height: 16px; fill: #fff; }
.fb-thanks-text { font-weight: 700; font-size: 1.08rem; max-width: 560px; margin: 0 auto; }
.fb-saved { color: var(--muted); font-size: .85rem; margin-top: 8px; }
@keyframes fbPop { 0% { transform: scale(.4); opacity: 0; } 70% { transform: scale(1.08); } 100% { transform: scale(1); opacity: 1; } }

/* compact form inside the small card */
.fb-card.compact { box-shadow: none; border: 0; padding: 4px 2px 6px; border-radius: 0; }
.fb-card.compact::before, .fb-card.compact .fb-deco { display: none; }
.fb-card.compact .fb-badge { display: none; }
.fb-card.compact .fb-head { margin-bottom: 12px; }
.fb-card.compact .fb-head h2 { font-size: 1.2rem; }
.fb-card.compact .fb-options.four, .fb-card.compact .fb-options.three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.fb-card.compact .fb-opt-box { flex-direction: row; justify-content: flex-start; text-align: left; padding: 10px; font-size: .82rem; }
.fb-card.compact .fb-emoji { font-size: 1.2rem; }
.fb-card.compact .fb-submit { min-width: 0; width: 100%; }
.fb-nudge { position: fixed; left: 18px; bottom: 18px; z-index: 2600; width: min(360px, calc(100% - 36px)); background: #fff; border-radius: 22px; padding: 16px; box-shadow: 0 20px 50px rgba(94, 10, 27, .25); border: 1px solid var(--line); animation: fadeUp .35s ease; }
.fb-nudge.open { width: min(560px, calc(100% - 36px)); max-height: min(82vh, 760px); overflow-y: auto; }
.fb-nudge-intro { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; padding-right: 22px; }
.fb-nudge-intro p { font-size: .92rem; color: var(--muted); }
.fb-nudge-intro b { color: var(--ink); }
.fb-nudge-acts { grid-column: 1 / -1; display: flex; gap: 8px; }
.fb-nudge-x { position: absolute; top: 8px; right: 8px; z-index: 2; width: 30px; height: 30px; border-radius: 50%; border: 0; background: var(--red-soft); color: var(--red-dark); font-size: 1.15rem; cursor: pointer; }
.footer a.fb-link { color: inherit; }

@media (max-width: 760px) {
    .fb-options.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .fb-options.three { grid-template-columns: 1fr; }
    .fb-options.three .fb-opt-box { flex-direction: row; justify-content: flex-start; text-align: left; padding: 12px 14px; }
    .fb-submit { width: 100%; min-width: 0; }
    .fb-card { border-radius: 22px; }
}
@media (max-width: 600px) {
    .fb-nudge { left: 10px; right: 10px; bottom: 10px; width: auto; }
    .fb-nudge.open { width: auto; max-height: 88vh; }
    .fb-card.compact .fb-options.three { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
    .fb-deco, .fb-badge, .fb-thanks-art, .fb-thanks-art > svg, .fb-nudge, .fb-thanks { animation: none; }
    .fb-opt:hover .fb-opt-box { transform: none; }
    .fb-emoji, .fb-tick, .fb-opt-box { transition: none; }
}

/* ==========================================================
   28. PUBLIC DASHBOARD  (statistics.html, js/stats.js)
   ========================================================== */
.st-page { padding-bottom: 20px; }
.st-bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 10px 12px; box-shadow: var(--shadow); margin-bottom: 14px; }
.st-updated { color: var(--muted); font-size: .84rem; font-weight: 600; margin-left: auto; }
.st-switch { display: inline-flex; background: var(--cream, #fff8f1); border: 1.5px solid var(--line); border-radius: 999px; padding: 4px; gap: 2px; }
.st-switch button { border: 0; background: none; padding: 8px 14px; border-radius: 999px; font: inherit; font-weight: 700; font-size: .85rem; color: var(--muted); cursor: pointer; transition: background .2s, color .2s; }
.st-switch button[aria-checked="true"] { background: var(--red); color: #fff; box-shadow: 0 4px 10px rgba(200, 16, 46, .25); }
.st-switch button[data-src="demo"][aria-checked="true"] { background: #6b5d61; box-shadow: none; }
.st-switch.small button { padding: 6px 12px; font-size: .8rem; }
.st-banner { border-radius: 16px; padding: 12px 16px; margin-bottom: 14px; font-size: .92rem; background: #fff; border: 1.5px solid var(--line); }
.st-banner.demo { background: repeating-linear-gradient(-45deg, #fff7f2 0 14px, #fdeee3 14px 28px); border: 2px dashed #6b5d61; color: #4a3d41; }
.st-banner.empty { background: var(--green-soft); border-color: #bfe6d1; }
.st-banner .btn { margin-left: 4px; }
.st-error { background: var(--red-soft); color: var(--red-dark); font-weight: 700; padding: 12px 16px; border-radius: 14px; margin-bottom: 14px; }
.st-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.st-card { --tone: var(--red); --soft: #ffe1e6; position: relative; overflow: hidden; background: #fff; border-radius: 22px; padding: 18px; border: 1px solid var(--line); box-shadow: var(--shadow); transition: transform .25s var(--ease-out, ease), box-shadow .25s; }
.st-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.st-card::after { content: ""; position: absolute; right: -24px; top: -24px; width: 90px; height: 90px; border-radius: 50%; background: var(--soft); opacity: .75; }
.st-card.tone-orange { --tone: #e07a12; --soft: #fde9d4; }
.st-card.tone-green { --tone: var(--green); --soft: #dff3e8; }
.st-card.tone-teal { --tone: #0f8b8d; --soft: #d9f1f1; }
.st-card.is-demo { border-style: dashed; }
.st-card-top { display: flex; justify-content: space-between; align-items: center; position: relative; z-index: 1; }
.st-ico { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; color: #fff; background: var(--tone); box-shadow: 0 6px 14px rgba(94, 10, 27, .16); }
.st-ico .ico { width: 22px; height: 22px; }
.st-emoji { font-size: 1.5rem; position: relative; z-index: 1; }
.st-num { display: block; font-family: var(--font-display, inherit); font-size: 2.2rem; line-height: 1.1; margin-top: 10px; font-variant-numeric: tabular-nums; color: var(--ink); }
.st-card h3 { font-size: 1rem; margin-top: 2px; }
.st-card p { color: var(--muted); font-size: .84rem; margin-top: 2px; }
.st-month { display: inline-block; margin-top: 10px; font-size: .78rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--soft); color: var(--tone); }
.is-loading .st-num { opacity: .35; }
.st-grid.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.st-box { background: #fff; border-radius: 24px; padding: 20px; border: 1px solid var(--line); box-shadow: var(--shadow); margin: 0 0 16px; min-width: 0; }
.st-box h2 { font-size: 1.25rem; }
.st-box figcaption p { color: var(--muted); font-size: .86rem; margin-bottom: 10px; }
.st-head-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.st-canvas { position: relative; height: 260px; }
.st-canvas.tall { height: 320px; }
.st-canvas.pie { height: 240px; }
.st-empty { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; color: var(--muted); font-weight: 700; border-radius: 16px; background: repeating-linear-gradient(-45deg, #fffaf6 0 10px, #fff 10px 20px); padding: 16px; }
.st-pie-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; align-items: center; }
.st-legend { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.st-legend li { display: grid; grid-template-columns: 14px 1fr auto auto; gap: 8px; align-items: center; font-size: .86rem; font-weight: 600; }
.st-legend b { font-variant-numeric: tabular-nums; }
.st-legend small { color: var(--muted); min-width: 34px; text-align: right; font-weight: 700; }
.st-legend-total { border-top: 1px dashed var(--line); padding-top: 8px; color: var(--muted); }
.st-dot { width: 12px; height: 12px; border-radius: 4px; }
.st-note { margin-top: 12px; font-size: .8rem; color: var(--muted); background: var(--cream, #fff8f1); border-radius: 12px; padding: 10px 12px; }
.st-common { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; background: #fff0f3; border-radius: 16px; padding: 10px 12px; }
.st-common b { display: block; }
.st-common small { color: var(--muted); }
.st-drop { width: 46px; height: 46px; flex: none; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: .9rem; background: linear-gradient(135deg, #e2304d, var(--red-dark)); border-radius: 50% 0 50% 50%; transform: rotate(-45deg); }
.st-drop i { transform: rotate(45deg); font-style: normal; }
.st-leaders { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.st-leaders span { background: var(--cream, #fff8f1); border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; font-size: .84rem; }
.st-rules { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 14px 18px; margin-bottom: 10px; }
.st-rules summary { font-weight: 800; cursor: pointer; }
.st-rules ul { margin: 10px 0 0 18px; display: grid; gap: 6px; color: var(--muted); font-size: .9rem; }
@media (max-width: 960px) { .st-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } .st-grid.two { grid-template-columns: 1fr; } }
@media (max-width: 600px) {
    .st-cards { gap: 10px; }
    .st-card { padding: 14px; border-radius: 18px; }
    .st-num { font-size: 1.7rem; }
    .st-card h3 { font-size: .88rem; }
    .st-card p { font-size: .76rem; }
    .st-emoji { font-size: 1.2rem; }
    .st-ico { width: 36px; height: 36px; }
    .st-pie-wrap { grid-template-columns: 1fr; }
    .st-canvas.tall { height: 300px; }
    .st-box { padding: 16px; border-radius: 20px; }
    .st-updated { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) { .st-card:hover { transform: none; } }

/* ==========================================================
   29. MENU WITH 7 ITEMS: one line on desktop, hamburger below 1040px
   ========================================================== */
.pull-up { position: relative; z-index: 5; }
.nav-links { gap: 2px; }
.nav-links a { padding: 9px 12px; white-space: nowrap; }
@media (max-width: 1320px) and (min-width: 1041px) {
    .nav-links a { padding: 8px 10px; font-size: .9rem; }
    .nav-links a .ico { display: none; }
}
@media (max-width: 1040px) {
    .nav-toggle { display: block; }
    .nav-links {
        position: fixed; top: var(--nav-height); left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 4px;
        background: var(--white); padding: 12px 16px 20px; box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
        transform: translateY(-130%); transition: transform 0.35s ease; z-index: -1; max-height: calc(100vh - var(--nav-height)); overflow-y: auto;
    }
    .nav-links.open { transform: translateY(0); }
    .nav-links a { padding: 12px 16px; font-size: .98rem; }
    .nav-links a .ico { display: inline-block; }
}
