/* 
   ReLeaf Radar PA - Stylesheet
   Designed with premium dark aesthetics, glassmorphism, 
   curated HSL colors, responsive grid layouts, and micro-animations.
*/

/* --- Design Tokens / Core Variables --- */
:root {
    --bg-darkest: #0B0F17; /* Premium Midnight Charcoal background */
    --bg-darker: #1F2937;  /* Lighter charcoal panel background */
    --bg-card: #1F2937;    /* Lighter charcoal card background */
    --bg-card-hover: #253041;

    --primary: #10B981;    /* Vibrant electric neon green */
    --primary-glow: rgba(16, 185, 129, 0.25);
    --primary-dark: #059669;

    --accent: #10b981;
    --gold: #f59e0b;
    /* Golden Amber terpene shade */
    --gold-glow: rgba(245, 158, 11, 0.2);

    /* Strain Shades */
    --indica: #b76eff;
    --indica-glow: rgba(183, 110, 255, 0.15);
    --sativa: #ff5252;
    --sativa-glow: rgba(255, 82, 82, 0.15);
    --hybrid: #ff9100;
    --hybrid-glow: rgba(255, 145, 0, 0.15);
    --cbd: #29b6f6;
    --cbd-glow: rgba(41, 182, 246, 0.15);

    --border-light: rgba(16, 185, 129, 0.2); /* Subtle green card borders */
    --border-hover: rgba(16, 185, 129, 0.35);
    --border-primary-glow: rgba(16, 185, 129, 0.4);

    /* Typography & Depth */
    --text-primary: #FFFFFF;   /* Pure white headings and titles */
    --text-secondary: #9CA3AF; /* Light silver-gray metadata copy */
    --text-muted: #9CA3AF;     /* Light silver-gray helper text */
    --font-outfit: 'Outfit', 'Inter', sans-serif;
    --font-inter: 'Inter', sans-serif;

    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -2px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 10px 10px -5px rgba(0, 0, 0, 0.2);
    --shadow-glow: 0 0 25px rgba(16, 185, 129, 0.15);
}

/* --- Global Resets & Layout Base --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-darkest);
    color: var(--text-primary);
    font-family: var(--font-inter);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    line-height: 1.5;
}

/* --- Ambient Light/Glow Overlays --- */
.glow-bg {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(140px);
    z-index: -1;
    pointer-events: none;
    opacity: 0.25;
}

.glow-1 {
    top: -200px;
    right: -100px;
    background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
}

.glow-2 {
    bottom: -100px;
    left: -200px;
    background: radial-gradient(circle, var(--indica) 0%, transparent 70%);
}

/* --- Scrollbar Customization --- */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-darkest);
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.12);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* --- Premium Nav Buttons --- */
.nav-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-outfit);
    font-weight: 600;
    font-size: 0.88rem;
    padding: 0.6rem 1.15rem;
    border-radius: 10px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.02);
    color: var(--text-secondary);
    outline: none;
}

.nav-btn i {
    font-size: 0.95rem;
    transition: transform 0.3s ease;
}

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

.nav-btn:hover i {
    transform: scale(1.15);
}

/* Individual colors on Hover & Active */
.nav-btn-deals:hover, .nav-btn-deals.active {
    border-color: rgba(16, 185, 129, 0.45) !important;
    background: rgba(16, 185, 129, 0.08) !important;
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.15);
    color: #fff !important;
}
.nav-btn-deals.active i {
    color: var(--primary) !important;
}

.nav-btn-search:hover, .nav-btn-search.active {
    border-color: rgba(245, 158, 11, 0.45) !important;
    background: rgba(245, 158, 11, 0.08) !important;
    box-shadow: 0 0 15px rgba(245, 158, 11, 0.15);
    color: #fff !important;
}
.nav-btn-search.active i {
    color: var(--gold) !important;
}

.nav-btn-terps:hover, .nav-btn-terps.active {
    border-color: rgba(183, 110, 255, 0.45) !important;
    background: rgba(183, 110, 255, 0.08) !important;
    box-shadow: 0 0 15px rgba(183, 110, 255, 0.15);
    color: #fff !important;
}
.nav-btn-terps.active i {
    color: var(--indica) !important;
}

.nav-btn-calc:hover, .nav-btn-calc.active {
    border-color: rgba(41, 182, 246, 0.45) !important;
    background: rgba(41, 182, 246, 0.08) !important;
    box-shadow: 0 0 15px rgba(41, 182, 246, 0.15);
    color: #fff !important;
}
.nav-btn-calc.active i {
    color: var(--cbd) !important;
}

.nav-btn-resources:hover, .nav-btn-resources.active {
    border-color: rgba(0, 230, 118, 0.45) !important;
    background: rgba(0, 230, 118, 0.08) !important;
    box-shadow: 0 0 15px rgba(0, 230, 118, 0.15);
    color: #fff !important;
}
.nav-btn-resources.active i {
    color: #00e676 !important;
}

.nav-btn-faq:hover, .nav-btn-faq.active {
    border-color: rgba(255, 255, 255, 0.25) !important;
    background: rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.1);
    color: #fff !important;
}
.nav-btn-faq.active i {
    color: #fff !important;
}


/* --- Premium Dropdown Navigation Menu --- */
.menu-dropdown {
    position: relative;
    display: inline-block;
    z-index: 1000;
}

.menu-trigger-btn {
    display: inline-flex !important;
    align-items: center !important;
    gap: 12px !important;
    padding: 0.7rem 1.6rem !important;
    border-radius: 14px !important;
    border: 1.5px solid rgba(0, 230, 118, 0.4) !important;
    background: rgba(0, 230, 118, 0.08) !important;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
    box-shadow: 0 4px 15px rgba(0, 230, 118, 0.15) !important;
    cursor: pointer;
}

.menu-trigger-btn span {
    font-family: var(--font-outfit) !important;
    font-size: 1.12rem !important;
    font-weight: 800 !important;
    color: #fff !important;
    letter-spacing: 0.5px;
}

.menu-trigger-btn img {
    width: 26px !important;
    height: 26px !important;
    border-radius: 8px !important;
    box-shadow: 0 2px 8px rgba(0, 230, 118, 0.3) !important;
}

.menu-trigger-btn i {
    font-size: 0.85rem !important;
    color: var(--primary) !important;
}

.menu-dropdown-content {
    position: absolute;
    top: 100%;
    left: 50%;
    right: auto;
    margin-top: 10px;
    width: 580px;
    background: rgba(18, 24, 38, 0.98);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1.5px solid rgba(0, 230, 118, 0.4);
    border-radius: 16px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6), 0 0 25px rgba(0, 230, 118, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) translateY(12px) scale(0.98);
    pointer-events: none;
    transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1), transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.25s linear;
    transition-delay: 0.3s; /* Keeps menu open for 300ms when mouse leaves to prevent accidental closings */
    padding: 0.85rem;
    max-height: 80vh;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 230, 118, 0.3) transparent;
}
.menu-dropdown-content::-webkit-scrollbar {
    width: 6px;
}
.menu-dropdown-content::-webkit-scrollbar-track {
    background: transparent;
}
.menu-dropdown-content::-webkit-scrollbar-thumb {
    background-color: rgba(0, 230, 118, 0.3);
    border-radius: 3px;
}

/* Invisible hover bridge to span the 10px margin gap */
.menu-dropdown-content::before {
    content: '';
    position: absolute;
    top: -20px; /* spans the 10px margin-top plus some button overlap */
    left: 0;
    right: 0;
    height: 20px;
    background: transparent;
}

/* Trigger reveal on hover */
.menu-dropdown:hover .menu-dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0) scale(1);
    pointer-events: auto;
    transition-delay: 0s; /* Opens instantly when hovered */
}

.menu-dropdown:hover .menu-trigger-btn {
    background: rgba(0, 230, 118, 0.18) !important;
    border-color: var(--primary) !important;
    box-shadow: 0 0 20px rgba(0, 230, 118, 0.35) !important;
}

.menu-dropdown:hover .menu-trigger-btn .fa-chevron-down {
    transform: rotate(180deg);
}

.menu-dropdown-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px 12px;
}

