/* ─────────────────────────────────────────────────────────────
   LIGHT — "Ebony & Sky Crescent" crystal glass
   Ebony ink on a pale sky wash, with crescent-blue accents.
   ───────────────────────────────────────────────────────────── */
:root {
    --vb-brand: #1d4ed8;
    --vb-brand-dark: #1e3a8a;
    /* --vb-brand-dark is a hover shade; links need a readable tint. */
    --vb-link: #1e3a8a;
    --vb-brand-soft: #e6edfd;
    --vb-accent: #7dd3fc;

    --vb-ink: #0b1220;
    --vb-ink-strong: #060a12;
    /* Deliberately dark: muted copy must stay readable, never washed out. */
    --vb-muted: #47536b;
    --vb-line: #cfd9ea;

    --vb-bg: #eef4fc;
    --vb-bg-deep: #dfe9f7;
    --vb-surface: #ffffff;
    --vb-surface-alt: #f6f9fe;

    /* Glass: translucent panes with a bright rim and soft inner glow. */
    --vb-glass: rgba(255, 255, 255, .62);
    --vb-glass-strong: rgba(255, 255, 255, .84);
    --vb-glass-rim: rgba(255, 255, 255, .95);
    --vb-glass-blur: blur(18px) saturate(150%);

    --vb-success: #0f7b4f;
    --vb-danger: #b42318;
    --vb-shadow: 0 1px 2px rgba(11, 18, 32, .06);
    --vb-shadow-lg: 0 18px 48px -16px rgba(11, 24, 48, .28);
    --vb-radius: 14px;
    /* Dark slab for table headers and code blocks: dark in both themes,
       so white text on it always reads. */
    --vb-slab: #0b1220;
    --vb-on-slab: #f6f8fc;

    /* Card glass: a translucent pane that actually shows the page wash
       through it, with a bright rim and an inner highlight for depth. */
    --vb-card-bg: linear-gradient(158deg, rgba(255, 255, 255, .82) 0%, rgba(255, 255, 255, .52) 52%, rgba(233, 241, 252, .66) 100%);
    --vb-card-rim: rgba(255, 255, 255, .92);
    --vb-card-inner: inset 0 1px 0 rgba(255, 255, 255, .98), inset 0 -1px 0 rgba(29, 78, 216, .07);
    --vb-card-media: linear-gradient(150deg, rgba(255, 255, 255, .55), rgba(226, 236, 250, .38));
    --vb-icon-bg: rgba(255, 255, 255, .72);
    --vb-icon-fg: #46536b;
    --vb-btn-bg: #1d4ed8;
    --vb-btn-fg: #ffffff;
    color-scheme: light;
}

/* ─────────────────────────────────────────────────────────────
   DARK — "Ruby & Gold" smoked glass
   Ruby accents on near-black smoked panes, gold for emphasis.
   ───────────────────────────────────────────────────────────── */
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --vb-brand: #e0483f;
        --vb-brand-dark: #b8291f;
        --vb-link: #ff9a8f;
        --vb-brand-soft: rgba(224, 72, 63, .16);
        --vb-accent: #e8b04b;

        --vb-ink: #f4eef0;
        --vb-ink-strong: #fffdfa;
        --vb-muted: #c2b6bb;
        --vb-line: rgba(232, 176, 75, .22);

        --vb-bg: #0b0709;
        --vb-bg-deep: #050304;
        --vb-surface: #140d10;
        --vb-surface-alt: #1b1216;

        --vb-glass: rgba(28, 18, 22, .58);
        --vb-glass-strong: rgba(34, 22, 27, .78);
        --vb-glass-rim: rgba(232, 176, 75, .26);
        --vb-glass-blur: blur(20px) saturate(140%);

        --vb-success: #3ecf8e;
        --vb-danger: #ff6b6b;
        --vb-shadow: 0 1px 2px rgba(0, 0, 0, .6);
        --vb-shadow-lg: 0 20px 52px -18px rgba(0, 0, 0, .9);
        --vb-slab: #17090c;
        --vb-on-slab: #fdf6f7;

        --vb-card-bg: linear-gradient(158deg, rgba(62, 38, 45, .62) 0%, rgba(28, 17, 22, .58) 55%, rgba(14, 9, 11, .74) 100%);
        --vb-card-rim: rgba(232, 176, 75, .34);
        --vb-card-inner: inset 0 1px 0 rgba(255, 255, 255, .10), inset 0 -1px 0 rgba(224, 72, 63, .14);
        --vb-card-media: linear-gradient(150deg, rgba(255, 255, 255, .06), rgba(224, 72, 63, .05));
        --vb-icon-bg: rgba(255, 255, 255, .07);
        --vb-icon-fg: #d8ccd1;
        --vb-btn-bg: #b8291f;
        --vb-btn-fg: #fffdfa;
        color-scheme: dark;
    }
}

/* Explicit dark choice from the theme switcher. */
:root[data-theme="dark"] {
    --vb-brand: #e0483f;
    --vb-brand-dark: #b8291f;
    --vb-link: #ff9a8f;
    --vb-brand-soft: rgba(224, 72, 63, .16);
    --vb-accent: #e8b04b;

    --vb-ink: #f4eef0;
    --vb-ink-strong: #fffdfa;
    --vb-muted: #c2b6bb;
    --vb-line: rgba(232, 176, 75, .22);

    --vb-bg: #0b0709;
    --vb-bg-deep: #050304;
    --vb-surface: #140d10;
    --vb-surface-alt: #1b1216;

    --vb-glass: rgba(28, 18, 22, .58);
    --vb-glass-strong: rgba(34, 22, 27, .78);
    --vb-glass-rim: rgba(232, 176, 75, .26);
    --vb-glass-blur: blur(20px) saturate(140%);

    --vb-success: #3ecf8e;
    --vb-danger: #ff6b6b;
    --vb-shadow: 0 1px 2px rgba(0, 0, 0, .6);
    --vb-shadow-lg: 0 20px 52px -18px rgba(0, 0, 0, .9);
    --vb-slab: #17090c;
    --vb-on-slab: #fdf6f7;

    --vb-card-bg: linear-gradient(158deg, rgba(62, 38, 45, .62) 0%, rgba(28, 17, 22, .58) 55%, rgba(14, 9, 11, .74) 100%);
    --vb-card-rim: rgba(232, 176, 75, .34);
    --vb-card-inner: inset 0 1px 0 rgba(255, 255, 255, .10), inset 0 -1px 0 rgba(224, 72, 63, .14);
    --vb-card-media: linear-gradient(150deg, rgba(255, 255, 255, .06), rgba(224, 72, 63, .05));
    --vb-icon-bg: rgba(255, 255, 255, .07);
    --vb-icon-fg: #d8ccd1;
    --vb-btn-bg: #b8291f;
    --vb-btn-fg: #fffdfa;
    color-scheme: dark;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    color: var(--vb-ink);
    background-color: var(--vb-bg);
    /* Crescent wash: two soft radial glows over the base tint. The fixed
       attachment keeps the glow behind content instead of scrolling away. */
    background-image:
        radial-gradient(1200px 620px at 12% -8%, rgba(125, 211, 252, .55), transparent 62%),
        radial-gradient(1000px 560px at 88% 4%, rgba(29, 78, 216, .16), transparent 60%),
        linear-gradient(180deg, var(--vb-bg) 0%, var(--vb-bg-deep) 100%);
    background-attachment: fixed;
    min-height: 100vh;
    transition: background-color .3s ease, color .3s ease;
}

:root[data-theme="dark"] body {
    background-image:
        radial-gradient(1100px 600px at 10% -10%, rgba(224, 72, 63, .34), transparent 60%),
        radial-gradient(950px 540px at 92% 2%, rgba(232, 176, 75, .18), transparent 62%),
        linear-gradient(180deg, var(--vb-bg) 0%, var(--vb-bg-deep) 100%);
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) body {
        background-image:
            radial-gradient(1100px 600px at 10% -10%, rgba(224, 72, 63, .34), transparent 60%),
            radial-gradient(950px 540px at 92% 2%, rgba(232, 176, 75, .18), transparent 62%),
            linear-gradient(180deg, var(--vb-bg) 0%, var(--vb-bg-deep) 100%);
    }
}

/* Shared crystal-glass pane used by every card-like surface. */
.panel,
.stat-card,
.auth-card,
.account-nav,
.cat-card,
.az-filters,
.listingTable,
.pagination-wrap a,
.pagination-wrap span {
    background: var(--vb-glass);
    -webkit-backdrop-filter: var(--vb-glass-blur);
    backdrop-filter: var(--vb-glass-blur);
    border-color: var(--vb-glass-rim);
    box-shadow: var(--vb-shadow);
}

/* Light-catching top rim, the detail that reads as real glass. */
.panel,
.stat-card,
.auth-card {
    position: relative;
    overflow: hidden;
}
.panel::before,
.stat-card::before,
.auth-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--vb-glass-rim), transparent);
    pointer-events: none;
}

