:root {
    --bg-gradient: linear-gradient(165deg, #f8fafc 0%, #f1f5f9 45%, #e8eef4 100%);
    --primary: #0d9488;
    --primary-hover: #0f766e;
    --primary-light: #14b8a6;
    --primary-rgb: 13, 148, 136;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #64748b;
    --glass-bg: rgba(255, 255, 255, 0.75);
    --glass-border: rgba(15, 23, 42, 0.06);
    --nav-bg: rgba(15, 23, 42, 0.03);
    --nav-bg-hover: rgba(var(--primary-rgb), 0.08);
    --surface: #ffffff;
    --surface-elevated: #ffffff;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 10px 15px -3px rgba(0, 0, 0, 0.03), 0 20px 25px -5px rgba(0, 0, 0, 0.01);
    --radius: 20px;
    --header-height: 72px;
    /* Ko-fi Colors */
    --kofi-blue: #29abe0;
    --kofi-orange: #ff5e5b;
}

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

body {
    margin: 0;
    padding: 0;
    font-family: 'Rubik', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: var(--bg-gradient);
    min-height: 100vh;
    color: var(--text-primary);
    direction: rtl;
    display: flex;
    flex-direction: column;
    line-height: 1.6;
    overflow-x: hidden;
}

body.modal-open {
    overflow: hidden;
}

/* Layout */
.app-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

header {
    background: var(--glass-bg);
    backdrop-filter: blur(24px) saturate(1.8);
    -webkit-backdrop-filter: blur(24px) saturate(1.8);
    border-bottom: 1px solid var(--glass-border);
    padding: 0 clamp(16px, 4vw, 48px);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.02);
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    min-height: var(--header-height);
    padding: 8px 0;
    position: relative;
}

.header-right-side {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
}

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

.header-left-side {
    display: flex;
    align-items: center;
    gap: 14px;
}

.header-bsd {
    font-size: 0.65rem;
    color: var(--text-muted);
    font-weight: 600;
    line-height: 1;
    letter-spacing: 0.12em;
    opacity: 0.6;
    position: absolute;
    top: 4px;
    right: 0;
}

.logo {
    font-family: 'Rubik', sans-serif !important;
    font-size: 1.65rem;
    font-weight: 900;
    margin: 0;
    color: var(--primary);
    text-decoration: none !important;
    line-height: 1.15;
    letter-spacing: -0.03em;
    position: relative;
    display: inline-block;
}

.logo-container {
    text-decoration: none !important;
    color: inherit !important;
    display: inline-block;
}

.logo-container:visited,
.logo-container:active,
.logo-container:hover {
    text-decoration: none !important;
}

/* Desktop Navigation — minimal pill bar */
.desktop-nav {
    display: flex;
    gap: 2px;
    align-items: center;
    background: var(--nav-bg);
    padding: 4px;
    border-radius: 999px;
    border: 1px solid var(--glass-border);
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
}

.desktop-nav a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.875rem;
    padding: 8px 18px;
    border-radius: 999px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.desktop-nav a:hover {
    color: var(--primary);
    background: var(--nav-bg-hover);
}

.desktop-nav a.active {
    background: var(--primary);
    color: #ffffff !important;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(var(--primary-rgb), 0.2);
}

/* Hamburger Button */
.menu-toggle {
    display: none;
    background: var(--nav-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    cursor: pointer;
    padding: 8px;
    color: var(--text-primary);
    transition: all 0.2s ease;
}

.menu-toggle:hover {
    background: var(--nav-bg-hover);
    color: var(--primary);
}

.menu-toggle svg {
    width: 22px;
    height: 22px;
    display: block;
}

/* Mobile Nav Overlay */
.mobile-nav-overlay {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100%;
    background: rgba(248, 250, 252, 0.98);
    backdrop-filter: blur(30px) saturate(1.6);
    -webkit-backdrop-filter: blur(30px) saturate(1.6);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 24px;
    transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-nav-overlay.open {
    right: 0;
}

.close-menu {
    position: absolute;
    top: 20px;
    right: 24px;
    background: var(--nav-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    width: 44px;
    height: 44px;
    font-size: 1.75rem;
    line-height: 1;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, color 0.2s ease;
}

.close-menu:hover {
    background: var(--nav-bg-hover);
    color: var(--primary);
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: min(100%, 360px);
}

.mobile-nav-links a {
    text-decoration: none;
    color: var(--text-primary);
    font-size: 1.25rem;
    font-weight: 600;
    padding: 14px 20px;
    border-radius: 12px;
    transition: background 0.2s ease, color 0.2s ease;
}

.mobile-nav-links a:hover,
.mobile-nav-links a.active {
    color: var(--primary);
    background: var(--nav-bg-hover);
}

.header-info {
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-align: left;
    line-height: 1.45;
    font-weight: 500;
}

/* Theme toggle */
.theme-toggle {
    background: var(--nav-bg);
    border: 1px solid var(--glass-border);
    font-size: 1.15rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border-radius: 10px;
    width: 40px;
    height: 40px;
    color: var(--text-primary);
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .desktop-nav {
        display: none;
    }
    
    .menu-toggle {
        display: block;
    }

    .header-info {
        display: none; /* Hide time on very small headers if needed, or keep it */
    }
}

/* Hero Section */
.hero {
    padding: 90px 5% 80px;
    text-align: center;
    background: radial-gradient(circle at 50% 50%, rgba(var(--primary-rgb), 0.05) 0%, transparent 70%);
    border-bottom: 1px solid var(--glass-border);
    transition: all 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

body.searching .hero {
    padding: 24px 5% 12px;
    background: transparent;
}

body.searching .hero h1,
body.searching .hero .subtitle,
body.searching .info-section {
    display: none !important;
}

body.searching .search-container {
    max-width: 100%;
}

.hero h1 {
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    font-weight: 900;
    margin-top: 0;
    margin-bottom: 20px;
    letter-spacing: -0.04em;
    line-height: 1.15;
    color: var(--text-primary);
}

.hero .subtitle {
    font-size: clamp(1.05rem, 2.5vw, 1.4rem);
    color: var(--text-secondary);
    max-width: 680px;
    margin: 0 auto 48px;
    line-height: 1.6;
    font-weight: 500;
}

/* Search Area */
.search-container {
    max-width: 820px;
    margin: 0 auto;
    width: 100%;
    transition: all 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.search-wrapper {
    position: relative;
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 35px;
}

#searchInput {
    width: 100%;
    flex: 1;
    padding: 20px 24px 20px 96px; /* Top, Right (Start), Bottom, Left (End) */
    font-size: 1.35rem;
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    background: var(--surface);
    box-shadow: var(--shadow);
    outline: none;
    color: var(--text-primary);
    direction: rtl !important;
    text-align: right !important;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

#searchInput::placeholder {
    color: var(--text-muted);
    opacity: 0.8;
}

#searchInput:focus {
    border-color: var(--primary);
    box-shadow: 0 10px 25px -5px rgba(var(--primary-rgb), 0.15), 0 8px 10px -6px rgba(var(--primary-rgb), 0.05);
    transform: translateY(-1px);
    background: var(--surface);
}

.search-submit-btn {
    position: relative;
    background: var(--primary);
    color: white;
    border: none;
    width: 58px;
    height: 58px;
    border-radius: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 14px rgba(var(--primary-rgb), 0.25);
    flex-shrink: 0;
}

.search-submit-btn:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(var(--primary-rgb), 0.35);
}

.search-submit-btn:active {
    transform: translateY(0) scale(0.96);
}

.clear-search-btn {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--nav-bg);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    width: 30px;
    height: 30px;
    color: var(--text-secondary);
    cursor: pointer;
    display: none;
    padding: 0;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 10;
}

.clear-search-btn:hover {
    background: var(--nav-bg-hover);
    color: var(--primary);
    transform: translateY(-50%) scale(1.08);
}

.clear-search-btn svg {
    display: block;
}

.voice-search-btn {
    position: absolute;
    left: 54px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(var(--primary-rgb), 0.06);
    border: 1px solid rgba(var(--primary-rgb), 0.1);
    color: var(--primary);
    width: 36px;
    height: 36px;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 10;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.voice-search-btn:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-50%) scale(1.08);
    box-shadow: 0 4px 12px rgba(var(--primary-rgb), 0.25);
}

