:root {
    /* --- PALETTE: "True Sage & Antique Gold" (Prototype C - Refined) --- */
    --color-bg: #CFD9CD;
    /* True Sage Mist (Greener, cleaner) */
    --color-paper: #F2F0E9;
    /* Bone Parchment */
    --color-forest: #2E4033;
    /* Deep Botanical Green */
    --color-midnight: #152219;
    /* Blackened Green */
    --color-accent: #BFA454;
    /* Muted Antique Brass (Less Orange) */
    --color-brass-shine: #DBC583;
    /* Soft Champagne Gold */
    --color-clay: #B06D4D;
    /* Terracotta */
    --color-sage-light: #94A684;
    /* Leafy Sage */
    --color-white: #FFFFFF;

    /* --- FONTS --- */
    --font-heading: 'Fraunces', serif;
    --font-body: 'Outfit', sans-serif;
    --font-hand: 'Outfit', sans-serif;

    /* --- SHAPES --- */
    --radius-arch: 200px 200px 0 0;
    --radius-pill: 50px;
    --radius-card: 16px;
    --radius-16: 16px;
    --radius-btn: 14px;

    /* --- GLASSMORPHISM --- */
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.3);
    --glass-blur: blur(12px) saturate(180%);
}

/* --- THEME: EVENING SANCTUARY (Dark Mode) --- */
body.dark-mode {
    --color-bg: #0D1610;
    /* Deep Midnight */
    --color-paper: #1A261E;
    /* Dark Charcoal Forest */
    --color-forest: #94A684;
    /* Inverted: Sage Light */
    --color-midnight: #F2F0E9;
    /* Inverted: Bone Parchment */
    --color-accent: #DBC583;
    /* Champagne Gold */
    --color-clay: #D68F6F;
    /* Lighter Terracotta for contrast */
    --shadow-retro: 4px 4px 0px rgba(0, 0, 0, 0.4);
    --shadow-soft: 0 10px 40px rgba(0, 0, 0, 0.3);
}

/* --- REWARDS GARDEN --- */
.garden-container-main {
    margin: 30px auto;
    width: 92%;
    max-width: 400px;
    background: #FFF;
    padding: 30px;
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
}

.garden-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-top: 20px;
    width: 100%;
    max-width: 400px;
    margin: 20px auto;
}

.garden-slot {
    aspect-ratio: 1;
    background: #e0e0e0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: all 0.5s ease;
    position: relative;
    border: 2px solid transparent;
}

/* Filled Slot (Growing) */
.garden-slot.filled {
    background: var(--color-forest);
    color: #FFF;
    border-color: var(--color-accent);
    box-shadow: 0 0 10px rgba(191, 164, 84, 0.3);
    /* Gold Glow */
    transform: scale(1.05);
}

/* Just Filled Animation */
.garden-slot.pulse {
    animation: slotPulse 1s ease-out;
}

@keyframes slotPulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 rgba(191, 164, 84, 0.7);
    }

    50% {
        transform: scale(1.2);
        box-shadow: 0 0 20px rgba(191, 164, 84, 0.5);
    }

    100% {
        transform: scale(1.05);
        box-shadow: 0 0 10px rgba(191, 164, 84, 0.3);
    }
}

:root {
    /* --- SHADOWS --- */
    --shadow-retro: 4px 4px 0px rgba(46, 64, 51, 0.2);
    /* Deep Green Shadow */
    --shadow-soft: 0 10px 40px rgba(21, 34, 25, 0.08);
}

/* --- BASE --- */
* {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: var(--color-bg);
    color: var(--color-midnight);
    font-family: var(--font-body);
    margin: 0;
    line-height: 1.6;
    position: relative;
    overflow-x: hidden;
    scroll-behavior: smooth;
    /* Organic Paper Grain - Subtle & Refined */
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.06'/%3E%3C/svg%3E");
    padding-top: 0;
    transition: padding-top 0.3s ease, background-color 1.2s cubic-bezier(0.25, 1, 0.5, 1), color 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

body.has-pwa-banner {
    padding-top: 85px; /* Adjust according to banner height */
}

/* Auth Visibility Utilities */
.hidden {
    display: none !important;
}

.visible {
    display: block !important;
}

.visible-flex {
    display: flex !important;
}

.restricted {
    display: none;
}

/* Hidden by default, revealed by JS */

h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    color: var(--color-midnight);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-top: 0;
    line-height: 1.1;
    transition: color 0.4s;
}

.hero-title {
    font-size: clamp(2.5rem, 8vw, 4rem);
    margin-bottom: 20px;
    color: var(--color-midnight);
}

.hero-desc {
    font-size: 1.15rem;
    max-width: 550px;
    margin: 0 auto 35px auto;
    color: var(--color-midnight);
    opacity: 0.8;
}

h2 {
    font-size: 2.5rem;
}

a {
    text-decoration: none;
    color: inherit;
}

