@import url('https://fonts.googleapis.com/css2?family=Overpass:wght@300..900&display=swap');
:root,
[data-theme="dark"] {
    --bg: #090d16;
    --panel: #141b2a;
    --surface-1: #101724;
    --surface-2: #0e1420;
    --surface-3: #1a2437;
    --line: rgba(202, 227, 255, .16);
    --text: #eaf2ff;
    --muted: #a9b6cb;
    --hero-overlay: linear-gradient(180deg, rgba(7, 10, 18, .22), rgba(7, 10, 18, .74));
    --shell-bg: radial-gradient(circle at 12% -12%, #243550 0%, #121b2b 36%, var(--bg) 100%);
    --accent-1: #00b7ff;
    --accent-2: #28ffb3;
    --mild: #4da6ff;
    --medium: #ffd633;
    --strong: #ff4d4d;
    --glow-blue: 0 0 10px rgba(77, 166, 255, .8), 0 0 20px rgba(77, 166, 255, .35);
    --glow-yellow: 0 0 10px rgba(255, 214, 51, .85), 0 0 20px rgba(255, 214, 51, .35);
    --glow-red: 0 0 10px rgba(255, 77, 77, .85), 0 0 20px rgba(255, 77, 77, .35);
    --primary-grad: linear-gradient(120deg, var(--accent-1), var(--accent-2));
}

[data-theme="light"] {
    --bg: #f2f6fb;
    --panel: #ffffff;
    --surface-1: #ffffff;
    --surface-2: #f7faff;
    --surface-3: #ebf2fc;
    --line: rgba(22, 52, 92, .12);
    --text: #10203a;
    --muted: #516179;
    --hero-overlay: linear-gradient(180deg, rgba(255, 255, 255, .08), rgba(245, 249, 255, .64));
    --shell-bg: radial-gradient(circle at 12% -12%, #dbe9fb 0%, #f5f9ff 38%, var(--bg) 100%);
    --accent-1: #0069c9;
    --accent-2: #00a36f;
    --primary-grad: linear-gradient(120deg, var(--accent-1), var(--accent-2));
}

* {
    box-sizing: border-box
}

body,
.nox-root {
    margin: 0;
    font-family: "Overpass", sans-serif;
    font-optical-sizing: auto;
    background: var(--shell-bg);
    color: var(--text)
}

body,
button,
input,
select,
textarea {
    font-family: "Overpass", sans-serif;
}

header {
    position: sticky;
    top: 0;
    z-index: 60;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: .5rem 1rem;
    background: color-mix(in srgb, var(--surface-1) 78%, transparent);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--line)
}

.hero {
    position: relative;
    width: 100%;
    min-height: 320px;
    overflow: hidden;
    display: grid;
    place-items: center;
    border-bottom: 1px solid var(--line)
}

.hero video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: contrast(1.05) saturate(1.05) brightness(.9);
    pointer-events: none
}

.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(1200px 400px at 50% -20%, rgba(0, 160, 255, .14), transparent 60%), var(--hero-overlay);
    pointer-events: none
}

.theme-toggle {
    position: absolute;
    right: clamp(10px, 3vw, 24px);
    top: clamp(10px, 3vw, 18px);
    z-index: 3;
    border: 1px solid var(--line);
    background: color-mix(in srgb, var(--surface-1) 82%, transparent);
    color: var(--text);
    border-radius: 999px;
    padding: .5rem .9rem;
    font-weight: 700;
    font-size: .86rem;
    letter-spacing: .2px;
    backdrop-filter: blur(6px);
    box-shadow: 0 10px 26px rgba(7, 11, 20, .22);
}

.theme-toggle:hover {
    border-color: color-mix(in srgb, var(--accent-1) 45%, var(--line));
    transform: translateY(-1px);
}

.theme-toggle:active {
    transform: translateY(1px);
}

.logo-wrap {
    position: relative;
    z-index: 2;
    display: grid;
    place-items: center;
    gap: .4rem;
    text-align: center;
    padding: 24px;
    cursor: pointer
}

.logo-circle {
    width: 120px;
    height: 120px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: var(--primary-grad);
    color: #081018;
    font-weight: 900;
    font-size: 2.1rem;
    box-shadow: 0 0 30px rgba(0, 255, 224, .45), 0 8px 40px rgba(0, 0, 0, .55)
}

.card .title {
    font-size: 1.4rem;
    letter-spacing: .3px;
    background: var(--primary-grad);
    -webkit-background-clip: text;
    background-clip: text;
    text-shadow: 0 0 22px rgba(0, 255, 224, .25);
    color: #fff !important;
    float: left;
}

.hero .subtitle {
    opacity: .9;
    font-size: .95rem
}

.main-chooser {
    max-width: 1200px;
    margin: 18px auto 6px;
    padding: 0 16px
}

.main-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    align-items: stretch
}

.main-card {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    min-height: 220px;
    display: flex;
    align-items: flex-end;
    box-shadow: 0 15px 34px rgba(0, 0, 0, .45);
    cursor: pointer;
    transition: transform .25s, box-shadow .25s
}

.main-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(0, 255, 224, .18)
}

.main-card .bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: saturate(1.08) contrast(1.02)
}

.main-card.dark .bg {
    background-image: url('https://images.unsplash.com/photo-1541643600914-78b084683601?q=80&w=1600&auto=format&fit=crop')
}

.main-card.light .bg {
    background-image: url('https://images.unsplash.com/photo-1519681393784-d120267933ba?q=80&w=1600&auto=format&fit=crop')
}

.main-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(4, 7, 15, .05) 0%, rgba(4, 7, 15, .55) 55%, rgba(4, 7, 15, .85) 100%), radial-gradient(600px 160px at 50% 0%, rgba(0, 255, 224, .18), transparent 70%)
}

.main-card .content {
    position: relative;
    padding: 16px 16px 18px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px
}

.main-card .name {
    font-weight: 800;
    font-size: 1.25rem
}

.main-card .cta {
    border: 0;
    border-radius: 999px;
    padding: .55rem .9rem;
    font-weight: 700;
    color: #081018;
    background: var(--primary-grad);
    box-shadow: 0 0 16px rgba(0, 255, 224, .42)
}

.category-bar {
    position: sticky;
    top: 54px;
    z-index: 55;
    display: none;
    align-items: center;
    justify-content: center;
    gap: .8rem;
    padding: .5rem .75rem;
    background: rgba(10, 14, 24, .7);
    backdrop-filter: blur(6px);
    border-bottom: 1px solid var(--line)
}

.category-bar.show {
    display: flex
}

.crumb {
    font-size: .92rem;
    color: #cfe3ff
}

.back-btn {
    border: 1px solid var(--line);
    background: #141a2b;
    color: #e9ecff;
    border-radius: 999px;
    padding: .45rem .8rem;
    cursor: pointer
}

.back-btn:hover {
    background: #0f1423
}

.brand-bar {
    max-width: 1200px;
    margin: 10px auto 6px;
    padding: 0 16px;
    display: none
}

.brand-bar.show {
    display: block
}

.brand-pills {
    display: flex;
    gap: .5rem;
    flex-wrap: wrap
}

.brand-pill {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .45rem .7rem;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: #141a2b;
    color: #e9ecff;
    cursor: pointer;
    transition: .2s
}

.brand-pill .count {
    opacity: .8;
    font-size: .8rem
}

.brand-pill.active {
    background: #0fe;
    color: #061018;
    border-color: transparent;
    box-shadow: 0 0 16px rgba(0, 255, 238, .45)
}

.applied {
    display: none;
    align-items: center;
    gap: .5rem;
    flex-wrap: wrap;
    margin: 10px auto 16px;
    max-width: 1200px;
    padding: 0 16px
}

.applied.show {
    display: flex
}

.applied .label {
    color: #9fb1ff;
    font-size: .85rem
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .35rem .65rem;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: #1b2336;
    font-size: .8rem
}

.chip .x {
    cursor: pointer;
    opacity: .9
}

.clear {
    margin-left: .25rem;
    background: transparent;
    border: 1px solid var(--line);
    color: #cfd4ff;
    border-radius: 10px;
    padding: .35rem .6rem;
    cursor: pointer
}

.clear:hover {
    background: #0f1423
}

.wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px 22px
}

.cards {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    margin-top: 8px
}

.card {
    background: linear-gradient(180deg, rgba(27, 27, 46, .9), rgba(17, 17, 32, .9));
    border-radius: 18px;
    padding: 1.25rem;
    position: relative;
    box-shadow: 0 10px 28px rgba(0, 0, 0, .45);
    transition: transform .25s ease, box-shadow .25s ease
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 30px rgba(0, 255, 224, .16), 0 0 40px rgba(122, 0, 255, .14)
}

.title {
    font-weight: 700;
    margin: .25rem 0 .35rem
}

.brandline {
    color: #aab0d6;
    font-size: .92rem;
    margin-bottom: .6rem
}

.desc {
    color: #cfd3ff;
    opacity: .8;
    font-size: .92rem;
    margin-bottom: .9rem
}

.strength {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    margin: .6rem 0 .25rem
}

.strength .label {
    font-size: .8rem;
    color: #c4c8ef;
    opacity: .85
}

.strength-bar {
    flex: 1;
    display: flex;
    gap: 6px
}

.sb-seg {
    flex: 1;
    height: 8px;
    border-radius: 4px;
    background: #31324a;
    box-shadow: inset 0 0 4px rgba(0, 0, 0, .8)
}

.strength-bar.mild .sb-seg.active {
    background: var(--mild);
    box-shadow: var(--glow-blue)
}

.strength-bar.medium .sb-seg.active {
    background: var(--medium);
    box-shadow: var(--glow-yellow)
}

.strength-bar.strong .sb-seg.active {
    background: var(--strong);
    box-shadow: var(--glow-red)
}

/* .badge {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: .72rem;
    font-weight: 700;
    padding: .25rem .55rem;
    border-radius: 9px;
    display: flex;
    align-items: center;
    gap: .3rem;
    background: #2F3047;
    color: #fff;
} */

.badge {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: .72rem;
    font-weight: 700;
    padding: .25rem .55rem;
    border-radius: 9px;
    display: flex;
    align-items: center;
    gap: .3rem;
}

.badge i {
    font-size: 2.1em;
}

/* Hot (🔥 red) */
.badge.hot {
    color: #ff4d4d;
}

/* Freeze (❄️ icy blue) */
.badge.cold {
    color: #00cfff;
}

/* Featured (⭐ gold) */
.badge.featured {
    color: #ffd633;
}

/* Most Ordered (👑 royal purple) */
.badge.most_ordered {
    color: #9b59b6;
}