@media (max-width: 600px) {
    .menu-dropdown-content {
        width: 290px;
        left: 50%;
        right: auto;
        transform: translateX(-50%) translateY(12px) scale(0.98);
        max-height: 70vh;
    }
    .menu-dropdown:hover .menu-dropdown-content {
        transform: translateX(-50%) translateY(0) scale(1);
    }
    .menu-dropdown-grid {
        grid-template-columns: 1fr;
        gap: 4px;
    }
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: 10px;
    text-decoration: none;
    color: var(--text-secondary);
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.menu-item i {
    font-size: 1.1rem;
    width: 24px;
    text-align: center;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.menu-item-text {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.menu-item-text strong {
    font-family: var(--font-outfit);
    font-size: 0.9rem;
    color: var(--text-primary);
    font-weight: 700;
}

.menu-item-text span {
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-top: 1px;
}

.menu-item:hover {
    transform: translateX(4px);
    color: #fff !important;
    background: rgba(255, 255, 255, 0.02);
}

.menu-item:hover i {
    transform: scale(1.15);
}

/* Custom left border highlights for hover states */
.menu-item.item-deals:hover {
    border-color: rgba(16, 185, 129, 0.2);
    background: rgba(16, 185, 129, 0.05);
}
.menu-item.item-deals:hover i { color: var(--primary) !important; }

.menu-item.item-search:hover {
    border-color: rgba(245, 158, 11, 0.2);
    background: rgba(245, 158, 11, 0.05);
}
.menu-item.item-search:hover i { color: var(--gold) !important; }

.menu-item.item-terps:hover {
    border-color: rgba(183, 110, 255, 0.2);
    background: rgba(183, 110, 255, 0.05);
}
.menu-item.item-terps:hover i { color: var(--indica) !important; }

.menu-item.item-tuner:hover {
    border-color: rgba(255, 82, 82, 0.2);
    background: rgba(255, 82, 82, 0.05);
}
.menu-item.item-tuner:hover i { color: var(--sativa) !important; }

.menu-item.item-matcher:hover {
    border-color: rgba(41, 182, 246, 0.2);
    background: rgba(41, 182, 246, 0.05);
}
.menu-item.item-matcher:hover i { color: var(--cbd) !important; }

.menu-item.item-calc:hover {
    border-color: rgba(0, 230, 118, 0.2);
    background: rgba(0, 230, 118, 0.05);
}
.menu-item.item-calc:hover i { color: #00e676 !important; }

.menu-item.item-resources:hover {
    border-color: rgba(16, 185, 129, 0.2);
    background: rgba(16, 185, 129, 0.05);
}
.menu-item.item-resources:hover i { color: var(--primary) !important; }

.menu-item.item-faq:hover {
    border-color: rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.04);
}
.menu-item.item-faq:hover i { color: #fff !important; }

.menu-item.item-decarb:hover {
    border-color: rgba(245, 158, 11, 0.25);
    background: rgba(245, 158, 11, 0.05);
}
.menu-item.item-decarb:hover i { color: var(--gold) !important; }


/* --- Reusable Premium Buttons & Badges --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-outfit);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.65rem 1.25rem;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid transparent;
    outline: none;
}

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

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 230, 118, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border-color: var(--border-light);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--border-hover);
    transform: translateY(-2px);
}

.btn-full {
    width: 100%;
}

.btn-icon-only {
    padding: 0.65rem;
    width: 42px;
    height: 42px;
    border-radius: 12px;
}

.btn-text {
    background: none;
    border: none;
    color: var(--primary);
    font-family: var(--font-outfit);
    font-weight: 600;
    cursor: pointer;
    transition: color 0.2s;
}

.btn-text:hover {
    color: var(--text-primary);
    text-decoration: underline;
}

.badge {
    background: #fff;
    color: #000;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 20px;
    margin-left: 4px;
}

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

.text-emerald {
    color: var(--primary);
}

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

/* --- App Header & Navigation --- */
.app-header {
    background: rgba(12, 16, 31, 0.8);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-light);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.25rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    font-size: 1.6rem;
    box-shadow: 0 4px 15px rgba(0, 230, 118, 0.3);
}

.brand-text h1 {
    font-family: var(--font-outfit);
    font-weight: 800;
    font-size: 1.6rem;
    line-height: 1.2;
    display: flex;
    align-items: center;
    gap: 8px;
}

.state-badge {
    background: rgba(0, 230, 118, 0.1);
    color: var(--primary);
    border: 1px solid var(--primary-glow);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 6px;
    vertical-align: middle;
}

.brand-text p {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.header-actions {
    display: flex;
    gap: 12px;
}

/* --- Market/Savings Ticker --- */
.market-ticker {
    background: rgba(7, 10, 19, 0.9);
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    overflow: hidden;
    white-space: nowrap;
    padding: 0.5rem 2rem;
}

.ticker-content {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.85rem;
    font-family: var(--font-outfit);
    color: var(--text-secondary);
}

.ticker-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.ticker-item strong {
    color: var(--text-primary);
}

.market-ticker .divider {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background-color: var(--text-muted);
    margin: 0 2rem;
}

/* --- Layout Architecture --- */
.app-layout {
    max-width: 1400px;
    margin: 2rem auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 2rem;
    align-items: start;
}

/* --- Sidebar Filters --- */
.sidebar-filters {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 20px;
    padding: 1.5rem;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    position: sticky;
    top: 130px;
    max-height: calc(100vh - 160px);
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.08) transparent;
}

.sidebar-filters::-webkit-scrollbar {
    width: 5px;
}

.sidebar-filters::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar-filters::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 4px;
}

.sidebar-filters::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-light);
}

.sidebar-header h2 {
    font-family: var(--font-outfit);
    font-size: 1.25rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-section {
    margin-bottom: 1.5rem;
}

.filter-section h3 {
    font-family: var(--font-outfit);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
}

/* Dropdown Select System */
.select-wrapper {
    position: relative;
}

.select-wrapper::after {
    content: '\f107';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    pointer-events: none;
}

select {
    width: 100%;
    background-color: rgba(7, 10, 19, 0.6);
    border: 1px solid var(--border-light);
    color: var(--text-primary);
    padding: 0.75rem 1rem;
    border-radius: 12px;
    appearance: none;
    font-family: var(--font-inter);
    outline: none;
    cursor: pointer;
    transition: all 0.2s;
}

select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 10px var(--primary-glow);
}

/* --- ZIP Code Search Input --- */
.zip-input-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: rgba(7, 10, 19, 0.6);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 2px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.zip-input-wrapper:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 8px var(--primary-glow);
}

.zip-input-wrapper input {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    color: var(--text-primary);
    padding: 0.65rem 0.85rem;
    font-family: var(--font-inter);
    font-size: 0.95rem;
    width: 100%;
}

.zip-input-wrapper input::placeholder {
    color: var(--text-muted);
}

.btn-zip-apply {
    background: rgba(0, 230, 118, 0.1);
    border: 1px solid rgba(0, 230, 118, 0.2);
    color: var(--primary);
    border-radius: 9px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    margin: 2px;
    flex-shrink: 0;
}

.btn-zip-apply:hover {
    background: var(--primary);
    color: #000;
    box-shadow: 0 0 8px var(--primary-glow);
}

.zip-error-message {
    color: #ff3b30;
    font-size: 0.75rem;
    margin-top: 6px;
    padding-left: 4px;
    font-weight: 500;
}

/* Checkbox Style Group */
.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-height: 180px;
    overflow-y: auto;
    padding-right: 5px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text-secondary);
    transition: color 0.2s;
}

.checkbox-label:hover {
    color: var(--text-primary);
}

.checkbox-label input[type="checkbox"] {
    appearance: none;
    width: 18px;
    height: 18px;
    border: 1px solid var(--border-light);
    border-radius: 4px;
    outline: none;
    cursor: pointer;
    position: relative;
    background: rgba(7, 10, 19, 0.6);
    transition: all 0.2s;
}

.checkbox-label input[type="checkbox"]:checked {
    background-color: var(--primary);
    border-color: var(--primary);
}

.checkbox-label input[type="checkbox"]:checked::after {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: #000;
    font-size: 0.7rem;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Category grid buttons */
.category-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.category-btn {
    background: rgba(7, 10, 19, 0.5);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 0.75rem 0.5rem;
    color: var(--text-secondary);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.2s;
    font-family: var(--font-outfit);
    font-size: 0.8rem;
    font-weight: 600;
}

.category-btn i {
    font-size: 1.1rem;
}

.category-btn:hover {
    border-color: var(--border-hover);
    color: var(--text-primary);
}

.category-btn.active {
    background: rgba(0, 230, 118, 0.08);
    border-color: var(--primary);
    color: var(--primary);
    box-shadow: 0 0 10px rgba(0, 230, 118, 0.08);
}

/* Strain classifications */
.strain-toggles {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.strain-btn {
    background: rgba(7, 10, 19, 0.5);
    border: 1px solid var(--border-light);
    color: var(--text-secondary);
    padding: 0.5rem 1rem;
    border-radius: 10px;
    cursor: pointer;
    font-family: var(--font-outfit);
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.2s;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 8px;
}

.strain-btn::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--text-muted);
}

.strain-btn.strain-indica::before {
    background-color: var(--indica);
}

.strain-btn.strain-sativa::before {
    background-color: var(--sativa);
}

.strain-btn.strain-hybrid::before {
    background-color: var(--hybrid);
}

.strain-btn.strain-cbd::before {
    background-color: var(--cbd);
}

.strain-btn:hover {
    border-color: var(--border-hover);
    color: var(--text-primary);
}

.strain-btn.active {
    border-color: var(--text-primary);
    color: var(--text-primary);
}

.strain-btn.strain-indica.active {
    background: var(--indica-glow);
    border-color: var(--indica);
}

.strain-btn.strain-sativa.active {
    background: var(--sativa-glow);
    border-color: var(--sativa);
}

.strain-btn.strain-hybrid.active {
    background: var(--hybrid-glow);
    border-color: var(--hybrid);
}

.strain-btn.strain-cbd.active {
    background: var(--cbd-glow);
    border-color: var(--cbd);
}

/* Range sliders */
.range-container {
    padding: 0.5rem 0;
}

input[type="range"] {
    appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.1);
    outline: none;
}

input[type="range"]::-webkit-slider-thumb {
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
    box-shadow: 0 0 10px var(--primary-glow);
    transition: transform 0.1s;
}

input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.range-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 8px;
}

/* --- Main Grid & Toolbar --- */
.main-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Toolbar Controls */
.toolbar {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 0.85rem 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    scroll-margin-top: 140px;
}

.search-bar {
    position: relative;
    flex: 1;
    max-width: 600px;
}

.search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
}

.search-bar input {
    width: 100%;
    background: rgba(7, 10, 19, 0.6);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    color: var(--text-primary);
    outline: none;
    font-family: var(--font-inter);
    transition: all 0.2s;
}

.search-bar input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 12px var(--primary-glow);
}

.btn-clear-search {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1.1rem;
}

.btn-clear-search:hover {
    color: var(--text-primary);
}

.toolbar-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sort-selector {
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
}

.sort-selector label {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.select-wrapper-inline {
    position: relative;
    width: 200px;
}

.select-wrapper-inline select {
    padding: 0.55rem 1rem;
    font-size: 0.9rem;
}

.select-wrapper-inline::after {
    content: '\f107';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    pointer-events: none;
}

/* Results counts & active badges */
.results-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
}

