/* ============ FoodBridge Design System 2.0 ============ */
:root {
    --leaf: #059669;
    --leaf-dark: #047857;
    --leaf-light: #10b981;
    --leaf-soft: #ecfdf5;
    --leaf-glow: rgba(5, 150, 105, 0.28);
    --ink: #0f172a;
    --ink-light: #1e293b;
    --muted: #64748b;
    --mist: #f8fafc;
    --white: #ffffff;
    --turmeric: #f59e0b;
    --turmeric-dark: #d97706;
    --turmeric-soft: #fef3c7;
    --turmeric-glow: rgba(245, 158, 11, 0.28);
    --chili: #ef4444;
    --chili-soft: #fee2e2;
    --blue: #2563eb;
    --blue-soft: #eff6ff;
    --line: #e2e8f0;
    --line-dark: #cbd5e1;
    --radius-sm: 8px;
    --radius: 16px;
    --radius-lg: 24px;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 6px 16px -2px rgba(15, 23, 42, 0.07), 0 2px 4px -1px rgba(15, 23, 42, 0.04);
    --shadow-lg: 0 16px 32px -4px rgba(15, 23, 42, 0.09), 0 4px 8px -2px rgba(15, 23, 42, 0.03);
    --shadow-xl: 0 24px 50px -10px rgba(15, 23, 42, 0.14);
    --font-head: "Bricolage Grotesque", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--ink);
    background: var(--mist);
    line-height: 1.6;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    position: relative;
}

/* ---------- Ambient Background Glows ---------- */
.ambient-glow {
    position: fixed;
    border-radius: 50%;
    filter: blur(100px);
    pointer-events: none;
    z-index: 0;
    opacity: 0.55;
}

.ambient-glow.g1 {
    top: -120px;
    right: -80px;
    width: 540px;
    height: 540px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.22), transparent 70%);
}

.ambient-glow.g2 {
    top: 35%;
    left: -180px;
    width: 580px;
    height: 580px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.16), transparent 70%);
}

img,
svg {
    max-width: 100%;
    display: block;
}

a {
    color: var(--leaf);
    text-decoration: none;
    transition: color 0.15s ease;
}

a:hover {
    color: var(--leaf-dark);
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-head);
    line-height: 1.18;
    letter-spacing: -0.015em;
    color: var(--ink);
}

:focus-visible {
    outline: 3px solid var(--turmeric);
    outline-offset: 2px;
    border-radius: 6px;
}

.icon {
    width: 20px;
    height: 20px;
    flex: none;
}

.icon-ri {
    font-size: 19px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.hidden {
    display: none !important;
}

/* ---------- Buttons & Micro-Interactions ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border: 2px solid transparent;
    border-radius: 999px;
    font: 600 15px var(--font-body);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    white-space: nowrap;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn:active {
    transform: translateY(1px) scale(0.98);
}

.btn-primary {
    background: linear-gradient(135deg, var(--leaf), var(--leaf-dark));
    color: #fff;
    box-shadow: 0 4px 14px var(--leaf-glow);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--leaf-light), var(--leaf));
    box-shadow: 0 6px 20px rgba(5, 150, 105, 0.4);
    color: #fff;
}

.btn-accent {
    background: linear-gradient(135deg, var(--turmeric), var(--turmeric-dark));
    color: #0f172a;
    box-shadow: 0 4px 14px var(--turmeric-glow);
    font-weight: 700;
}

.btn-accent:hover {
    background: linear-gradient(135deg, #fbbf24, var(--turmeric));
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);
    color: #0f172a;
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.7);
    color: var(--leaf-dark);
    border-color: rgba(5, 150, 105, 0.3);
    backdrop-filter: blur(8px);
}

.btn-ghost:hover {
    background: var(--leaf-soft);
    border-color: var(--leaf);
    color: var(--leaf-dark);
}

.btn-danger {
    background: var(--chili-soft);
    color: var(--chili);
}

.btn-danger:hover {
    background: #fecaca;
    color: #dc2626;
}

.btn-sm {
    padding: 8px 18px;
    font-size: 13.5px;
}

.btn-lg {
    padding: 14px 28px;
    font-size: 16px;
    font-weight: 700;
}

.btn-block {
    width: 100%;
}

.btn[disabled] {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

/* ---------- Brand ---------- */
.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font: 800 22px var(--font-head);
    color: var(--ink);
    letter-spacing: -0.02em;
}

.brand-logo {
    width: 36px;
    height: 36px;
    transition: transform 0.3s ease;
}

.brand:hover .brand-logo {
    transform: rotate(-8deg) scale(1.08);
}

/* ---------- Landing: Navbar ---------- */
.nav {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(248, 250, 252, 0.88);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    transition: all 0.25s ease;
}