/* .badge.hot {
    background: #2F3047;
    color: #fff;
}

.badge.cold {
    background: #2F3047;
    color: #fff;
}

.badge.sweet {
    background: #2F3047;
    color: #000;
}

.badge.floral {
    background: #2F3047;
    color: #000;
} */

.tags {
    margin: .9rem 0 .6rem
}

.tag {
    display: inline-block;
    margin: .2rem;
    padding: .3rem .7rem;
    border-radius: 12px;
    font-size: .75rem;
    background: #222;
    color: #eee;
    transition: .25s
}

.tag:hover {
    background: #fff;
    box-shadow: 0 0 12px rgba(0, 255, 224, .7);
    color: #111;
}

.actions {
    margin-top: .8rem
}

.btn {
    width: 100%;
    border: 0;
    border-radius: 10px;
    padding: .7rem .9rem;
    font-weight: 700;
    color: #0b101d;
    background: var(--primary-grad);
    cursor: pointer;
    box-shadow: 0 0 18px rgba(0, 255, 224, .45);
    transition: .25s
}

.btn i {
    font-size: 1.3em;
}

.btn:hover {
    transform: scale(1.03);
    box-shadow: 0 0 25px rgba(0, 255, 224, .8)
}

.fab {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 70;
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    padding: .7rem 1rem;
    border-radius: 999px;
    border: 0;
    background: #fff;
    color: #17182A;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 10px 26px rgba(0, 0, 0, .4), 0 0 18px rgba(0, 255, 224, .45)
}

.fab i {
    font-size: 1.7em;
}

.fab .badge-count {
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 999px;
    display: inline-grid;
    place-items: center;
    font-size: .75rem;
    font-weight: 800;
    color: #fff;
    background: #ff4d4d;
    box-shadow: 0 0 12px rgba(255, 77, 77, .7)
}

.fab .badge-count[hidden] {
    display: none
}

.overlay {
    position: fixed;
    inset: 0;
    background: rgba(6, 8, 16, .55);
    backdrop-filter: blur(3px);
    display: none;
    /* hidden by default */
    align-items: center;
    /* vertical center */
    justify-content: center;
    /* horizontal center */
    z-index: 80;
}

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

/* kill Bootstrap's positioning on your custom modal */
.overlay .modal {
    position: static !important;
    /* or relative */
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    margin: auto;
    /* keep your centering fallback */
}

/* make sure the overlay is above Bootstrap backdrops */
.overlay {
    z-index: 1200;
}

/* rename to .nox-modal */
.nox-modal {
    margin: auto;
    width: min(94vw, 600px);
    background: linear-gradient(180deg, #111627, #0b0f1d);
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .6);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: translateY(-20px);
    /* opacity: 0; */
    transition: opacity .25s ease, transform .25s ease;
    max-height: 84vh;
    /* usability */
}

.overlay.show .nox-modal {
    transform: translateY(0);
    opacity: 1;
}

.overlay {
    z-index: 1200;
}

/* > Bootstrap's 1050/1055 */

.modal {
    margin: auto;
    width: min(94vw, 600px);
    max-height: 84vh;
    background: linear-gradient(180deg, #111627, #0b0f1d);
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .6);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: translateY(-20px);
    /* opacity: 0; */
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.overlay.show .modal {
    transform: translateY(0);
    opacity: 1;
}

.modal .body {
    overflow-y: auto;
    /* scroll inner content if needed */
    flex: 1;
    /* expand to fill available space */
}

.top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    border-bottom: 1px solid var(--line)
}

.title {
    font-weight: 700
}

.x {
    background: #151b2d;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: .35rem .55rem;
    color: #cdd4ff;
    cursor: pointer
}

.tabs {
    display: flex;
    gap: .5rem;
    padding: 10px 12px;
    flex-wrap: wrap
}

.tab {
    padding: .45rem .9rem;
    border-radius: 999px;
    background: #171d30;
    color: #cfd4ff;
    border: 1px solid var(--line);
    cursor: pointer
}

.tab.active {
    background: #0f1423
}

.body {
    padding: 0 12px 12px;
    display: flex;
    flex-direction: column;
    gap: .7rem
}

.search {
    display: flex;
    align-items: center;
    gap: .55rem;
    padding: .6rem .8rem;
    border-radius: 12px;
    background: #0e1322;
    color: #cfd4ff;
    border: 1px solid var(--line)
}

.search input {
    all: unset;
    flex: 1
}

.list {
    overflow: auto;
    padding-right: .5rem;
    height: 52vh
}

.group {
    margin: 1rem 0 .25rem;
    color: #8fa2ff;
    font-weight: 700;
    font-size: .85rem
}

.chip-sel {
    display: inline-block;
    margin: .25rem .35rem .25rem 0;
    padding: .38rem .78rem;
    border-radius: 999px;
    border: 1px solid #3a4566;
    background: #1b2336;
    color: #e9ecff;
    cursor: pointer;
    transition: .2s
}

.chip-sel.active {
    background: #0fe;
    color: #061018;
    border-color: transparent;
    box-shadow: 0 0 16px rgba(0, 255, 238, .5)
}

.foot {
    padding: 10px 12px;
    background: #0e1322;
    border-top: 1px solid var(--line);
    display: flex;
    gap: .5rem;
    justify-content: flex-end;
    flex-wrap: wrap
}

.btn-sec {
    background: transparent;
    border: 1px solid var(--line);
    color: #cfd4ff;
    border-radius: 12px;
    padding: .45rem .9rem;
    cursor: pointer
}

.btn-sec i {
 font-size: 1.5em;
}

.btn-pri {
    padding: .55rem 1rem;
    border-radius: 12px;
    border: 0;
    font-weight: 700;
    color: #091016;
    background: #e9ecff;
    cursor: pointer
}

.btn-pri i {
    font-size: 1.5em;
}


/* NEW CARDS */

/* --- 3-up tiles --- */
.hookah-chooser {
    width: min(100%, 1240px);
    margin: 0 auto;
    padding: 18px 24px 28px;
    background: transparent;
}

.nox-category-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.nox-category-card {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 46%;
    min-height: 280px;
    padding: 28px;
    overflow: hidden;
    border: 1px solid color-mix(in srgb, var(--category-accent), transparent 62%);
    border-radius: 8px;
    background:
        linear-gradient(135deg, color-mix(in srgb, var(--category-accent), transparent 88%), transparent 58%),
        var(--surface-1);
    color: var(--text);
    text-align: left;
    cursor: pointer;
    isolation: isolate;
    transition: transform .2s ease, border-color .2s ease, background-color .2s ease;
}

.nox-category-card::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 3px;
    background: var(--category-accent);
    opacity: .85;
}

.nox-category-card:hover,
.nox-category-card:focus-visible {
    transform: translateY(-3px);
    border-color: var(--category-accent);
    outline: none;
}

.nox-category-copy {
    position: relative;
    z-index: 2;
    display: flex;
    min-width: 0;
    flex-direction: column;
    align-items: flex-start;
}

.nox-category-index {
    margin-bottom: auto;
    color: var(--category-accent);
    font-size: .72rem;
    font-weight: 800;
}

.nox-category-copy strong {
    max-width: 10ch;
    font-size: clamp(1.25rem, 2vw, 1.8rem);
    line-height: 1.08;
}

.nox-category-action {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 16px;
    color: var(--muted);
    font-size: .78rem;
    font-weight: 700;
}

.nox-category-action i {
    color: var(--category-accent);
    font-size: 1.25rem;
}

.nox-category-image {
    position: absolute;
    z-index: 1;
    right: -6%;
    bottom: -8%;
    width: 58%;
    height: 94%;
    object-fit: contain;
    object-position: right bottom;
    filter: drop-shadow(0 18px 20px rgba(0, 0, 0, .45));
    transition: transform .25s ease;
}

.nox-category-card:hover .nox-category-image {
    transform: translateX(-4px) scale(1.025);
}

@media (max-width: 768px) {
    .hookah-chooser {
        padding: 12px 12px 104px;
    }

    .nox-category-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .nox-category-card {
        min-height: 148px;
        padding: 18px 20px;
    }

    .nox-category-image {
        right: 1%;
        bottom: -18%;
        width: 46%;
        height: 125%;
    }

    .nox-category-copy strong {
        font-size: 1.2rem;
    }
}

/* Catalogue hierarchy */
.nox-root > .container-fluid,
.presets-suggest.container-fluid,
.brand-bar .container-fluid,
.applied .container-fluid,
.category-bar .container-fluid {
    width: min(100%, 1240px);
    margin-inline: auto;
}

.nox-h3 {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 34px;
}

.nox-h3::after {
    content: "";
    height: 1px;
    flex: 1;
    background: var(--line);
}

.nox-h3 h3 {
    font-size: clamp(1.15rem, 2vw, 1.55rem);
    line-height: 1.2;
    letter-spacing: 0;
    text-align: left;
    text-transform: none;
    animation: none;
    transform: none;
}

.cards {
    align-items: stretch;
    gap: 14px;
}

.product-card,
.card.preset {
    display: flex;
    min-width: 0;
    flex-direction: column;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.product-card .title,
.card.preset .title {
    display: flex;
    min-width: 0;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    padding-right: 30px;
    font-size: 1.08rem;
    line-height: 1.3;
}

.product-card .title-text,
.card.preset .title-text,
.product-card .price,
.card.preset .price {
    float: none;
    padding: 0;
}

.product-card .title-text,
.card.preset .title-text {
    min-width: 0;
    overflow-wrap: anywhere;
}

.product-card .brandline,
.card.preset .brandline {
    margin: 2px 0 12px;
    color: var(--muted);
    font-size: .78rem;
    font-weight: 800;
    text-transform: uppercase;
}

.product-card .desc,
.card.preset .desc {
    margin-bottom: 16px;
    color: var(--muted);
    line-height: 1.55;
}

.product-card .tags,
.card.preset .tags {
    display: flex;
    gap: 6px;
    margin: 14px 0 0;
    padding-bottom: 4px;
}

.product-card .tag,
.card.preset .tag {
    margin: 0;
    padding: 5px 9px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--surface-2);
    color: var(--muted);
}

.product-card .actions,
.card.preset .actions {
    margin-top: auto;
    padding-top: 18px;
}

.product-card .btn,
.card.preset .btn {
    min-height: 44px;
    border-radius: 6px;
    box-shadow: none;
}

.product-card:hover,
.card.preset:hover {
    transform: translateY(-2px);
}