#results-count {
    color: var(--text-secondary);
}

.active-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.filter-badge {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-light);
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-secondary);
}

.filter-badge button {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
}

.filter-badge button:hover {
    color: var(--primary);
}

/* --- Specials Grid & Premium Cards --- */
.specials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

.deal-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 20px;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: var(--shadow-sm);
}

/* Specific glows based on strain */
.deal-card.indica {
    border-left: 4px solid var(--indica);
}

.deal-card.sativa {
    border-left: 4px solid var(--sativa);
}

.deal-card.hybrid {
    border-left: 4px solid var(--hybrid);
}

.deal-card.cbd {
    border-left: 4px solid var(--cbd);
}

.deal-card:hover {
    transform: translateY(-5px);
    border-color: var(--border-hover);
    background: var(--bg-card-hover);
    box-shadow: var(--shadow-md);
}

.deal-card.indica:hover {
    box-shadow: 0 10px 20px var(--indica-glow);
}

.deal-card.sativa:hover {
    box-shadow: 0 10px 20px var(--sativa-glow);
}

.deal-card.hybrid:hover {
    box-shadow: 0 10px 20px var(--hybrid-glow);
}

.deal-card.cbd:hover {
    box-shadow: 0 10px 20px var(--cbd-glow);
}

/* Savings Ribbon Badge */
.savings-ribbon {
    position: absolute;
    top: 12px;
    right: 12px;
    background: linear-gradient(135deg, var(--gold), #d97706);
    color: #000;
    font-weight: 800;
    font-size: 0.75rem;
    padding: 4px 10px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.25);
    font-family: var(--font-outfit);
}

/* Card layout details */
.card-header-info {
    margin-bottom: 0.75rem;
}

.dispensary-meta {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 4px;
}

.dispensary-meta span {
    color: var(--text-muted);
    font-weight: 500;
    text-transform: none;
    letter-spacing: normal;
}

.brand-label {
    font-family: var(--font-outfit);
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 600;
}

.product-name {
    font-family: var(--font-outfit);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.3;
    margin: 2px 0 6px 0;
}

/* Badges row */
.badge-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.strain-badge {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 6px;
    font-family: var(--font-outfit);
    text-transform: uppercase;
}

.strain-badge.indica {
    background: var(--indica-glow);
    color: var(--indica);
    border: 1px solid rgba(183, 110, 255, 0.3);
}

.strain-badge.sativa {
    background: var(--sativa-glow);
    color: var(--sativa);
    border: 1px solid rgba(255, 82, 82, 0.3);
}

.strain-badge.hybrid {
    background: var(--hybrid-glow);
    color: var(--hybrid);
    border: 1px solid rgba(255, 145, 0, 0.3);
}

.strain-badge.cbd {
    background: var(--cbd-glow);
    color: var(--cbd);
    border: 1px solid rgba(41, 182, 246, 0.3);
}

.spec-badge {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-light);
    color: var(--text-secondary);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 6px;
}

/* Card Pricing Details */
.pricing-block {
    background: rgba(7, 10, 19, 0.4);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 0.75rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    margin-top: auto;
    /* Push to bottom */
}

.price-box {
    display: flex;
    flex-direction: column;
}

.price-box .label {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.retail-price {
    text-decoration: line-through;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.sale-price {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-primary);
    font-family: var(--font-outfit);
    line-height: 1.1;
}

.discount-summary-tag {
    text-align: right;
    display: flex;
    flex-direction: column;
}

.save-amt {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--primary);
}

.discount-pct {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

/* Card action footers */
.card-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
}

.btn-card-add {
    background: rgba(0, 230, 118, 0.08);
    border: 1px solid var(--primary-glow);
    color: var(--primary);
    font-family: var(--font-outfit);
    font-weight: 600;
    font-size: 0.82rem;
    padding: 0.55rem;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    transition: all 0.2s;
}

.btn-card-add:hover {
    background: var(--primary);
    color: #000;
    box-shadow: 0 0 10px var(--primary-glow);
}

.btn-card-add.added {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--border-light);
    color: var(--text-secondary);
}

.btn-card-add.added:hover {
    background: rgba(255, 59, 48, 0.1);
    color: #ff3b30;
    border-color: rgba(255, 59, 48, 0.2);
}

.btn-order-link {
    background: rgba(245, 158, 11, 0.08);
    border: 1px solid rgba(245, 158, 11, 0.25);
    color: var(--gold);
    font-family: var(--font-outfit);
    font-weight: 600;
    font-size: 0.82rem;
    padding: 0.55rem;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    text-decoration: none;
    transition: all 0.2s;
}

.btn-order-link:hover {
    background: var(--gold);
    color: #000;
    box-shadow: 0 0 10px var(--gold-glow);
}

/* Sidebar Glowing Cannabis Leaf Logo */
.sidebar-brand-image {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-light);
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.glowing-leaf-img {
    width: 140px;
    height: 140px;
    object-fit: contain;
    filter: drop-shadow(0 0 15px rgba(0, 230, 118, 0.35));
    animation: floatAnimation 4.5s infinite ease-in-out;
}

@keyframes floatAnimation {

    0%,
    100% {
        transform: translateY(0) scale(1);
        filter: drop-shadow(0 0 15px rgba(0, 230, 118, 0.35));
    }

    50% {
        transform: translateY(-8px) scale(1.02);
        filter: drop-shadow(0 0 25px rgba(0, 230, 118, 0.6));
    }
}

/* --- Empty states --- */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 20px;
}

.empty-icon {
    font-size: 3rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.empty-state h3 {
    font-family: var(--font-outfit);
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.empty-state p {
    color: var(--text-secondary);
    max-width: 500px;
    margin: 0 auto 1.5rem auto;
}

.hidden {
    display: none !important;
}



/* --- Modals (Patient Guide) --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    z-index: 1002;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    width: 90%;
    max-width: 650px;
    background: var(--bg-darker);
    border: 1px solid var(--border-light);
    border-radius: 24px;
    z-index: 1003;
    display: flex;
    flex-direction: column;
    max-height: 85vh;
    opacity: 0;
    pointer-events: none;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal.active {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, -50%) scale(1);
}

.modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    font-family: var(--font-outfit);
    font-size: 1.4rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-close-modal {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.25rem;
    cursor: pointer;
    transition: color 0.2s;
}

.btn-close-modal:hover {
    color: var(--text-primary);
}

.modal-body {
    padding: 1.5rem;
    overflow-y: auto;
}

.guide-sections {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.guide-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 1.25rem;
}

.guide-card h3 {
    font-family: var(--font-outfit);
    font-size: 1.05rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.guide-card h3 i {
    color: var(--primary);
}

.guide-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.45;
}

.guide-card strong {
    color: var(--text-primary);
}

.flex-row {
    display: flex;
    gap: 14px;
    background: rgba(245, 158, 11, 0.03);
    border-color: rgba(245, 158, 11, 0.1);
}

.info-icon {
    font-size: 1.4rem;
    margin-top: 2px;
}

.info-content h4 {
    font-family: var(--font-outfit);
    font-size: 0.95rem;
    color: var(--gold);
    margin-bottom: 2px;
}

.info-content p {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.modal-footer {
    padding: 1.25rem 1.5rem;
    border-top: 1px solid var(--border-light);
    display: flex;
    justify-content: flex-end;
}

/* --- Media Queries (Tablet & Mobile Responsiveness) --- */
@media (max-width: 1024px) {
    .app-layout {
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
    }

    .main-content {
        order: 1;
    }

    .sidebar-filters {
        order: 2;
        position: static;
        width: 100%;
        backdrop-filter: none;
    }
}

@media (max-width: 768px) {
    .header-container {
        padding: 1rem;
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }

    .brand {
        justify-content: center;
    }

    .header-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .menu-dropdown {
        display: flex;
        justify-content: center;
        width: 100%;
    }

    .market-ticker {
        display: none;
        /* Hide complex ticker on small mobile screens */
    }

    .app-layout {
        padding: 0 1rem;
        margin: 1rem auto;
    }

    .toolbar {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .toolbar-actions {
        display: grid;
        grid-template-columns: 1fr 42px;
        gap: 8px;
    }

    .sort-selector {
        width: 100%;
    }

    .select-wrapper-inline {
        width: 100%;
        flex: 1;
    }



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

    .steals-quick-toggle {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1rem;
        padding: 1.25rem 1rem;
    }

    .premium-badge {
        align-self: center;
    }
}

/* --- Steals Quick Toggle Panel Styles --- */
.steals-quick-toggle {
    display: flex;
    align-items: center;
    gap: 2rem;
    background: linear-gradient(135deg, rgba(22, 30, 49, 0.8), rgba(7, 10, 19, 0.95));
    border: 1px solid rgba(0, 230, 118, 0.22);
    border-radius: 24px;
    padding: 1.5rem 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 230, 118, 0.04);
    backdrop-filter: blur(16px);
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.steals-quick-toggle::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(0, 230, 118, 0.08) 0%, transparent 70%);
    pointer-events: none;
    transition: all 0.5s ease;
}

.steals-quick-toggle.active {
    border-color: rgba(245, 158, 11, 0.4);
    box-shadow: 0 12px 40px rgba(245, 158, 11, 0.12), 0 0 20px rgba(245, 158, 11, 0.06);
}

.steals-quick-toggle.active::before {
    background: radial-gradient(circle, rgba(245, 158, 11, 0.08) 0%, transparent 70%);
    left: 80%;
}

.leaf-toggle-btn-wrapper {
    position: relative;
    width: 170px;
    height: 105px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(0, 230, 118, 0.12), rgba(0, 230, 118, 0.02));
    border: 2px solid rgba(0, 230, 118, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    flex-shrink: 0;
    box-shadow: 0 6px 20px rgba(0, 230, 118, 0.15), inset 0 0 12px rgba(0, 230, 118, 0.05);
}

.leaf-toggle-btn-wrapper:hover {
    transform: scale(1.05) translateY(-2px);
    border-color: var(--primary);
    background: linear-gradient(135deg, rgba(0, 230, 118, 0.22), rgba(0, 230, 118, 0.04));
    box-shadow: 0 10px 30px rgba(0, 230, 118, 0.4), inset 0 0 15px rgba(0, 230, 118, 0.1);
}

.leaf-toggle-btn-wrapper.active {
    border-style: solid;
    border-color: var(--gold);
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.22), rgba(245, 158, 11, 0.05));
    box-shadow: 0 10px 35px rgba(245, 158, 11, 0.45), inset 0 0 15px rgba(245, 158, 11, 0.1);
    transform: scale(1.05) translateY(-2px);
}