.nav-inner {
    max-width: 1200px;
    margin: auto;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav-links a.link {
    color: var(--ink-light);
    font-weight: 600;
    font-size: 15px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.nav-links a.link:hover {
    color: var(--leaf);
    background: rgba(16, 185, 129, 0.08);
}

/* ---------- Landing: Hero ---------- */
.hero {
    max-width: 1200px;
    margin: auto;
    padding: 76px 24px 60px;
    display: grid;
    grid-template-columns: 1.15fr 0.95fr;
    gap: 56px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-text-block {
    position: relative;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--leaf-soft);
    color: var(--leaf-dark);
    border: 1px solid rgba(16, 185, 129, 0.25);
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 13.5px;
    font-weight: 600;
    margin-bottom: 22px;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.12);
}

.pulse-ring {
    width: 8px;
    height: 8px;
    background: var(--leaf);
    border-radius: 50%;
    position: relative;
}

.pulse-ring::after {
    content: "";
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    border: 2px solid var(--leaf);
    animation: radarPing 1.8s cubic-bezier(0, 0, 0.2, 1) infinite;
}

.hero h1 {
    font-size: clamp(40px, 5.2vw, 64px);
    font-weight: 800;
    line-height: 1.12;
    margin-bottom: 20px;
}

.gradient-text {
    background: linear-gradient(135deg, var(--leaf) 0%, #0284c7 60%, var(--turmeric) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p.lead {
    margin-bottom: 32px;
    font-size: 19px;
    color: var(--muted);
    max-width: 520px;
    line-height: 1.65;
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 34px;
}

.hero-trust {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 14px;
    color: var(--muted);
}

.trust-avatars {
    display: flex;
}

.t-av {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-weight: 700;
    font-size: 12px;
    color: #fff;
    margin-right: -8px;
    border: 2px solid #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.t-av.g1 { background: #059669; }
.t-av.g2 { background: #0284c7; }
.t-av.g3 { background: #d97706; }

.hero-trust strong {
    color: var(--ink);
}

/* Hero Visual & Floating Badges */
.hero-art {
    position: relative;
    max-width: 490px;
    margin-left: auto;
}

.hero-art-frame {
    position: relative;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 24px 50px -10px rgba(5, 150, 105, 0.28), 0 0 0 1px rgba(255, 255, 255, 0.9) inset;
    border: 3px solid rgba(255, 255, 255, 0.85);
    background: #fff;
    transition: transform 0.4s ease;
}

.hero-art-frame:hover {
    transform: scale(1.02);
}

.hero-img {
    width: 100%;
    height: 360px;
    object-fit: cover;
    display: block;
}

.hero-overlay-glow {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 65%, rgba(15, 23, 42, 0.35) 100%);
    pointer-events: none;
}

/* Floating Badges */
.badge {
    position: absolute;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 16px;
    padding: 10px 16px;
    font-size: 13.5px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.12);
    display: flex;
    gap: 10px;
    align-items: center;
    z-index: 2;
}

.badge b {
    display: block;
    color: var(--ink);
    font-size: 13.5px;
    line-height: 1.25;
}

.badge small {
    display: block;
    color: var(--muted);
    font-size: 11.5px;
}

.hero-art .b1 {
    left: -24px;
    top: 20%;
}

.hero-art .b2 {
    right: -12px;
    bottom: 12%;
}

.hero-art .b3 {
    left: 20px;
    bottom: -18px;
}

.badge-check-ic {
    font-size: 26px;
    color: var(--leaf);
}

/* Smooth Floating Animations */
@keyframes float1 {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(0.8deg); }
}

@keyframes float2 {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(10px) rotate(-0.8deg); }
}

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

.float-anim-1 { animation: float1 4.5s ease-in-out infinite; }
.float-anim-2 { animation: float2 5.2s ease-in-out infinite 0.3s; }
.float-anim-3 { animation: float3 4.8s ease-in-out infinite 0.8s; }

/* Status Dots & Ping Effect */
.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
    position: relative;
}

.dot-green {
    background: #10b981;
}

.dot-yellow {
    background: #f59e0b;
}

.dot .ping {
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    background: inherit;
    opacity: 0.65;
    animation: radarPing 2s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes radarPing {
    0% { transform: scale(1); opacity: 0.8; }
    75%, 100% { transform: scale(2.6); opacity: 0; }
}

/* ---------- Landing: Stats Band ---------- */
.band {
    background: linear-gradient(135deg, #064e3b 0%, #065f46 50%, #0f172a 100%);
    color: #fff;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.2);
}

.band-inner {
    max-width: 1200px;
    margin: auto;
    padding: 38px 24px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.band-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius);
    backdrop-filter: blur(8px);
    transition: transform 0.25s ease, background 0.25s ease;
}

.band-item:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.1);
}

.band-icon-wrap {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    font-size: 24px;
    flex: none;
}

.band-icon-wrap.g { background: rgba(16, 185, 129, 0.25); color: #34d399; }
.band-icon-wrap.y { background: rgba(245, 158, 11, 0.25); color: #fbbf24; }
.band-icon-wrap.b { background: rgba(59, 130, 246, 0.25); color: #60a5fa; }
.band-icon-wrap.r { background: rgba(239, 68, 68, 0.25); color: #f87171; }

.band .num {
    font: 800 36px var(--font-head);
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.band .lbl {
    color: #cbd5e1;
    font-size: 14px;
    font-weight: 500;
}

/* ---------- Landing: Sections ---------- */
.section {
    max-width: 1200px;
    margin: auto;
    padding: 88px 24px;
}

.section-header {
    margin-bottom: 48px;
}

.text-center {
    text-align: center;
}

.text-center .sub {
    margin-left: auto;
    margin-right: auto;
}

.pill-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--leaf-soft);
    color: var(--leaf-dark);
    border: 1px solid rgba(16, 185, 129, 0.25);
    border-radius: 999px;
    padding: 5px 14px;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 14px;
}

.pill-tag.light {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.3);
}

.section h2 {
    font-size: clamp(30px, 3.8vw, 44px);
    font-weight: 800;
    letter-spacing: -0.02em;
}

.section .sub {
    color: var(--muted);
    font-size: 18px;
    margin-top: 14px;
    max-width: 580px;
    line-height: 1.6;
}

/* 4 Steps Section */
.steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    background: transparent;
    border: none;
}

.step {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 30px 24px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}

.step:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: rgba(5, 150, 105, 0.35);
}