.chip-remove {
    display: inline-grid;
    width: 26px;
    height: 26px;
    margin: -4px -5px -4px 0;
    place-items: center;
    border: 0;
    border-radius: 5px;
    background: transparent;
    color: currentColor;
    font-size: 1rem;
    line-height: 1;
    cursor: pointer;
}

.chip-remove:hover,
.chip-remove:focus-visible {
    outline: none;
    background: color-mix(in srgb, var(--accent-1) 18%, transparent);
}

[data-theme="light"] .nox-category-card {
    background:
        linear-gradient(135deg, color-mix(in srgb, var(--category-accent), transparent 90%), transparent 58%),
        #fff;
    box-shadow: var(--elev-1);
}

[data-theme="light"] .nox-category-image {
    filter: drop-shadow(0 14px 18px rgba(18, 43, 79, .2));
}

@media (max-width: 640px) {
    .nox-root {
        padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px));
    }

    .nox-h3 {
        margin-top: 24px;
    }

    .product-card,
    .card.preset {
        padding: 16px;
    }
}

/* The tile itself uses a CSS background image */
.hookah-tile {
    position: relative;
    width: 100%;
    aspect-ratio: 1/1;
    /* nice square tiles; change if you prefer */
    background-color: transparent;
    /* keep transparent background */
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    /* keep full image without cropping */
    border: none;
    border-radius: 16px;
    overflow: hidden;
    outline: none;
    transition: transform .3s ease, filter .3s ease;
    cursor: pointer;
}

/* subtle zoom + shadow on hover/focus */
.hookah-tile:hover,
.hookah-tile:focus-visible {
    transform: scale(1.03);
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, .35));
}

/* Overlay label */
.hookah-tile .overlay {
    position: absolute;
    left: 50%;
    bottom: 14px;
    transform: translateX(-50%);
    padding: 6px 14px;
    border-radius: 10px;
    background: rgba(0, 0, 0, .8);
    color: #fff;
    font-weight: 600;
    letter-spacing: .2px;
    opacity: 0;
    transition: opacity .25s ease;
    pointer-events: none;
}

.hookah-tile:hover .overlay,
.hookah-tile:focus-visible .overlay {
    opacity: 1;
}

/* --- Set your images here (same image for all three or different per tile) --- */
/* Example paths; change to your actual asset paths */
.hookah-1 {
    background-image: url("/assets/hookah-menu/img/yellow-tabacco.png");
}

.hookah-2 {
    background-image: url("/assets/hookah-menu/img/red-tabacco.png");
}

.hookah-3 {
    background-image: url("/assets/hookah-menu/img/dark-tabacco.png");
}

/* Base: 1-up on very small screens */

/* ≥ 480px: 2-up */
@media (min-width: 480px) {
    .cards {
        grid-template-columns: repeat(1, 1fr);
    }
}