.leaf-glow-ring {
    position: absolute;
    top: -6px;
    left: -6px;
    right: -6px;
    bottom: -6px;
    border: 2px dashed rgba(0, 230, 118, 0.45);
    border-radius: 22px;
    pointer-events: none;
    transition: border-color 0.3s ease;
    animation: pulseScan 3s infinite ease-in-out;
}

.leaf-toggle-btn-wrapper.active .leaf-glow-ring {
    border-color: rgba(245, 158, 11, 0.65);
}

@keyframes pulseScan {
    0%, 100% {
        transform: scale(1);
        opacity: 0.5;
        box-shadow: 0 0 10px rgba(0, 230, 118, 0.1);
    }
    50% {
        transform: scale(1.02);
        opacity: 1;
        box-shadow: 0 0 20px rgba(0, 230, 118, 0.4);
    }
}

.toggle-leaf-icon {
    width: 65px;
    height: 65px;
    object-fit: contain;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    filter: drop-shadow(0 0 10px rgba(0, 230, 118, 0.4));
}

.leaf-toggle-btn-wrapper:hover .toggle-leaf-icon {
    filter: drop-shadow(0 0 18px var(--primary));
    transform: scale(1.05);
}

.leaf-toggle-btn-wrapper.active .toggle-leaf-icon {
    transform: scale(1.05) rotate(10deg);
    filter: drop-shadow(0 0 18px var(--gold));
}

.pulse-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 18px;
    border: 2px solid var(--primary);
    opacity: 0;
    animation: ripple 2.5s infinite ease-out;
    pointer-events: none;
}

.leaf-toggle-btn-wrapper.active .pulse-ring {
    border-color: var(--gold);
}

@keyframes ripple {
    0% {
        transform: scale(0.95);
        opacity: 0.8;
    }

    100% {
        transform: scale(1.35);
        opacity: 0;
    }
}

.toggle-text-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.premium-badge {
    align-self: flex-start;
    background: rgba(245, 158, 11, 0.12);
    color: var(--gold);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 3px 8px;
    border-radius: 6px;
    border: 1px solid rgba(245, 158, 11, 0.2);
    margin-bottom: 2px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.toggle-text-panel h3 {
    font-family: var(--font-outfit);
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0;
    transition: color 0.3s ease;
}

.steals-quick-toggle.active .toggle-text-panel h3 {
    color: var(--gold);
}

.toggle-text-panel p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.4;
}

/* --- Steals Toggle ZIP Search --- */
.toggle-zip-search-box {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    max-width: 320px;
    background-color: rgba(7, 10, 19, 0.6);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 2px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.steals-quick-toggle.active .toggle-zip-search-box {
    border-color: rgba(245, 158, 11, 0.3);
}

.toggle-zip-search-box:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 8px var(--primary-glow);
}

.steals-quick-toggle.active .toggle-zip-search-box:focus-within {
    border-color: var(--gold);
    box-shadow: 0 0 8px rgba(245, 158, 11, 0.4);
}

.toggle-zip-search-box input {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    color: var(--text-primary);
    padding: 0.5rem 0.75rem;
    font-family: var(--font-inter);
    font-size: 0.88rem;
    width: 100%;
}

.toggle-zip-search-box input::placeholder {
    color: var(--text-muted);
}

.btn-toggle-zip-apply {
    background: #059669; /* Solid medical ReLeaf green */
    border: 1px solid #047857;
    color: #ffffff !important; /* Pure white text */
    border-radius: 9px;
    padding: 0.4rem 0.85rem;
    font-family: var(--font-outfit);
    font-weight: 700; /* Bold weight */
    font-size: 0.82rem;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
    margin: 2px;
    box-shadow: 0 2px 6px rgba(5, 150, 105, 0.2);
}

.btn-toggle-zip-apply:hover {
    background: #047857; /* Slightly darker green */
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.35), inset 0 -2px 0 rgba(0, 0, 0, 0.15);
    transform: translateY(0.5px); /* feeling like pressing down slightly */
}

.steals-quick-toggle.active .btn-toggle-zip-apply {
    background: #d97706; /* Solid legibility gold/amber */
    border-color: #b45309;
    color: #ffffff !important;
    box-shadow: 0 2px 6px rgba(217, 119, 6, 0.2);
}

.steals-quick-toggle.active .btn-toggle-zip-apply:hover {
    background: #b45309;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(217, 119, 6, 0.35), inset 0 -2px 0 rgba(0, 0, 0, 0.15);
    transform: translateY(0.5px);
}

/* --- Eye-Catching App Introductory Hero --- */
.app-intro-hero {
    display: flex;
    align-items: center;
    gap: 2.25rem;
    background: linear-gradient(135deg, rgba(22, 30, 49, 0.45), rgba(7, 10, 19, 0.65));
    border: 1px solid var(--border-light);
    border-radius: 20px;
    padding: 1.75rem 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(12px);
    overflow: hidden;
    position: relative;
}

.intro-visual-banner {
    position: relative;
    width: 170px;
    height: 105px;
    border-radius: 18px;
    overflow: hidden;
    border: 2px solid rgba(0, 230, 118, 0.22);
    flex-shrink: 0;
    box-shadow: 0 6px 20px rgba(0, 230, 118, 0.15), inset 0 0 12px rgba(0, 230, 118, 0.05);
    background: linear-gradient(135deg, rgba(22, 30, 49, 0.8), rgba(7, 10, 19, 0.95));
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.intro-visual-banner:hover {
    transform: scale(1.05) translateY(-2px);
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(0, 230, 118, 0.35);
}

.intro-hero-banner-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.5s ease;
}

.intro-visual-banner:hover .intro-hero-banner-img {
    transform: scale(1.08);
}

.intro-content {
    flex: 1;
}

.intro-content h2 {
    font-family: var(--font-outfit);
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #fff 30%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.intro-content p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

@keyframes pulseGlow {

    0%,
    100% {
        transform: scale(0.9);
        opacity: 0.8;
    }

    50% {
        transform: scale(1.1);
        opacity: 1;
    }
}

@keyframes hoverLeaf {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-8px) rotate(5deg);
    }
}

@media (max-width: 768px) {
    .app-intro-hero {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1.25rem;
        padding: 1.5rem 1.25rem;
    }

    .intro-visual-banner {
        width: 120px;
        height: 120px;
        padding: 8px;
    }
}

/* --- Best Steals Dashboard Layouts --- */
.steals-dashboard {
    animation: fadeIn 0.4s ease-out;
    scroll-margin-top: 140px;
}

.dashboard-header {
    border-left: 4px solid var(--gold);
    padding-left: 14px;
    margin-bottom: 1.5rem;
}

.dashboard-header h2 {
    font-family: var(--font-outfit);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.dashboard-header p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-top: 4px;
}

/* Trophy Champion Card Design overrides */
.deal-card.champion-card {
    border: 1px solid rgba(245, 158, 11, 0.35) !important;
    background: linear-gradient(135deg, rgba(22, 30, 49, 0.7), rgba(245, 158, 11, 0.03)) !important;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.05);
}

.deal-card.champion-card:hover {
    border-color: var(--gold) !important;
    background: linear-gradient(135deg, rgba(30, 41, 67, 0.95), rgba(245, 158, 11, 0.08)) !important;
    box-shadow: 0 10px 25px var(--gold-glow);
}

.champion-badge {
    font-size: 0.75rem;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 6px;
    margin-bottom: 10px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    align-self: flex-start;
    font-family: var(--font-outfit);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.champion-badge.value-champ {
    background: linear-gradient(135deg, #f59e0b, #d97706) !important;
    color: #0b0f17 !important;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.35) !important;
}

.champion-badge.budget-saver {
    background: linear-gradient(135deg, #10B981, #059669) !important;
    color: #ffffff !important;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.35) !important;
}

.champion-badge.dispensary-champ {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8) !important;
    color: #ffffff !important;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.35) !important;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

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

.animate-glow {
    animation: goldGlow 3s infinite ease-in-out;
}

@keyframes goldGlow {

    0%,
    100% {
        text-shadow: 0 0 5px rgba(245, 158, 11, 0.3);
    }

    50% {
        text-shadow: 0 0 15px rgba(245, 158, 11, 0.8);
    }
}

/* --- Age Gate Full Screen Overlay --- */
.age-gate-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: radial-gradient(circle at center, rgba(12, 16, 31, 0.98) 0%, rgba(7, 10, 19, 1) 100%);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.age-gate-overlay.fade-out {
    opacity: 0;
    pointer-events: none;
    transform: translateY(-50px);
}

.age-gate-card {
    background: rgba(22, 30, 49, 0.75);
    border: 1px solid rgba(0, 230, 118, 0.35);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6), 0 0 30px rgba(0, 230, 118, 0.1);
    border-radius: 28px;
    padding: 2.5rem;
    width: 100%;
    max-width: 480px;
    text-align: center;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.gate-logo {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #000;
    font-size: 2rem;
    margin-bottom: 1.25rem;
    box-shadow: 0 4px 15px rgba(0, 230, 118, 0.3);
}

.gate-title {
    font-family: var(--font-outfit);
    font-size: 2.1rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.1;
    margin-bottom: 4px;
    background: linear-gradient(135deg, #fff 40%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.gate-subtitle {
    font-family: var(--font-outfit);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-secondary);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-top: 6px;
    margin-bottom: 0.5rem;
}

.divider-line {
    width: 60px;
    height: 3px;
    background: var(--primary);
    margin: 12px auto;
    border-radius: 2px;
    box-shadow: 0 0 8px var(--primary-glow);
}

.age-gate-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.45;
}

/* Watermark Leaf Logo */
.gate-watermark {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 580px;
    opacity: 0.04;
    pointer-events: none;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: pulseWatermark 8s infinite ease-in-out;
}

.gate-watermark img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.watermark-text {
    font-family: var(--font-outfit);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--primary);
    text-transform: uppercase;
    margin-top: 15px;
    text-align: center;
}

@keyframes pulseWatermark {

    0%,
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.04;
    }

    50% {
        transform: translate(-50%, -50%) scale(1.05);
        opacity: 0.07;
    }
}