a { color: var(--vb-link); }
a:hover { color: var(--vb-brand); }

/* Bootstrap's .btn-primary is the main solid CTA across auth, filter and
   admin screens. --vb-brand is also used for links and icons, where the
   dark-mode red only needs 4.5:1 against the page rather than against white,
   so the fill comes from the button tokens instead. */
.btn-primary {
    background-color: var(--vb-btn-bg);
    border-color: var(--vb-btn-bg);
    color: var(--vb-btn-fg);
}
.btn-primary:hover, .btn-primary:focus {
    background-color: var(--vb-btn-bg);
    border-color: var(--vb-btn-bg);
    color: var(--vb-btn-fg);
    filter: brightness(.92);
}
.btn-primary:disabled, .btn-primary.disabled {
    background-color: var(--vb-btn-bg);
    border-color: var(--vb-btn-bg);
    color: var(--vb-btn-fg);
    opacity: .6;
}
.btn-success { background-color: var(--vb-success); border-color: var(--vb-success); }

.header-balance {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(31, 157, 85, .1);
    color: var(--vb-success);
    border: 1px solid rgba(31, 157, 85, .3);
    border-radius: 8px;
    padding: 7px 12px;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

/* Home hero */
.home-h1-head { padding: 2.25rem 0 1rem; max-width: 980px; }
.home-h1 { font-size: 2rem; font-weight: 800; letter-spacing: -.02em; margin-bottom: .85rem; }
.home-h1-sub { color: var(--vb-muted); font-size: .95rem; line-height: 1.65; margin-bottom: .6rem; }

.cat-head { padding: 1.6rem 0 .35rem; }
.cat-h1 { font-size: 1.65rem; font-weight: 800; margin: 0; }
.cat-sub { color: var(--vb-muted); font-size: .9rem; margin-top: .35rem; }

/* Listing tables */
.single-account { margin-bottom: 1.75rem; }
.listingTable { width: 100%; background: var(--vb-surface); }
.listingTable thead td { background: #1f2530 !important; color: #fff; font-size: .875rem; padding: .7rem .9rem; }
.listingTable thead a { color: #fff !important; text-decoration: none; }
.listingTable tbody tr { border-bottom: 1px solid var(--vb-line); }
.listingTable tbody tr:hover { background: var(--vb-surface-alt); }
.listingTable tbody td { padding: .85rem .9rem; vertical-align: middle; font-size: .875rem; }
.listingTable .listing-title { font-size: 15px; color: var(--vb-ink); text-decoration: none; font-weight: 500; }
.listingTable .listing-title:hover { color: var(--vb-brand); }
.listing-actions { display: flex; gap: .4rem; align-items: center; }
.tableBtn { white-space: nowrap; }
.mobile-only { display: none; }
.sold-note { color: var(--vb-muted); font-size: .78rem; }
.price-cell { font-weight: 700; }

/* ── Listing card grid ──────────────────────────────────────────
   Listings render as cards in an auto-filling grid rather than rows,
   so the catalogue stays scannable on every width.
   ────────────────────────────────────────────────────────────── */
.vb-listing-group { margin: 1.5rem 0 1.9rem; }
.vb-listing-group__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: .75rem;
    margin-bottom: .8rem;
    padding-bottom: .55rem;
    border-bottom: 1px solid var(--vb-line);
}
.vb-listing-group__title {
    font-size: 1.02rem;
    font-weight: 800;
    margin: 0;
    min-width: 0;
    color: var(--vb-ink);
}
.vb-listing-group__title a { color: inherit; text-decoration: none; }
.vb-listing-group__title a:hover { color: var(--vb-brand); }
.vb-listing-group__sub { font-weight: 500; font-size: .84rem; color: var(--vb-muted); }
.vb-listing-group__sub::before { content: '—'; margin: 0 .4rem; opacity: .55; }
.vb-listing-group__all {
    flex: 0 0 auto;
    font-size: .8rem;
    font-weight: 600;
    color: var(--vb-brand);
    text-decoration: none;
    white-space: nowrap;
}
.vb-listing-group__all:hover { text-decoration: underline; }

.vb-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(232px, 1fr));
    gap: 14px;
    padding-bottom: .5rem;
}
.vb-grid + .vb-grid { margin-top: 14px; }

.vb-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: var(--vb-card-bg);
    border: 1px solid var(--vb-card-rim);
    border-radius: var(--vb-radius);
    box-shadow: var(--vb-shadow), var(--vb-card-inner);
    backdrop-filter: var(--vb-glass-blur);
    -webkit-backdrop-filter: var(--vb-glass-blur);
    overflow: hidden;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.vb-card:hover {
    transform: translateY(-2px);
    border-color: var(--vb-brand);
    box-shadow: var(--vb-shadow-lg), var(--vb-card-inner);
}
.vb-card:focus-within {
    border-color: var(--vb-brand);
    box-shadow: var(--vb-shadow-lg), var(--vb-card-inner);
}

.vb-card__media {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 16 / 9;
    background: var(--vb-card-media);
    border-bottom: 1px solid var(--vb-card-rim);
    overflow: hidden;
}
.vb-card__media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 10px;
}
.vb-card__fallback {
    color: var(--vb-icon-fg);
    font-size: 1.7rem;
    opacity: .55;
}

.vb-card__body {
    display: flex;
    flex-direction: column;
    gap: .4rem;
    padding: 12px 13px 13px;
    flex: 1 1 auto;
    min-width: 0;
}

/* Full listing name — the supplier titles are long and specific, so they
   must stay readable instead of being cut off mid-phrase. */
.vb-card__title {
    color: var(--vb-ink-strong);
    font-size: .875rem;
    font-weight: 600;
    line-height: 1.4;
    text-decoration: none;
    overflow-wrap: anywhere;
    text-wrap: pretty;
}
.vb-card__title:hover { color: var(--vb-brand); }

/* The title link stretches over the whole card so the entire surface is
   tappable, matching a native card. Interactive children are lifted above it
   so the heart and Buy still hit their own targets. */
.vb-card__title::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    border-radius: inherit;
}
.vb-card__actions,
.vb-card__wish,
.vb-card__buy {
    position: relative;
    z-index: 2;
}

.vb-card__meta {
    color: var(--vb-muted);
    font-size: .74rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.vb-card__stats {
    display: flex;
    align-items: center;
    gap: .35rem;
    flex-wrap: wrap;
    color: var(--vb-muted);
    font-size: .74rem;
}
.vb-card__stats strong { color: var(--vb-ink); font-weight: 700; }
.vb-card__dot { opacity: .5; }

.vb-card__foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
    margin-top: auto;
    padding-top: .6rem;
    border-top: 1px solid var(--vb-card-rim);
}
.vb-card__price { color: var(--vb-ink-strong); font-weight: 800; font-size: .95rem; }
.vb-card__price small { color: var(--vb-muted); font-weight: 500; font-size: .7rem; margin-right: 2px; }

.vb-card__actions { display: flex; align-items: center; gap: .35rem; }

/* The global .btn styles hardcode their palette, so the card button is
   re-declared from the theme tokens. */
.vb-card__buy,
.vb-card__buy.btn {
    display: inline-flex;
    align-items: center;
    gap: .32rem;
    white-space: nowrap;
    padding: .34rem .68rem;
    border: 1px solid transparent;
    border-radius: 8px;
    background: var(--vb-btn-bg);
    color: var(--vb-btn-fg);
    font-size: .76rem;
    font-weight: 700;
    line-height: 1.25;
    text-decoration: none;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .16);
    transition: background .15s ease, transform .15s ease, box-shadow .15s ease;
}
.vb-card__buy:hover,
.vb-card__buy:focus-visible {
    background: var(--vb-brand-dark);
    color: var(--vb-btn-fg);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px -4px rgba(0, 0, 0, .45);
}
.vb-card__buy i { font-size: .8rem; }

.vb-card__wish {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    flex: 0 0 auto;
    border-radius: 50%;
    border: 1px solid var(--vb-card-rim);
    background: var(--vb-icon-bg);
    color: var(--vb-icon-fg);
    text-decoration: none;
    transition: color .15s ease, border-color .15s ease, background .15s ease;
}
.vb-card__wish:hover {
    color: var(--vb-brand);
    border-color: var(--vb-brand);
    background: var(--vb-brand-soft);
}
.vb-card__wish.active {
    color: var(--vb-danger);
    border-color: var(--vb-danger);
    background: var(--vb-brand-soft);
}

@media (max-width: 991.98px) {
    .vb-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
}

@media (max-width: 575.98px) {
    .vb-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
    .vb-card__body { padding: 10px 10px 11px; gap: .32rem; }
    .vb-card__title { font-size: .8rem; }
    .vb-card__foot { flex-wrap: wrap; gap: .4rem; }
    .vb-card__price { font-size: .88rem; }
}