/* ≥ 768px: 3-up */
@media (min-width: 768px) {
    .cards {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ≥ 1200px: 4-up (optional) */
@media (min-width: 1200px) {
    .cards {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Make cards comfy on small screens */
.card {
    padding: 1rem;
}

/* Tighten typography on tiny screens; scale up smoothly */
.title {
    font-size: clamp(1rem, 2vw + .6rem, 1.15rem);
}

.desc {
    font-size: clamp(.9rem, 1.2vw + .6rem, .95rem);
}

/* Prevent tag wrap from exploding layout */
.tag {
    white-space: nowrap;
}

.tags {
    overflow-x: auto;
    padding-bottom: .25rem;
}

/* Disable hover lift on touch devices (prevents jumpiness) */
@media (hover: none) {
    .card:hover {
        transform: none;
        box-shadow: 0 10px 28px rgba(0, 0, 0, .45);
    }
}

/* Respect reduced motion settings */
@media (prefers-reduced-motion: reduce) {
    .card {
        transition: none;
    }
}

/* LANGUAGES */

.lang-select-wrap {
    position: relative;
    display: inline-block;
}

/* Base style */
.lang-select {
    appearance: none;
    /* remove native arrow */
    background: #141a2b;
    /* dark panel */
    color: var(--text);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 6px 34px 6px 12px;
    /* space for custom arrow */
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    line-height: 1.2;
    transition: border-color 0.2s, box-shadow 0.2s;
}

/* Add a custom arrow */
.lang-select-wrap::after {
    content: "▾";
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: var(--muted);
    font-size: 0.8rem;
}

/* Hover + focus states */
.lang-select:hover {
    border-color: var(--mild);
    box-shadow: var(--glow-blue);
}

.lang-select:focus {
    outline: none;
    border-color: var(--medium);
    box-shadow: var(--glow-yellow);
}

/* Options */
.lang-select option {
    background: #0f1423;
    color: var(--text);
    padding: 6px 8px;
}

/* If you want different images, just point each class to a different file */

/* ================================
   RESPONSIVE (desktop preserved)
   Replace everything from here down
   ================================ */

/* ---- Responsive grids (do NOT change desktop base) ----
   Your base already is:
   .cards { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
   .main-grid { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
   We only override on smaller screens.
*/

/* Phones ≤ 479px */
@media (max-width: 479px) {
    .cards {
        grid-template-columns: 1fr;
    }

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

/* Small tablets 480–767px */
@media (min-width: 480px) and (max-width: 767px) {
    .cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .main-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Tablets / small laptops 768–1199px */
@media (min-width: 768px) and (max-width: 1199px) {
    .cards {
        grid-template-columns: repeat(3, 1fr);
    }

    /* .main-grid keeps auto-fit at this size (looks good) */
}

/* Desktops ≥ 1200px (optional – keep your auto-fit OR force 4-up) */
@media (min-width: 1200px) {
    /* Uncomment if you want a strict 4-up:
     .cards { grid-template-columns: repeat(4, 1fr); }
  */
}

/* ================================
   MOBILE OVERRIDES — phones/tablets only
   (Everything here is scoped to max-width so desktop stays unchanged)
   ================================ */
@media (max-width: 640px) {

    /* Tight paddings / tap targets */
    :root {
        --container-pad: 14px;
    }

    body,
    .nox-root {
        padding: 0;
    }

    /* Header */
    header {
        padding: .5rem var(--container-pad);
        backdrop-filter: blur(10px);
    }

    /* Hero */
    .hero {
        min-height: 200px;
    }

    .hero video {
        filter: contrast(1.02) saturate(1.03) brightness(.92);
    }

    .logo-wrap {
        padding: 16px;
    }

    .logo-circle {
        width: 88px;
        height: 88px;
        font-size: 1.6rem;
    }

    .hero .subtitle {
        font-size: .9rem;
        line-height: 1.3;
        padding: 0 8px;
    }

    /* Category bar: horizontal scroll */
    .category-bar {
        gap: .5rem;
        padding: .5rem var(--container-pad);
        overflow-x: auto;
        scrollbar-width: none;
    }

    .category-bar::-webkit-scrollbar {
        display: none;
    }

    .back-btn {
        padding: .45rem .75rem;
    }

    /* Brand pills: wrap + scroll */
    .brand-bar {
        padding: 0 var(--container-pad);
    }

    .brand-pills {
        gap: .4rem;
        overflow-x: auto;
        padding-bottom: .25rem;
    }

    .brand-pills::-webkit-scrollbar {
        display: none;
    }

    .brand-pill {
        padding: .4rem .65rem;
    }

    /* Applied filters */
    .applied {
        gap: .4rem;
        padding: 0 var(--container-pad);
    }

    /* Page gutters */
    .main-chooser {
        padding: 0 var(--container-pad);
    }

    .wrap {
        padding: 0 var(--container-pad) 18px;
    }

    /* Cards: comfy on phones */
    .cards {
        gap: 1rem;
    }

    .card {
        padding: .95rem;
        border-radius: 14px;
    }

    .card .title {
        font-size: clamp(1rem, 2.8vw + .6rem, 1.1rem);
    }

    .brandline,
    .desc {
        font-size: .9rem;
    }

    /* Strength bar */
    .strength {
        gap: .6rem;
    }

    .sb-seg {
        height: 7px;
    }

    /* Tags: horizontal scroll */
    .tags {
        margin: .65rem 0 .4rem;
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
        padding-bottom: .15rem;
    }

    .tag {
        margin: .15rem .3rem .15rem 0;
        white-space: nowrap;
    }

    /* Main tiles */
    .main-card {
        min-height: 180px;
        border-radius: 14px;
    }

    .main-card .content {
        padding: 12px;
    }

    .main-card .name {
        font-size: 1.05rem;
    }

    .main-card .cta {
        padding: .5rem .8rem;
        font-size: .9rem;
    }

    /* FAB: avoid iOS home bar */
    .fab {
        right: 14px;
        bottom: calc(14px + env(safe-area-inset-bottom));
        padding: .6rem .9rem;
        box-shadow: 0 10px 24px rgba(0, 0, 0, .35), 0 0 14px rgba(0, 255, 224, .35);
    }

    .fab .badge-count {
        min-width: 20px;
        height: 20px;
        font-size: .72rem;
    }

    /* Modal as bottom sheet */
    .overlay {
        align-items: flex-end;
    }

    .modal,
    .nox-modal {
        width: 100vw;
        max-height: 86vh;
        border-radius: 18px 18px 0 0;
        transform: translateY(12px);
    }

    .overlay.show .modal,
    .overlay.show .nox-modal {
        transform: translateY(0);
    }

    .top {
        padding: 12px 14px;
    }

    .tabs {
        padding: 10px 14px;
        gap: .4rem;
    }

    .body {
        padding: 0 14px 14px;
    }

    .list {
        height: 52vh;
    }

    .btn-sec,
    .btn-pri {
        padding: .5rem .9rem;
    }

    /* Search field */
    .search {
        padding: .65rem .85rem;
    }

    .search input {
        font-size: .95rem;
    }

    /* Hookah chooser tiles */
    .hookah-chooser {
        padding: 0;
    }

    .hookah-tile {
        aspect-ratio: 1/1;
        border-radius: 14px;
    }

    .hookah-tile .overlay {
        bottom: 10px;
        padding: 6px 10px;
        font-size: .85rem;
    }

    /* Sticky bars stacking on mobile */
    header {
        z-index: 60;
    }

    .category-bar {
        top: 54px;
        z-index: 55;
    }
}

/* Tablets up to 768px get the 2-up override (already set above) */
@media (max-width: 768px) {
    /* (grid rules handled above) */
}

/* Touch devices: disable hover jumps */
@media (hover: none) {

    .card:hover,
    .hookah-tile:hover,
    .main-card:hover {
        transform: none;
        filter: none;
        box-shadow: 0 10px 28px rgba(0, 0, 0, .45);
    }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {

    .main-card,
    .card,
    .modal,
    .nox-modal,
    .hookah-tile {
        transition: none !important;
    }
}

/* Safe-area padding for iOS (ok globally) */
body {
    padding-bottom: env(safe-area-inset-bottom);
}

/* Base: keep nav hidden by default */
.mnav {
    display: none;
}

/* Phones-only bottom nav */
@media (max-width: 640px) {
    .mnav {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 85;
        /* above content, below overlays (your overlay is 1200) */
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
        padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
        background: rgba(10, 14, 24, .85);
        backdrop-filter: blur(10px);
        border-top: 1px solid var(--line);
    }

    .mnav-btn {
        position: relative;
        display: grid;
        grid-template-columns: auto 1fr;
        align-items: center;
        gap: 8px;
        padding: 10px 12px;
        border-radius: 12px;
        border: 1px solid var(--line);
        background: #141a2b;
        color: var(--text);
        font-weight: 700;
        cursor: pointer;
    }

    .mnav-btn[disabled],
    .mnav-btn[aria-disabled="true"] {
        opacity: .55;
        cursor: default;
    }

    .mnav-icn {
        font-size: 1.1rem;
        line-height: 1;
    }

    .mnav-lbl {
        font-size: .9rem;
    }

    .mnav-badge {
        position: absolute;
        top: -6px;
        right: -6px;
        min-width: 20px;
        height: 20px;
        padding: 0 6px;
        border-radius: 999px;
        display: inline-grid;
        place-items: center;
        font-size: .72rem;
        font-weight: 800;
        color: #fff;
        background: #ff4d4d;
        box-shadow: 0 0 12px rgba(255, 77, 77, .7);
    }

    /* Hide the floating FAB on phones (the nav has the filter button) */
    .fab {
        display: none;
    }

    .category-bar {
        display: none !important;
    }

}

/* Phones: stack header content */
@media (max-width: 640px) {
    header .container {
        flex-wrap: wrap;
        justify-content: space-between;
        gap: .5rem;
    }

    header strong {
        font-size: 1rem;
    }

    /* Make language selector smaller */
    .lang-select-wrap {
        margin-left: auto;
    }

    /* Hide dividers | on mobile */
    header .opacity-75 {
        display: none;
    }

}

/* Burger button */
.burger {
    font-size: 1.6rem;
    line-height: 1;
    background: transparent;
    border: 0;
    color: var(--text);
    padding: .25rem .5rem;
    border-radius: 10px;
}

.burger:active {
    transform: translateY(1px);
}

/* Desktop: topnav inline */
.topnav {
    display: flex;
    align-items: center;
    gap: .75rem;
}

/* Mobile: dropdown panel */
@media (max-width: 991.98px) {
    .topnav {
        display: none;
        /* hidden by default */
        position: absolute;
        top: 100%;
        right: 12px;
        margin-top: 8px;
        flex-direction: column;
        gap: .5rem;
        padding: .75rem;
        background: #141a2b;
        border: 1px solid var(--line);
        border-radius: 12px;
        box-shadow: 0 14px 30px rgba(0, 0, 0, .35);
        z-index: 100;
        /* above header */
        min-width: 220px;
    }

    .topnav.open {
        display: flex;
    }

    /* Hide the pipes on mobile; burger is visible via d-lg-none */
    .pipe {
        display: none !important;
    }
}

.card .price {
    float: left;
    font-weight: 600;
    font-size: 1.1rem;
    letter-spacing: .3px;
    background: var(--primary-grad);
    -webkit-background-clip: text;
    background-clip: text;
    text-shadow: 0 0 22px rgba(0, 255, 224, .25);
    color: #fff !important;
}

.title-text {
    float: left;
    padding-right: 7px;
}

/* ELECTRIC BORDER */

.electric-border {
    --electric-light-color: oklch(from var(--electric-border-color) l c h);
    --eb-border-width: 2px;
    position: relative;
    border-radius: inherit;
    overflow: visible;
    isolation: isolate;
}

.eb-svg {
    position: fixed;
    left: -10000px;
    top: -10000px;
    width: 10px;
    height: 10px;
    opacity: 0.001;
    pointer-events: none;
}

.eb-content {
    position: relative;
    border-radius: inherit;
    z-index: 1;
}

.eb-layers {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    z-index: 2;
}

.eb-stroke,
.eb-glow-1,
.eb-glow-2,
.eb-overlay-1,
.eb-overlay-2,
.eb-background-glow {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    box-sizing: border-box;
}

.eb-stroke {
    border: var(--eb-border-width) solid var(--electric-border-color);
}

.eb-glow-1 {
    border: var(--eb-border-width) solid oklch(from var(--electric-border-color) l c h / 0.6);
    opacity: 0.5;
    filter: blur(calc(0.5px + (var(--eb-border-width) * 0.25)));
}

.eb-glow-2 {
    border: var(--eb-border-width) solid var(--electric-light-color);
    opacity: 0.5;
    filter: blur(calc(2px + (var(--eb-border-width) * 0.5)));
}

.eb-background-glow {
    z-index: -1;
    transform: scale(1.08);
    filter: blur(32px);
    opacity: 0.3;
    background: linear-gradient(-30deg, var(--electric-light-color), transparent, var(--electric-border-color));
}

.nox-h3 h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    text-align: center;
    letter-spacing: 1px;
    text-transform: uppercase;

    /* Neon glow effect */
    text-shadow:
            0 0 10px #ff00ff,
            0 0 20px #ff00ff,
            0 0 40px #00ffff,
            0 0 80px #00ffff;
    transform: scale(1.02);

    /* Smooth fade-in animation */
    animation: fadeInGlow 1.2s ease-out forwards;
    margin-bottom: 1rem;
}

/* Optional glowing animation pulse */
@keyframes fadeInGlow {
    0% {
        opacity: 0;
        text-shadow: none;
    }

    100% {
        opacity: 1;
    }
}

/* The body of the modal should never exceed viewport */
.nox-modal-body-scroll {
    /* keep some space for header/footer; adjust if your header/footer is taller */
    max-height: calc(100vh - 180px);
    overflow: auto;
    /* ensure scrollbars appear when needed */
    padding-top: 0.5rem;
}

/* Keep the tab bar visible while scrolling the grid */
.nox-sticky-tabs {
    position: sticky;
    top: 0;
    z-index: 2;
    padding-top: 0.25rem;
    background: inherit;
    /* keeps the same gradient/card bg if any */
}

/* Optional: nicer scroll feeling on iOS */
.nox-modal-body-scroll {
    -webkit-overflow-scrolling: touch;
}

/* Theme polish + modernized surfaces */
.category-bar,
.brand-bar,
.applied,
.nox-modal,
.card,
.card.preset {
    transition: background .22s ease, border-color .22s ease, color .22s ease, box-shadow .22s ease;
}

.category-bar {
    background: color-mix(in srgb, var(--surface-1) 82%, transparent);
}

.brand-pill {
    background: var(--surface-2);
    color: var(--text);
}

.brand-pill .count {
    background: color-mix(in srgb, var(--surface-3) 72%, transparent);
    color: var(--muted);
}

.brand-pill.active {
    background: var(--surface-3);
    color: var(--text);
    border-color: color-mix(in srgb, var(--accent-1) 44%, var(--line));
    box-shadow: 0 8px 24px rgba(8, 19, 38, .2);
}

.card,
.card.preset {
    background: linear-gradient(165deg, color-mix(in srgb, var(--surface-1) 94%, transparent), color-mix(in srgb, var(--surface-2) 92%, transparent));
    border-color: var(--line);
    box-shadow: 0 16px 32px rgba(6, 16, 34, .22);
}

.card:hover,
.card.preset:hover {
    border-color: color-mix(in srgb, var(--accent-1) 44%, var(--line));
    box-shadow: 0 20px 40px rgba(8, 21, 42, .28);
}

.btn,
.btn-pri,
.fab {
    background: var(--primary-grad);
    border-color: transparent;
}

.btn-sec {
    background: var(--surface-2);
    color: var(--text);
    border-color: var(--line);
}

.nox-modal {
    background: linear-gradient(180deg, var(--surface-1), var(--surface-2));
    border: 1px solid var(--line);
    box-shadow: 0 22px 46px rgba(8, 18, 36, .3);
}

.nox-h3 h3 {
    font-family: "Overpass", sans-serif;
    color: var(--text);
    text-shadow: 0 0 16px color-mix(in srgb, var(--accent-1) 38%, transparent);
}

[data-theme="light"] .hero video {
    filter: contrast(1.02) saturate(1.02) brightness(1.03);
}

[data-theme="light"] .crumb {
    color: var(--muted);
}

[data-theme="light"] .card .title,
[data-theme="light"] .card .price {
    color: var(--text) !important;
    text-shadow: none;
}

[data-theme="light"] .theme-toggle {
    box-shadow: 0 8px 22px rgba(16, 39, 71, .12);
}

/* Professional visual pass: calmer palette and cleaner elevation */
:root,
[data-theme="dark"] {
    --accent-1: #1f7ae0;
    --accent-2: #14a37f;
    --primary-grad: linear-gradient(120deg, var(--accent-1), var(--accent-2));
    --elev-1: 0 8px 20px rgba(3, 10, 22, .18);
    --elev-2: 0 14px 32px rgba(3, 10, 22, .24);
    --elev-3: 0 22px 46px rgba(3, 10, 22, .32);
}

[data-theme="light"] {
    --accent-1: #245fb8;
    --accent-2: #1b8f73;
    --primary-grad: linear-gradient(120deg, var(--accent-1), var(--accent-2));
    --elev-1: 0 4px 10px rgba(18, 43, 79, .07);
    --elev-2: 0 8px 18px rgba(18, 43, 79, .1);
    --elev-3: 0 16px 30px rgba(18, 43, 79, .14);
}

.main-card,
.card,
.card.preset,
.nox-modal,
.fab,
.theme-toggle,
.topnav {
    box-shadow: var(--elev-2);
}

.main-card:hover,
.card:hover,
.card.preset:hover,
.fab:hover {
    box-shadow: var(--elev-3);
}

.card .title,
.card .price,
.nox-h3 h3 {
    text-shadow: none;
}

.main-card .cta,
.btn,
.btn-pri,
.fab {
    color: #fff;
    box-shadow: var(--elev-1);
}

.btn-sec,
.brand-pill,
.chip,
.back-btn,
.tab,
.search input {
    background: var(--surface-2);
    color: var(--text);
    border-color: var(--line);
}

.brand-pill.active,
.tab.active {
    background: color-mix(in srgb, var(--surface-3) 82%, white 18%);
    color: var(--text);
    border-color: color-mix(in srgb, var(--accent-1) 42%, var(--line));
    box-shadow: var(--elev-1);
}

[data-theme="light"] .main-card::after {
    background: linear-gradient(180deg, rgba(255, 255, 255, .02) 0%, rgba(18, 43, 79, .18) 72%, rgba(18, 43, 79, .3) 100%), radial-gradient(520px 180px at 50% 0%, rgba(36, 95, 184, .16), transparent 72%);
}

[data-theme="light"] .card,
[data-theme="light"] .card.preset {
    background: linear-gradient(180deg, #ffffff, #f8fbff);
    border-color: rgba(18, 43, 79, .12);
}

[data-theme="light"] .nox-modal {
    background: linear-gradient(180deg, #ffffff, #f4f8ff);
    border-color: rgba(18, 43, 79, .14);
}

[data-theme="light"] .fab,
[data-theme="light"] .btn-pri,
[data-theme="light"] .btn {
    box-shadow: 0 8px 18px rgba(24, 66, 118, .16);
}

[data-theme="light"] .theme-toggle,
[data-theme="light"] .topnav {
    box-shadow: 0 6px 16px rgba(18, 43, 79, .12);
}

/* Light theme: dark category tiles area + readable copy */

[data-theme="light"] .hb-card-btn {
    background: #111b2d;
    border: 1px solid rgba(213, 230, 255, .16);
    border-radius: 16px;
}

[data-theme="light"] .hb-rail-item {
    background: #111b2d;
    border: 1px solid rgba(213, 230, 255, .16);
    border-radius: 16px;
}

[data-theme="light"] .brandline {
    color: #6d7f9b;
}

[data-theme="light"] .desc {
    color: #2e3f58;
    opacity: 1;
}

/* Mobile modules polish: Filter + Profile modals */
.nox-filter-modal,
.nox-modal-card {
    background: linear-gradient(180deg, var(--surface-1), var(--surface-2));
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: var(--elev-3);
    color: var(--text);
}

.nox-filter-modal .top,
.nox-filter-modal .foot {
    background: color-mix(in srgb, var(--surface-1) 92%, transparent);
}

.nox-filter-modal .top {
    border-bottom: 1px solid var(--line);
    padding: 12px 14px;
}

.nox-filter-modal .title {
    background: none;
    color: var(--text);
    text-shadow: none;
    font-weight: 800;
}

.nox-filter-modal .x {
    background: var(--surface-2);
    color: var(--text);
    border: 1px solid var(--line);
    border-radius: 10px;
    transition: background .16s ease, border-color .16s ease, transform .08s ease;
}

.nox-filter-modal .x:hover {
    background: var(--surface-3);
    border-color: color-mix(in srgb, var(--accent-1) 35%, var(--line));
}

.nox-filter-modal .x:active {
    transform: translateY(1px);
}

.nox-filter-modal .tabs {
    border-bottom: 1px solid var(--line);
    gap: .45rem;
}

.nox-filter-modal .tab {
    background: var(--surface-2);
    color: var(--muted);
    border: 1px solid var(--line);
    border-radius: 999px;
    font-weight: 700;
}

.nox-filter-modal .tab.active {
    color: var(--text);
    background: color-mix(in srgb, var(--surface-3) 86%, white 14%);
    border-color: color-mix(in srgb, var(--accent-1) 42%, var(--line));
    box-shadow: var(--elev-1);
}

.nox-filter-modal .body {
    padding: 12px 14px;
}

.nox-filter-modal .search {
    background: var(--surface-2);
    border: 1px solid var(--line);
    color: var(--text);
}

.nox-filter-modal .search input {
    color: var(--text);
}

.nox-filter-modal .search input::placeholder {
    color: color-mix(in srgb, var(--muted) 86%, white 14%);
}

.nox-filter-modal .group {
    color: color-mix(in srgb, var(--accent-1) 64%, var(--text));
    font-weight: 800;
}

.nox-filter-modal .chip-sel {
    background: var(--surface-2);
    color: var(--text);
    border: 1px solid var(--line);
    border-radius: 999px;
}

.nox-filter-modal .chip-sel.active {
    background: var(--primary-grad);
    color: #fff;
    border-color: transparent;
    box-shadow: var(--elev-1);
}

.nox-filter-modal .foot {
    border-top: 1px solid var(--line);
    padding: 12px 14px;
}

.nox-filter-modal .btn-sec,
.nox-filter-modal .btn-pri {
    border-radius: 12px;
    font-weight: 700;
    transition: transform .08s ease, box-shadow .15s ease, background .15s ease;
}

.nox-filter-modal .btn-sec {
    background: var(--surface-2);
    color: var(--text);
    border: 1px solid var(--line);
}

.nox-filter-modal .btn-pri {
    background: var(--primary-grad);
    color: #fff;
    border: 0;
    box-shadow: var(--elev-1);
}

.nox-filter-modal .btn-sec:active,
.nox-filter-modal .btn-pri:active {
    transform: translateY(1px);
}

/* Profile modal */
.nox-modal-card .modal-header,
.nox-modal-card .modal-footer {
    border-color: var(--line) !important;
    background: color-mix(in srgb, var(--surface-1) 92%, transparent);
}

.nox-title {
    color: var(--text);
    font-weight: 800;
    letter-spacing: .2px;
}

.nox-tabs {
    gap: .5rem;
    border-bottom: 1px solid var(--line);
    padding-bottom: .75rem;
}

.nox-tabs .nav-link {
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface-2);
    color: var(--muted);
    padding: .45rem .9rem;
    font-weight: 700;
}

.nox-tabs .nav-link.active {
    color: var(--text);
    background: color-mix(in srgb, var(--surface-3) 86%, white 14%);
    border-color: color-mix(in srgb, var(--accent-1) 42%, var(--line));
    box-shadow: var(--elev-1);
}

.nox-section-title {
    color: var(--text);
    font-weight: 800;
    margin-bottom: .85rem;
}

.nox-profile-row,
.nox-card,
.nox-pane {
    background: var(--surface-2);
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: var(--elev-1);
}

.nox-profile-row {
    padding: .85rem;
}

.nox-card {
    padding: .85rem;
}

.nox-card-head {
    color: var(--text);
    font-weight: 700;
    margin-bottom: .65rem;
}

.nox-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
}

.nox-row-label,
.nox-pane-hint,
.nox-email,
.nox-pane.muted {
    color: var(--muted);
}

.nox-name {
    color: var(--text);
    font-weight: 800;
}

.nox-pane {
    padding: .85rem;
}

.nox-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 1px solid var(--line);
    overflow: hidden;
    background: var(--surface-3);
}

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

.nox-primary-gradient,
.nox-primary-gradient--wide {
    background: var(--primary-grad) !important;
    border: 0 !important;
    color: #fff !important;
    border-radius: 12px !important;
    box-shadow: var(--elev-1);
}

.nox-ghost-gradient {
    border: 1px solid var(--line) !important;
    background: var(--surface-1) !important;
    color: var(--text) !important;
    border-radius: 12px !important;
}

.nox-modal-card .btn-close {
    filter: var(--nox-close-filter, invert(1) grayscale(1) brightness(1.4));
}

[data-theme="light"] {
    --nox-close-filter: invert(0) grayscale(1) brightness(.45);
}

[data-theme="light"] .nox-filter-modal,
[data-theme="light"] .nox-modal-card {
    border-color: rgba(18, 43, 79, .14);
}

[data-theme="light"] .nox-filter-modal .chip-sel.active,
[data-theme="light"] .nox-filter-modal .btn-pri,
[data-theme="light"] .nox-primary-gradient,
[data-theme="light"] .nox-primary-gradient--wide {
    box-shadow: 0 8px 18px rgba(24, 66, 118, .16);
}

@media (max-width: 640px) {
    .nox-filter-modal,
    .nox-modal-card {
        width: min(96vw, 620px);
        border-radius: 16px;
    }

    .nox-filter-modal .tabs {
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: .5rem;
    }

    .nox-filter-modal .tab {
        white-space: nowrap;
    }

    .nox-row {
        flex-direction: column;
        align-items: stretch;
    }

    .nox-profile-row {
        flex-direction: column;
        align-items: stretch;
    }
}

/* Filters UX refinement: modal chips and selected-filters bar */
.nox-filter-modal .tabs {
    padding: 10px 12px 8px;
}

.nox-filter-modal .tab {
    min-height: 38px;
    padding: .5rem .95rem;
    font-size: .9rem;
}

.nox-filter-modal .search {
    border-radius: 14px;
    min-height: 44px;
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--line) 55%, transparent);
}

.nox-filter-modal .search:focus-within {
    border-color: color-mix(in srgb, var(--accent-1) 52%, var(--line));
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent-1) 16%, transparent);
}

.nox-filter-modal .list {
    border: 1px solid var(--line);
    border-radius: 14px;
    background: color-mix(in srgb, var(--surface-2) 92%, transparent);
    padding: 10px;
    scrollbar-gutter: stable both-edges;
}

.nox-filter-modal .group {
    margin: .8rem 0 .4rem;
    font-size: .78rem;
    letter-spacing: .4px;
    text-transform: uppercase;
}

.nox-filter-modal .chip-sel {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    padding: .42rem .78rem;
    font-size: .86rem;
    font-weight: 600;
    gap: .42rem;
}

.nox-filter-modal .chip-sel:hover {
    border-color: color-mix(in srgb, var(--accent-1) 36%, var(--line));
    background: color-mix(in srgb, var(--surface-3) 70%, transparent);
}

.nox-filter-modal .chip-sel.active::before {
    content: "✓";
    font-size: .78rem;
    font-weight: 900;
    line-height: 1;
}

.nox-filter-modal .foot {
    position: sticky;
    bottom: 0;
    z-index: 2;
}

/* Professional filter modal upgrade */
.nox-filter-modal {
    border-radius: 20px;
    border: 1px solid color-mix(in srgb, var(--accent-1) 14%, var(--line));
    box-shadow: 0 24px 56px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 255, 255, .04);
}

