/* ============================================================
   BambooSMP store theme — light / playful (CatCraft-inspired)
   Loaded via asset('app.css'). Class names below are the
   contract the Twig templates rely on — keep them intact.
   ============================================================ */

body {
    font-family: 'Rubik', sans-serif;
    background: var(--background-color);
    color: var(--text-primary) !important;
    -webkit-font-smoothing: antialiased;
}
.container { max-width: var(--content-width) !important; }

/* ---- App color helpers (mapped to schema/theme vars) ---- */
.bg-content        { background: var(--content-color); }
.bg-content-light  { background: var(--content-light-color); }
.bg-secondary      { background: var(--secondary-color); }
.bg-primary        { background: var(--primary-color); }
.text-primary      { color: var(--primary-color); }
.text-muted        { color: var(--text-muted); }
.hover\:text-primary:hover { color: var(--primary-color); }

/* ---- White cards: soft shadow + border so they pop on the light bg ---- */
.bg-content {
    border: 1px solid rgba(43, 52, 64, 0.06);
    box-shadow: 0 10px 30px -12px rgba(43, 52, 64, 0.18) !important;
}

/* On white cards, headings built for the dark theme (text-white) must
   become dark. Scope to headings only so icons/buttons on colored chips
   keep their white text. */
.bg-content :is(h1, h2, h3, h4, h5, h6) { color: var(--text-primary); }
.bg-content .text-white { color: var(--text-primary); }
.bg-content .bg-primary,
.bg-content .bg-primary :is(h1,h2,h3,h4,h5,h6,i,span,p) { color: #fff; }
/* translucent white chips become subtle dark on light surfaces */
.bg-content [class*="bg-white/"] { background: rgba(43, 52, 64, 0.05); }
.bg-content [class*="border-white/"] { border-color: rgba(43, 52, 64, 0.08); }

/* Primary buttons keep white text on the brand color */
a.bg-primary, button.bg-primary, .bg-primary.btn-shine { color: #fff !important; }

/* ---- Buttons / shine ---- */
.btn-shine { position: relative; overflow: hidden; }
.btn-shine:hover:before {
    animation: shine .5s linear;
    background-color: rgba(255, 255, 255, .25);
    content: ""; height: 300px; left: -100px;
    position: absolute; top: -100px; transform: rotate(30deg); width: 10%;
}
@keyframes shine { 0% { left: -100px } to { left: calc(100% + 100px) } }

[x-cloak] { display: none !important; }

/* ============================================================
   HERO — bright pixel-ish sky with the store logo
   ============================================================ */
#hero {
    position: relative;
    background: transparent; /* the bamboo body backdrop shows through */
}
#hero .logo img { filter: drop-shadow(0 10px 16px rgba(0,0,0,.35)); }
#hero .icon { box-shadow: 0 12px 24px -8px rgba(43,52,64,.45); }

/* text logo fallback (when no logo image is set) */
.text-logo {
    font-weight: 900; letter-spacing: -.02em; line-height: 1;
    color: #fff; text-shadow: 0 4px 0 rgba(43,52,64,.18), 0 10px 22px rgba(43,52,64,.25);
}
.text-logo .accent { color: var(--primary-color); }

/* global hero utility strip (controls in the hero) */
.hero-utility {
    position: relative; z-index: 3;
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
    padding-top: 1.5rem;
}
.hero-utility .hu-btn {
    display: inline-flex; align-items: center; gap: .5rem;
    background: var(--primary-color); color: #fff;
    font-weight: 800; font-size: .78rem; text-transform: uppercase; letter-spacing: .04em;
    padding: .7rem 1.15rem; border-radius: .85rem; white-space: nowrap;
    box-shadow: 0 12px 24px -10px rgba(0,0,0,.5);
    transition: transform .2s ease, opacity .2s ease;
}
.hero-utility .hu-btn:hover { transform: translateY(-2px); opacity: .95; }
.hero-utility .hu-right { display: flex; align-items: center; gap: .7rem; }
.hero-utility .hu-pill {
    display: inline-flex; align-items: center; gap: .45rem;
    background: rgba(255,255,255,.20); border: 1px solid rgba(255,255,255,.35);
    backdrop-filter: blur(8px);
    color: #fff; font-weight: 700; font-size: .8rem; text-transform: uppercase; letter-spacing: .02em;
    padding: .62rem .95rem; border-radius: .8rem; white-space: nowrap;
    text-shadow: 0 1px 4px rgba(0,0,0,.35);
    transition: background .2s ease;
}
.hero-utility .hu-pill:hover { background: rgba(255,255,255,.30); }
.hero-utility .hu-user { display: flex; align-items: center; gap: .65rem; color: #fff; }
.hero-utility .hu-text { display: flex; flex-direction: column; line-height: 1.15; text-align: right; text-shadow: 0 1px 5px rgba(0,0,0,.45); }
.hero-utility .hu-name { font-weight: 800; font-size: .92rem; }
.hero-utility .hu-sub { font-size: .7rem; opacity: .85; }
.hero-utility .hu-avatar {
    width: 44px; height: 44px; border-radius: 12px; overflow: hidden;
    border: 2px solid rgba(255,255,255,.6); box-shadow: 0 8px 16px -6px rgba(0,0,0,.55);
    display: flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,.18); color: #fff; flex-shrink: 0;
    transition: transform .2s ease;
}
.hero-utility .hu-avatar img { width: 100%; height: 100%; object-fit: cover; image-rendering: pixelated; }
.hero-utility .hu-user:hover .hu-avatar { transform: translateY(-2px); }
@media (max-width: 640px) {
    .hero-utility { flex-wrap: wrap; gap: .55rem; padding-top: 1rem; }
    .hero-utility .hu-text { display: none; }
    .hero-utility .hu-btn { font-size: .68rem; padding: .55rem .8rem; }
}

/* full-page fixed background (driven by the admin "Background URL" / hero_background) */
#appBg {
    position: fixed; inset: 0;
    overflow: hidden; opacity: 1; z-index: 0;
}
#appBg img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
#storeApp { position: relative; z-index: 5; }
/* soft dark scrim at the very top for hero text contrast */
#appBg .fade {
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(6,16,10,.42) 0%, rgba(6,16,10,0) 320px);
}