.voice-search-btn svg {
    width: 18px;
    height: 18px;
    display: block;
}

.voice-search-btn:active {
    transform: translateY(-50%) scale(0.92);
}

.voice-search-btn.listening {
    background: #ff4d4f;
    color: white;
    border-color: #ff4d4f;
    animation: voice-pulse-key 1.5s infinite;
}

@keyframes voice-pulse-key {
    0% { transform: translateY(-50%) scale(1); box-shadow: 0 0 0 0 rgba(255, 77, 79, 0.4); }
    70% { transform: translateY(-50%) scale(1.1); box-shadow: 0 0 0 12px rgba(255, 77, 79, 0); }
    100% { transform: translateY(-50%) scale(1); box-shadow: 0 0 0 0 rgba(255, 77, 79, 0); }
}

@media (max-width: 600px) {
    #searchInput {
        font-size: 1.15rem;
        padding: 16px 20px 16px 82px;
        border-radius: 16px;
        direction: rtl !important;
        text-align: right !important;
    }
    .search-submit-btn {
        width: 50px;
        height: 50px;
        border-radius: 14px;
    }
    .search-wrapper {
        gap: 8px;
        margin-bottom: 24px;
    }
    .clear-search-btn {
        left: 12px;
        width: 26px;
        height: 26px;
    }
    .voice-search-btn {
        left: 46px;
        width: 30px;
        height: 30px;
        border-radius: 10px;
    }
}

/* Categories List Styling */
.categories {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 45px;
    transition: all 0.3s ease;
}

@keyframes pill-elevate {
    0% {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.category-btn {
    padding: 12px 24px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--text-secondary);
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04), inset 0 1px 0 rgba(255, 255, 255, 0.6);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    opacity: 0;
    animation: pill-elevate 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.category-btn:nth-child(1) { animation-delay: 0.05s; }
.category-btn:nth-child(2) { animation-delay: 0.1s; }
.category-btn:nth-child(3) { animation-delay: 0.15s; }
.category-btn:nth-child(4) { animation-delay: 0.2s; }
.category-btn:nth-child(5) { animation-delay: 0.25s; }
.category-btn:nth-child(6) { animation-delay: 0.3s; }
.category-btn:nth-child(7) { animation-delay: 0.35s; }
.category-btn:nth-child(8) { animation-delay: 0.4s; }

.category-btn:hover {
    border-color: rgba(var(--primary-rgb), 0.3);
    color: var(--primary);
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.category-btn.active {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%) !important;
    color: white !important;
    border-color: transparent !important;
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 8px 24px rgba(var(--primary-rgb), 0.35), 0 2px 4px rgba(var(--primary-rgb), 0.1) !important;
}

.category-btn.active:hover {
    color: white !important;
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 12px 28px rgba(var(--primary-rgb), 0.45) !important;
}

@media (max-width: 768px) {
    .categories {
        justify-content: center;
        flex-wrap: wrap;
        padding: 8px 10px;
        margin: 0 auto 20px;
        width: 100%;
        gap: 8px 10px;
    }
    .categories::-webkit-scrollbar {
        display: none; /* Safari and Chrome */
    }
    .category-btn {
        padding: 8px 16px !important;
        font-size: 0.85rem !important;
        white-space: nowrap;
        flex-shrink: 0;
        box-shadow: 0 4px 10px rgba(15, 23, 42, 0.06);
    }
    .category-btn.active {
        transform: translateY(-2px) scale(1.02);
    }
}

.usage-steps {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 20px;
    text-align: right;
}

.usage-step {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 16px;
    transition: transform 0.2s;
}

.usage-step:hover {
    transform: translateX(-5px);
    background: white;
}

.step-icon {
    font-size: 1.5rem;
    min-width: 40px;
    height: 40px;
    background: var(--primary-light);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
}

.step-text strong {
    display: block;
    font-size: 1.1rem;
    color: var(--primary);
    margin-bottom: 4px;
}

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

.info-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 60px 5%;
    background: white;
}