.nox-filter-modal .top {
    padding: 14px 16px;
    position: sticky;
    top: 0;
    z-index: 3;
    backdrop-filter: blur(8px);
}

.nox-filter-modal .title {
    font-size: 1.04rem;
    font-weight: 900;
    letter-spacing: .2px;
}

.nox-filter-modal .x {
    width: 36px;
    height: 36px;
    display: inline-grid;
    place-items: center;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 800;
}

.nox-filter-modal .tabs {
    position: sticky;
    top: 62px;
    z-index: 2;
    background: color-mix(in srgb, var(--surface-1) 90%, transparent);
    backdrop-filter: blur(8px);
    padding: 10px 12px 10px;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
}

.nox-filter-modal .tabs::-webkit-scrollbar {
    display: none;
}

.nox-filter-modal .tab {
    min-height: 40px;
    padding: .52rem 1rem;
    font-size: .92rem;
    font-weight: 800;
    white-space: nowrap;
}

.nox-filter-modal .tab.active {
    background: linear-gradient(135deg,
            color-mix(in srgb, var(--accent-1) 22%, var(--surface-3)),
            color-mix(in srgb, var(--accent-2) 16%, var(--surface-3)));
    border-color: color-mix(in srgb, var(--accent-1) 54%, var(--line));
    box-shadow: 0 8px 22px rgba(0, 0, 0, .28);
}