/* --- FLOATING PWA BANNER (SANCTUARY GATE) --- */
.sanctuary-install-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10000;
    padding: 12px 16px;
    display: none; /* Controlled by JS */
    align-items: center;
    justify-content: space-between;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    animation: bannerSlideDown 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes bannerSlideDown {
    from { transform: translateY(-100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.banner-inner {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
}

.banner-icon-bg {
    width: 44px;
    height: 44px;
    background: var(--color-forest);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 4px 12px rgba(46, 64, 51, 0.2);
}

.banner-info h4 {
    font-size: 1rem;
    margin: 0;
    color: var(--color-midnight);
}

.banner-info p {
    font-size: 0.8rem;
    margin: 0;
    opacity: 0.8;
}

.banner-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-install-mini {
    background: var(--color-forest);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s;
}

.btn-install-mini:active {
    transform: scale(0.95);
}

.btn-dismiss-banner {
    background: none;
    border: none;
    font-size: 24px;
    color: var(--color-midnight);
    cursor: pointer;
    opacity: 0.6;
    padding: 5px;
}

/* --- GOLD FOIL TEXT (Refined Matte) --- */
.text-gold-foil {
    color: var(--color-accent);
    /* Fallback */
    background: linear-gradient(135deg,
            #BFA454 0%,
            #DBC583 30%,
            #9C8238 60%,
            #BFA454 100%);
    background-size: 200% auto;
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    animation: none;
    /* Removed cheesy shine animation per feedback */
    display: inline-block;
    filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.1));
    /* Subtle depth */
}

@keyframes shine {
    to {
        background-position: 200% center;
    }
}

.soul-accent {
    font-family: var(--font-hand);
    color: var(--color-clay);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    display: block;
}

/* --- GROUNDED SANCTUARY UTILITIES --- */
.card-sanctuary {
    background: var(--color-paper);
    border-radius: var(--radius-16);
    border: 1px solid rgba(46, 64, 51, 0.1);
    box-shadow: var(--shadow-soft);
    padding: 24px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-sanctuary:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.glass-card {
    background: rgba(255, 255, 255, 0.85);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    backdrop-filter: blur(16px) saturate(180%);
    border: 1px solid rgba(46, 64, 51, 0.15);
    border-radius: var(--radius-16);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

/* --- HERO OVERLAY --- */
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, 
        rgba(0,0,0,0.4) 0%, 
        transparent 50%, 
        rgba(0,0,0,0.2) 100%);
    pointer-events: none;
    z-index: 1;
}

.botanical-watermark {
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 150px;
    height: 150px;
    opacity: 0.05;
    pointer-events: none;
    z-index: 0;
}

/* --- COMPONENTS --- */

/* --- NAVBAR (Restored Previous Scheme) --- */
.navbar {
    position: sticky;
    top: 20px;
    width: 95%;
    max-width: 1400px;
    margin: 0 auto;
    background: rgba(242, 240, 233, 0.9);
    /* Bone Parchment */
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    backdrop-filter: blur(12px) saturate(180%);
    border: 2px solid var(--color-forest);
    border-radius: var(--radius-pill);
    padding: 12px clamp(15px, 4vw, 40px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 2000;
    box-shadow: var(--shadow-retro);
    transition: background 0.4s, color 0.4s;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--color-forest);
    text-transform: none;
    letter-spacing: -0.5px;
}

.logo img {
    height: 40px;
    width: auto;
    border-radius: 6px;
}

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

.nav-links a, .dropdown-trigger {
    text-decoration: none;
    color: var(--color-midnight);
    font-weight: 600;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.3s ease;
    position: relative;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-links a:hover,
.nav-links a.active,
.dropdown:hover .dropdown-trigger {
    color: var(--color-accent);
}

.dropdown {
    position: relative;
    padding: 10px 0;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: var(--glass-bg);
    -webkit-backdrop-filter: var(--glass-blur);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 10px;
    min-width: 180px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    z-index: 2001;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    pointer-events: all;
    transform: translateX(-50%) translateY(0);
}

.dropdown-menu a {
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 0.75rem;
    white-space: nowrap;
    transition: background 0.2s;
}

.dropdown-menu a:hover {
    background: rgba(46, 64, 51, 0.05);
    color: var(--color-forest) !important;
}

.chevron {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    margin-top: -3px;
    transition: transform 0.3s ease;
}

.dropdown:hover .chevron {
    transform: rotate(-135deg) translateY(-2px);
}

.theme-toggle-btn {
    padding: 10px;
    border-radius: 50%;
    width: 42px;
    height: 42px;
    min-width: auto;
    background: var(--color-paper);
    border: 2px solid var(--color-forest);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.theme-toggle-btn:hover {
    transform: rotate(15deg) scale(1.1);
    border-color: var(--color-accent);
}

.nav-auth-btn {
    padding: 10px 24px !important;
    font-size: 0.9rem !important;
}

.btn-staff-portal {
    background: var(--color-clay) !important;
    border-color: var(--color-clay) !important;
    color: white !important;
}

.btn-host-portal {
    background: var(--color-forest) !important;
    border-color: var(--color-forest) !important;
    color: white !important;
}

/* --- HERO --- */
.hero {
    min-height: 85vh; /* Taller for a more epic feel */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 5%;
    position: relative;
    overflow: hidden;
    color: var(--color-midnight);
}

.hero-card {
    background: rgba(255, 255, 255, 0.92);
    padding: clamp(30px, 8vw, 70px) clamp(20px, 5vw, 50px);
    border-radius: 40px; /* More rounded, premium feel */
    border: 1px solid rgba(46, 64, 51, 0.1);
    max-width: 750px;
    width: 90%;
    text-align: center;
    box-shadow: 0 30px 60px rgba(0,0,0,0.12);
    position: relative;
    z-index: 10;
    /* Subtle organic border */
    outline: 8px solid rgba(242, 240, 233, 0.5);
    outline-offset: -15px;
}

.hero-title {
    font-size: clamp(2.8rem, 8vw, 4.2rem);
    font-weight: 900;
    line-height: 1.0;
    margin-bottom: 30px;
    color: var(--color-forest);
    letter-spacing: -2.5px; /* Tighter, more modern tracking */
}

.hero-desc {
    font-size: 1.35rem;
    line-height: 1.5;
    margin-bottom: 45px;
    color: var(--color-midnight);
    opacity: 0.85;
    font-weight: 300; /* Light weight for elegance */
}

/* --- MODERN BUTTON SYSTEM --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 36px;
    font-size: 1.05rem;
    font-weight: 700;
    border-radius: var(--radius-btn);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    font-family: var(--font-body);
    text-transform: none;
    letter-spacing: 0.1px;
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--color-forest);
    color: var(--color-paper);
    box-shadow: 0 4px 14px rgba(46, 64, 51, 0.2);
}

.btn-primary:hover {
    background: var(--color-accent);
    color: var(--color-midnight);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(191, 164, 84, 0.3);
}

.btn-secondary {
    background: transparent;
    border-color: var(--color-forest);
    color: var(--color-forest);
}

.btn-secondary:hover {
    background: var(--color-forest);
    color: var(--color-paper);
    transform: translateY(-2px);
}

.btn-lg {
    padding: 18px 48px;
    font-size: 1.15rem;
}

.btn-staff-shortcut {
    background: var(--color-clay);
    color: white;
}

/* 3. Cards (3D Tilt Light) */
.card-3d {
    background: var(--color-paper);
    border: 1px solid var(--color-forest);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-retro);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s;
    overflow: hidden;
}

.card-3d:hover {
    transform: translateY(-8px) rotateX(2deg) rotateY(2deg);
    box-shadow: 6px 6px 0 var(--color-accent);
    border-color: var(--color-accent);
}

/* --- CONTAINER SYSTEM --- */
.container {
    width: 95%;
    max-width: 1400px;
    margin: 0 auto;
}

/* --- CATEGORIES (Arches) --- */
/* ═══════════════════════════════════════════════════════════
   SECTION: Bento Grid (replaces old category-grid)
   Notebook: Modern Web Dev — group related content, largest
   cell = primary destination, smaller = quick nav links.
   Layout: 3 cols × 2 rows on desktop, single col on mobile.
══════════════════════════════════════════════════════════════ */
.section-bento {
    padding: 60px 5%;
}

.section-bento__header {
    text-align: center;
    margin-bottom: 36px;
}

.section-bento__header h2 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    color: var(--color-midnight);
    margin-bottom: 4px;
}

/* ── Grid Container ── */
.bento-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

/* Desktop: 3-col asymmetric layout */
@media (min-width: 600px) {
    .bento-grid {
        grid-template-columns: 2fr 1fr 1fr;
        grid-template-rows: auto auto;
        gap: 16px;
    }

    /* Large cell spans full height of both rows */
    .bento-cell--large {
        grid-row: 1 / 3;
    }
}

/* ── Base Cell ── */
.bento-cell {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    min-height: 180px;
    background: var(--color-midnight);
    text-decoration: none;
    color: var(--color-paper);
    display: flex;
    align-items: flex-end;
    /* Compositor-friendly hover: only transform changes, no repaints */
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        box-shadow 0.3s ease;
    will-change: transform;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

.bento-cell:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

/* Large cell taller on desktop */
@media (min-width: 600px) {
    .bento-cell--large {
        min-height: 420px;
        align-items: flex-end;
    }
}

/* ── Cell Image ── */
.bento-cell__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* GPU-composited scale on hover via parent transform */
    transition: transform 0.5s ease;
}

.bento-cell:hover .bento-cell__img {
    transform: scale(1.06);
}

/* ── Text Overlay ── */
.bento-cell__overlay {
    position: relative;
    z-index: 1;
    width: 100%;
    padding: 20px 22px;
    /* Gradient scrim so text is always readable over any image */
    background: linear-gradient(to top, rgba(15, 25, 18, 0.88) 0%, transparent 100%);
}

.bento-cell__tag {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: 6px;
}

.bento-cell__title {
    font-family: var(--font-display);
    font-size: clamp(1.2rem, 2.5vw, 1.7rem);
    font-weight: 700;
    color: var(--color-paper);
    margin: 0 0 4px;
    line-height: 1.2;
}

.bento-cell__sub {
    font-size: 0.85rem;
    color: rgba(242, 240, 233, 0.8);
    margin: 0;
}

/* ── Stat Cell (no image, dark forest bg) ── */
.bento-cell--stat {
    background: var(--color-forest);
    align-items: center;
    justify-content: center;
    padding: 28px;
    min-height: 200px;
}

.bento-cell--stat:hover {
    background: var(--color-midnight);
}

.bento-cell__stat-content {
    text-align: center;
    width: 100%;
}

.bento-cell__stat-number {
    font-family: var(--font-display);
    font-size: 0.9rem;
    color: var(--color-accent);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 2px;
}

.bento-cell__stat-year {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 900;
    color: var(--color-paper);
    line-height: 1;
    margin-bottom: 16px;
}

.bento-cell__stat-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.bento-cell__stat-list li {
    font-size: 0.82rem;
    color: rgba(242, 240, 233, 0.85);
    font-family: var(--font-body);
}

.bento-cell__emoji {
    font-size: 2.8rem;
    margin-bottom: 12px;
    display: block;
}

/* ── Accent Cell (gold volunteer CTA) ── */
.bento-cell--accent {
    background: var(--color-accent);
    align-items: center;
    justify-content: center;
    padding: 28px;
    min-height: 200px;
}

.bento-cell--accent:hover {
    background: #c8af62;
}

.bento-cell--accent .bento-cell__title {
    color: var(--color-midnight);
}

.bento-cell--accent .bento-cell__sub {
    color: rgba(26, 46, 32, 0.8);
}

/* ── Legacy category classes (kept for backward compat with other pages) ── */
.section-categories {
    padding: 40px 5%;
    text-align: center;
}

.category-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-top: 40px;
    justify-items: center;
}

@media (min-width: 600px) {
    .category-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 40px;
        align-items: start;
    }
}

.cat-item {
    display: block;
}

.cat-img-wrapper {
    width: 100%;
    max-width: 380px;
    margin: 0 auto 20px;
    height: 360px;
    background: #000;
    border-radius: 200px 200px 0 0;
    border: 3px solid var(--color-midnight);
    overflow: hidden;
    box-shadow: var(--shadow-retro);
    transition: transform 0.3s;
}