.step .n {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--leaf-soft), #d1fae5);
    color: var(--leaf);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font: 800 17px var(--font-head);
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.15);
    transition: transform 0.3s ease;
}

.step:hover .n {
    transform: scale(1.1);
}

.step h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.step p {
    color: var(--muted);
    font-size: 15px;
    line-height: 1.55;
}

/* Features Grid */
.features {
    display: grid;
    grid-template-columns: 5fr 7fr;
    gap: 56px;
    align-items: start;
}

.feat-intro {
    position: sticky;
    top: 100px;
}

.feat-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.feat {
    display: flex;
    gap: 20px;
    padding: 20px 22px;
    border-radius: var(--radius);
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
    transition: all 0.25s ease;
    align-items: flex-start;
}

.feat:hover {
    transform: translateX(8px);
    box-shadow: var(--shadow-md);
    border-color: rgba(5, 150, 105, 0.3);
}

.feat .ic {
    width: 50px;
    height: 50px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    font-size: 22px;
    flex: none;
    transition: transform 0.25s ease;
}

.feat:hover .ic {
    transform: scale(1.08) rotate(-4deg);
}

.ic-green { background: #dcfce7; color: #15803d; }
.ic-blue { background: #dbeafe; color: #1d4ed8; }
.ic-amber { background: #fef3c7; color: #b45309; }
.ic-emerald { background: #ccfbf1; color: #0f766e; }
.ic-indigo { background: #e0e7ff; color: #4338ca; }

.feat .ic.plus {
    background: var(--turmeric-soft);
    color: var(--turmeric-dark);
}

.feat h3 {
    font-size: 19px;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
}

.feat p {
    color: var(--muted);
    font-size: 15px;
    line-height: 1.55;
}

.tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    background: var(--turmeric);
    color: #0f172a;
    border-radius: 999px;
    padding: 2px 9px;
    margin-left: 10px;
    vertical-align: middle;
}

/* Community Visual Story Section */
.visual-story {
    background: #fff;
    border-radius: var(--radius-lg);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
    padding: 64px 48px;
    margin: 20px auto 70px;
}

.story-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: center;
}

.story-img-wrap {
    position: relative;
}

.story-img {
    width: 100%;
    height: 380px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: var(--shadow-xl);
    border: 2px solid rgba(226, 232, 240, 0.8);
}

.story-floating-card {
    position: absolute;
    bottom: -20px;
    left: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 16px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.12);
}

.pulse-ic {
    font-size: 28px;
    color: #ef4444;
    animation: heartPulse 1.8s ease-in-out infinite;
}

@keyframes heartPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.18); }
}

.story-floating-card b {
    display: block;
    color: var(--ink);
    font-size: 14.5px;
}

.story-floating-card p {
    color: var(--muted);
    font-size: 12.5px;
    margin: 0;
}

.perk-cards {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin: 24px 0 32px;
}

.perk-card {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 14px 18px;
    background: var(--mist);
    border-radius: 12px;
    border: 1px solid var(--line);
}

.perk-card i {
    font-size: 22px;
    color: var(--leaf);
    flex: none;
    margin-top: 2px;
}

.perk-card b {
    display: block;
    font-size: 15px;
    color: var(--ink);
    margin-bottom: 2px;
}

.perk-card p {
    font-size: 13.5px;
    color: var(--muted);
    margin: 0;
    line-height: 1.45;
}

/* Call to Action Box */
.cta-box {
    margin: 0 24px 84px;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #fff;
    border-radius: 28px;
    max-width: 1152px;
    margin-inline: auto;
    padding: 56px 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    box-shadow: 0 24px 50px -10px rgba(15, 23, 42, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.cta-content {
    max-width: 620px;
}

.cta-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(245, 158, 11, 0.2);
    color: #fbbf24;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 16px;
}

.cta-box h2 {
    color: #fff;
    font-size: clamp(26px, 3.2vw, 38px);
    margin-bottom: 12px;
}

.cta-box p {
    color: #94a3b8;
    font-size: 16px;
    line-height: 1.6;
}

/* Footer */
.footer {
    border-top: 1px solid var(--line);
    background: #fff;
    padding: 40px 24px;
}

.footer-inner {
    max-width: 1200px;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 14px;
    color: var(--muted);
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font: 700 18px var(--font-head);
    color: var(--ink);
}

.footer-meta {
    display: flex;
    align-items: center;
    gap: 20px;
}

.status-live {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--leaf-dark);
}

/* ============ Auth Pages (Login & Register) ============ */
.auth {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 5.2fr 6.8fr;
    position: relative;
    z-index: 1;
}

.auth-visual-side {
    position: relative;
    overflow: hidden;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 48px;
}

.auth-bg-img {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transform: scale(1.05);
    transition: transform 10s ease;
}