.nox-filter-modal .body {
    padding: 14px 16px;
    gap: 12px;
}

.nox-filter-modal .search {
    min-height: 46px;
    border-radius: 14px;
    padding-inline: 12px;
}

.nox-filter-modal .search input {
    font-size: .95rem;
    font-weight: 500;
}

.nox-filter-modal .list {
    border-radius: 16px;
    padding: 12px;
    max-height: min(56vh, 470px);
    overflow: auto;
}

.nox-filter-modal .group {
    font-size: .8rem;
    letter-spacing: .45px;
    margin: .9rem 0 .45rem;
}

.nox-filter-modal .chip-sel {
    min-height: 36px;
    border-radius: 999px;
    padding: .44rem .82rem;
    font-size: .88rem;
    font-weight: 700;
}

.nox-filter-modal .chip-sel.active {
    box-shadow: 0 8px 18px rgba(0, 0, 0, .26), 0 0 0 1px rgba(255, 255, 255, .06) inset;
}

.nox-filter-modal .foot {
    padding: 12px 16px 14px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.nox-filter-modal .btn-sec,
.nox-filter-modal .btn-pri {
    width: 100%;
    min-height: 42px;
    border-radius: 12px;
    font-size: .9rem;
    font-weight: 800;
}

.nox-filter-modal .btn-pri {
    box-shadow: 0 10px 24px rgba(0, 0, 0, .32);
}

@media (max-width: 640px) {
    .nox-filter-modal {
        width: min(96vw, 680px);
        max-height: 88vh;
        border-radius: 18px;
    }

    .nox-filter-modal .title {
        font-size: 1rem;
    }

    .nox-filter-modal .tab {
        font-size: .88rem;
    }
}

/* Gold premium unify: profile + filters + buttons */
.nox-filter-modal,
.nox-modal-card {
    border: 1px solid rgba(245, 200, 66, .22);
    box-shadow:
        0 24px 60px rgba(0, 0, 0, .58),
        inset 0 1px 0 rgba(255, 255, 255, .06),
        0 0 0 1px rgba(245, 200, 66, .06);
}

.nox-modal-card .modal-header,
.nox-modal-card .modal-footer,
.nox-filter-modal .top,
.nox-filter-modal .foot {
    background: linear-gradient(180deg,
            color-mix(in srgb, var(--surface-1) 94%, transparent),
            color-mix(in srgb, var(--surface-2) 92%, transparent));
}

.nox-title,
.nox-filter-modal .title,
.nox-section-title {
    color: #f7d36a;
    text-shadow: 0 0 12px rgba(245, 200, 66, .22);
}

.nox-tabs .nav-link,
.nox-filter-modal .tab {
    border-color: rgba(245, 200, 66, .16);
    background: color-mix(in srgb, var(--surface-2) 88%, transparent);
}

.nox-tabs .nav-link.active,
.nox-filter-modal .tab.active {
    color: #1d1302;
    background: linear-gradient(135deg, #f5c842, #c88310);
    border-color: rgba(245, 200, 66, .66);
    box-shadow: 0 8px 20px rgba(245, 200, 66, .28);
}

.nox-filter-modal .search {
    border-color: rgba(245, 200, 66, .2);
}

.nox-filter-modal .search:focus-within {
    border-color: rgba(245, 200, 66, .62);
    box-shadow: 0 0 0 3px rgba(245, 200, 66, .16);
}

.nox-filter-modal .chip-sel {
    border-color: rgba(245, 200, 66, .14);
}

.nox-filter-modal .chip-sel.active {
    background: linear-gradient(135deg, #f5c842, #c88310);
    color: #1f1503;
    border-color: rgba(245, 200, 66, .62);
    box-shadow: 0 8px 18px rgba(245, 200, 66, .22);
}

.nox-filter-modal .btn-pri,
.nox-primary-gradient,
.nox-primary-gradient--wide {
    background: linear-gradient(135deg, #f5c842, #bf7700) !important;
    color: #1b1203 !important;
    border: 1px solid rgba(245, 200, 66, .55) !important;
    box-shadow: 0 12px 24px rgba(245, 200, 66, .28) !important;
}

.nox-filter-modal .btn-sec,
.nox-ghost-gradient {
    background: color-mix(in srgb, var(--surface-2) 90%, transparent) !important;
    color: #f4e8c8 !important;
    border: 1px solid rgba(245, 200, 66, .28) !important;
}

.nox-filter-modal .btn-sec:hover,
.nox-ghost-gradient:hover {
    background: color-mix(in srgb, var(--surface-3) 80%, transparent) !important;
    border-color: rgba(245, 200, 66, .46) !important;
}

.nox-avatar {
    border-color: rgba(245, 200, 66, .34);
    box-shadow: 0 0 0 3px rgba(245, 200, 66, .10), inset 0 0 22px rgba(0, 0, 0, .65);
}

.lang-select {
    border: 1px solid rgba(245, 200, 66, .25) !important;
    background: color-mix(in srgb, var(--surface-2) 90%, transparent) !important;
    color: var(--text) !important;
    border-radius: 10px;
}

/* Selected filters bar */
.applied {
    margin: 12px auto 18px;
}

.applied-shell {
    display: flex;
    align-items: flex-start;
    gap: .7rem;
    flex-wrap: wrap;
    border: 1px solid var(--line);
    background: color-mix(in srgb, var(--surface-2) 92%, transparent);
    border-radius: 14px;
    padding: 10px;
    box-shadow: var(--elev-1);
}

.applied-head {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding-top: 3px;
}

.applied .label {
    color: var(--muted);
    font-size: .84rem;
    font-weight: 700;
}

.applied-count {
    min-width: 22px;
    height: 22px;
    border-radius: 999px;
    display: inline-grid;
    place-items: center;
    padding: 0 6px;
    font-size: .75rem;
    font-weight: 800;
    color: #fff;
    background: var(--primary-grad);
}

.applied-chips {
    display: flex;
    flex: 1;
    gap: .45rem;
    flex-wrap: wrap;
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    min-height: 32px;
    padding: .35rem .62rem;
    font-size: .82rem;
    font-weight: 600;
    color: var(--text);
    background: var(--surface-2);
    border: 1px solid var(--line);
}

.chip .x {
    width: 18px;
    height: 18px;
    min-width: 18px;
    min-height: 18px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: color-mix(in srgb, var(--surface-3) 82%, transparent);
    font-size: 14px;
    line-height: 1;
    font-weight: 800;
    font-family: Arial, "Helvetica Neue", sans-serif;
    text-align: center;
    cursor: pointer;
    user-select: none;
}

.chip .x:hover {
    background: color-mix(in srgb, var(--accent-1) 22%, var(--surface-3));
}

.clear.clear-strong {
    margin-left: auto;
    min-height: 34px;
    padding: .38rem .75rem;
    font-size: .82rem;
    font-weight: 700;
    border-radius: 10px;
    color: var(--text);
    background: var(--surface-1);
    border-color: var(--line);
}

.clear.clear-strong:hover {
    border-color: color-mix(in srgb, var(--accent-1) 38%, var(--line));
    background: color-mix(in srgb, var(--surface-3) 72%, transparent);
}

@media (max-width: 640px) {
    .applied-shell {
        padding: 9px;
        gap: .55rem;
    }

    .applied-head {
        width: 100%;
        justify-content: space-between;
    }

    .applied-chips {
        width: 100%;
    }

    .clear.clear-strong {
        width: 100%;
        margin-left: 0;
    }
}

/* Onboarding wizard */
.onb-overlay {
    position: fixed;
    inset: 0;
    z-index: 1500;
    background: rgba(8, 12, 18, .56);
    backdrop-filter: blur(8px);
    display: grid;
    place-items: center;
    padding: 14px;
}

.onb-modal {
    width: min(94vw, 760px);
    max-height: 90vh;
    overflow: auto;
    background: linear-gradient(180deg, var(--surface-1), var(--surface-2));
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: var(--elev-3);
    color: var(--text);
}

.onb-head {
    padding: 14px 16px 10px;
}

.onb-kicker {
    color: var(--muted);
    font-weight: 700;
    font-size: .82rem;
    letter-spacing: .4px;
    text-transform: uppercase;
}

.onb-title {
    font-weight: 900;
    font-size: clamp(1.05rem, 1.2vw + .8rem, 1.45rem);
}

.onb-step {
    color: var(--muted);
    font-weight: 700;
    font-size: .85rem;
}

.onb-progress {
    height: 6px;
    background: color-mix(in srgb, var(--surface-3) 60%, transparent);
}

.onb-progress span {
    display: block;
    height: 100%;
    background: var(--primary-grad);
    transition: width .22s ease;
}

.onb-body {
    padding: 14px 16px;
}

.onb-question {
    font-weight: 800;
    margin-bottom: .75rem;
}

.onb-grid {
    display: grid;
    gap: .6rem;
}

.onb-grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.onb-card,
.onb-chip,
.onb-row,
.onb-btn {
    border-radius: 12px;
    border: 1px solid var(--line);
    background: var(--surface-2);
    color: var(--text);
}

.onb-card,
.onb-chip,
.onb-row {
    padding: .65rem .8rem;
    font-weight: 700;
    text-align: left;
}

.onb-card.active,
.onb-chip.active,
.onb-row.active {
    border-color: color-mix(in srgb, var(--accent-1) 48%, var(--line));
    background: color-mix(in srgb, var(--surface-3) 82%, white 18%);
    box-shadow: var(--elev-1);
}

.onb-chips {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}

.onb-list {
    display: grid;
    gap: .5rem;
}

.onb-row {
    display: flex;
    flex-direction: column;
    gap: .2rem;
}

.onb-row span {
    color: var(--muted);
    font-size: .85rem;
    font-weight: 500;
}

.onb-form-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .6rem;
}

.onb-form-grid label {
    display: grid;
    gap: .3rem;
    font-size: .86rem;
    color: var(--muted);
}

.onb-form-grid select {
    border-radius: 10px;
    border: 1px solid var(--line);
    background: var(--surface-2);
    color: var(--text);
    padding: .52rem .6rem;
}

.onb-summary {
    display: grid;
    gap: .45rem;
    background: var(--surface-2);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: .8rem;
}

.onb-muted {
    color: var(--muted);
}

.onb-foot {
    padding: 12px 16px 14px;
    border-top: 1px solid var(--line);
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    justify-content: flex-end;
}

.onb-btn {
    padding: .52rem .8rem;
    font-weight: 700;
}

.onb-btn.primary {
    background: var(--primary-grad);
    color: #fff;
    border-color: transparent;
}

.onb-btn.ghost {
    background: var(--surface-2);
    color: var(--text);
}

@media (max-width: 760px) {
    .onb-grid-3,
    .onb-form-grid {
        grid-template-columns: 1fr;
    }

    .onb-foot .onb-btn {
        flex: 1 1 auto;
    }
}

/* 2026 mobile-first lounge system */
:root,
[data-theme="dark"] {
    --bg: #0b0c0f;
    --panel: #15171c;
    --surface-1: #15171c;
    --surface-2: #1b1e24;
    --surface-3: #242831;
    --line: rgba(255, 255, 255, .09);
    --text: #f7f3ea;
    --muted: #a8a8a5;
    --accent-1: #e8aa2f;
    --accent-2: #d67c2b;
    --primary-grad: linear-gradient(135deg, #f0b83f, #d88927);
    --shell-bg:
        radial-gradient(circle at 85% -10%, rgba(184, 66, 41, .18), transparent 32rem),
        linear-gradient(180deg, #101217, #0b0c0f 32rem);
    --elev-1: 0 8px 22px rgba(0, 0, 0, .2);
    --elev-2: 0 16px 36px rgba(0, 0, 0, .28);
    --elev-3: 0 24px 60px rgba(0, 0, 0, .42);
}

[data-theme="light"] {
    --bg: #f3f0e9;
    --panel: #fffdf8;
    --surface-1: #fffdf8;
    --surface-2: #f7f2e8;
    --surface-3: #eee7da;
    --line: rgba(52, 42, 28, .12);
    --text: #211e1a;
    --muted: #706b63;
    --accent-1: #b76b16;
    --accent-2: #9d4d2d;
    --primary-grad: linear-gradient(135deg, #d99426, #b96022);
    --shell-bg:
        radial-gradient(circle at 85% -10%, rgba(184, 96, 53, .13), transparent 30rem),
        #f3f0e9;
}

body,
.nox-root {
    min-height: 100%;
    background: var(--shell-bg);
}

.hero {
    min-height: 290px;
    border-bottom: 0;
}

.hero::after {
    background:
        linear-gradient(180deg, rgba(8, 8, 10, .18), rgba(8, 8, 10, .72)),
        linear-gradient(90deg, rgba(118, 31, 26, .24), transparent 50%);
}

.hero video {
    filter: contrast(1.08) saturate(.82) brightness(.72);
}

.logo-wrap {
    gap: 4px;
    padding: 32px 20px 24px;
}

.logo-wrap .logo img {
    width: auto;
    max-width: min(58vw, 220px);
    max-height: 132px;
    object-fit: contain;
}

.hero .logo-wrap > .title {
    margin: 0;
    background: none;
    color: #fff !important;
    font-size: clamp(1.15rem, 3vw, 1.5rem);
    font-weight: 800;
    text-shadow: 0 2px 18px rgba(0, 0, 0, .5);
}

.hero .subtitle {
    color: rgba(255, 255, 255, .7);
    font-size: .88rem;
}

.theme-toggle {
    width: 42px;
    height: 42px;
    overflow: hidden;
    padding: 0;
    border-radius: 50%;
    color: transparent;
    background: rgba(15, 15, 18, .58);
}

.theme-toggle::after {
    content: "◐";
    display: grid;
    width: 100%;
    height: 100%;
    place-items: center;
    color: #f4d078;
    font-size: 1.15rem;
}

.hookah-chooser {
    padding: 20px 20px 120px;
}

.hookah-chooser .container-fluid {
    padding: 0 !important;
}

.nox-category-grid {
    gap: 12px;
}

.nox-category-card {
    min-height: 230px;
    padding: 24px;
    border: 1px solid color-mix(in srgb, var(--category-accent), transparent 68%);
    border-radius: 12px;
    background:
        linear-gradient(120deg, color-mix(in srgb, var(--category-accent), transparent 86%), transparent 55%),
        var(--surface-1);
    box-shadow: var(--elev-1);
}

.nox-category-card::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 3px;
    background: var(--category-accent);
}

.nox-category-card::after {
    display: none;
}

.nox-category-copy {
    justify-content: flex-end;
}

.nox-category-copy strong {
    max-width: 8ch;
    font-size: 1.45rem;
    letter-spacing: 0;
}

.nox-category-image {
    right: 0;
    bottom: -5%;
    width: 58%;
    height: 105%;
    opacity: .92;
    filter: drop-shadow(0 18px 22px rgba(0, 0, 0, .38));
}

.category-bar {
    top: 0;
    padding: 10px 12px;
    background: color-mix(in srgb, var(--bg) 88%, transparent);
    backdrop-filter: blur(18px) saturate(120%);
}

.category-bar .container-fluid {
    justify-content: flex-start !important;
}

.back-btn {
    min-height: 40px;
    padding: 8px 12px;
    border-radius: 8px;
    background: var(--surface-2);
    color: var(--text);
    font-weight: 750;
}

.crumb {
    min-width: 0;
    overflow: hidden;
    color: var(--muted);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.brand-bar {
    max-width: none;
    margin: 0;
    padding: 14px 16px 6px;
}

.brand-pills {
    flex-wrap: nowrap !important;
    gap: 8px !important;
    overflow-x: auto;
    padding: 2px 0 8px;
    scrollbar-width: none;
}

.brand-pills::-webkit-scrollbar {
    display: none;
}

.brand-pill {
    min-height: 40px;
    flex: 0 0 auto;
    padding: 8px 12px;
    border-radius: 8px;
    background: var(--surface-1);
    color: var(--muted);
    font-size: .84rem;
    font-weight: 750;
}

.brand-pill.active {
    background: #f0b83f;
    color: #201604;
    border-color: #f0b83f;
    box-shadow: none;
}

.nox-filter-modal .tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
}

.nox-filter-modal .tab-count {
    display: inline-grid;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    place-items: center;
    border-radius: 5px;
    background: color-mix(in srgb, currentColor 14%, transparent);
    font-size: .7rem;
    font-weight: 900;
}

.nox-filter-modal .strength-options {
    display: grid;
    gap: 10px;
}

.nox-filter-modal .strength-option {
    display: flex;
    width: 100%;
    min-height: 58px;
    margin: 0;
    align-items: center;
    gap: 12px;
    border-radius: 10px;
    font-size: .95rem;
}

.strength-option-bars {
    display: inline-flex;
    width: 44px;
    height: 30px;
    align-items: flex-end;
    gap: 4px;
}

.strength-option-bars span {
    width: 10px;
    border-radius: 3px 3px 1px 1px;
    background: currentColor;
    opacity: .18;
}

.strength-option-bars span:nth-child(1) { height: 10px; opacity: .75; }
.strength-option-bars span:nth-child(2) { height: 19px; }
.strength-option-bars span:nth-child(3) { height: 28px; }
.strength-option--medium .strength-option-bars span:nth-child(2),
.strength-option--strong .strength-option-bars span { opacity: .75; }

.brand-pill .count {
    display: inline-grid;
    min-width: 22px;
    height: 22px;
    place-items: center;
    border-radius: 5px;
    background: color-mix(in srgb, currentColor 10%, transparent);
}

.applied {
    margin: 6px auto 10px;
    padding-inline: 16px;
}

.applied-shell {
    border-radius: 10px;
    background: var(--surface-1);
    box-shadow: none;
}

.nox-root > .container-fluid,
.presets-suggest.container-fluid {
    padding-inline: clamp(12px, 3vw, 24px);
}

.nox-h3 {
    margin: 24px 0 12px !important;
    gap: 12px;
}

.nox-h3 h3 {
    color: var(--text);
    font-size: 1.18rem;
    font-weight: 850;
}

.nox-h3::after {
    background: linear-gradient(90deg, var(--line), transparent);
}

.cards {
    gap: 12px;
    margin-top: 0;
}

.product-card,
.card.preset {
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface-1);
    box-shadow: var(--elev-1);
}

.product-card::before,
.card.preset::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 2px;
    border-radius: 12px 12px 0 0;
    background: linear-gradient(90deg, #e8aa2f, #b74333 55%, transparent);
    opacity: .8;
}

.product-card .title,
.card.preset .title {
    margin: 0 0 4px;
    padding-right: 28px;
    background: none;
    color: var(--text) !important;
    font-size: 1.05rem;
    font-weight: 850;
}

.product-card .price,
.card.preset .price {
    flex: 0 0 auto;
    color: #eab64d !important;
    font-size: .9rem;
    font-weight: 800;
    white-space: nowrap;
}

.product-card .brandline,
.card.preset .brandline {
    margin-bottom: 10px;
    color: #d09c55;
    font-size: .7rem;
    letter-spacing: .06em;
}

.product-card .desc,
.card.preset .desc {
    display: -webkit-box;
    min-height: 0;
    margin-bottom: 14px;
    overflow: hidden;
    color: var(--muted);
    font-size: .85rem;
    line-height: 1.45;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.strength {
    gap: 10px;
    margin: 0;
}

.strength-bar {
    gap: 4px;
}

.sb-seg {
    height: 5px;
    border-radius: 2px;
    background: var(--surface-3);
    box-shadow: none;
}

.strength-bar .sb-seg.active {
    box-shadow: none !important;
}

.product-card .tags,
.card.preset .tags {
    gap: 6px;
    margin-top: 14px;
}

.product-card .tag,
.card.preset .tag {
    min-height: 28px;
    padding: 5px 8px;
    border: 0;
    border-radius: 6px;
    background: var(--surface-2);
    color: var(--muted);
    font-size: .72rem;
}

.product-card .actions,
.card.preset .actions {
    padding-top: 16px;
}

.product-card .btn,
.card.preset .btn,
.btn-pri {
    min-height: 46px;
    border-radius: 8px;
    background: var(--primary-grad);
    color: #201604;
    font-weight: 850;
    box-shadow: none;
}

.badge {
    top: 13px;
    right: 13px;
    padding: 0;
    background: transparent;
}

.badge i {
    font-size: 1.25rem;
}

.overlay {
    background: rgba(5, 6, 8, .76);
    backdrop-filter: blur(8px);
}

.nox-filter-modal {
    border-color: var(--line);
    background: var(--surface-1);
    box-shadow: var(--elev-3);
}

.nox-filter-modal .title,
.nox-title,
.nox-section-title {
    color: var(--text);
    text-shadow: none;
}

.nox-filter-modal .tab.active,
.nox-tabs .nav-link.active,
.nox-filter-modal .chip-sel.active {
    background: #efb43a;
    color: #211604;
    border-color: #efb43a;
    box-shadow: none;
}

.nox-filter-modal .list {
    background: var(--surface-2);
}

.nox-filter-modal .btn-pri {
    background: var(--primary-grad) !important;
    color: #211604 !important;
    border-color: transparent !important;
    box-shadow: none !important;
}

.fab {
    background: var(--primary-grad);
    color: #211604;
}

@media (max-width: 640px) {
    .nox-root {
        padding-bottom: calc(94px + env(safe-area-inset-bottom, 0px));
    }

    .hero {
        min-height: 238px;
    }

    .nox-root.has-category .hero {
        min-height: 168px;
    }

    .nox-root.has-category .logo-wrap {
        grid-template-columns: auto 1fr;
        grid-template-areas:
            "logo title"
            "logo subtitle";
        column-gap: 14px;
        justify-content: center;
        text-align: left;
    }

    .nox-root.has-category .logo-wrap .logo {
        grid-area: logo;
    }

    .nox-root.has-category .logo-wrap .logo img {
        max-width: 92px;
        max-height: 76px;
    }

    .nox-root.has-category .hero .logo-wrap > .title {
        grid-area: title;
        align-self: end;
    }

    .nox-root.has-category .hero .subtitle {
        grid-area: subtitle;
        align-self: start;
    }

    .logo-wrap {
        padding: 24px 16px 18px;
    }

    .logo-wrap .logo img {
        max-width: 158px;
        max-height: 106px;
    }

    .hookah-chooser {
        padding: 14px 12px 106px;
    }

    .nox-category-grid {
        gap: 9px;
    }

    .nox-category-card {
        min-height: 126px;
        padding: 16px 18px;
        border-radius: 10px;
    }

    .nox-category-copy strong {
        font-size: 1.12rem;
    }

    .nox-category-image {
        right: 3%;
        bottom: -20%;
        width: 42%;
        height: 135%;
    }

    .category-bar.show {
        display: flex !important;
    }

    .brand-bar {
        padding-inline: 12px;
    }

    .applied {
        padding-inline: 12px;
    }

    .presets-suggest .cards {
        grid-auto-columns: min(84vw, 330px);
        grid-auto-flow: column;
        grid-template-columns: none;
        overflow-x: auto;
        padding: 2px 1px 10px;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
    }

    .presets-suggest .card {
        scroll-snap-align: start;
    }

    .product-card,
    .card.preset {
        padding: 16px;
    }

    .overlay.show {
        align-items: flex-end;
        padding: 0;
    }

    .nox-filter-modal {
        width: 100%;
        max-height: min(92dvh, 760px);
        margin: 0;
        border-width: 1px 0 0;
        border-radius: 22px 22px 0 0;
    }

    .nox-filter-modal .top {
        padding: 14px 16px 10px;
    }

    .nox-filter-modal .tabs {
        top: 58px;
        padding-inline: 14px;
    }

    .nox-filter-modal .body {
        min-height: 0;
        padding: 12px 14px;
        overflow: hidden;
    }

    .nox-filter-modal .list {
        height: auto;
        min-height: 0;
        flex: 1;
        border-radius: 12px;
    }

    .nox-filter-modal .foot {
        padding: 10px 14px calc(12px + env(safe-area-inset-bottom, 0px));
        background: var(--surface-1);
    }

    .nox-filter-modal .btn-sec,
    .nox-filter-modal .btn-pri {
        min-height: 48px;
        border-radius: 8px;
    }

    .fab.d-inline-flex {
        display: none !important;
    }

    .ai-launcher-thought {
        display: none !important;
    }
}

@media (min-width: 641px) {
    .cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1100px) {
    .cards {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* Account dashboard */
.nox-profile-modal {
    width: min(94vw, 720px);
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--surface-1);
    color: var(--text);
}

.nox-profile-modal .modal-header {
    padding: 16px 18px 10px;
}

.nox-profile-modal .modal-body {
    padding: 10px 18px 18px;
}

.nox-profile-identity {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface-2);
}

.nox-profile-identity .nox-avatar {
    display: grid;
    width: 46px;
    height: 46px;
    place-items: center;
    border-radius: 10px;
}

.nox-profile-person {
    display: grid;
    min-width: 0;
    gap: 2px;
}

.nox-profile-person strong,
.nox-profile-person span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nox-profile-person span {
    color: var(--muted);
    font-size: .78rem;
}

.nox-signout-button,
.nox-icon-action {
    border: 1px solid var(--line);
    background: var(--surface-1);
    color: var(--muted);
    cursor: pointer;
}

.nox-signout-button {
    min-height: 38px;
    padding: 7px 10px;
    border-radius: 8px;
    font-size: .78rem;
    font-weight: 750;
}

.nox-profile-modal .nox-tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    margin: 0 0 14px;
    padding: 4px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface-2);
}

.nox-profile-modal .nox-tabs .nav-link {
    display: flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--muted);
    font-size: .82rem;
    white-space: nowrap;
}

.nox-profile-modal .nox-tabs .nav-link.active {
    background: var(--surface-3);
    color: var(--text);
    box-shadow: none;
}

.nox-tab-badge {
    display: inline-grid;
    min-width: 19px;
    height: 19px;
    padding: 0 4px;
    place-items: center;
    border-radius: 5px;
    background: #efb43a;
    color: #211604;
    font-size: .68rem;
    font-weight: 900;
}

.nox-auth-panel {
    display: grid;
    justify-items: center;
    gap: 8px;
    padding: 28px 18px;
    text-align: center;
}

.nox-auth-icon {
    display: grid;
    width: 58px;
    height: 58px;
    margin-bottom: 4px;
    place-items: center;
    border: 1px solid rgba(239, 180, 58, .28);
    border-radius: 14px;
    background: rgba(239, 180, 58, .1);
    color: #efb43a;
}

.nox-auth-panel h5 {
    margin: 0;
    color: var(--text);
    font-size: 1.05rem;
    font-weight: 850;
}

.nox-auth-panel p {
    max-width: 36ch;
    margin: 0 0 8px;
    color: var(--muted);
    font-size: .86rem;
}

.nox-google-button {
    display: grid;
    width: min(100%, 330px);
    min-height: 50px;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border: 1px solid rgba(0, 0, 0, .14);
    border-radius: 9px;
    background: #fff;
    color: #252525;
    font-weight: 800;
    cursor: pointer;
}

.nox-google-button:disabled {
    cursor: wait;
    opacity: .65;
}

.nox-google-mark {
    display: grid;
    width: 30px;
    height: 30px;
    place-items: center;
    border: 1px solid #e5e5e5;
    border-radius: 50%;
    color: #4285f4;
    font-family: sans-serif;
    font-size: 1.05rem;
    font-weight: 900;
}

.nox-inline-error {
    max-width: 360px;
    color: #ef8a7b;
    font-size: .8rem;
}

.nox-settings-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface-2);
}