.cat-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.9;
    filter: contrast(110%);
    transition: transform 0.5s;
}

.cat-item:hover .cat-img-wrapper {
    transform: translateY(-10px);
}

.cat-item:hover .cat-img {
    transform: scale(1.1);
    opacity: 1;
}

.cat-item h3 {
    font-size: 1.4rem;
    color: var(--color-midnight);
}

/* --- PRODUCT GRID --- */
.section-products {
    padding: 40px 5%;
    background: var(--color-paper);
    border-top: 1px solid rgba(46, 64, 51, 0.1);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
}

.p-img-container {
    /* aspect-ratio reserves height before image loads, preventing CLS.
       Notebook: 'use CSS aspect-ratio boxes for dynamic content' */
    aspect-ratio: 4 / 3;
    height: auto;
    border-bottom: 2px solid var(--color-midnight);
    overflow: hidden;
    position: relative;
}

.p-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.p-info {
    padding: 20px;
    text-align: center;
}

.p-price {
    display: block;
    margin: 10px 0;
    font-weight: 700;
    color: var(--color-clay);
    font-size: 1.2rem;
}

/* --- CAFE MENU (Table Style) --- */
.menu-section {
    width: 95%;
    max-width: 800px;
    margin: 0 auto;
    background: #FFF;
    border: 2px solid var(--color-midnight);
    padding: clamp(20px, 5vw, 40px);
    box-shadow: var(--shadow-retro);
}

.menu-item {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px dashed var(--color-clay);
    padding: 15px 0;
}

.menu-item h4 {
    margin: 0;
    font-size: 1.1rem;
}

.menu-item p {
    margin: 5px 0 0;
    font-size: 0.9rem;
    color: #666;
    font-family: var(--font-body);
}

.menu-price {
    font-weight: 700;
    color: var(--color-midnight);
}

/* --- FOOTER (REFINED) --- */
.footer-refined {
    background: var(--color-midnight);
    color: var(--color-bg);
    padding: 80px 5% 40px 5%;
    border-top: 4px solid var(--color-accent);
    position: relative;
    z-index: 10;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
    text-align: left;
}

.footer-brand p {
    max-width: 350px;
    margin-top: 20px;
    opacity: 0.8;
    line-height: 1.6;
}

.footer-refined h4 {
    font-family: var(--font-heading);
    color: var(--color-accent);
    margin-bottom: 25px;
    font-size: 1.2rem;
    text-transform: none;
}

