/* ============================================================
   BILZOO — Gift Voucher Platform
   Design tokens (purple primary, pink + orange accents)
   Mirrors the My G.V. / Magicpin reference designs
   ============================================================ */

:root {
    --brand-50:  #F4F0FF;
    --brand-100: #E6DCFF;
    --brand-200: #C9B3FF;
    --brand-300: #A683FF;
    --brand-400: #8556F7;
    --brand-500: #6B2BFE;   /* primary */
    --brand-600: #5B1FE0;
    --brand-700: #4816B5;
    --brand-800: #36108A;
    --brand-900: #22085F;

    --pink-500:  #FF4D8D;
    --pink-600:  #E83A78;
    --orange-500: #FF8A3D;
    --orange-600: #F07225;
    --yellow-500: #FFC93D;

    --bg:        #F6F5FB;
    --surface:   #FFFFFF;
    --ink:       #1A1033;
    --ink-2:     #4B456A;
    --muted:     #8B85A8;
    --line:      #ECE9F5;

    --success:   #1FA971;
    --danger:    #E5373D;
    --warning:   #F5A524;
    --info:      #2D8DF0;

    --radius-sm: 8px;
    --radius:    14px;
    --radius-lg: 20px;
    --radius-pill: 999px;

    --shadow-xs: 0 1px 2px rgba(31,16,80,.05);
    --shadow-sm: 0 2px 8px rgba(31,16,80,.06);
    --shadow:    0 8px 24px rgba(107,43,254,.10);
    --shadow-lg: 0 18px 40px rgba(107,43,254,.18);

    --grad-brand: linear-gradient(135deg, #6B2BFE 0%, #FF4D8D 60%, #FF8A3D 100%);
    --grad-brand-soft: linear-gradient(135deg, #F4F0FF 0%, #FFE7F2 60%, #FFEFE0 100%);
    --grad-purple: linear-gradient(135deg, #6B2BFE 0%, #4816B5 100%);
    --grad-pink:   linear-gradient(135deg, #FF4D8D 0%, #FF8A3D 100%);
}

* { box-sizing: border-box; }

html, body {
    margin: 0; padding: 0;
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 15px;
    color: var(--ink);
    /* Dark violet → magenta → orange diagonal gradient, slightly desaturated
       so it works behind the existing white cards without overpowering them. */
    background:
        linear-gradient(135deg, #1F0B4D 0%, #4B1896 28%, #902C7E 55%, #D14E27 85%, #F08C1A 100%);
    background-attachment: fixed;
    background-size: cover;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}
body {
    min-height: 100vh;
}

/* ====== Home page opt-out ======
   Removes the site-wide gradient + internal borders so the home page
   feels clean (white background). Only applies when body has .is-home.
   Other pages — login, register, verify, forgot, cart, checkout,
   brand, etc. — keep the existing gradient/borders untouched. */
body.is-home {
    background: #FFFFFF;
    background-attachment: scroll;
}
/* On the home page (white bg) the headings should default to dark ink
   instead of the gradient-style white headings. */
body.is-home h1,
body.is-home h2,
body.is-home h3,
body.is-home h4,
body.is-home h5 { color: var(--ink); }
/* Don't let the global home-page heading colour bleed into the
   footer's dark background — keep its headings white. */
body.is-home .bz-footer h1,
body.is-home .bz-footer h2,
body.is-home .bz-footer h3,
body.is-home .bz-footer h4,
body.is-home .bz-footer h5 { color: #fff; }
/* Section sub-heading text colour on the home page (the "See all"
   links used to sit on the gradient — flip them to brand-purple). */
body.is-home .bz-section-head h2 { color: var(--ink); }
body.is-home .bz-section-head .bz-link { color: var(--brand-700); }
body.is-home .bz-text-muted,
body.is-home .bz-muted,
body.is-home .bz-trust-item strong,
body.is-home .bz-trust-item div div { color: var(--ink-2); }

a { color: var(--brand-500); text-decoration: none; }
a:hover { color: var(--brand-700); }

img { max-width: 100%; display: block; }

h1, h2, h3, h4, h5 { margin: 0; color: #fff; font-weight: 700; line-height: 1.25; letter-spacing: -0.01em; }
h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.2rem; }
h4 { font-size: 1rem; }
/* Headings inside white card tiles stay dark for readability */
.bz-card h1, .bz-card h2, .bz-card h3, .bz-card h4, .bz-card h5,
.bz-card-flat h1, .bz-card-flat h2, .bz-card-flat h3, .bz-card-flat h4, .bz-card-flat h5,
.bz-card-head h1, .bz-card-head h2, .bz-card-head h3, .bz-card-head h4, .bz-card-head h5,
.bz-brand-card h1, .bz-brand-card h2, .bz-brand-card h3, .bz-brand-card h4, .bz-brand-card h5,
.bz-voucher-card h1, .bz-voucher-card h2, .bz-voucher-card h3, .bz-voucher-card h4, .bz-voucher-card h5,
.bz-trust-item h1, .bz-trust-item h2, .bz-trust-item h3, .bz-trust-item h4, .bz-trust-item h5,
.bz-empty h1, .bz-empty h2, .bz-empty h3, .bz-empty h4, .bz-empty h5,
.bz-section-head h1, .bz-section-head h2, .bz-section-head h3,
.bz-home-trust h1, .bz-home-trust h2, .bz-home-trust h3,
.bz-brand-stat-num,
/* Admin pages: headings on white background must stay dark, not the
   site-wide white default (which exists for purple hero blocks). */
.bz-admin h1, .bz-admin h2, .bz-admin h3, .bz-admin h4, .bz-admin h5,
.bz-admin-head h1, .bz-admin-head h2, .bz-admin-head h3,
.bz-admin-main h1, .bz-admin-main h2, .bz-admin-main h3,
.bz-static-card h1, .bz-static-card h2, .bz-static-card h3 { color: var(--ink); }

.serif { font-family: 'Playfair Display', Georgia, serif; }

/* ===== Typeahead dropdown (used by header / homepage / brands search) ===== */
.bz-typeahead { position: relative; }
.bz-typeahead-list {
    position: absolute;
    left: 0; right: 0;
    top: calc(100% + 6px);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: 0 18px 40px rgba(20, 8, 55, .14);
    max-height: 420px;
    overflow-y: auto;
    z-index: 200;
    padding: 6px;
    display: none;
}
.bz-typeahead-list.is-open { display: block; }
.bz-typeahead-section {
    padding: 8px 12px 4px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--ink-2);
}
.bz-typeahead-section:not(:first-child) {
    border-top: 1px solid var(--line);
    margin-top: 4px;
}
.bz-typeahead-item {
    display: flex; align-items: center; gap: 12px;
    padding: 8px 10px;
    border-radius: 10px;
    color: var(--ink);
    text-decoration: none;
    cursor: pointer;
    transition: background .12s;
}
.bz-typeahead-item:hover,
.bz-typeahead-item.is-active {
    background: #F4F0FF;
}
/* Compact variant: typeahead shows only logo + brand name. The
   description / tagline / category meta line is hidden so the
   dropdown stays tight and readable; the brand detail page still
   renders the full description. */
.bz-typeahead-item--compact { padding: 10px 12px; gap: 14px; }
.bz-typeahead-item--compact .bz-typeahead-item-name { font-size: 1rem; }
.bz-typeahead-item-logo {
    flex: 0 0 36px;
    width: 36px; height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #F4ECFF 0%, #FFE1F0 100%);
    overflow: hidden;
    display: flex; align-items: center; justify-content: center;
    font-weight: 800;
    font-size: 0.95rem;
    color: #6B2BFE;
    border: 1px solid var(--line);
}
.bz-typeahead-item--compact .bz-typeahead-item-logo {
    flex: 0 0 44px; width: 44px; height: 44px;
}
.bz-typeahead-item-logo img { width: 100%; height: 100%; object-fit: contain; }
.bz-typeahead-item-body { flex: 1; min-width: 0; }
.bz-typeahead-item-name {
    font-weight: 700;
    font-size: 0.95rem;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.bz-typeahead-item-name b { color: #6B2BFE; font-weight: 800; }
.bz-typeahead-item-meta {
    font-size: 0.78rem;
    color: var(--ink-2);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    /* Tagline / category meta line is no longer rendered in the
       brand typeahead (kept here in case it's reused elsewhere). */
    display: none;
}
.bz-typeahead-item-badge {
    flex-shrink: 0;
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    background: linear-gradient(135deg, #FFD24A 0%, #FFB347 100%);
    color: #5A3A00;
    padding: 3px 8px;
    border-radius: 999px;
}
.bz-typeahead-empty {
    padding: 14px 12px;
    text-align: center;
    font-size: 0.85rem;
    color: var(--ink-2);
}
.bz-typeahead-empty a { color: var(--brand-600); font-weight: 700; }
.bz-typeahead-viewall {
    display: block;
    padding: 10px 12px;
    border-top: 1px solid var(--line);
    margin-top: 4px;
    text-align: center;
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--brand-600);
    cursor: pointer;
}
.bz-typeahead-viewall:hover { background: #F4F0FF; border-radius: 10px; }

/* ===== Header search slide-out ===== */
.bz-header-search-trigger {
    display: inline-flex; align-items: center; justify-content: center;
    width: 38px; height: 38px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: #fff;
    color: var(--ink);
    cursor: pointer;
    transition: background .15s, color .15s, border-color .15s;
}
.bz-header-search-trigger:hover {
    background: #F4F0FF;
    color: var(--brand-600);
    border-color: #D9C8FF;
}
.bz-header-search-trigger svg { width: 18px; height: 18px; }
.bz-header-search-overlay {
    position: fixed;
    inset: 0;
    background: rgba(20, 8, 55, 0.45);
    backdrop-filter: blur(4px);
    z-index: 900;
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s;
}
.bz-header-search-overlay.is-open {
    opacity: 1;
    pointer-events: auto;
}
.bz-header-search-panel {
    position: fixed;
    top: 0; left: 0; right: 0;
    background: #fff;
    box-shadow: 0 12px 36px rgba(20, 8, 55, .14);
    padding: 16px 0;
    z-index: 901;
    transform: translateY(-100%);
    transition: transform .25s cubic-bezier(.4, 0, .2, 1);
}
.bz-header-search-panel.is-open { transform: translateY(0); }
.bz-header-search-panel-inner {
    width: 99%;
    max-width: 720px;
    margin: 0 auto;
    padding: 0 16px;
    position: relative;
}
.bz-header-search-input {
    display: flex; align-items: center; gap: 12px;
    background: #F8FAFC;
    border: 1.5px solid var(--line);
    border-radius: 999px;
    padding: 12px 18px;
}
.bz-header-search-input:focus-within {
    background: #fff;
    border-color: var(--brand-600);
    box-shadow: 0 0 0 4px rgba(107, 43, 254, .12);
}
.bz-header-search-input svg { width: 20px; height: 20px; color: var(--ink-2); flex-shrink: 0; }
.bz-header-search-input input {
    flex: 1; border: 0; outline: 0; background: transparent;
    font: 500 1rem/1 'Inter', sans-serif;
    color: var(--ink);
    min-width: 0;
}
.bz-header-search-close {
    border: 0; background: transparent;
    width: 32px; height: 32px;
    border-radius: 50%;
    cursor: pointer;
    color: var(--ink-2);
    display: flex; align-items: center; justify-content: center;
}
.bz-header-search-close:hover { background: #F4F0FF; color: var(--ink); }
.bz-header-search-panel .bz-typeahead-list { box-shadow: 0 18px 40px rgba(20, 8, 55, .14); }
.bz-header-search-hint {
    margin: 8px 16px 0;
    font-size: 0.78rem;
    color: var(--ink-2);
    display: flex; align-items: center; gap: 8px;
}
.bz-header-search-hint kbd {
    background: #F4F0FF;
    color: var(--brand-600);
    padding: 1px 6px;
    border-radius: 4px;
    font-size: 0.72rem;
    font-weight: 700;
}

/* ===== Layout shell ===== */
/* Desktop (>=880px): the top-level <main> uses a true 90% width.
   Inner .bz-container / .bz-container-sm fill the main element
   100% — only the OUTER shell is constrained to 90% so the
   coloured body background shows on the side gutters.
   No max-width cap — on a 1920px monitor the content is 1728px wide. */
.bz-container {
    width: 100%;
    margin: 0 auto;
    padding-left: 20px !important;
    padding-right: 20px !important;
    box-sizing: border-box;
}
.bz-container-sm {
    width: 100%;
    margin: 0 auto;
    padding-left: 20px !important;
    padding-right: 20px !important;
    box-sizing: border-box;
}
/* Desktop: cap the small container at ~half the viewport so detail
   pages (my-voucher, voucher detail, login card) sit as a centered
   column instead of stretching edge-to-edge. Mobile falls through
   to width:100% above. */
@media (min-width: 880px) {
    .bz-container-sm { max-width: 640px; }
}
@media (max-width: 540px) {
    .bz-container, .bz-container-sm { padding-left: 16px !important; padding-right: 16px !important; }
}
.bz-section { padding-top: 30px; }
.bz-section-sm { padding-top: 30px; padding-bottom: 60px; }
/* When the section starts with a back-link (brand, my-voucher, etc.),
   eat most of the top padding so there's almost no empty space above
   the back arrow. Pulls the button up to ~6px from the page top. */
.bz-section > .bz-back-btn:first-child { margin-top: -28px; }
/* Mobile needs slightly more breathing room — keep ~12px so the back
   button isn't glued to the header bar. */
@media (max-width: 720px) {
    .bz-section > .bz-back-btn:first-child { margin-top: -22px; }
}

/* Main content — true 90% width on desktop, no max-width cap */
main {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding-left: 0;
    padding-right: 0;
    box-sizing: border-box;
    position: relative;
}
@media (min-width: 880px) {
    main { width: 99%; }
}
@media (max-width: 540px) {
    main { padding-left: 0px; padding-right: 0px; }
    /* Mobile: hide the top-header cart button — the floating buy-FAB
       (rendered lower on the page) already shows cart count + checkout CTA,
       and the bottom mobile-nav has its own cart entry. Keeps the header
       uncluttered on small screens. */
    .bz-header-cart-btn { display: none !important; }
}
@media (max-width: 380px) {
    main { padding-left: 0px; padding-right: 0px; }
    .bz-header-inner{padding: 12px 0px !important;}
    .bz-logo .bz-logo-img{height: 30px !important;}
    .bz-header-search-trigger,.bz-icon-btn{width: 30px !important;}
}

/* Pagination arrows — override Tailwind w-5 h-5 */
nav[role="navigation"] svg.w-5,
nav[role="navigation"] svg[class*="w-5"],
nav[role="navigation"] svg,
nav[role="navigation"] span svg,
nav[role="navigation"] a svg {
    width: 16px !important;
    height: 16px !important;
    max-width: 16px !important;
    max-height: 16px !important;
    flex-shrink: 0;
}
nav[role="navigation"] a,
nav[role="navigation"] span[aria-current] span,
nav[role="navigation"] span[aria-disabled] span {
    display: inline-flex !important;
    align-items: center; justify-content: center;
    min-width: 36px !important; height: 36px !important;
    padding: 0 12px !important;
    font-size: 0.85rem !important;
    line-height: 1 !important;
}

/* ===== Static page hero + legal styling (about, terms, privacy, help) ===== */
.bz-page-hero {
    padding: 28px 0 24px;
    margin-bottom: 28px;
    border-bottom: 1px solid var(--line);
}
.bz-page-hero h1 {
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--ink);
    margin: 12px 0 10px;
    line-height: 1.15;
}
.bz-page-hero p {
    font-size: 1rem;
    color: var(--ink-2);
    line-height: 1.55;
    margin: 0 0 8px;
    max-width: 640px;
}

/* Light card wrapper for static pages (about / terms / privacy / help / contact)
   — gives the dark text a readable background against the body gradient. */
.bz-static-card {
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 32px 36px;
    box-shadow: 0 10px 30px rgba(20, 8, 55, .12);
    color: var(--ink);
}
.bz-static-card .bz-page-hero { border-bottom-color: rgba(0,0,0,.08); }
.bz-static-card .bz-page-hero h1 { color: var(--ink); }
.bz-static-card .bz-page-hero p { color: var(--ink-2); }
.bz-static-card .bz-about-h2 { color: var(--ink); }
.bz-static-card p { color: var(--ink-2); }
.bz-static-card li { color: var(--ink-2); }
.bz-static-card address { color: var(--ink-2); }
@media (max-width: 720px) {
    .bz-static-card { padding: 22px 18px; border-radius: 14px; }
}

.bz-legal h2,
.bz-about-h2 {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--ink);
    letter-spacing: -0.01em;
    margin: 32px 0 12px;
}
.bz-legal p,
.bz-legal li,
.bz-legal address {
    color: var(--ink-2);
    font-size: 0.95rem;
    line-height: 1.65;
    margin: 0 0 14px;
}
.bz-legal ul,
.bz-legal ol {
    padding-left: 22px;
    margin: 0 0 16px;
}
.bz-legal li { margin-bottom: 6px; }
.bz-legal a,
.bz-about p a {
    color: var(--brand-700);
    text-decoration: none;
    border-bottom: 1px solid rgba(107, 43, 254, .35);
}
.bz-legal a:hover { border-bottom-color: var(--brand-700); }
.bz-legal code {
    background: var(--bg);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85em;
    color: var(--brand-700);
}

/* Info / callout box used at the top of static pages */
.bz-callout {
    border: 1px solid var(--line);
    border-left: 4px solid var(--brand-700);
    background: linear-gradient(135deg, #F8F4FF 0%, #F2EEFF 100%);
    border-radius: 12px;
    padding: 14px 18px;
    margin: 0 0 24px;
    color: var(--ink-2);
    font-size: 0.95rem;
    line-height: 1.6;
}
.bz-callout strong { color: var(--ink); }
.bz-callout-info { border-left-color: var(--brand-700); }
.bz-callout-warn { border-left-color: #B45309; background: linear-gradient(135deg, #FFFBEB 0%, #FEF3C7 100%); }

/* Global pill-purple (not scoped to tables) */
.bz-pill-purple {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    background: #F4ECFF;
    color: #5B21B6;
}

/* About page — stats */
.bz-about-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin: 24px 0 32px;
}
.bz-about-stats > div {
    background: linear-gradient(135deg, #F4ECFF 0%, #FFF0F8 100%);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 18px 12px;
    text-align: center;
}
.bz-about-stats strong {
    display: block;
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--brand-700);
    letter-spacing: -0.02em;
    line-height: 1.1;
}
.bz-about-stats span {
    display: block;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-top: 4px;
}
@media (max-width: 540px) {
    .bz-about-stats { grid-template-columns: repeat(2, 1fr); }
    .bz-about-stats strong { font-size: 1.3rem; }
}

/* About page — values grid */
.bz-about-values {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin: 16px 0 24px;
}
.bz-about-value {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 18px;
}
.bz-about-value-ico {
    width: 40px; height: 40px;
    border-radius: 10px;
    display: inline-flex; align-items: center; justify-content: center;
    font-weight: 800;
    font-size: 1.1rem;
    margin-bottom: 12px;
}
.bz-about-value h3 {
    font-size: 1rem;
    font-weight: 800;
    color: var(--ink);
    margin: 0 0 6px;
}
.bz-about-value p {
    margin: 0;
    color: var(--ink-2);
    font-size: 0.88rem;
    line-height: 1.5;
}
@media (max-width: 540px) {
    .bz-about-values { grid-template-columns: 1fr; }
}

/* About page — numbered steps */
.bz-about-steps {
    padding-left: 0;
    list-style: none;
    counter-reset: step;
    margin: 16px 0 24px;
}
.bz-about-steps li {
    counter-increment: step;
    position: relative;
    padding: 14px 14px 14px 52px;
    margin-bottom: 10px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    color: var(--ink-2);
    font-size: 0.95rem;
    line-height: 1.5;
}
.bz-about-steps li::before {
    content: counter(step);
    position: absolute;
    left: 14px; top: 50%;
    transform: translateY(-50%);
    width: 28px; height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6B2BFE 0%, #FF4D8D 100%);
    color: #fff;
    font-weight: 800;
    font-size: 0.85rem;
    display: inline-flex; align-items: center; justify-content: center;
}
.bz-about-steps li strong { color: var(--ink); }

/* About page — CTA */
.bz-about-cta {
    text-align: center;
    padding: 32px 20px;
    margin-top: 32px;
    background: linear-gradient(135deg, #6B2BFE 0%, #FF4D8D 100%);
    border-radius: 18px;
    color: #fff;
}
.bz-about-cta h3 {
    color: #fff;
    font-size: 1.4rem;
    font-weight: 800;
    margin: 0 0 16px;
}
.bz-about-cta .bz-btn-primary {
    background: #fff;
    color: var(--brand-700);
    border: 0;
}
.bz-about-cta .bz-btn-primary:hover {
    background: var(--brand-100);
    color: var(--brand-700);
}

/* ===== Brand show page ===== */
/* ===== Brand show page — two-column layout ===== */
/* Desktop : left panel = brand logo + details + terms
             right panel = vouchers list
   Mobile  : left panel renders first, then vouchers stack below */
.bz-brand-show {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 28px;
    align-items: start;
}

/* ----- LEFT PANEL ----- */
.bz-brand-show-left {
    display: flex;
    flex-direction: column;
    gap: 18px;
    position: sticky;
    top: 16px;
    max-height: calc(100vh - 24px);
    overflow-y: auto;
    /* Slim scrollbar */
    scrollbar-width: thin;
    scrollbar-color: var(--line) transparent;
    padding-right: 4px;
}
.bz-brand-show-left::-webkit-scrollbar { width: 6px; }
.bz-brand-show-left::-webkit-scrollbar-thumb { background: var(--line); border-radius: 3px; }

/* Brand detail page logo section — full card has a soft light-pink
   gradient background. The logo image itself has NO inner background
   so transparent PNG logos show through to the pink card. */
.bz-brand-show-logo-card {
    background: linear-gradient(135deg, #FFE4EE 0%, #FFD9E8 100%);
    border: 0;
    border-radius: 20px;
    padding: 24px 18px 22px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    box-shadow: 0 8px 22px rgba(255, 100, 160, 0.10);
}
.bz-brand-show-logo-img {
    width: 100%;
    max-width: 240px;
    max-height: 200px;
    object-fit: contain;
    background: transparent;
    border: 0;
    border-radius: 0;
    padding: 0;
}
.bz-brand-show-logo-ph {
    display: flex; align-items: center; justify-content: center;
    width: 160px; height: 160px;
    border-radius: 50%;
    background: transparent;
    border: 0;
    font-size: 3.6rem;
    font-weight: 800;
    color: #C2185B;
}
.bz-brand-show-name {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--ink);
    letter-spacing: -0.01em;
    line-height: 1.2;
}

.bz-brand-show-details {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.bz-brand-show-stat {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    align-self: flex-start;
    background: rgba(255, 255, 255, .8);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 6px 14px;
    font-size: 0.82rem;
    color: var(--ink-2);
    font-weight: 600;
}
.bz-brand-show-stat strong { color: var(--brand-700); font-weight: 800; }
.bz-brand-show-stat--gold {
    background: linear-gradient(135deg, #FFF4D9 0%, #FFE2B6 100%);
    border-color: #F5D38A;
    color: #8A5800;
}
.bz-brand-show-stat--gold strong { color: #B45309; }
.bz-brand-show-tag {
    color: var(--ink);
    font-size: 0.98rem;
    font-weight: 600;
    margin: 0;
    line-height: 1.4;
}
.bz-brand-show-desc {
    color: var(--ink-2);
    font-size: 0.88rem;
    margin: 0;
    line-height: 1.55;
}

.bz-brand-show-terms-card {
    background: #FFF7E6;
    border: 1px solid #FBE4A2;
    border-radius: 16px;
    padding: 16px 18px;
}
.bz-brand-show-terms-title {
    font-size: 0.92rem;
    font-weight: 800;
    color: #7A5C00;
    margin: 0 0 8px;
    letter-spacing: 0.01em;
    text-transform: uppercase;
}
.bz-brand-show-terms-body {
    color: #5A4400;
    font-size: 0.84rem;
    line-height: 1.6;
    max-height: 320px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #FBE4A2 transparent;
}
.bz-brand-show-terms-body::-webkit-scrollbar { width: 6px; }
.bz-brand-show-terms-body::-webkit-scrollbar-thumb { background: #FBE4A2; border-radius: 3px; }

/* Rich-text content rendered from admin editor */
.bz-prose p { margin: 0 0 0.6em; }
.bz-prose p:last-child { margin-bottom: 0; }
.bz-prose h1, .bz-prose h2, .bz-prose h3 {
    margin: 0.6em 0 0.4em;
    line-height: 1.25;
    font-weight: 700;
    color: #3F2A00;
}
.bz-prose h1 { font-size: 1.3rem; }
.bz-prose h2 { font-size: 1.15rem; }
.bz-prose h3 { font-size: 1.0rem; }
.bz-prose ul, .bz-prose ol { margin: 0.4em 0 0.6em 1.4em; }
.bz-prose li { margin: 0.2em 0; }

/* ===== Brand FAQ accordion ===== */
.bz-brand-show-faq {
    background: #FFFFFF;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 14px 16px 8px;
}
.bz-brand-faq-item {
    border-bottom: 1px solid var(--line);
    padding: 0;
    margin: 0;
}
.bz-brand-faq-item:last-child { border-bottom: 0; }
.bz-brand-faq-item summary {
    list-style: none;
    cursor: pointer;
    padding: 12px 4px;
    font-weight: 700;
    color: var(--ink);
    font-size: 0.92rem;
    position: relative;
    padding-right: 30px;
    transition: color .15s;
}
.bz-brand-faq-item summary::-webkit-details-marker { display: none; }
.bz-brand-faq-item summary::after {
    content: '+';
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--brand-700, #5B1FE0);
    transition: transform .2s;
}
.bz-brand-faq-item[open] > summary { color: var(--brand-700, #5B1FE0); }
.bz-brand-faq-item[open] > summary::after { content: '−'; }
.bz-brand-faq-item summary:hover { color: var(--brand-700, #5B1FE0); }
.bz-brand-faq-answer {
    color: var(--ink-2);
    font-size: 0.88rem;
    line-height: 1.6;
    padding: 0 4px 14px;
}
/* ===== FAQ visibility =====
   The left-panel FAQ (rendered directly under the brand logo) is
   shown everywhere except plain desktop ≥721px. The right-panel
   duplicate is hidden by default and only revealed when we explicitly
   need it. The mobile-app drawer keeps using the LEFT panel copy
   (right under the logo) — never the duplicate. */
.bz-brand-show-faq--mobile { display: none; }
.bz-brand-show-faq--desktop { display: block; }

/* Plain desktop: hide the right-panel duplicate. */
@media (min-width: 721px) {
    .bz-brand-show-faq--mobile { display: none !important; }
}

/* Mobile (≤720px, plain or is-mobile-app): the LEFT-panel copy is
   the one that sits directly under the logo card — that is what we
   show. The right-panel duplicate stays hidden so the FAQ does not
   appear again between the voucher header and the voucher list. */
@media (max-width: 720px) {
    .bz-brand-show-faq--desktop { display: block !important; }
    .bz-brand-show-faq--mobile  { display: none  !important; }
    .bz-brand-faq-item summary  { font-size: 0.88rem; }
    .bz-brand-faq-answer       { font-size: 0.85rem; }
}
/* Belt-and-braces: even with the .is-mobile-app cookie, never reveal
   the right-panel mobile FAQ. */
.is-mobile-app .bz-brand-show-faq--mobile  { display: none !important; }
.is-mobile-app .bz-brand-show-faq--desktop { display: block !important; }
.bz-prose a { color: #5B1FE0; text-decoration: underline; }
.bz-prose blockquote {
    margin: 0.6em 0;
    padding: 6px 12px;
    border-left: 3px solid #B45309;
    background: #FFFBEB;
    border-radius: 0 6px 6px 0;
}
.bz-prose code {
    background: rgba(0,0,0,0.05);
    padding: 1px 4px;
    border-radius: 3px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9em;
}

/* ===== Per-brand monthly cap card (left panel) ===== */
.bz-brand-cap-card {
    background: linear-gradient(135deg, #EFF6FF 0%, #F5F3FF 100%);
    border: 1px solid #C7D2FE;
    border-radius: 16px;
    padding: 16px 18px;
    color: #1E1B4B;
    display:none;
}
.bz-brand-cap-card.is-near {
    background: linear-gradient(135deg, #FFFBEB 0%, #FEF3C7 100%);
    border-color: #FCD34D;
    color: #78350F;
}
.bz-brand-cap-card.is-reached {
    background: linear-gradient(135deg, #FEF2F2 0%, #FEE2E2 100%);
    border-color: #FCA5A5;
    color: #7F1D1D;
}
.bz-brand-cap-title {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin: 0 0 10px;
    color: inherit;
    opacity: 0.85;
}
.bz-brand-cap-bar {
    height: 10px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: 8px;
}
.bz-brand-cap-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #6366F1, #8B5CF6);
    border-radius: 999px;
    transition: width 0.3s ease;
}
.bz-brand-cap-card.is-near .bz-brand-cap-bar-fill { background: linear-gradient(90deg, #F59E0B, #D97706); }
.bz-brand-cap-card.is-reached .bz-brand-cap-bar-fill { background: linear-gradient(90deg, #DC2626, #B91C1C); }
.bz-brand-cap-stats {
    display: flex;
    justify-content: space-between;
    font-size: 0.88rem;
    color: inherit;
    margin-bottom: 8px;
}
.bz-brand-cap-stats strong { font-weight: 800; }
.bz-brand-cap-hint {
    font-size: 0.82rem;
    line-height: 1.45;
    color: inherit;
    opacity: 0.9;
    border-top: 1px dashed currentColor;
    padding-top: 8px;
    margin-top: 4px;
}
.bz-brand-cap-msg {
    font-size: 0.88rem;
    line-height: 1.5;
    color: inherit;
}
.bz-brand-cap-msg strong { font-weight: 800; }

/* Cap-reached banner at top of vouchers list */
.bz-cap-reached-banner {
    background: linear-gradient(135deg, #FEF2F2 0%, #FEE2E2 100%);
    border: 1px solid #FCA5A5;
    color: #7F1D1D;
    border-radius: 14px;
    padding: 14px 18px;
    margin-bottom: 18px;
    font-size: 0.92rem;
    line-height: 1.5;
}
.bz-cap-reached-banner strong { font-weight: 800; }

/* Cap-reached button variant on voucher tiles */
.bz-vc-btn-cap {
    background: #FEE2E2;
    color: #991B1B;
    border-color: #FCA5A5;
    cursor: not-allowed;
}
.bz-vc-btn-cap svg { width: 16px; height: 16px; }

/* "X left this month" hint under voucher tiles */
.bz-voucher-cap-hint {
    margin-top: 6px;
    font-size: 0.74rem;
    color: #92400E;
    background: linear-gradient(135deg, #FFFBEB 0%, #FEF3C7 100%);
    border: 1px solid #FCD34D;
    border-radius: 8px;
    padding: 4px 8px;
    text-align: center;
    font-weight: 700;
}

/* ----- RIGHT PANEL ----- */
.bz-brand-show-right {
    min-width: 0;
}
.bz-brand-show-right-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line);
    gap: 12px;
}
.bz-brand-show-right-head h2 {
    font-size: 1.4rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.01em;
    margin: 0;
}
.bz-brand-show-right-sub {
    font-size: 0.82rem;
    color: var(--ink-2);
}

/* ----- Responsive: tablet ----- */
@media (max-width: 960px) {
    .bz-brand-show {
        grid-template-columns: 260px 1fr;
        gap: 20px;
    }
}

/* ----- Responsive: mobile (stack) -----
   Left panel renders ABOVE vouchers via DOM order
   (we keep sticky disabled, single column layout) */
@media (max-width: 720px) {
    .bz-brand-show {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .bz-brand-show-left {
        position: static;
        max-height: none;
        overflow-y: visible;
    }
    .bz-brand-show-logo-card { padding: 22px 18px; }
    .bz-brand-show-right-head h2 { font-size: 1.2rem; }

    /* Mobile brand page: keep logo card + FAQ in the LEFT panel
       (single column, top of page — directly under the logo). Terms
       & conditions is hidden on every viewport. Hide the duplicate
       mobile copies in the right panel so the voucher list flows
       right after the FAQ. */
    .bz-brand-show-details,
    .bz-brand-cap-card,
    .bz-brand-show-faq--mobile,
    .bz-brand-show-terms-card--mobile,
    .bz-brand-show-terms-card--desktop { display: none !important; }

    /* Reveal the desktop copy of the FAQ so it sits above the voucher
       listing on mobile. */
    .bz-brand-show-faq--desktop { display: block !important; }
}

/* ===== Brands index — hero header ===== */

/* Terms & conditions: hidden everywhere on the public brand page.
   (Admin can still edit them; they simply do not surface in the
   front-end brand view — FAQs take their place.) */
.bz-brand-show-terms-card,
.bz-brand-show-terms-card--desktop,
.bz-brand-show-terms-card--mobile { display: none !important; }
.is-mobile-app .bz-brand-show-terms-card,
.is-mobile-app .bz-brand-show-terms-card--desktop,
.is-mobile-app .bz-brand-show-terms-card--mobile { display: none !important; }

.bz-brands-hero {
    position: relative;
    background: linear-gradient(135deg, #FFFFFF 0%, #FAF8FF 50%, #FFF0F8 100%);
    border: 1px solid var(--line);
    border-radius: 24px;
    padding: 28px 32px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(31,16,80,.04);
    margin-bottom: 24px;
}
.bz-brands-hero-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}
.bz-hero-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.35;
}
.bz-hero-blob-1 {
    width: 280px; height: 280px;
    top: -120px; right: -60px;
    background: radial-gradient(circle, #FF4D8D 0%, transparent 70%);
}
.bz-hero-blob-2 {
    width: 320px; height: 320px;
    bottom: -160px; left: 10%;
    background: radial-gradient(circle, #6B2BFE 0%, transparent 70%);
}
.bz-brands-hero-inner {
    position: relative;
    display: flex;
    align-items: center;
    gap: 32px;
    flex-wrap: wrap;
}
.bz-brands-hero-text { flex: 1 1 380px; min-width: 0; }
.bz-brands-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 12px;
    background: rgba(107,43,254,.08);
    color: var(--brand-700);
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 12px;
}
.bz-brands-eyebrow-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--brand-500);
    box-shadow: 0 0 0 4px rgba(107,43,254,.18);
}
.bz-brands-hero-text h1 {
    font-size: 2.4rem;
    font-weight: 800;
    letter-spacing: -0.025em;
    color: var(--ink);
    margin: 0 0 8px;
    line-height: 1.1;
}
.bz-brands-hero-text p {
    margin: 0 0 20px;
    color: var(--ink-2);
    font-size: 0.98rem;
    max-width: 520px;
    line-height: 1.5;
}

.bz-brands-hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}
.bz-brands-stat {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 10px 14px;
    box-shadow: 0 1px 2px rgba(31,16,80,.04);
    flex: 1 1 130px;
    min-width: 0;
}
.bz-brands-stat-ico {
    width: 36px; height: 36px;
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.bz-brands-stat-ico svg { width: 18px; height: 18px; }
.bz-brands-stat-num {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--ink);
    line-height: 1.1;
}
.bz-brands-stat-lbl {
    font-size: 0.72rem;
    color: var(--muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-top: 2px;
}

/* Decorative voucher card art on the right side of hero */
.bz-brands-hero-art {
    position: relative;
    width: 220px;
    height: 160px;
    flex-shrink: 0;
    display: none;
}
@media (min-width: 720px) {
    .bz-brands-hero-art { display: block; }
}
.bz-brands-hero-card {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #1A1033 0%, #36108A 60%, #6B2BFE 100%);
    border-radius: 18px;
    padding: 16px;
    color: #fff;
    box-shadow: 0 18px 36px rgba(107,43,254,.30), inset 0 1px 0 rgba(255,255,255,.12);
    transform: rotate(-6deg);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.bz-brands-hero-card-top {
    display: flex;
    gap: 5px;
}
.bz-brands-hero-card-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
}
.bz-brands-hero-card-amt {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1;
}
.bz-brands-hero-card-lbl {
    font-size: 0.7rem;
    opacity: 0.7;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-top: 2px;
}
.bz-brands-hero-card-code {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    letter-spacing: 0.06em;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.18);
    padding: 5px 8px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 4px;
}
.bz-brands-hero-card-code .dot {
    width: 4px; height: 4px;
    border-radius: 50%;
    background: rgba(255,255,255,.5);
}
.bz-brands-hero-chip {
    position: absolute;
    top: -10px;
    right: -10px;
    background: linear-gradient(135deg, #FFC93D 0%, #FF8A3D 100%);
    color: #4A2E00;
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 800;
    box-shadow: 0 6px 16px rgba(255,138,61,.30);
    transform: rotate(6deg);
}

/* ===== Filter bar (search + select) ===== */
.bz-brands-filter {
    display: flex; align-items: center; gap: 10px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}
.bz-brands-search {
    flex: 1 1 240px;
    display: flex; align-items: center; gap: 10px;
    background: #fff;
    border: 1.5px solid var(--line);
    border-radius: 12px;
    padding: 11px 16px;
    transition: border-color .15s, box-shadow .15s;
}
.bz-brands-search:focus-within {
    border-color: var(--brand-600);
    box-shadow: 0 0 0 4px rgba(107,43,254,.12);
}
.bz-brands-search svg { width: 18px; height: 18px; color: var(--ink-2); flex-shrink: 0; }
.bz-brands-search input {
    flex: 1; border: 0; outline: 0; background: transparent;
    font: 600 0.95rem/1 'Inter', sans-serif;
    color: var(--ink);
    min-width: 0;
}
.bz-brands-search input::placeholder { color: var(--muted); font-weight: 500; }

/* ===== Category page search (matches brands-index search) ===== */
.bz-cat-search {
    display: flex; align-items: center; gap: 10px;
    background: #fff;
    border: 1.5px solid var(--line);
    border-radius: 12px;
    padding: 10px 12px 10px 16px;
    margin-bottom: 18px;
    transition: border-color .15s, box-shadow .15s;
}
.bz-cat-search:focus-within {
    border-color: var(--brand-600);
    box-shadow: 0 0 0 4px rgba(107,43,254,.12);
}
.bz-cat-search > svg { width: 18px; height: 18px; color: var(--ink-2); flex-shrink: 0; }
.bz-cat-search input {
    flex: 1; border: 0; outline: 0; background: transparent;
    font: 600 0.95rem/1 'Inter', sans-serif;
    color: var(--ink);
    min-width: 0;
}
.bz-cat-search input::placeholder { color: var(--muted); font-weight: 500; }
.bz-cat-search-clear {
    width: 28px; height: 28px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 999px;
    color: var(--muted);
    background: #F1F5F9;
    text-decoration: none;
    flex-shrink: 0;
}
.bz-cat-search-clear:hover { background: #E2E8F0; color: var(--ink); }
.bz-cat-search-clear svg { width: 14px; height: 14px; }
.bz-cat-search-go { white-space: nowrap; }

.bz-cat-search-summary {
    margin: -8px 4px 14px;
    font-size: 0.85rem;
    color: var(--muted);
}
.bz-cat-search-summary strong { color: var(--ink); }
.bz-brands-select-wrap {
    position: relative;
    flex: 0 1 200px;
}
.bz-brands-select-wrap svg {
    position: absolute; right: 14px; top: 50%;
    transform: translateY(-50%);
    width: 16px; height: 16px;
    color: var(--ink-2);
    pointer-events: none;
}
.bz-brands-select {
    width: 100%;
    appearance: none;
    background: #fff;
    border: 1.5px solid var(--line);
    border-radius: 12px;
    padding: 12px 38px 12px 16px;
    font: 600 0.95rem/1 'Inter', sans-serif;
    color: var(--ink);
    cursor: pointer;
    transition: border-color .15s, box-shadow .15s;
}
.bz-brands-select:focus {
    outline: none;
    border-color: var(--brand-600);
    box-shadow: 0 0 0 4px rgba(107,43,254,.12);
}

/* ===== Quick category pills ===== */
.bz-brands-quickcats {
    display: flex;
    gap: 8px;
    margin-bottom: 22px;
    overflow-x: auto;
    padding: 4px 2px;
    scrollbar-width: thin;
}
.bz-brands-quickcats::-webkit-scrollbar { height: 4px; }
.bz-brands-quickcats::-webkit-scrollbar-thumb { background: var(--line); border-radius: 2px; }
.bz-bqc {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--ink-2);
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
    transition: background .15s, border-color .15s, color .15s;
}
.bz-bqc:hover {
    border-color: var(--brand-300);
    color: var(--ink);
    background: var(--brand-50);
}
.bz-bqc.is-active {
    background: var(--brand-700);
    border-color: var(--brand-700);
    color: #fff;
}
.bz-bqc.is-active .bz-bqc-ico { background: rgba(255,255,255,.18) !important; color: #fff !important; }
.bz-bqc-ico {
    width: 22px; height: 22px;
    border-radius: 6px;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 0.8rem;
    font-weight: 800;
}
.bz-bqc-ico svg { width: 12px; height: 12px; }

/* ===== Results summary row ===== */
.bz-brands-results {
    background: var(--brand-50);
    color: var(--brand-800);
    border: 1px solid var(--brand-200);
    padding: 8px 14px;
    border-radius: 10px;
    font-size: 0.88rem;
    margin-bottom: 18px;
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
}
.bz-brands-results strong { color: var(--brand-700); font-weight: 800; }
.bz-brands-results-q {
    background: #fff;
    padding: 2px 8px;
    border-radius: 6px;
    margin-left: 4px;
    font-weight: 600;
}

@media (max-width: 720px) {
    .bz-brands-hero { padding: 22px 18px; border-radius: 18px; }
    .bz-brands-hero-text h1 { font-size: 1.7rem; }
    .bz-brands-hero-text p { font-size: 0.9rem; }
    .bz-brands-stat { flex: 1 1 calc(50% - 6px); padding: 8px 10px; }
    .bz-brands-stat-num { font-size: 0.95rem; }
    .bz-brands-stat-ico { width: 30px; height: 30px; }
}
@media (max-width: 480px) {
    .bz-brands-hero-text h1 { font-size: 1.4rem; }
    .bz-brands-hero-stats { gap: 8px; }
}

/* ===== Infinite-scroll sentinel (brands page) ===== */
.bz-brand-sentinel {
    display: flex; justify-content: center; align-items: center;
    padding: 32px 0;
    min-height: 60px;
}

/* ===== Load-more button (brands page) ===== */
.bz-loadmore-wrap {
    display: flex; flex-direction: column; align-items: center;
    padding: 32px 0 48px;
    gap: 12px;
}
.bz-loadmore-btn {
    display: inline-flex; align-items: center; gap: 12px;
    padding: 14px 28px;
    background: linear-gradient(135deg, var(--brand-600) 0%, var(--brand-700) 100%);
    color: #fff;
    border: none; border-radius: 999px;
    font: inherit; font-weight: 700; font-size: 0.95rem;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(124, 58, 237, 0.25), 0 1px 2px rgba(0,0,0,0.05);
    transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}
.bz-loadmore-btn:hover { transform: translateY(-1px); box-shadow: 0 8px 22px rgba(124, 58, 237, 0.32), 0 2px 4px rgba(0,0,0,0.06); }
.bz-loadmore-btn:active { transform: translateY(0); }
.bz-loadmore-btn:disabled, .bz-loadmore-btn.is-loading { opacity: 0.7; cursor: wait; }
.bz-loadmore-btn.is-loading .bz-loadmore-lbl::after {
    content: '';
    display: inline-block;
    width: 14px; height: 14px;
    margin-left: 8px;
    border: 2px solid rgba(255,255,255,0.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: bz-spin 0.7s linear infinite;
    vertical-align: middle;
}
.bz-loadmore-count {
    color: rgba(255,255,255,0.85);
    font-size: 0.8rem; font-weight: 500;
    background: rgba(255,255,255,0.15);
    padding: 3px 10px;
    border-radius: 999px;
}
.bz-brand-spinner {
    width: 28px; height: 28px;
    border: 3px solid var(--brand-100);
    border-top-color: var(--brand-600);
    border-radius: 50%;
    animation: bz-spin 0.7s linear infinite;
}
@keyframes bz-spin {
    to { transform: rotate(360deg); }
}

.bz-row { display: flex; gap: 20px; flex-wrap: wrap; }
.bz-col { flex: 1 1 0; min-width: 0; }

/* ===== Brand wordmark — logo image only, no wrapper ===== */
.bz-logo {
    display: inline-flex; align-items: center;
    text-decoration: none;
    line-height: 0;
}
.bz-logo:hover { opacity: 0.92; }
.bz-logo .bz-logo-img {
    display: block;
    height: 42px; width: auto;
    object-fit: contain;
}
/* Footer logo on dark bg — keep brand colors visible */
.bz-footer .bz-logo-img { height: 56px; }
/* Admin / staff sidebar logo on dark bg */
.bz-admin-sidebar .bz-logo-img { height: 44px; }
/* On the purple auth / sidebar bg, the colorful logo shows well as-is */

/* ===== Top strip ===== */
.bz-topstrip {
    background: var(--grad-brand);
    color: #fff;
    font-size: 0.85rem;
    padding: 6px 0;
    text-align: center;
}
.bz-topstrip a { color: #fff; text-decoration: underline; }

/* ===== Header ===== */
.bz-header {
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    position: sticky; top: 0; z-index: 100;
}
.bz-header-inner {
    display: flex; align-items: center; gap: 16px;
    width: 100%;
    margin: 0 auto;
    padding: 12px 20px;
    box-sizing: border-box;
}
@media (min-width: 880px) {
    .bz-header-inner { width: 99%; }
}
.bz-search {
    flex: 1 1 auto; max-width: 560px;
    background: var(--bg); border: 1px solid transparent;
    border-radius: var(--radius-pill); padding: 10px 16px 10px 40px;
    font-size: 0.95rem; position: relative;
    transition: border-color .15s, background .15s;
}
.bz-search:focus { border-color: var(--brand-500); background: #fff; outline: none; }
.bz-search-wrap { position: relative; flex: 1 1 auto; max-width: 560px; }
.bz-search-wrap::before {
    content: ''; position: absolute; top: 50%; left: 14px;
    width: 16px; height: 16px; transform: translateY(-50%);
    background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238B85A8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><circle cx='11' cy='11' r='8'/><line x1='21' y1='21' x2='16.65' y2='16.65'/></svg>") no-repeat;
}
.bz-nav { display: flex; align-items: center; gap: 14px; }
.bz-nav a { color: var(--ink-2); font-weight: 500; padding: 8px 12px; border-radius: var(--radius); transition: background .15s, color .15s; }
.bz-nav a:hover { background: var(--brand-50); color: var(--brand-700); }

/* ===== Buttons ===== */
.bz-btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 10px 18px; border-radius: var(--radius-pill);
    border: 1px solid transparent;
    font-weight: 600; font-size: 0.95rem;
    cursor: pointer; transition: transform .08s ease, background .15s, box-shadow .15s, color .15s, border-color .15s;
    text-decoration: none;
    line-height: 1;
}
.bz-btn:active { transform: translateY(1px); }
.bz-btn-primary {
    background: var(--grad-purple); color: #fff;
    box-shadow: var(--shadow);
}
.bz-btn-primary:hover { color: #fff; box-shadow: var(--shadow-lg); }
.bz-btn-pink { background: var(--grad-pink); color: #fff; box-shadow: var(--shadow); }
.bz-btn-pink:hover { color: #fff; }
.bz-btn-ghost { background: transparent; color: var(--ink-2); }
.bz-btn-ghost:hover { background: var(--brand-50); color: var(--brand-700); }
.bz-btn-outline { background: #fff; color: var(--brand-600); border-color: var(--brand-200); }
.bz-btn-outline:hover { background: var(--brand-50); border-color: var(--brand-400); color: var(--brand-700); }
.bz-btn-lg { padding: 14px 28px; font-size: 1rem; }
.bz-btn-sm { padding: 6px 12px; font-size: 0.85rem; }
.bz-btn-block { display: flex; width: 100%; justify-content: center; }
.bz-btn-danger { background: var(--danger); color: #fff; }
.bz-btn-success { background: var(--success); color: #fff; }

/* ===== Forms ===== */
.bz-input, .bz-select, .bz-textarea {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    font: inherit; color: var(--ink);
    transition: border-color .15s, box-shadow .15s;
}
.bz-input:focus, .bz-select:focus, .bz-textarea:focus {
    border-color: var(--brand-500);
    box-shadow: 0 0 0 3px rgba(107,43,254,.15);
    outline: none;
}
.bz-label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--ink-2); margin-bottom: 6px; }
.bz-form-group { margin-bottom: 16px; }
.bz-help { font-size: 0.8rem; color: var(--muted); margin-top: 6px; }
.bz-error { color: var(--danger); font-size: 0.8rem; margin-top: 4px; }

/* ===== Cards ===== */
.bz-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 20px;
}
.bz-card-flat { background: var(--surface); border-radius: var(--radius); border: 1px solid var(--line); padding: 16px; }

/* ===== Pills (badges) ===== */
/* Site-wide decision: hide all status/decorative pills on the
   PUBLIC site (customer-facing pages). The admin/staff tables still
   rely on .bz-pill as a coloured label inside .bz-table, so we
   scope the global hide to anything OUTSIDE a .bz-table and define
   pill colours for .bz-table pills separately. */
.bz-pill {
    display: none !important;
}
.bz-table .bz-pill {
    display: inline-flex !important;
}
.bz-table .bz-pill-green,
.bz-table .bz-pill-gold,
.bz-table .bz-pill-red,
.bz-table .bz-pill-blue,
.bz-table .bz-pill-grey,
.bz-table .bz-pill-purple,
.bz-table .bz-pill-pink {
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    background: transparent;
    color: inherit;
}
.bz-table .bz-pill-green  { background: #E5F7EE; color: #15803D; }
.bz-table .bz-pill-gold   { background: linear-gradient(135deg,#FFD24A 0%,#FFB347 100%); color: #5A3A00; }
.bz-table .bz-pill-red    { background: #FDECEC; color: #B91C1C; }
.bz-table .bz-pill-blue   { background: #E0EAFF; color: #1D4ED8; }
.bz-table .bz-pill-grey   { background: #F3F4F6; color: #6B7280; }
.bz-table .bz-pill-purple { background: #F4ECFF; color: #5B21B6; }
.bz-table .bz-pill-pink   { background: #FFE4EE; color: #BE185D; }

.bz-coupon-code {
    display: inline-block;
    background: #FFF1D9;
    color: #8B5E00;
    padding: 2px 8px;
    border-radius: 6px;
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    border: 1px solid #F2D89A;
}

/* ===== Hero ===== */
.bz-hero {
    background: var(--grad-brand-soft);
    border-radius: var(--radius-lg);
    padding: 40px;
    display: flex; align-items: center; justify-content: space-between; gap: 24px;
    flex-wrap: wrap;
    overflow: hidden; position: relative;
}
.bz-hero h1 { font-size: 2.4rem; line-height: 1.1; }
.bz-hero h1 .grad { background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent; }
.bz-hero p { color: var(--ink-2); max-width: 540px; margin: 12px 0 18px; }
.bz-hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.bz-hero-art {
    flex: 0 0 320px; max-width: 100%;
    aspect-ratio: 1/1;
    background: var(--grad-brand);
    border-radius: 28px;
    position: relative;
    box-shadow: var(--shadow-lg);
}
.bz-hero-art::after {
    content: ''; position: absolute; inset: 18px;
    background: rgba(255,255,255,.18);
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,.3);
}

/* ===== Brand tiles (home grid) ===== */
.bz-section { padding: 36px 0; }
.bz-section-head { display: flex; justify-content: space-between; align-items: end; margin-bottom: 18px; gap: 12px; }
.bz-section-head h2 { font-size: 1.4rem; }
.bz-section-head .bz-link { color: var(--brand-600); font-weight: 600; }

.bz-cat-row { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 6px; }
.bz-cat {
    flex: 0 0 96px; height: 96px;
    background: var(--brand-50);
    border-radius: 20px;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
    color: var(--brand-700); font-weight: 700; font-size: 0.78rem;
    text-decoration: none;
    transition: transform .12s, background .15s;
}
.bz-cat:hover { transform: translateY(-2px); background: var(--brand-100); color: var(--brand-700); }
.bz-cat svg { width: 30px; height: 30px; }

/* ===== Brand tile card (the 4-col grid like Magicpin) ===== */
.bz-grid { display: grid; gap: 16px; }
.bz-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.bz-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.bz-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.bz-grid-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
/* Brand grids — 8 columns on desktop, down to 3 on phones. */
.bz-grid-brands { display: grid; gap: 10px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (min-width: 540px) { .bz-grid-brands { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 768px) { .bz-grid-brands { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .bz-grid-brands { grid-template-columns: repeat(8, minmax(0, 1fr)); } }
@media (max-width: 980px) {
    .bz-grid-4 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .bz-grid-5 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
    .bz-grid-3, .bz-grid-4, .bz-grid-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.bz-brand-tile {
    /* Brand tile: logo fills the entire card (no name, no green pill).
       Discount shown as a corner badge pinned to the top-right. */
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 0;
    display: flex; align-items: stretch; justify-content: stretch;
    text-decoration: none; color: inherit;
    transition: border-color .15s, transform .15s, box-shadow .15s;
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
}
.bz-brand-tile:hover {
    border-color: var(--brand-500);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(107,43,254,.10);
    color: inherit;
}

/* Logo fills the entire card. */
.bz-brand-tile .bz-brand-tile-logo {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    background: transparent;
    overflow: hidden;
}
.bz-brand-tile .bz-brand-tile-logo img {
    width: 100%; height: 100%;
    object-fit: contain;
    padding: 12px;
    display: block;
}
.bz-brand-tile .bz-brand-tile-initial {
    font: 800 3rem/1 'Inter', sans-serif;
    color: var(--brand-700);
}

/* Discount badge — corner ribbon pinned to the top-right of the tile. */
.bz-brand-tile-badge,
.bz-brand-tile .bz-brand-tile-badge,
.bz-brand-strip-tile .bz-brand-tile-badge {
    position: absolute;
    top: 8px; right: 8px;
    background: linear-gradient(135deg, #E5006D, #B81E5B);
    color: #fff;
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    padding: 3px 8px;
    border-radius: 999px;
    box-shadow: 0 4px 10px rgba(229, 0, 109, 0.30);
    z-index: 2;
    line-height: 1.1;
    pointer-events: none;
    display: inline-block;
}

/* ===== Voucher card ===== */
.bz-voucher {
    background: #fff; border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    display: flex; flex-direction: column;
    transition: transform .15s, box-shadow .15s;
    text-decoration: none; color: inherit;
}

/* ===== Voucher type pill (Gift Card / Min Bill) — bottom-right of art block ===== */
.bz-voucher-type-pill {
    position: absolute;
    bottom: 10px;
    right: 10px;
    z-index: 3;
    font-size: 0.66rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 3px 9px;
    border-radius: 999px;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    box-shadow: 0 2px 6px rgba(0,0,0,.18);
}
.bz-voucher-type-pill.is-giftcard {
    background: rgba(255, 255, 255, .92);
    color: #6B2BFE;
}
.bz-voucher-type-pill.is-minbill {
    background: linear-gradient(135deg, #FF8A3D 0%, #E5006D 100%);
    color: #fff;
}

/* Ensure art block anchors the pill correctly */
.bz-voucher-art { position: relative; }

/* Min-bill info row inside the body */
.bz-voucher-billinfo {
    display: inline-block;
    margin-top: 4px;
    font-size: 0.74rem;
    color: #B45309;
    background: rgba(255, 138, 61, .12);
    padding: 3px 8px;
    border-radius: 6px;
    line-height: 1.3;
}

/* Mobile list-view sub-label under the amount column */
.bz-vlist-amt-sub {
    display: block;
    font-size: 0.62rem;
    color: var(--muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-top: 2px;
}
/* Min-Bill: admin-entered voucher name shown under "Shop min" in the
   amount cell. Smaller + muted so it doesn't fight with the big number
   but is still readable. */
.bz-vlist-amt-name {
    display: block;
    font-size: 0.66rem;
    color: var(--ink-2);
    font-weight: 600;
    line-height: 1.25;
    margin-top: 2px;
    /* Single-line truncate so a long name doesn't blow out the row. */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}
.bz-voucher:hover { transform: translateY(-3px); box-shadow: var(--shadow); color: inherit; }
.bz-voucher-art {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 120px;
    padding: 32px 16px;
    text-align: center;
}
.bz-voucher-img {
    aspect-ratio: 4/3;
    background: var(--grad-brand-soft);
    display: flex; align-items: center; justify-content: center;
    position: relative;
}
.bz-voucher-img img { width: 70%; height: 70%; object-fit: contain; }
.bz-voucher-img .bz-voucher-initial {
    font-size: 3rem; font-weight: 900;
    background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.bz-voucher-img .bz-discount-badge {
    position: absolute; top: 12px; left: 12px;
    background: var(--pink-500); color: #fff;
    font-size: 0.7rem; font-weight: 700;
    padding: 4px 10px; border-radius: var(--radius-pill);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* ===== Voucher card: colored value art (no logo) ===== */
.bz-voucher-art {
    aspect-ratio: 4/3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    position: relative;
    background: var(--grad-brand-soft);
}
.bz-voucher-art-amt {
    font-family: auto;
    font-weight: 800;
    font-size: 2.4rem;
    line-height: 1;
    letter-spacing: -0.02em;
}
.bz-voucher-art-lbl {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    opacity: 0.85;
}
.bz-voucher-art .bz-discount-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--pink-500);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: var(--radius-pill);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.bz-voucher-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 6px; }
.bz-voucher-brand { font-size: 0.72rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; font-weight: 600; }
.bz-voucher-title { font-weight: 700; font-size: 1rem; line-height: 1.25; color: var(--ink); }
.bz-voucher-prices { display: block; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.bz-voucher-price { font-weight: 800; font-size: 1.2rem; color: var(--brand-700); }
.bbz-voucher-original { color: var(--muted); text-decoration: line-through; font-size: 0.85rem; }
.bz-voucher-original { color: var(--muted); text-decoration: line-through; font-size: 0.85rem; }
.bz-voucher-savings { color: var(--success); font-size: 0.78rem; font-weight: 700; }

/* ===== Brand tag (above body) =====
   Sits between the colored art block and the body block on desktop cards,
   giving the tile a quick visual "this is a WROGN ₹2000 voucher" anchor
   before the user reads the body. Hidden in app mode because the
   `.bz-vlist-brand-line` rendered below the row carries the same info. */
.bz-voucher-brand-tag {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px 0;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--ink-2);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.bz-voucher-brand-tag-logo {
    width: 18px;
    height: 18px;
    border-radius: 4px;
    object-fit: contain;
    background: #fff;
    border: 1px solid var(--line);
    flex-shrink: 0;
}
.bz-voucher-brand-tag-name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}

/* ===== Inline voucher action (add / qty / sold-out) ===== */

/* ===== Inline voucher action (add / qty / sold-out) ===== */
.bz-voucher-action { margin-top: 10px; min-height: 38px; display: flex; align-items: center; }
.bz-vc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    padding: 9px 12px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.88rem;
    border: 1px solid var(--brand-700);
    cursor: pointer;
    transition: background .12s, transform .08s, color .12s, border-color .12s;
    background: var(--brand-700);
    color: #fff;
    text-decoration: none;
}
.bz-vc-btn:hover { background: var(--brand-900, #4a1fb8); color: #fff; }
.bz-vc-btn:active { transform: scale(0.98); }
.bz-vc-btn svg { width: 16px; height: 16px; }
.bz-vc-btn-add {
    background: var(--brand-700);
    color: #fff;
}
.bz-vc-btn-add:hover { background: #4a1fb8; }
.bz-vc-btn-soldout {
    background: #f1f5f9;
    color: var(--muted);
    border-color: #e2e8f0;
    cursor: not-allowed;
}
.bz-vc-btn-soldout:hover { background: #f1f5f9; color: var(--muted); }
.bz-vc-qty {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    border: 1px solid var(--brand-700);
    border-radius: 10px;
    overflow: hidden;
    background: var(--brand-50);
}
.bz-vc-qty-btn {
    width: 42px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 0;
    cursor: pointer;
    color: var(--brand-700);
    transition: background .12s;
}
.bz-vc-qty-btn:hover { background: var(--brand-100); }
.bz-vc-qty-btn svg { width: 18px; height: 18px; }
.bz-vc-qty-val {
    flex: 1;
    text-align: center;
    font-weight: 800;
    font-size: 1rem;
    color: var(--brand-700);
    font-variant-numeric: tabular-nums;
}
.bz-voucher.is-soldout { opacity: 0.75; }
.bz-voucher.is-soldout .bz-voucher-img { filter: grayscale(0.6); }
.bz-voucher.is-soldout .bz-discount-badge { background: #94a3b8; }

.bz-voucher-detail-link {
    display: inline-block;
    margin-top: 4px;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--brand-700);
    text-decoration: none;
    transition: color .12s;
}
.bz-voucher-detail-link:hover { color: #4a1fb8; text-decoration: underline; }

/* ===== 4-per-row voucher grid (fixed, page-level) ===== */
.bz-vc-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}
@media (max-width: 1080px) {
    .bz-vc-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
    .bz-vc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
}

/* ===== Mobile-app list view (cookie bilzoo_app_type=android|ios) =====
   When the user is coming from the Android/iOS app we ditch the grid of
   cards and show a dense list with Amount / Discount / Quantity / Total,
   matching the in-app purchase flow. */
.bz-vlist-row { display: none; }

.is-mobile-app .bz-vc-grid {
    grid-template-columns: 1fr;
    gap: 0;
    border-top: 1px solid var(--line);
}
.is-mobile-app .bz-vc-grid > .bz-voucher {
    border: 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    background: #fff;
    box-shadow: none;
    flex-direction: row;
    align-items: stretch;
    padding: 14px 12px;
    gap: 10px;
    position: relative;
}
.is-mobile-app .bz-vc-grid > .bz-voucher:hover { transform: none; box-shadow: none; }
.is-mobile-app .bz-voucher .bz-voucher-art { display: none; }
.is-mobile-app .bz-voucher .bz-voucher-body { display: none; }
.is-mobile-app .bz-voucher .bz-voucher-cap-hint { display: none; }
.is-mobile-app .bz-voucher .bz-voucher-detail-link { display: none; }
/* The brand tag above the body is a desktop-only affordance — in app mode
   we show the same info below the row instead. */
.is-mobile-app .bz-voucher .bz-voucher-brand-tag { display: none; }

.is-mobile-app .bz-vlist-row {
    display: grid;
    grid-template-columns: 1.05fr 1.4fr 1.25fr 0.9fr;
    align-items: center;
    gap: 8px;
    width: 100%;
}
.is-mobile-app .bz-vlist-cell { min-width: 0; }

/* Mobile-app table header */
.bz-vlist-head { display: none; }
.is-mobile-app .bz-vlist-head {
    display: grid;
    grid-template-columns: 1.05fr 1.4fr 1.25fr 0.9fr;
    gap: 8px;
    padding: 10px 12px;
    background: #F8FAFC;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--muted);
}
.is-mobile-app .bz-vlist-head-cell { min-width: 0; }
.is-mobile-app .bz-vlist-head-cell.bz-vlist-qty { text-align: center; }
.is-mobile-app .bz-vlist-head-cell.bz-vlist-total,
.is-mobile-app .bz-vlist-head-cell.bz-vlist-amt,
.is-mobile-app .bz-vlist-head-cell.bz-vlist-discount { text-align: left; }

.is-mobile-app .bz-vlist-amt,
.is-mobile-app .bz-vlist-discount,
.is-mobile-app .bz-vlist-total {
    font-family: 'Inter', system-ui, sans-serif;
    font-weight: 700;
    color: var(--ink);
    font-variant-numeric: tabular-nums;
    font-size: 0.95rem;
}
.is-mobile-app .bz-vlist-discount { color: var(--muted); }
.is-mobile-app .bz-vlist-buy {
    color: var(--muted);
    font-weight: 600;
    font-size: 0.78em;
    margin-left: 2px;
}
.is-mobile-app .bz-vlist-qty {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.is-mobile-app .bz-vlist-step {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    border: 1px solid var(--brand-700);
    background: #fff;
    color: var(--brand-700);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.is-mobile-app .bz-vlist-step:hover { background: var(--brand-50, #F4F0FF); }
.is-mobile-app .bz-vlist-step:disabled { opacity: 0.4; cursor: not-allowed; }
.is-mobile-app .bz-vlist-step:disabled:hover { background: #fff; }
.is-mobile-app .bz-vlist-step svg { width: 14px; height: 14px; }
.is-mobile-app .bz-vlist-add {
    background: var(--brand-700);
    color: #fff;
}
.is-mobile-app .bz-vlist-add:hover { background: #4a1fb8; }
.is-mobile-app .bz-vlist-qval {
    min-width: 18px;
    text-align: center;
    font-weight: 800;
    color: var(--ink);
    font-variant-numeric: tabular-nums;
}
.is-mobile-app .bz-vlist-soldout {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    background: #f1f5f9;
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

/* ===== Floating Buy bar (full-width pill on desktop, circle FAB on mobile) ===== */
.bz-buyfab {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 80;
    background: linear-gradient(135deg, #6B2BFE 0%, #4a1fb8 100%);
    color: #fff;
    padding: 14px 20px;
    box-shadow: 0 -8px 28px rgba(11, 15, 40, 0.18);
    transform: translateY(110%);
    transition: transform .25s ease;
    padding-bottom: max(14px, env(safe-area-inset-bottom));
    display: flex;
    align-items: center;
    text-decoration: none;
}
.bz-buyfab.is-visible { transform: translateY(0); }
.bz-buyfab-inner {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.bz-buyfab-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
    color: #fff;
    text-decoration: none;
}
.bz-buyfab-icon {
    position: relative;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.16);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.bz-buyfab-icon svg { width: 22px; height: 22px; }
.bz-buyfab-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    background: #ff5470;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 800;
    min-width: 20px;
    height: 20px;
    border-radius: 10px;
    padding: 0 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #6B2BFE;
}
.bz-buyfab-label {
    display: flex;
    flex-direction: column;
    min-width: 0;
    line-height: 1.15;
}
.bz-buyfab-label-l1 {
    font-size: 0.78rem;
    opacity: 0.85;
}
.bz-buyfab-label-l2 {
    font-size: 1.1rem;
    font-weight: 800;
}
.bz-buyfab-label-l3 {
    font-size: 0.74rem;
    color: #B7F5C8;
    font-weight: 600;
    margin-top: 1px;
}
.bz-buyfab-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #fff;
    color: var(--brand-700);
    padding: 12px 18px;
    border-radius: 12px;
    font-weight: 800;
    font-size: 0.95rem;
    text-decoration: none;
    flex-shrink: 0;
    transition: transform .08s, background .12s;
}
.bz-buyfab-cta:hover  { background: #f8f4ff; color: var(--brand-700); }
.bz-buyfab-cta:active { transform: scale(0.98); }
.bz-buyfab-cta svg    { width: 18px; height: 18px; }
.bz-buyfab:hover      { color: #fff; }

/* Push page bottom so the bar doesn't overshadow the last row */
body:has(.bz-buyfab.is-visible) { padding-bottom: 84px; }

/* Mobile: circle FAB (compact, above bottom nav) */
@media (max-width: 880px) {
    .bz-buyfab {
        left: 14px;
        right: auto;
        bottom: 100px;
        width: 56px;
        height: 56px;
        padding: 0;
        border-radius: 50%;
        justify-content: center;
        box-shadow:
            0 10px 24px rgba(91, 28, 220, .35),
            0 4px 10px rgba(91, 28, 220, .25);
    }
    .bz-buyfab-inner {
        padding: 0;
        gap: 0;
        justify-content: center;
    }
    .bz-buyfab-info {
        flex: 0;
        gap: 0;
        justify-content: center;
    }
    .bz-buyfab-icon {
        width: 56px;
        height: 56px;
        background: transparent;
        border-radius: 0;
    }
    .bz-buyfab-icon svg { width: 24px; height: 24px; }
    .bz-buyfab-label { display: none; }
    .bz-buyfab-cta { display: none; }
    .bz-buyfab-badge {
        top: 0;
        right: 0;
    }
    /* When the FAB sits on the LEFT edge (mobile), the badge needs to
       sit on the top-RIGHT of the icon (the inside edge of the FAB) so
       it doesn't overflow off-screen. */
    body:has(.bz-buyfab.is-visible) { padding-bottom: 170px; }
    main:has(+ .bz-buyfab.is-visible) { padding-bottom: 170px; }
}

/* ===== Voucher detail (full) ===== */
.bz-detail-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 32px; }
@media (max-width: 880px) { .bz-detail-grid { grid-template-columns: 1fr; } }

/* ===== Cart page ===== */
.bz-cart-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    align-items: start;
    margin-top: 16px;
}
@media (max-width: 880px) {
    .bz-cart-grid { grid-template-columns: 1fr; }
}
.bz-cart-card {
    display: flex;
    gap: 14px;
    align-items: center;
    padding: 14px 16px !important;
}
.bz-cart-thumb {
    width: 64px;
    height: 48px;
    flex-shrink: 0;
    border-radius: 10px;
    background: #fff;
    border: 1px solid var(--line);
    display: flex; align-items: center; justify-content: center;
    font-weight: 800;
    color: var(--brand-700);
    font-size: 1.4rem;
    overflow: hidden;
    padding: 4px;
}
.bz-cart-thumb img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.bz-cart-body { flex: 1; min-width: 0; }
.bz-cart-body .bz-voucher-brand { font-weight: 700; font-size: 0.95rem; }
.bz-cart-body .bz-voucher-title { font-size: 0.85rem; color: var(--muted); margin-top: 2px; }
.bz-cart-meta { display: flex; align-items: center; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.bz-cart-remove { flex-shrink: 0; }

/* Qty + Remove grouped on cart page */
.bz-cart-controls {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    flex-shrink: 0;
}
.bz-cart-controls .bz-vc-qty {
    width: 110px;
}
.bz-cart-controls .bz-vc-qty-btn {
    width: 36px;
    height: 36px;
}
.bz-cart-controls .bz-vc-qty-val {
    font-size: 0.95rem;
}

@media (max-width: 520px) {
    .bz-cart-card { padding: 12px !important; gap: 10px; }
    .bz-cart-thumb { width: 52px; height: 40px; }
    .bz-cart-remove .bz-btn { padding: 6px 10px; font-size: 0.8rem; }
    .bz-cart-controls .bz-vc-qty { width: 96px; }
    .bz-cart-controls .bz-vc-qty-btn { width: 32px; height: 32px; }
}

/* ===== Checkout page ===== */
.bz-checkout-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 20px;
    align-items: start;
}
@media (max-width: 880px) {
    .bz-checkout-grid { grid-template-columns: 1fr; }
    .bz-cart-summary-wrap { position: static !important; }
}
.bz-checkout-grid > div:last-child .bz-price-card { position: sticky; top: 90px; }
@media (max-width: 880px) {
    .bz-checkout-grid > div:last-child .bz-price-card { position: static; }
}

/* ===== Checkout recipient details grid (1 col mobile, 3 col desktop) ===== */
.bz-recipient-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 14px;
}
.bz-recipient-grid .bz-form-group { margin-bottom: 0; }
@media (max-width: 640px) {
    .bz-recipient-grid { grid-template-columns: 1fr; gap: 12px; }
}

/* ===== Summary rows (used in success + voucher show) ===== */
.bz-sum-row { display: flex; justify-content: space-between; padding: 6px 0; font-size: 0.9rem; }
.bz-sum-row + .bz-sum-row { border-top: 1px solid var(--line); }
.bz-sum-total { font-size: 1.05rem; font-weight: 800; border-top: 2px solid var(--line) !important; margin-top: 6px; padding-top: 10px !important; }
.bz-detail-art {
    position: relative;
    aspect-ratio: 4/3;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, #F4ECFF 0%, #FFE7F2 60%, #FFEFE0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: 0 18px 40px rgba(107,43,254,.12);
}
.bz-detail-art-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 20%, rgba(107,43,254,.12) 0%, transparent 40%),
        radial-gradient(circle at 80% 80%, rgba(255,77,141,.10) 0%, transparent 40%);
    pointer-events: none;
}
.bz-detail-art-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(50px);
    pointer-events: none;
}
.bz-detail-art-blob-1 {
    width: 220px; height: 220px;
    top: -60px; right: -40px;
    background: radial-gradient(circle, rgba(255,138,61,.35) 0%, transparent 70%);
}
.bz-detail-art-blob-2 {
    width: 240px; height: 240px;
    bottom: -80px; left: -30px;
    background: radial-gradient(circle, rgba(107,43,254,.30) 0%, transparent 70%);
}
.bz-detail-art img { width: 60%; height: 60%; object-fit: contain; }

/* Brand logo card (centerpiece) */
.bz-detail-logo-card {
    position: relative;
    z-index: 2;
    width: 78%;
    max-width: 280px;
    aspect-ratio: 1.4 / 1;
    background: #fff;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 22px 28px;
    box-shadow:
        0 22px 50px rgba(31,16,80,.18),
        0 6px 16px rgba(107,43,254,.10),
        inset 0 1px 0 rgba(255,255,255,.8);
    border: 1px solid rgba(255,255,255,.6);
}
.bz-detail-logo-card img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(31,16,80,.06));
}
.bz-detail-logo-initial {
    font-size: 5rem;
    font-weight: 900;
    background: linear-gradient(135deg, #6B2BFE 0%, #FF4D8D 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    line-height: 1;
}

/* Face value chip — top-left */
.bz-detail-face-chip {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 3;
    background: rgba(255,255,255,.92);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,.7);
    border-radius: 12px;
    padding: 6px 12px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    box-shadow: 0 6px 16px rgba(31,16,80,.08);
}
.bz-detail-face-amt {
    font-size: 0.95rem;
    font-weight: 800;
    background: linear-gradient(135deg, #6B2BFE 0%, #FF4D8D 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    line-height: 1;
    letter-spacing: -0.01em;
}
.bz-detail-face-lbl {
    font-size: 0.62rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
    margin-top: 2px;
}

/* Discount badge — top-right */
.bz-detail-discount-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 3;
    background: linear-gradient(135deg, #FF8A3D 0%, #E5373D 100%);
    color: #fff;
    border-radius: 50%;
    width: 64px;
    height: 64px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(229,55,61,.35);
    transform: rotate(-8deg);
}
.bz-detail-discount-num {
    font-size: 1.05rem;
    font-weight: 900;
    line-height: 1;
}
.bz-detail-discount-lbl {
    font-size: 0.6rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    margin-top: 1px;
    opacity: 0.95;
}

/* Brand name strip — bottom */
.bz-detail-brand-strip {
    position: absolute;
    bottom: 14px;
    left: 14px;
    right: 14px;
    z-index: 3;
    text-align: center;
}
.bz-detail-brand-name {
    display: inline-block;
    background: rgba(26,16,51,.85);
    backdrop-filter: blur(8px);
    color: #fff;
    padding: 6px 16px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    box-shadow: 0 6px 14px rgba(31,16,80,.20);
}

@media (max-width: 640px) {
    .bz-detail-logo-card { padding: 16px 20px; }
    .bz-detail-logo-initial { font-size: 3.5rem; }
    .bz-detail-discount-badge { width: 54px; height: 54px; }
    .bz-detail-discount-num { font-size: 0.9rem; }
    .bz-detail-face-amt { font-size: 0.85rem; }
}
.bz-price-card {
    background: #fff; border-radius: var(--radius-lg); padding: 24px;
    box-shadow: var(--shadow-sm);
}
.bz-price-row { display: flex; justify-content: space-between; align-items: center; padding: 6px 0; }
.bz-price-row.total { border-top: 1px dashed var(--line); margin-top: 10px; padding-top: 14px; }
.bz-price-row .label { color: var(--ink-2); }
.bz-price-row .val { font-weight: 600; }

/* ===== Tabs (My Vouchers + admin filter tabs) ===== */
.bz-tabs {
    display: flex; gap: 6px;
    border-bottom: 1px solid var(--line);
    margin-bottom: 18px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    display: none;
}
.bz-tabs::-webkit-scrollbar { height: 4px; }
.bz-tabs::-webkit-scrollbar-thumb { background: var(--line); border-radius: 2px; }
.bz-tab {
    padding: 10px 14px; cursor: pointer;
    border-bottom: 2px solid transparent;
    color: var(--ink-2); font-weight: 600; font-size: 0.9rem;
    white-space: nowrap; flex-shrink: 0;
}
.bz-tab.active { color: var(--brand-700); border-bottom-color: var(--brand-500); }
.bz-tab:hover:not(.active) { color: var(--ink); }

.bz-iv-card {
    display: flex; gap: 14px; align-items: center;
    padding: 14px;
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow-xs);
    border: 1px solid var(--line);
}
.bz-iv-thumb {
    width: 64px; height: 64px;
    border-radius: 12px;
    background: var(--grad-brand-soft);
    flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
}
.bz-iv-thumb img { width: 80%; height: 80%; object-fit: contain; }
.bz-iv-thumb .ph { font-size: 1.5rem; font-weight: 800; color: var(--brand-500); }
.bz-iv-body { flex: 1 1 auto; min-width: 0; }
.bz-iv-row { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* ===== Wallet pill / balance ===== */
.bz-balance-pill {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--grad-brand);
    color: #fff;
    padding: 8px 14px;
    border-radius: var(--radius-pill);
    font-weight: 700;
    box-shadow: var(--shadow);
}
.bz-balance-pill .amt { font-size: 1.1rem; }

/* ===== Bottom nav (mobile) ===== */
.bz-bottomnav {
    position: fixed; bottom: 0; left: 0; right: 0;
    background: #fff; border-top: 1px solid var(--line);
    display: none;
    z-index: 90;
}
.bz-bottomnav a {
    flex: 1; padding: 10px 4px; text-align: center;
    color: var(--muted); font-size: 0.7rem; font-weight: 600;
    text-decoration: none;
    display: flex; flex-direction: column; align-items: center; gap: 4px;
}
.bz-bottomnav a svg { width: 22px; height: 22px; }
.bz-bottomnav a.active { color: var(--brand-600); }
@media (max-width: 720px) {
    .bz-bottomnav { display: flex; }
    body { padding-bottom: 70px; }
}

/* ===== Professional site footer ===== */
.bz-footer {
    background: linear-gradient(180deg, #1A0E36 0%, #2A1556 100%);
    color: #C9C0E5;
    margin-top: 80px;
    border-top: 1px solid rgba(255, 255, 255, .08);
}
.bz-footer-inner {
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}
@media (min-width: 880px) {
    .bz-footer-inner { width: 99%; }
}
.bz-footer a { color: #DDD3FA; transition: color .15s; }
.bz-footer a:hover { color: #FFC93D; }

.bz-footer-top {
    padding: 64px 0 48px;
}
.bz-footer-grid {
    display: grid;
    grid-template-columns: 1.8fr repeat(4, 1fr);
    gap: 36px;
}
@media (max-width: 1080px) {
    .bz-footer-grid { grid-template-columns: 1.5fr repeat(3, 1fr); }
    .bz-footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
    .bz-footer-grid { grid-template-columns: 1fr 1fr; gap: 30px 20px; }
    .bz-footer-brand { grid-column: 1 / -1; }
}

/* Brand column */
.bz-footer-brand { color: #C9C0E5; }
.bz-footer-logo {
    display: inline-block; line-height: 0;
    margin-bottom: 16px;
}
.bz-footer-logo img {
    height: 52px; width: auto; object-fit: contain;
    filter: drop-shadow(0 6px 14px rgba(180, 80, 200, .25));
}
.bz-footer-tag {
    margin: 0 0 22px;
    color: #B5ABDE;
    font-size: 0.92rem;
    line-height: 1.55;
    max-width: 320px;
}
.bz-footer-social {
    display: flex; gap: 10px;
}
.bz-footer-social a {
    width: 36px; height: 36px;
    border-radius: 10px;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .12);
    display: inline-flex; align-items: center; justify-content: center;
    color: #DDD3FA;
    transition: background .15s, color .15s, transform .15s, border-color .15s;
}
.bz-footer-social a:hover {
    background: var(--brand-600);
    color: #fff;
    border-color: var(--brand-600);
    transform: translateY(-2px);
}
.bz-footer-social svg { width: 16px; height: 16px; }

/* Link columns */
.bz-footer-col h4 {
    color: #fff;
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin: 0 0 16px;
}
.bz-footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex; flex-direction: column; gap: 10px;
}
.bz-footer-col li a {
    color: #B5ABDE;
    font-size: 0.88rem;
    text-decoration: none;
    line-height: 1.4;
    transition: color .15s, padding-left .15s;
}
.bz-footer-col li a:hover {
    color: #fff;
    padding-left: 4px;
}

/* Contact column (with icons) */
.bz-footer-contact li {
    display: flex; gap: 10px; align-items: flex-start;
    color: #B5ABDE;
    font-size: 0.85rem;
    line-height: 1.45;
}
.bz-footer-contact li svg {
    width: 16px; height: 16px;
    color: #FFC93D;
    flex-shrink: 0; margin-top: 2px;
}
.bz-footer-contact li a { color: #B5ABDE; }
.bz-footer-contact li a:hover { color: #fff; }

/* Newsletter strip */
.bz-footer-newsletter {
    margin-top: 44px;
    padding: 24px 28px;
    background: linear-gradient(135deg, rgba(107, 43, 254, .25) 0%, rgba(255, 77, 141, .25) 100%);
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 16px;
    display: flex; align-items: center; justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}
.bz-footer-newsletter-text h4 {
    color: #fff;
    font-size: 1.05rem;
    font-weight: 800;
    margin: 0 0 4px;
}
.bz-footer-newsletter-text p {
    color: #C9C0E5;
    font-size: 0.85rem;
    margin: 0;
}
.bz-footer-newsletter-form {
    display: flex; gap: 8px;
    flex: 0 1 380px;
}
.bz-footer-newsletter-form input {
    flex: 1;
    background: rgba(255, 255, 255, .95);
    border: 0;
    border-radius: 10px;
    padding: 10px 14px;
    font: 500 0.88rem/1 'Inter', sans-serif;
    color: var(--ink);
    min-width: 0;
}
.bz-footer-newsletter-form input::placeholder { color: var(--muted); }
.bz-footer-newsletter-form input:focus {
    outline: 2px solid var(--brand-600);
    outline-offset: 1px;
}
.bz-footer-newsletter-form button {
    background: linear-gradient(135deg, #FFC93D 0%, #FF8A3D 100%);
    color: #4A2E00;
    border: 0;
    border-radius: 10px;
    padding: 10px 20px;
    font: 800 0.88rem/1 'Inter', sans-serif;
    cursor: pointer;
    transition: filter .15s, transform .15s;
}
.bz-footer-newsletter-form button:hover { filter: brightness(1.05); transform: translateY(-1px); }
@media (max-width: 640px) {
    .bz-footer-newsletter { flex-direction: column; align-items: stretch; }
    .bz-footer-newsletter-form { flex: 1 1 auto; }
}

/* Bottom bar */
.bz-footer-bottom {
    background: rgba(0, 0, 0, .25);
    border-top: 1px solid rgba(255, 255, 255, .06);
    padding: 18px 0;
}
.bz-footer-bottom-inner {
    display: flex; align-items: center; justify-content: space-between;
    flex-wrap: wrap; gap: 10px;
}
.bz-footer-meta {
    color: #8B85A8;
    font-size: 0.82rem;
}
.bz-footer-meta-right {
    display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.bz-footer-meta-right a {
    color: #B5ABDE;
    text-decoration: none;
}
.bz-footer-meta-right a:hover { color: #FFC93D; }
.bz-footer-dot { color: #4B456A; }

/* ===== Alerts / flash ===== */
.bz-alert {
    padding: 12px 14px; border-radius: var(--radius); margin-bottom: 16px;
    background: var(--brand-50); color: var(--brand-800); border: 1px solid var(--brand-200);
    font-size: 0.9rem;
}
.bz-alert-success { background: #E5F7EE; color: var(--success); border-color: #BFE8D2; }
.bz-alert-danger  { background: #FDECEC; color: var(--danger); border-color: #FAC8C8; }
.bz-alert-warning { background: #FFF4D9; color: #B47A00; border-color: #F2DE9C; }

/* ===== Tables ===== */
.bz-table {
    width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden;
    box-shadow: var(--shadow-xs);
}
.bz-table th, .bz-table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); font-size: 0.9rem; }
.bz-table th { background: var(--bg); color: var(--ink-2); font-weight: 700; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.05em; }
.bz-table tr:last-child td { border-bottom: 0; }
.bz-table tr:hover td { background: rgba(107,43,254,.02); }

/* ===== Sortable column headers ===== */
.bz-th-sortable { padding: 0; }
.bz-th-sort-link {
    display: flex; align-items: center; justify-content: space-between;
    gap: 6px;
    padding: 12px 14px;
    color: var(--ink-2); text-decoration: none;
    cursor: pointer; user-select: none;
    transition: color .15s, background .15s;
}
.bz-th-sort-link:hover { color: var(--brand-700); background: rgba(107,43,254,.04); }
.bz-th-sort-link.is-active { color: var(--brand-700); }
.bz-th-sort-glyph {
    font-size: 0.7rem; opacity: 0.35;
    transition: opacity .15s;
}
.bz-th-sort-link:hover .bz-th-sort-glyph { opacity: 0.7; }
.bz-th-sort-link.is-active .bz-th-sort-glyph { opacity: 1; }

/* ===== Date+Time cell (stacked) ===== */
.bz-cell-datetime {
    display: inline-flex; flex-direction: column; line-height: 1.15;
}
.bz-cell-date { color: var(--ink); font-weight: 600; font-size: 0.86rem; }
.bz-cell-time { color: var(--muted); font-size: 0.78rem; font-variant-numeric: tabular-nums; }

/* ===== Modal ===== */
.bz-modal-backdrop {
    position: fixed; inset: 0; background: rgba(31,16,80,.55);
    z-index: 200; display: none; align-items: center; justify-content: center; padding: 20px;
}
.bz-modal-backdrop.open { display: flex; }
.bz-modal {
    background: #fff; border-radius: var(--radius-lg);
    max-width: 480px; width: 100%; padding: 28px;
    box-shadow: var(--shadow-lg);
}
.bz-modal h3 { margin-bottom: 14px; }
.bz-modal-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 18px; }

/* ===== Barcode display ===== */
/* Used by both the voucher code and the PIN block on the
   /my-vouchers/{code} detail page. The box is fluid (width: 100%)
   and the barcode SVG scales with `max-width: 100%` so it always
   adjusts to the parent card width without overflowing. */
/* ===== Code 128 barcode blocks =====
   Scannable barcode + label below, framed for clarity. */
.bz-barcode-box {
    background: #fff; border-radius: var(--radius); padding: 18px 18px 14px;
    border: 1px solid #E2E8F0;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
    box-shadow: inset 0 0 0 1px rgba(107, 43, 254, .04);
}
.bz-barcode-box svg {
    width: 100%; max-width: 360px; height: auto; aspect-ratio: 360 / 90;
    margin: 0 auto; display: block;
}
.bz-barcode-code {
    font-family: 'JetBrains Mono', monospace; letter-spacing: 0.22em;
    font-size: 1.05rem; font-weight: 800; color: var(--ink);
    margin-top: 6px;
    word-break: break-all;
}
.bz-barcode-sym {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.1em;
    font-weight: 800; color: var(--muted); margin-bottom: 8px;
    background: #F8FAFC; border: 1px solid #E2E8F0; border-radius: 999px;
    padding: 3px 10px;
}
.bz-barcode-sym::before {
    content: ""; width: 8px; height: 8px; border-radius: 50%;
    background: var(--brand-700); flex: 0 0 auto;
}
.bz-barcode-head {
    display: flex; justify-content: space-between; align-items: center;
    gap: 8px; margin-bottom: 6px; flex-wrap: wrap;
}
.bz-barcode-copy { padding: 4px 10px; font-size: 0.75rem; }

/* ===== My-voucher hero brand logo (top-right of purple header) ===== */
/* Transparent badge — the logo sits directly on the purple gradient. */
.bz-mvshow-brand-logo {
    flex: 0 0 auto;
    width: 120px; height: 60px;
    margin: 4px 4px 0 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
}
.bz-mvshow-brand-logo img {
    width: 100%;
    height: 100%;
    /* 'contain' preserves the logo's own transparent background. */
    object-fit: contain;
    object-position: center;
    padding: 0;
    display: block;
}
.bz-mvshow-brand-initial {
    font-size: 1.6rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}

/* ===== My-voucher detail page wrap =====
   Centres the entire voucher detail page at exactly 50% width on
   desktop (so the hero logo + barcode PIN + terms etc. form one
   focused column instead of stretching across the full viewport).
   Falls back to the normal narrow container on phones. */
.bz-mvshow-wrap {
    margin-left: auto;
    margin-right: auto;
    width: 100%;
}
@media (min-width: 900px) {
    .bz-mvshow-wrap {
        width: 50%;
        max-width: 720px; /* hard cap so it never grows too wide on huge screens */
    }
}

/* ===== Admin sidebar layout ===== */
.bz-admin { display: block; min-height: 100vh; background: var(--bg); }
.bz-admin-sidebar {
    /* Fixed (not sticky) so it stays in view regardless of how tall the page is.
       Sticky would scroll away once the parent is shorter than sidebar + scroll offset. */
    position: fixed; top: 0; left: 0; z-index: 30;
    width: 240px; flex-shrink: 0;
    background: #1A1033; color: #DDD3FA;
    padding: 20px 14px;
    height: 100vh;
    display: flex; flex-direction: column;
    overflow: hidden;
}
.bz-admin-sidebar nav { flex: 1 1 auto; overflow-y: auto; padding-right: 4px; }
.bz-admin-sidebar nav::-webkit-scrollbar { width: 6px; }
.bz-admin-sidebar nav::-webkit-scrollbar-thumb { background: rgba(255,255,255,.12); border-radius: 3px; }
.bz-admin-sidebar .bz-logo { color: #fff; margin-bottom: 20px; }
.bz-admin-sidebar nav a {
    display: flex; align-items: center; gap: 10px;
    padding: 9px 12px; border-radius: 10px;
    color: #C9C0E5; font-size: 0.9rem; text-decoration: none;
    margin-bottom: 2px;
}
.bz-admin-sidebar nav a:hover { background: rgba(255,255,255,.06); color: #fff; }
.bz-admin-sidebar nav a.active { background: var(--brand-500); color: #fff; }
.bz-admin-sidebar nav a svg { width: 18px; height: 18px; }
.bz-admin-sidebar h6 {
    color: #8B85A8; font-size: 0.7rem; text-transform: uppercase;
    letter-spacing: 0.08em; margin: 18px 12px 6px;
}
.bz-admin-main {
    flex: 1 1 auto; min-width: 0; padding: 24px 28px; overflow-x: hidden;
    margin-left: 240px; /* offset for fixed sidebar */
}
.bz-admin-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.bz-admin-head h1 { font-size: 1.5rem; }

/* ===== Admin sidebar footer (user + actions) ===== */
.bz-admin-sidefoot {
    flex-shrink: 0; margin-top: 14px; padding-top: 14px;
    border-top: 1px solid rgba(255,255,255,.08);
}

/* Sidebar header: logo + close button (close visible only on mobile) */
.bz-admin-sidehead {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 18px;
}
.bz-admin-sidehead .bz-logo { margin-bottom: 0; }
.bz-admin-close {
    display: none;
    width: 36px; height: 36px;
    background: rgba(255,255,255,.06);
    border: 0; border-radius: 10px;
    color: #fff; cursor: pointer;
    align-items: center; justify-content: center;
}
.bz-admin-close:hover { background: rgba(255,255,255,.12); }
.bz-admin-close svg { width: 18px; height: 18px; }
.bz-admin-user {
    display: flex; align-items: center; gap: 10px;
    padding: 8px 10px; border-radius: 10px;
    background: rgba(255,255,255,.05);
    margin-bottom: 10px;
    color: inherit; text-decoration: none;
    transition: background .15s;
}
.bz-admin-user:hover { background: rgba(255,255,255,.08); color: inherit; }
.bz-admin-avatar {
    width: 36px; height: 36px; border-radius: 50%;
    background: var(--grad-brand); color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 0.9rem; flex-shrink: 0;
}
.bz-admin-uinfo { display: flex; flex-direction: column; min-width: 0; }
.bz-admin-uname { color: #fff; font-size: 0.85rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bz-admin-urole { color: #8B85A8; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.05em; }
.bz-admin-sideactions { display: flex; gap: 8px; }
.bz-admin-sideactions .bz-side-act {
    flex: 1; display: inline-flex; align-items: center; justify-content: center;
    height: 36px; border-radius: 10px;
    background: rgba(255,255,255,.05); color: #C9C0E5;
    text-decoration: none; transition: background .15s, color .15s;
}
.bz-admin-sideactions .bz-side-act:hover { background: var(--brand-500); color: #fff; }
.bz-admin-sideactions .bz-side-act button {
    all: unset; cursor: pointer; width: 100%; height: 100%;
    display: inline-flex; align-items: center; justify-content: center;
}
.bz-admin-sideactions .bz-side-act svg { width: 16px; height: 16px; }

/* ===== Admin hamburger + responsive sidebar drawer ===== */
.bz-admin-burger {
    display: none; position: fixed; top: 12px; left: 12px; z-index: 60;
    width: 42px; height: 42px; border: 0; border-radius: 12px;
    background: #1A1033; color: #fff; cursor: pointer;
    box-shadow: 0 4px 14px rgba(26,16,51,.25);
    align-items: center; justify-content: center;
}
.bz-admin-burger svg { width: 20px; height: 20px; }
.bz-admin-overlay {
    display: none; position: fixed; inset: 0; z-index: 49;
    background: rgba(15,8,40,.55); backdrop-filter: blur(2px);
}
.bz-admin-open .bz-admin-overlay { display: block; }
.bz-admin-topbar {
    display: none; align-items: center; gap: 12px;
    margin: -8px -4px 16px; padding: 10px 4px 10px 0;
    border-bottom: 1px solid var(--line);
    max-width: 100%;
}
.bz-admin-topbar-title {
    font-size: 1.05rem; font-weight: 800; color: var(--ink);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    flex: 1;
}
.bz-admin-topbar-actions {
    display: flex; align-items: center; gap: 8px;
}
.bz-admin-topbar-action {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 7px 12px;
    background: linear-gradient(135deg, rgba(107,43,254,.10) 0%, rgba(255,77,141,.10) 100%);
    border: 1px solid rgba(107,43,254,.18);
    color: #5B21B6;
    font-size: 0.82rem; font-weight: 700;
    border-radius: 999px;
    text-decoration: none;
    transition: background .15s, transform .15s;
}
.bz-admin-topbar-action:hover {
    background: linear-gradient(135deg, rgba(107,43,254,.20) 0%, rgba(255,77,141,.20) 100%);
    transform: translateY(-1px);
    color: #5B21B6;
}
.bz-admin-burger-inline {
    display: inline-flex; position: static; box-shadow: none;
    width: 38px; height: 38px; flex-shrink: 0;
}

@media (max-width: 880px) {
    .bz-admin-topbar { display: flex; }
    .bz-admin {
        display: block;
        min-height: 100vh;
        overflow-x: hidden;
    }
    .bz-admin-sidebar {
        position: fixed; top: 0; left: 0;
        width: 280px; max-width: 84vw;
        height: 100vh; z-index: 50;
        transform: translateX(-105%);
        transition: transform .25s ease;
        box-shadow: 4px 0 20px rgba(0,0,0,.25);
    }
    .bz-admin-open .bz-admin-sidebar { transform: translateX(0); }
    .bz-admin-main {
        padding: 16px;
        width: 100%;
        margin-left: 0;
    }
    .bz-admin-content { width: 100%; }
    /* Hide the fixed burger when the inline one in the topbar is visible */
    .bz-admin-burger { display: none; }
    .bz-admin-burger-inline { display: inline-flex; }
    /* When drawer is open, hide the topbar burger so it doesn't cover the logo */
    .bz-admin-open .bz-admin-burger-inline { display: none; }
    /* Also hide the topbar entirely when drawer is open, so the burger can't overlap */
    .bz-admin-open .bz-admin-topbar { display: none; }
    /* Show the close (X) button inside the sidebar */
    .bz-admin-close { display: inline-flex; }
}

@media (max-width: 540px) {
    .bz-admin-main { padding: 12px; }
    .bz-admin-head h1 { font-size: 1.2rem; }
    .bz-admin-head { flex-wrap: wrap; gap: 10px; }
    .bz-admin-head .bz-btn { padding: 8px 12px; font-size: 0.85rem; }
    .bz-stat { grid-template-columns: 1fr 1fr; gap: 8px; }
    .bz-stat-card { padding: 14px; }
    .bz-stat-card .val { font-size: 1.2rem; }
}

/* Wider table responsiveness for admin */
@media (max-width: 880px) {
    .bz-table { font-size: 0.85rem; }
}

/* ===== Active / Off toggle pill used in admin listings ===== */
.bz-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 10px 4px 4px;
    border-radius: 999px;
    border: 1px solid var(--line, #E5E7EB);
    background: #F3F4F6;
    color: #6B7280;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    transition: background .15s, color .15s, border-color .15s;
    line-height: 1;
}
.bz-toggle:hover { border-color: #C4B0FF; }
.bz-toggle .bz-toggle-knob {
    width: 18px; height: 18px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 2px rgba(0,0,0,.18);
    transition: transform .15s;
    flex-shrink: 0;
}
.bz-toggle.is-on {
    background: #E5F7EE;
    color: #15803D;
    border-color: #BBF7D0;
}
.bz-toggle.is-on .bz-toggle-knob {
    background: #15803D;
    transform: translateX(2px);
}
.bz-toggle.is-off .bz-toggle-knob {
    background: #9CA3AF;
}
.bz-toggle.is-off {
    background: #F3F4F6;
    color: #6B7280;
}
    .bz-table th, .bz-table td { padding: 10px 8px; }
    .bz-admin-grid-2 { grid-template-columns: 1fr !important; }
}
@media (max-width: 720px) {
    .bz-admin-grid-3 { grid-template-columns: 1fr !important; }
}
@media (max-width: 640px) {
    /* Convert admin tables into stacked card lists */
    .bz-card.bz-table-wrap,
    .bz-card table.bz-table,
    table.bz-table {
        display: block; overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        width: 100%;
        margin: 0; padding: 0;
        border-spacing: 0;
        border-collapse: collapse;
    }
    table.bz-table thead { display: none; }
    table.bz-table tbody { display: block; width: 100%; }
    table.bz-table tbody tr {
        display: block;
        width: 100%;
        box-sizing: border-box;
        padding: 12px;
        border: 1px solid var(--line);
        border-radius: 10px;
        margin-bottom: 10px;
        background: #fff;
    }
    table.bz-table tbody td {
        display: flex; justify-content: space-between;
        align-items: center; width: 100%;
        box-sizing: border-box;
        padding: 6px 0;
        border-bottom: 1px dashed var(--line);
        text-align: right;
    }
    table.bz-table tbody td:last-child { border-bottom: 0; justify-content: flex-end; }
    table.bz-table tbody td::before {
        content: attr(data-label);
        font-weight: 700; color: var(--muted);
        text-transform: uppercase; font-size: 0.7rem;
        letter-spacing: 0.04em;
        margin-right: 12px;
    }
    .bz-row { flex-direction: column; gap: 12px; }
    .bz-row .bz-col { width: 100%; }
    .bz-card { padding: 14px !important; }
    .bz-form-group label { font-size: 0.85rem; }
    .bz-input, .bz-textarea, .bz-select { font-size: 16px !important; }
}

.bz-stat { display: grid; gap: 12px; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 20px; }
@media (max-width: 880px) { .bz-stat { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.bz-stat-card {
    background: #fff; border-radius: var(--radius-lg); padding: 18px;
    box-shadow: var(--shadow-sm);
}
.bz-stat-card .lbl { font-size: 0.78rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600; }
.bz-stat-card .val { font-size: 1.5rem; font-weight: 800; color: var(--ink); margin-top: 4px; }
.bz-stat-card .sub { font-size: 0.8rem; color: var(--success); margin-top: 4px; }

/* ===== Empty state ===== */
.bz-empty {
    text-align: center; padding: 50px 20px; color: var(--muted);
}
.bz-empty svg { width: 80px; height: 80px; opacity: 0.5; margin-bottom: 12px; }

/* ===== Misc utility ===== */
.bz-text-grad { background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent; }
.bz-mono { font-family: 'JetBrains Mono', ui-monospace, monospace; }
.bz-truncate { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bz-flex { display: flex; }
.bz-flex-between { display: flex; justify-content: space-between; align-items: center; }
.bz-gap-2 { gap: 8px; } .bz-gap-3 { gap: 12px; } .bz-gap-4 { gap: 16px; }
.bz-mt-2 { margin-top: 8px; } .bz-mt-4 { margin-top: 16px; }
.bz-mb-4 { margin-bottom: 16px; }
.bz-mb-6 { margin-bottom: 24px; }
.bz-p-4 { padding: 16px; } .bz-p-6 { padding: 24px; }
.bz-text-muted { color: var(--muted); }

/* 2026-09-20: payment breakdown colours used on /orders and
   /orders/{ref}. Discount in green, points used in blue,
   fee in amber. -- */
.bz-discount { color: #15803D; font-weight: 600; }
.bz-points   { color: #1D4ED8; font-weight: 600; }
.bz-fee      { color: #92400E; font-weight: 600; }</new_string>
.bz-text-success { color: var(--success); }
.bz-text-danger { color: var(--danger); }
.bz-text-center { text-align: center; }
.bz-divider { height: 1px; background: var(--line); margin: 16px 0; }

/* ===== Order status colors ===== */
.status-created { color: var(--muted); }
.status-pending { color: var(--warning); }
.status-paid    { color: var(--success); }
.status-failed  { color: var(--danger); }
.status-refunded{ color: var(--info); }
.status-cancelled{ color: var(--danger); }
.status-active  { color: var(--success); }
.status-used    { color: var(--ink-2); }
.status-expired { color: var(--muted); }
.status-partial { color: var(--warning); }

/* ===== Pagination (Laravel default Tailwind-free styles) ===== */
nav[role="navigation"] {
    display: flex; justify-content: center; align-items: center;
    margin-top: 28px;
}
nav[role="navigation"] > div:first-child { display: none; }   /* hide "Showing X to Y of Z" */
nav[role="navigation"] > div:last-child  { display: flex; flex-wrap: wrap; gap: 6px; }
nav[role="navigation"] a,
nav[role="navigation"] span {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 36px; height: 36px;
    padding: 0 12px;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    color: var(--ink-2);
    background: #fff;
    border: 1px solid var(--line);
    transition: background .15s, color .15s, border-color .15s;
}
nav[role="navigation"] a:hover {
    color: #fff;
    background: var(--brand-600);
    border-color: var(--brand-600);
}
nav[role="navigation"] span[aria-current="page"] span,
nav[role="navigation"] span[aria-current="page"] {
    color: #fff;
    background: var(--brand-600);
    border-color: var(--brand-600);
}
nav[role="navigation"] span[aria-disabled="true"] {
    color: var(--muted);
    background: var(--bg);
    border-color: var(--line);
    cursor: not-allowed;
}
nav[role="navigation"] svg {
    width: 16px !important;
    height: 16px !important;
    max-width: 16px !important;
    max-height: 16px !important;
}


/* ===== Wallet page ===== */
.bz-wallet-hero {
    background: var(--grad-brand);
    color: #fff;
    text-align: center;
    padding: 28px 20px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    margin-top: 16px;
}
.bz-wallet-hero-label { font-size: 0.85rem; opacity: 0.85; }
.bz-wallet-hero-amt { font-size: 2.4rem; font-weight: 800; margin-top: 6px; letter-spacing: -0.02em; }
.bz-wallet-hero-btn { background: #fff; color: var(--brand-700); margin-top: 16px; }

.bz-section-title { margin: 28px 0 14px; font-size: 1.05rem; }

/* mobile cards */
.bz-tx-list { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; }
.bz-tx-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 14px;
    box-shadow: var(--shadow-xs);
    border: 1px solid var(--line);
}
.bz-tx-top { display: flex; justify-content: space-between; align-items: center; }
.bz-tx-amt { font-weight: 800; font-size: 1rem; }
.bz-tx-amt.is-credit { color: var(--success); }
.bz-tx-amt.is-debit  { color: var(--danger); }
.bz-tx-note { margin-top: 6px; font-size: 0.88rem; color: var(--ink-2); }
.bz-tx-bottom {
    display: flex; justify-content: space-between; align-items: center;
    margin-top: 10px; padding-top: 10px;
    border-top: 1px dashed var(--line);
    font-size: 0.78rem; color: var(--muted);
}
.bz-tx-balance { font-weight: 600; }

/* hide mobile list on desktop, show desktop table */
.bz-tx-list { display: none; }
.bz-tx-table { display: table; width: 100%; }

/* Wallet — mobile cards */
@media (max-width: 720px) {
    .bz-wallet-hero { padding: 22px 16px; }
    .bz-wallet-hero-amt { font-size: 2rem; }
    .bz-tx-list  { display: flex !important; }
    table.bz-tx-table { display: none !important; }
}


/* ===== Orders list ===== */
.bz-order-list { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.bz-order-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 14px;
    box-shadow: var(--shadow-xs);
    border: 1px solid var(--line);
    text-decoration: none;
    color: inherit;
    display: block;
    transition: transform .15s, box-shadow .15s, border-color .15s;
}
.bz-order-card:hover { transform: translateY(-1px); box-shadow: var(--shadow-sm); border-color: var(--brand-200); }
.bz-order-top { display: flex; justify-content: space-between; align-items: center; }
.bz-order-ref { font-size: 0.85rem; font-weight: 700; color: var(--ink); }
.bz-order-bottom {
    display: flex; justify-content: space-between; align-items: center;
    margin-top: 10px; padding-top: 10px;
    border-top: 1px dashed var(--line);
    font-size: 0.82rem;
}
.bz-order-date { color: var(--muted); }
.bz-order-total { font-weight: 800; color: var(--ink); }

.bz-order-list { display: none; }
.bz-order-table { display: table; width: 100%; }

@media (max-width: 720px) {
    .bz-order-list  { display: flex !important; }
    table.bz-order-table { display: none !important; }
}


/* ===== Order show ===== */
.bz-ordshow-head {
    display: flex; align-items: center; flex-wrap: wrap; gap: 10px;
    margin-top: 8px;
}
.bz-back-link {
    color: var(--brand-700); text-decoration: none; font-size: 0.88rem; font-weight: 600;
}
.bz-back-link:hover { text-decoration: underline; }
.bz-ordshow-title { flex: 1 1 auto; margin: 0; font-size: 1.4rem; }
.bz-ordshow-status { font-weight: 700; font-size: 0.85rem; }

.bz-ordshow-card { padding: 16px; }
.bz-ordshow-row {
    display: flex; justify-content: space-between; align-items: center;
    padding: 10px 0; border-bottom: 1px dashed var(--line);
}
.bz-ordshow-row:last-child { border-bottom: 0; }
.bz-ordshow-row--total { font-size: 1.1rem; font-weight: 700; }
.bz-ordshow-lbl { color: var(--muted); font-size: 0.85rem; }
.bz-ordshow-val { color: var(--ink); font-weight: 600; }

.bz-ordshow-items { display: flex; flex-direction: column; gap: 10px; }
.bz-ordshow-item {
    display: flex; align-items: center; gap: 10px;
    background: #fff; border-radius: var(--radius);
    padding: 12px 14px; box-shadow: var(--shadow-xs);
    border: 1px solid var(--line);
}
.bz-ordshow-item-main { flex: 1 1 auto; min-width: 0; }
.bz-ordshow-item-title { font-weight: 700; color: var(--ink); }
.bz-ordshow-item-sub { font-size: 0.8rem; color: var(--muted); margin-top: 2px; }
.bz-ordshow-item-amt { font-weight: 800; }

@media (max-width: 520px) {
    .bz-ordshow-title { font-size: 1.15rem; }
    .bz-ordshow-row { padding: 8px 0; }
}


/* ===== My Vouchers — polished list ===== */
.bz-mv-head { display: flex; align-items: end; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.bz-mv-sub { color: var(--muted); font-size: 0.92rem; margin: 6px 0 0; }

.bz-mv-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 18px;
}

.bz-mv-card-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 18px;
}

@media (max-width: 880px) {
    .bz-mv-card-grid {
        grid-template-columns: 1fr;
    }
}

.bz-mv-card {
    display: flex;
    gap: 14px;
    align-items: stretch;
    background: linear-gradient(135deg, #FFFFFF 0%, #FAF8FF 100%);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 14px;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 1px 2px rgba(31,16,80,.04);
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
    position: relative;
    overflow: hidden;
}
.bz-mv-card::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, var(--brand-500) 0%, var(--pink-500) 100%);
    border-radius: 4px 0 0 4px;
}
.bz-mv-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(107,43,254,.10);
    border-color: var(--brand-300);
}
/* Awaiting-activation voucher (no code yet — backend will fill it in) */
.bz-mv-card.is-pending { opacity: .8; cursor: default; }
.bz-mv-card.is-pending:hover { transform: none; box-shadow: 0 1px 2px rgba(31,16,80,.04); border-color: var(--line); }
.bz-mv-code-pending {
    background: #FEF3C7 !important;
    color: #92400E !important;
    font-style: italic;
    letter-spacing: 0.02em;
}

/* Brand logo block � distinctive gradient panel */
.bz-mv-brand {
    width: 86px;
    flex-shrink: 0;
    border-radius: 12px;
    background: linear-gradient(135deg, #F4F0FF 0%, #FFE7F2 60%, #FFEFE0 100%);
    border: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 10px;
}
.bz-mv-brand img {
    max-width: 100%;
    max-height: 56px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(31,16,80,.08));
}
.bz-mv-brand-initial {
    font-size: 1.8rem;
    font-weight: 800;
    background: linear-gradient(135deg, #6B2BFE 0%, #FF4D8D 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.bz-mv-brand-shine {
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,.5) 50%, transparent 70%);
    pointer-events: none;
}

.bz-mv-body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 8px; }

.bz-mv-row1 {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
}
.bz-mv-titles { min-width: 0; }
.bz-mv-brand-name {
    font-size: 0.74rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--brand-700);
}
.bz-mv-title {
    font-weight: 700;
    font-size: 0.98rem;
    color: var(--ink);
    margin-top: 3px;
    line-height: 1.25;
}

/* Code + face value bar */
.bz-mv-codebar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    background: #0F172A;
    color: #F8FAFC;
    border-radius: 10px;
    padding: 8px 12px;
}
.bz-mv-code {
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    background: transparent;
    color: inherit;
    word-break: break-all;
}
.bz-mv-face {
    font-weight: 800;
    font-size: 0.92rem;
    flex-shrink: 0;
    background: linear-gradient(135deg, #FFC93D 0%, #FF8A3D 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    white-space: nowrap;
}

/* PIN row (below the codebar).
   Same visual language as .bz-mv-codebar: dark slate pill with a
   small uppercase label on the left and the mono PIN on the right.
   Keeping both bars styled the same way prevents the PIN/code from
   visually breaking out of the card on narrow screens. */
.bz-mv-pinbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    background: #0F172A;
    color: #F8FAFC;
    border-radius: 10px;
    padding: 6px 12px;
    flex-wrap: nowrap;
    min-width: 0;
}
.bz-mv-pinlabel {
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.7rem;
    color: #94A3B8;            /* muted-on-dark for the label */
    flex-shrink: 0;
}
.bz-mv-pincode {
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    background: transparent;
    color: #F8FAFC;
    text-align: right;
    white-space: nowrap;       /* keep on one line like the codebar */
    overflow: hidden;
    text-overflow: ellipsis;   /* …if it's wider than the card */
    min-width: 0;
    flex: 1 1 auto;
    max-width: 100%;
}
@media (max-width: 520px) {
    .bz-mv-pinbar { padding: 5px 10px; }
    .bz-mv-pincode { font-size: 0.74rem; letter-spacing: 0.04em; }
    .bz-mv-pinlabel { font-size: 0.66rem; letter-spacing: 0.06em; }
}
@media (max-width: 380px) {
    .bz-mv-pincode { font-size: 0.68rem; letter-spacing: 0.02em; }
}

/* Balance progress */
.bz-mv-progress {
    height: 5px;
    background: var(--bg);
    border-radius: 999px;
    overflow: hidden;
}
.bz-mv-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #1FA971 0%, #FFC93D 100%);
    border-radius: 999px;
    transition: width .4s ease;
}

.bz-mv-row3 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    color: var(--muted);
    flex-wrap: wrap;
}
.bz-mv-bal strong { color: var(--ink); font-weight: 800; }
.bz-mv-bal em { font-style: normal; color: var(--muted); margin-left: 2px; }
.bz-mv-exp strong { color: var(--ink-2); font-weight: 700; }

/* Chevron */
.bz-mv-arrow {
    display: flex;
    align-items: center;
    color: var(--muted);
    flex-shrink: 0;
}
.bz-mv-arrow svg { width: 18px; height: 18px; }

@media (max-width: 640px) {
    .bz-mv-card { padding: 12px; gap: 12px; }
    .bz-mv-brand { width: 72px; padding: 8px; }
    .bz-mv-brand img { max-height: 44px; }
    .bz-mv-arrow { display: none; }
}

@media (max-width: 520px) {
    .bz-mv-card { padding: 10px; gap: 10px; }
    .bz-mv-brand { width: 64px; padding: 6px; border-radius: 10px; }
    .bz-mv-brand img { max-height: 38px; }
    .bz-mv-brand-initial { font-size: 1.5rem; }
    .bz-mv-title { font-size: 0.92rem; }
    .bz-mv-code { font-size: 0.74rem; letter-spacing: 0.04em; }
    .bz-mv-face { font-size: 0.82rem; }
    .bz-mv-row3 { font-size: 0.76rem; }
    .bz-mv-codebar { padding: 6px 10px; }
}

@media (max-width: 380px) {
    .bz-mv-brand { width: 56px; }
    .bz-mv-brand img { max-height: 32px; }
}


/* ===== Profile page ===== */
.bz-prof-hero {
    display: flex;
    align-items: center;
    gap: 16px;
    background: linear-gradient(135deg, #FFFFFF 0%, #FAF8FF 100%);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 18px;
    box-shadow: 0 1px 2px rgba(31,16,80,.04);
    position: relative;
}
.bz-prof-avatar {
    width: 64px; height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6B2BFE 0%, #FF4D8D 100%);
    color: #fff;
    font-size: 1.6rem;
    font-weight: 800;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 14px rgba(107,43,254,.25);
    overflow: hidden;          /* keep uploaded square avatars neatly clipped */
}
.bz-prof-avatar--img {
    background: #fff;
    box-shadow: 0 4px 14px rgba(107,43,254,.18);
    object-fit: cover;
}

/* === Profile picture upload row === */
.bz-prof-pic-row {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}
.bz-prof-pic-preview {
    width: 96px; height: 96px;
    border-radius: 50%;
    background: linear-gradient(135deg, #F4ECFF 0%, #FFE1F0 100%);
    color: #6B2BFE;
    font-size: 2.4rem;
    font-weight: 800;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    border: 1px solid var(--line);
    object-fit: cover;
}
.bz-prof-pic-actions {
    display: flex; flex-direction: column; gap: 10px; align-items: flex-start;
}
.bz-prof-pic-upload { cursor: pointer; }
.bz-prof-pic-file { display: none; }
.bz-prof-pic-remove { font-size: 0.85rem; }
.bz-prof-pic-hint { font-size: 0.82rem; color: var(--ink-2); }

/* === Security page === */
.bz-sec-session {
    display: flex; flex-direction: column; gap: 12px;
}
.bz-sec-session-row {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 12px 14px;
    background: #F8FAFC;
    border: 1px solid var(--line);
    border-radius: 12px;
}
.bz-sec-session-lbl { font-weight: 700; color: var(--ink); font-size: 0.95rem; }
.bz-sec-session-meta { font-size: 0.78rem; color: var(--ink-2); margin-top: 2px; word-break: break-word; }
.bz-prof-info { flex: 1 1 auto; min-width: 0; }
.bz-prof-name { font-size: 1.15rem; font-weight: 800; color: var(--ink); }
.bz-prof-email { font-size: 0.88rem; color: var(--muted); margin-top: 2px; word-break: break-all; }
.bz-prof-meta { margin-top: 8px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.bz-prof-phone { font-size: 0.82rem; color: var(--ink-2); font-weight: 600; }

.bz-prof-logout-form { margin: 0; }
.bz-prof-logout {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 10px;
    background: #FDECEC;
    color: var(--danger);
    border: 1px solid #FAC8C8;
    font-weight: 700;
    font-size: 0.82rem;
    cursor: pointer;
    transition: background .15s, color .15s;
}
.bz-prof-logout:hover { background: var(--danger); color: #fff; border-color: var(--danger); }
.bz-prof-logout svg { width: 14px; height: 14px; }

.bz-card-head h3 { font-size: 1.1rem; font-weight: 800; color: var(--ink); }
.bz-card-sub { font-size: 0.88rem; color: var(--muted); margin: 4px 0 16px; }

.bz-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}
@media (max-width: 560px) {
    .bz-form-row { grid-template-columns: 1fr; gap: 0; }
}

/* Password input with toggle eye */
.bz-pw-wrap { position: relative; }
.bz-pw-wrap .bz-input { padding-right: 42px; }
.bz-pw-toggle {
    position: absolute;
    right: 8px; top: 50%;
    transform: translateY(-50%);
    width: 32px; height: 32px;
    border-radius: 8px;
    background: transparent;
    border: 0;
    color: var(--muted);
    cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center;
    transition: background .15s, color .15s;
}
.bz-pw-toggle:hover { background: var(--bg); color: var(--brand-700); }
.bz-pw-toggle svg { width: 16px; height: 16px; }
.bz-pw-toggle.is-shown { color: var(--brand-700); }

.bz-pw-rules {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 6px 0 16px;
}
.bz-pw-rule {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    color: var(--muted);
    padding: 4px 10px;
    background: var(--bg);
    border-radius: 999px;
    transition: background .15s, color .15s;
}
.bz-pw-rule .dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: #CBD5E1;
    transition: background .15s;
}
.bz-pw-rule.is-ok { background: #E5F7EE; color: var(--success); }
.bz-pw-rule.is-ok .dot { background: var(--success); }

/* Sign-out card */
.bz-prof-signout-card { border: 1px dashed var(--line); }
.bz-prof-signout-row {
    display: flex; align-items: center; justify-content: space-between;
    gap: 14px; flex-wrap: wrap;
}
.bz-prof-signout-title { font-weight: 800; color: var(--ink); }
.bz-prof-signout-sub { font-size: 0.85rem; color: var(--muted); margin-top: 2px; }

@media (max-width: 520px) {
    .bz-prof-hero { padding: 14px; gap: 12px; flex-wrap: wrap; }
    .bz-prof-avatar { width: 48px; height: 48px; font-size: 1.2rem; }
    .bz-prof-info { flex: 1 1 calc(100% - 64px); min-width: 0; }
    .bz-prof-name { font-size: 1.05rem; }
    .bz-prof-logout { order: 3; margin-left: auto; padding: 6px 10px; }
    .bz-prof-logout span { display: none; }
    .bz-prof-logout svg { width: 16px; height: 16px; }
}
@media (max-width: 380px) {
    .bz-prof-hero { padding: 12px; gap: 10px; }
    .bz-prof-avatar { width: 44px; height: 44px; font-size: 1.1rem; }
    .bz-prof-info { flex: 1 1 100%; }
    .bz-prof-name { font-size: 1rem; }
    .bz-prof-email { font-size: 0.82rem; }
    .bz-prof-logout-form { margin-left: auto; }
}

/* ===== Drawer logout (mobile menu) ===== */
.bz-drawer-divider {
    height: 1px;
    background: var(--line);
    margin: 8px 16px 4px;
}
.bz-drawer-section {
    color: var(--muted);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin: 14px 16px 4px;
    font-weight: 700;
}
.bz-drawer-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 16px;
    color: var(--ink);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.92rem;
    border-radius: 10px;
    margin: 1px 8px;
    transition: background .15s, color .15s;
}
.bz-drawer-link:hover { background: var(--line); }
.bz-drawer-link svg { width: 18px; height: 18px; flex-shrink: 0; }
.bz-drawer-link span { flex: 1; }
.bz-drawer-link em {
    font-style: normal;
    font-size: 0.9rem;
    opacity: .6;
    transition: transform .15s, opacity .15s;
}
.bz-drawer-link:hover em { transform: translateX(2px); opacity: 1; }

/* Coloured variants for staff/admin quick-jump */
.bz-drawer-link--admin {
    background: linear-gradient(135deg, rgba(107,43,254,.10), rgba(229,0,109,.08));
    color: #6B2BFE;
    border: 1px solid rgba(107,43,254,.18);
}
.bz-drawer-link--admin:hover { background: linear-gradient(135deg, rgba(107,43,254,.18), rgba(229,0,109,.14)); }
.bz-drawer-link--staff {
    background: linear-gradient(135deg, rgba(255,201,61,.18), rgba(232,93,4,.12));
    color: #8B5A00;
    border: 1px solid rgba(255,201,61,.35);
}
.bz-drawer-link--staff:hover { background: linear-gradient(135deg, rgba(255,201,61,.30), rgba(232,93,4,.22)); }

.bz-drawer-logout-form { margin: 0; }
.bz-drawer-logout {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: transparent;
    border: 0;
    color: var(--danger);
    font: 600 0.95rem/1 'Inter', sans-serif;
    cursor: pointer;
    border-radius: 10px;
    transition: background .15s;
    text-align: left;
}
.bz-drawer-logout:hover { background: #FDECEC; }
.bz-drawer-logout svg { width: 18px; height: 18px; flex-shrink: 0; }
.bz-drawer-logout span { flex: 1; }

/* Header logout icon (small button next to wallet) */
.bz-header-logout-form { margin: 0; display: inline-flex; }
.bz-header-logout-form .bz-icon-btn {
    background: transparent;
    border: 0;
    padding: 0;
    cursor: pointer;
}


/* Header logout � hidden on mobile, only desktop */
.bz-header-logout-form { display: none; }
@media (min-width: 720px) {
    .bz-header-logout-form { display: inline-flex; }
}

.bz-header-logout {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 999px;
    background: #FDECEC;
    color: var(--danger);
    border: 1px solid #FAC8C8;
    font-weight: 700;
    font-size: 0.82rem;
    cursor: pointer;
    transition: background .15s, color .15s, border-color .15s, transform .08s;
}
.bz-header-logout:hover { background: var(--danger); color: #fff; border-color: var(--danger); }
.bz-header-logout:active { transform: translateY(1px); }
.bz-header-logout svg { width: 14px; height: 14px; }
.bz-header-logout-lbl { line-height: 1; }


/* Checkout item row thumb � SVG-friendly */
.bz-checkout-thumb {
    width: 56px; height: 42px;
    flex-shrink: 0;
    border-radius: 8px;
    background: #fff;
    border: 1px solid var(--line);
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
    padding: 4px;
    font-weight: 800;
    color: var(--brand-700);
}
.bz-checkout-thumb img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.bz-checkout-thumb .ph { font-size: 1.1rem; }


/* ===== Referrals page ===== */
.bz-ref-hero {
    position: relative;
    background: linear-gradient(135deg, #6B2BFE 0%, #FF4D8D 60%, #FF8A3D 100%);
    color: #fff;
    border-radius: 24px;
    padding: 32px 28px;
    overflow: hidden;
    box-shadow: 0 18px 40px rgba(107,43,254,.25);
}
.bz-ref-hero-bg {
    position: absolute;
    top: -60px; right: -60px;
    width: 240px; height: 240px;
    background: radial-gradient(circle, rgba(255,255,255,.25) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}
.bz-ref-hero-icon {
    width: 56px; height: 56px;
    background: rgba(255,255,255,.18);
    border: 1px solid rgba(255,255,255,.3);
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 14px;
    color: #fff;
    backdrop-filter: blur(8px);
}
.bz-ref-hero-icon svg { width: 28px; height: 28px; }
.bz-ref-hero h1 {
    color: #fff;
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin: 0 0 6px;
}
.bz-ref-hero p {
    color: rgba(255,255,255,.92);
    font-size: 1rem;
    line-height: 1.5;
    max-width: 520px;
    margin: 0;
}

/* Invite link box */
.bz-ref-invite {
    display: flex;
    gap: 10px;
    align-items: stretch;
}
.bz-ref-link-input {
    flex: 1;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    background: var(--bg);
    color: var(--ink-2);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 10px 14px;
    min-width: 0;
}
.bz-ref-invite .bz-btn {
    flex-shrink: 0;
    transition: background .2s, color .2s;
}
.bz-ref-invite .bz-btn svg { width: 16px; height: 16px; }
.bz-ref-invite .bz-btn.is-copied { background: var(--success); }

/* Share via row */
.bz-ref-share {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
}
.bz-ref-share-lbl {
    font-size: 0.82rem;
    color: var(--muted);
    margin-right: 4px;
}
.bz-ref-share-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none;
    transition: transform .12s, opacity .15s;
}
.bz-ref-share-btn:hover { transform: translateY(-1px); opacity: .9; }
.bz-ref-share-btn svg { width: 14px; height: 14px; }

/* Stats row */
.bz-ref-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}
.bz-ref-stat {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 16px;
    text-align: center;
    box-shadow: 0 1px 2px rgba(31,16,80,.04);
}
.bz-ref-stat-num {
    font-size: 1.6rem;
    font-weight: 800;
    background: linear-gradient(135deg, #6B2BFE 0%, #FF4D8D 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: -0.02em;
    line-height: 1.1;
}
.bz-ref-stat-lbl {
    font-size: 0.74rem;
    color: var(--muted);
    margin-top: 6px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

/* Referrer card */
.bz-ref-referrer {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px;
    background: var(--brand-50);
    border-radius: 12px;
    border: 1px solid var(--brand-200);
}
.bz-ref-referrer-avatar {
    width: 52px; height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6B2BFE 0%, #FF4D8D 100%);
    color: #fff;
    font-size: 1.3rem;
    font-weight: 800;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.bz-ref-referrer-info { flex: 1; min-width: 0; }
.bz-ref-referrer-name { font-weight: 800; color: var(--ink); font-size: 1.02rem; }
.bz-ref-referrer-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
    font-size: 0.82rem;
    color: var(--muted);
    flex-wrap: wrap;
}
.bz-ref-referrer-meta .bz-pill {
    font-size: 0.68rem;
    padding: 2px 8px;
}
.bz-ref-referrer-code {
    margin-top: 6px;
}
.bz-ref-referrer-code code {
    font-family: 'JetBrains Mono', monospace;
    background: #fff;
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--brand-700);
    border: 1px solid var(--brand-200);
}

/* Empty card */
.bz-ref-empty-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px;
    background: var(--bg);
    border: 1px dashed var(--line);
}
.bz-ref-empty-ico {
    width: 48px; height: 48px;
    border-radius: 12px;
    background: #fff;
    border: 1px solid var(--line);
    color: var(--muted);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.bz-ref-empty-ico svg { width: 22px; height: 22px; }
.bz-ref-empty-title { font-weight: 800; color: var(--ink); }
.bz-ref-empty-sub { font-size: 0.88rem; color: var(--muted); margin-top: 2px; }

/* Steps */
.bz-ref-steps {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.bz-ref-step {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 12px;
    border-radius: 12px;
    background: var(--bg);
}
.bz-ref-step-num {
    width: 32px; height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6B2BFE 0%, #FF4D8D 100%);
    color: #fff;
    font-weight: 800;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.bz-ref-step-title { font-weight: 800; color: var(--ink); }
.bz-ref-step-sub { font-size: 0.88rem; color: var(--muted); margin-top: 2px; line-height: 1.45; }

@media (max-width: 640px) {
    .bz-ref-hero { padding: 24px 20px; border-radius: 18px; }
    .bz-ref-hero h1 { font-size: 1.5rem; }
    .bz-ref-hero p { font-size: 0.9rem; }
    .bz-ref-invite { flex-direction: column; }
    .bz-ref-stats { grid-template-columns: 1fr; }
    .bz-ref-stat { padding: 14px; }
}


/* ===== Voucher detail � right info panel ===== */
.bz-vd-info { display: flex; flex-direction: column; gap: 14px; }

.bz-vd-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.74rem;
    font-weight: 700;
    color: var(--brand-700);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}
.bz-vd-eyebrow-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6B2BFE 0%, #FF4D8D 100%);
    box-shadow: 0 0 0 4px rgba(107,43,254,.18);
}

/* Type pill (Gift Card / Min Bill) on voucher detail */
.bz-vd-type-pill {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 5px 12px;
    border-radius: 999px;
    margin-top: -6px;
}
.bz-vd-type-pill.is-giftcard {
    background: #F4F0FF;
    color: #6B2BFE;
}
.bz-vd-type-pill.is-minbill {
    background: linear-gradient(135deg, #FF8A3D 0%, #E5006D 100%);
    color: #fff;
    box-shadow: 0 4px 12px rgba(229, 0, 109, .25);
}

/* Min-Bill info line on voucher detail */
.bz-vd-billinfo {
    display: flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, rgba(255, 138, 61, .08) 0%, rgba(229, 0, 109, .08) 100%);
    border-left: 3px solid #FF8A3D;
    color: #5A2A00;
    font-size: 0.88rem;
    line-height: 1.45;
    padding: 10px 14px;
    border-radius: 6px;
}
.bz-vd-billinfo strong { color: #B45309; }

.bz-vd-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 2.1rem;
    font-weight: 700;
    color: var(--ink);
    line-height: 1.15;
    letter-spacing: -0.015em;
    margin: 0;
}

.bz-vd-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--muted);
}
.bz-vd-rating {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #F5A524;
    font-weight: 700;
}
.bz-vd-rating span { color: var(--ink); margin-left: 2px; }
.bz-vd-meta-sep { color: #CBD5E1; }
.bz-vd-sold {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--ink-2);
}
.bz-vd-instock {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--success);
    font-weight: 700;
}
.bz-vd-stock-dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--success);
    box-shadow: 0 0 0 3px rgba(31,169,113,.18);
}

/* Price card */
.bz-vd-price-card {
    background: linear-gradient(135deg, #FFFFFF 0%, #FAF8FF 100%);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 18px 20px;
    box-shadow: 0 1px 3px rgba(31,16,80,.04);
}
.bz-vd-price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}
.bz-vd-price-lbl {
    font-size: 0.85rem;
    color: var(--muted);
    font-weight: 600;
}
.bz-vd-price-main {
    display: flex;
    align-items: baseline;
    gap: 8px;
}
.bz-vd-price-num {
    font-size: 2.1rem;
    font-weight: 900;
    background: linear-gradient(135deg, #6B2BFE 0%, #FF4D8D 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: -0.02em;
    line-height: 1;
}
.bz-vd-price-was {
    text-decoration: line-through;
    color: var(--muted);
    font-size: 1rem;
    font-weight: 600;
}
.bz-vd-price-sub {
    font-weight: 800;
    color: var(--ink);
    font-size: 1.05rem;
}
.bz-vd-price-divider {
    height: 1px;
    background: var(--line);
    margin: 12px 0;
}
.bz-vd-price-save {
    margin-top: 12px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: linear-gradient(135deg, #FFF4D9 0%, #FFE2B6 100%);
    border: 1px solid #F5D38A;
    color: #8A5800;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 800;
}

/* Trust strip */
.bz-vd-trust {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}
.bz-vd-trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 10px 12px;
}
.bz-vd-trust-ico {
    width: 32px; height: 32px;
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.bz-vd-trust-ico svg { width: 16px; height: 16px; }
.bz-vd-trust-title {
    font-size: 0.82rem;
    font-weight: 800;
    color: var(--ink);
    line-height: 1.2;
}
.bz-vd-trust-sub {
    font-size: 0.7rem;
    color: var(--muted);
    margin-top: 2px;
    line-height: 1.2;
}

/* Features */
.bz-vd-features {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px 14px;
    background: var(--bg);
    border-radius: 12px;
    border: 1px solid var(--line);
}
.bz-vd-feature {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.88rem;
    color: var(--ink-2);
    line-height: 1.45;
}
.bz-vd-feature strong { color: var(--ink); font-weight: 700; }
.bz-vd-feature-ico {
    width: 22px; height: 22px;
    border-radius: 50%;
    background: #E5F7EE;
    color: var(--success);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    margin-top: 1px;
}
.bz-vd-feature-ico svg { width: 13px; height: 13px; }

/* Actions */
.bz-vd-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.bz-vd-buy {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 16px 20px;
    background: linear-gradient(135deg, #6B2BFE 0%, #4816B5 100%);
    color: #fff;
    border: 0;
    border-radius: 14px;
    cursor: pointer;
    box-shadow: 0 12px 30px rgba(107,43,254,.30);
    transition: transform .12s, box-shadow .15s;
}
.bz-vd-buy:hover { transform: translateY(-1px); box-shadow: 0 16px 36px rgba(107,43,254,.36); }
.bz-vd-buy:active { transform: translateY(0); }
.bz-vd-buy-text { display: flex; flex-direction: column; align-items: flex-start; }
.bz-vd-buy-label { font-size: 1.05rem; font-weight: 800; line-height: 1.1; }
.bz-vd-buy-sub { font-size: 0.74rem; opacity: 0.85; margin-top: 2px; }
.bz-vd-buy-arrow { width: 22px; height: 22px; flex-shrink: 0; transition: transform .12s; }
.bz-vd-buy:hover .bz-vd-buy-arrow { transform: translateX(3px); }

.bz-vd-gift {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 20px;
    background: #fff;
    border: 1.5px solid var(--brand-200);
    color: var(--brand-700);
    border-radius: 14px;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    transition: border-color .15s, background .15s;
}
.bz-vd-gift:hover { background: var(--brand-50); border-color: var(--brand-400); }
.bz-vd-gift svg { width: 16px; height: 16px; }

/* About */
.bz-vd-about {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 16px 18px;
}
.bz-vd-about-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--ink);
    margin: 0 0 8px;
}
.bz-vd-about-title svg { width: 16px; height: 16px; color: var(--brand-600); }
.bz-vd-about-body {
    font-size: 0.9rem;
    color: var(--ink-2);
    line-height: 1.6;
    margin: 0;
}

@media (max-width: 640px) {
    .bz-vd-title { font-size: 1.6rem; }
    .bz-vd-price-num { font-size: 1.7rem; }
    .bz-vd-trust { grid-template-columns: 1fr; }
    .bz-vd-trust-item { padding: 8px 10px; }
}


/* ===== Gift mode banner (checkout) ===== */
.bz-gift-banner {
    display: flex;
    align-items: center;
    gap: 14px;
    background: linear-gradient(135deg, #FFE3EE 0%, #F4F0FF 100%);
    border: 1px solid #FFC9DC;
    border-radius: 14px;
    padding: 14px 18px;
    margin: 14px 0 18px;
}
.bz-gift-banner-ico {
    width: 44px; height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, #FF4D8D 0%, #E5006D 100%);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 6px 16px rgba(229,0,109,.25);
}
.bz-gift-banner-ico svg { width: 22px; height: 22px; }
.bz-gift-banner-title { font-weight: 800; color: var(--ink); font-size: 0.98rem; }
.bz-gift-banner-sub { font-size: 0.85rem; color: var(--ink-2); margin-top: 2px; }


/* ===== Wallet topup page ===== */
.bz-topup-quick {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
    margin-bottom: 16px;
}
.bz-topup-quick-btn {
    background: #fff;
    border: 1.5px solid var(--line);
    border-radius: 12px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    transition: border-color .15s, background .15s, transform .08s;
    font-family: inherit;
}
.bz-topup-quick-btn:hover {
    border-color: var(--brand-400);
    background: var(--brand-50);
    transform: translateY(-1px);
}
.bz-topup-quick-amt {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--ink);
}
.bz-topup-quick-bonus {
    font-size: 0.72rem;
    color: var(--success);
    font-weight: 700;
}
.bz-topup-bonus-preview {
    background: #E5F7EE;
    color: #166C49;
    border: 1px solid #BFE8D2;
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 0.88rem;
    margin-top: 8px;
    text-align: center;
}

/* ===== Infinite-scroll sentinel (my vouchers, wallet txns, etc.) ===== */
.bz-mv-sentinel {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 0;
    min-height: 60px;
    color: var(--muted);
}
.bz-mv-spinner {
    width: 28px;
    height: 28px;
    animation: bz-spin 1s linear infinite;
    color: var(--brand-500);
}
.bz-mv-spinner svg {
    width: 100%;
    height: 100%;
}
@keyframes bz-spin {
    to { transform: rotate(360deg); }
}
.bz-mv-fallback {
    margin-top: 18px;
    display: flex;
    justify-content: center;
}

/* ===== Toast notifications ===== */
.bz-toast-wrap { position: fixed; top: 14px; left: 50%; transform: translateX(-50%); z-index: 9999; display: flex; flex-direction: column; gap: 8px; pointer-events: none; max-width: calc(100vw - 28px); }
.bz-toast { display: inline-flex; align-items: center; gap: 10px; background: #1A1033; color: #fff; padding: 12px 16px; border-radius: 12px; font-size: 0.9rem; font-weight: 600; box-shadow: 0 10px 30px rgba(0,0,0,0.25); pointer-events: auto; opacity: 0; transform: translateY(-12px); transition: opacity .25s ease, transform .25s ease; max-width: 480px; line-height: 1.4; }
.bz-toast.is-in { opacity: 1; transform: translateY(0); }
.bz-toast.is-out { opacity: 0; transform: translateY(-12px); }
.bz-toast-error { background: linear-gradient(135deg, #B91C1C, #7F1D1D); }
.bz-toast-warn { background: linear-gradient(135deg, #B45309, #78350F); }
.bz-toast-success { background: linear-gradient(135deg, #047857, #064E3B); }
.bz-toast-icon { font-size: 1rem; line-height: 1; }
.bz-mv-bal,.bz-mvshow-stats{display:none !important;}

/* ===== Category quicklinks (used on /brands/category/* pages) ===== */
.bz-cat-quicklinks {
    display: flex; gap: 8px;
    overflow-x: auto; -webkit-overflow-scrolling: touch;
    padding: 8px 0 18px; margin-bottom: 18px;
    border-bottom: 1px solid var(--line);
    scrollbar-width: thin;
}
.bz-cat-quicklinks::-webkit-scrollbar { height: 4px; }
.bz-cat-quicklinks a {
    flex-shrink: 0;
    padding: 8px 16px;
    border-radius: 999px;
    background: var(--bg);
    color: var(--ink-2);
    font-size: 0.88rem; font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: background .15s, color .15s, border-color .15s;
    border: 1px solid transparent;
}
.bz-cat-quicklinks a:hover {
    background: var(--brand-50); color: var(--brand-700);
}
.bz-cat-quicklinks a.active {
    background: var(--brand-700); color: #fff;
    border-color: var(--brand-700);
}

/* ===== Empty state (used on category pages with no brands) ===== */
.bz-empty-state {
    background: #fff;
    border: 2px dashed var(--line);
    border-radius: var(--radius-lg);
    padding: 64px 24px;
    text-align: center;
    color: var(--ink-2);
    margin: 24px 0 64px;
}
.bz-empty-state-icon {
    display: inline-flex;
    width: 72px; height: 72px;
    border-radius: 50%;
    background: var(--brand-50);
    color: var(--brand-500);
    align-items: center; justify-content: center;
    margin-bottom: 18px;
}
.bz-empty-state h3 {
    font-size: 1.1rem; font-weight: 700; color: var(--ink);
    margin: 0 0 8px;
}
.bz-empty-state p {
    color: var(--muted); max-width: 460px; margin: 0 auto;
    font-size: 0.95rem;
}
.bz-empty-state a {
    color: var(--brand-700); font-weight: 600;
}/* ===== Back link (shown at top-left of every page except homepage) ===== */
/* Body is now white across all public-site pages, so the back button
   uses ink-black text with a soft purple hover wash (instead of the
   white-on-gradient look it had before). */
.bz-back-btn,
a.bz-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0 0 10px;
    padding: 4px 8px;
    background: transparent;
    border: 0;
    border-radius: 8px;
    color: #1F1057;          /* ink / brand-deep-purple so it reads on white */
    text-decoration: none !important;
    font: 600 0.88rem/1 'Inter', sans-serif;
    cursor: pointer;
    transition: background .15s, color .15s, transform .12s;
}
.bz-back-btn:hover {
    background: rgba(107, 43, 254, 0.10);  /* soft purple wash */
    color: #5B1FE0;
}
.bz-back-btn:active { transform: scale(0.97); }
.bz-back-btn svg { display: block; }
/* Inline variant — placed at top-left of content area inside cards/sections. */
.bz-back-btn-inline {
    margin-top: 0;
    margin-bottom: 12px;
}
@media (max-width: 720px) {
    .bz-back-btn,
    a.bz-back-btn {
        font-size: 0.82rem;
        padding: 5px 8px;
    }
}

/* ===== Error pages (e.g. 400 / 401 / 403 returned from controllers) ===== */
.bz-error-page {
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 16px;
    background: var(--bg, #f6f5fb);
}
.bz-error-card {
    max-width: 560px;
    width: 100%;
    background: #fff;
    border: 1px solid var(--line, #E6E2F1);
    border-radius: 18px;
    padding: 36px 32px;
    box-shadow: 0 10px 30px rgba(31, 16, 87, 0.06);
    text-align: center;
}
.bz-error-code {
    font: 800 3.2rem/1 'Playfair Display', Georgia, serif;
    background: linear-gradient(135deg, #6B2BFE 0%, #E5006D 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 14px;
    letter-spacing: -0.02em;
}
.bz-error-title {
    font: 700 1.5rem/1.3 'Inter', sans-serif;
    color: var(--ink, #1F1057);
    margin: 0 0 12px;
}
.bz-error-lead {
    color: var(--muted, #5C5470);
    font-size: 1rem;
    line-height: 1.6;
    margin: 0 0 24px;
}
.bz-error-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 20px;
}
.bz-error-actions svg {
    width: 16px;
    height: 16px;
}
.bz-error-hint {
    font-size: 0.85rem;
    color: var(--muted, #5C5470);
    background: var(--brand-50, #f3effc);
    border-radius: 10px;
    padding: 12px 14px;
    text-align: left;
    line-height: 1.55;
}
.bz-error-hint code {
    background: rgba(107, 43, 254, 0.08);
    color: #5B1FE0;
    padding: 1px 6px;
    border-radius: 4px;
    font-size: 0.85em;
}
@media (max-width: 520px) {
    .bz-error-card { padding: 28px 20px; border-radius: 14px; }
    .bz-error-code { font-size: 2.6rem; }
    .bz-error-title { font-size: 1.25rem; }
}

/* ===== Admin dashboard (2026-09-28) =====
   Period pills, custom date range, KPI cards, charts, top brands. */

.bz-dash-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 22px;
}

.bz-dash-head h1 { margin-bottom: 2px; }

.bz-dash-period-form {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

.bz-dash-pills {
    display: inline-flex;
    gap: 4px;
    background: #fff;
    padding: 4px;
    border: 1px solid var(--line);
    border-radius: 999px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}

.bz-dash-pill {
    appearance: none;
    background: transparent;
    border: 0;
    color: var(--muted);
    font-weight: 600;
    font-size: 0.82rem;
    padding: 7px 14px;
    border-radius: 999px;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
    white-space: nowrap;
}
.bz-dash-pill:hover { color: var(--ink); background: rgba(107,43,254,0.06); }
.bz-dash-pill.is-active {
    background: linear-gradient(135deg, #6B2BFE, #4F1FCC);
    color: #fff;
    box-shadow: 0 2px 8px rgba(107,43,254,0.35);
}
.bz-dash-pill:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.bz-dash-custom {
    display: none;
    align-items: center;
    gap: 10px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 8px 12px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}
.bz-dash-custom.is-visible { display: inline-flex; flex-wrap: wrap; }
.bz-dash-date-lbl {
    display: inline-flex;
    flex-direction: column;
    gap: 2px;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.bz-dash-date-lbl .bz-input-sm { padding: 6px 8px; font-size: 0.85rem; }

/* ===== KPI card accents ===== */
.bz-stat-card--accent {
    background: linear-gradient(135deg, rgba(107,43,254,0.10), rgba(255,77,141,0.06));
    border-color: rgba(107,43,254,0.18);
}
.bz-stat-card--accent .lbl { color: var(--accent); }
.bz-stat-card--gold {
    background: linear-gradient(135deg, rgba(255,138,61,0.10), rgba(255,209,102,0.05));
    border-color: rgba(255,138,61,0.22);
}
.bz-stat-card--gold .lbl { color: #B45309; }

/* Spacing between the two KPI rows */
.bz-dash-today { margin-top: 14px; }

/* ===== Charts row ===== */
.bz-dash-charts {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin-top: 20px;
}
.bz-dash-chart-card { padding: 18px 18px 14px; }
.bz-dash-chart-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
}
.bz-dash-chart-head h3 { margin: 0; font-size: 1rem; }
.bz-dash-chart-sub { font-size: 0.76rem; }
.bz-dash-chart-wrap {
    position: relative;
    width: 100%;
    height: 220px;
}

/* ===== Top brands ===== */
.bz-dash-topbrands { padding: 18px 20px; }
.bz-dash-brandlist {
    list-style: none;
    margin: 12px 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.bz-dash-brandrow {
    display: grid;
    grid-template-columns: 30px 1fr;
    align-items: center;
    gap: 14px;
}
.bz-dash-brandrank {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(107,43,254,0.10);
    color: var(--accent);
    font-weight: 800;
    font-size: 0.8rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.bz-dash-brandmain { min-width: 0; }
.bz-dash-brandtop {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 5px;
}
.bz-dash-brandname {
    font-weight: 600;
    color: var(--ink);
    text-decoration: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.bz-dash-brandname:hover { color: var(--accent); }
.bz-dash-brandval {
    font-weight: 800;
    color: var(--ink);
    font-size: 0.95rem;
    flex-shrink: 0;
}
.bz-dash-brandbar {
    width: 100%;
    height: 6px;
    background: rgba(107,43,254,0.08);
    border-radius: 999px;
    overflow: hidden;
}
.bz-dash-brandfill {
    height: 100%;
    background: linear-gradient(90deg, #6B2BFE, #FF4D8D);
    border-radius: 999px;
    transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.bz-dash-brandmeta {
    display: flex;
    gap: 6px;
    margin-top: 4px;
    font-size: 0.78rem;
    color: var(--ink-2);
}

/* ===== Recent orders: horizontal scroll on narrow screens ===== */
.bz-table-wrap { overflow-x: auto; }

/* ===== "Duo" rows — Top brands + Recent orders on the same row, then
       Latest customers + Latest staff on a second row. Each card takes
       50% on desktop, 100% on mobile. ===== */
.bz-dash-duo {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin-top: 20px;
}
.bz-dash-duo--secondary { margin-top: 18px; }
.bz-dash-recent {
    padding: 18px 20px;
}
.bz-dash-recent h3 { margin: 0; font-size: 1rem; }
.bz-dash-recent .bz-table { margin-top: 12px; }

/* "View all" link in card headers — matches the chart-head subtitle style */
.bz-dash-chart-link {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--accent);
    text-decoration: none;
}
.bz-dash-chart-link:hover { text-decoration: underline; }
.bz-dash-chart-sub {
    display: block;
    font-size: 0.76rem;
    margin-top: -2px;
    margin-bottom: 4px;
}

/* ===== Responsive ===== */
@media (max-width: 1080px) {
    .bz-dash-charts { grid-template-columns: 1fr; }
    .bz-dash-duo { grid-template-columns: 1fr; }
}
@media (max-width: 880px) {
    .bz-dash-head { align-items: flex-start; }
    .bz-dash-period-form { align-items: flex-start; width: 100%; }
    .bz-dash-pills { width: 100%; overflow-x: auto; flex-wrap: nowrap; }
    .bz-dash-custom.is-visible { width: 100%; }
}
@media (max-width: 520px) {
    .bz-stat-card .val { font-size: 1.25rem; }
    .bz-dash-pill { padding: 6px 10px; font-size: 0.76rem; }
    .bz-dash-chart-wrap { height: 180px; }
}

/* ===== Dashboard export button group (CSV / PDF) ===== */
.bz-dash-actions {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    flex-wrap: wrap;
}
.bz-export-group {
    display: inline-flex;
    gap: 6px;
}
.bz-export-group .bz-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
@media (max-width: 880px) {
    .bz-dash-actions { flex-direction: column; align-items: stretch; }
}