/* ============================================================
   CATEGORY BENTO TILES (homepage)
   ============================================================ */
.cat-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 168px;
    gap: 1.9rem;
}
.cat-tile {
    position: relative; overflow: visible;
    border-radius: .55rem;
    color: #fff; text-decoration: none;
    transition: transform .22s ease, filter .22s ease;
    /* depth only — follows the eroded shape, no outline */
    filter: drop-shadow(0 14px 12px rgba(0,0,0,.42));
}
.cat-glass {
    position: absolute; inset: 0; z-index: 0;
    display: flex; flex-direction: column; justify-content: center;
    padding: 2rem 2.25rem; overflow: hidden;
    border-radius: .55rem; color: #fff;
    background: linear-gradient(0deg, rgba(8,20,13,.28), rgba(14,30,20,.22));
    box-shadow: inset 0 1px 0 rgba(255,255,255,.22);
}
/* pixel-eroded edges — the block dissolves into pixels at every edge (kept teeth +
   transparent notches) so it melts into the scene instead of having a clean border */
.cat-glass {
    -webkit-mask:
        linear-gradient(#000, #000) 50% 50% / calc(100% - 18px) calc(100% - 18px) no-repeat,
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='9' viewBox='0 0 56 9'%3E%3Cg fill='%23fff'%3E%3Crect x='0' y='0' width='7' height='9'/%3E%3Crect x='7' y='4' width='7' height='5'/%3E%3Crect x='21' y='0' width='7' height='9'/%3E%3Crect x='28' y='5' width='7' height='4'/%3E%3Crect x='35' y='2' width='7' height='7'/%3E%3Crect x='49' y='3' width='7' height='6'/%3E%3C/g%3E%3C/svg%3E") top left / 56px 9px repeat-x,
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='9' viewBox='0 0 56 9'%3E%3Cg fill='%23fff'%3E%3Crect x='0' y='0' width='7' height='9'/%3E%3Crect x='7' y='0' width='7' height='5'/%3E%3Crect x='21' y='0' width='7' height='9'/%3E%3Crect x='28' y='0' width='7' height='4'/%3E%3Crect x='35' y='0' width='7' height='7'/%3E%3Crect x='49' y='0' width='7' height='6'/%3E%3C/g%3E%3C/svg%3E") bottom left / 56px 9px repeat-x,
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='9' height='56' viewBox='0 0 9 56'%3E%3Cg fill='%23fff'%3E%3Crect x='0' y='0' width='9' height='7'/%3E%3Crect x='4' y='7' width='5' height='7'/%3E%3Crect x='0' y='21' width='9' height='7'/%3E%3Crect x='5' y='28' width='4' height='7'/%3E%3Crect x='2' y='35' width='7' height='7'/%3E%3Crect x='3' y='49' width='6' height='7'/%3E%3C/g%3E%3C/svg%3E") top left / 9px 56px repeat-y,
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='9' height='56' viewBox='0 0 9 56'%3E%3Cg fill='%23fff'%3E%3Crect x='0' y='0' width='9' height='7'/%3E%3Crect x='0' y='7' width='5' height='7'/%3E%3Crect x='0' y='21' width='9' height='7'/%3E%3Crect x='0' y='28' width='4' height='7'/%3E%3Crect x='0' y='35' width='7' height='7'/%3E%3Crect x='0' y='49' width='6' height='7'/%3E%3C/g%3E%3C/svg%3E") top right / 9px 56px repeat-y;
    mask:
        linear-gradient(#000, #000) 50% 50% / calc(100% - 18px) calc(100% - 18px) no-repeat,
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='9' viewBox='0 0 56 9'%3E%3Cg fill='%23fff'%3E%3Crect x='0' y='0' width='7' height='9'/%3E%3Crect x='7' y='4' width='7' height='5'/%3E%3Crect x='21' y='0' width='7' height='9'/%3E%3Crect x='28' y='5' width='7' height='4'/%3E%3Crect x='35' y='2' width='7' height='7'/%3E%3Crect x='49' y='3' width='7' height='6'/%3E%3C/g%3E%3C/svg%3E") top left / 56px 9px repeat-x,
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='9' viewBox='0 0 56 9'%3E%3Cg fill='%23fff'%3E%3Crect x='0' y='0' width='7' height='9'/%3E%3Crect x='7' y='0' width='7' height='5'/%3E%3Crect x='21' y='0' width='7' height='9'/%3E%3Crect x='28' y='0' width='7' height='4'/%3E%3Crect x='35' y='0' width='7' height='7'/%3E%3Crect x='49' y='0' width='7' height='6'/%3E%3C/g%3E%3C/svg%3E") bottom left / 56px 9px repeat-x,
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='9' height='56' viewBox='0 0 9 56'%3E%3Cg fill='%23fff'%3E%3Crect x='0' y='0' width='9' height='7'/%3E%3Crect x='4' y='7' width='5' height='7'/%3E%3Crect x='0' y='21' width='9' height='7'/%3E%3Crect x='5' y='28' width='4' height='7'/%3E%3Crect x='2' y='35' width='7' height='7'/%3E%3Crect x='3' y='49' width='6' height='7'/%3E%3C/g%3E%3C/svg%3E") top left / 9px 56px repeat-y,
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='9' height='56' viewBox='0 0 9 56'%3E%3Cg fill='%23fff'%3E%3Crect x='0' y='0' width='9' height='7'/%3E%3Crect x='0' y='7' width='5' height='7'/%3E%3Crect x='0' y='21' width='9' height='7'/%3E%3Crect x='0' y='28' width='4' height='7'/%3E%3Crect x='0' y='35' width='7' height='7'/%3E%3Crect x='0' y='49' width='6' height='7'/%3E%3C/g%3E%3C/svg%3E") top right / 9px 56px repeat-y;
}
.cat-tile:hover { transform: translateY(-5px);
    filter: drop-shadow(0 20px 16px rgba(0,0,0,.5)) drop-shadow(0 0 14px var(--cat-color));
}
.cat-tile.feature { grid-row: span 2; }
.cat-tile h3 {
    position: relative; z-index: 2;
    color: #fff !important; font-weight: 900; font-size: 2.1rem;
    letter-spacing: .02em; text-transform: uppercase;
    text-shadow: 0 3px 0 rgba(0,0,0,.12), 0 4px 14px rgba(0,0,0,.18);
}
.cat-tile.feature h3 { font-size: 2.6rem; }
/* pixel bamboo texture — vertical stalks + node rings, blended into the
   tile colour so each tile reads like a carved bamboo panel (CSS-only) */
.cat-tile .cat-clouds {
    position: absolute; inset: 0; pointer-events: none; z-index: 1;
    border-radius: inherit; overflow: hidden;
    mix-blend-mode: soft-light; opacity: .45;
    background-image:
        /* node rings (horizontal bamboo segments) */
        repeating-linear-gradient(180deg,
            rgba(0,0,0,0) 0, rgba(0,0,0,0) 58px,
            rgba(0,0,0,.22) 58px, rgba(0,0,0,.22) 62px,
            rgba(255,255,255,.16) 62px, rgba(255,255,255,.16) 66px,
            rgba(0,0,0,0) 66px, rgba(0,0,0,0) 72px),
        /* stalk shading (vertical columns) */
        repeating-linear-gradient(90deg,
            rgba(255,255,255,.14) 0, rgba(255,255,255,.14) 6px,
            rgba(255,255,255,.04) 6px, rgba(255,255,255,.04) 30px,
            rgba(0,0,0,.16) 30px, rgba(0,0,0,.16) 36px,
            rgba(0,0,0,0) 36px, rgba(0,0,0,0) 42px);
    background-size: 100% 72px, 42px 100%;
}
.cat-tile .cat-icon {
    position: absolute; right: 1.5rem; top: 50%; transform: translateY(-50%) rotate(-8deg);
    font-size: 6.5rem; line-height: 1; opacity: .26; color: #fff; z-index: 1;
    pointer-events: none; transition: transform .25s ease;
}
.cat-tile.feature .cat-icon { font-size: 9rem; top: 1.75rem; transform: rotate(-10deg); }
.cat-tile:hover .cat-icon { transform: translateY(-50%) rotate(-4deg) scale(1.06); }
.cat-tile.feature:hover .cat-icon { transform: rotate(-6deg) scale(1.06); }

/* mascot images (when a navlink has an image) */
.cat-tile .cat-mascot {
    position: absolute; right: 1.4rem; top: 50%; transform: translateY(-50%) rotate(-6deg);
    height: 118px; width: auto; z-index: 1; pointer-events: none;
    filter: drop-shadow(0 9px 12px rgba(43,52,64,.32));
    transition: transform .25s ease;
}
.cat-tile.feature .cat-mascot { height: 210px; right: 1.75rem; top: 1.5rem; transform: rotate(-8deg); }
.cat-tile:hover .cat-mascot { transform: translateY(-50%) rotate(-3deg) scale(1.06); }
.cat-tile.feature:hover .cat-mascot { transform: rotate(-4deg) scale(1.06); }
@media (max-width: 768px) {
    .cat-tile .cat-mascot, .cat-tile.feature .cat-mascot { height: 92px; top: 50%; right: 1rem; transform: translateY(-50%) rotate(-6deg); }
}

/* lively gradient cycle (bamboo-forward, CatCraft variety) */
/* coloured frosted glass — each tile keeps its own colour but stays translucent */
.cat-tile:nth-of-type(6n+1) { --cat-color: #34d36b; }
.cat-tile:nth-of-type(6n+2) { --cat-color: #f7a814; }
.cat-tile:nth-of-type(6n+3) { --cat-color: #1aa6d0; }
.cat-tile:nth-of-type(6n+4) { --cat-color: #f45e58; }
.cat-tile:nth-of-type(6n+5) { --cat-color: #8270ef; }
.cat-tile:nth-of-type(6n+6) { --cat-color: #79c244; }
.cat-tile:nth-of-type(6n+1) .cat-glass { background: linear-gradient(180deg, rgba(255,255,255,.13), rgba(255,255,255,0) 36%), linear-gradient(150deg, rgba(42,240,114,.77), rgba(15,184,80,.6)); }
.cat-tile:nth-of-type(6n+2) .cat-glass { background: linear-gradient(180deg, rgba(255,255,255,.15), rgba(255,255,255,0) 36%), linear-gradient(150deg, rgba(255,192,26,.82), rgba(250,152,0,.6)); }
.cat-tile:nth-of-type(6n+3) .cat-glass { background: linear-gradient(180deg, rgba(255,255,255,.13), rgba(255,255,255,0) 36%), linear-gradient(150deg, rgba(34,214,250,.79), rgba(8,158,216,.6)); }
.cat-tile:nth-of-type(6n+4) .cat-glass { background: linear-gradient(180deg, rgba(255,255,255,.13), rgba(255,255,255,0) 36%), linear-gradient(150deg, rgba(255,98,80,.79), rgba(238,52,62,.6)); }
.cat-tile:nth-of-type(6n+5) .cat-glass { background: linear-gradient(180deg, rgba(255,255,255,.13), rgba(255,255,255,0) 36%), linear-gradient(150deg, rgba(154,136,255,.79), rgba(106,86,246,.6)); }
.cat-tile:nth-of-type(6n+6) .cat-glass { background: linear-gradient(180deg, rgba(255,255,255,.13), rgba(255,255,255,0) 36%), linear-gradient(150deg, rgba(160,230,80,.79), rgba(92,184,44,.6)); }

@media (max-width: 768px) {
    .cat-grid { grid-template-columns: 1fr; grid-auto-rows: 140px; }
    .cat-tile.feature { grid-row: span 1; }
    .cat-tile h3, .cat-tile.feature h3 { font-size: 1.7rem; }
}

/* ============================================================
   HOME TOP BAR + BOTTOM BAR (CatCraft-style)
   ============================================================ */
.home-topbar { overflow: visible; }
.topbar-btn {
    display: inline-flex; align-items: center; gap: .5rem;
    font-weight: 800; font-size: .8rem; text-transform: uppercase; letter-spacing: .03em;
    padding: .7rem 1.1rem; border-radius: .8rem; white-space: nowrap;
    transition: transform .2s ease, opacity .2s ease;
}
.topbar-btn--accent { background: var(--primary-color); color: #fff; }
.topbar-btn--accent:hover { transform: translateY(-2px); opacity: .94; }
.topbar-pill {
    display: inline-flex; align-items: center; gap: .5rem;
    font-weight: 700; font-size: .78rem; text-transform: uppercase; letter-spacing: .02em;
    color: var(--text-muted); background: rgba(43,52,64,.05);
    padding: .7rem 1rem; border-radius: .8rem; white-space: nowrap;
    transition: color .2s ease, background .2s ease;
}
.topbar-pill:hover { color: var(--text-primary); background: rgba(43,52,64,.08); }
.topbar-user { display: flex; align-items: center; gap: .8rem; }
.topbar-avatar { width: 48px; height: 48px; border-radius: 13px; overflow: hidden; box-shadow: 0 6px 12px -6px rgba(43,52,64,.35); flex-shrink: 0; }
.topbar-avatar img { width: 100%; height: 100%; object-fit: cover; image-rendering: pixelated; transition: transform .2s ease; }
.topbar-user:hover .topbar-avatar img { transform: scale(1.06); }
.topbar-avatar-fallback { width: 100%; height: 100%; background: var(--content-light-color); display: flex; align-items: center; justify-content: center; color: var(--text-muted); font-size: 1.2rem; }

.bar-icon {
    width: 46px; height: 46px; border-radius: .8rem;
    background: var(--footer-color); color: #fff;
    display: flex; align-items: center; justify-content: center; font-size: 1.05rem;
    transition: transform .2s ease, background .2s ease;
}
.bar-icon:hover { transform: translateY(-2px); }
.bar-accent { background: var(--primary-color); }
.bar-pill {
    display: inline-flex; align-items: center; gap: .55rem;
    background: var(--footer-color); color: #fff; font-weight: 700; font-size: .85rem;
    padding: .75rem 1.1rem; border-radius: .8rem; white-space: nowrap;
}
.bar-pill--credit { font-weight: 600; }
.bar-pill--credit .text-primary { color: #ffce5a !important; }

/* ============================================================
   FOOTER — dark slate (matches CatCraft)
   ============================================================ */
footer {
    margin-top: auto;
    background: var(--footer-color) !important;
    border-top: none !important;
    color: #fff;
    position: relative;
}
/* Minecraft-style pixelated top edge (bamboo accent blocks) */
.footer-pixel-top {
    position: absolute; left: 0; right: 0; top: 0;
    height: 80px; transform: translateY(-100%);
    pointer-events: none; z-index: 1;
    background-repeat: repeat-x; background-position: bottom left; background-size: 288px 80px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='288' height='80' viewBox='0 0 288 80'%3E%3Cg fill='%230d1f15'%3E%3Crect x='0' y='36' width='24' height='44'/%3E%3Crect x='24' y='52' width='24' height='28'/%3E%3Crect x='48' y='28' width='24' height='52'/%3E%3Crect x='72' y='44' width='24' height='36'/%3E%3Crect x='96' y='20' width='24' height='60'/%3E%3Crect x='120' y='52' width='24' height='28'/%3E%3Crect x='144' y='36' width='24' height='44'/%3E%3Crect x='168' y='52' width='24' height='28'/%3E%3Crect x='192' y='28' width='24' height='52'/%3E%3Crect x='216' y='44' width='24' height='36'/%3E%3Crect x='240' y='20' width='24' height='60'/%3E%3Crect x='264' y='44' width='24' height='36'/%3E%3C/g%3E%3Crect x='98' y='4' width='16' height='16' fill='%2327c05a'/%3E%3Crect x='242' y='6' width='13' height='13' fill='%2334d36b'/%3E%3Crect x='50' y='14' width='11' height='11' fill='%231c9d49'/%3E%3C/svg%3E");
}
footer .text-white, footer h3, footer h4 { color: #fff !important; }
footer .text-muted { color: #aab4c0 !important; }
footer .bg-content-light { background: rgba(255,255,255,.08) !important; }
footer .bg-content-light:hover { background: var(--primary-color) !important; }
footer a:hover { color: var(--primary-color); }
footer [class*="border-white/"], footer .border-content-light { border-color: rgba(255,255,255,.10) !important; }
#paynow { max-width: 38px; margin: 0 auto; padding-top: 5px; }
#paynow path { fill: #ffffff; }
.border-content-light { border-color: rgba(43,52,64,.10) !important; }

/* ============================================================
   MODAL / misc
   ============================================================ */
.custom-avatar { overflow: hidden; border-radius: 10px; }
.modal-nav::-webkit-scrollbar { width: 8px !important; border-radius: 100px !important; overflow: hidden; }
.modal-nav::-webkit-scrollbar-track { background: rgba(0,0,0,.3); border-radius: 100px !important; }
.modal-nav::-webkit-scrollbar-thumb { background: linear-gradient(180deg, #38c95f, #1c9d49); border-radius: 100px !important; }
.modal-nav { padding-right: 15px !important; padding-left: 5px !important; }

.card-loading { position: absolute; inset: 0; background: var(--background-color); z-index: 5; opacity: .85; }
#notification-alert .font-medium { text-transform: capitalize; }

.loader {
    width: 48px; height: 48px;
    border: 5px solid var(--primary-color); border-bottom-color: transparent;
    border-radius: 50%; display: inline-block; box-sizing: border-box;
    animation: rotation 1s linear infinite;
}
@keyframes rotation { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

.gift-icon {
    box-shadow: 0px 0px 20px rgba(43,52,64,.25);
    cursor: pointer; background: rgba(255,255,255,.5);
    font-size: 14px !important; backdrop-filter: blur(15px);
    border: 1px solid rgba(43,52,64,.10);
}

/* sidebar module ordering (unchanged contract) */
.sidebar .top-customer   { order: 2; }
.sidebar .recent-payments{ order: 3; }
.sidebar .text-block     { order: 15; }
.sidebar .giftcards      { order: 10; }

@media only screen and (max-width: 768px) {
    .sidebar .store-menu-toggle { display: none !important; }
    .view--home #mobile-secondary { display: none !important; }
}

/* ============================================================
   PRODUCT PAGE
   ============================================================ */
.page-body {
    background: var(--content-color);
    border: 1px solid rgba(43, 52, 64, 0.06);
    box-shadow: 0 10px 30px -12px rgba(43, 52, 64, 0.18);
    border-radius: 1.5rem;
    padding: 1.75rem;
}
.product-img { width: 100%; border-radius: 1.25rem; object-fit: cover; box-shadow: 0 12px 28px -14px rgba(43,52,64,.4); }
.product-name { font-size: 2rem; font-weight: 900; line-height: 1.1; color: var(--text-primary); }
.product-name span { display: block; font-size: .85rem; font-weight: 600; color: var(--text-muted); margin-top: .25rem; }
.product-price { margin-top: .5rem; }
.product-price h3 { font-size: 1.7rem; font-weight: 800; color: var(--primary-color); }
.product-price h3.line-through { font-size: 1rem; font-weight: 600; color: #ef4444; }
.small-title { display: flex; align-items: center; gap: .6rem; font-weight: 700; color: var(--text-primary); margin-top: 1.25rem; }
.product-det-border { flex: 1; height: 1px; background: rgba(43, 52, 64, .1); }
.small-text { color: var(--text-muted); margin-top: .35rem; }
.product-description { color: var(--text-muted); }

#mainActions, #giftActions { flex-wrap: wrap; }
.add-btn {
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--primary-color); color: #fff; font-weight: 700;
    padding: .85rem 1.6rem; border-radius: .9rem; border: none; cursor: pointer;
    transition: transform .2s ease, opacity .2s ease;
}
.add-btn:hover { opacity: .92; transform: translateY(-2px); }
.add-gift-btn {
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--content-light-color); color: var(--text-primary); font-weight: 700;
    padding: .85rem 1.6rem; border-radius: .9rem; border: none; cursor: pointer;
    transition: all .2s ease;
}
.add-gift-btn:hover { background: var(--primary-color); color: #fff; transform: translateY(-2px); }
.close-gift {
    display: inline-flex; align-items: center; justify-content: center;
    background: #fde8e8; color: #ef4444; font-weight: 700;
    padding: .85rem 1.25rem; border-radius: .9rem; border: none; cursor: pointer;
    transition: all .2s ease;
}
.close-gift:hover { background: #ef4444; color: #fff; }
.form-select, .form-input {
    background: var(--content-light-color) !important;
    border: 1px solid rgba(43,52,64,.1) !important;
    color: var(--text-primary) !important;
    border-radius: .75rem;
}

/* ============================================================
   Blocky / pixel button consistency (light touch, tiles stay the star)
   ============================================================ */
/* Minecraft-style bevel helper look */
.hu-btn, #hero .icon, .hu-pill, .bar-pill, .bar-icon, .hu-avatar {
    border-radius: 5px;
}
/* big buttons: blocky + bevel */
.hu-btn {
    border-radius: 0;
    box-shadow: inset 2px 2px 0 rgba(255,255,255,.30), inset -2px -2px 0 rgba(0,0,0,.28),
                0 10px 20px -10px rgba(0,0,0,.5);
    /* pixel-notched corners */
    clip-path: polygon(0 5px, 5px 5px, 5px 0, calc(100% - 5px) 0, calc(100% - 5px) 5px, 100% 5px,
                       100% calc(100% - 5px), calc(100% - 5px) calc(100% - 5px), calc(100% - 5px) 100%,
                       5px 100%, 5px calc(100% - 5px), 0 calc(100% - 5px));
}
#hero .icon {
    border-radius: 7px;
    box-shadow: 0 14px 26px -10px rgba(0,0,0,.5),
                inset 2px 2px 0 rgba(255,255,255,.26), inset -2px -2px 0 rgba(0,0,0,.22);
}
/* small pills/icons: clean, just a touch blockier + faint bevel */
.hu-pill, .bar-pill, .bar-icon {
    box-shadow: inset 1px 1px 0 rgba(255,255,255,.14), inset -1px -1px 0 rgba(0,0,0,.22);
}
.bar-icon { box-shadow: inset 2px 2px 0 rgba(255,255,255,.12), inset -2px -2px 0 rgba(0,0,0,.28); }

/* ============================================================
   CATEGORY PAGE — dark panels + bamboo "tree" of packages
   ============================================================ */
/* flip this page's white panels to dark glass with a bevel frame */
.view--products .bg-content {
    background: rgba(13, 28, 19, .74) !important;
    border: 1px solid rgba(255,255,255,.08);
    box-shadow: inset 2px 2px 0 rgba(255,255,255,.06), inset -2px -2px 0 rgba(0,0,0,.32),
                0 14px 30px -16px rgba(0,0,0,.6) !important;
    -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
    color: #e7eee9;
}
.view--products .bg-content :is(h1,h2,h3,h4,h5,h6) { color: #fff; }
.view--products .bg-content .text-white { color: #fff; }
.view--products .bg-content .text-muted { color: #9fb0a4 !important; }
.view--products .bg-content .bg-content-light { background: rgba(255,255,255,.07) !important; }
.view--products .bg-content [class*="bg-white/"] { background: rgba(255,255,255,.07); }

/* category page: keep only the Categories panel in the sidebar */
.view--products .sidebar .recent-payments,
.view--products .sidebar .top-customer,
.view--products .sidebar .giftcards,
.view--products .sidebar .text-block { display: none !important; }

/* the bamboo emerges from directly UNDER the glass header (not through it) so the
   header sits on top and the bamboo flows out the bottom as one piece */
.view--products .content-header { position: relative; z-index: 2; }
.view--products .inner-content { gap: 0; }
.view--products .bamboo-tree { margin-top: 0; padding-top: 30px; }
.bamboo-tree { position: relative; padding: 8px 0 18px; }
.bamboo-tree::before {
    content: ""; position: absolute; left: 50%; top: 0; bottom: 6px;
    width: 24px; transform: translateX(-50%); border-radius: 0 0 4px 4px; z-index: 1;
    background:
        repeating-linear-gradient(180deg, rgba(0,0,0,.16) 0 2px, transparent 2px 5px, transparent 5px 52px, rgba(0,0,0,.20) 52px 56px, rgba(255,255,255,.14) 56px 59px),
        linear-gradient(90deg, #1c8b3c 0%, #39cc60 42%, #29a850 100%);
    box-shadow: inset 2px 0 0 rgba(255,255,255,.28), inset -3px 0 0 rgba(0,0,0,.22), 0 0 22px rgba(40,200,90,.22);
}
.branch-item { position: relative; display: grid; grid-template-columns: 1fr 1fr; align-items: center; min-height: 134px; }
.branch-item::before {
    content: ""; position: absolute; top: 50%; height: 7px; transform: translateY(-50%); z-index: 1;
    background: linear-gradient(90deg, #1c8b3c, #34c25c);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.3), inset 0 -2px 0 rgba(0,0,0,.2);
}
.branch-item::after {
    content: ""; position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
    width: 15px; height: 15px; border-radius: 3px; z-index: 2; background: #46e070;
    box-shadow: inset 1px 1px 0 rgba(255,255,255,.5), inset -2px -2px 0 rgba(0,0,0,.25), 0 0 10px rgba(70,224,112,.5);
}
.branch-item:nth-child(odd) .pkg  { grid-column: 1; justify-self: end;   margin-right: 46px; }
.branch-item:nth-child(even) .pkg { grid-column: 2; justify-self: start; margin-left: 46px; }
.branch-item:nth-child(odd)::before  { right: 50%; width: 46px; }
.branch-item:nth-child(even)::before { left: 50%; width: 46px; }

.pkg {
    position: relative; z-index: 3; width: min(340px, 100%);
    display: flex; align-items: stretch; cursor: pointer; overflow: hidden; border-radius: 7px;
    background: rgba(11, 26, 17, .92);
    box-shadow: inset 2px 2px 0 rgba(255,255,255,.10), inset -2px -2px 0 rgba(0,0,0,.45),
                0 14px 26px -14px rgba(0,0,0,.7);
    transition: transform .2s ease, box-shadow .2s ease;
}
.pkg:hover { transform: translateY(-3px); box-shadow: inset 2px 2px 0 rgba(255,255,255,.14), inset -2px -2px 0 rgba(0,0,0,.45), 0 20px 30px -14px rgba(0,0,0,.7), 0 0 0 2px rgba(40,200,90,.4); }
.pkg-img { position: relative; width: 104px; flex-shrink: 0; background: rgba(255,255,255,.05); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.pkg-img img { width: 100%; height: 100%; object-fit: cover; image-rendering: pixelated; transition: transform .25s ease; }
.pkg:hover .pkg-img img { transform: scale(1.08); }
.pkg-img i { font-size: 2.4rem; color: var(--primary-color); }
.pkg-sale { position: absolute; top: 6px; left: 6px; background: #ef4444; color: #fff; font-size: .58rem; font-weight: 800; padding: 2px 6px; border-radius: 3px; letter-spacing: .04em; }
.pkg-oos { position: absolute; inset: 0; background: rgba(0,0,0,.62); color: #ff8a8a; font-weight: 800; font-size: .7rem; display: flex; align-items: center; justify-content: center; text-align: center; }
.pkg-body { flex: 1; min-width: 0; padding: 14px 16px; display: flex; flex-direction: column; gap: 6px; }
.pkg-name { color: #fff; font-weight: 800; font-size: 1.05rem; line-height: 1.15; }
.pkg-price { display: flex; align-items: baseline; gap: 8px; }
.pkg-price .now { color: var(--primary-color); font-weight: 800; font-size: 1.12rem; }
.pkg-price .was { color: #8aa090; font-size: .85rem; text-decoration: line-through; }
.pkg-cta {
    margin-top: auto; align-self: flex-start; display: inline-flex; align-items: center; gap: 6px;
    background: var(--primary-color); color: #fff; font-weight: 700; font-size: .78rem;
    padding: 7px 12px; border-radius: 5px;
    box-shadow: inset 1px 1px 0 rgba(255,255,255,.25), inset -1px -1px 0 rgba(0,0,0,.25);
}
.pkg-cta.is-current { background: rgba(16,185,129,.22); color: #34d399; box-shadow: none; }
.pkg-cta.is-pending { background: rgba(234,179,8,.22); color: #facc15; box-shadow: none; }

/* featured TOP packages — first 3 are bigger (top ranks), decreasing in size */
.branch-item:nth-child(1) { min-height: 178px; }
.branch-item:nth-child(1) .pkg {
    width: min(440px, 100%);
    box-shadow: inset 2px 2px 0 rgba(255,255,255,.13), inset -2px -2px 0 rgba(0,0,0,.45),
                0 18px 32px -14px rgba(0,0,0,.75), 0 0 0 2px rgba(64,210,103,.55), 0 0 26px rgba(64,210,103,.30);
}
.branch-item:nth-child(1) .pkg-img { width: 150px; }
.branch-item:nth-child(1) .pkg-name { font-size: 1.42rem; }
.branch-item:nth-child(1) .pkg-price .now { font-size: 1.45rem; }
.branch-item:nth-child(1) .pkg-cta { font-size: .85rem; padding: 9px 16px; }

.branch-item:nth-child(2) { min-height: 160px; }
.branch-item:nth-child(2) .pkg {
    width: min(405px, 100%);
    box-shadow: inset 2px 2px 0 rgba(255,255,255,.11), inset -2px -2px 0 rgba(0,0,0,.45),
                0 16px 28px -14px rgba(0,0,0,.72), 0 0 0 2px rgba(64,210,103,.32);
}
.branch-item:nth-child(2) .pkg-img { width: 130px; }
.branch-item:nth-child(2) .pkg-name { font-size: 1.22rem; }
.branch-item:nth-child(2) .pkg-price .now { font-size: 1.28rem; }

.branch-item:nth-child(3) { min-height: 148px; }
.branch-item:nth-child(3) .pkg {
    width: min(375px, 100%);
    box-shadow: inset 2px 2px 0 rgba(255,255,255,.10), inset -2px -2px 0 rgba(0,0,0,.45),
                0 15px 26px -14px rgba(0,0,0,.7), 0 0 0 1px rgba(64,210,103,.24);
}
.branch-item:nth-child(3) .pkg-img { width: 116px; }
.branch-item:nth-child(3) .pkg-name { font-size: 1.12rem; }

@media (max-width: 860px) {
    .bamboo-tree::before { left: 16px; }
    .branch-item { grid-template-columns: 1fr; min-height: 0; margin-bottom: 14px; }
    .branch-item:nth-child(odd) .pkg, .branch-item:nth-child(even) .pkg { grid-column: 1; justify-self: stretch; margin: 0 0 0 46px; }
    .branch-item::before { left: 16px !important; right: auto !important; width: 30px !important; }
    .branch-item::after { left: 16px; }
    .pkg { width: 100%; }
}

/* ============================================================
   CATEGORIES SIDEBAR PANEL
   ============================================================ */
.store-categories { padding: 1.4rem 1.4rem 1.5rem; }
.store-categories .cat-head { display: flex; align-items: center; gap: .85rem; margin-bottom: 1.15rem; }
.store-categories .cat-head-ico {
    width: 42px; height: 42px; border-radius: 7px; flex-shrink: 0;
    background: linear-gradient(145deg, #34d36b, #1c9d49); color: #fff;
    display: flex; align-items: center; justify-content: center; font-size: 1.05rem;
    box-shadow: inset 1px 1px 0 rgba(255,255,255,.3), inset -2px -2px 0 rgba(0,0,0,.25);
}
.store-categories .cat-head-txt { display: flex; flex-direction: column; line-height: 1.05; }
.store-categories .cat-head .lbl { font-size: .64rem; letter-spacing: .15em; text-transform: uppercase; font-weight: 800; color: var(--text-muted); }
.store-categories .cat-head .ttl { font-size: 1.4rem; font-weight: 900; color: var(--text-primary); }

.cat-list { display: flex; flex-direction: column; gap: .55rem; }
.cat-link {
    display: flex; align-items: center; gap: .8rem; padding: .65rem .75rem; border-radius: 7px;
    background: var(--content-light-color); color: var(--text-primary); text-decoration: none;
    box-shadow: inset 1px 1px 0 rgba(255,255,255,.5), inset -1px -1px 0 rgba(0,0,0,.06);
    transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
}
.cat-link:hover { transform: translateX(3px); background: rgba(52,211,107,.12); }
.cat-link-ico {
    width: 42px; height: 42px; flex-shrink: 0; border-radius: 6px;
    background: linear-gradient(145deg, #34d36b, #1c9d49); color: #fff;
    display: flex; align-items: center; justify-content: center; font-size: 1.02rem;
    box-shadow: inset 1px 1px 0 rgba(255,255,255,.3), inset -2px -2px 0 rgba(0,0,0,.25);
    transition: transform .18s ease;
}
.cat-link:hover .cat-link-ico { transform: rotate(-6deg); }
.cat-link-text { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.12; }
.cat-link-text .nm { font-weight: 800; font-size: .97rem; }
.cat-link-text .ds { font-size: .72rem; color: var(--text-muted); margin-top: 1px; }
.cat-link .chev { color: var(--text-muted); font-size: .78rem; transition: transform .18s ease, color .18s ease; }
.cat-link:hover .chev { transform: translateX(2px); }

/* active category */
.cat-link.is-active {
    background: linear-gradient(145deg, rgba(52,211,107,.22), rgba(28,157,73,.13));
    box-shadow: inset 1px 1px 0 rgba(255,255,255,.14), inset -1px -1px 0 rgba(0,0,0,.22),
                0 0 0 1.5px rgba(64,210,103,.55), 0 0 16px rgba(64,210,103,.2);
}
.cat-link.is-active .nm  { color: #1f9d49; }
.cat-link.is-active .chev { color: #1f9d49; }

/* dark variant for the category page */
.view--products .cat-link {
    background: rgba(255,255,255,.05); color: #e7eee9;
    box-shadow: inset 1px 1px 0 rgba(255,255,255,.07), inset -1px -1px 0 rgba(0,0,0,.32);
}
.view--products .cat-link:hover { background: rgba(255,255,255,.09); }
.view--products .cat-link-text .ds { color: #90a596; }
.view--products .cat-link .chev { color: #7d9486; }
.view--products .store-categories .cat-head .ttl { color: #fff; }
.view--products .store-categories .cat-head .lbl { color: #8fb89a; }
.view--products .cat-link.is-active {
    background: linear-gradient(145deg, rgba(52,211,107,.20), rgba(28,157,73,.12));
}
.view--products .cat-link.is-active .nm,
.view--products .cat-link.is-active .chev { color: #5ee884; }

/* ============================================================
   CATEGORY HUB — tabs in the header card, whole column centered
   ============================================================ */
.cat-center { max-width: 980px; margin-inline: auto; width: 100%; }
.cat-hub {
    position: relative; z-index: 2; padding: 1.05rem 1.4rem 1.25rem;
    background: rgba(13,28,19,.74);
    border: 1px solid rgba(255,255,255,.08);
    box-shadow: inset 2px 2px 0 rgba(255,255,255,.06), inset -2px -2px 0 rgba(0,0,0,.32), 0 14px 30px -16px rgba(0,0,0,.6);
    -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}
.cat-hub-label { display: flex; align-items: center; gap: .55rem; font-size: .64rem; letter-spacing: .15em; text-transform: uppercase; font-weight: 800; color: #8fb89a; margin-bottom: .9rem; }
.cat-hub-ico { width: 28px; height: 28px; border-radius: 6px; background: linear-gradient(145deg,#34d36b,#1c9d49); color: #fff; display: flex; align-items: center; justify-content: center; font-size: .78rem; box-shadow: inset 1px 1px 0 rgba(255,255,255,.3), inset -1px -1px 0 rgba(0,0,0,.25); }
.cat-tabs { display: flex; flex-wrap: wrap; gap: .6rem; }
.cat-tab {
    flex: 1 1 150px; display: flex; align-items: center; justify-content: center; gap: .55rem;
    padding: .85rem 1rem; border-radius: 8px;
    background: rgba(255,255,255,.05); color: #cdd9d0; font-weight: 800; font-size: 1.02rem; text-decoration: none;
    box-shadow: inset 1px 1px 0 rgba(255,255,255,.07), inset -1px -1px 0 rgba(0,0,0,.3);
    transition: transform .18s ease, background .18s ease, color .18s ease, box-shadow .18s ease;
}
.cat-tab i { font-size: 1rem; opacity: .9; }
.cat-tab:hover { transform: translateY(-2px); background: rgba(255,255,255,.1); color: #fff; }
.cat-tab.is-active {
    background: linear-gradient(145deg, #34d36b, #1c9d49); color: #fff;
    box-shadow: inset 1px 1px 0 rgba(255,255,255,.32), inset -2px -2px 0 rgba(0,0,0,.25), 0 0 16px rgba(64,210,103,.35);
}
.cat-tab.is-active i { opacity: 1; }
@media (max-width: 860px) { .cat-center { max-width: 100%; } }

/* ============================================================
   MOBILE POLISH
   ============================================================ */
@media (max-width: 768px) {
    .cat-grid { gap: 1rem; grid-auto-rows: 124px; }
    .cat-glass { padding: 1.3rem 1.45rem; }
    .cat-tile h3, .cat-tile.feature h3 { font-size: 1.55rem; }
    .cat-tile .cat-mascot, .cat-tile.feature .cat-mascot { height: 78px; right: .8rem; }
    .cat-tile .cat-icon, .cat-tile.feature .cat-icon { font-size: 5rem; }

    /* slimmer mobile store-menu button */
    .mobile-navigation .store-menu-toggle { height: 86px !important; }
    .mobile-navigation .store-menu-toggle h2 { font-size: 1.6rem; }

    /* balanced hero */
    #hero .logo img { height: 118px !important; }
    .hero-utility { padding-top: .9rem; }
    #hero .container { padding-top: 1.25rem; }

    /* category page: tabs 2 per row, tidier hub */
    .cat-hub { padding: .9rem 1rem 1.05rem; }
    .cat-tabs { gap: .5rem; }
    .cat-tab { flex: 1 1 calc(50% - .25rem); padding: .7rem .5rem; font-size: .92rem; }
    /* Store Menu button removed on mobile (tiles / tabs cover navigation) */
    .mobile-navigation .store-menu-toggle { display: none; }
    .view--products .mobile-navigation #mobile-secondary { display: none; }
}
/* ============================================================
   Themed scrollbars (dark track + green thumb) — page + modals
   ============================================================ */
* { scrollbar-width: thin; scrollbar-color: #2faa4f rgba(0,0,0,.28); }
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: rgba(0,0,0,.3); border-radius: 100px; }
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #38c95f, #1c9d49);
    border-radius: 100px; border: 2px solid rgba(0,0,0,.25); background-clip: padding-box;
}
::-webkit-scrollbar-thumb:hover { background: linear-gradient(180deg, #46e070, #22a655); background-clip: padding-box; }
::-webkit-scrollbar-corner { background: transparent; }

/* ============================================================
   LOGIN / USERNAME PAGE — dark liquid glass
   ============================================================ */
.auth-page .bg-content {
    background: rgba(13,28,19,.74) !important;
    border: 1px solid rgba(255,255,255,.08) !important;
    box-shadow: inset 2px 2px 0 rgba(255,255,255,.06), inset -2px -2px 0 rgba(0,0,0,.32), 0 20px 40px -18px rgba(0,0,0,.6) !important;
    -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px);
    color: #e7eee9;
}
.auth-page .bg-content-light { background: rgba(255,255,255,.06) !important; }
.auth-page .border-content-light, .auth-page [class*="border-content"] { border-color: rgba(255,255,255,.1) !important; }
.auth-page :is(h1,h2,h3) { color: #fff; }
.auth-page .text-white { color: #fff; }
.auth-page .text-muted { color: #9fb0a4 !important; }
.auth-page input {
    background: rgba(255,255,255,.06) !important;
    border-color: rgba(255,255,255,.12) !important;
    color: #fff !important;
}
.auth-page input::placeholder { color: #8aa090 !important; }
.auth-bedrock-note { color: #d2e2d7; }
.auth-bedrock-eg { color: var(--primary-color); }

/* ============================================================
   SLIDE-OUT SHOPPING CART — dark liquid glass
   ============================================================ */
.cart-panel {
    background: rgba(13,28,19,.82) !important;
    -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
    border-left: 1px solid rgba(255,255,255,.08);
    color: #e7eee9;
}
.cart-panel .bg-content { background: rgba(0,0,0,.24) !important; }
.cart-panel .bg-content-light { background: rgba(255,255,255,.06) !important; }
.cart-panel :is(h1,h2,h3) { color: #fff; }
.cart-panel .text-white { color: #fff; }
.cart-panel .text-muted { color: #9fb0a4 !important; }
.cart-panel [class*="border-content"] { border-color: rgba(255,255,255,.08) !important; }

button, .btn { cursor: pointer; }