.footer-social-row {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-social-row a {
    color: var(--color-bg);
    text-decoration: none;
    transition: color 0.3s;
    font-weight: 500;
}

.footer-social-row a:hover {
    color: var(--color-accent);
}

.footer-contact p {
    opacity: 0.8;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.footer-bottom {
    max-width: 1400px;
    margin: 0 auto;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    opacity: 0.6;
}

.footer-legal a {
    color: inherit;
    text-decoration: none;
    margin: 0 5px;
}

@media (max-width: 1024px) {
    .footer-container {
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .footer-container {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .footer-brand p {
        margin: 20px auto 0 auto;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}

/* --- UTILITIES --- */
.restricted {
    display: none;
}

.animate-entry {
    animation: fadeIn 0.6s ease-out;
}

.delay-1 {
    animation-delay: 0.1s;
}

.delay-2 {
    animation-delay: 0.2s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Standard Scroll Animation Fallback (IntersectionObserver) */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.animate-on-scroll.visible, .animate-on-scroll.cs-visible {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* Scroll-Driven Animation Support (Chromium 115+) */
@supports (animation-timeline: view()) {
    .animate-on-scroll {
        animation: fadeInUp linear both;
        animation-timeline: view();
        animation-range: entry 10% cover 20%;
    }
}

/* --- STAFF OPERATIONS (KDS, Staff Hub, Panic) --- */
.staff-container-main {
    padding: 100px 5% 40px 5%;
}

.staff-container {
    padding: 40px 5%;
}

.staff-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.staff-tool-card {
    background: var(--color-paper);
    border: 2px solid var(--color-forest);
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow-retro);
    transition: all 0.3s;
    cursor: pointer;
}

.staff-tool-card:hover {
    transform: translateY(-5px);
    border-color: var(--color-accent);
    box-shadow: 6px 6px 0 var(--color-accent);
}

.tool-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.panic-status {
    background: #f8d7da;
    color: #721c24;
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 2rem;
    font-weight: bold;
    display: none;
    border: 1px solid #721c24;
}

.panic-active .panic-status {
    display: block;
}

/* KDS Tiles */
.kds-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.order-tile {
    background: var(--color-paper);
    border: 2px solid var(--color-forest);
    padding: 1.5rem;
    position: relative;
    box-shadow: var(--shadow-retro);
}

.order-tile.urgent {
    border-color: var(--color-clay);
    box-shadow: 4px 4px 0 var(--color-clay);
    animation: alert-pulse 2s infinite;
}

@keyframes alert-pulse {
    0% {
        border-color: var(--color-clay);
    }

    50% {
        border-color: var(--color-paper);
    }

    100% {
        border-color: var(--color-clay);
    }
}

.order-header {
    display: flex;
    justify-content: space-between;
    border-bottom: 2px solid var(--color-forest);
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
    font-family: var(--font-heading);
    font-weight: 700;
}

.order-timer {
    font-weight: 900;
    color: var(--color-forest);
}

.urgent .order-timer {
    color: var(--color-clay);
}

/* Compliance Gate */
.compliance-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(46, 64, 51, 0.98);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    color: var(--color-paper);
    text-align: center;
    padding: 2rem;
}

/* --- FORUM & COMMUNITY --- */
.forum-grid {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.forum-sidebar {
    background: var(--color-paper);
    border: 2px solid var(--color-forest);
    padding: 1.5rem;
    height: fit-content;
    box-shadow: var(--shadow-retro);
}

.category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-list li {
    padding: 0.75rem 0;
    border-bottom: 1px dashed var(--color-accent);
    cursor: pointer;
    font-weight: 600;
    transition: color 0.3s;
}

.category-list li:hover {
    color: var(--color-accent);
}

.forum-content {
    background: var(--color-paper);
    border: 2px solid var(--color-forest);
    padding: 2rem;
    box-shadow: var(--shadow-retro);
}

.post-card {
    border-bottom: 2px solid var(--color-bg);
    padding: 1.5rem 0;
    display: flex;
    gap: 1.5rem;
}

.post-card:last-child {
    border-bottom: none;
}

.post-meta {
    min-width: 120px;
    font-size: 0.8rem;
    color: var(--color-midnight);
    opacity: 0.8;
}

.post-title {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--color-forest);
}

.mod-tag {
    background: var(--color-forest);
    color: white;
    padding: 2px 8px;
    font-size: 0.7rem;
    border-radius: 4px;
    margin-left: 10px;
}

/* --- VOLUNTEERS & CALENDAR --- */
.calendar-container {
    padding: 2rem;
    background: var(--color-paper);
    border: 2px solid var(--color-forest);
    border-radius: 4px;
    margin-top: 2rem;
    box-shadow: var(--shadow-retro);
}

.calendar-controls {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.navbar-logo-img {
    height: 100%;
    width: auto;
}

.logo-text-area {
    display: flex;
    flex-direction: column;
}

.calendar-view {
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--color-forest);
    border: 1px dashed var(--color-accent);
    transition: transform 0.3s ease;
    background: white;
}

/* --- REWARDS (Roots) --- */
.rewards-dashboard {
    background: var(--color-paper);
    border: 2px solid var(--color-forest);
    padding: 3rem;
    margin-top: 2rem;
    box-shadow: var(--shadow-retro);
    text-align: center;
}

.points-meter {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    border: 10px solid var(--color-bg);
    border-top-color: var(--color-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem auto;
}

.points-value {
    font-family: var(--font-heading);
    font-size: 3rem;
    color: var(--color-forest);
}

.voucher-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.voucher {
    background: white;
    border: 2px dashed var(--color-accent);
    padding: 2rem 1.5rem;
    position: relative;
    overflow: hidden;
}

.voucher::before,
.voucher::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 24px;
    background: var(--color-paper);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    border: 2px solid var(--color-accent);
}

.voucher::before {
    left: -14px;
}

.voucher::after {
    right: -14px;
}

/* ── Phase 8: Loyalty & Tiers ───────────────────── */
.tier-status {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.tier-sprout {
    background: linear-gradient(135deg, #a8e063, #56ab2f);
    color: white;
}

.tier-sapling {
    background: linear-gradient(135deg, #FFD700, #DAA520);
    color: #2E4033;
}

.tier-great-oak {
    background: linear-gradient(135deg, #8B4513, #2E4033);
    color: #f4f1ea;
    border: 1px solid #c5a059;
}

.progress-bar-bg {
    width: 100%;
    height: 8px;
    background: rgba(46, 64, 51, 0.1);
    border-radius: 10px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: var(--color-gold);
    transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.glow-oak {
    position: relative;
    overflow: hidden;
}

.glow-oak::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(197, 160, 89, 0.1) 0%, transparent 70%);
    pointer-events: none;
    animation: rotate-glow 10s linear infinite;
}

@keyframes rotate-glow {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    .navbar {
        width: 100%;
        top: 0;
        border-radius: 0;
        padding: 15px 20px;
    }

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

    .category-grid {
        flex-direction: column;
        align-items: center;
    }

    .hero-card {
        padding: 40px 20px;
    }
}

/* --- UTILITIES --- */
.text-center {
    text-align: center;
}

.hidden {
    display: none !important;
}

/* --- PERFORMANCE UTILITIES --- */
.aspect-ratio-box {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9; /* Standard for social posts */
    background: rgba(46, 73, 56, 0.05); /* Forest Hint */
    overflow: hidden;
    border-radius: 12px;
}

.lazy-sanctuary {
    opacity: 0;
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.lazy-sanctuary.loaded {
    opacity: 1;
}

/* --- EVENT CARDS --- */
.event-card {
    position: relative;
    overflow: hidden;
}

.event-date {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--color-paper);
    padding: 8px 12px;
    border-radius: 8px;
    text-align: center;
    box-shadow: var(--shadow-retro);
    border: 2px solid var(--color-forest);
    z-index: 10;
}

.event-date .day {
    display: block;
    font-size: 1.5rem;
    font-weight: 900;
    line-height: 1;
    color: var(--color-forest);
}

.event-date .month {
    display: block;
    font-size: 0.7rem;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--color-clay);
}

.event-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 2px solid var(--color-forest);
}

.event-details {

    /* --- TABS --- */
    .tabs-container {
        display: flex;
        justify-content: center;
        gap: 15px;
        margin-bottom: 30px;
        flex-wrap: wrap;
    }

    .tab-btn {
        background: transparent;
        border: 2px solid var(--color-forest);
        padding: 10px 20px;
        border-radius: var(--radius-pill);
        color: var(--color-forest);
        font-weight: 700;
        cursor: pointer;
        transition: all 0.3s;
        font-family: var(--font-heading);
        letter-spacing: 0.5px;
    }

    .tab-btn.active,
    .tab-btn:hover {
        background: var(--color-forest);
        color: #FFF;
        transform: translateY(-2px);
        box-shadow: 4px 4px 0 var(--color-accent);
    }

    .menu-tab {
        display: none;
        /* JS toggles this */
    }

    .menu-tab.active {
        display: block;
    }
}

/* --- CAFE LAYOUT UPGRADE --- */
.menu-container {
    max-width: 800px;
    margin: 0 auto;
}

.menu-header {
    text-align: center;
    margin-bottom: 40px;
}

.menu-subtitle {
    font-size: 1rem;
    color: #666;
    display: block;
    margin-top: 5px;
}

.menu-title {
    font-size: 2rem;
    margin-bottom: 10px;
}

.event-details {
    padding: 0;
    margin: 15px 0;
    font-size: 0.9rem;
    color: var(--color-midnight);
}

.event-details li {
    margin-bottom: 5px;
}

/* --- NEWSLETTER --- */
.newsletter-box {
    background: var(--color-paper);
    padding: 40px;
    border-radius: 12px;
    border: 2px dashed var(--color-forest);
    margin-top: 100px;
    text-align: center;
}

.newsletter-form {
    max-width: 400px;
    margin: 20px auto;
    display: flex;
    gap: 10px;
}

.newsletter-input {
    flex: 1;
    padding: 10px;
    border: 1px solid var(--color-forest);
    border-radius: 4px;
    font-family: var(--font-body);
}

/* --- THORNES BORDER (Placeholder for user asset) --- */
.thornes-border-frame {
    /* Mimicking the Green/Gold double frame via CSS */
    border: 3px solid var(--color-forest);
    box-shadow: inset 0 0 0 4px var(--color-paper),
        /* Gap */
        inset 0 0 0 6px var(--color-gold);
    /* Inner Gold Line */
    padding: 30px;
    margin: 30px 0;
    background-color: var(--color-paper);
}

/* --- STAFF & UTILS --- */
.btn-staff-shortcut {
    background: var(--color-clay);
    border-color: var(--color-clay);
    font-size: 0.8rem;
    padding: 5px 10px;
}

.btn-refresh {
    background: var(--color-clay);
    border-color: var(--color-clay);
}

/* --- REWARDS DASHBOARD --- */
.guest-view-container {
    text-align: center;
    padding: 40px 20px;
}

.guest-card {
    max-width: 800px;
    margin: 0 auto;
    background: var(--color-paper);
    padding: 40px;
    border-radius: 12px;
    border: 2px dashed var(--color-forest);
}

.blurred-grid {
    filter: blur(4px);
    pointer-events: none;
    opacity: 0.7;
}

.overlay-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
}

.login-prompt {
    font-size: 0.9rem;
    color: var(--color-midnight);
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.seated-banner {
    display: inline-block;
    padding: 10px 20px;
    background: rgba(26, 48, 26, 0.9);
    color: var(--bg-paper);
    border-radius: 50px;
    font-family: 'Fraunces', serif;
    font-style: italic;
    font-size: 0.9rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    border: 1px solid rgba(255,255,255,0.1);
}

.animate-pulse {
    animation: pulse 2s infinite ease-in-out;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.02); opacity: 0.9; }
    100% { transform: scale(1); opacity: 1; }
}

.points-badge {
    background: var(--color-gold);
    color: var(--color-forest);
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 900;
    font-size: 1.2rem;
    box-shadow: var(--shadow-retro);
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.dashboard-card {
    border: 2px solid var(--color-forest);
}

/* --- NOTICES --- */
.staff-notice {
    background: #ffeeba;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid #ffdf7e;
}

.staff-notice h3 {
    color: #856404;
    margin-top: 0;
}

.member-notice {
    background: #d4edda;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid #c3e6cb;
}

.member-link {
    color: #155724;
    text-decoration: underline;
}

/* --- FORMS --- */
.signup-container {
    max-width: 400px;
    margin: 0 auto;
}

.form-left-align {
    text-align: left;
}

.msg-success {
    margin-top: 20px;
    color: var(--color-forest);
    font-weight: bold;
}

.msg-error {
    margin-top: 20px;
    color: var(--color-fire);
    font-weight: bold;
}

.w-100 {
    width: 100%;
}

/* --- UTILITY / DEMO --- */
.mt-20 {
    margin-top: 20px;
}

.mt-30 {
    margin-top: 30px;
}

.ml-10 {
    margin-left: 10px;
}

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

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

.font-bold {
    font-weight: bold;
}

.font-3rem {
    font-size: 3rem;
}

.opacity-80 {
    opacity: 0.8;
}

.bg-clay {
    background: var(--color-clay);
}

.text-clay {
    color: var(--color-clay);
}

.bg-pale-green {
    background: #e8f5e9;
    padding: 10px;
    border-radius: 8px;
}

.btn-disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.footer-logo {
    color: #FFF;
    margin-bottom: 20px;
}

.opacity-50 {
    opacity: 0.5;
}




/* --- SHOP DEPARTMENTS --- */
.dept-container {
    padding: 40px 5%;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.btn-midnight {
    background: var(--color-midnight);
    border-color: var(--color-midnight);
}

.btn-transparent-midnight {
    background: transparent;
    color: var(--color-midnight);
}


/* --- WORKSHOPS --- */
.workshop-header {
    background: var(--color-paper);
    padding: 120px 5% 60px 5%;
    text-align: center;
    border-bottom: 2px solid var(--color-midnight);
}

.workshop-intro {
    max-width: 600px;
    margin: 20px auto;
}

.workshop-list-container {
    padding: 80px 5%;
    max-width: 1000px;
    margin: 0 auto;
}

.workshop-card-inner {
    display: flex;
    margin-bottom: 40px;
    align-items: center;
    flex-wrap: wrap;
}

.workshop-img-container {
    flex: 1;
    min-width: 300px;
    height: 300px;
}

.workshop-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.workshop-content-box {
    flex: 1.5;
    min-width: 300px;
    padding: 40px;
}

.workshop-month-tag {
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.workshop-title-text {
    font-size: 2rem;
    margin: 10px 0;
}

.workshop-action-row {
    margin-top: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.workshop-price-tag {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-clay);
}

.mt-40 {
    margin-top: 40px;
}

.mt-60 {
    margin-top: 60px;
}

.mt-80 {
    margin-top: 80px;
}

.mt-100 {
    margin-top: 100px;
}

.mb-10 {
    margin-bottom: 10px;
}

.mb-20 {
    margin-bottom: 20px;
}

.mb-40 {
    margin-bottom: 40px;
}

.p-120-5 {
    padding: 120px 5% 60px 5%;
}

.p-100-5 {
    padding: 100px 5% 40px 5%;
}

/* --- KDS UTILS --- */
.kds-order-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.kds-order-item {
    padding: 5px 0;
    border-bottom: 1px dotted var(--color-bg);
    font-weight: 600;
}

.kds-btn-container {
    margin-top: 20px;
}

.kds-btn-serve {
    width: 100%;
}

.timer-live {
    font-weight: 900;
    font-family: monospace;
    font-size: 1.2rem;
    color: var(--color-forest);
    margin-left: 20px;
}

.p-80-5 {
    padding: 80px 5%;
}

.border-none {
    border: none !important;
}


.bg-white {
    background: #FFF !important;
}

/* =========================================
   MODAL DIALOG (Custom, No Alerts)
   ========================================= */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.open {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: var(--color-paper);
    padding: 30px;
    border-radius: var(--radius-card);
    width: 90%;
    max-width: 500px;
    border: 2px solid var(--color-forest);
    box-shadow: var(--shadow-retro);
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
}

.modal-overlay.open .modal-content {
    transform: scale(1) translateY(0);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 2px solid rgba(46, 64, 51, 0.1);
    padding-bottom: 15px;
}

.modal-title {
    font-family: var(--font-heading);
    color: var(--color-midnight);
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    color: var(--color-midnight);
    transition: color 0.2s;
}

.modal-close:hover {
    color: var(--color-accent);
}

.modal-body label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
    color: var(--color-forest);
}

.modal-body input,
.modal-body textarea,
.modal-body select {
    width: 100%;
    padding: 12px;
    border: 2px solid rgba(46, 64, 51, 0.2);
    border-radius: 8px;
    margin-bottom: 15px;
    font-family: var(--font-body);
    font-size: 1rem;
    background: #FFF;
    transition: border-color 0.2s;
}

.modal-body input:focus,
.modal-body textarea:focus,
.modal-body select:focus {
    outline: none;
    border-color: var(--color-accent);
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 2px solid rgba(46, 64, 51, 0.1);
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--color-forest);
    color: var(--color-forest);
    padding: 12px 28px;
    border-radius: var(--radius-btn);
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    text-transform: none;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-secondary:hover {
    background: var(--color-forest);
    color: var(--color-paper);
    transform: translateY(-2px);
}


/* =========================================
   FORUM REDESIGN (Reddit Style)
   ========================================= */

.forum-container {
    display: grid;
    grid-template-columns: 240px 1fr 300px;
    /* Sidebar | Feed | Widgets */
    gap: 20px;
    max-width: 1400px;
    margin: 40px auto;
    padding: 0 20px;
}

@media (max-width: 1024px) {
    .forum-container {
        grid-template-columns: 1fr;
        /* Stack on mobile */
    }

    .forum-sidebar,
    .forum-widgets {
        display: none;
        /* Hide sidebars on mobile for now or move to off-canvas */
    }
}

/* Sidebar (Subreddits) */
.forum-sidebar {
    position: sticky;
    top: 80px;
    height: fit-content;
}

.subreddit-nav-item {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    border-radius: 8px;
    color: var(--color-midnight);
    font-weight: 500;
    transition: background 0.2s;
    cursor: pointer;
}

.subreddit-nav-item:hover,
.subreddit-nav-item.active {
    background: rgba(46, 64, 51, 0.1);
}

.subreddit-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--color-accent);
    margin-right: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #FFF;
    font-size: 0.8rem;
    font-weight: bold;
}

/* Feed */
.forum-feed {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.post-card-sanctuary {
    background: var(--color-paper);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(46, 64, 51, 0.05);
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
}

.post-card-sanctuary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-retro);
}

.category-pill {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: rgba(191, 164, 84, 0.2);
    color: var(--color-midnight);
}

.post-header-meta {
    font-size: 0.8rem;
    color: #666;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.post-title {
    font-size: 1.3rem;
    font-family: var(--font-heading);
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--color-midnight);
    line-height: 1.3;
}

.btn-nurture {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: 20px;
    border: 1px solid rgba(46, 64, 51, 0.2);
    background: transparent;
    color: var(--color-midnight);
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-nurture:hover,
.btn-nurture.nurtured {
    background: var(--color-forest);
    color: #FFF;
    border-color: var(--color-forest);
}

.btn-nurture.nurtured {
    background: var(--color-forest);
}

.post-preview-text {
    font-size: 0.9rem;
    -webkit-line-clamp: var(--lines, 2);
    line-clamp: var(--lines, 2);
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.flex-center-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.gap-10 {
    gap: 10px;
}

.bg-white {
    background-color: #FFF !important;
}

.rounded-8 {
    border-radius: 8px !important;
}

.p-20 {
    padding: 20px !important;
}

.ml-10 {
    margin-left: 10px;
}

@keyframes flashOrder {
    0% {
        background-color: transparent;
    }

    50% {
        background-color: var(--color-accent);
    }

    100% {
        background-color: transparent;
    }
}

.flash-order {
    animation: flashOrder 1s ease-in-out;
}

.login-container {
    min-height: 70vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 60px 5%;
}

.login-card {
    max-width: 400px;
    width: 100%;
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--color-midnight);
}

.form-input-refined {
    width: 100%;
    padding: 12px 16px;
    box-sizing: border-box;
    border: 2px solid rgba(46, 64, 51, 0.1);
    border-radius: var(--radius-card);
    font-family: var(--font-body);
    transition: border-color 0.3s ease;
}

/* --- UTILITY ENHANCEMENTS --- */
.m-0 {
    margin: 0 !important;
}

.mt-20 {
    margin-top: 20px !important;
}

.mb-20 {
    margin-bottom: 20px !important;
}

.text-optimal {
    color: #4CAF50 !important;
}

.emoji-large {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.widget-subtext {
    font-size: 0.85rem;
    margin-top: 5px;
    opacity: 0.8;
}

.pulse-unit {
    font-size: 0.7rem;
    text-transform: uppercase;
    opacity: 0.7;
}

.kpi-title {
    font-size: 1.5rem;
    font-weight: 700;
}

.form-input-refined:focus {
    border-color: var(--color-accent);
    outline: none;
}

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

.mb-10 {
    margin-bottom: 10px;
}

.mb-20 {
    margin-bottom: 20px;
}

.mt-30 {
    margin-top: 30px;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.w-full {
    width: 100%;
}

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

.section-community {
    padding: 80px 5%;
    background: var(--color-paper);
    border-radius: var(--radius-arch);
    margin-top: 60px;
    margin-bottom: 60px;
    text-align: center;
}

.post-footer-actions {
    display: flex;
    gap: 15px;
    padding-top: 5px;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.8rem;
    color: #878A8C;
    font-weight: 700;
    cursor: pointer;
    background: none;
    border: none;
    padding: 5px;
    border-radius: 4px;
}

/* --- SPA TRANSITIONS & SKELETONS --- */
.animate-entry {
    animation: sanctuaryEntry 0.6s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}

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

.skeleton-hero {
    height: 300px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    border-radius: 24px;
    margin-bottom: 30px;
}

.skeleton-card {
    height: 200px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    border-radius: 16px;
}

.animate-pulse {
    animation: skeletonPulse 1.5s ease-in-out infinite;
}

@keyframes skeletonPulse {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.navbar a.active {
    color: var(--color-accent) !important;
    position: relative;
}

.action-btn:hover {
    background: rgba(0, 0, 0, 0.05);
}

/* Widgets (Right Sidebar) */
.forum-widgets {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.widget-card {
    background: #FFF;
    border: 1px solid #CCC;
    border-radius: 4px;
    overflow: hidden;
}

.widget-header {
    background: var(--color-forest);
    color: #FFF;
    padding: 10px 15px;
    font-weight: 700;
    font-size: 0.9rem;
}

.widget-content {
    padding: 15px;
    font-size: 0.9rem;
    color: #333;
}

.community-btn {
    width: 100%;
    margin-top: 10px;
    border-radius: 20px;
    /* Reddit style pill */
}

/* Staff Portal & Mailroom */
.staff-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.staff-tool-card {
    background: #FFF;
    border: 1px solid #EEE;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.staff-tool-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
    border-color: var(--color-gold);
}

.staff-tool-card h3 {
    margin: 10px 0 5px 0;
    font-size: 1.1rem;
    color: var(--color-midnight);
}

.tool-icon {
    font-size: 2rem;
    display: block;
    margin-bottom: 10px;
}

.admin-only {
    border: 2px dashed var(--color-clay);
    background: #FAF8F5;
}

.panic-status {
    background: #FF4444;
    color: #FFF;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    font-weight: bold;
    margin-bottom: 20px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.8;
    }

    100% {
        opacity: 1;
    }
}

.btn-secondary {
    background: #EEE;
    color: #333;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
}

.btn-secondary:hover {
    background: #DDD;
}

.table-responsive {
    overflow-x: auto;
}

.staff-table th {
    background: var(--color-forest);
    color: #FFF;
    padding: 12px;
}

.staff-table td {
    padding: 12px;
    border-bottom: 1px solid #EEE;
}

.tabs button {
    margin-right: 10px;
    margin-bottom: 10px;
}


.bg-paper {
    background-color: #F8F9FA;
}

/* --- Consolidated PWA & Basket Styles (Added by Antigravity) --- */

/* --- PWA BOTTOM NAVIGATION --- */
.bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 72px;
    background: rgba(255, 255, 255, 0.95);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    backdrop-filter: blur(12px) saturate(180%);
    border-top: 2px solid var(--color-midnight);
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.08);
    z-index: 1000;
    justify-content: space-around;
    align-items: center;
    padding-bottom: env(safe-area-inset-bottom);
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--color-midnight);
    text-decoration: none;
    font-size: 0.72rem;
    font-weight: 700;
    width: 20%;
    height: 100%;
    opacity: 0.7;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.bottom-nav-item.active {
    opacity: 1;
    color: var(--color-forest);
}

.bottom-nav-item:active {
    transform: scale(0.85);
}

/* --- MODERN ICON SYSTEM (SVG Based) --- */
.th-icon {
    display: inline-block;
    width: 24px;
    height: 24px;
    vertical-align: middle;
    fill: currentColor;
}

.th-icon-lg {
    width: 48px;
    height: 48px;
}

.th-icon-xl {
    width: 64px;
    height: 64px;
}

.icon-leaf {
    content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M17,8C8,10 5.9,16.17 3.82,21.34L5.71,22L6.66,19.7C7.14,19.87 7.64,20 8,20C19,20 22,3 22,3C22,3 11,1 11,12C11,14 12,14 14,14C16,14 17,8 17,8Z'/%3E%3C/svg%3E");
}

.icon-coffee {
    content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M2,21H20V19H2M20,8H18V5H20M20,3H4V13C4,15.57 5.9,17.7 8.35,17.94C9.53,18.05 10.73,18 12,18C13.27,18 14.47,18.05 15.65,17.94C18.1,17.7 20,15.57 20,13V11H22V5C22,3.89 21.1,3 20,3Z'/%3E%3C/svg%3E");
}

.icon-calendar {
    content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M19,19H5V8H19M16,1V3H8V1H6V3H5C3.89,3 3,3.89 3,5V19A2,2 0 0,0 5,21H19A2,2 0 0,0 21,19V5C21,3.89 20.1,3 19,3H18V1M17,12H12V17H17V12Z'/%3E%3C/svg%3E");
}

.icon-community {
    content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M16,13C15.71,13 15.38,13 15.03,13.05C16.19,13.89 17,15.22 17,16.5V19H22V16.5C22,14.58 18.59,13.45 16,13M8,13C5.41,13 2,14.12 2,16.5V19H14V16.5C14,14.12 10.59,13 8,13M8,11A3,3 0 1,0 8,5A3,3 0 0,0 8,11M16,11A3,3 0 1,0 16,5A3,3 0 0,0 16,11Z'/%3E%3C/svg%3E");
}

.icon-seed {
    content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2M12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4A8,8 0 0,1 20,12A8,8 0 0,1 12,20M12,8A4,4 0 0,0 8,12A4,4 0 0,0 12,16A4,4 0 0,0 16,12A4,4 0 0,0 12,8Z'/%3E%3C/svg%3E");
}

.bottom-nav-icon {
    width: 28px;
    height: 28px;
    margin-bottom: 4px;
    fill: currentColor;
    transition: transform 0.2s;
}

/* --- SKELETON LOADERS --- */
.skeleton {
    background: #e0e0e0;
    background: linear-gradient(90deg, #e0e0e0 0%, #f0f0f0 50%, #e0e0e0 100%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite linear;
    border-radius: 8px;
}

@keyframes skeleton-loading {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* --- SHOPPING BASKET --- */
.basket-fab {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 62px;
    height: 62px;
    background: var(--color-forest);
    color: #FFF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 25px rgba(46, 64, 51, 0.35);
    cursor: pointer;
    /* FAB must float above open drawer */
    z-index: 4200;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), background 0.2s;
}

.basket-fab:hover {
    transform: scale(1.1);
    background: var(--color-midnight);
}

#basket-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--color-clay);
    color: #FFF;
    font-size: 0.85rem;
    font-weight: 900;
    min-width: 26px;
    height: 26px;
    border-radius: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--color-paper);
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);
}

.basket-overlay {
    position: fixed;
    top: 0;
    right: 0;
    width: 420px;
    max-width: 100vw;
    height: 100dvh;
    background: #FAFAF8;
    /* ABOVE navbar (2000) and backdrop (4000) */
    z-index: 4100;
    box-shadow: -12px 0 50px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    /* Slide from right with transform — smoother than animating `right` */
    transform: translateX(100%);
    transition: transform 0.42s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform;
    overflow: hidden;
}

.basket-overlay.active {
    transform: translateX(0);
}

.basket-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 25, 18, 0.55);
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
    /* ABOVE navbar (2000), below basket overlay (4100) */
    z-index: 4000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}