/* Date of Birth Picker Group */
.gate-dob-group {
    margin: 1.5rem 0 1rem 0;
    text-align: left;
}

.gate-dob-group label {
    font-family: var(--font-outfit);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    display: block;
    margin-bottom: 6px;
}

.gate-dob-group input[type="date"] {
    width: 100%;
    background: rgba(7, 10, 19, 0.7);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 0.75rem 1rem;
    color: var(--text-primary);
    font-family: var(--font-inter);
    font-size: 0.95rem;
    outline: none;
    transition: all 0.2s;
}

.gate-dob-group input[type="date"]:focus {
    border-color: var(--primary);
    box-shadow: 0 0 12px var(--primary-glow);
}

/* Error Messages */
.gate-error-message {
    color: #ff453a; /* Vibrant warning red */
    font-size: 1.05rem; /* Larger font size */
    margin-top: 15px; /* More spacing */
    font-weight: 800; /* Boldest weight */
    background: rgba(255, 69, 58, 0.15); /* Stronger background tint */
    border: 2px solid #ff453a; /* Thick solid red border */
    padding: 12px 18px; /* More padding */
    border-radius: 12px;
    box-shadow: 0 0 18px rgba(255, 69, 58, 0.45); /* High visibility glow */
    text-shadow: 0 0 8px rgba(255, 69, 58, 0.3);
    animation: gateErrorShake 0.35s ease-in-out, fadeIn 0.25s ease-out;
}

@keyframes gateErrorShake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-6px); }
    40%, 80% { transform: translateX(6px); }
}

/* Medical Card Checkbox override */
.gate-med-override {
    margin-bottom: 1.25rem;
    display: flex;
    text-align: left;
}

.gate-med-override .checkbox-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.gate-remember {
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
}

.gate-remember .checkbox-label {
    font-size: 0.85rem;
}

.gate-disclaimer {
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
    text-align: left;
}

.gate-disclaimer .checkbox-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

.gate-legal-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px dashed rgba(0, 230, 118, 0.4);
    transition: all 0.2s ease;
}

.gate-legal-link:hover {
    color: #fff;
    border-bottom-color: #fff;
    text-shadow: 0 0 8px var(--primary-glow);
}

/* High Z-Index Modal overrides for Age Gate overlays */
.legal-modal-overlay {
    z-index: 20000 !important;
}

.legal-modal {
    z-index: 20001 !important;
    border: 1px solid rgba(245, 158, 11, 0.35);
    box-shadow: var(--shadow-lg), 0 0 30px rgba(245, 158, 11, 0.15);
}

.legal-modal .modal-header h2 i {
    animation: goldGlow 3s infinite ease-in-out;
}

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

#btn-gate-exit {
    border-color: rgba(255, 59, 48, 0.3);
    color: #ff453a;
}

#btn-gate-exit:hover {
    background: rgba(255, 59, 48, 0.1);
    border-color: #ff453a;
}

.gate-footer {
    margin-top: 1.5rem;
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* --- Sidebar Spotlight Card --- */
.sidebar-spotlight-card {
    background: linear-gradient(135deg, rgba(22, 30, 49, 0.75), rgba(7, 10, 19, 0.85));
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 1.25rem;
    margin-top: 1.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    position: relative;
    transition: all 0.3s ease;
}

.sidebar-spotlight-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 230, 118, 0.1);
}

.spotlight-header {
    margin-bottom: 0.75rem;
}

.spotlight-badge {
    background: rgba(245, 158, 11, 0.12);
    color: var(--gold);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 3px 8px;
    border-radius: 6px;
    border: 1px solid rgba(245, 158, 11, 0.2);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.spotlight-img-wrapper {
    position: relative;
    width: 100%;
    height: 120px;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 0.75rem;
    border: 1px solid var(--border-light);
}

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

.sidebar-spotlight-card:hover .spotlight-img {
    transform: scale(1.06);
}

.spotlight-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(7, 10, 19, 0.6) 0%, transparent 100%);
    pointer-events: none;
}

.spotlight-body h4 {
    font-family: var(--font-outfit);
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.spotlight-thc {
    font-size: 0.78rem;
    color: var(--primary);
    font-weight: 600;
    display: block;
    margin-bottom: 6px;
}

.spotlight-body p {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.4;
    margin: 0;
}

/* --- Widescreen Top Banner --- */
.top-banner-container {
    max-width: 1336px; /* Caps width to match the content grid layout */
    width: calc(100% - 4rem); /* Responsive gutters on smaller windows */
    height: 220px; /* Perfectly balanced height to match cropped widescreen banner aspect ratio */
    margin: 1.5rem auto 0 auto; /* Spaced perfectly below sticky header, no longer sits low */
    position: relative;
    overflow: hidden;
    border-radius: 16px; /* Premium boxed card aesthetic */
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    background-color: var(--bg-darker);
}

.top-banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Spans full width of the container on all screen sizes */
    object-position: center; /* PERFECTLY CENTERED: now works flawlessly since white margins are cropped from the image file */
    opacity: 0.95;
    filter: brightness(0.95) contrast(1.02);
    transition: transform 1.2s cubic-bezier(0.15, 0.85, 0.35, 1);
}

.top-banner-container:hover .top-banner-img {
    transform: scale(1.02); /* Extremely subtle and premium hover zoom effect */
}

.top-banner-fade {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60%;
    background: linear-gradient(to top, var(--bg-darkest) 0%, transparent 100%);
    pointer-events: none;
}

@media (max-width: 768px) {
    .top-banner-container {
        height: auto;
        aspect-ratio: 1336 / 220; /* Fluid responsive scaling with no cropping */
        width: calc(100% - 2rem);
        margin: 1rem auto 0 auto;
    }
}



/* --- Patient Affordability Advocacy Strip --- */
.advocacy-strip {
    background: linear-gradient(90deg, rgba(0, 230, 118, 0.08) 0%, rgba(22, 30, 49, 0.6) 50%, rgba(245, 158, 11, 0.06) 100%);
    border-bottom: 1px solid var(--border-light);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 0.75rem 2rem;
    text-align: center;
}

.advocacy-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.advocacy-badge {
    background: rgba(0, 230, 118, 0.15);
    color: var(--primary);
    border: 1px solid rgba(0, 230, 118, 0.3);
    font-family: var(--font-outfit);
    font-size: 0.8rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.advocacy-badge.clickable {
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
}

.advocacy-badge.clickable:hover {
    background: rgba(0, 230, 118, 0.25) !important;
    border-color: var(--primary) !important;
    box-shadow: 0 0 15px rgba(0, 230, 118, 0.3) !important;
    transform: translateY(-1px);
}

.advocacy-text {
    font-family: var(--font-inter);
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 500;
    line-height: 1.4;
    margin: 0;
    max-width: 900px;
}

.advocacy-text strong {
    color: var(--primary);
}

@media (max-width: 768px) {
    .advocacy-strip {
        padding: 1rem;
    }
    
    .advocacy-container {
        flex-direction: column;
        gap: 8px;
    }
}

/* --- Premium Footer --- */
.app-footer {
    background: rgba(7, 10, 19, 0.95);
    border-top: 1px solid var(--border-light);
    padding: 3rem 2rem 2rem 2rem;
    margin-top: 4rem;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 16px;
}

.footer-logo {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 230, 118, 0.2);
}