.nox-settings-label {
    display: flex;
    align-items: center;
    gap: 9px;
    font-weight: 750;
}

.nox-account-list {
    display: grid;
    max-height: min(54vh, 460px);
    gap: 10px;
    overflow-y: auto;
    padding-right: 3px;
}

.nox-account-item {
    display: grid;
    gap: 12px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface-2);
}

.nox-account-item-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.nox-account-item-head > div {
    display: grid;
    gap: 2px;
}

.nox-account-item-head strong {
    color: var(--text);
    font-size: .94rem;
}

.nox-account-item-head span {
    color: var(--muted);
    font-size: .72rem;
}

.nox-order-status {
    flex: 0 0 auto;
    padding: 5px 8px;
    border-radius: 6px;
    background: rgba(239, 180, 58, .12);
    color: #efb43a !important;
    font-size: .7rem !important;
    font-weight: 850;
}

.nox-order-status.status-completed,
.nox-order-status.status-served {
    background: rgba(74, 222, 128, .1);
    color: #64d98d !important;
}

.nox-mix-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.nox-mix-summary span {
    padding: 6px 8px;
    border-radius: 6px;
    background: var(--surface-3);
    color: var(--muted);
    font-size: .76rem;
}

.nox-mix-summary b {
    color: var(--text);
}

