.welcome-banner__text {
    flex: 1;
}
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
    --bg: #f2f6f3;
    --bg-gradient: linear-gradient(180deg, #f8fbf9 0%, #f4fff8 40%, #ffffff 100%);
    --card: #ffffff;
    --card-muted: rgba(255, 255, 255, 0.7);
    --text: #0b1f18;
    --muted: #5f7469;
    --primary: #0ea765;
    --primary-dark: #0a5c35;
    --accent: rgba(12, 158, 102, 0.12);
    --border: rgba(13, 89, 60, 0.12);
    --search-bg: #051b13;
    --search-chip: rgba(255,255,255,0.14);
    --glow-green: rgba(14, 167, 101, 0.35);
    --gradient-hero: radial-gradient(circle at 10% 20%, rgba(14,167,101,0.18) 0%, transparent 45%), radial-gradient(circle at 80% 0%, rgba(12,106,209,0.12) 0%, transparent 40%);
}

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

body {
    font-family: 'Space Grotesk', 'IBM Plex Sans', sans-serif;
    color: var(--text);
    background: var(--bg-gradient);
    line-height: 1.65;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    inset: -20% auto auto -10%;
    width: 45vw;
    height: 45vw;
    background: radial-gradient(circle, rgba(14,167,101,0.18) 0%, transparent 60%);
    z-index: -2;
    filter: blur(10px);
}

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

.top-strip {
    background: #111c2d;
    color: #d9e6ff;
    padding: 0.4rem 0;
    font-size: 0.9rem;
}

.top-strip__content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.top-strip__left {
    display: flex;
    gap: 0.5rem;
}

.top-strip__select {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.3);
    color: #fff;
    padding: 0.3rem 0.8rem;
    border-radius: 999px;
    font-size: 0.85rem;
}

/* === 2026 Visual Refresh === */
.site-header {
        background: rgba(255,255,255,0.92);
        border-bottom: 1px solid rgba(15,31,24,0.08);
        box-shadow: 0 25px 50px rgba(5,20,19,0.1);
        backdrop-filter: blur(18px);
}

.site-header__inner {
        border-radius: 32px;
        padding: 1.4rem 1.6rem;
}

.brand--hero {
        background: rgba(255,255,255,0.86);
        border: 1px solid rgba(15,31,24,0.08);
        box-shadow: 0 35px 55px rgba(5,20,19,0.12);
}

.mega-search--accent {
        position: relative;
        overflow: hidden;
        background: rgba(4, 17, 12, 0.94);
}

.mega-search--accent::after {
        content: '';
        position: absolute;
        inset: 0;
        background: var(--gradient-hero);
        pointer-events: none;
        mix-blend-mode: screen;
}

.mega-search__field {
        border: 1px solid rgba(255,255,255,0.12);
}