.info-card {
    background: var(--glass-bg);
    padding: 30px;
    border-radius: 24px;
    border: 1px solid var(--glass-border);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.info-card h3 {
    font-size: 1.6rem;
    color: var(--text-main);
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.info-card h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 50px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
}.category-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.04);
}

.category-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(var(--primary-rgb), 0.24);
}

/* Results Area */
main {
    max-width: 1040px;
    margin: 0 auto;
    padding: 40px 5%;
    width: 100%;
}

.results-summary {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 25px;
    font-weight: 600;
}

.results-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
    gap: 28px;
}

.load-more-container {
    text-align: center;
    margin-top: 40px;
}

.load-more-btn {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    padding: 12px 36px;
    border-radius: 50px;
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s ease;
}

.load-more-btn:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(var(--primary-rgb), 0.25);
}

.result-item {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 24px;
    box-shadow: var(--shadow);
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    opacity: 0;
    animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    cursor: pointer;
}

.result-item::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, var(--primary), var(--primary-light));
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.result-item:hover::before {
    opacity: 1;
}

.result-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    border-color: rgba(var(--primary-rgb), 0.2);
}

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

.result-item.non-kosher {
    border-color: rgba(239, 68, 68, 0.3);
    background: rgba(239, 68, 68, 0.03);
}

.result-item.non-kosher::before {
    background: linear-gradient(to bottom, #ef4444, #f87171);
}

.result-item.non-kosher:hover {
    border-color: rgba(239, 68, 68, 0.5);
    box-shadow: 0 20px 40px rgba(239, 68, 68, 0.06);
}

.result-item.non-kosher .result-title {
    color: #ef4444;
}

.result-item.non-kosher .blessing-name {
    color: #ef4444;
}

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

.result-title {
    font-size: 1.55rem;
    font-weight: 800;
    margin: 0;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.result-category {
    font-size: 0.8rem;
    padding: 6px 14px;
    background: var(--nav-bg);
    border: 1px solid var(--glass-border);
    border-radius: 999px;
    color: var(--text-secondary);
    font-weight: 600;
}

.blessing-box {
    background: rgba(15, 23, 42, 0.02);
    border: 1px solid rgba(15, 23, 42, 0.04);
    padding: 16px;
    border-radius: 16px;
    margin-bottom: 14px;
    transition: all 0.2s ease;
}

.blessing-label {
    display: block;
    font-size: 0.78rem;
    color: var(--text-secondary);
    font-weight: 600;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.blessing-name {
    display: block;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 6px;
}

.blessing-text {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-primary);
}

.full-view-btn-container {
    margin-top: 15px;
    text-align: right;
}

.result-item .full-view-btn-styled {
    background: none !important;
    color: var(--primary) !important;
    border: none !important;
    padding: 0 !important;
    font-weight: 600 !important;
    font-size: 0.92rem !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
    width: auto !important;
    box-shadow: none !important;
    transition: color 0.2s ease, transform 0.2s ease !important;
    margin-top: 10px;
}

.result-item .full-view-btn-styled::after {
    content: '←';
    display: inline-block;
    transition: transform 0.2s ease;
}

.result-item .full-view-btn-styled:hover {
    color: var(--primary-hover) !important;
    transform: none !important;
}

.result-item .full-view-btn-styled:hover::after {
    transform: translateX(-4px);
}

.full-view-btn-styled {
    background: var(--primary);
    color: white;
    border: none;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
    box-shadow: 0 4px 12px rgba(var(--primary-rgb), 0.15);
}

.full-view-btn-styled:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(var(--primary-rgb), 0.25);
}

.notes-box {
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid var(--glass-border);
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* About/Policy Section on Home */
.content-deepening {
    background: white;
    padding: 80px 5%;
    margin-top: 60px;
    border-top: 1px solid #eee;
}

.content-grid {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.content-grid h2 {
    font-size: 2.2rem;
    margin-bottom: 20px;
}

.content-grid p {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

/* Footer */
footer {
    background: #1d1d1f;
    color: white;
    padding: 60px 5%;
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    margin-bottom: 30px;
}

.footer-links a {
    color: #a1a1a6;
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: white;
}

.copyright {
    color: #86868b;
    font-size: 0.9rem;
}

.social-icons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.social-icons a,
.social-icons a:visited {
    color: #a1a1a6;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transition: color 0.2s ease, background 0.2s ease;
}

.social-icons a:hover,
.social-icons a:active,
.social-icons a:focus {
    color: white;
    background: rgba(255, 255, 255, 0.2);
}

.social-icons svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* Donation Card Component */
.donation-section {
    padding: 60px 5%;
    display: flex;
    justify-content: center;
    background: transparent;
}

.donation-card {
    background: white;
    padding: 40px 30px;
    border-radius: 32px;
    box-shadow: 0 20px 40px rgba(41, 171, 224, 0.1);
    text-align: center;
    max-width: 450px;
    width: 100%;
    border: 1px solid rgba(41, 171, 224, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.donation-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 50px rgba(41, 171, 224, 0.15);
}

.donation-card h2 {
    margin: 0 0 15px 0;
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-primary);
}

.donation-card p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 30px;
}

.card-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.kofi-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 24px;
    border-radius: 16px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    font-size: 1.1rem;
    border: none;
    outline: none;
}

.btn-primary {
    background-color: var(--kofi-blue);
    color: white;
}

.btn-primary:hover {
    background-color: #2497c6;
    transform: scale(1.02);
}

.btn-secondary {
    background-color: transparent;
    color: var(--kofi-blue);
    border: 2px solid var(--kofi-blue);
}

.btn-secondary:hover {
    background-color: rgba(41, 171, 224, 0.05);
    transform: scale(1.02);
}

/* Footer CTA */
.footer-cta {
    background-color: transparent !important;
    color: var(--kofi-blue) !important;
    padding: 0 !important;
    font-weight: 700 !important;
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    box-shadow: none !important;
    transition: transform 0.2s ease, color 0.2s ease !important;
    border: none !important;
    outline: none !important;
    text-decoration: none;
}

.footer-cta:hover {
    transform: translateY(-2px) scale(1.05);
    background-color: transparent !important;
    color: #2497c6 !important;
}

/* Donation Modal Specifics */
.donation-modal-content {
    max-width: 450px;
    text-align: center;
    padding: 40px 30px;
}

.donation-modal-content h2 {
    margin-top: 0;
    font-size: 2rem;
    font-weight: 800;
}

.donation-modal-content p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 30px;
}

@media (max-width: 768px) {
    .donation-card {
        padding: 30px 20px;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .content-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    #searchInput {
        font-size: 1.4rem;
        padding: 20px 35px;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 15px;
    }
}



/* Modal Styles */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.modal-content {
    background: white;
    padding: 50px;
    border-radius: 32px;
    max-width: 800px;
    width: 100%;
    position: relative;
    box-shadow: 0 25px 50px rgba(0,0,0,0.2);
    animation: modalIn 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    max-height: 90vh;
    overflow-y: auto;
}

@keyframes modalIn {
    from { opacity: 0; transform: translateY(30px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.close-modal {
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 2.5rem;
    font-weight: 300;
    cursor: pointer;
    color: var(--text-secondary);
    line-height: 1;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: color 0.2s;
}

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

#modalBody .result-title {
    font-size: 3rem;
    margin-bottom: 30px;
    text-align: center;
}

#modalBody .blessing-box {
    padding: 25px;
    border-radius: 20px;
}

#modalBody .blessing-name {
    font-size: 1.8rem;
}

#modalBody .blessing-text {
    font-size: 1.5rem;
}