.auth-side-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(6, 78, 59, 0.92) 0%, rgba(15, 23, 42, 0.92) 100%);
}

.auth-side-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.brand-light {
    color: #fff;
}

.brand-light img {
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
}

.auth-side-hero {
    margin: auto 0;
    padding: 40px 0;
}

.auth-side-hero h2 {
    color: #fff;
    font-size: clamp(32px, 3.5vw, 42px);
    font-weight: 800;
    line-height: 1.15;
    margin: 16px 0;
}

.auth-side-hero p {
    color: #cbd5e1;
    font-size: 17px;
    line-height: 1.6;
    max-width: 440px;
}

.auth-mini-stat {
    margin-top: 28px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 10px 18px;
    border-radius: 999px;
    font-size: 13.5px;
    font-weight: 600;
}

.auth-features-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 24px;
}

.auth-feat-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    color: #e2e8f0;
}

.auth-feat-item i {
    color: #34d399;
    font-size: 18px;
}

.auth-side-foot {
    color: #94a3b8;
    font-size: 13px;
}

/* Auth Card Right Side */
.auth-main {
    display: grid;
    place-items: center;
    padding: 48px 32px;
    background: var(--mist);
}

.auth-card {
    width: 100%;
    max-width: 500px;
    background: #fff;
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--line);
}

.register-card {
    max-width: 600px;
    padding: 36px;
}

.auth-card-head {
    margin-bottom: 28px;
}

.auth-icon-badge {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: var(--leaf-soft);
    color: var(--leaf);
    display: grid;
    place-items: center;
    font-size: 24px;
    margin-bottom: 16px;
}

.auth-card h1 {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 6px;
}

.auth-card .sub {
    color: var(--muted);
    font-size: 15px;
}

.auth-card .alt {
    margin-top: 24px;
    text-align: center;
    color: var(--muted);
    font-size: 14.5px;
}

.auth-card .alt a {
    color: var(--leaf-dark);
}

/* Demo Box */
.demo-box {
    margin-top: 24px;
    background: var(--turmeric-soft);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 14px;
    padding: 16px 18px;
    font-size: 13.5px;
}

.demo-header {
    font-weight: 700;
    color: #92400e;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.demo-box p {
    color: #78350f;
    font-size: 13px;
    margin-bottom: 10px;
}

.demo-btns {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.demo-pill {
    background: #fff;
    border: 1px solid rgba(245, 158, 11, 0.4);
    border-radius: 999px;
    padding: 6px 14px;
    font-size: 12.5px;
    font-weight: 600;
    color: #92400e;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.demo-pill:hover {
    background: #fef9c3;
    transform: translateY(-1px);
    border-color: #d97706;
}

/* Forms & Fields */
.field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 18px;
}

.field label {
    font-weight: 600;
    font-size: 13.5px;
    color: var(--ink-light);
    display: flex;
    align-items: center;
    gap: 6px;
}

.field .hint {
    font-size: 12.5px;
    color: var(--muted);
    margin-top: 2px;
}

input,
select,
textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid var(--line);
    border-radius: 12px;
    font: 15px var(--font-body);
    color: var(--ink);
    background: #fff;
    transition: all 0.2s ease;
}

input:hover,
select:hover,
textarea:hover {
    border-color: var(--line-dark);
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--leaf);
    box-shadow: 0 0 0 4px var(--leaf-glow);
}

textarea {
    resize: vertical;
    min-height: 84px;
}

.password-wrap {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.password-wrap input {
    width: 100%;
    padding-right: 44px;
}

.password-toggle-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--muted);
    font-size: 19px;
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: color 0.15s ease, background 0.15s ease;
    z-index: 2;
}

.password-toggle-btn:hover {
    color: var(--ink);
    background: rgba(0, 0, 0, 0.05);
}

.row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.row-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 14px;
}

.error {
    color: var(--chili);
    font-size: 13.5px;
    min-height: 20px;
    margin: 4px 0 12px;
    font-weight: 600;
}

/* Role Selector Cards */
.role-pick {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 22px;
}

.role-card {
    border: 2px solid var(--line);
    border-radius: 14px;
    padding: 14px;
    cursor: pointer;
    background: #fff;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}

.role-card:hover {
    border-color: var(--leaf);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.role-card input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.role-card-inner {
    display: flex;
    align-items: center;
    gap: 12px;
}

.role-icon-box {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    font-size: 20px;
    flex: none;
}

.role-icon-box.g { background: var(--leaf-soft); color: var(--leaf); }
.role-icon-box.b { background: var(--blue-soft); color: var(--blue); }

.role-card strong {
    display: block;
    font: 700 16px var(--font-head);
    color: var(--ink);
}

.role-card span {
    font-size: 12px;
    color: var(--muted);
    line-height: 1.3;
}

.role-card:has(input:checked) {
    border-color: var(--leaf);
    background: var(--leaf-soft);
    box-shadow: 0 4px 14px var(--leaf-glow);
}

/* Location Card in Register */
.loc-card {
    background: var(--mist);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 16px;
    margin-bottom: 18px;
}

.loc-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    flex-wrap: wrap;
    gap: 8px;
}

.loc-title {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--ink);
    display: flex;
    align-items: center;
    gap: 6px;
}

.loc-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.seg {
    display: inline-flex;
    border: 1.5px solid var(--line);
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
}