.footer-brand-text h3 {
    font-family: var(--font-outfit);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.footer-brand-text p {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.footer-links .faq-btn {
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    border-color: rgba(245, 158, 11, 0.3);
    font-family: var(--font-outfit);
    font-size: 0.95rem;
    font-weight: 600;
}

.footer-links .faq-btn:hover {
    border-color: var(--gold);
    background: rgba(245, 158, 11, 0.08);
    box-shadow: 0 0 15px rgba(245, 158, 11, 0.15);
}

.footer-bottom {
    max-width: 1400px;
    margin: 1.5rem auto 0 auto;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.8rem;
}

@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
    
    .footer-brand {
        flex-direction: column;
        gap: 10px;
    }
}

/* --- Sleek Potency Value Tip Banner --- */
.potency-tip-banner {
    background: linear-gradient(135deg, rgba(22, 30, 49, 0.65), rgba(7, 10, 19, 0.8));
    border: 1px dashed rgba(0, 230, 118, 0.3);
    border-radius: 16px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 16px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: var(--shadow-sm), 0 0 15px rgba(0, 230, 118, 0.03);
    animation: fadeIn 0.8s ease;
}

.potency-tip-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(0, 230, 118, 0.1);
    border: 1px solid rgba(0, 230, 118, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.5rem;
    flex-shrink: 0;
    animation: pulseIcon 3s infinite ease-in-out;
}

.potency-tip-content {
    flex: 1;
}

.potency-tip-content h4 {
    font-family: var(--font-outfit);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.potency-tip-content h4 .new-badge {
    background: rgba(245, 158, 11, 0.15);
    color: var(--gold);
    border: 1px solid rgba(245, 158, 11, 0.3);
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 2px 8px;
    border-radius: 20px;
}

.potency-tip-content p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.45;
}

.potency-tip-content strong {
    color: var(--primary);
}

@media (max-width: 600px) {
    .potency-tip-banner {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding: 1rem;
    }
    .potency-tip-icon {
        width: 36px;
        height: 36px;
        font-size: 1.2rem;
    }
}




/* --- Travel Calculator CSS --- */
.collapsible-section {
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 1.25rem;
    margin-bottom: 1.25rem;
}

.collapsible-section .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: color 0.2s;
}

.collapsible-section .section-header:hover {
    color: var(--primary);
}

.collapsible-section .section-header h3 {
    margin: 0;
}

.collapsible-section .toggle-icon {
    font-size: 0.85rem;
    color: var(--text-secondary);
    transition: transform 0.3s ease;
}

.collapsible-section.active .toggle-icon {
    transform: rotate(180deg);
}

.collapsible-content {
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.collapsible-content.hidden {
    display: none;
}

.travel-input-row {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 6px;
}

.travel-input-row label {
    font-family: var(--font-outfit);
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.travel-input-row label span {
    color: var(--primary);
    font-weight: 700;
}

/* Numeric Input for Gas */
.input-gas {
    width: 100%;
    background-color: rgba(7, 10, 19, 0.6);
    border: 1px solid var(--border-light);
    color: var(--text-primary);
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    font-family: var(--font-inter);
    outline: none;
    transition: border-color 0.2s;
}

.input-gas:focus {
    border-color: var(--primary);
}

/* Custom sliders */
.slider-mpg {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    outline: none;
    appearance: none;
    cursor: pointer;
}

.slider-mpg::-webkit-slider-thumb {
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
    box-shadow: 0 0 10px var(--primary-glow);
    transition: transform 0.1s;
}

.slider-mpg::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

/* Target Relief Profile CSS */
.relief-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.relief-title-row h3 {
    margin: 0;
}

.btn-help-terp {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.15rem;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2px;
}

.btn-help-terp:hover {
    color: var(--primary);
    transform: scale(1.1);
}

.relief-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.relief-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-light);
    border-radius: 10px;
    padding: 0.6rem 0.5rem;
    color: var(--text-secondary);
    font-family: var(--font-outfit);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.relief-btn i {
    font-size: 1.05rem;
}

.relief-btn:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--border-hover);
    color: var(--text-primary);
    transform: translateY(-1px);
}

.relief-btn.active {
    background: rgba(0, 230, 118, 0.08);
    border-color: var(--primary);
    color: var(--primary);
    box-shadow: 0 0 12px rgba(0, 230, 118, 0.15);
}

/* --- Net Savings Badge in Cards --- */
.net-savings-tag {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 10px;
    font-family: var(--font-outfit);
    font-weight: 700;
    font-size: 0.85rem;
    margin-top: 10px;
    width: 100%;
    justify-content: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid transparent;
}

.net-savings-tag.positive {
    background: rgba(0, 230, 118, 0.08);
    border-color: rgba(0, 230, 118, 0.2);
    color: var(--primary);
    box-shadow: 0 0 15px rgba(0, 230, 118, 0.05);
}

.net-savings-tag.negative {
    background: rgba(245, 158, 11, 0.08);
    border-color: rgba(245, 158, 11, 0.2);
    color: var(--gold);
    box-shadow: 0 0 15px rgba(245, 158, 11, 0.05);
}

/* --- Comparison Accordion in Cards --- */
.compare-container {
    margin-top: 12px;
    border-top: 1px dashed var(--border-light);
    padding-top: 10px;
    width: 100%;
}

.compare-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-outfit);
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 4px 0;
    transition: color 0.2s;
}

.compare-header:hover {
    color: var(--primary);
}

.compare-header span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.compare-header .compare-count {
    background: rgba(0, 230, 118, 0.12);
    color: var(--primary);
    padding: 1px 6px;
    border-radius: 6px;
    font-size: 0.72rem;
}

.compare-list {
    margin-top: 6px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    transition: all 0.3s ease;
}

.compare-list.hidden {
    display: none;
}

.compare-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    padding: 6px 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.78rem;
    cursor: pointer;
    transition: all 0.2s;
}

.compare-item:hover {
    background: rgba(0, 230, 118, 0.04);
    border-color: rgba(0, 230, 118, 0.25);
    transform: translateX(2px);
}

.compare-item.active-store {
    background: rgba(0, 230, 118, 0.08);
    border-color: var(--primary);
}

.compare-item .store-name {
    font-weight: 600;
    color: var(--text-primary);
}

.compare-item .store-meta {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-left: 4px;
}

.compare-item .store-price-block {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-outfit);
}

.compare-item .store-price {
    font-weight: 700;
    color: var(--primary);
}

.compare-item .store-discount {
    background: rgba(255, 82, 82, 0.1);
    color: var(--sativa);
    font-size: 0.68rem;
    font-weight: 800;
    padding: 1px 4px;
    border-radius: 4px;
}

/* --- Terpene guide modal specific styling --- */
.terpene-modal-overlay {
    z-index: 10100;
}

.terpene-modal {
    z-index: 10200;
    max-width: 800px; /* Wider modal to show cards nicely */
    width: 90%;
}

.terpene-modal .guide-intro {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 1.5rem;
    border-left: 3px solid var(--primary);
    padding-left: 12px;
}

.terpene-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    max-height: calc(100vh - 280px);
    overflow-y: auto;
    padding-right: 8px;
}

.terpene-grid::-webkit-scrollbar {
    width: 6px;
}

.terpene-grid::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 4px;
}

.terpene-grid::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

.terpene-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: all 0.3s;
}

.terpene-card:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--border-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.terpene-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.terpene-icon {
    font-size: 1.6rem;
}

.terpene-card-header h3 {
    font-family: var(--font-outfit);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.terpene-flavor {
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 2px 8px;
    border-radius: 20px;
}

.terpene-card-body p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.4;
    margin: 0;
}

.terpene-card-body p strong {
    color: var(--text-primary);
}

.terpene-card-body .strains {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 6px;
}

/* Custom card glows */
.terp-myrcene { border-left: 4px solid var(--indica); }
.terp-myrcene .terpene-flavor { background: rgba(183, 110, 255, 0.1); color: var(--indica); }

.terp-limonene { border-left: 4px solid var(--gold); }
.terp-limonene .terpene-flavor { background: rgba(245, 158, 11, 0.1); color: var(--gold); }

.terp-caryophyllene { border-left: 4px solid var(--sativa); }
.terp-caryophyllene .terpene-flavor { background: rgba(255, 82, 82, 0.1); color: var(--sativa); }