@media (max-width: 768px) {
    .modal-content {
        padding: 30px;
    }
    
    #modalBody .result-title {
        font-size: 2rem;
    }
}

/* Shout Animation for Non-Kosher Results */
.shout-animation {
    text-align: center;
    color: #ff4d4f;
    animation: shake 0.5s cubic-bezier(.36,.07,.19,.97) both;
    background: #fff1f0;
    padding: 60px 40px;
    border-radius: 32px;
    border: 2px dashed #ff4d4f;
    grid-column: 1 / -1;
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.shout-animation h3 {
    font-size: 3.5rem;
    margin-bottom: 25px;
    margin-top: 0;
    color: #ff4d4f;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.shout-animation h3 span {
    font-size: 4.5rem;
    color: #ff4d4f;
}

.shout-animation p {
    font-size: 1.8rem;
    color: #515154;
    margin: 0;
    line-height: 1.5;
    max-width: 800px;
}

.shout-animation strong {
    color: #1d1d1f;
}

/* Modal Non-Kosher Warning */
.non-kosher-modal {
    background: #fff1f0 !important;
    border: 2px dashed #ff4d4f !important;
    box-shadow: none !important;
}

.non-kosher-modal .result-title {
    color: #ff4d4f !important;
}

@keyframes shake {
  10%, 90% { transform: translate3d(-2px, 0, 0); }
  20%, 80% { transform: translate3d(4px, 0, 0); }
  30%, 50%, 70% { transform: translate3d(-6px, 0, 0); }
  40%, 60% { transform: translate3d(6px, 0, 0); }
}

/* Install App Button */
.install-btn {
    background: transparent;
    color: #a1a1a6;
    border: none;
    padding: 0;
    font-weight: 500;
    cursor: pointer;
    font-size: 1rem;
    display: none; 
    transition: color 0.2s ease;
    font-family: inherit;
    text-decoration: none;
}

.install-btn:hover {
    color: var(--primary);
}

/* Bug Report Modal Specifics */
.bug-modal .modal-content {
    max-width: 640px; /* Responsive desktop width */
    padding: 40px 20px 20px;
}

@media (max-width: 768px) {
    .bug-modal .modal-content {
        width: 90%; /* Responsive mobile width */
        padding: 40px 10px 10px;
    }
}

.bug-modal .modal-body {
    width: 100%;
    height: 600px;
    overflow: hidden;
    border-radius: 12px;
}

.report-bug-link {
    font-weight: 500;
    color: var(--primary) !important; /* Make it stand out slightly while looking like a link */
}

.report-bug-link:hover {
    text-decoration: underline;
}
/* Toast Notification */
.ai-toast {
    position: fixed;
    bottom: -100px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: white;
    padding: 16px 24px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    z-index: 2000;
    transition: bottom 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    min-width: 300px;
    max-width: 90%;
    font-weight: 600;
}

.ai-toast.show {
    bottom: 30px;
}

#updateAppBtn:hover {
    background: #f0f0f0 !important;
    transform: scale(1.05);
}
/* Smart Install Prompt */
.install-prompt-floating {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    z-index: 2000;
    display: flex;
    justify-content: center;
    animation: promptSlideIn 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.install-prompt-floating.hiding {
    animation: promptSlideOut 0.5s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

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

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

.install-prompt-content {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 16px 20px;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.15);
    max-width: 450px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.install-prompt-text {
    display: flex;
    flex-direction: column;
    text-align: right;
    flex: 1;
}

.install-prompt-text strong {
    font-size: 1.1rem;
    color: var(--text-primary);
}

.install-prompt-text span {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

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

.smart-install-btn-main {
    background: var(--primary);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 14px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.smart-install-btn-main:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
}

.smart-install-btn-close {
    background: rgba(0,0,0,0.05);
    color: var(--text-secondary);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    line-height: 1;
}

.smart-install-btn-close:hover {
    background: rgba(0,0,0,0.1);
}

/* iOS Install Modal Enhancements */
.ios-install-modal {
    padding: 40px 30px !important;
}

.ios-steps {
    text-align: right;
    margin: 25px 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.ios-step {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.step-num {
    background: var(--primary);
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: bold;
    flex-shrink: 0;
    margin-top: 2px;
}

.ios-step p {
    margin: 0;
    font-size: 1rem;
    line-height: 1.4;
}

@media (max-width: 480px) {
    .install-prompt-content {
        flex-direction: column;
        padding: 20px;
        text-align: center;
    }
    
    .install-prompt-text {
        text-align: center;
        margin-bottom: 10px;
    }
    
    .install-prompt-actions {
        width: 100%;
        justify-content: center;
    }
    
    .smart-install-btn-main {
        flex: 1;
    }
}

/* Static Pages (About, Policy) */
.static-page {
    max-width: 800px;
    margin: 60px auto;
    padding: 40px;
    background: white;
    border-radius: 24px;
    box-shadow: var(--shadow);
}

.static-page h1 {
    font-size: 2.5rem;
    margin-bottom: 30px;
    color: var(--primary);
}

.static-page h2 {
    font-size: 1.5rem;
    margin: 30px 0 15px;
}

.static-page p {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 20px;
}

.back-link {
    display: inline-block;
    margin-top: 30px;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
}

.header-info {
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-align: left;
    font-family: 'Rubik', sans-serif;
    line-height: 1.4;
    font-weight: 500;
}

/* Guide Steps Styling */
.usage-steps { margin-top: 40px; }
.usage-step { display: flex; gap: 20px; margin-bottom: 25px; background: white; padding: 25px; border-radius: var(--radius); box-shadow: var(--shadow); align-items: center; text-align: right; border: 1px solid rgba(0,0,0,0.05); transition: transform 0.3s ease; }
.usage-step:hover { transform: translateY(-5px); }
.step-icon { font-size: 2.2rem; width: 65px; height: 65px; background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%); border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: white; box-shadow: 0 8px 20px rgba(var(--primary-rgb), 0.28); border: 2px solid var(--surface); }
.step-text strong { display: block; font-size: 1.2rem; color: var(--primary); margin-bottom: 8px; }
.step-text p { margin: 0; color: var(--text-secondary); line-height: 1.6; }

/* Toast Notifications */
.ai-toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    color: white;
    padding: 12px 25px;
    border-radius: 50px;
    font-weight: 500;
    z-index: 5000;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    display: none;
    animation: toast-in 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    transition: opacity 0.5s ease;
}

@keyframes toast-in {
    from { transform: translate(-50%, 50px); opacity: 0; }
    to { transform: translate(-50%, 0); opacity: 1; }
}

/* ==========================================================================
   Apple-Style Liquid Glass UI/UX System (Gooey & Glassmorphism)
   ========================================================================== */

/* Glass Variables for Theme Adaptation */
:root {
    --liquid-glass-bg: rgba(255, 255, 255, 0.45);
    --liquid-glass-border: rgba(255, 255, 255, 0.25);
    --liquid-glass-text: #1d1d1f;
    --liquid-glass-hover-bg: rgba(255, 255, 255, 0.6);
}

.dark-mode, [data-theme="dark"] {
    --liquid-glass-bg: rgba(42, 51, 68, 0.55);
    --liquid-glass-border: rgba(255, 255, 255, 0.12);
    --liquid-glass-text: #f1f5f9;
    --liquid-glass-hover-bg: rgba(58, 68, 88, 0.65);
}

/* --------------------------------------------------------------------------
   1. LIQUID GLASS ACTIVE SYSTEM (Apple Platforms: iOS, iPadOS, macOS)
   -------------------------------------------------------------------------- */

/* Enable the Liquid Gooey Filter on parent controls */
.liquid-glass-enabled .categories {
    filter: url('#liquid-goo');
    padding: 15px 5px;
    margin-bottom: 25px;
    overflow: visible !important;
}

.liquid-glass-enabled .desktop-nav {
    filter: url('#liquid-goo');
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    padding: 6px 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
}

.dark-mode.liquid-glass-enabled .desktop-nav {
    background: rgba(30, 30, 30, 0.25);
    border-color: rgba(255, 255, 255, 0.1);
}

.liquid-glass-enabled .mobile-nav-links {
    filter: url('#liquid-goo');
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
    padding: 20px;
}

/* Base style for Category buttons with liquid glassmorphism */
.liquid-glass-enabled .category-btn {
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    background: var(--liquid-glass-bg);
    border: 1px solid var(--liquid-glass-border);
    color: var(--liquid-glass-text);
    box-shadow: none; /* Shadow interferes with gooey matrix */
    padding: 14px 28px;
    font-size: 1.05rem;
    border-radius: 50px;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), 
                background-color 0.4s, 
                border-color 0.4s,
                color 0.3s;
    margin: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Fluid Hover Expansion & Mercury merge effect */
.liquid-glass-enabled .category-btn:hover {
    transform: scale(1.18) translateY(-2px);
    background-color: var(--liquid-glass-hover-bg);
    border-color: rgba(255, 255, 255, 0.4);
    color: var(--primary);
    z-index: 10;
}

.dark-mode.liquid-glass-enabled .category-btn:hover {
    color: var(--primary-light);
}

/* Squish active/tap animation for native feel */
.liquid-glass-enabled .category-btn:active {
    transform: scale(0.9) translateY(1px);
    transition: transform 0.1s ease;
}

/* Liquid active button state */
.liquid-glass-enabled .category-btn.active {
    background-color: var(--primary);
    border-color: var(--primary);
    color: white;
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(17, 153, 142, 0.25);
}

/* Navigation Link Items */
.liquid-glass-enabled .desktop-nav a {
    background: transparent;
    color: var(--liquid-glass-text);
    border: 1px solid transparent;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), background-color 0.3s;
}

.liquid-glass-enabled .desktop-nav a:hover {
    transform: scale(1.15) translateY(-1px);
    background-color: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.2);
}

.dark-mode.liquid-glass-enabled .desktop-nav a:hover {
    background-color: rgba(255, 255, 255, 0.12);
}

.liquid-glass-enabled .desktop-nav a.active {
    background-color: var(--primary);
    color: white !important;
    border-color: var(--primary);
    transform: scale(1.08);
    box-shadow: 0 4px 15px rgba(17, 153, 142, 0.25);
}

/* Mobile Nav Overlay Links inside gooey */
.liquid-glass-enabled .mobile-nav-links a {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    background: var(--liquid-glass-bg);
    border: 1px solid var(--liquid-glass-border);
    color: var(--liquid-glass-text);
    font-size: 1.5rem;
    padding: 12px 40px;
    border-radius: 40px;
    min-width: 250px;
    text-align: center;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), background-color 0.3s;
}