.seg label {
    padding: 10px 18px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: background 0.15s ease;
}

.seg input {
    position: absolute;
    opacity: 0;
    width: 0;
}

.seg label:has(input:checked) {
    background: var(--leaf);
    color: #fff;
}

/* ============ Dashboard Shell ============ */
.app {
    display: grid;
    grid-template-columns: 260px 1fr;
    min-height: 100vh;
}

.side {
    background: #0f172a;
    color: #e2e8f0;
    padding: 24px 18px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    position: sticky;
    top: 0;
    height: 100vh;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    z-index: 40;
}

.side .brand {
    color: #fff;
    padding: 0 10px;
    font-size: 21px;
}

.side nav {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.nav-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 12px;
    background: none;
    border: none;
    color: #94a3b8;
    font: 600 14.5px var(--font-body);
    cursor: pointer;
    text-align: left;
    width: 100%;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    transform: translateX(3px);
}

.nav-btn.active {
    background: linear-gradient(135deg, var(--leaf), var(--leaf-dark));
    color: #fff;
    box-shadow: 0 4px 14px var(--leaf-glow);
}

.nav-btn .count {
    margin-left: auto;
    background: var(--turmeric);
    color: #0f172a;
    font-size: 12px;
    font-weight: 700;
    border-radius: 999px;
    padding: 1px 8px;
}

.side .me {
    margin-top: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 18px;
}

.me .who {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 0 8px 14px;
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--turmeric), #d97706);
    color: #0f172a;
    display: grid;
    place-items: center;
    font: 800 16px var(--font-head);
    flex: none;
    box-shadow: 0 4px 10px rgba(245, 158, 11, 0.3);
}

.me .who b {
    display: block;
    color: #fff;
    font-size: 14.5px;
    line-height: 1.25;
}

.me .who small {
    color: #94a3b8;
    font-size: 12px;
}

.logout-nav-btn {
    color: #cbd5e1;
}

.logout-nav-btn:hover {
    color: #f87171;
    background: rgba(239, 68, 68, 0.12);
}

/* Dashboard Main Content */
.main {
    padding: 0 36px 56px;
    min-width: 0;
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 26px 0;
    gap: 20px;
}

.topbar h1 {
    font-size: 32px;
    font-weight: 800;
}

.topbar p {
    color: var(--muted);
    font-size: 15px;
}

.bell-wrap {
    position: relative;
}

.bell {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: #fff;
    border: 1px solid var(--line);
    display: grid;
    place-items: center;
    cursor: pointer;
    color: var(--ink);
    position: relative;
    box-shadow: var(--shadow-sm);
    transition: all 0.2s ease;
}

.bell:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--line-dark);
}

.bell-icon {
    font-size: 22px;
}

.bell .badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--chili);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    min-width: 20px;
    height: 20px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    padding: 0 5px;
    border: 2px solid #fff;
    box-shadow: 0 2px 6px rgba(239, 68, 68, 0.4);
}