.terp-linalool { border-left: 4px solid #e040fb; }
.terp-linalool .terpene-flavor { background: rgba(224, 64, 251, 0.1); color: #e040fb; }

.terp-pinene { border-left: 4px solid #10b981; }
.terp-pinene .terpene-flavor { background: rgba(16, 185, 129, 0.1); color: #10b981; }

.terp-terpinolene { border-left: 4px solid #29b6f6; }
.terp-terpinolene .terpene-flavor { background: rgba(41, 182, 246, 0.1); color: #29b6f6; }

.terp-humulene { border-left: 4px solid #8d6e63; }
.terp-humulene .terpene-flavor { background: rgba(141, 110, 99, 0.1); color: #8d6e63; }

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

/* --- Clickable Net Savings Collapsible & Save% Pill --- */
.savings-pill-container {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-bottom: 12px;
    position: relative; /* Anchor the absolute overlay dropdown */
}

.btn-calculate-net {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-light);
    color: var(--text-secondary);
    font-family: var(--font-outfit);
    font-weight: 600;
    font-size: 0.72rem;
    padding: 4px 10px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    outline: none;
}

.btn-calculate-net:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--border-hover);
    color: #fff;
}

.net-savings-details {
    position: absolute;
    bottom: 125%;
    left: 0;
    width: 250px;
    background: var(--bg-darker);
    border: 1px solid var(--border-hover);
    border-radius: 12px;
    padding: 12px;
    box-shadow: var(--shadow-lg), 0 0 15px var(--primary-glow);
    z-index: 100;
    margin-bottom: 6px;
    animation: slideDown 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

/* ==========================================================================
   RELEAF RADAR PA POLISHES & OPTIMIZATIONS
   ========================================================================== */

/* 1. Mobile Filter Toggle Button (Desktop Hidden) */
.mobile-filter-toggle-btn {
    display: none;
    width: 100%;
    margin-bottom: 1rem;
    padding: 0.85rem 1.25rem;
    background: rgba(22, 30, 49, 0.7);
    border: 1px solid var(--border-light);
    border-radius: 14px;
    font-family: var(--font-outfit);
    font-weight: 700;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-sm);
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.mobile-filter-toggle-btn:hover, .mobile-filter-toggle-btn:focus {
    background: rgba(30, 41, 67, 0.95);
    border-color: var(--gold);
    box-shadow: 0 0 15px var(--gold-glow);
    transform: translateY(-1px);
}

.mobile-filter-toggle-btn i {
    font-size: 1.05rem;
    transition: transform 0.3s;
}

.mobile-filter-toggle-btn.active i {
    transform: rotate(90deg);
    color: var(--primary) !important;
}

/* Dynamic Backdrop Overlay for Mobile Sidebar */
.filters-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(5, 7, 13, 0.6);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

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

/* 2. High-Contrast Warning Treatment (Travel exceeds Savings) */
.deal-card.warning-card {
    border-color: rgba(245, 158, 11, 0.3) !important;
    opacity: 0.75;
    background: linear-gradient(135deg, rgba(22, 30, 49, 0.7), rgba(245, 158, 11, 0.03)) !important;
    transition: opacity 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease !important;
}

.deal-card.warning-card:hover {
    opacity: 1;
    border-color: var(--gold) !important;
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.25), var(--shadow-md);
    transform: translateY(-4px);
}

/* Highlight the warning card net savings details instantly */
.deal-card.warning-card .btn-calculate-net {
    background: rgba(245, 158, 11, 0.08);
    border-color: rgba(245, 158, 11, 0.25);
    color: var(--gold);
}

.deal-card.warning-card .btn-calculate-net:hover {
    background: rgba(245, 158, 11, 0.15);
    border-color: var(--gold);
}

/* 3. Empathetic Zero-Result Suggestion Styling */
.empty-suggestions-box {
    animation: pulseBorder 2s infinite ease-in-out;
    background: rgba(245, 158, 11, 0.06) !important;
    border-color: rgba(245, 158, 11, 0.2) !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: all 0.3s;
}

@keyframes pulseBorder {
    0% { border-color: rgba(245, 158, 11, 0.2); box-shadow: 0 0 5px rgba(245, 158, 11, 0.05); }
    50% { border-color: rgba(245, 158, 11, 0.45); box-shadow: 0 0 15px rgba(245, 158, 11, 0.15); }
    100% { border-color: rgba(245, 158, 11, 0.2); box-shadow: 0 0 5px rgba(245, 158, 11, 0.05); }
}

#btn-expand-radius {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 700;
}

#btn-expand-radius:hover {
    background: rgba(245, 158, 11, 0.12) !important;
    border-color: var(--gold) !important;
    color: #fff !important;
    box-shadow: 0 0 12px rgba(245, 158, 11, 0.3);
    transform: translateY(-1px);
}

/* 4. Responsive Queries for Tablet/Mobile Layouts */
@media (max-width: 1024px) {
    .app-layout {
        grid-template-columns: 1fr !important;
        gap: 1.5rem;
        margin-top: 1rem;
        padding: 0 1.25rem;
    }

    .mobile-filter-toggle-btn {
        display: inline-flex;
    }

    /* Transform Sidebar into fixed side sliding drawer */
    .sidebar-filters {
        position: fixed !important;
        top: 0 !important;
        left: -320px !important;
        width: 300px !important;
        height: 100vh !important;
        max-height: 100vh !important;
        z-index: 10000 !important;
        background: rgba(10, 14, 26, 0.98) !important;
        border-right: 1px solid var(--border-hover) !important;
        border-radius: 0 !important;
        border-top-right-radius: 24px !important;
        border-bottom-right-radius: 24px !important;
        box-shadow: 0 0 45px rgba(0, 0, 0, 0.85) !important;
        transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
        padding: 2rem 1.5rem !important;
    }

    .sidebar-filters.mobile-active {
        left: 0 !important;
    }

    /* Show Close Sidebar cross on mobile */
    .mobile-only-btn {
        display: inline-flex !important;
    }

    .btn-close-sidebar:hover {
        color: var(--sativa) !important;
        transform: scale(1.15);
    }
    
    /* Steals Toggle layout adjustments */
    .steals-quick-toggle {
        padding: 1.25rem !important;
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        gap: 15px !important;
    }
    
    .toggle-text-panel {
        align-items: center !important;
    }
    
    .toggle-zip-search-box {
        justify-content: center !important;
        width: 100% !important;
    }
}

@media (max-width: 600px) {
    .toolbar {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 10px !important;
        padding: 1rem !important;
    }
    
    .toolbar-actions {
        width: 100% !important;
        justify-content: space-between !important;
    }
    
    .sort-selector {
        flex: 1 !important;
    }
    
    .select-wrapper-inline {
        width: 100% !important;
    }
    
    .header-container {
        flex-direction: column !important;
        gap: 12px !important;
        padding: 1rem !important;
        text-align: center !important;
    }
    
    .brand {
        flex-direction: column !important;
        text-align: center !important;
    }
    
    .header-actions {
        width: 100% !important;
        justify-content: center !important;
        flex-wrap: wrap !important;
    }
}

/* ==========================================================================
   DYNAMIC LIGHT / DARK MODE DESIGN SYSTEM (OPTION 1)
   ========================================================================== */

/* A. Global Smooth Transitions */
body, header, aside, footer, input, select, textarea, button,
.app-header, .market-ticker, .toolbar, .advocacy-strip, .app-intro-hero, 
.potency-tip-banner, .deal-card, .sidebar-filters, .steals-quick-toggle,
.net-savings-tag, .compare-item, .net-savings-details, .modal, .modal-footer {
    transition: background-color 0.3s cubic-bezier(0.4, 0, 0.2, 1), 
                color 0.3s cubic-bezier(0.4, 0, 0.2, 1), 
                border-color 0.3s cubic-bezier(0.4, 0, 0.2, 1), 
                box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1), 
                opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), 
                transform 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}


/* ==========================================================================
   VIBRANT PREMIUM DARK MODE DESIGN SYSTEM & ELEMENTS
   ========================================================================== */

/* 1. Glowing Amber/Orange Save badges */
.save-pct-pill {
    background: linear-gradient(135deg, #ff9100, #ff6d00) !important; /* Vivid glowing amber/orange */
    color: #0b0f17 !important; /* Bold charcoal text */
    font-weight: 800 !important;
    box-shadow: 0 0 12px rgba(255, 145, 0, 0.45) !important; /* Vivid glow */
    border: none !important;
}

/* 2. Pill-Shaped Strain Badges with Vibrant Colored Borders & Dark Backgrounds */
.strain-badge {
    padding: 4px 12px !important;
    border-radius: 20px !important; /* small inline pill */
    font-weight: 700 !important;
    letter-spacing: 0.5px !important;
    display: inline-flex !important;
    align-items: center !important;
}

.strain-badge.indica {
    background: #0B0F17 !important;
    color: #b76eff !important; /* Vibrant Indica Purple */
    border: 1px solid rgba(183, 110, 255, 0.55) !important;
}

.strain-badge.sativa {
    background: #0B0F17 !important;
    color: #ff5252 !important; /* Vibrant Sativa Red-Orange */
    border: 1px solid rgba(255, 82, 82, 0.55) !important;
}

.strain-badge.hybrid {
    background: #0B0F17 !important;
    color: #ff9100 !important; /* Vibrant Hybrid Amber-Orange */
    border: 1px solid rgba(255, 145, 0, 0.55) !important;
}

.strain-badge.cbd {
    background: #0B0F17 !important;
    color: #10b981 !important; /* Vibrant CBD Bright Green */
    border: 1px solid rgba(16, 185, 129, 0.55) !important;
}

/* 3. Color-Coded Active States for Target Relief Buttons in Dark Mode */
.relief-btn[data-profile="pain-sleep"].active {
    background: rgba(41, 182, 246, 0.08) !important;
    border-color: #29b6f6 !important; /* Sleep Blue */
    color: #29b6f6 !important;
    box-shadow: 0 0 15px rgba(41, 182, 246, 0.3) !important;
}

.relief-btn[data-profile="anxiety-calm"].active {
    background: rgba(183, 110, 255, 0.08) !important;
    border-color: #b76eff !important; /* Anxiety/Calm Purple */
    color: #b76eff !important;
    box-shadow: 0 0 15px rgba(183, 110, 255, 0.3) !important;
}

.relief-btn[data-profile="energy-focus"].active {
    background: rgba(245, 158, 11, 0.08) !important;
    border-color: #f59e0b !important; /* Energy Yellow */
    color: #f59e0b !important;
    box-shadow: 0 0 15px rgba(245, 158, 11, 0.35) !important;
}

.relief-btn[data-profile="clear-mind"].active {
    background: rgba(16, 185, 129, 0.08) !important;
    border-color: #10b981 !important; /* Clear Mind Emerald Green */
    color: #10b981 !important;
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.3) !important;
}


/* 5. Selector View Toggle Cards for Feed vs Champions */
.toggle-view-card:hover {
    border-color: rgba(16, 185, 129, 0.45) !important;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3), 0 0 15px rgba(16, 185, 129, 0.05);
}

.toggle-view-card.active-specials {
    border-color: var(--primary) !important;
    background: rgba(16, 185, 129, 0.05) !important;
    box-shadow: 0 0 25px rgba(16, 185, 129, 0.15) !important;
}

.toggle-view-card.active-champions {
    border-color: var(--gold) !important;
    background: rgba(245, 158, 11, 0.05) !important;
    box-shadow: 0 0 25px rgba(245, 158, 11, 0.15) !important;
}

/* All selector buttons are glowing green by default */
.toggle-view-card button {
    background: var(--primary) !important;
    border-color: var(--primary) !important;
    color: #0b0f17 !important;
    font-weight: 700 !important;
    box-shadow: 0 0 15px var(--primary-glow) !important;
    transition: all 0.2s ease-in-out !important;
}

/* Hover scales button slightly for premium micro-interaction */
.toggle-view-card:hover button {
    transform: scale(1.03) !important;
}

/* Flash gold when clicked */
.toggle-view-card button.clicked-flash {
    background: var(--gold) !important;
    border-color: var(--gold) !important;
    color: #0b0f17 !important;
    box-shadow: 0 0 25px var(--gold-glow) !important;
    transform: scale(0.96) !important;
}