.search-submit {
        background: linear-gradient(120deg, #fbfffe, #dcfff1);
        color: #08351f;
        box-shadow: 0 20px 35px rgba(12,158,102,0.25);
}

.barcode-trigger {
        border-color: rgba(255,255,255,0.25);
        background: rgba(255,255,255,0.05);
}

.barcode-trigger__bars {
        animation: pulseBars 1.6s infinite;
}

@keyframes pulseBars {
        0%, 100% { opacity: 1; transform: scaleY(1); }
        50% { opacity: 0.4; transform: scaleY(0.8); }
}

.hero {
        margin-top: 2.5rem;
        padding: 3.5rem 0;
        background: rgba(255,255,255,0.6);
        border-radius: 40px;
        box-shadow: 0 40px 80px rgba(8,25,18,0.08);
}

.hero__content {
        position: relative;
        isolation: isolate;
}

.hero__content::after {
        content: '';
        position: absolute;
        inset: -15% auto auto -5%;
        width: 320px;
        height: 320px;
        background: radial-gradient(circle, rgba(14,167,101,0.25), transparent 65%);
        z-index: -1;
}

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

.hero__stats article {
        background: rgba(255,255,255,0.8);
        border: 1px solid rgba(14,167,101,0.12);
        border-radius: 20px;
        padding: 1.2rem;
        box-shadow: 0 15px 30px rgba(8,25,18,0.08);
        transition: transform 0.2s ease;
}

.hero__stats article:hover {
        transform: translateY(-6px);
}

.hero__stats strong {
        font-size: clamp(1.5rem, 2.4vw, 2.1rem);
        color: var(--primary);
}

.badge {
        border-radius: 999px;
        backdrop-filter: blur(12px);
        border: 1px solid rgba(255,255,255,0.4);
        font-weight: 600;
}

.quick-links {
        margin-top: 3rem;
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
        gap: 1.2rem;
}

.quick-links article {
        padding: 1.5rem;
        border-radius: 24px;
        background: rgba(255,255,255,0.85);
        border: 1px solid rgba(15,31,24,0.08);
        box-shadow: 0 25px 50px rgba(5,20,19,0.06);
        transition: transform 0.25s ease, border 0.25s ease;
}

.quick-links article:hover {
        transform: translateY(-8px);
        border-color: rgba(14,167,101,0.35);
}

.filters {
        margin-top: 4rem;
        padding: 2.5rem;
        border-radius: 32px;
        background: linear-gradient(135deg, rgba(14,167,101,0.08), rgba(4,17,12,0.85));
        color: #fff;
}

    .filter-btn {
        border: 1px solid rgba(255,255,255,0.2);
        background: rgba(255,255,255,0.08);
        color: #fff;
        border-radius: 999px;
        padding: 0.5rem 1.3rem;
    }

    .filter-btn.active {
        background: #fff;
        color: #07331f;
    }

    .product-grid-section {
        margin-top: 4rem;
    }

    .product-card {
        border-radius: 30px;
        border: 1px solid rgba(14,167,101,0.08);
        box-shadow: 0 30px 60px rgba(5,20,19,0.08);
        overflow: hidden;
        background: #fff;
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }

    .product-card:hover {
        transform: translateY(-10px) scale(1.01);
        box-shadow: 0 40px 80px rgba(5,20,19,0.15);
    }

    .product-card img {
        border-bottom: 1px solid rgba(14,167,101,0.1);
    }

    .live-feed {
        margin-top: 4rem;
        border-radius: 34px;
        background: rgba(5,17,12,0.92);
        color: #f3fff8;
        padding: 3rem;
        box-shadow: 0 30px 70px rgba(5,17,12,0.4);
    }

    .live-feed__item {
        background: rgba(255,255,255,0.06);
        border: 1px solid rgba(255,255,255,0.08);
    }

    .family-gallery {
        margin-top: 4rem;
        border-radius: 32px;
        padding: 2.5rem;
        background: rgba(255,255,255,0.85);
        box-shadow: 0 25px 55px rgba(5,20,19,0.08);
    }

    .family-gallery__grid img {
        border-radius: 24px;
        box-shadow: 0 25px 50px rgba(5,20,19,0.12);
    }

    .community {
        border-radius: 32px;
        padding: 3rem;
        background: rgba(255,255,255,0.92);
        box-shadow: 0 30px 70px rgba(5,20,19,0.08);
    }

    .app-callout__preview img {
        border-radius: 24px;
        box-shadow: 0 20px 45px rgba(5,20,19,0.2);
    }

    .site-footer {
        margin-top: 4rem;
        border-top: 1px solid rgba(15,31,24,0.08);
        background: #030d09;
        color: #d6f4e6;
        padding: 4rem 0 2rem;
    }

    .site-footer__grid h4 {
        text-transform: uppercase;
        letter-spacing: 0.1em;
        margin-bottom: 0.9rem;
    }

    .site-footer__grid a {
        color: rgba(214,244,230,0.8);
    }

    .site-footer__grid a:hover {
        color: #fff;
    }

    .site-footer__copy {
        color: rgba(214,244,230,0.6);
    }
    color: #fff;
    padding: 0.3rem 0.8rem;
    border-radius: 999px;
    font-size: 0.85rem;
}

.site-header {
    background: #fff;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 20;
}

.site-header__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
    display: grid;
    grid-template-columns: minmax(240px, 380px) 1fr;
    gap: 2rem;
    align-items: stretch;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.brand--hero {
    gap: 1.2rem;
    align-items: flex-start;
    padding: 0.8rem 1rem;
    border-radius: 28px;
    background: linear-gradient(135deg, rgba(15,23,38,0.07), rgba(15,81,50,0.08));
    box-shadow: 0 15px 45px rgba(15,23,38,0.12);
}
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.brand__logo {
    width: clamp(110px, 14vw, 170px);
    height: auto;
    filter: drop-shadow(0 15px 25px rgba(15,23,38,0.15));
}

.brand__text span {
    font-weight: 700;
    font-size: clamp(1.4rem, 2.4vw, 2rem);
    line-height: 1.1;
}

.brand__text small {
    color: #0f1726;
    font-size: 0.85rem;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    display: block;
    margin-top: 0.35rem;
}