.dropdown {
    position: absolute;
    right: 0;
    top: 58px;
    width: 380px;
    max-width: 88vw;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.16);
    z-index: 60;
    overflow: hidden;
    animation: dropIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes dropIn {
    from { opacity: 0; transform: translateY(-8px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.dropdown header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 18px;
    border-bottom: 1px solid var(--line);
    font: 700 16px var(--font-head);
    background: var(--mist);
}

.dropdown header button {
    background: none;
    border: none;
    color: var(--leaf);
    font-weight: 600;
    cursor: pointer;
    font-size: 13px;
}

.dropdown header button:hover {
    text-decoration: underline;
}

.notif-list {
    max-height: 380px;
    overflow-y: auto;
}

.notif {
    padding: 14px 18px;
    border-bottom: 1px solid var(--line);
    font-size: 14px;
    display: flex;
    gap: 12px;
    transition: background 0.15s ease;
}

.notif:hover {
    background: var(--mist);
}

.notif.unread {
    background: var(--leaf-soft);
}

.notif small {
    color: var(--muted);
    display: block;
    margin-top: 3px;
    font-size: 12px;
}

.empty {
    text-align: center;
    color: var(--muted);
    padding: 44px 20px;
}

.empty b {
    display: block;
    color: var(--ink);
    font: 700 18px var(--font-head);
    margin-bottom: 4px;
}

/* ---------- Dashboard Stat Tiles ---------- */
.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 24px;
}

.stat {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 20px 22px;
    display: flex;
    gap: 16px;
    align-items: center;
    box-shadow: var(--shadow-sm);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.stat:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(5, 150, 105, 0.3);
}

.stat .ic {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    flex: none;
    font-size: 22px;
}

.stat .ic.g { background: var(--leaf-soft); color: var(--leaf); }
.stat .ic.y { background: var(--turmeric-soft); color: #b45309; }
.stat .ic.b { background: var(--blue-soft); color: var(--blue); }
.stat .ic.r { background: var(--chili-soft); color: var(--chili); }

.stat .v {
    font: 800 30px var(--font-head);
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.stat .l {
    color: var(--muted);
    font-size: 13.5px;
    font-weight: 500;
    margin-top: 4px;
}

/* Dashboard Panels & Charts */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.grid-form {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 24px;
    align-items: start;
}

.panel {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.25s ease;
}

.panel:hover {
    box-shadow: var(--shadow-md);
}

.panel h2 {
    font-size: 21px;
    margin-bottom: 4px;
}

.panel .sub {
    color: var(--muted);
    font-size: 14.5px;
    margin-bottom: 20px;
}

.chart-box {
    position: relative;
    height: 270px;
}

.map {
    height: 260px;
    border-radius: 14px;
    border: 1px solid var(--line);
    margin: 14px 0;
    z-index: 0;
    box-shadow: var(--shadow-sm);
}

/* Filter Tabs / Chips */
.tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 22px;
    flex-wrap: wrap;
}

.chip {
    padding: 8px 18px;
    border-radius: 999px;
    background: #fff;
    border: 1.5px solid var(--line);
    font: 600 14px var(--font-body);
    cursor: pointer;
    color: var(--ink);
    transition: all 0.2s ease;
}

.chip:hover {
    border-color: var(--line-dark);
    transform: translateY(-1px);
}

.chip.active {
    background: var(--leaf);
    border-color: var(--leaf);
    color: #fff;
    box-shadow: 0 4px 12px var(--leaf-glow);
}

/* Cards & Donation Listings */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 20px;
}

.dcard {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    box-shadow: var(--shadow-sm);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.dcard:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(5, 150, 105, 0.35);
}

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

.dcard h3 {
    font-size: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.dcard .meta {
    color: var(--muted);
    font-size: 13.5px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    margin-top: 6px;
}

.dcard .meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.dcard .actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: auto;
    padding-top: 8px;
    border-top: 1px solid var(--line);
}

/* Vegetarian / Non-vegetarian Dot */
.veg {
    width: 15px;
    height: 15px;
    border: 2px solid #16a34a;
    border-radius: 4px;
    display: inline-grid;
    place-items: center;
    flex: none;
}

.veg::after {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #16a34a;
}

.veg.non {
    border-color: var(--chili);
}

.veg.non::after {
    background: var(--chili);
}

/* Status Pills */
.pill {
    font-size: 12.5px;
    font-weight: 700;
    padding: 5px 14px;
    border-radius: 999px;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.pill.Pending {
    background: var(--turmeric-soft);
    color: #92400e;
}

.pill.Accepted {
    background: var(--blue-soft);
    color: var(--blue);
}

.pill.PickedUp {
    background: #ede9fe;
    color: #6d28d9;
}

.pill.Completed {
    background: var(--leaf-soft);
    color: var(--leaf-dark);
}

.pill.Rejected,
.pill.Cancelled,
.pill.Expired {
    background: var(--chili-soft);
    color: var(--chili);
}

.direct {
    background: var(--leaf-soft);
    color: var(--leaf-dark);
    font-size: 12px;
    font-weight: 700;
    padding: 3px 12px;
    border-radius: 999px;
}

.urgent {
    color: var(--chili);
    font-weight: 700;
}

/* Status Timeline */
.timeline {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    position: relative;
    margin-top: 8px;
    padding: 0;
}

.timeline li {
    text-align: center;
    font-size: 12px;
    color: var(--muted);
    position: relative;
    padding-top: 26px;
}

.timeline li::before {
    content: "";
    position: absolute;
    top: 6px;
    left: 50%;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid var(--line-dark);
    transform: translateX(-50%);
    z-index: 2;
    transition: all 0.2s ease;
}

.timeline li::after {
    content: "";
    position: absolute;
    top: 12px;
    left: -50%;
    width: 100%;
    height: 2px;
    background: var(--line);
    z-index: 1;
}

.timeline li:first-child::after {
    display: none;
}

.timeline li.done {
    color: var(--ink);
    font-weight: 600;
}

.timeline li.done::before {
    background: var(--leaf);
    border-color: var(--leaf);
}

.timeline li.done::after {
    background: var(--leaf);
}

.timeline li.current::before {
    box-shadow: 0 0 0 5px rgba(5, 150, 105, 0.2);
    animation: timelinePulse 2s infinite;
}

@keyframes timelinePulse {
    0%, 100% { box-shadow: 0 0 0 4px rgba(5, 150, 105, 0.25); }
    50% { box-shadow: 0 0 0 8px rgba(5, 150, 105, 0.1); }
}

.timeline li small {
    display: block;
    font-weight: 400;
    color: var(--muted);
    font-size: 11px;
    margin-top: 2px;
}

.closed-note {
    background: var(--chili-soft);
    color: var(--chili);
    border-radius: 12px;
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 600;
}

/* Nearby NGO Selection List */
.ngo-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 320px;
    overflow-y: auto;
    padding-right: 4px;
}

.ngo-opt {
    display: flex;
    gap: 14px;
    align-items: center;
    border: 1.5px solid var(--line);
    border-radius: 14px;
    padding: 12px 16px;
    cursor: pointer;
    background: #fff;
    transition: all 0.2s ease;
}

.ngo-opt:hover {
    border-color: var(--leaf);
    background: var(--mist);
}

.ngo-opt input {
    width: auto;
    accent-color: var(--leaf);
}

.ngo-opt:has(input:checked) {
    border-color: var(--leaf);
    background: var(--leaf-soft);
    box-shadow: 0 2px 8px var(--leaf-glow);
}

.ngo-opt b {
    display: block;
    font-size: 15px;
    color: var(--ink);
}

.ngo-opt small {
    color: var(--muted);
    font-size: 12.5px;
}

.ngo-opt .km {
    margin-left: auto;
    font: 700 14px var(--font-head);
    color: var(--leaf-dark);
    white-space: nowrap;
}

/* Profile Grid */
.profile-grid {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 14px 24px;
    font-size: 15px;
}

.profile-grid dt {
    color: var(--muted);
    font-weight: 500;
}

.profile-grid dd {
    font-weight: 600;
    color: var(--ink);
}

/* Toast Notifications */
.toasts {
    position: fixed;
    bottom: 28px;
    right: 28px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 100;
}

.toast {
    background: #0f172a;
    color: #fff;
    padding: 14px 20px;
    border-radius: 14px;
    font-size: 14.5px;
    font-weight: 500;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.28);
    border-left: 5px solid var(--leaf);
    max-width: 360px;
    animation: toastSlide 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.toast.err {
    border-left-color: var(--chili);
}

@keyframes toastSlide {
    from { opacity: 0; transform: translateY(14px) scale(0.96); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ============ Responsive Breakpoints ============ */
@media (max-width: 1050px) {
    .hero,
    .features,
    .auth,
    .grid-form,
    .grid-2,
    .story-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-art {
        margin: 0 auto;
    }

    .auth-side {
        display: none;
    }

    .steps {
        grid-template-columns: 1fr 1fr;
    }

    .stats {
        grid-template-columns: 1fr 1fr;
    }

    .band-inner {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 820px) {
    .app {
        grid-template-columns: 1fr;
    }

    .side {
        position: static;
        height: auto;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        padding: 14px 18px;
        gap: 12px;
    }

    .side nav {
        flex-direction: row;
        overflow-x: auto;
        flex: 1 1 100%;
        order: 3;
        padding-bottom: 4px;
    }

    .nav-btn {
        width: auto;
        white-space: nowrap;
    }

    .side .me {
        margin: 0 0 0 auto;
        border: none;
        padding: 0;
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .me .who {
        display: none;
    }

    .main {
        padding: 0 20px 48px;
    }

    .cards {
        grid-template-columns: 1fr;
    }

    .nav-links a.link {
        display: none;
    }
}

@media (max-width: 580px) {
    .steps,
    .stats,
    .row,
    .row-3,
    .band-inner,
    .role-pick {
        grid-template-columns: 1fr;
    }

    .hero-cta {
        flex-direction: column;
    }

    .hero-cta .btn {
        width: 100%;
    }

    .loc-row {
        grid-template-columns: 1fr;
    }

    .profile-grid {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .profile-grid dd {
        margin-bottom: 12px;
    }

    .cta-box {
        padding: 36px 24px;
    }

    .visual-story {
        padding: 36px 24px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
}

/* ==========================================================================
   FoodBridge 5 Major Features Upgrade (AI, Emergency, Analytics, Trust, Cert)
   ========================================================================== */

/* 1. Emergency Rescue Banner */
.emergency-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background: linear-gradient(135deg, #b91c1c 0%, #dc2626 50%, #ea580c 100%);
    color: #ffffff;
    padding: 14px 20px;
    border-radius: var(--radius);
    margin-bottom: 24px;
    box-shadow: 0 10px 25px -5px rgba(220, 38, 38, 0.35);
    animation: pulse-soft 2.5s infinite;
}
.emergency-banner .emergency-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.btn-emergency {
    background: #ffffff;
    color: #b91c1c;
    font-weight: 700;
    border: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
.btn-emergency:hover {
    background: #fef2f2;
    color: #991b1b;
}

@keyframes pulse-soft {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.006); }
}

/* 2. Urgency Badges & Countdowns */
.urgency-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.2;
}
.urgency-emergency {
    background: #fee2e2;
    color: #b91c1c;
    border: 1px solid #f87171;
    animation: glow-red 1.8s infinite;
}
.urgency-priority {
    background: #fef3c7;
    color: #b45309;
    border: 1px solid #fcd34d;
}
.urgency-normal {
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #a7f3d0;
}

@keyframes glow-red {
    0%, 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4); }
    50% { box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.2); }
}

.countdown-live {
    font-variant-numeric: tabular-nums;
    font-weight: 600;
}

/* 3. Verification & Trust Badges */
.badge-verified,
.badge-pending,
.badge-rejected {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.02em;
}
.badge-verified {
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #6ee7b7;
}
.badge-pending {
    background: #fffbeb;
    color: #b45309;
    border: 1px solid #fde68a;
}
.badge-rejected {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

.trust-star {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    background: #fffbeb;
    color: #b45309;
    padding: 2px 7px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
}

/* 4. AI Donation Assistant Widget */
.btn-ai {
    background: linear-gradient(135deg, #059669 0%, #2563eb 100%);
    color: #ffffff;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: none;
    box-shadow: 0 4px 14px rgba(5, 150, 105, 0.3);
}
.btn-ai:hover {
    background: linear-gradient(135deg, #047857 0%, #1d4ed8 100%);
    color: #ffffff;
}

.ai-panel {
    background: #ffffff;
    border: 1px solid #93c5fd;
    border-radius: var(--radius);
    padding: 22px;
    margin-top: 18px;
    position: relative;
    box-shadow: 0 10px 25px -5px rgba(37, 99, 235, 0.1);
}
.ai-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line);
}
.ai-panel-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-head);
    font-size: 17px;
    font-weight: 700;
    color: #1e3a8a;
}
.ai-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}
.ai-card {
    background: var(--mist);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    padding: 12px;
}
.ai-card-label {
    font-size: 11px;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--muted);
    letter-spacing: 0.05em;
    margin-bottom: 4px;
}
.ai-card-val {
    font-size: 17px;
    font-weight: 700;
    color: var(--ink);
}