.basket-backdrop.active {
    opacity: 1;
    visibility: visible;
}

/* --- UI UTILITY SYSTEM --- */
.p-15 {
    padding: 15px;
}

.p-20 {
    padding: 20px;
}

.p-40 {
    padding: 40px;
}

.mb-20 {
    margin-bottom: 20px;
}

.mb-40 {
    margin-bottom: 40px;
}

.mb-60 {
    margin-bottom: 60px;
}

.mt-20 {
    margin-top: 20px;
}

.mt-40 {
    margin-top: 40px;
}

.mt-60 {
    margin-top: 60px;
}

.mt-100 {
    margin-top: 100px;
}

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

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

.w-100 {
    width: 100%;
}

.flex-center-center {
    display: flex;
    justify-content: center;
    align-items: center;
}

.flex-center-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.br-8 {
    border-radius: 8px;
}

/* --- CALENDAR & TASKS --- */
.calendar-wrapper {
    min-height: 200px;
}

.calendar-entry {
    display: flex;
    align-items: center;
    padding: 15px;
    background: #FFF;
    border-radius: 12px;
    margin-bottom: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s;
}

.calendar-entry:hover {
    transform: translateX(8px);
}

.calendar-entry.today {
    border-left: 5px solid var(--color-accent);
    background: #FFFAF0;
}