@media (max-width: 600px) {
    .toggle-view-container {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }
}

/* --- Terpene Pill Badges on Deal Cards --- */
.terp-pill-badge.terp-badge-myrcene { background: rgba(183, 110, 255, 0.12) !important; color: var(--indica) !important; border: 1px solid rgba(183, 110, 255, 0.25) !important; }
.terp-pill-badge.terp-badge-limonene { background: rgba(245, 158, 11, 0.12) !important; color: var(--gold) !important; border: 1px solid rgba(245, 158, 11, 0.25) !important; }
.terp-pill-badge.terp-badge-caryo { background: rgba(239, 68, 68, 0.12) !important; color: #ef4444 !important; border: 1px solid rgba(239, 68, 68, 0.25) !important; }
.terp-pill-badge.terp-badge-terpino { background: rgba(41, 182, 246, 0.12) !important; color: #29b6f6 !important; border: 1px solid rgba(41, 182, 246, 0.25) !important; }
.terp-pill-badge.terp-badge-linalool { background: rgba(224, 64, 251, 0.12) !important; color: #e040fb !important; border: 1px solid rgba(224, 64, 251, 0.25) !important; }
.terp-pill-badge.terp-badge-pinene { background: rgba(16, 185, 129, 0.12) !important; color: var(--primary) !important; border: 1px solid rgba(16, 185, 129, 0.25) !important; }
.terp-pill-badge.terp-badge-humulene { background: rgba(156, 163, 175, 0.12) !important; color: #9ca3af !important; border: 1px solid rgba(156, 163, 175, 0.25) !important; }
.terp-pill-badge.terp-badge-generic { background: rgba(255, 255, 255, 0.08) !important; color: var(--text-secondary) !important; border: 1px solid rgba(255, 255, 255, 0.15) !important; }

/* --- Strain Directory Specific Custom CSS --- */
.strain-alphabet-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 2rem;
    justify-content: center;
}

.strain-alphabet-container button:hover {
    border-color: rgba(0, 230, 118, 0.5) !important;
    background: rgba(0, 230, 118, 0.05) !important;
    color: var(--primary) !important;
    transform: translateY(-1px);
}

.strain-alphabet-container button.active {
    box-shadow: 0 0 15px rgba(0, 230, 118, 0.25) !important;
}

.strain-directory-card:hover {
    border-color: rgba(0, 230, 118, 0.35) !important;
    background: linear-gradient(135deg, rgba(30, 41, 67, 0.65), rgba(7, 10, 19, 0.85)) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45), 0 0 20px rgba(0, 230, 118, 0.05);
    transform: translateY(-4px);
}

@media (max-width: 768px) {
    .strains-layout-grid {
        grid-template-columns: 1fr !important;
    }
}

/* Favorites star button in top right of cards */
.btn-favorite-deal {
    color: var(--text-muted);
    opacity: 0.6;
    transition: all 0.2s ease;
}
.btn-favorite-deal:hover {
    color: var(--gold) !important;
    opacity: 1 !important;
    transform: scale(1.15);
}
.btn-favorite-deal i.fa-solid {
    filter: drop-shadow(0 0 5px rgba(245, 158, 11, 0.4));
}

/* Responsive header action grid fix */
@media (max-width: 768px) {
    .header-actions {
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 8px !important;
    }
}

/* Printing styling */
@media print {
    body * {
        visibility: hidden !important;
        background: transparent !important;
        color: #000 !important;
        box-shadow: none !important;
        text-shadow: none !important;
    }
    #shopping-list-print-container, #shopping-list-print-container * {
        visibility: visible !important;
    }
    #shopping-list-print-container {
        position: absolute !important;
        left: 0 !important;
        top: 0 !important;
        width: 100% !important;
        color: #000 !important;
        background: #fff !important;
        padding: 30px !important;
        font-family: 'Courier New', Courier, monospace !important;
        line-height: 1.5 !important;
    }
    .print-item {
        border-bottom: 1px solid #ccc !important;
        padding: 10px 0 !important;
    }
}

/* Terpene & Symptom Quick Chips Styles */
.terpene-quick-chips-wrapper {
    background: rgba(22, 30, 49, 0.25);
    border: 1px solid var(--border-light);
    border-radius: 18px;
    padding: 1rem 1.25rem;
    backdrop-filter: blur(10px);
    margin-bottom: 1.5rem;
}
.terpene-chips-container::-webkit-scrollbar {
    height: 4px;
}
.terpene-chips-container::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.1);
    border-radius: 2px;
}
.terp-chip {
    background: rgba(7, 10, 19, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-secondary);
    padding: 8px 16px;
    border-radius: 12px;
    font-size: 0.82rem;
    font-family: var(--font-inter);
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.terp-chip small {
    opacity: 0.6;
    font-size: 0.7rem;
}
.terp-chip:hover {
    border-color: rgba(0, 230, 118, 0.35);
    color: #fff;
    background: rgba(0, 230, 118, 0.03);
    transform: translateY(-1px);
}
.terp-chip.active {
    background: linear-gradient(135deg, var(--primary), #00b0ff) !important;
    border-color: transparent !important;
    color: #070a13 !important;
    font-weight: 700 !important;
    box-shadow: 0 4px 15px rgba(0, 230, 118, 0.3);
}

/* Dispensary Direct Links Portal Styles */
.dispensary-direct-links-section {
    padding: 2.5rem 0;
    border-top: 1px solid var(--border-light);
    margin-top: 3.5rem;
}
.dispensary-links-grid {
    margin-top: 2rem;
}
.dispensary-link-card {
    background: rgba(22, 30, 49, 0.4);
    border: 1px solid var(--border-light);
    border-radius: 20px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(10px);
}
.dispensary-link-card:hover {
    transform: translateY(-4px);
    border-color: rgba(0, 230, 118, 0.35);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 230, 118, 0.04);
}
.dispensary-link-card h3 {
    font-family: var(--font-outfit);
    font-size: 1.15rem;
    font-weight: 800;
    color: #fff;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}
.dispensary-link-card h3 i {
    color: var(--primary);
    font-size: 1.25rem;
}
.dispensary-link-card p {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.45;
    margin: 8px 0 16px 0;
    flex-grow: 1;
}
.dispensary-link-card .card-buttons {
    display: flex;
    flex-direction: column;
    gap: 8px;
}



/* Sync dot breathing pulse animation */
@keyframes syncPulse {
    0% { transform: scale(1); opacity: 1; box-shadow: 0 0 4px var(--primary); }
    50% { transform: scale(1.15); opacity: 0.7; box-shadow: 0 0 10px var(--primary); }
    100% { transform: scale(1); opacity: 1; box-shadow: 0 0 4px var(--primary); }
}
.sync-dot {
    animation: syncPulse 2s infinite ease-in-out;
}

/* Sync Status Banner Styles */
.sync-status-banner {
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: rgba(0, 230, 118, 0.08);
    border: 1px solid rgba(0, 230, 118, 0.35);
    border-radius: 14px;
    padding: 12px 18px;
    font-family: var(--font-outfit);
    flex-wrap: wrap;
    box-shadow: 0 0 15px rgba(0, 230, 118, 0.05);
}
.sync-status-banner .sync-main-text {
    font-size: 0.95rem;
    color: #ffffff;
    font-weight: 700;
}
.sync-status-banner .sync-date-display {
    color: var(--primary) !important;
    text-shadow: 0 0 8px rgba(0, 230, 118, 0.2);
}
.sync-status-banner .sync-sub-text {
    font-size: 0.82rem;
    color: var(--text-secondary);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.03);
    padding: 5px 12px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Product Card Terpene Badge Styles (Explicit White Text) */
.terp-pill-badge {
    color: #ffffff !important; /* Forces high-contrast white text */
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}
.terp-badge-myrcene {
    background: rgba(37, 99, 235, 0.22) !important;
    border: 1px solid rgba(37, 99, 235, 0.5) !important;
}
.terp-badge-limonene {
    background: rgba(245, 158, 11, 0.22) !important;
    border: 1px solid rgba(245, 158, 11, 0.5) !important;
}
.terp-badge-caryophyllene, .terp-badge-caryo {
    background: rgba(239, 68, 68, 0.22) !important;
    border: 1px solid rgba(239, 68, 68, 0.5) !important;
}
.terp-badge-terpinolene, .terp-badge-terpino {
    background: rgba(16, 185, 129, 0.22) !important;
    border: 1px solid rgba(16, 185, 129, 0.5) !important;
}
.terp-badge-linalool {
    background: rgba(168, 85, 247, 0.22) !important;
    border: 1px solid rgba(168, 85, 247, 0.5) !important;
}
.terp-badge-pinene {
    background: rgba(34, 197, 94, 0.22) !important;
    border: 1px solid rgba(34, 197, 94, 0.5) !important;
}
.terp-badge-humulene {
    background: rgba(120, 113, 108, 0.22) !important;
    border: 1px solid rgba(120, 113, 108, 0.5) !important;
}
.terp-badge-generic {
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
}

/* Symptom Wizard Styles */
.symptom-wizard-card {
    transition: all 0.3s ease;
}
.wizard-opt-btn {
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    color: #fff !important;
    padding: 10px 14px !important;
    font-size: 0.8rem !important;
    font-weight: 600 !important;
    border-radius: 12px !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    justify-content: center !important;
    transition: all 0.2s ease !important;
}
.wizard-opt-btn:hover {
    background: rgba(0, 230, 118, 0.06) !important;
    border-color: rgba(0, 230, 118, 0.3) !important;
    transform: translateY(-1px);
}
.wizard-opt-btn i {
    font-size: 0.95rem;
}