/* Filters */
.az-filters { background: var(--vb-surface); border: 1px solid var(--vb-line); border-radius: 12px; margin: 14px 0 18px; }
.az-filters-bar { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 11px 16px; }
.az-filters-count { font-size: 13.5px; color: var(--vb-muted); margin: 0; white-space: nowrap; }
.az-filters-count strong { color: var(--vb-ink); font-size: 15px; }
.az-filters-panel { display: contents; }
.az-field-price { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.az-field-label { font-size: 12.5px; font-weight: 700; white-space: nowrap; }
.az-price-inputs { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; min-width: 0; max-width: 100%; }
.az-price-wrap { display: inline-flex; align-items: center; border: 1px solid var(--vb-line); border-radius: 9px; padding: 0 9px; color: var(--vb-muted); font-size: 13px; background: var(--vb-surface); min-width: 0; max-width: 100%; }
.az-price-input { border: 0; padding: 7px 2px; width: 66px; min-width: 0; flex: 1 1 52px; max-width: 100%; font-size: 14px; background: transparent; }
.az-price-input:focus { outline: none; }
.az-filters-sort { display: flex; align-items: center; gap: 8px; padding-left: 14px; border-left: 1px solid var(--vb-line); }
.az-filters-sort-label { font-size: 12.5px; font-weight: 700; margin: 0; white-space: nowrap; }
.az-select { border: 1px solid var(--vb-line); border-radius: 9px; padding: 7px 11px; font-size: 14px; background: var(--vb-surface); color: var(--vb-ink); }
.az-apply { padding: 7px 18px; font-size: 14px; font-weight: 600; }

/* Category cards */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; margin: 1.5rem 0 2rem; }
.cat-card { background: var(--vb-surface); border: 1px solid var(--vb-line); border-radius: 12px; padding: 16px; display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--vb-ink); transition: box-shadow .2s ease, border-color .2s ease, transform .2s ease; }
.cat-card:hover { border-color: var(--vb-brand); box-shadow: var(--vb-shadow-lg); color: var(--vb-ink); transform: translateY(-2px); }
.cat-card img { width: 40px; height: 40px; border-radius: 8px; object-fit: cover; }
.cat-card-title { font-weight: 600; font-size: 14px; line-height: 1.3; }
.cat-card-count { font-size: 12px; color: var(--vb-muted); }