.calendar-date-box {
    width: 60px;
    height: 60px;
    background: var(--color-forest);
    color: #FFF;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    flex-shrink: 0;
}

.calendar-date-box .day {
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1;
}

.calendar-date-box .month {
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 500;
}

.calendar-info h4 {
    margin: 0 0 4px 0;
    color: var(--color-midnight);
}

.calendar-info p {
    margin: 0;
    font-size: 0.85rem;
    color: #666;
}

.calendar-entry .badge {
    margin-left: auto;
    background: var(--color-pale-green);
    color: var(--color-forest);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .bottom-nav {
        display: flex;
    }

    .basket-fab {
        bottom: 95px;
        right: 20px;
        width: 55px;
        height: 55px;
    }

    body {
        padding-bottom: 80px;
    }
}

/* --- CAFE MENU --- */
.menu-container {
    max-width: 1200px;
    margin: 0 auto;
}

.menu-header {
    font-family: var(--font-heading);
    color: var(--color-forest);
    font-size: 2.5rem;
    margin-bottom: 40px;
    text-align: center;
}

.menu-subtitle {
    display: block;
    font-family: var(--font-hand);
    color: var(--color-clay);
    font-size: 1.2rem;
    margin-top: 10px;
}

.menu-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 20px;
    background: #FFF;
    border: 1px solid rgba(46, 64, 51, 0.1);
    border-radius: 12px;
    margin-bottom: 20px;
    transition: transform 0.3s;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.menu-item:hover {
    transform: translateY(-5px);
    border-color: var(--color-accent);
}