.nox-item-action {
    display: inline-flex;
    min-height: 40px;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border: 1px solid rgba(239, 180, 58, .3);
    border-radius: 8px;
    background: rgba(239, 180, 58, .08);
    color: #efb43a;
    font-size: .8rem;
    font-weight: 800;
    cursor: pointer;
}

.nox-icon-action {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 8px;
}

.nox-icon-action.danger {
    color: #ef8a7b;
}

.nox-profile-state {
    display: flex;
    min-height: 150px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 18px;
    border: 1px dashed var(--line);
    border-radius: 12px;
    color: var(--muted);
    text-align: center;
}

.nox-profile-state.error {
    flex-direction: column;
    color: #ef8a7b;
}

.nox-profile-state button {
    min-height: 38px;
    padding: 7px 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface-3);
    color: var(--text);
}

.spin {
    animation: nox-spin .9s linear infinite;
}

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

@media (max-width: 640px) {
    .modal-dialog:has(.nox-profile-modal) {
        align-items: flex-end;
        min-height: 100%;
        margin: 0;
    }

    .nox-profile-modal {
        width: 100%;
        max-height: 92dvh;
        border-width: 1px 0 0;
        border-radius: 22px 22px 0 0;
    }

    .nox-profile-modal .modal-body {
        overflow-y: auto;
        padding-inline: 14px;
    }

    .nox-profile-modal .nox-tabs .nav-link {
        flex-direction: column;
        gap: 4px;
        font-size: .7rem;
    }

    .nox-profile-identity {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .nox-signout-button {
        grid-column: 1 / -1;
        width: 100%;
    }

    .nox-settings-card {
        align-items: stretch;
        flex-direction: column;
    }

    .nox-settings-card .lang-select {
        width: 100%;
        min-height: 44px;
    }
}