.liquid-glass-enabled .mobile-nav-links a:hover,
.liquid-glass-enabled .mobile-nav-links a.active {
    transform: scale(1.12);
    background-color: var(--primary);
    color: white !important;
    border-color: var(--primary);
}

/* --------------------------------------------------------------------------
   2. LIGHT GLASS SYSTEM (Android, Windows, Older Browsers: Max Performance)
   -------------------------------------------------------------------------- */

.light-glass-enabled .categories {
    padding: 5px;
    overflow: visible;
}

.light-glass-enabled .category-btn {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.55);
    color: var(--text-primary);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.02);
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), 
                background-color 0.2s, 
                border-color 0.2s, 
                box-shadow 0.2s;
}

.dark-mode.light-glass-enabled .category-btn {
    background: rgba(40, 40, 40, 0.7);
    border-color: rgba(255, 255, 255, 0.15);
    color: #f5f5f7;
}

.light-glass-enabled .category-btn:hover {
    transform: translateY(-2px);
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
    border-color: rgba(255, 255, 255, 0.8);
}

.dark-mode.light-glass-enabled .category-btn:hover {
    background-color: rgba(55, 55, 55, 0.9);
}

.light-glass-enabled .category-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    box-shadow: 0 4px 12px rgba(17, 153, 142, 0.2);
}