.header-controls {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.mega-search {
    background: var(--accent);
    border-radius: 26px;
    padding: 0.8rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.mega-search--accent {
    background: var(--search-bg);
    padding: 0.85rem 1rem;
    border: 1px solid rgba(255,255,255,0.12);
    box-shadow: 0 18px 40px rgba(9,16,32,0.35);
    border-radius: 26px;
}

.header-controls .mega-search { width: 100%; }

.mega-search__field {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 0.55rem;
    background: rgba(255,255,255,0.08);
    border-radius: 999px;
    padding: 0.35rem 0.95rem;
    min-width: 220px;
}

.mega-search__icon {
    color: rgba(255,255,255,0.8);
    font-size: 1.05rem;
}

.mega-search__field input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 0.95rem;
    padding: 0.35rem 0;
    outline: none;
    color: #fff;
}

.mega-search input::placeholder {
    color: rgba(255,255,255,0.65);
}

.mega-search__actions {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    flex-shrink: 0;
}

.mega-search__helper,
.mega-search__hint {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.78);
    margin: 0;
}

.mega-search__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
    margin-top: 0.35rem;
}

.barcode-overlay {
    position: fixed;
    inset: 0;
    background: rgba(2, 8, 20, 0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.barcode-overlay[hidden] { display: none; }

.barcode-overlay__panel {
    background: rgba(3, 12, 32, 0.95);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 20px;
    padding: 1rem;
    width: min(420px, 90%);
    box-shadow: 0 25px 60px rgba(0,0,0,0.4);
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.barcode-overlay__video {
    width: 100%;
    aspect-ratio: 3 / 4;
    border-radius: 16px;
    background: #000;
    object-fit: cover;
}

.barcode-overlay__helper {
    color: #f4f7ff;
    text-align: center;
    font-size: 0.9rem;
    margin: 0;
}

.barcode-overlay__close {
    align-self: flex-end;
    background: transparent;
    border: 1px solid rgba(255,255,255,0.25);
    color: #fff;
    border-radius: 999px;
    padding: 0.25rem 0.9rem;
    cursor: pointer;
    font-size: 0.85rem;
}

.barcode-trigger,
.search-submit {
    border: none;
    border-radius: 999px;
    font-weight: 600;
    padding: 0.5rem 1.3rem;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.search-submit {
    background: #23c06d;
    color: #04142b;
    box-shadow: 0 8px 20px rgba(14,218,128,0.25);
}

.search-submit:hover { transform: translateY(-1px); }

.barcode-trigger {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    border: 1px solid rgba(255,255,255,0.35);
    background: rgba(255,255,255,0.08);
    color: #fff;
}

.barcode-trigger:hover {
    background: rgba(255,255,255,0.13);
}

.barcode-trigger__bars {
    width: 18px;
    height: 22px;
    border-radius: 6px;
    background-image: repeating-linear-gradient(90deg, #fff 0, #fff 2px, transparent 2px, transparent 4px);
    display: block;
}

.barcode-trigger__label {
    font-size: 0.9rem;
}

.mega-search button {
    border: none;
    background: var(--primary);
    color: #fff;
    font-weight: 600;
    border-radius: 999px;
    padding: 0.6rem 1.2rem;
    cursor: pointer;
}

.search-submit {
    background: #fff;
    color: var(--search-bg);
    font-weight: 700;
    width: 100%;
}


.header-cta-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.primary-nav {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    font-size: 0.95rem;
    flex: 1;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.primary-nav a { transition: opacity 0.3s; }
.primary-nav a:hover { opacity: 0.8; }
.primary-nav .outline-btn {
    border-color: rgba(15,23,38,0.15);
    background: #fff;
}
.primary-nav .solid-btn { box-shadow: 0 12px 30px rgba(15,81,50,0.35); }

.outline-btn,
.solid-btn,
.ghost-btn,
.pill-btn {
    border-radius: 999px;
    padding: 0.5rem 1.2rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.outline-btn {
    border: 1px solid var(--border);
}

.solid-btn {
    border: none;
    background: linear-gradient(120deg, var(--primary), #23c074);
    color: #fff;
}

.ghost-btn {
    border: 1px solid transparent;
    color: var(--primary);
}

.ghost-btn--dark {
    color: #fff;
    border-color: var(--search-chip);
    background: rgba(255,255,255,0.08);
}

.pill-btn--app {
    background: linear-gradient(120deg, #0891b2, #10b981);
    color: #fff;
    box-shadow: 0 18px 30px rgba(8,145,178,0.35);
}

.header-link {
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #0f1726;
    border-bottom: 2px solid rgba(15,23,38,0.15);
    padding-bottom: 0.15rem;
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    transition: color 0.2s ease, border-color 0.2s ease;
}

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

.donation-banner {
    background: linear-gradient(120deg, #ffb347, #ffcc33);
    color: #3b2500;
    text-align: center;
    padding: 0.8rem;
    position: relative;
}

.donation-banner a { font-weight: 700; }

.donation-banner button {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: rgba(0,0,0,0.15);
    color: #fff;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
}

main { padding: 2.5rem 1rem 4rem; }

.hero {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    align-items: center;
    padding: 3rem;
    background: linear-gradient(135deg, #e0f1e4, #f8fef8);
    border-radius: 32px;
    box-shadow: 0 30px 80px rgba(17,63,50,0.12);
}

.hero__content,
.hero__visual {
    position: relative;
    z-index: 1;
}

.welcome-banner {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 1.5rem;
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(16,185,129,0.15), rgba(59,130,246,0.15));
    border: 1px solid rgba(16,185,129,0.35);
    box-shadow: 0 20px 50px rgba(5,17,12,0.12);
    margin-bottom: 1.25rem;
}

.welcome-banner[hidden] { display: none !important; }

.welcome-banner__eyebrow {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    color: #063221;
}

.welcome-banner__body {
    margin: 0.2rem 0 0;
    color: #0b3a2a;
    font-size: 0.95rem;
}

.welcome-banner__close {
    background: #fff;
    border: 1px solid rgba(6,50,33,0.15);
    border-radius: 999px;
    width: 32px;
    height: 32px;
    cursor: pointer;
    font-size: 1rem;
    line-height: 1;
    color: #063221;
    flex-shrink: 0;
}

.hero__eyebrow { color: var(--primary); font-weight: 600; letter-spacing: 0.08em; }

.hero h1 { font-size: clamp(2rem, 4vw, 3rem); margin: 0.8rem 0; }

.hero__subtitle { color: var(--muted); margin-bottom: 1.5rem; }

.hero__cta { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero__cta .ghost-btn { border-color: rgba(31,154,95,0.2); }
.hero__cta .ghost-btn--dark { background: #0f1726; color: #fff; border-color: transparent; }

.hero__locale {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    margin-top: 1.2rem;
    padding: 0.9rem 1.2rem;
    border: 1px dashed rgba(31,154,95,0.35);
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 14px 30px rgba(15,23,38,0.08);
}

.hero__locale p {
    margin: 0;
    font-size: 0.95rem;
    color: var(--muted);
}

.hero__locale--active {
    border-color: var(--primary);
}

.hero__country-pill {
    background: var(--primary);
    color: #fff;
}

.hero__stats {
    display: flex;
    gap: 1.5rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.hero__stats article {
    background: var(--accent);
    border-radius: 20px;
    padding: 1rem 1.3rem;
    min-width: 140px;
}

.hero__stats strong {
    font-size: 1.8rem;
    display: block;
}
.stat-label {
    font-size: 0.85rem;
    color: var(--muted);
}

.hero__visual {
    position: relative;
    margin-top: -60px;
}

.hero__image {
    width: 100%;
    border-radius: 28px;
    object-fit: cover;
    height: 420px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.25);
}

.badge {
    position: absolute;
    right: 1.5rem;
    background: #fff;
    padding: 0.6rem 1rem;
    border-radius: 16px;
    box-shadow: 0 12px 24px rgba(0,0,0,0.12);
    font-weight: 600;
}

.badge.halal { top: 1.5rem; }
.badge.scan { bottom: 1.5rem; }

.trusted {
    max-width: 1100px;
    margin: 2.5rem auto;
    text-align: center;
    color: var(--muted);
}

.quick-links {
    max-width: 1200px;
    margin: 2.5rem auto 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.quick-links article {
    background: #fff;
    border-radius: 24px;
    padding: 1.5rem;
    box-shadow: 0 18px 40px rgba(0,0,0,0.06);
}

.quick-links article p { color: var(--muted); margin: 0.4rem 0 0.8rem; }

.quick-links article a {
    margin-top: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 600;
    color: var(--primary);
}

.trusted__logos {
    margin-top: 0.8rem;
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.trusted__logos img {
    height: 96px;
    max-width: 220px;
    opacity: 1;
    filter: grayscale(0);
    object-fit: contain;
}

.app-callout__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    align-items: center;
    padding: 1rem 1.4rem;
    border-radius: 999px;
    background: rgba(3, 32, 20, 0.6);
    border: 1px solid rgba(123, 231, 184, 0.4);
    box-shadow: 0 25px 55px rgba(3, 19, 12, 0.45);
    backdrop-filter: blur(6px);
}

.app-callout__badges a:not(.apk-badge) {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.75rem;
    border-radius: 18px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.25);
    box-shadow: 0 18px 35px rgba(2, 10, 6, 0.45);
}

.apk-badge {
    background: rgba(18, 185, 112, 0.45);
    padding: 0.55rem 1.2rem;
    border-radius: 999px;
    color: #f6fff9;
    font-weight: 600;
    border: 1px solid rgba(255,255,255,0.45);
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    box-shadow: 0 20px 45px rgba(3, 19, 12, 0.45);
}

.filters {
    max-width: 1100px;
    margin: 0 auto;
    background: #fff;
    padding: 2rem;
    border-radius: 28px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.08);
    display: grid;
    gap: 1.5rem;
}

.filters__headline h2 { margin-bottom: 0.4rem; }
.filters__headline p { color: var(--muted); }

.filters__chips { display: flex; flex-wrap: wrap; gap: 0.7rem; }

.filter-btn {
    border: 1px solid var(--border);
    background: #fff;
    border-radius: 999px;
    padding: 0.6rem 1.2rem;
    cursor: pointer;
    font-weight: 600;
    transition: 0.25s;
}

.filter-btn.active,
.filter-btn:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.filters__dropdowns {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.filter-select {
    flex: 1;
    min-width: 200px;
    border-radius: 18px;
    border: 1px solid var(--border);
    padding: 0.8rem 1rem;
    background: var(--accent);
}

.family-gallery {
    max-width: 1200px;
    margin: 2.5rem auto;
    background: #fff;
    border-radius: 32px;
    padding: 2.5rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
    box-shadow: 0 24px 60px rgba(0,0,0,0.08);
}

.family-gallery__text h2 {
    margin: 0.6rem 0 0.8rem;
}

.family-gallery__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
}

.family-gallery__grid img {
    width: 100%;
    border-radius: 24px;
    height: 180px;
    object-fit: cover;
    box-shadow: 0 12px 30px rgba(0,0,0,0.12);
}

.product-grid-section {
    max-width: 1200px;
    margin: 2.5rem auto;
}

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

.product-card {
    background: #fff;
    border-radius: 24px;
    padding: 1rem;
    box-shadow: 0 20px 50px rgba(0,0,0,0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 60px rgba(0,0,0,0.1);
}

.product-card img {
    width: 100%;
    height: 180px;
    object-fit: contain;
    margin-bottom: 1rem;
}

.product-info h3 { font-size: 1rem; margin-bottom: 0.3rem; }
.product-info p { color: var(--muted); font-size: 0.9rem; }

.loading-placeholder {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem 0;
}

.spinner {
    width: 46px;
    height: 46px;
    border: 4px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    margin: 0 auto 1rem;
    animation: spin 1s linear infinite;
}

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

.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.pagination button {
    border: 1px solid var(--border);
    background: #fff;
    border-radius: 12px;
    padding: 0.5rem 0.9rem;
    cursor: pointer;
}

.pagination button.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.live-feed {
    max-width: 1200px;
    margin: 0 auto 3rem;
    background: #fff;
    border-radius: 32px;
    padding: 2rem;
    box-shadow: 0 30px 70px rgba(0,0,0,0.08);
}

.live-feed__header {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

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

.live-feed__item {
    background: var(--bg);
    border-radius: 20px;
    padding: 1rem;
    display: flex;
    gap: 0.9rem;
    align-items: center;
    border: 1px solid var(--border);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.live-feed__item:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 30px rgba(0,0,0,0.08);
}

.live-feed__item img {
    width: 58px;
    height: 58px;
    border-radius: 16px;
    object-fit: cover;
    background: #fff;
}

.live-feed__meta {
    flex: 1;
    min-width: 0;
}

.live-feed__title {
    font-weight: 600;
    margin-bottom: 0.2rem;
}

.live-feed__brand {
    color: var(--muted);
    font-size: 0.9rem;
}

.live-feed__time {
    font-size: 0.8rem;
    color: var(--primary);
    margin-top: 0.3rem;
}

.live-feed__cta {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid var(--border);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--search-bg);
}

.live-feed__placeholder {
    grid-column: 1 / -1;
    text-align: center;
    padding: 2rem;
    color: var(--muted);
}

.insights {
    max-width: 1100px;
    margin: 3rem auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.insights article {
    background: #fff;
    padding: 1.5rem;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.05);
}

.community {
    max-width: 1100px;
    margin: 3rem auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    align-items: center;
    background: #fff;
    border-radius: 32px;
    padding: 2.5rem;
}

.community__media {
    position: relative;
}

.community__media img {
    width: 100%;
    border-radius: 24px;
}

.community__stack {
    position: absolute;
    display: flex;
    gap: 0.6rem;
    bottom: 5rem;
    right: 1.5rem;
}

.community__stack img {
    width: 110px;
    height: 110px;
    object-fit: cover;
    border-radius: 20px;
    border: 4px solid #fff;
    box-shadow: 0 12px 24px rgba(0,0,0,0.18);
}

.community__card {
    position: absolute;
    bottom: 1.5rem;
    left: 1.5rem;
    background: #fff;
    padding: 1rem 1.4rem;
    border-radius: 18px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.12);
}

.app-callout {
    max-width: 1100px;
    margin: 3rem auto;
    position: relative;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2.5rem;
    padding: 3rem;
    border-radius: 36px;
    overflow: hidden;
    color: #f0fff7;
    background: radial-gradient(circle at 14% 20%, rgba(125,255,204,0.25), transparent 55%),
                radial-gradient(circle at 85% 0%, rgba(41,243,129,0.3), transparent 45%),
                linear-gradient(132deg, #041c11, #0d6137 55%, #1bd071);
    border: 1px solid rgba(41, 243, 129, 0.35);
    box-shadow: 0 50px 110px rgba(3, 19, 12, 0.55);
}

.app-callout::before {
    content: '';
    position: absolute;
    inset: 10px;
    border-radius: 30px;
    border: 1px solid rgba(255,255,255,0.08);
    background: radial-gradient(circle at 80% 0%, rgba(255,255,255,0.18), transparent 55%);
    z-index: 0;
    pointer-events: none;
}

.app-callout__content,
.app-callout__preview {
    position: relative;
    z-index: 1;
}

.app-callout__badges img {
    height: 48px;
}

.app-callout__preview img {
    width: 100%;
    max-width: 280px;
    border-radius: 28px;
    display: block;
    margin-left: auto;
    box-shadow: 0 35px 70px rgba(2, 12, 7, 0.45);
}

.app-callout__preview img.full-width {
    max-width: 340px;
}

.legal-section {
    max-width: 1200px;
    margin: 3rem auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.legal-card {
    background: #fff;
    border-radius: 28px;
    padding: 2rem;
    box-shadow: 0 20px 45px rgba(0,0,0,0.08);
}

.legal-card--light {
    background: var(--accent);
}

.legal-mail {
    display: inline-block;
    margin-top: 1rem;
    font-weight: 600;
    color: var(--primary);
}

.form-shell,
.auth-shell,
.legal-page {
    max-width: 1100px;
    margin: 3rem auto;
    display: grid;
    gap: 2rem;
}

.form-card,
.auth-card,
.legal-hero {
    background: #fff;
    border-radius: 28px;
    padding: 2.5rem;
    box-shadow: 0 20px 50px rgba(0,0,0,0.08);
}

.legal-hero--alt {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.legal-highlight {
    font-weight: 600;
    margin: 0;
    line-height: 1.5;
}

.legal-highlight--title {
    font-size: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #1d4ed8;
}

.legal-highlight--alert {
    color: #b91c1c;
}

.legal-highlight--trust {
    color: #047857;
}

.legal-highlight--support {
    color: #0f1726;
}

.legal-highlight--contact {
    color: #0f1726;
}

.legal-highlight--data {
    margin-top: 1.2rem;
    color: #155e75;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.legal-data-block ul {
    margin: 0.4rem 0 0 1rem;
    color: var(--muted);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.2rem;
}

.input-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.stacked {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 500;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
}

.form-lead {
    margin-bottom: 1.5rem;
    color: var(--muted);
    font-size: 1rem;
}

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

.form-status {
    margin-top: 1rem;
    color: var(--muted);
    font-size: 0.9rem;
}

.solid-btn--full {
    width: 100%;
    text-align: center;
}

.input-group { display: flex; flex-direction: column; gap: 0.4rem; }
.input-group label { font-weight: 600; }
.input-group small { color: var(--muted); font-size: 0.85rem; }
.input-group input,
.input-group textarea,
.input-group select {
    border-radius: 16px;
    border: 1px solid var(--border);
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
}

.input-group textarea {
    min-height: 120px;
    resize: vertical;
}

.form-card footer,
.auth-card footer {
    margin-top: 1.5rem;
    color: var(--muted);
    font-size: 0.9rem;
}

.form-card button,
.auth-card button {
    width: 100%;
    border: none;
    border-radius: 20px;
    padding: 0.9rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
}

.form-card button[type="submit"],
.auth-card button[type="submit"] {
    background: linear-gradient(120deg, var(--primary), #23c074);
    color: #fff;
}

.form-feedback {
    margin-top: 1rem;
    padding: 0.9rem 1.1rem;
    border-radius: 16px;
    display: none;
}

.form-feedback.success {
    display: block;
    background: #ecfdf3;
    color: #0f5132;
    border: 1px solid #a4d4b4;
}

.form-feedback.error {
    display: block;
    background: #fef3f2;
    color: #981b1c;
    border: 1px solid #f2b0af;
}

.auth-shell {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    align-items: stretch;
}

.auth-side {
    background: linear-gradient(135deg, #0f5132, #1f9a5f);
    border-radius: 28px;
    color: #fff;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    box-shadow: 0 30px 60px rgba(15,81,50,0.35);
}

.auth-side a {
    color: #fff;
    font-weight: 600;
}

.auth-side ul {
    list-style: none;
    padding-left: 0;
}

.auth-side li {
    margin-bottom: 0.4rem;
}

.legal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.2rem;
}

.status-pill {
    font-size: 0.85rem;
    background: var(--accent);
    border-radius: 999px;
    padding: 0.3rem 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.legal-card ul {
    padding-left: 1.2rem;
    color: var(--muted);
}

.site-footer {
    background: #0f1726;
    color: #dbe5ff;
    padding: 3rem 1rem;
}

.site-footer__grid {
    max-width: 1100px;
    margin: 0 auto 1.5rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
}

.site-footer__grid h4 { margin-bottom: 0.5rem; }
.site-footer__grid ul { list-style: none; }
.site-footer__grid li { margin: 0.3rem 0; }

.social { display: flex; flex-direction: column; gap: 0.4rem; }

.site-footer__copy { text-align: center; color: #9fb0d5; }

.user-greeting {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    background: rgba(15, 23, 38, 0.08);
    font-size: 0.95rem;
    font-weight: 600;
    color: #0f1726;
}

.user-greeting[hidden] {
    display: none !important;
}

.user-greeting__eyebrow {
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 0.04em;
    color: var(--muted);
}

.user-greeting__name {
    font-size: 1rem;
}

.account-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.45rem 0.95rem;
    border-radius: 18px;
    border: 1px solid rgba(15,31,24,0.12);
    background: rgba(255,255,255,0.9);
    box-shadow: 0 15px 30px rgba(8,25,18,0.08);
    min-width: 180px;
}

.account-chip[hidden] {
    display: none !important;
}

.account-chip__avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.account-chip__label {
    margin: 0;
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    color: var(--muted);
}

.account-chip__name {
    font-size: 1rem;
    margin: 0;
}

.hero__account {
    margin-top: 1.5rem;
    padding: 1.2rem 1.4rem;
    border-radius: 24px;
    border: 1px solid var(--border);
    background: rgba(15, 23, 38, 0.04);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.hero__account-status {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 600;
}

.hero__account-hint {
    margin: 0.15rem 0 0;
    color: var(--muted);
    font-size: 0.95rem;
}

.hero__account-actions {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.hero__account-actions .is-disabled,
.hero__account-actions a[aria-disabled="true"] {
    pointer-events: none;
    opacity: 0.55;
}

.halal-directory {
    max-width: 1100px;
    margin: 0 auto;
    padding: 3rem 1rem 4rem;
}

.halal-directory__head {
    text-align: left;
    margin-bottom: 1.8rem;
}

.halal-directory__head h1 {
    margin: 0.4rem 0;
    font-size: clamp(1.9rem, 3vw, 2.5rem);
}

.halal-directory__panel {
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 1.5rem;
    background: var(--card, #fff);
    box-shadow: 0 12px 30px rgba(15, 23, 38, 0.08);
}

.halal-directory__meta {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.halal-directory__meta-label {
    margin: 0;
    font-size: 0.9rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.halal-directory__meta strong {
    font-size: 1.8rem;
}

.halal-directory__controls {
    display: flex;
    align-items: flex-end;
    gap: 1rem;
    flex-wrap: wrap;
    margin: 1.5rem 0 1rem;
}

.input-chip {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    font-size: 0.9rem;
    color: var(--muted);
}

.input-chip input,
.input-chip select {
    border-radius: 16px;
    border: 1px solid var(--border);
    padding: 0.5rem 0.9rem;
    min-width: 220px;
}

.halal-directory__status {
    font-size: 0.95rem;
    margin: 0;
    color: var(--muted);
}

.halal-directory__status[data-tone="success"] {
    color: #1f9a5f;
}

.halal-directory__status[data-tone="warning"] {
    color: #b45309;
}

.halal-directory__status[data-tone="error"] {
    color: #b91c1c;
}

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

.halal-user-card {
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 1.1rem;
    background: #fff;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-height: 180px;
}

.halal-user-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.halal-user-card__name {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 600;
}

.halal-user-card__id {
    color: var(--muted);
}

.halal-user-card__stamp {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.halal-user-card__index {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--primary, #1f9a5f);
}

.halal-user-card__chip {
    font-size: 0.75rem;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    border: 1px solid rgba(31, 154, 95, 0.3);
    color: #1f9a5f;
    background: rgba(31, 154, 95, 0.08);
}

.halal-user-card__meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.8rem;
}

.halal-user-card__label {
    margin: 0;
    font-size: 0.8rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.halal-user-card__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.halal-user-card__badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.55rem;
    border-radius: 8px;
    background: rgba(15, 23, 38, 0.06);
    color: #0f1726;
}

.halal-user-card__note {
    margin: 0;
    font-size: 0.9rem;
    color: #334155;
}

.empty-state {
    padding: 2rem;
    border-radius: 20px;
    background: rgba(15, 23, 38, 0.05);
    text-align: center;
    color: var(--muted);
}

@media (max-width: 720px) {
    .halal-directory__panel {
        padding: 1.1rem;
    }

    .input-chip input,
    .input-chip select {
        min-width: 100%;
    }
}

.advanced-filters {
    margin-top: 1.5rem;
    border: 1px solid var(--border);
    border-radius: 24px;
    background: var(--card);
    box-shadow: 0 18px 40px rgba(15, 23, 38, 0.08);
}

.advanced-filters__toggle {
    width: 100%;
    border: none;
    background: transparent;
    padding: 1rem 1.4rem;
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
}

.advanced-filters__indicator {
    font-size: 0.85rem;
    border-radius: 999px;
    padding: 0.2rem 0.8rem;
    background: rgba(31, 154, 95, 0.12);
    color: var(--primary);
}

.advanced-filters__panel {
    border-top: 1px solid var(--border);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
}

.advanced-filters__group {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.advanced-filters__group-head p {
    margin: 0;
    font-weight: 600;
}

.advanced-filters__group-head small {
    color: var(--muted);
}

.chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.chip {
    border-radius: 999px;
    border: 1px solid var(--border);
    padding: 0.35rem 0.95rem;
    background: #fff;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.chip.is-active {
    background: var(--primary);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 12px 20px rgba(31, 154, 95, 0.2);
}

.advanced-filters__group--columns {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}

.switch {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-weight: 600;
}

.switch input {
    width: 1.1rem;
    height: 1.1rem;
    accent-color: var(--primary);
}

.advanced-filters__footer {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.ghost-btn--subtle {
    border: 1px dashed var(--border);
    color: var(--muted);
}

.api-live {
    max-width: 1200px;
    margin: 3rem auto;
    padding: 2rem;
    border-radius: 32px;
    border: 1px solid var(--border);
    background: var(--card);
    box-shadow: 0 30px 70px rgba(15, 23, 38, 0.1);
}

.api-live__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

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

.api-live__card {
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 1.2rem;
    background: var(--bg);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.api-live__card.is-ok {
    border-color: rgba(34, 197, 94, 0.5);
    box-shadow: 0 12px 25px rgba(34, 197, 94, 0.15);
}

.api-live__card.is-error {
    border-color: rgba(239, 68, 68, 0.4);
    box-shadow: 0 12px 25px rgba(239, 68, 68, 0.15);
}

.api-live__card.is-pending {
    border-style: dashed;
}

.api-live__badge {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--muted);
}

.api-live__latency {
    display: block;
    font-size: 2rem;
    margin-top: 0.5rem;
    color: #0f1726;
}

.api-live__hint {
    margin: 0.2rem 0 0;
    color: var(--muted);
    font-size: 0.9rem;
}

@media (max-width: 720px) {
    .hero__account {
        flex-direction: column;
        align-items: flex-start;
    }
    .advanced-filters__group--columns {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.6rem;
    }
    .api-live {
        padding: 1.5rem;
    }
}

@media (max-width: 900px) {
    .site-header__inner { grid-template-columns: 1fr; }
    .brand--hero { justify-content: center; text-align: center; }
    .header-controls { gap: 1.1rem; }
    .header-cta-row { justify-content: center; }
    .primary-nav { justify-content: center; }
    .hero__visual { margin-top: 0; }
    .header-link {
        width: 100%;
        justify-content: center;
        border-bottom-color: transparent;
    }
    .mega-search {
        flex-direction: column;
        align-items: stretch;
    }
    .mega-search__actions {
        width: 100%;
        flex-direction: column;
    }
    .mega-search__actions button {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 600px) {
    .hero { padding: 2rem; }
    .filter-select { min-width: 100%; }
    .family-gallery { grid-template-columns: 1fr; }
    .community__stack {
        position: static;
        margin-top: 1rem;
        justify-content: center;
    }
}

[dir="rtl"] body {
    text-align: right;
}

[dir="rtl"] .site-header__inner,
[dir="rtl"] .hero,
[dir="rtl"] .community,
[dir="rtl"] .app-callout,
[dir="rtl"] .legal-section,
[dir="rtl"] .quick-links,
[dir="rtl"] .filters,
[dir="rtl"] .family-gallery,
[dir="rtl"] .insights {
    direction: rtl;
}

[dir="rtl"] .primary-nav,
[dir="rtl"] .hero__cta,
[dir="rtl"] .community__actions {
    justify-content: flex-start;
}