.ai-guidelines-box {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: var(--radius-sm);
    padding: 14px;
    margin-top: 12px;
}
.ai-guidelines-box h4 {
    font-size: 14px;
    font-weight: 700;
    color: #166534;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.ai-guidelines-box ul {
    list-style: none;
    padding: 0;
    font-size: 13px;
    color: #14532d;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.ai-guidelines-box li {
    display: flex;
    align-items: flex-start;
    gap: 6px;
}
.ai-guidelines-box li i {
    color: #16a34a;
    flex-shrink: 0;
    margin-top: 2px;
}

.ai-ngo-match {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: var(--radius-sm);
    padding: 14px;
    margin-top: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

/* 5. Food Waste Forecasting & Analytics */
.forecast-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}
.forecast-card {
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow-sm);
}
.forecast-card .val {
    font-size: 26px;
    font-family: var(--font-head);
    font-weight: 700;
    color: var(--ink);
    margin: 6px 0 2px;
}
.forecast-card .desc {
    font-size: 13px;
    color: var(--muted);
}

.prediction-box {
    background: linear-gradient(135deg, #f0fdf4 0%, #eff6ff 100%);
    border: 1px solid #86efac;
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
}
.prediction-box h3 {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #166534;
    font-size: 19px;
    margin-bottom: 8px;
}
.prediction-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
    margin-top: 16px;
}
.prediction-pill {
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    padding: 12px 14px;
}