/* Product page */
.az-breadcrumb { padding: 1rem 0 .25rem; }
.az-breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; align-items: center; padding: 0; margin: 0; font-size: 13.5px; }
.az-breadcrumb li { display: inline-flex; align-items: center; }
.az-breadcrumb li + li::before { content: ""; width: 7px; height: 7px; margin: 0 .6rem; border-top: 1.6px solid #b9c0cb; border-right: 1.6px solid #b9c0cb; transform: rotate(45deg); }
.az-breadcrumb a { color: var(--vb-muted); text-decoration: none; font-weight: 500; }
.az-breadcrumb a:hover { color: var(--vb-brand); }
.az-breadcrumb .current { color: var(--vb-ink); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 320px; }

.price-banner { background: var(--vb-brand); color: #fff; border-radius: 10px; padding: 14px 18px; font-weight: 700; margin-bottom: 1.25rem; }
.pd-content { color: var(--vb-ink); font-size: .92rem; line-height: 1.7; }
.pd-content p { margin-bottom: .8rem; }
.product-purchase-actions { display: flex; gap: .6rem; align-items: center; margin-top: .5rem; }

/* Account area */
.account-shell { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 22px; padding: 1.5rem 0 3rem; }
.account-nav { background: var(--vb-surface); border: 1px solid var(--vb-line); border-radius: 12px; padding: 10px; height: fit-content; position: sticky; top: 16px; }
.account-nav a { display: flex; align-items: center; gap: 9px; padding: 10px 12px; border-radius: 8px; color: var(--vb-ink); text-decoration: none; font-size: 14px; font-weight: 500; }
.account-nav a:hover { background: var(--vb-brand-soft); color: var(--vb-link); }
.account-nav a.active { background: var(--vb-brand); color: #fff; font-weight: 700; }
.account-nav a i { width: 16px; text-align: center; }
.panel { background: var(--vb-surface); border: 1px solid var(--vb-line); border-radius: 12px; padding: 20px; }
.panel + .panel { margin-top: 18px; }
.panel-title { font-size: 1.05rem; font-weight: 700; margin-bottom: 1rem; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; }
.stat-card { background: var(--vb-surface); border: 1px solid var(--vb-line); border-radius: 12px; padding: 16px; }
.stat-value { font-size: 1.5rem; font-weight: 800; }
.stat-label { font-size: 12px; color: var(--vb-muted); text-transform: uppercase; letter-spacing: .04em; }

/* Admin */
.admin-shell { display: grid; grid-template-columns: 240px minmax(0, 1fr); min-height: 78vh; }
/* Grid items default to min-width:auto, so wide tables would stretch the
   track instead of scrolling inside their own .table-responsive wrapper. */
.admin-main, .admin-shell > section, .account-shell > section { min-width: 0; }
.admin-sidebar { background: #14181f; padding: 18px 12px; }
.admin-sidebar a { display: flex; align-items: center; gap: 9px; color: #b7bdc7; text-decoration: none; padding: 10px 12px; border-radius: 8px; font-size: 14px; font-weight: 500; }
.admin-sidebar a:hover { background: #1e242e; color: #fff; }
.admin-sidebar a.active { background: var(--vb-brand); color: #fff; }
.admin-main { padding: 22px 26px 40px; background: var(--vb-bg); }
.admin-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; gap: 12px; flex-wrap: wrap; }
.admin-head h1 { font-size: 1.35rem; font-weight: 800; margin: 0; }

.table { font-size: .875rem; }
.table > :not(caption) > * > * { padding: .65rem .7rem; }
.badge-status { font-size: 11px; font-weight: 700; padding: 4px 9px; border-radius: 999px; text-transform: uppercase; letter-spacing: .03em; }
.badge-active, .badge-completed, .badge-paid, .badge-approved { background: #e6f6ec; color: #1f7a45; }
.badge-pending, .badge-processing { background: #fdf3e2; color: #8a5316; }
.badge-suspended, .badge-failed, .badge-rejected { background: #fdecec; color: #a13a3a; }
.badge-refunded, .badge-disabled { background: #eef0f4; color: #55606f; }

.form-label { font-size: 13px; font-weight: 600; color: var(--vb-ink); }
.form-control, .form-select { border-color: var(--vb-line); }
.form-control:focus, .form-select:focus { border-color: var(--vb-brand); box-shadow: 0 0 0 3px rgba(216,132,44,.12); }

.auth-wrap { max-width: 470px; margin: 2.5rem auto 3.5rem; }
.auth-card {
    background: var(--vb-card-bg);
    border: 1px solid var(--vb-card-rim);
    border-radius: 16px;
    padding: 30px 28px;
    box-shadow: var(--vb-shadow-lg), var(--vb-card-inner);
    backdrop-filter: var(--vb-glass-blur);
    -webkit-backdrop-filter: var(--vb-glass-blur);
}
.auth-card h1 { font-size: 1.35rem; font-weight: 800; margin-bottom: .35rem; }
.auth-card .lead-sm { color: var(--vb-muted); font-size: .9rem; margin-bottom: 1.3rem; }

.pagination-wrap { display: flex; justify-content: center; gap: 6px; margin: 2rem 0 1rem; flex-wrap: wrap; }
.pagination-wrap a, .pagination-wrap span { padding: 7px 13px; border: 1px solid var(--vb-line); border-radius: 8px; text-decoration: none; color: var(--vb-ink); font-size: 14px; background: var(--vb-surface); }
.pagination-wrap .current { background: var(--vb-brand); border-color: var(--vb-brand); color: #fff; font-weight: 700; }

.empty-state { text-align: center; padding: 3rem 1rem; color: var(--vb-muted); }
.empty-state i { font-size: 2.4rem; opacity: .35; margin-bottom: .8rem; display: block; }

@media (max-width: 991.98px) {
    .account-shell, .admin-shell { grid-template-columns: 1fr; }
    .account-nav { position: static; display: flex; overflow-x: auto; gap: 4px; }
    .account-nav a { white-space: nowrap; }
    .admin-sidebar { display: flex; overflow-x: auto; gap: 4px; padding: 10px; }
    .admin-sidebar a { white-space: nowrap; }
}

@media (max-width: 767.98px) {
    .home-h1 { font-size: 1.5rem; }
    .mobile-only { display: inline; }
    .az-field-price { margin-left: 0; width: 100%; }
    .listingTable thead { display: none; }
    .listingTable tbody td { display: block; padding: .35rem .9rem; }
    .listingTable tbody tr { display: block; padding: .6rem 0; }
}

/* ---------------------------------------------------------------------------
   Custom modal system (replaces native alert/confirm/prompt and Bootstrap modals)
   --------------------------------------------------------------------------- */
.vb-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(12, 16, 22, .58);
    backdrop-filter: blur(3px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    z-index: 1080;
    opacity: 0;
    visibility: hidden;
    transition: opacity .18s ease, visibility .18s ease;
}
.vb-modal-backdrop.is-open { opacity: 1; visibility: visible; }

.vb-modal {
    width: 100%;
    max-width: 460px;
    background: var(--vb-surface);
    border: 1px solid var(--vb-line);
    border-radius: 16px;
    box-shadow: var(--vb-shadow-lg);
    transform: translateY(14px) scale(.97);
    opacity: 0;
    transition: transform .22s cubic-bezier(.16,.84,.44,1), opacity .22s ease;
    overflow: hidden;
    max-height: calc(100vh - 36px);
    display: flex;
    flex-direction: column;
}
.vb-modal-backdrop.is-open .vb-modal { transform: none; opacity: 1; }
.vb-modal--wide { max-width: 620px; }

.vb-modal-head {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 18px 20px 12px;
}
.vb-modal-icon {
    flex: 0 0 38px;
    height: 38px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    font-size: 16px;
    background: var(--vb-brand-soft);
    color: var(--vb-link);
}
.vb-modal-icon.is-danger { background: rgba(214, 69, 69, .12); color: var(--vb-danger); }
.vb-modal-icon.is-success { background: rgba(31, 157, 85, .12); color: var(--vb-success); }
.vb-modal-icon.is-info { background: rgba(59, 130, 246, .12); color: #2563eb; }

.vb-modal-title { font-size: 1rem; font-weight: 700; margin: 0 0 2px; color: var(--vb-ink); }
.vb-modal-sub { font-size: .82rem; color: var(--vb-muted); margin: 0; }

.vb-modal-body { padding: 0 20px 4px; overflow-y: auto; font-size: .875rem; color: var(--vb-ink); }
.vb-modal-body p:last-child { margin-bottom: 0; }

.vb-modal-foot {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    padding: 16px 20px 18px;
}
.vb-btn {
    border: 1px solid var(--vb-line);
    background: var(--vb-surface);
    color: var(--vb-ink);
    border-radius: 9px;
    padding: 8px 16px;
    font-size: .85rem;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s ease, border-color .15s ease, transform .1s ease;
}
.vb-btn:hover { background: var(--vb-surface-alt); }
.vb-btn:active { transform: scale(.985); }
.vb-btn--primary { background: var(--vb-brand); border-color: var(--vb-brand); color: #fff; }
.vb-btn--primary:hover { background: var(--vb-brand-dark); border-color: var(--vb-brand-dark); }
.vb-btn--danger { background: var(--vb-danger); border-color: var(--vb-danger); color: #fff; }
.vb-btn--danger:hover { filter: brightness(.92); }
.vb-btn--ghost { background: transparent; }

.vb-modal-close {
    margin-left: auto;
    border: 0;
    background: transparent;
    color: var(--vb-muted);
    font-size: 15px;
    cursor: pointer;
    padding: 2px 4px;
    line-height: 1;
}
.vb-modal-close:hover { color: var(--vb-ink); }

.vb-field { margin-bottom: 12px; }
.vb-field-label { display: block; font-size: .78rem; font-weight: 700; margin-bottom: 5px; color: var(--vb-ink); }
.vb-input {
    width: 100%;
    border: 1px solid var(--vb-line);
    background: var(--vb-surface-alt);
    color: var(--vb-ink);
    border-radius: 9px;
    padding: 9px 12px;
    font-size: .875rem;
}
.vb-input:focus { outline: none; border-color: var(--vb-brand); box-shadow: 0 0 0 3px rgba(216,132,44,.14); }

/* Segmented control used in the pricing modal */
.vb-segmented {
    display: flex;
    gap: 4px;
    padding: 4px;
    background: var(--vb-surface-alt);
    border: 1px solid var(--vb-line);
    border-radius: 10px;
}
.vb-segmented button {
    flex: 1;
    border: 0;
    background: transparent;
    color: var(--vb-muted);
    border-radius: 7px;
    padding: 7px 10px;
    font-size: .82rem;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s ease, color .15s ease;
}
.vb-segmented button.is-active {
    background: var(--vb-surface);
    color: var(--vb-ink);
    box-shadow: var(--vb-shadow);
}

.vb-preview {
    margin-top: 12px;
    padding: 12px 14px;
    border-radius: 10px;
    background: var(--vb-brand-soft);
    border: 1px dashed rgba(216,132,44,.4);
    font-size: .82rem;
    line-height: 1.55;
}
.vb-preview strong { color: var(--vb-link); }

/* Theme switcher */
.theme-switch {
    display: inline-flex;
    gap: 2px;
    padding: 3px;
    background: rgba(255,255,255,.08);
    border-radius: 8px;
}
.theme-switch button {
    border: 0;
    background: transparent;
    color: #9aa3af;
    border-radius: 6px;
    width: 26px;
    height: 24px;
    display: grid;
    place-items: center;
    cursor: pointer;
    font-size: 11px;
    transition: background .15s ease, color .15s ease;
}
.theme-switch button:hover { color: #fff; }
.theme-switch button.is-active { background: rgba(255,255,255,.16); color: #fff; }

/* Dark-mode corrections for Bootstrap surfaces */
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .table { --bs-table-color: var(--vb-ink); --bs-table-bg: transparent; }
    :root:not([data-theme="light"]) .table thead th { color: var(--vb-muted); border-color: var(--vb-line); }
    :root:not([data-theme="light"]) .table > tbody > tr > td { border-color: var(--vb-line); }
    :root:not([data-theme="light"]) .form-control,
    :root:not([data-theme="light"]) .form-select {
        background: var(--vb-surface-alt);
        border-color: var(--vb-line);
        color: var(--vb-ink);
    }
    :root:not([data-theme="light"]) .alert-success { background: rgba(31,157,85,.14); color: #7ee2a8; border-color: rgba(31,157,85,.3); }
    :root:not([data-theme="light"]) .alert-danger { background: rgba(214,69,69,.14); color: #f3a2a2; border-color: rgba(214,69,69,.3); }
    :root:not([data-theme="light"]) .alert-info { background: rgba(59,130,246,.14); color: #9dc4fb; border-color: rgba(59,130,246,.3); }
}
:root[data-theme="dark"] .table { --bs-table-color: var(--vb-ink); --bs-table-bg: transparent; }
:root[data-theme="dark"] .table thead th { color: var(--vb-muted); border-color: var(--vb-line); }
:root[data-theme="dark"] .table > tbody > tr > td { border-color: var(--vb-line); }
:root[data-theme="dark"] .form-control,
:root[data-theme="dark"] .form-select {
    background: var(--vb-surface-alt);
    border-color: var(--vb-line);
    color: var(--vb-ink);
}
:root[data-theme="dark"] .alert-success { background: rgba(31,157,85,.14); color: #7ee2a8; border-color: rgba(31,157,85,.3); }
:root[data-theme="dark"] .alert-danger { background: rgba(214,69,69,.14); color: #f3a2a2; border-color: rgba(214,69,69,.3); }
:root[data-theme="dark"] .alert-info { background: rgba(59,130,246,.14); color: #9dc4fb; border-color: rgba(59,130,246,.3); }

@media (prefers-reduced-motion: reduce) {
    .vb-modal, .vb-modal-backdrop, .cat-card, body { transition: none !important; }
}

/* Related products on the listing page */
.related-card {
    display: flex;
    gap: 12px;
    align-items: center;
    border: 1px solid var(--vb-line);
    border-radius: 12px;
    padding: 12px;
    background: var(--vb-surface);
    position: relative;
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.related-card:hover {
    border-color: var(--vb-brand);
    box-shadow: var(--vb-shadow-lg);
    transform: translateY(-2px);
}
.related-card-media img { border-radius: 9px; object-fit: cover; display: block; }
.related-card-body { flex: 1 1 auto; min-width: 0; }
.related-card-title {
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.related-stock { font-size: 11.5px; color: var(--vb-muted); margin-top: 2px; }
.related-card-foot { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; flex: 0 0 auto; }
.related-price { font-size: 13.5px; font-weight: 800; color: var(--vb-link); }
.related-cta { font-size: 11.5px; font-weight: 600; color: var(--vb-muted); text-decoration: none; }
.related-cta:hover { color: var(--vb-brand); }

/* Sidebar similar items (desktop only, mirrors the upstream product layout) */
.side-similar-item {
    display: flex;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid var(--vb-line);
    align-items: center;
}
.side-similar-item:last-child { border-bottom: 0; }
.side-similar-thumb img { border-radius: 8px; object-fit: cover; display: block; }
.side-similar-info { min-width: 0; }
.side-similar-name {
    font-size: 12.5px;
    font-weight: 600;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: var(--vb-ink);
}
.side-similar-link { text-decoration: none; }
.side-similar-link:hover .side-similar-name { color: var(--vb-brand); }
.side-similar-price { font-size: 12px; font-weight: 700; color: var(--vb-link); margin-top: 2px; }

/* ─────────────────────────────────────────────────────────────
   Glass details: geo flags, logo swap, small print, dark chrome
   ───────────────────────────────────────────────────────────── */

/* Self-hosted SVG flags: render identically on every OS, unlike flag emoji. */
.flag-icon {
    display: inline-block;
    width: 18px;
    height: 12px;
    object-fit: cover;
    border-radius: 2px;
    margin-right: 6px;
    vertical-align: -1px;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, .12);
    flex: none;
}
.stat-value .flag-icon { width: 20px; height: 14px; vertical-align: -2px; }

/* Only one logo shows at a time; the dark-mode variant is opt-in. */
.logo-mark--on-dark { display: none; }
:root[data-theme="dark"] .logo-mark--on-light { display: none; }
:root[data-theme="dark"] .logo-mark--on-dark { display: inline-block; }
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .logo-mark--on-light { display: none; }
    :root:not([data-theme="light"]) .logo-mark--on-dark { display: inline-block; }
}

/* Secondary line under a stat. Kept above muted contrast on purpose. */
.stat-sub { font-size: 11.5px; color: var(--vb-muted); margin-top: 3px; }

/* Muted copy must never look disabled. */
.text-muted,
small.text-muted,
p.text-muted { color: var(--vb-muted) !important; }
.az-filters-count,
.sold-note,
.cat-card-count,
.stat-label,
.empty-state { color: var(--vb-muted); }

/* Placeholder text in glass inputs needs real contrast too. */
.form-control::placeholder { color: var(--vb-muted); opacity: 1; }

/* Table headers on glass: readable in both palettes. */
.listingTable thead td { background: var(--vb-slab) !important; color: var(--vb-on-slab); }

/* Admin chrome follows the palette instead of a hardcoded near-black. */
.admin-sidebar {
    background: var(--vb-glass-strong);
    -webkit-backdrop-filter: var(--vb-glass-blur);
    backdrop-filter: var(--vb-glass-blur);
    border-right: 1px solid var(--vb-glass-rim);
}
.admin-sidebar a { color: var(--vb-ink); }
.admin-sidebar a:hover { background: var(--vb-brand-soft); color: var(--vb-ink-strong); }
.admin-sidebar a.active { background: var(--vb-brand); color: #fff; }
.admin-main { background: transparent; }

/* Badges: tinted glass instead of flat pastel. */
.badge-active, .badge-completed, .badge-paid, .badge-approved {
    background: rgba(15, 123, 79, .14); color: var(--vb-success);
}
.badge-pending, .badge-processing { background: rgba(232, 176, 75, .18); color: #8a5316; }
.badge-suspended, .badge-failed, .badge-rejected { background: rgba(180, 35, 24, .14); color: var(--vb-danger); }
.badge-refunded, .badge-disabled { background: rgba(120, 130, 150, .16); color: var(--vb-muted); }

:root[data-theme="dark"] .badge-pending,
:root[data-theme="dark"] .badge-processing { color: var(--vb-accent); }
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .badge-pending,
    :root:not([data-theme="light"]) .badge-processing { color: var(--vb-accent); }
}

/* Focus ring picks up the active palette. */
.form-control:focus,
.form-select:focus {
    border-color: var(--vb-brand);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--vb-brand) 22%, transparent);
}

/* The account nav's active pill and hover keep contrast in dark mode. */
.account-nav a.active { color: #fff; }
.account-nav a:hover { background: var(--vb-brand-soft); color: var(--vb-brand); }

/* ─────────────────────────────────────────────────────────────
   Bootstrap utility rescue
   Templates use bg-light / bg-white / text-dark / bg-dark from
   Bootstrap. Those are fixed colours, so in dark mode they leave
   light text on a light panel. Re-point them at the palette.
   ───────────────────────────────────────────────────────────── */
.bg-light,
.bg-white,
.bg-body {
    background-color: var(--vb-glass-strong) !important;
    -webkit-backdrop-filter: var(--vb-glass-blur);
    backdrop-filter: var(--vb-glass-blur);
    color: var(--vb-ink);
}
.text-dark,
.text-black { color: var(--vb-ink) !important; }
.text-secondary { color: var(--vb-muted) !important; }
.text-white { color: #fff !important; }

/* Code blocks keep a deliberate dark slab in both themes. */
.bg-dark { background-color: var(--vb-slab) !important; color: var(--vb-on-slab) !important; }
.bg-dark.text-white, .bg-dark pre, .bg-dark .text-white { color: var(--vb-on-slab) !important; }

.table-light, .table > .table-light { --bs-table-bg: transparent; }
.table-dark, .table > .table-dark { --bs-table-bg: var(--vb-slab); --bs-table-color: var(--vb-on-slab); }

/* Cards and dropdowns come from Bootstrap and default to white. */
.card,
.dropdown-menu {
    background-color: var(--vb-glass-strong);
    -webkit-backdrop-filter: var(--vb-glass-blur);
    backdrop-filter: var(--vb-glass-blur);
    border-color: var(--vb-glass-rim);
    color: var(--vb-ink);
}
.dropdown-item { color: var(--vb-ink); }
.dropdown-item:hover,
.dropdown-item:focus { background-color: var(--vb-brand-soft); color: var(--vb-ink-strong); }
.dropdown-item.active,
.dropdown-item:active { background-color: var(--vb-brand); color: #fff; }

/* Bootstrap table body text inherits the palette, not #212529. */
.table { --bs-table-color: var(--vb-ink); --bs-table-bg: transparent; --bs-table-border-color: var(--vb-line); }
.table > :not(caption) > * > * { border-color: var(--vb-line); box-shadow: none; }

/* Form controls on glass. */
.form-control,
.form-select,
.input-group-text {
    background-color: var(--vb-glass-strong);
    border-color: var(--vb-line);
    color: var(--vb-ink);
}
.form-control:disabled,
.form-select:disabled { background-color: var(--vb-surface-alt); color: var(--vb-muted); }

/* Footer strips: the light band and the dark legal band both follow the palette. */
.footer .bg-light { background-color: var(--vb-glass-strong) !important; color: var(--vb-ink); }
.footer .bg-dark { background-color: var(--vb-slab) !important; color: var(--vb-on-slab); }
.footer .bg-dark .text-white-50,
.footer .text-white-50 { color: color-mix(in srgb, var(--vb-on-slab) 78%, transparent) !important; }
.footer .bg-dark a:hover { color: var(--vb-accent) !important; }

/* Utility bar links sit on the navy band: keep them fully opaque. */
.premium-utility-bar a { opacity: 1; color: #fff; }
.premium-utility-bar a:hover { color: var(--accent-color); }

/* Auth submit spinner */
.auth-submit {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    min-height: 48px;
}
.auth-submit__spinner {
    display: none;
    width: 17px;
    height: 17px;
    flex: 0 0 auto;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: vb-spin .65s linear infinite;
}
.auth-submit.is-loading .auth-submit__spinner { display: inline-block; }
.auth-submit.is-loading { opacity: .88; cursor: progress; }
.auth-submit:disabled { cursor: progress; }

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

@media (prefers-reduced-motion: reduce) {
    .auth-submit__spinner { animation-duration: 1.6s; }
}

@media (max-width: 575.98px) {
    .auth-wrap { margin: 1.25rem auto 2rem; }
    .auth-card { padding: 22px 18px; border-radius: 14px; }
    .auth-card h1 { font-size: 1.2rem; }
    .admin-main { padding: 16px 14px 32px; }
    .account-shell { gap: 14px; padding: 1rem 0 2rem; }
}

/* ─────────────────────────────────────────────────────────────
   Product detail page
   Two columns: description and related products on the left, a sticky
   purchase panel on the right. Collapses to one column under 992px with the
   buy panel first, so the primary action is never below the fold on mobile.
   ───────────────────────────────────────────────────────────── */
.vb-detail { padding-bottom: 3rem; }
.vb-detail__layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 372px;
    gap: 20px;
    align-items: start;
}
.vb-detail__main { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.vb-detail__side { display: flex; flex-direction: column; gap: 18px; min-width: 0; position: sticky; top: 88px; }

.vb-detail__head {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px;
    border-radius: var(--vb-radius);
    background: var(--vb-card-bg);
    border: 1px solid var(--vb-card-rim);
    box-shadow: var(--vb-shadow), var(--vb-card-inner);
    backdrop-filter: var(--vb-glass-blur);
    -webkit-backdrop-filter: var(--vb-glass-blur);
}
.vb-detail__art {
    flex: 0 0 auto;
    width: 84px;
    height: 84px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    background: var(--vb-card-media);
    border: 1px solid var(--vb-card-rim);
    color: var(--vb-icon-fg);
    font-size: 1.8rem;
    overflow: hidden;
}
.vb-detail__art img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }
.vb-detail__headtext { min-width: 0; }
.vb-detail__eyebrow {
    display: inline-block;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--vb-link);
    text-decoration: none;
    margin-bottom: .35rem;
}
.vb-detail__eyebrow:hover { color: var(--vb-brand); }
.vb-detail__title {
    font-size: clamp(1.05rem, 2.1vw, 1.4rem);
    font-weight: 800;
    line-height: 1.35;
    color: var(--vb-ink-strong);
    margin: 0 0 .7rem;
    overflow-wrap: anywhere;
    text-wrap: pretty;
}
.vb-detail__chips { display: flex; flex-wrap: wrap; gap: .4rem; }

.vb-chip {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .3rem .62rem;
    border-radius: 999px;
    font-size: .76rem;
    font-weight: 600;
    color: var(--vb-ink);
    background: var(--vb-glass);
    border: 1px solid var(--vb-line);
}
.vb-chip i { font-size: .78rem; opacity: .8; }
.vb-chip--ok { color: var(--vb-success); border-color: currentColor; }
.vb-chip--out { color: var(--vb-danger); border-color: currentColor; }
.vb-chip--price { color: var(--vb-link); border-color: currentColor; font-weight: 800; }

.vb-panel {
    border-radius: var(--vb-radius);
    background: var(--vb-card-bg);
    border: 1px solid var(--vb-card-rim);
    box-shadow: var(--vb-shadow), var(--vb-card-inner);
    backdrop-filter: var(--vb-glass-blur);
    -webkit-backdrop-filter: var(--vb-glass-blur);
    overflow: hidden;
}
.vb-panel__head {
    padding: 14px 20px;
    border-bottom: 1px solid var(--vb-card-rim);
}
.vb-panel__title {
    display: flex;
    align-items: center;
    gap: .5rem;
    margin: 0;
    font-size: .95rem;
    font-weight: 800;
    color: var(--vb-ink-strong);
}
.vb-panel__title i { color: var(--vb-brand); font-size: .9rem; }
.vb-panel__body { padding: 20px; }
.vb-muted { color: var(--vb-muted); }

.vb-detail__related {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 14px;
}

/* Similar list in the side rail */
.vb-similar {
    display: flex;
    align-items: center;
    gap: .65rem;
    padding: .55rem 0;
    text-decoration: none;
    border-bottom: 1px solid var(--vb-card-rim);
}
.vb-similar:last-child { border-bottom: 0; padding-bottom: 0; }
.vb-similar:first-child { padding-top: 0; }
.vb-similar__thumb {
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: var(--vb-card-media);
    border: 1px solid var(--vb-card-rim);
    color: var(--vb-icon-fg);
    overflow: hidden;
}
.vb-similar__thumb img { width: 100%; height: 100%; object-fit: contain; padding: 3px; }
.vb-similar__text { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.vb-similar__name {
    font-size: .8rem;
    font-weight: 600;
    color: var(--vb-ink);
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.vb-similar:hover .vb-similar__name { color: var(--vb-brand); }
.vb-similar__price { font-size: .76rem; font-weight: 800; color: var(--vb-link); }

/* Purchase panel */
.vb-buy {
    padding: 20px;
    border-radius: var(--vb-radius);
    background: var(--vb-card-bg);
    border: 1px solid var(--vb-card-rim);
    box-shadow: var(--vb-shadow-lg), var(--vb-card-inner);
    backdrop-filter: var(--vb-glass-blur);
    -webkit-backdrop-filter: var(--vb-glass-blur);
}
.vb-buy__price {
    display: flex;
    flex-direction: column;
    gap: .15rem;
    padding: 14px 16px;
    margin-bottom: 16px;
    border-radius: 12px;
    background: var(--vb-btn-bg);
    color: var(--vb-btn-fg);
}
.vb-buy__price-label { font-size: .72rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; opacity: .92; }
.vb-buy__price-value { font-size: 1.75rem; font-weight: 800; line-height: 1.1; }
.vb-buy__price-note { font-size: .74rem; opacity: .92; }

.vb-buy__label {
    display: block;
    font-size: .78rem;
    font-weight: 700;
    color: var(--vb-ink);
    margin-bottom: .4rem;
}

.vb-qty {
    display: flex;
    align-items: stretch;
    gap: .4rem;
    margin-bottom: 14px;
}
.vb-qty__btn {
    flex: 0 0 42px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    border: 1px solid var(--vb-line);
    background: var(--vb-glass);
    color: var(--vb-ink);
    font-size: .8rem;
    cursor: pointer;
    transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.vb-qty__btn:hover { background: var(--vb-brand); border-color: var(--vb-brand); color: #fff; }
.vb-qty__btn:focus-visible { outline: 2px solid var(--vb-brand); outline-offset: 2px; }
.vb-qty__input {
    flex: 1 1 auto;
    min-width: 0;
    text-align: center;
    font-size: 1rem;
    font-weight: 700;
    color: var(--vb-ink-strong);
    background: var(--vb-surface);
    border: 1px solid var(--vb-line);
    border-radius: 10px;
    padding: .55rem .4rem;
    -moz-appearance: textfield;
}
.vb-qty__input::-webkit-outer-spin-button,
.vb-qty__input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.vb-qty__input:focus { outline: 2px solid var(--vb-brand); outline-offset: 1px; }

.vb-buy__promo-toggle {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: 0;
    margin-bottom: 12px;
    border: 0;
    background: none;
    color: var(--vb-link);
    font-size: .82rem;
    font-weight: 600;
    cursor: pointer;
}
.vb-buy__promo-toggle:hover { color: var(--vb-brand); text-decoration: underline; }
.vb-buy__promo { margin-bottom: 14px; }
.vb-buy__promo-row { display: flex; gap: .4rem; }
.vb-input {
    flex: 1 1 auto;
    min-width: 0;
    padding: .5rem .7rem;
    font-size: .85rem;
    color: var(--vb-ink-strong);
    background: var(--vb-surface);
    border: 1px solid var(--vb-line);
    border-radius: 9px;
}
.vb-input:focus { outline: 2px solid var(--vb-brand); outline-offset: 1px; }
.vb-buy__promo-apply {
    flex: 0 0 auto;
    padding: .5rem .9rem;
    border-radius: 9px;
    border: 1px solid var(--vb-brand);
    background: transparent;
    color: var(--vb-link);
    font-size: .82rem;
    font-weight: 700;
    cursor: pointer;
}
.vb-buy__promo-apply:hover { background: var(--vb-brand); color: #fff; }
.vb-buy__promo-apply:disabled { opacity: .6; cursor: progress; }
.vb-buy__hint { margin: .4rem 0 0; font-size: .72rem; color: var(--vb-muted); }

.vb-buy__totals { margin: 0 0 14px; padding: 14px 0 0; border-top: 1px dashed var(--vb-line); }
.vb-buy__row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: .75rem;
    margin-bottom: .45rem;
}
.vb-buy__row dt { font-size: .82rem; font-weight: 600; color: var(--vb-muted); margin: 0; }
.vb-buy__row dd { margin: 0; font-size: .9rem; font-weight: 700; color: var(--vb-ink); }
.vb-buy__row--discount dd { color: var(--vb-success); }
.vb-buy__row--total { margin-bottom: 0; padding-top: .5rem; border-top: 1px solid var(--vb-line); }
.vb-buy__row--total dt { font-size: .9rem; color: var(--vb-ink); font-weight: 700; }
.vb-buy__row--total dd { font-size: 1.25rem; font-weight: 800; color: var(--vb-ink-strong); }

.vb-buy__agree { display: flex; flex-direction: column; gap: .55rem; margin-bottom: 16px; }
.vb-check { display: flex; align-items: flex-start; gap: .5rem; cursor: pointer; }
.vb-check__input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.vb-check__box {
    flex: 0 0 auto;
    width: 17px;
    height: 17px;
    margin-top: 1px;
    border-radius: 5px;
    border: 1.6px solid var(--vb-line);
    background: var(--vb-surface);
    display: grid;
    place-items: center;
    transition: background .15s ease, border-color .15s ease;
}
.vb-check__box::after {
    content: "";
    width: 8px;
    height: 4px;
    border-left: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(-45deg) scale(0);
    transition: transform .15s ease;
    margin-top: -2px;
}
.vb-check__input:checked + .vb-check__box { background: var(--vb-brand); border-color: var(--vb-brand); }
.vb-check__input:checked + .vb-check__box::after { transform: rotate(-45deg) scale(1); }
.vb-check__input:focus-visible + .vb-check__box { outline: 2px solid var(--vb-brand); outline-offset: 2px; }
.vb-check__text { font-size: .8rem; line-height: 1.45; color: var(--vb-muted); }
.vb-check__text a { color: var(--vb-link); font-weight: 600; }

.vb-buy__actions { display: flex; gap: .5rem; }

/* Buttons: the global .btn palette ignores the theme, so the detail page
   declares its own from the tokens. */
.vb-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .45rem;
    padding: .78rem 1rem;
    border-radius: 11px;
    border: 1px solid transparent;
    font-size: .9rem;
    font-weight: 700;
    line-height: 1.2;
    cursor: pointer;
    text-decoration: none;
    transition: background .16s ease, color .16s ease, border-color .16s ease,
                transform .16s ease, box-shadow .16s ease;
}
.vb-btn i { font-size: .88rem; }
.vb-btn--primary {
    flex: 1 1 auto;
    background: var(--vb-btn-bg);
    color: var(--vb-btn-fg);
    box-shadow: 0 8px 20px -8px rgba(11, 18, 32, .5);
}
.vb-btn--primary:hover { filter: brightness(.92); transform: translateY(-1px); }
.vb-btn--primary:focus-visible { outline: 2px solid var(--vb-ink-strong); outline-offset: 2px; }
.vb-btn--primary:disabled { opacity: .75; cursor: progress; transform: none; }
.vb-btn--ghost {
    flex: 0 0 auto;
    background: var(--vb-glass);
    border-color: var(--vb-line);
    color: var(--vb-ink);
}
.vb-btn--ghost:hover { border-color: var(--vb-brand); color: var(--vb-brand); }
/* The wishlist script toggles a bare .active class, so both spellings are
   styled to keep the saved state visible. */
.vb-btn--ghost.is-active,
.vb-btn--ghost.active { border-color: var(--vb-danger); color: var(--vb-danger); }
.vb-btn--ghost.is-active i,
.vb-btn--ghost.active i { color: var(--vb-danger); }
.vb-btn--disabled { flex: 1 1 auto; background: var(--vb-surface-alt); color: var(--vb-muted); cursor: not-allowed; }

.vb-buy__assure {
    list-style: none;
    margin: 16px 0 0;
    padding: 14px 0 0;
    border-top: 1px solid var(--vb-line);
    display: flex;
    flex-direction: column;
    gap: .45rem;
}
.vb-buy__assure li {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-size: .78rem;
    color: var(--vb-muted);
}
.vb-buy__assure i { color: var(--vb-success); width: 14px; text-align: center; }

@media (max-width: 991.98px) {
    .vb-detail__layout { grid-template-columns: minmax(0, 1fr); }
    .vb-detail__side { position: static; order: -1; }
    .vb-panel--side { display: none; }
    .vb-detail__head { flex-direction: column; }
    .vb-detail__related { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
}

/* styles.css paints these two IDs green with ID specificity, which beats the
   .vb-btn classes. Re-declare them from the theme tokens so the buy panel
   keeps its palette in both themes. */
#AddToCartButton {
    background: var(--vb-btn-bg);
    border: 1px solid transparent;
    color: var(--vb-btn-fg);
    box-shadow: 0 8px 20px -8px rgba(11, 18, 32, .5);
}
#AddToCartButton:hover { filter: brightness(.92); }
#promo_code_apply_btn {
    background: transparent;
    border: 1px solid var(--vb-brand);
    color: var(--vb-link);
}
#promo_code_apply_btn:hover { background: var(--vb-brand); color: #fff; }
#promo_code_apply_btn:disabled { opacity: .6; cursor: progress; }

/* ─────────────────────────────────────────────────────────────
   Description body
   Upstream descriptions arrive as raw HTML with inline colours baked in
   (e.g. style="background-color: #f2f2f2" on table headers and
   style="color:#555" on paragraphs). Those light-mode values made the text
   vanish in dark mode, so every descendant colour is re-declared from the
   theme tokens.
   ───────────────────────────────────────────────────────────── */
.pd-content,
.pd-content * {
    color: var(--vb-ink);
    background-color: transparent;
    border-color: var(--vb-line);
}
.pd-content h1,
.pd-content h2,
.pd-content h3,
.pd-content h4,
.pd-content strong,
.pd-content b {
    color: var(--vb-ink-strong);
}
.pd-content h1 { font-size: 1.15rem; font-weight: 800; margin: .2rem 0 .7rem; }
.pd-content h2 { font-size: 1.05rem; font-weight: 800; margin: 1rem 0 .5rem; }
.pd-content h3 { font-size: .95rem; font-weight: 700; margin: .9rem 0 .45rem; }
.pd-content p,
.pd-content li { line-height: 1.7; }
.pd-content ul,
.pd-content ol { padding-left: 1.15rem; margin-bottom: .8rem; }
.pd-content li { margin-bottom: .3rem; }
.pd-content a { color: var(--vb-link); text-decoration: underline; }
.pd-content hr {
    border: 0;
    border-top: 1px solid var(--vb-line);
    margin: 1rem 0;
    opacity: .9;
}
.pd-content img { max-width: 100%; height: auto; border-radius: 8px; }

/* Wide tables are common in supplier copy and used to force the whole page
   sideways on a phone. They scroll inside their own box instead. */
.pd-table {
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: .9rem;
    border: 1px solid var(--vb-line);
    border-radius: 10px;
}
.pd-content table {
    width: 100%;
    border-collapse: collapse;
    font-size: .82rem;
}
.pd-content th,
.pd-content td {
    padding: .5rem .65rem;
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid var(--vb-line);
}
.pd-content th {
    font-weight: 700;
    color: var(--vb-ink-strong);
    background-color: var(--vb-surface-alt);
    white-space: nowrap;
}
.pd-content tbody tr:last-child td { border-bottom: 0; }

/* Collapsed description with a Read more toggle */
.pd-clip {
    position: relative;
    max-height: 13rem;
    overflow: hidden;
    transition: max-height .3s ease;
}
.pd-clip::after {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 5rem;
    background: linear-gradient(to bottom, transparent, var(--vb-surface));
    pointer-events: none;
    transition: opacity .25s ease;
}
.pd-clip.is-open { max-height: none; }
.pd-clip.is-open::after { opacity: 0; }

.pd-toggle {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    margin-top: .9rem;
    padding: .5rem 1rem;
    border-radius: 999px;
    border: 1px solid var(--vb-brand);
    background: transparent;
    color: var(--vb-link);
    font-size: .82rem;
    font-weight: 700;
    cursor: pointer;
    transition: background .15s ease, color .15s ease;
}
.pd-toggle:hover { background: var(--vb-brand); color: #fff; }
.pd-toggle:focus-visible { outline: 2px solid var(--vb-brand); outline-offset: 2px; }
.pd-toggle i { transition: transform .25s ease; }
.pd-toggle[aria-expanded="true"] i { transform: rotate(180deg); }

/* ─────────────────────────────────────────────────────────────
   Wallet
   A balance hero with a glass sheen, geo summary tiles, a deposit
   composer and ledger rows. Everything is built from the shared
   glass tokens so it follows both palettes.
   ───────────────────────────────────────────────────────────── */
.wb-hero {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    padding: 26px 28px;
    margin-bottom: 18px;
    background: var(--vb-card-bg);
    border: 1px solid var(--vb-card-rim);
    box-shadow: var(--vb-card-inner), var(--vb-shadow-lg);
    -webkit-backdrop-filter: var(--vb-glass-blur);
    backdrop-filter: var(--vb-glass-blur);
    isolation: isolate;
}
/* The crescent glow that gives the pane depth without hiding the page wash. */
.wb-hero::before {
    content: "";
    position: absolute;
    width: 340px;
    height: 340px;
    right: -110px;
    top: -190px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(125, 211, 252, .38), transparent 68%);
    pointer-events: none;
    z-index: -1;
}
.wb-hero::after {
    content: "";
    position: absolute;
    width: 220px;
    height: 220px;
    right: 90px;
    bottom: -170px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(29, 78, 216, .16), transparent 70%);
    pointer-events: none;
    z-index: -1;
}

.wb-hero__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}
.wb-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .09em;
    text-transform: uppercase;
    color: var(--vb-muted);
}
.wb-hero__amount {
    display: flex;
    align-items: baseline;
    gap: .55rem;
    flex-wrap: wrap;
    margin: .45rem 0 .2rem;
}
.wb-hero__value {
    font-size: clamp(2rem, 5vw, 2.9rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -.02em;
    color: var(--vb-ink-strong);
}
.wb-hero__local {
    font-size: .9rem;
    font-weight: 600;
    color: var(--vb-muted);
}
.wb-hero__flag {
    width: 22px;
    height: 16px;
    border-radius: 3px;
    object-fit: cover;
    box-shadow: 0 0 0 1px rgba(11, 18, 32, .12);
}
.wb-hero__note {
    font-size: .82rem;
    color: var(--vb-muted);
    margin: 0;
}
.wb-hero__actions {
    display: flex;
    align-items: center;
    gap: .5rem;
    flex-wrap: wrap;
}

/* Geo chip: where the price came from, so the conversion is never a mystery. */
.wb-geo {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .4rem .7rem;
    border-radius: 999px;
    background: var(--vb-glass-strong);
    border: 1px solid var(--vb-line);
    font-size: .76rem;
    font-weight: 600;
    color: var(--vb-ink);
    white-space: nowrap;
}
.wb-geo__dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--vb-success);
    box-shadow: 0 0 0 3px rgba(15, 123, 79, .18);
    flex-shrink: 0;
}
.wb-geo--manual .wb-geo__dot {
    background: var(--vb-brand);
    box-shadow: 0 0 0 3px rgba(29, 78, 216, .16);
}

/* Summary tiles */
.wb-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(168px, 1fr));
    gap: 12px;
    margin-top: 20px;
    position: relative;
}
.wb-stat {
    border-radius: 14px;
    padding: 13px 15px;
    background: var(--vb-glass);
    border: 1px solid var(--vb-glass-rim);
    -webkit-backdrop-filter: var(--vb-glass-blur);
    backdrop-filter: var(--vb-glass-blur);
    min-width: 0;
}
.wb-stat__label {
    display: flex;
    align-items: center;
    gap: .35rem;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--vb-muted);
    margin-bottom: .3rem;
}
.wb-stat__value {
    font-size: 1.06rem;
    font-weight: 800;
    color: var(--vb-ink-strong);
    line-height: 1.25;
    overflow-wrap: anywhere;
}
.wb-stat__sub {
    font-size: .72rem;
    color: var(--vb-muted);
    margin-top: .15rem;
}

/* Deposit composer */
.wb-compose {
    border-radius: 18px;
    padding: 22px 24px;
    margin-bottom: 18px;
    background: var(--vb-card-bg);
    border: 1px solid var(--vb-card-rim);
    box-shadow: var(--vb-card-inner), var(--vb-shadow);
    -webkit-backdrop-filter: var(--vb-glass-blur);
    backdrop-filter: var(--vb-glass-blur);
}
.wb-compose__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}
.wb-compose__title {
    font-size: 1.02rem;
    font-weight: 800;
    color: var(--vb-ink-strong);
    margin: 0 0 .2rem;
}
.wb-compose__hint {
    font-size: .8rem;
    color: var(--vb-muted);
    margin: 0;
    max-width: 46ch;
}

.wb-amounts {
    display: flex;
    flex-wrap: wrap;
    gap: .45rem;
    margin-bottom: 14px;
}
.wb-amount {
    border: 1px solid var(--vb-line);
    background: var(--vb-glass-strong);
    color: var(--vb-ink);
    border-radius: 999px;
    padding: .4rem .85rem;
    font-size: .8rem;
    font-weight: 700;
    cursor: pointer;
    transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.wb-amount:hover { border-color: var(--vb-brand); color: var(--vb-link); }
.wb-amount.is-active {
    background: var(--vb-btn-bg);
    border-color: var(--vb-btn-bg);
    color: var(--vb-btn-fg);
}
.wb-amount:focus-visible { outline: 2px solid var(--vb-brand); outline-offset: 2px; }

.wb-fields {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
    gap: 12px;
    align-items: end;
}
.wb-field { min-width: 0; }
.wb-field label {
    display: block;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: var(--vb-muted);
    margin-bottom: .35rem;
}
.wb-field .form-select,
.wb-field .form-control {
    width: 100%;
    min-height: 44px;
    border-radius: 11px;
    border: 1px solid var(--vb-line);
    background-color: var(--vb-surface);
    color: var(--vb-ink);
    font-weight: 600;
}
.wb-field .form-select:focus,
.wb-field .form-control:focus {
    border-color: var(--vb-brand);
    box-shadow: 0 0 0 3px var(--vb-brand-soft);
}
/* "You pay" reads as a result, not an input, so it is tinted rather than boxed. */
.wb-pay {
    min-height: 44px;
    display: flex;
    align-items: center;
    padding: .5rem .85rem;
    border-radius: 11px;
    background: var(--vb-brand-soft);
    border: 1px solid transparent;
    color: var(--vb-link);
    font-weight: 800;
    font-size: 1rem;
    overflow-wrap: anywhere;
}
.wb-submit {
    min-height: 44px;
    padding: 0 1.35rem;
    border-radius: 11px;
    border: 0;
    background: var(--vb-btn-bg);
    color: var(--vb-btn-fg);
    font-weight: 700;
    font-size: .9rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .45rem;
    box-shadow: 0 8px 20px -8px rgba(11, 18, 32, .5);
    transition: filter .15s ease, transform .15s ease;
    white-space: nowrap;
}
.wb-submit:hover { filter: brightness(.92); transform: translateY(-1px); }
.wb-submit:focus-visible { outline: 2px solid var(--vb-brand); outline-offset: 2px; }

.wb-channels {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem;
    margin-top: 12px;
}
.wb-channel {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    padding: .25rem .6rem;
    border-radius: 999px;
    background: var(--vb-glass-strong);
    border: 1px solid var(--vb-line);
    font-size: .72rem;
    font-weight: 600;
    color: var(--vb-ink);
}
.wb-channel i { color: var(--vb-link); font-size: .7rem; }

.wb-fineprint {
    font-size: .75rem;
    color: var(--vb-muted);
    margin: .85rem 0 0;
}

/* Ledger */
.wb-panel {
    border-radius: 18px;
    padding: 20px 22px;
    margin-bottom: 18px;
    background: var(--vb-card-bg);
    border: 1px solid var(--vb-card-rim);
    box-shadow: var(--vb-card-inner), var(--vb-shadow);
    -webkit-backdrop-filter: var(--vb-glass-blur);
    backdrop-filter: var(--vb-glass-blur);
}
.wb-panel__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}
.wb-panel__title {
    font-size: 1rem;
    font-weight: 800;
    color: var(--vb-ink-strong);
    margin: 0;
    display: flex;
    align-items: center;
    gap: .45rem;
}
.wb-panel__title i { color: var(--vb-link); }
.wb-panel__count {
    font-size: .72rem;
    font-weight: 700;
    padding: .2rem .55rem;
    border-radius: 999px;
    background: var(--vb-brand-soft);
    color: var(--vb-link);
}

/* Rows rather than a table: a ledger with five columns cannot shrink to a
   phone without either clipping or a sideways scroll. */
.wb-ledger { display: flex; flex-direction: column; }
.wb-row {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 11px 0;
    border-bottom: 1px solid var(--vb-line);
}
.wb-row:last-child { border-bottom: 0; }
.wb-row__icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    background: var(--vb-icon-bg);
    color: var(--vb-icon-fg);
    font-size: .8rem;
    flex-shrink: 0;
}
.wb-row--in .wb-row__icon { color: var(--vb-success); }
.wb-row--out .wb-row__icon { color: var(--vb-danger); }
.wb-row__main { min-width: 0; }
.wb-row__title {
    font-size: .86rem;
    font-weight: 700;
    color: var(--vb-ink-strong);
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.wb-row__meta {
    font-size: .72rem;
    color: var(--vb-muted);
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.wb-row__amount {
    text-align: right;
    font-size: .88rem;
    font-weight: 800;
    white-space: nowrap;
}
.wb-row--in .wb-row__amount { color: var(--vb-success); }
.wb-row--out .wb-row__amount { color: var(--vb-danger); }
.wb-row__balance {
    display: block;
    font-size: .7rem;
    font-weight: 600;
    color: var(--vb-muted);
}

.wb-empty {
    text-align: center;
    padding: 26px 16px;
    color: var(--vb-muted);
}
.wb-empty i {
    display: block;
    font-size: 1.5rem;
    margin-bottom: .5rem;
    opacity: .55;
}
.wb-empty p { margin: 0; font-size: .85rem; }

/* Thumb-sized targets: the chips and quick amounts sit below the 44px
   comfortable minimum on touch screens. */
@media (max-width: 767.98px) {
    .wb-geo, .wb-amount { min-height: 44px; display: inline-flex; align-items: center; }
    .wb-amount { padding: .5rem 1rem; }
    .wb-hero { padding: 20px 18px; border-radius: 16px; }
    .wb-hero__actions { width: 100%; }
    .wb-compose, .wb-panel { padding: 16px; border-radius: 15px; }
    .wb-fields { grid-template-columns: minmax(0, 1fr); }
    .wb-submit { width: 100%; }
    .wb-row { grid-template-columns: 30px minmax(0, 1fr) auto; gap: 9px; }
    .wb-row__icon { width: 30px; height: 30px; }
    .wb-row__title, .wb-row__meta { white-space: normal; }
}