.light-glass-enabled .desktop-nav {
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.45);
}

.dark-mode.light-glass-enabled .desktop-nav {
    background: rgba(30, 30, 30, 0.65);
    border-color: rgba(255, 255, 255, 0.15);
}

.light-glass-enabled .desktop-nav a {
    transition: background-color 0.2s, color 0.2s;
}

.light-glass-enabled .desktop-nav a:hover {
    background-color: rgba(17, 153, 142, 0.08);
}

.light-glass-enabled .desktop-nav a.active {
    background: var(--primary);
    color: white !important;
    box-shadow: 0 4px 12px rgba(17, 153, 142, 0.2);
}

/* --------------------------------------------------------------------------
   3. UNIVERSAL PREMIUM GLASS CARD AESTHETICS (For Both Systems)
   -------------------------------------------------------------------------- */

/* Sticky Glass Header */
header {
    background: rgba(255, 255, 255, 0.65) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3) !important;
}

.dark-mode header {
    background: rgba(20, 20, 22, 0.7) !important;
    border-bottom-color: rgba(255, 255, 255, 0.1) !important;
}

/* Premium Search Container & Input */
.liquid-glass-enabled #searchInput,
.light-glass-enabled #searchInput {
    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: var(--text-primary);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.03);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.dark-mode.liquid-glass-enabled #searchInput,
.dark-mode.light-glass-enabled #searchInput {
    background: rgba(28, 28, 30, 0.55);
    border-color: rgba(255, 255, 255, 0.12);
    color: #f5f5f7;
}

.liquid-glass-enabled #searchInput:focus,
.light-glass-enabled #searchInput:focus {
    background: rgba(255, 255, 255, 0.85);
    border-color: var(--primary);
    box-shadow: 0 15px 40px rgba(17, 153, 142, 0.15);
    transform: translateY(-1px);
}

.dark-mode.liquid-glass-enabled #searchInput:focus,
.dark-mode.light-glass-enabled #searchInput:focus {
    background: rgba(45, 45, 48, 0.85);
}

/* High-End Glassmorphic Result Cards */
.liquid-glass-enabled .result-item,
.light-glass-enabled .result-item {
    background: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.35);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    border-radius: 24px;
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), 
                box-shadow 0.4s, 
                border-color 0.4s, 
                background-color 0.4s;
}

.dark-mode.liquid-glass-enabled .result-item,
.dark-mode.light-glass-enabled .result-item {
    background: rgba(30, 30, 35, 0.45);
    border-color: rgba(255, 255, 255, 0.12);
}

.liquid-glass-enabled .result-item:hover,
.light-glass-enabled .result-item:hover {
    transform: translateY(-6px) scale(1.02);
    background-color: rgba(255, 255, 255, 0.7);
    border-color: var(--primary);
    box-shadow: 0 20px 40px rgba(17, 153, 142, 0.1);
}

.dark-mode.liquid-glass-enabled .result-item:hover,
.dark-mode.light-glass-enabled .result-item:hover {
    background-color: rgba(50, 50, 55, 0.65);
}

/* Glass Details Modal Overlay & Content */
.liquid-glass-enabled .modal-overlay,
.light-glass-enabled .modal-overlay {
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    background: rgba(0, 0, 0, 0.4);
}

.liquid-glass-enabled .modal-content,
.light-glass-enabled .modal-content {
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(35px);
    -webkit-backdrop-filter: blur(35px);
    border: 1px solid rgba(255, 255, 255, 0.45);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.15);
}

:root.dark-mode,
.dark-mode {
    --bg-gradient: linear-gradient(165deg, #1e2433 0%, #252d3d 48%, #2c3547 100%);
    --primary: #2dd4bf;
    --primary-hover: #5eead4;
    --primary-light: #5eead4;
    --primary-rgb: 45, 212, 191;
    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    --glass-bg: rgba(38, 46, 62, 0.88);
    --glass-border: rgba(255, 255, 255, 0.1);
    --nav-bg: rgba(255, 255, 255, 0.06);
    --nav-bg-hover: rgba(var(--primary-rgb), 0.14);
    --surface: #2a3344;
    --surface-elevated: #323d52;
    --shadow: 0 4px 24px rgba(0, 0, 0, 0.28);
}

.dark-mode body {
    background: var(--bg-gradient) !important;
    color: var(--text-primary) !important;
}

.dark-mode .hero {
    background: rgba(255, 255, 255, 0.03) !important;
    border-bottom-color: var(--glass-border) !important;
}

.dark-mode .logo {
    color: var(--text-primary) !important;
}

.dark-mode .logo-container:hover .logo {
    color: var(--primary) !important;
}

/* Header & Navigation in Dark Mode */
.dark-mode header {
    background: var(--glass-bg) !important;
    border-bottom: 1px solid var(--glass-border) !important;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.2) !important;
}

.dark-mode .desktop-nav {
    background: var(--nav-bg) !important;
    border-color: var(--glass-border) !important;
}

.dark-mode .desktop-nav a {
    color: var(--text-secondary) !important;
}

.dark-mode .desktop-nav a:hover {
    background: var(--nav-bg-hover) !important;
    color: var(--primary) !important;
}

.dark-mode .desktop-nav a.active {
    background: var(--primary) !important;
    color: #0f172a !important;
    font-weight: 600;
    box-shadow: 0 2px 12px rgba(var(--primary-rgb), 0.35) !important;
}