/* 6. Food Rescue Impact Certificate */
.certificate-container {
    max-width: 860px;
    margin: 0 auto;
}
.certificate-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    margin-bottom: 16px;
}
.cert-paper {
    background: #ffffff;
    border: 14px solid #f1f5f9;
    outline: 2px solid #059669;
    outline-offset: -8px;
    border-radius: 4px;
    padding: 48px;
    position: relative;
    box-shadow: var(--shadow-xl);
    color: var(--ink);
    background-image: radial-gradient(rgba(5, 150, 105, 0.02) 1px, transparent 0);
    background-size: 20px 20px;
}
.cert-header {
    text-align: center;
    margin-bottom: 32px;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 24px;
}
.cert-logo {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-head);
    font-size: 22px;
    font-weight: 800;
    color: var(--leaf);
    margin-bottom: 8px;
}
.cert-title {
    font-family: var(--font-head);
    font-size: 32px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #0f172a;
    text-transform: uppercase;
    margin-bottom: 6px;
}
.cert-subtitle {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--turmeric-dark);
}
.cert-body {
    text-align: center;
    margin: 28px 0;
}
.cert-presented-to {
    font-size: 14px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 10px;
}
.cert-org-name {
    font-family: var(--font-head);
    font-size: 36px;
    font-weight: 800;
    color: #047857;
    margin-bottom: 6px;
}
.cert-role-tag {
    display: inline-block;
    padding: 3px 12px;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    color: #065f46;
    margin-bottom: 20px;
}
.cert-statement {
    font-size: 16px;
    line-height: 1.7;
    max-width: 660px;
    margin: 0 auto 32px;
    color: #334155;
}
.cert-metrics-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin: 32px 0;
}
.cert-metric-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
}
.cert-metric-val {
    font-family: var(--font-head);
    font-size: 28px;
    font-weight: 800;
    color: #059669;
}
.cert-metric-label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--muted);
    margin-top: 4px;
}
.cert-footer {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid #e2e8f0;
}
.cert-meta {
    text-align: left;
    font-size: 12px;
    color: var(--muted);
    line-height: 1.6;
}
.cert-seal {
    width: 90px;
    height: 90px;
    border: 3px dashed #059669;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 800;
    text-align: center;
    color: #047857;
    text-transform: uppercase;
    padding: 4px;
}
.cert-signature {
    text-align: right;
}
.cert-signature-line {
    font-family: "Brush Script MT", cursive, sans-serif;
    font-size: 24px;
    color: #0f172a;
}
.cert-signature-name {
    font-size: 12px;
    font-weight: 700;
    border-top: 1px solid #cbd5e1;
    padding-top: 4px;
    margin-top: 4px;
    color: #475569;
}

/* Print Stylesheet for Certificate */
@media print {
    body * {
        visibility: hidden;
    }
    .cert-paper,
    .cert-paper * {
        visibility: visible;
    }
    .cert-paper {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        border: 4px solid #059669 !important;
        box-shadow: none !important;
        padding: 36px !important;
    }
    .certificate-actions,
    .side,
    .topbar {
        display: none !important;
    }
}

/* 7. Admin Verification Table & Management */
.admin-badge-count {
    background: #ef4444;
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 999px;
    margin-left: 6px;
}
.admin-org-card {
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.admin-org-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}
.admin-org-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 13px;
    color: var(--muted);
}
.admin-actions {
    display: flex;
    gap: 8px;
    margin-top: 8px;
    padding-top: 12px;
    border-top: 1px solid var(--line);
}