.menu-item h4 {
    font-family: var(--font-heading);
    margin-bottom: 5px;
    color: var(--color-midnight);
}

.menu-price {
    font-weight: 700;
    color: var(--color-forest);
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.menu-tags {
    display: flex;
    gap: 5px;
    margin-top: 5px;
}

.tag {
    font-size: 0.6rem;
    padding: 2px 6px;
    border-radius: 4px;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.tag-vegetarian {
    background: #E8F5E9;
    color: #2E7D32;
    border: 1px solid #2E7D32;
}

.tag-vegan {
    background: #F1F8E9;
    color: #558B2F;
    border: 1px solid #558B2F;
}

.tag-gf {
    background: #FFF3E0;
    color: #EF6C00;
    border: 1px solid #EF6C00;
}

.tabs-container {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.tab-btn {
    background: #fdfdfb;
    border: 2px solid var(--color-forest);
    padding: 10px 25px;
    border-radius: 50px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    color: var(--color-forest);
}

.tab-btn.active {
    background: var(--color-forest);
    color: #FFF;
}

/* --- GLOBAL BRANDING & SEO --- */
.restricted {
    display: none !important;
}

.hidden-metadata {
    display: none;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.brand-name {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    color: var(--color-forest);
    line-height: 1;
}

.brand-sub {
    font-size: 0.75rem;
    color: var(--color-clay);
    font-weight: 400;
}

/* --- TABS & CATEGORIES --- */
.grid-4 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

/* --- VOLUNTEER PATHWAYS --- */
.pathway-card {
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.pathway-card:hover {
    border-color: var(--color-accent);
    background: white;
}

.pathway-card h3 {
    margin-bottom: 5px;
    color: var(--color-forest);
}

.pathway-card .small {
    font-size: 0.8rem;
    color: var(--color-clay);
}

/* Pathway Badges */
.badge.pathway-horticulture {
    background: var(--color-bg);
    color: var(--color-forest);
    border: 1px solid var(--color-forest);
}

.badge.pathway-cafe {
    background: #efebe9;
    color: #5d4037;
    border: 1px solid #5d4037;
}

.badge.pathway-events {
    background: var(--color-paper);
    color: var(--color-accent);
    border: 1px solid var(--color-accent);
}

.badge.pathway-maintenance {
    background: #eceff1;
    color: #455a64;
    border: 1px solid #455a64;
}

.task-card {
    padding: 25px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.font-3rem {
    font-size: 3rem;
}

.btn-lg {
    padding: 15px 40px;
    font-size: 1.1rem;
}

/* --- ADDITIONAL UTILITIES --- */
.modal-note {
    font-size: 0.85rem;
    color: #666;
    margin-top: 10px;
}

.icon-display-large {
    font-size: 2rem;
    margin-bottom: 15px;
}

.member-since-badge {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-midnight);
}

.flex-col-gap-10 {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.flex-gap-10 {
    display: flex;
    gap: 10px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.hide {
    display: none !important;
}

.footer-email {
    color: var(--color-accent) !important;
    text-decoration: none;
}

.b {
    font-weight: 700;
}

.font-xs {
    font-size: 0.75rem;
}

.text-white {
    color: #FFF !important;
}

.bg-forest {
    background: #2E4033 !important;
}

.bg-midnight {
    background: var(--color-midnight) !important;
}

.flex-center-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.opacity-80 {
    opacity: 0.8;
}

.opacity-70 {
    opacity: 0.7;
}

/* Voice Intercom FAB */
.voice-fab {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: var(--color-midnight);
    color: #D4A064;
    border: 2px solid #D4A064;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    z-index: 1000;
}

.voice-fab.active {
    background: #6D4C3D;
    animation: voice-pulse 1.5s infinite;
}

@keyframes voice-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(212, 160, 100, 0.7);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(212, 160, 100, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(212, 160, 100, 0);
    }
}

/* --- STAFF PORTAL --- */
.staff-alert-warning {
    background: #fff3cd;
    border: 1px solid #ffeeba;
    color: #856404;
}

.staff-alert-warning h4 {
    margin: 0;
}

.staff-alert-warning p {
    margin: 5px 0 0 0;
    font-size: 0.9rem;
}

.staff-table-container {
    border-collapse: collapse;
    background: #FFF;
    border-radius: 8px;
    overflow: hidden;
    font-size: 0.9rem;
}

.staff-table-header {
    background: var(--color-forest);
    color: #FFF;
}

.staff-table-th {
    text-align: left;
    padding: 15px;
}

.staff-table-th-right {
    text-align: right;
    padding: 15px;
}

.staff-table-th-center {
    text-align: center;
    padding: 15px;
}

.staff-table-empty {
    text-align: center;
    padding: 40px;
    color: #999;
}

.staff-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 9500;
    align-items: center;
    justify-content: center;
}

.staff-modal-content {
    background: #FFF;
    border-radius: 16px;
    padding: 40px;
    max-width: 460px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.staff-modal-title {
    margin: 0 0 8px;
    color: var(--color-midnight);
}

.staff-modal-meta {
    color: #777;
    font-size: 0.85rem;
    margin-bottom: 24px;
}

.staff-modal-label {
    display: block;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.staff-modal-input {
    width: 100%;
    padding: 12px;
    border: 1px solid #DDD;
    border-radius: 8px;
    font-size: 1rem;
    margin-bottom: 16px;
    box-sizing: border-box;
}

.staff-modal-input.mb-24 {
    margin-bottom: 24px;
}

.staff-modal-status {
    margin-bottom: 16px;
    font-weight: 600;
    min-height: 24px;
}

.staff-modal-btn-row {
    display: flex;
    gap: 12px;
}

.staff-modal-btn-confirm {
    flex: 1;
    background: var(--color-clay);
    color: #FFF;
    border: none;
    padding: 14px;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    font-size: 1rem;
}

.staff-modal-btn-cancel {
    flex: 1;
    background: #EEE;
    color: #333;
    border: none;
    padding: 14px;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    font-size: 1rem;
}

/* ═══════════════════════════════════════════════════════════
   WEATHER BAR
════════════════════════════════════════════════════════════ */
.weather-bar {
    background: var(--color-forest);
    color: var(--color-paper);
    padding: 0.55rem 0;
    font-size: 0.85rem;
    border-bottom: 1px solid var(--color-brass-shine);
}

.weather-bar__inner {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.weather-bar__icon {
    font-size: 1.1rem;
}

.weather-bar__temp {
    font-weight: 700;
    color: var(--color-brass-shine);
    min-width: 3.5rem;
}

.weather-bar__condition {
    opacity: 0.85;
}

.weather-bar__divider {
    opacity: 0.4;
}

.weather-bar__tip {
    opacity: 0.7;
    font-style: italic;
    flex: 1;
}

.weather-bar__meta {
    margin-left: auto;
    opacity: 0.65;
    font-size: 0.78rem;
    white-space: nowrap;
}

@media (max-width: 600px) {
    .weather-bar__tip {
        display: none;
    }

    .weather-bar__meta {
        margin-left: 0;
    }
}

/* ═══════════════════════════════════════════════════════════
   SOCIAL FEED SECTION
════════════════════════════════════════════════════════════ */
.section-social {
    padding: 4rem 0;
}

.social-feed__tabs {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.social-tab {
    background: transparent;
    border: 1px solid var(--color-sage-light);
    color: var(--color-forest);
    padding: 0.35rem 0.9rem;
    border-radius: 2rem;
    font-size: 0.82rem;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.social-tab:hover,
.social-tab.active {
    background: var(--color-forest);
    color: var(--color-paper);
    border-color: var(--color-forest);
}

.social-feed__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.25rem;
    margin-top: 1.75rem;
}

.social-feed__loading,
.social-feed__empty {
    grid-column: 1 / -1;
    text-align: center;
    opacity: 0.5;
    padding: 2rem;
    font-style: italic;
}

.social-card {
    background: var(--color-paper);
    border-radius: 12px;
    border: 1px solid rgba(46, 64, 51, 0.12);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.social-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(46, 64, 51, 0.14);
}

.social-card__img-wrap {
    aspect-ratio: 4/3;
    overflow: hidden;
}

.social-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.social-card:hover .social-card__img {
    transform: scale(1.04);
}

.social-card__body {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
}

.social-card__platform {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.6;
}

.social-card--facebook .social-card__platform {
    color: #1877F2;
    opacity: 1;
}

.social-card--instagram .social-card__platform {
    color: #E4405F;
    opacity: 1;
}

.social-card__text {
    font-size: 0.88rem;
    line-height: 1.5;
    color: var(--color-midnight);
    margin: 0;
    flex: 1;
}

.social-card__meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.78rem;
    opacity: 0.6;
    margin-top: auto;
}

.social-card__time {
    margin-left: auto;
}

/* --- UTILITY CLASSES (Polishing Phase) --- */
.white-text {
    color: #FFF;
}

.black-text {
    color: #000;
}

.text-muted {
    color: #666;
}

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

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

.accent-link {
    color: var(--color-accent);
    text-decoration: none;
}

.accent-link:hover {
    text-decoration: underline;
}

.biometric-icon {
    font-size: 1.2rem;
    margin-right: 8px;
}

.w-full {
    width: 100%;
}

.mt-10 {
    margin-top: 10px;
}

.mt-20 {
    margin-top: 20px;
}

.mt-40 {
    margin-top: 40px;
}

.mb-5 {
    margin-bottom: 5px;
}

.mb-10 {
    margin-bottom: 10px;
}

.mb-15 {
    margin-bottom: 15px;
}

.mb-20 {
    margin-bottom: 20px;
}

.mb-24 {
    margin-bottom: 24px;
}

.mb-40 {
    margin-bottom: 40px;
}

.pt-20 {
    padding-top: 20px;
}

.p-15 {
    padding: 15px;
}

.p-20 {
    padding: 20px;
}

.p-40 {
    padding: 40px;
}

.gap-10 {
    display: flex;
    justify-content: center;
    align-items: center;
}

.flex-center {
    display: flex;
    justify-content: center;
    align-items: center;
}

.flex-center-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.text-clay {
    color: var(--color-clay);
}

.text-success {
    color: #46D160;
}

.bg-orange {
    background: #FF4500;
}

.pointer {
    cursor: pointer;
}

.divider-top {
    border-top: 1px solid #EEE;
}

.pl-20 {
    padding-left: 20px;
}

.font-xs {
    font-size: 0.85rem;
}


/* Legacy basket styles removed - now using basket_styles.css */

/* --- BLOG SECTION --- */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.blog-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    height: 100%;
    background: var(--color-paper);
    border-radius: var(--radius-card);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-soft);
}

.blog-card__img-container {
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.blog-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-card:hover .blog-card__img {
    transform: scale(1.05);
}

.blog-card__content {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-card__tag {
    display: inline-block;
    padding: 4px 12px;
    background: var(--color-bg);
    color: var(--color-forest);
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 4px;
    margin-bottom: 15px;
    width: fit-content;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.blog-card__title {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    line-height: 1.3;
    margin-bottom: 12px;
    color: var(--color-forest);
}

.blog-card__excerpt {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--color-forest);
    opacity: 0.8;
    margin-bottom: 20px;
}

/* --- HUB ENHANCEMENTS & SEED HUB --- */
.hero-title {
    font-family: var(--fraunces);
}

.seed-hub-compact {
    max-width: 400px;
    margin: 0 auto;
}

.seed-meter-bg {
    height: 8px;
    background: rgba(46, 64, 51, 0.1);
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid rgba(224, 184, 110, 0.1);
}

.seed-meter-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--color-gold), #e0b86e);
    box-shadow: 0 0 10px rgba(224, 184, 110, 0.4);
    border-radius: 4px;
}

/* --- PREMIUM AUTH SYSTEM --- */
.auth-page-wrapper {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-top: -100px;
}
.auth-backdrop {
    position: absolute;
    inset: 0;
    background-image: url('images/hero/sanctuary-bokeh.png');
    background-size: cover;
    background-position: center;
    filter: grayscale(0.2) brightness(0.6);
    z-index: -1;
    transform: scale(1.1);
}
.auth-card {
    background: rgba(255, 255, 255, 0.03) !important;
    -webkit-backdrop-filter: blur(24px) saturate(160%);
    backdrop-filter: blur(24px) saturate(160%);
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.4) !important;
    color: white !important;
    border-radius: var(--radius-16);
    width: 100%;
    max-width: 480px;
    padding: 40px;
}
.auth-card h2, .auth-card .soul-accent { color: var(--color-brass-shine) !important; }
.auth-card .text-muted { color: rgba(255, 255, 255, 0.6) !important; }
.input-premium {
    width: 100%;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-card);
    color: white;
    font-family: var(--font-body);
    font-size: 15px;
    transition: all 0.3s ease;
}
.input-premium:focus {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--color-accent);
    outline: none;
    box-shadow: 0 0 0 4px rgba(191, 164, 84, 0.1);
}
.label-premium {
    display: block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 10px;
    opacity: 0.6;
    color: white;
}
.alert-sanctuary {
    border-left: 3px solid var(--color-accent);
    background: rgba(191, 164, 84, 0.1);
    border-radius: var(--radius-card);
    padding: 15px;
    margin-bottom: 20px;
    color: var(--color-brass-shine);
}
.btn-link-action {
    background: none;
    border: none;
    color: var(--color-brass-shine);
    font-weight: 700;
    cursor: pointer;
    padding: 0;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
    font-family: var(--font-body);
}
.btn-link-action:hover {
    border-bottom-color: var(--color-accent);
}
.auth-animate-in {
    animation: authFadeIn 0.8s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}
@keyframes authFadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}
.animate-shake { animation: shake 0.4s ease-in-out 0s 2; }

/* --- MISSION CONTROL: OPS PLANNER STYLES --- */
.refined-card {
    background: var(--color-paper);
    border-radius: var(--radius-card);
    border: 1px solid rgba(46, 64, 51, 0.1);
    padding: 24px;
    box-shadow: var(--shadow-soft);
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.glass-panel {
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(10px) saturate(140%);
    -webkit-backdrop-filter: blur(10px) saturate(140%);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.border-left-priority {
    border-left: 5px solid transparent;
}
.border-left-priority.high { border-left-color: var(--color-clay); }
.border-left-priority.medium { border-left-color: var(--color-accent); }
.border-left-priority.low { border-left-color: var(--color-forest); }

.badge-mini {
    padding: 2px 8px;
    font-size: 0.65rem;
    font-weight: 800;
    border-radius: 4px;
    text-transform: uppercase;
}

.order-count-display {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1;
    font-family: var(--font-heading);
}

.btn-micro {
    background: rgba(46, 64, 51, 0.05);
    border: 1px solid rgba(46, 64, 51, 0.1);
    color: var(--color-forest);
    padding: 4px 12px;
    font-size: 0.7rem;
    font-weight: 700;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-micro:hover {
    background: var(--color-forest);
    color: white;
}

.btn-micro.btn-primary {
    background: var(--color-forest);
    color: white;
}

.btn-text-micro {
    background: none;
    border: none;
    color: var(--color-accent);
    font-weight: 900;
    cursor: pointer;
    font-size: 1rem;
    padding: 0 5px;
    transition: transform 0.2s;
}

.btn-text-micro:hover {
    transform: scale(1.3);
}

.view-header-lg {
    font-size: 2.8rem;
    letter-spacing: -1px;
}

/* --- ZEN BRIDGE: STAGGERED PAGE TRANSITIONS --- */
.animate-entry {
    opacity: 1; /* Container stays visible, children animate */
}

.animate-entry > * {
    opacity: 0;
    animation: pageEntry 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

/* Staggered Delays (8 Elements) */
.animate-entry > *:nth-child(1) { animation-delay: 0.05s; }
.animate-entry > *:nth-child(2) { animation-delay: 0.15s; }
.animate-entry > *:nth-child(3) { animation-delay: 0.25s; }
.animate-entry > *:nth-child(4) { animation-delay: 0.35s; }
.animate-entry > *:nth-child(5) { animation-delay: 0.45s; }
.animate-entry > *:nth-child(6) { animation-delay: 0.55s; }
.animate-entry > *:nth-child(7) { animation-delay: 0.65s; }
.animate-entry > *:nth-child(8) { animation-delay: 0.75s; }

@keyframes pageEntry {
    0% {
        opacity: 0;
        transform: translateY(20px);
        filter: blur(4px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}