.dark-mode .menu-toggle,
.dark-mode .theme-toggle,
.dark-mode .close-menu {
    background: var(--nav-bg) !important;
    border-color: var(--glass-border) !important;
    color: var(--text-primary) !important;
}

.dark-mode .menu-toggle:hover,
.dark-mode .theme-toggle:hover,
.dark-mode .close-menu:hover {
    background: var(--nav-bg-hover) !important;
    color: var(--primary) !important;
}

.dark-mode .mobile-nav-overlay {
    background: rgba(30, 36, 51, 0.97) !important;
}

.dark-mode .mobile-nav-links a {
    color: var(--text-primary) !important;
}

.dark-mode .mobile-nav-links a:hover,
.dark-mode .mobile-nav-links a.active {
    color: var(--primary) !important;
    background: var(--nav-bg-hover) !important;
}

.dark-mode .header-info {
    color: var(--text-secondary) !important;
}

/* Search Bar in Dark Mode */
.dark-mode #searchInput {
    background: var(--surface-elevated) !important;
    color: var(--text-primary) !important;
    border: 1px solid var(--glass-border) !important;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.25) !important;
}

.dark-mode #searchInput::placeholder {
    color: var(--text-muted) !important;
}

.dark-mode #searchInput:focus {
    box-shadow: 0 15px 45px rgba(var(--primary-rgb), 0.2) !important;
    border-color: rgba(var(--primary-rgb), 0.35) !important;
}

/* Category Buttons in Dark Mode */
.dark-mode .usage-step {
    background: var(--surface) !important;
    border-color: var(--glass-border) !important;
}

.dark-mode .category-btn {
    background: rgba(30, 41, 59, 0.7) !important;
    color: var(--text-primary) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
}

.dark-mode .category-btn:hover {
    border-color: rgba(var(--primary-rgb), 0.5) !important;
    color: var(--primary) !important;
    background: rgba(30, 41, 59, 0.9) !important;
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35) !important;
}

.dark-mode .category-btn.active {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%) !important;
    color: #0f172a !important; /* Elegant high contrast dark theme active text color */
    font-weight: 700;
    border-color: transparent !important;
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 8px 24px rgba(var(--primary-rgb), 0.45) !important;
}

/* Info and Deepening Sections (Static Content) */
.dark-mode .info-section,
.dark-mode .content-deepening,
.dark-mode .static-page {
    background: transparent !important;
    color: var(--text-primary) !important;
}

.dark-mode .info-card {
    background: var(--surface) !important;
    border: 1px solid var(--glass-border) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2) !important;
}

.dark-mode .usage-step {
    background: rgba(255, 255, 255, 0.02) !important;
}

.dark-mode .usage-step:hover {
    background: rgba(255, 255, 255, 0.05) !important;
}

.dark-mode .content-grid h2 {
    color: var(--text-primary) !important;
}

.dark-mode .content-grid p {
    color: var(--text-secondary) !important;
}

.dark-mode .content-deepening {
    border-top: 1px solid var(--glass-border) !important;
}

.dark-mode .notes-box {
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
}

/* Result Items (Cards) in Dark Mode */
.dark-mode .result-item {
    background: var(--surface) !important;
    border: 1px solid var(--glass-border) !important;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2) !important;
}

.dark-mode .result-item:hover {
    border-color: var(--primary) !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4) !important;
}

.dark-mode .result-category {
    background: rgba(255, 255, 255, 0.08) !important;
    color: var(--text-secondary) !important;
}

.dark-mode .result-item.non-kosher {
    background: rgba(239, 68, 68, 0.08) !important;
    border-color: #ef4444 !important;
}

/* Footer Specific Overrides */
.dark-mode footer {
    background: #232b3a !important;
    border-top: 1px solid var(--glass-border) !important;
}

/* Donation Card in Dark Mode */
.dark-mode .donation-card {
    background: var(--glass-bg) !important;
    border: 1px solid var(--glass-border) !important;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.3) !important;
}

.dark-mode .donation-card h2 {
    color: var(--text-primary) !important;
}

.dark-mode .donation-card p {
    color: var(--text-secondary) !important;
}

/* Modal Content & Glass Adjustments */
.dark-mode.liquid-glass-enabled .modal-content,
.dark-mode.light-glass-enabled .modal-content {
    background: rgba(42, 51, 68, 0.92) !important;
    backdrop-filter: blur(35px) !important;
    -webkit-backdrop-filter: blur(35px) !important;
    border-color: var(--glass-border) !important;
    color: var(--text-primary) !important;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5) !important;
}

.dark-mode.liquid-glass-enabled .blessing-box,
.dark-mode.light-glass-enabled .blessing-box {
    background: rgba(255, 255, 255, 0.03) !important;
    border-color: rgba(255, 255, 255, 0.05) !important;
}

/* Updates page */
.updates-container {
    max-width: 720px;
    margin: 0 auto;
    padding: 20px 16px 40px;
}

.updates-page-header {
    margin-bottom: 28px;
    text-align: center;
}

.updates-page-header h1 {
    margin: 0 0 10px;
    font-size: clamp(1.5rem, 4vw, 1.85rem);
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    line-height: 1.25;
}

.updates-page-intro {
    margin: 0 auto;
    max-width: 540px;
    font-size: 0.92rem;
    line-height: 1.7;
    color: var(--text-secondary);
    font-weight: 500;
}

.updates-page-intro strong {
    color: var(--primary);
    font-weight: 700;
}

#updatesList {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.update-card {
    background: var(--glass-bg);
    padding: 14px 16px 12px;
    border-radius: 14px;
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow);
    backdrop-filter: blur(10px);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.update-card:hover {
    box-shadow: 0 6px 20px rgba(13, 148, 136, 0.08);
}

.update-card.highlight-card {
    border-width: 1.5px;
}

.update-card-top {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 8px;
}

.update-card-icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    border-radius: 10px;
    background: rgba(13, 148, 136, 0.08);
    border: 1px solid rgba(13, 148, 136, 0.12);
}

.update-card-header {
    flex: 1;
    min-width: 0;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 8px;
}

.update-card-header h3 {
    margin: 0;
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: -0.01em;
}

.update-card.highlight-card .update-card-header h3 {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--primary);
}

.update-version {
    background: var(--primary);
    color: white;
    padding: 3px 10px;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 700;
    white-space: nowrap;
    flex-shrink: 0;
    letter-spacing: 0.01em;
}

.update-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 8px;
}

.update-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1.4;
}

.update-teaser {
    margin: 0 0 8px;
    padding-right: 46px;
    font-size: 0.84rem;
    line-height: 1.55;
    color: var(--text-secondary);
    font-weight: 500;
}

.update-details {
    margin-top: 2px;
}

.update-details summary {
    cursor: pointer;
    list-style: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--primary);
    user-select: none;
    background: rgba(13, 148, 136, 0.07);
    border: 1px solid rgba(13, 148, 136, 0.2);
    border-radius: 50px;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.update-details summary:hover {
    background: rgba(13, 148, 136, 0.12);
    border-color: var(--primary);
}

.update-details summary::-webkit-details-marker {
    display: none;
}

.update-details summary::after {
    content: '◀';
    display: inline-block;
    font-size: 0.55rem;
    transition: transform 0.2s ease;
    opacity: 0.85;
}

.update-details[open] summary::after {
    transform: rotate(-90deg);
}

.update-details-body {
    margin-top: 12px;
    padding: 12px 14px;
    font-size: 0.88rem;
    line-height: 1.65;
    color: var(--text-secondary);
    background: rgba(13, 148, 136, 0.04);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
}

.update-details-body p {
    margin: 0 0 10px;
}

.update-details-body p:last-child {
    margin-bottom: 0;
}

.update-details-body em {
    font-style: normal;
    display: block;
    margin-top: 10px;
    padding: 8px 10px;
    font-size: 0.82rem;
    line-height: 1.55;
    color: var(--text-secondary);
    background: rgba(0, 0, 0, 0.03);
    border-radius: 8px;
    border-right: 3px solid var(--primary);
}

.update-feature-list {
    margin: 10px 0 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.update-feature-list li {
    margin: 0;
    padding: 0;
}

.update-feature-list li strong {
    display: block;
    font-size: 0.86rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 3px;
}

.update-feature-list li p {
    margin: 0;
    font-size: 0.85rem;
}

.update-bullet-list {
    margin: 8px 0 0;
    padding: 0 1.1em 0 0;
    list-style: none;
}

.update-bullet-list li {
    position: relative;
    margin-bottom: 6px;
    padding-right: 14px;
    font-size: 0.85rem;
    line-height: 1.55;
}

.update-bullet-list li::before {
    content: '•';
    position: absolute;
    right: 0;
    color: var(--primary);
    font-weight: 700;
}

.update-card--beta {
    border-color: #ff9800;
    border-style: dashed;
}

.update-card--beta .update-card-header h3 {
    color: #e67e22;
}

.update-card--beta .update-version {
    background: #ff9800;
}

.update-card--liquid {
    border-color: var(--primary);
    background: linear-gradient(135deg, rgba(17, 153, 142, 0.05) 0%, rgba(56, 239, 125, 0.05) 100%);
}

.update-card--dark {
    border-color: var(--primary);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.06) 0%, rgba(13, 148, 136, 0.08) 100%);
}

/* Updates Cards in Dark Mode */
.dark-mode .update-card {
    background: rgba(255, 255, 255, 0.02) !important;
    border: 1px solid var(--glass-border) !important;
}

.dark-mode .update-card:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25) !important;
}

.dark-mode .update-card-icon {
    background: rgba(13, 148, 136, 0.15) !important;
    border-color: rgba(13, 148, 136, 0.25) !important;
}

.dark-mode .update-card.highlight-card .update-card-header h3 {
    color: var(--primary) !important;
}

.dark-mode .update-card-header h3 {
    color: var(--text-primary) !important;
}

.dark-mode .update-details-body {
    background: rgba(0, 0, 0, 0.2) !important;
}

.dark-mode .update-details-body em {
    background: rgba(0, 0, 0, 0.25) !important;
}

.dark-mode .update-details summary {
    background: rgba(13, 148, 136, 0.12) !important;
}

.dark-mode .update-feature-list li strong {
    color: var(--text-primary) !important;
}

.dark-mode .update-bullet-list li strong {
    color: var(--text-primary) !important;
}

/* Theme Toggle — interaction */
.theme-toggle {
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.theme-toggle:hover {
    background: var(--nav-bg-hover) !important;
    color: var(--primary);
    transform: scale(1.04);
}

.theme-toggle:active {
    transform: scale(0.96);
}

/* --------------------------------------------------------------------------
   4. VOICE SEARCH PREMIUM ACTIVE MODAL & PULSE ANIMATIONS
   -------------------------------------------------------------------------- */
.voice-modal-content {
    background: var(--glass-bg) !important;
    backdrop-filter: blur(40px) saturate(1.8) !important;
    -webkit-backdrop-filter: blur(40px) saturate(1.8) !important;
    border: 1px solid var(--glass-border) !important;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.25) !important;
}

.voice-anim-wrapper {
    position: relative;
    width: 90px;
    height: 90px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.voice-mic-icon {
    width: 60px;
    height: 60px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    box-shadow: 0 8px 24px rgba(var(--primary-rgb), 0.3);
}

.voice-pulse-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: rgba(var(--primary-rgb), 0.25);
    animation: voicePulse 1.8s infinite ease-out;
    z-index: 1;
}

@keyframes voicePulse {
    0% { transform: scale(0.8); opacity: 0.8; }
    100% { transform: scale(1.8); opacity: 0; }
}

.wave-bar {
    width: 4px;
    height: 6px;
    background: var(--primary);
    border-radius: 2px;
    animation: waveBounce 1.2s infinite ease-in-out;
}

.bar-1 { animation-delay: 0.1s; }
.bar-2 { animation-delay: 0.3s; }
.bar-3 { animation-delay: 0.5s; }
.bar-4 { animation-delay: 0.2s; }
.bar-5 { animation-delay: 0.4s; }

@keyframes waveBounce {
    0%, 100% { height: 6px; }
    50% { height: 26px; }
}
