/* ============================================================
   Shop — storefront, product page, cart page, checkout.
   Built on the Midnight Bazaar tokens; nothing here affects the
   payment result or admin pages except the shared top nav.
   ============================================================ */

/* --- Top nav (inside the site header) --- */
.topnav { display: flex; align-items: center; gap: 14px; }
.nav-link {
    color: var(--color-text-muted);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
}
.nav-link:hover { color: var(--color-text); }
.nav-link.active { color: var(--color-brand); }
.cart-link { position: relative; }
.cart-count {
    display: inline-block;
    min-width: 20px;
    padding: 2px 6px;
    margin-left: 2px;
    text-align: center;
    font-size: 11px;
    font-weight: 800;
    color: var(--color-text-inverse);
    background: var(--color-brand);
    border-radius: var(--radius-pill);
}
@media (max-width: 480px) {
    .topnav { gap: 10px; }
    .secure-badge { display: none; }
}

/* --- Compact shop top: products first. The brand statement now
       lives in the closing section below the grid, not at the top. --- */
.shop-top { margin-bottom: 18px; }
.shop-top h1, .shop-top .shop-title { font-size: 26px; text-align: left; margin-bottom: 4px; }
.shop-sub { color: var(--color-text-muted); margin: 0 0 16px; line-height: 1.5; }
.shop-count { color: var(--color-text-faint); font-size: 13px; margin: 12px 0 0; }

/* --- Brand closing section: the old hero, relocated below the products. --- */
.brand-close { text-align: center; margin: 44px 0 0; padding: 32px 16px 0; border-top: 1px solid var(--color-border); }
.brand-close h2, .brand-close h1 { font-size: 28px; margin: 0 0 10px; line-height: 1.2; }
.brand-close .hero-sub { margin: 0 auto 16px; }
.brand-close .hero-coins { justify-content: center; margin-bottom: 8px; }
@media (max-width: 640px) {
    .brand-close h2, .brand-close h1 { font-size: 24px; }
    .shop-top h1, .shop-top .shop-title { font-size: 22px; }
}

/* --- Search + category chips --- */
.shop-search { display: flex; gap: var(--space-2); margin: 0 0 14px; }
.shop-search input[type="search"] {
    flex: 1;
    padding: 11px 14px;
    font-size: var(--font-size-base);
    font-family: inherit;
    border-radius: var(--radius-md);
    border: 1.5px solid var(--color-border-strong);
    background: var(--color-surface);
    color: var(--color-text);
    outline: none;
}
.shop-search input[type="search"]:focus { border-color: var(--color-brand); box-shadow: 0 0 0 4px var(--color-brand-soft); }
.catchips { display: flex; gap: var(--space-2); flex-wrap: wrap; margin-bottom: 18px; }
.catchip {
    padding: 7px 14px;
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text-muted);
    background: var(--color-surface-muted);
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-pill);
    text-decoration: none;
}
.catchip:hover { color: var(--color-text); border-color: var(--color-text); }
.catchip.active { background: var(--color-brand); border-color: var(--color-brand); color: var(--color-text-inverse); }

/* --- Product grid + cards --- */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 14px;
    text-align: left;
}
/* Two-up variant (checkout stablecoin choice). */
.coin-grid-two { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 921px) {
    /* Full desktop width: as many product columns as fit, so the
       grid fills the screen instead of leaving empty sides. */
    .product-grid { grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); }
}
.product-card {
    position: relative;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 18px;
    overflow: hidden;
    transition: transform 0.15s ease, border-color 0.15s ease;
}
.product-card:hover { transform: translateY(-3px); border-color: var(--color-border-strong); }
.product-card a.card-link { text-decoration: none; color: inherit; display: block; }
.product-art { position: relative; }
.product-art svg { width: 100%; height: auto; display: block; }
.product-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--color-text-inverse);
    background: var(--color-brand);
    border-radius: var(--radius-pill);
}
.product-info { padding: 12px 14px 14px; }
.product-foot { padding-top: 0; }
.product-info h3 { margin: 0 0 4px; font-size: 15px; font-weight: 700; line-height: 1.35; }
.product-tagline { margin: 0 0 10px; font-size: 13px; color: var(--color-text-muted); line-height: 1.45; }
.product-price-row { display: flex; align-items: baseline; gap: 8px; margin-bottom: 10px; }
.product-price { font-size: 18px; font-weight: 800; }
.product-old { font-size: 13px; color: var(--color-text-faint); text-decoration: line-through; }
.product-stock { font-size: 12px; font-weight: 600; margin-bottom: 10px; }
.product-stock.low { color: var(--color-warning); }
.product-stock.out { color: var(--color-danger); }
.add-btn {
    width: 100%;
    padding: 10px;
    font-size: 14px;
    font-weight: 700;
    font-family: inherit;
    color: var(--color-text-inverse);
    background: var(--color-brand);
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
}
.add-btn:hover { filter: brightness(1.05); }
.add-btn:disabled { opacity: 0.5; cursor: default; }
.empty-shop { text-align: center; padding: 30px 10px; }

/* --- Product detail --- */
.product-detail {
    display: grid;
    gap: 20px;
    text-align: left;
}
@media (min-width: 720px) {
    .product-detail { grid-template-columns: 1fr 1fr; align-items: start; max-width: 1440px; margin-left: auto; margin-right: auto; }
}
.product-detail .product-art { border-radius: 18px; overflow: hidden; border: 1px solid var(--color-border); }
.product-detail .product-art svg { height: 100%; }
.product-detail h1 { font-size: 26px; }
.product-detail .product-price { font-size: 26px; }
.product-meta { color: var(--color-text-muted); font-size: 14px; margin: 0 0 6px; }
.product-desc { color: var(--color-text-muted); line-height: 1.6; margin: 12px 0 16px; }
.qty-row { display: flex; gap: var(--space-2); margin: 14px 0; }
.qty-row input[type="number"] { width: 76px; text-align: center; }
.qty-row .add-btn, .qty-row .paybtn { flex: 1; margin: 0; }
.related-title { margin: 26px 0 12px; font-size: 18px; text-align: left; }

/* --- Cart page --- */
.cart-line {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--color-border);
    text-align: left;
}
.cart-thumb { width: 64px; height: 48px; flex: none; border-radius: 10px; overflow: hidden; }
.cart-thumb svg { width: 100%; height: 100%; display: block; }
.cart-line-info { flex: 1; min-width: 0; }
.cart-line-info strong { display: block; font-size: 14px; line-height: 1.35; }
.cart-line-info span { font-size: 13px; color: var(--color-text-muted); }
.cart-qty { display: flex; align-items: center; gap: 6px; }
.cart-qty button {
    width: 28px;
    height: 28px;
    font-size: 16px;
    font-weight: 700;
    font-family: inherit;
    color: var(--color-text);
    background: var(--color-surface-muted);
    border: 1.5px solid var(--color-border);
    border-radius: 8px;
    cursor: pointer;
}
.cart-qty input { width: 44px; text-align: center; padding: 6px 4px; }
.cart-line-total { font-weight: 800; white-space: nowrap; }
.cart-remove {
    background: none;
    border: none;
    color: var(--color-text-faint);
    font-size: 13px;
    font-family: inherit;
    cursor: pointer;
    padding: 4px 0;
}
.cart-remove:hover { color: var(--color-danger); }
.cart-total-row {
    display: flex;
    justify-content: space-between;
    font-size: 18px;
    font-weight: 800;
    padding: 14px 0 4px;
}

/* --- Checkout order lines --- */
.order-lines { text-align: left; margin: 12px 0; }
.order-line {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid var(--color-border);
    font-size: 14px;
}
.order-line span:first-child { color: var(--color-text-muted); }
.order-line strong { white-space: nowrap; }
.order-total {
    display: flex;
    justify-content: space-between;
    padding: 12px 0 0;
    font-size: 18px;
    font-weight: 800;
}
.stable-note { font-size: 13px; color: var(--color-text-muted); line-height: 1.5; }

/* --- Footer links + policy pages --- */
.footer-links {
    display: flex;
    gap: 6px 16px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 10px;
}
.footer-links a {
    color: var(--color-text-muted);
    text-decoration: none;
    font-size: 13px;
}
.footer-links a:hover { color: var(--color-brand); }
.policy h2 { margin: 22px 0 6px; font-size: 17px; text-align: left; }
.policy p, .policy li { color: var(--color-text-muted); line-height: 1.65; text-align: left; }
.policy ul { margin: 6px 0 0; padding-left: 20px; }

/* --- Toast --- */
#toast {
    position: fixed;
    left: 50%;
    bottom: 24px;
    z-index: 95;
    transform: translate(-50%, 20px);
    padding: 11px 20px;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    background: #1e2329;
    border: 1px solid var(--color-brand);
    border-radius: var(--radius-pill);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
}
#toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (prefers-reduced-motion: reduce) {
    .product-card, .add-btn { transition: none; }
}

/* ============================================================
   Midnight Bazaar 2.0 — shop layer (2026-11-01): cards with
   real depth and a gold edge on hover, a sheen sweep across
   covers, gold prices, gradient buttons and chips, and a
   sticky action dock on the cart page (phones).
   ============================================================ */

.product-grid { gap: 16px; }

/* Card: layered glass tint + soft resting shadow. */
.product-card {
    border-radius: 20px;
    background: var(--glass-tint), var(--color-surface);
    box-shadow: var(--shadow-card-soft);
    transition: transform var(--dur) var(--ease-out), border-color var(--dur) ease, box-shadow var(--dur) ease;
}
/* Cover sheen: a light sweep that crosses on hover. */
.product-art { overflow: hidden; }
.product-art::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(115deg, transparent 32%, rgba(255, 255, 255, 0.13) 48%, transparent 64%);
    background-size: 260% 100%;
    background-position: 130% 0;
    transition: background-position 0.7s ease;
    pointer-events: none;
}
.product-art svg { transition: transform 0.5s var(--ease-out); }
@media (hover: hover) {
    .product-card:hover {
        transform: translateY(-5px);
        border-color: var(--color-gold-line);
        box-shadow: var(--shadow-card-hover);
    }
    .product-card:hover .product-art::after { background-position: -30% 0; }
    .product-card:hover .product-art svg { transform: scale(1.04); }
}

/* Price wears gold — the number a buyer looks for first. */
.product-price { font-size: 19px; color: var(--color-brand); letter-spacing: -0.01em; }
.product-info h3 { letter-spacing: -0.01em; }

/* Badge + add button: the diagonal gold melt, with lift. */
.product-badge { background: var(--color-brand-grad-135); box-shadow: 0 4px 12px rgba(240, 185, 11, 0.35); }
.add-btn {
    background: var(--color-brand-grad-135);
    box-shadow: 0 6px 16px rgba(240, 185, 11, 0.22);
    transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) ease, filter 0.15s ease;
}
@media (hover: hover) {
    .add-btn:hover { transform: translateY(-1px); box-shadow: 0 10px 22px rgba(240, 185, 11, 0.32); filter: none; }
}
.add-btn:active { transform: scale(0.98); }

/* Category chips: active chip glows; hover warms toward gold. */
.catchip { transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease; }
.catchip:hover { border-color: var(--color-gold-line); }
.catchip.active { background: var(--color-brand-grad-135); border-color: transparent; box-shadow: 0 6px 16px rgba(240, 185, 11, 0.28); }

/* Search: faint glass over the surface. */
.shop-search input[type="search"] { background: var(--glass-tint), var(--color-surface); }

/* Closing brand section: a short gold rule under the headline. */
.brand-close h2::after, .brand-close h1::after {
    content: "";
    display: block;
    width: 54px;
    height: 3px;
    margin: 14px auto 0;
    border-radius: var(--radius-pill);
    background: var(--color-brand-grad-135);
}

/* Cart page: on phones the actions dock to the bottom of the
   screen (frosted glass) so Checkout is always in thumb reach
   while the items scroll above it. */
@media (max-width: 640px) {
    #cartActions {
        position: sticky;
        bottom: calc(10px + env(safe-area-inset-bottom, 0px));
        z-index: 30;
        padding: 12px 12px 4px;
        background: var(--color-surface);
        border: 1px solid var(--color-border);
        border-radius: 18px;
        box-shadow: 0 14px 34px rgba(0, 0, 0, 0.25);
    }
}

/* Motion off means off — including every 2.0 transition. */
@media (prefers-reduced-motion: reduce) {
    .product-card, .add-btn, .catchip, .product-art svg, .product-art::after { transition: none; }
}

/* --- Quick-fix batch (2026-11-01, from the live-store review) --- */
/* Struck-through "was" prices: bigger and brighter so the saving reads. */
.product-old { font-size: 15px; font-weight: 600; color: #ccd5e3; }

/* Product page: Buy Now (gold .paybtn) leads; Add to Cart steps
   back to a quiet secondary so the two actions aren't twins.
   Grid cards keep their gold Add button — this scopes to the
   detail page's quantity row only. */
.product-detail .qty-row .add-btn {
    background: var(--glass-tint), var(--color-surface-muted);
    color: var(--color-text);
    border: 1.5px solid var(--color-border-strong);
    box-shadow: none;
}
@media (hover: hover) {
    .product-detail .qty-row .add-btn:hover { border-color: var(--color-text); box-shadow: none; }
}

/* --- Round 3 (2026-11-01, digital-store review): save pills,
   what-you-receive box, agreement row, bigger cart steppers,
   savings line, calmer policy text. --- */
.save-pill {
    padding: 3px 9px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.03em;
    color: var(--color-success);
    background: var(--color-success-bg);
    border-radius: var(--radius-pill);
    white-space: nowrap;
}
.receive-box {
    margin: 14px 0;
    padding: 14px 16px;
    text-align: left;
    background: var(--glass-tint), var(--color-surface-muted);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
}
.receive-box strong { display: block; margin-bottom: 6px; }
.receive-box ul { margin: 0; padding-left: 18px; color: var(--color-text-muted); line-height: 1.6; font-size: 14px; }
.agree-row { text-align: left; font-size: 14px; color: var(--color-text-muted); line-height: 1.5; }
.agree-row input { accent-color: var(--color-brand); width: 16px; height: 16px; vertical-align: -2px; }
.cart-qty button { width: 36px; height: 36px; font-size: 18px; }
.cart-save-row { text-align: right; font-weight: 700; color: var(--color-success); padding: 2px 0 0; }
.line-old, .cart-line-info s { color: var(--color-text-faint); font-weight: 500; }
.note-error { color: var(--color-danger); font-weight: 600; }
.policy p, .policy li { font-size: 15px; color: #c3ccd9; }

/* ============================================================
   IVORY LIGHT — shop layer: white cards on ivory, gold-dark
   prices, a white toast and a white mobile cart dock.
   ============================================================ */
.nav-link.active { color: var(--color-brand-text); }
.product-price { color: var(--color-brand-text); }
.product-old { color: #76705f; }
.policy p, .policy li { color: #44403c; }

@media (max-width: 640px) {
    #cartActions {
        background: rgba(255, 255, 255, 0.94);
        box-shadow: 0 14px 34px rgba(0, 0, 0, 0.20);
    }
}

/* ============================================================
   CART & CHECKOUT UX (2026-11-01): the pattern modern stores
   use — adding a product opens a slide-out mini cart with a
   Checkout button, a persistent cart bar keeps the total and
   Checkout within thumb reach while browsing, and both the
   cart and checkout pages carry a 3-step progress indicator.
   ============================================================ */

/* Header badge: a small pop when the count changes. */
@keyframes cartBadgePop {
    0% { transform: scale(1); }
    45% { transform: scale(1.45); }
    100% { transform: scale(1); }
}
.cart-count.pop { animation: cartBadgePop 0.35s ease; }

/* --- 3-step progress (cart + checkout pages) --- */
.checkout-steps {
    display: flex;
    gap: 8px;
    list-style: none;
    margin: 14px 0 20px;
    padding: 0;
    text-align: left;
}
.checkout-steps li {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 9px 6px;
    font-size: 12.5px;
    font-weight: 700;
    color: var(--color-text-muted);
    background: var(--color-surface-muted);
    border-radius: var(--radius-pill);
    white-space: nowrap;
}
.checkout-steps li span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    flex: none;
    font-size: 11px;
    font-weight: 800;
    color: var(--color-text);
    background: var(--color-surface);
    border: 1px solid var(--color-border-strong);
    border-radius: 50%;
}
.checkout-steps li.is-current {
    color: var(--color-text-inverse);
    background: var(--color-brand-grad-135);
}
.checkout-steps li.is-current span { border-color: transparent; }
/* A passed step is NOT a success state (owner report,
   2026-11-18: the green check on Cart read as "completed"
   and confused customers) — it wears the same gold family
   as the current step, only quieter. Green stays reserved
   for real success (paid / delivered). */
.checkout-steps li.is-done { color: var(--color-text); }
.checkout-steps li.is-done span { color: var(--color-brand); border-color: rgba(240, 185, 11, 0.45); background: rgba(240, 185, 11, 0.08); }
@media (max-width: 480px) {
    .checkout-steps li { font-size: 11.5px; gap: 5px; }
}

/* --- Persistent cart bar (browsing pages, cart not empty) --- */
.cart-bar {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 60;
    display: flex;
    align-items: stretch;
    gap: 8px;
    padding: 8px;
    background: var(--color-surface);
    border: 1px solid var(--color-border-strong);
    border-radius: 18px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
}
.cart-bar[hidden] { display: none !important; }
.cart-bar-main {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 1px;
    padding: 4px 10px;
    font-family: inherit;
    text-align: left;
    background: none;
    border: none;
    cursor: pointer;
}
.cart-bar-label { font-size: 14px; font-weight: 800; color: var(--color-text); }
.cart-bar-meta { font-size: 12.5px; font-weight: 600; color: var(--color-text-muted); }
.cart-bar-checkout {
    display: flex;
    align-items: center;
    padding: 12px 18px;
    font-size: 14.5px;
    font-weight: 800;
    color: var(--color-text-inverse);
    background: var(--color-brand-grad-135);
    border-radius: 12px;
    text-decoration: none;
    white-space: nowrap;
}
@media (max-width: 640px) {
    .cart-bar { left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); }
    .cart-bar-main { flex: 1; }
}
body.has-cart-bar { padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }
body.cart-drawer-open { overflow: hidden; }

/* --- Slide-out mini cart --- */
.cart-scrim {
    position: fixed;
    inset: 0;
    z-index: 80;
    background: rgba(28, 25, 23, 0.45);
    opacity: 0;
    transition: opacity 0.25s ease;
}
.cart-scrim.open { opacity: 1; }
.cart-scrim[hidden] { display: none !important; }
.mini-cart {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 90;
    display: flex;
    flex-direction: column;
    width: min(430px, 94vw);
    height: 100dvh;
    background: var(--color-surface);
    box-shadow: -18px 0 44px rgba(0, 0, 0, 0.30);
    transform: translateX(105%);
    transition: transform 0.28s var(--ease-out);
    text-align: left;
}
.mini-cart.open { transform: translateX(0); }
.mini-cart[hidden] { display: none !important; }
.mini-cart-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 18px 8px;
}
.mini-cart-head h2 { margin: 0; font-size: 20px; }
.mini-cart-eyebrow {
    margin: 0 0 2px;
    font-size: var(--font-size-xs);
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-success);
}
.mini-cart-close {
    width: 38px;
    height: 38px;
    flex: none;
    font-size: 22px;
    line-height: 1;
    font-family: inherit;
    color: var(--color-text);
    background: var(--color-surface-muted);
    border: 1px solid var(--color-border);
    border-radius: 50%;
    cursor: pointer;
}
.mini-steps {
    display: flex;
    gap: 6px;
    list-style: none;
    margin: 6px 18px 10px;
    padding: 0;
}
.mini-steps li {
    flex: 1;
    padding: 6px 4px;
    font-size: 11px;
    font-weight: 700;
    text-align: center;
    color: var(--color-text-faint);
    background: var(--color-surface-muted);
    border-radius: var(--radius-pill);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.mini-steps li.is-current { color: var(--color-text-inverse); background: var(--color-brand-grad-135); }
.mini-cart-items { flex: 1; overflow-y: auto; padding: 4px 18px 10px; }
.mini-cart-loading, .mini-cart-empty { color: var(--color-text-muted); text-align: center; padding: 28px 0; }
.mini-line {
    display: flex;
    gap: 10px;
    padding: 12px 0;
    border-bottom: 1px solid var(--color-border);
}
.mini-thumb { width: 58px; height: 46px; flex: none; border-radius: 10px; overflow: hidden; }
.mini-thumb svg { width: 100%; height: 100%; display: block; }
.mini-line-info { flex: 1; min-width: 0; }
.mini-line-info strong { display: block; font-size: 14px; line-height: 1.35; }
.mini-line-info strong a { color: var(--color-text); text-decoration: none; }
.mini-line-info span { font-size: 13px; color: var(--color-text-muted); }
.mini-line-side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.mini-line-side strong { font-size: 14px; white-space: nowrap; }
.mini-qty button { width: 30px; height: 30px; font-size: 15px; }
.mini-qty input { width: 40px; }
.mini-cart-foot {
    padding: 14px 18px 18px;
    border-top: 1px solid var(--color-border);
    background: var(--color-surface);
}
.mini-cart-foot[hidden] { display: none !important; }
.mini-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 3px 0;
    font-size: 14px;
    color: var(--color-text-muted);
}
.mini-row strong { color: var(--color-text); }
.mini-save, .mini-save strong { color: var(--color-success); }
.mini-checkout { margin-top: 10px; }
.mini-cart-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
}
.mini-cart-actions a { font-weight: 700; text-decoration: none; }
.mini-cart-actions button {
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    color: var(--color-text);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}
.mini-cart-note { margin: 10px 0 0; font-size: 12.5px; line-height: 1.5; color: var(--color-text-faint); }

/* --- Cart page: summary meta rows + a real checkout panel --- */
.cart-meta-row {
    display: flex;
    justify-content: space-between;
    padding: 4px 0;
    font-size: 14px;
    color: var(--color-text-muted);
}
#cartActions {
    margin-top: 16px;
    padding: 16px;
    text-align: center;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 18px;
    box-shadow: var(--shadow-card-soft);
}
.cart-actions-title { margin: 0; font-size: 16px; font-weight: 800; }
.cart-secure-note { margin: 8px 0 0; font-size: 12.5px; line-height: 1.5; color: var(--color-text-muted); }

/* --- Checkout page: section heading, trust line, sticky bar --- */
.checkout-heading { margin: 16px 0 4px; font-size: 16px; text-align: left; }
.checkout-trust { margin: 10px 0 0; font-size: 12.5px; color: var(--color-text-faint); }
.checkout-bar { display: none; }
@media (max-width: 760px) {
    .checkout-bar {
        position: fixed;
        left: 50%;
        bottom: calc(12px + env(safe-area-inset-bottom, 0px));
        transform: translateX(-50%);
        z-index: 55;
        width: min(640px, calc(100% - 24px));
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 10px 12px;
        background: var(--color-surface);
        border: 1px solid var(--color-border-strong);
        border-radius: 18px;
        box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
    }
    .checkout-bar[hidden] { display: none !important; }
    .checkout-bar-total { display: flex; flex-direction: column; align-items: flex-start; }
    .checkout-bar-total span {
        font-size: 11px;
        font-weight: 700;
        letter-spacing: 0.06em;
        text-transform: uppercase;
        color: var(--color-text-faint);
    }
    .checkout-bar-total strong { font-size: 17px; white-space: nowrap; }
    .checkout-bar-btn { flex: 1; width: auto; margin-top: 0; }
    body:has(#checkoutBar:not([hidden])) { padding-bottom: calc(104px + env(safe-area-inset-bottom, 0px)); }
}

@media (prefers-reduced-motion: reduce) {
    .cart-count.pop { animation: none; }
    .cart-scrim, .mini-cart { transition: none; }
}

/* ============================================================
   STOREFRONT ROUND 2 (2026-11-01): icon nav tabs, landing-style
   product cards with admin-selectable style/density, a USP
   strip, a non-blocking "Added" notice (the mini cart no longer
   hijacks every add), a product-page sticky buy bar, recently
   viewed, and cart cross-sell cards.
   ============================================================ */

/* --- Nav tabs with icons --- */
.topnav { gap: 8px; }
.nav-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 13px;
    border: 1px solid transparent;
    border-radius: var(--radius-pill);
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.nav-link:hover { background: var(--color-surface-muted); }
.nav-link.active {
    color: var(--color-brand-text);
    background: var(--color-brand-soft);
    border-color: var(--color-gold-line);
}
.nav-icon { width: 18px; height: 18px; flex: none; }
.secure-badge { display: inline-flex; align-items: center; gap: 5px; }
.badge-icon { width: 13px; height: 13px; }
@media (max-width: 480px) {
    .nav-link { padding: 7px 10px; font-size: 13px; }
    .nav-icon { width: 16px; height: 16px; }
}

/* --- USP strip (homepage) --- */
.usp-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
    align-items: center;
    margin: 0 0 16px;
    padding: 10px 14px;
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text-muted);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 14px;
}
.usp-strip span { display: inline-flex; align-items: center; gap: 6px; }
.usp-strip svg { width: 15px; height: 15px; flex: none; color: var(--color-brand-text); }

/* --- Landing-style product cards --- */
.product-card { display: flex; flex-direction: column; }
.product-card a.card-link { display: flex; flex-direction: column; flex: 1; }
.product-cat-chip {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 4px 9px;
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    background: rgba(10, 8, 4, 0.55);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    border-radius: var(--radius-pill);
}
.card-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.card-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    font-size: 11px;
    font-weight: 700;
    border-radius: var(--radius-pill);
    white-space: nowrap;
}
.card-chip svg { width: 11px; height: 11px; }
.chip-delivery { color: var(--color-brand-text); background: var(--color-brand-soft); }
.chip-stock.ok { color: var(--color-success); background: var(--color-success-bg); }
.chip-stock.low { color: var(--color-warning); background: var(--color-warning-bg); }
.chip-stock.out { color: var(--color-danger); background: rgba(220, 38, 38, 0.09); }
.product-price small { font-size: 12px; font-weight: 700; color: var(--color-text-faint); }
.product-foot { display: flex; align-items: stretch; gap: 8px; margin-top: auto; }
.add-btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; flex: 1; }
.add-btn svg { width: 17px; height: 17px; flex: none; }
.card-qty { display: flex; align-items: center; gap: 4px; }
.card-qty button {
    width: 26px;
    align-self: stretch;
    font-size: 15px;
    font-weight: 700;
    font-family: inherit;
    color: var(--color-text);
    background: var(--color-surface-muted);
    border: 1.5px solid var(--color-border);
    border-radius: 8px;
    cursor: pointer;
}
.card-qty input { width: 36px; text-align: center; padding: 6px 2px; }
.details-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    flex: none;
    color: var(--color-text);
    background: var(--color-surface-muted);
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-md);
    text-decoration: none;
    transition: border-color 0.15s ease, color 0.15s ease;
}
.details-btn svg { width: 18px; height: 18px; }
.details-btn:hover { border-color: var(--color-gold-line); color: var(--color-brand-text); }
@media (max-width: 480px) {
    .card-qty { display: none; }
}

/* Card style + grid density variants (Admin → Settings). */
.product-grid.grid-compact { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
@media (max-width: 640px) {
    .product-grid.grid-compact { grid-template-columns: repeat(auto-fill, minmax(148px, 1fr)); gap: 10px; }
}
.cards-compact .product-info { padding: 10px 12px 12px; }
.cards-compact .product-info h3 { font-size: 14px; }
.cards-compact .product-price { font-size: 17px; }
.cards-compact .product-tagline {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.cards-compact .card-qty { display: none; }
.cards-showcase .product-card { border-radius: 24px; box-shadow: var(--shadow-card); }
.cards-showcase .product-info { padding: 16px 18px 18px; }
.cards-showcase .product-info h3 { font-size: 17px; }
.cards-showcase .product-price { font-size: 22px; }
.cards-showcase .add-btn { padding: 13px; font-size: 15px; }

/* --- "Added" notice: confirmation without blocking the shop --- */
.added-notice {
    position: fixed;
    left: 50%;
    bottom: 96px;
    transform: translate(-50%, 16px);
    z-index: 70;
    display: flex;
    align-items: center;
    gap: 10px;
    width: min(540px, calc(100% - 24px));
    padding: 10px 12px;
    background: var(--color-surface);
    border: 1px solid var(--color-border-strong);
    border-radius: 16px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.30);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
    text-align: left;
}
.added-notice.show { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.added-notice[hidden] { display: none !important; }
.added-thumb { width: 46px; height: 36px; flex: none; border-radius: 8px; overflow: hidden; }
.added-thumb svg { width: 100%; height: 100%; display: block; }
.added-info { flex: 1; min-width: 0; }
.added-info strong { display: block; font-size: 13.5px; }
.added-info span {
    display: block;
    font-size: 12.5px;
    color: var(--color-text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.added-view {
    padding: 8px 12px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 800;
    color: var(--color-text);
    background: var(--color-surface-muted);
    border: 1.5px solid var(--color-border-strong);
    border-radius: var(--radius-pill);
    cursor: pointer;
    white-space: nowrap;
}
.added-checkout {
    padding: 9px 13px;
    font-size: 13px;
    font-weight: 800;
    color: var(--color-text-inverse);
    background: var(--color-brand-grad-135);
    border-radius: var(--radius-pill);
    text-decoration: none;
    white-space: nowrap;
}
.added-close {
    padding: 2px 4px;
    font-size: 18px;
    line-height: 1;
    color: var(--color-text-faint);
    background: none;
    border: none;
    cursor: pointer;
}
@media (max-width: 640px) {
    .added-notice { bottom: 88px; }
}

/* Cart bar label icon. */
.cart-bar-label { display: inline-flex; align-items: center; gap: 6px; }
.cart-bar-label svg { width: 17px; height: 17px; }

/* --- Product page sticky buy bar (phones) --- */
.product-sticky-bar { display: none; }
@media (max-width: 760px) {
    .product-sticky-bar {
        position: fixed;
        left: 12px;
        right: 12px;
        bottom: calc(12px + env(safe-area-inset-bottom, 0px));
        z-index: 40;
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 10px;
        background: var(--color-surface);
        border: 1px solid var(--color-border-strong);
        border-radius: 16px;
        box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
    }
    .psb-price { display: flex; flex-direction: column; line-height: 1.25; white-space: nowrap; }
    .psb-price strong { font-size: 15px; }
    .psb-price s { font-size: 12px; color: var(--color-text-faint); }
    .product-sticky-bar .add-btn { flex: 1; width: auto; }
    .product-sticky-bar .paybtn { flex: 1; width: auto; margin-top: 0; padding: 11px; }
    body.has-cart-bar .product-sticky-bar { display: none; }
    body:has(.product-sticky-bar) .page { padding-bottom: calc(104px + env(safe-area-inset-bottom, 0px)); }
    body.has-cart-bar:has(.product-sticky-bar) .page { padding-bottom: 28px; }
}

/* --- Recently viewed strip --- */
.recent-strip {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 6px;
    text-align: left;
}
.recent-card {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 232px;
    padding: 8px;
    color: var(--color-text);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 14px;
    text-decoration: none;
}
.recent-thumb { width: 54px; height: 42px; flex: none; border-radius: 8px; overflow: hidden; }
.recent-thumb svg { width: 100%; height: 100%; display: block; }
.recent-info strong { display: block; font-size: 13px; line-height: 1.3; }
.recent-info span { font-size: 12.5px; color: var(--color-text-muted); }

/* --- Cart page cross-sell --- */
.cross-sell { margin-top: 30px; text-align: left; }

@media (prefers-reduced-motion: reduce) {
    .added-notice, .nav-link { transition: none; }
}

/* ============================================================
   CARD LAYOUT FIXES (appended layer)
   Bugs found in review: custom-SVG covers rendered at their own
   aspect ratio and broke row alignment; price rows sat at
   different heights per card; the price row could overflow and
   clip the Save pill on narrow cards; badge and category chip
   could collide on small covers; long names/taglines stretched
   cards; the Add label wrapped on standard desktop cards
   (stepper + details left it ~88px); tablets got phone-width
   160px cards; sold-out cards looked identical to live ones.
   ============================================================ */

/* One cover box for every card: built-in art is 4:3, and a custom
   SVG with any other shape letterboxes neatly inside instead of
   changing the card's height. */
.product-art {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--color-surface-muted);
}
.product-art svg { width: 100%; height: 100%; }

/* Info is a flex column so the price row pins to the bottom of
   the info block — prices line up across a row no matter how
   long the name or tagline above them is. The row may wrap, so
   the Save pill drops below instead of being clipped. */
.card-link .product-info { display: flex; flex-direction: column; flex: 1; }
.product-price-row { margin-top: auto; flex-wrap: wrap; row-gap: 2px; }

/* Names and taglines clamp to two lines — one long admin-entered
   name can no longer stretch its card past its neighbours. */
.product-info h3 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.product-tagline {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Badge and category chip share the cover's top edge: neither
   may grow into the other on a narrow cover. */
.product-badge {
    max-width: 52%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.product-cat-chip {
    max-width: 44%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Footer sizing: a slightly slimmer stepper and a nowrap Add
   label give the button its full text back on standard cards;
   the ellipsis is a safety net, never a wrap. */
.card-qty button { width: 24px; }
.card-qty input { width: 30px; }
.product-foot .add-btn { font-size: 13.5px; padding-left: 6px; padding-right: 6px; }
.add-btn span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Compact density is for dense catalogs: quantity is chosen on
   the product page or in the cart, so the stepper leaves the
   card at every width (the Compact card STYLE already did). */
.product-grid.grid-compact .card-qty { display: none; }

/* Tablets get tablet-sized cards, not stretched phone cards. */
@media (min-width: 641px) and (max-width: 920px) {
    .product-grid { grid-template-columns: repeat(auto-fill, minmax(225px, 1fr)); }
}

/* Small phones: tighter card padding, and the details arrow
   leaves the footer (the whole card is already a link to the
   same page) so Add to cart gets the full row. */
@media (max-width: 640px) {
    .product-info { padding: 10px 10px 12px; }
    .product-foot { padding-top: 0; }
    .product-foot .details-btn { display: none; }
}

/* Sold-out cards read as unavailable at a glance. */
.product-card.is-sold-out .product-art svg { filter: grayscale(0.45); opacity: 0.72; }
.product-card.is-sold-out:hover { transform: none; }

/* Keyboard focus stays visible inside the card's clipped edge. */
.product-card a.card-link:focus-visible { outline: 2px solid var(--color-brand); outline-offset: -2px; }
.card-qty button:focus-visible,
.details-btn:focus-visible,
.add-btn:focus-visible { outline: 2px solid var(--color-brand-text); outline-offset: 1px; }

/* ============================================================
   PHASE 2 EXTRAS (appended layer)
   Uploaded cover photos fill the same 4:3 cover box as the SVG
   art; FAQ accordions; the track-order form and result.
   ============================================================ */
.product-art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.product-card.is-sold-out .product-art img { filter: grayscale(0.45); opacity: 0.72; }

.faq-item {
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background: var(--color-surface);
    padding: 12px 16px;
    margin: 0 0 10px;
    text-align: left;
}
.faq-item summary { font-weight: 700; cursor: pointer; padding: 2px 0; }
.faq-item p { margin: 8px 0 4px; color: var(--color-text-muted); line-height: 1.6; }

.track-form {
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background: var(--color-surface);
    padding: 16px;
    margin: 14px 0;
    text-align: left;
}
.track-result {
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background: var(--color-surface);
    padding: 16px;
    margin: 14px 0;
    text-align: left;
}
.track-meta { list-style: none; margin: 10px 0; padding: 0; }
.track-meta li { margin: 4px 0; }

/* ============================================================
   PLATFORM HUB (appended layer)
   The /join checker row, /stores directory cards, and the admin
   provisioning pack steps.
   ============================================================ */
.check-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.check-row input { flex: 1 1 180px; }
.check-domain { color: var(--color-text-muted); font-weight: 600; white-space: nowrap; }
.store-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; margin: 16px 0; text-align: left; }
.store-card {
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background: var(--color-surface);
    padding: 16px;
}
.store-name { font-weight: 800; font-size: 17px; margin: 0 0 2px; }
.store-url { color: var(--color-gold-text); font-weight: 600; margin: 0 0 8px; font-size: 13.5px; }
.store-sells { color: var(--color-text-muted); line-height: 1.55; margin: 0 0 10px; font-size: 14.5px; }
.pack-steps { text-align: left; line-height: 1.65; padding-left: 22px; }
.pack-steps li { margin: 8px 0; }

/* ============================================================
   HUB HOME (appended layer)
   The platform landing page at the root: hero + checker, store
   directory preview, and the two 3-step explainers.
   ============================================================ */
.hub-hero { text-align: center; padding: 26px 0 4px; }
.hub-hero h1 { font-size: 34px; line-height: 1.15; margin: 6px 0 12px; }
.hub-sub { max-width: 640px; margin: 0 auto 20px; color: var(--color-text-muted); line-height: 1.6; font-size: 16.5px; }
.hub-check { max-width: 560px; margin: 0 auto; text-align: left; }
.hub-ctas { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin: 20px 0 4px; align-items: center; }
.hub-section { margin: 42px 0 0; text-align: left; }
.hub-section h2 { font-size: 22px; margin: 0 0 6px; }
.hub-lede { color: var(--color-text-muted); line-height: 1.6; margin: 0 0 6px; max-width: 680px; }
.hub-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin: 14px 0; }
.hub-step { border: 1px solid var(--color-border); border-radius: var(--radius-md); background: var(--color-surface); padding: 16px; }
.hub-step .step-n { color: var(--color-gold-text); font-weight: 800; font-size: 20px; margin: 0 0 4px; }
.hub-step h3 { margin: 0 0 6px; font-size: 16px; }
.hub-step p { margin: 0; color: var(--color-text-muted); line-height: 1.55; font-size: 14.5px; }
.hub-step p.step-n { color: var(--color-gold-text); }
@media (max-width: 640px) {
    .hub-hero h1 { font-size: 27px; }
}

/* Receipt printing: only the receipt itself goes on paper. */
@media print {
    .no-print, .topbar, .footer, .bg, .skip-link { display: none !important; }
    body { background: #fff; }
}

/* ---- 24-updates round: announcement bar, search suggestions,
   WhatsApp button, bundle chip ---- */
.announce-bar {
    text-align: center;
    padding: 9px 16px;
    font-size: .92rem;
    font-weight: 600;
    color: #713f12;
    background: linear-gradient(90deg, #f0b90b, #f0b90b, #f0b90b);
}
.announce-bar a { color: inherit; text-decoration: underline; }
.search-wrap { position: relative; flex: 1; display: flex; }
.search-wrap input[type="search"] { flex: 1; }
.search-suggest {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    z-index: 60;
    background: var(--color-surface);
    border: 1px solid var(--color-line, #e5e0d5);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 18px 40px rgba(60, 45, 5, .18);
    text-align: left;
}
.suggest-item {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    padding: 10px 14px;
    color: inherit;
    text-decoration: none;
}
.suggest-item:hover { background: var(--color-brand-soft); }
.suggest-meta { color: var(--color-muted, #707a8a); font-size: .85rem; white-space: nowrap; }
.chip-bundle { color: #f0b90b; background: rgba(240, 185, 11, .13); }
.featured-card { border-color: #f0b90b; box-shadow: 0 10px 30px rgba(180, 83, 9, .18); }

/* ============================================================
   MOBILE POLISH (2026-11-06): phone-first fixes from live review —
   a calmer header, no focus zoom on form fields, two-up product
   cards on small phones, and bigger tap targets throughout.
   ============================================================ */
@media (max-width: 640px) {
    .topbar { padding: 10px 14px; }
    .brand { font-size: 15px; gap: 6px; }
    .brand-logo { width: 22px; height: 22px; }
    .topnav { gap: 10px; }
    .nav-link { font-size: 13.5px; }
    .secure-badge { display: none; }
    .announce-bar { font-size: .85rem; padding: 8px 12px; line-height: 1.35; }
    .footer-links { gap: 2px 14px; }
    .footer-links a { padding: 4px 2px; }
}
@media (max-width: 760px) {
    /* 16px form text stops iOS Safari zooming the page on focus —
       and simply reads better on Android too. */
    input[type="text"], input[type="search"], input[type="number"],
    input[type="email"], input[type="password"], input[type="date"],
    input[type="tel"], select, textarea { font-size: 16px; }
    .paybtn { min-height: 50px; }
    .agree-row input { width: 18px; height: 18px; }
}
@media (max-width: 480px) {
    /* Always two cards across on phones (the admin's compact
       density keeps its own tighter template — it outranks this). */
    .product-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .product-info { padding: 10px 12px 12px; }
    .product-info h3 { font-size: 14px; }
    .product-tagline { font-size: 12.5px; margin-bottom: 8px; }
    .product-price { font-size: 17px; }
    .add-btn { padding: 9px; font-size: 13.5px; }
}

/* ============================================================
   LEDGER BAZAAR — shop layer (2026-11-06): product cards as
   price tickets — flat white, hairline border, a dashed
   perforation between the cover and the details, ink prices
   with tabular figures. No sheen sweep, no hover lift: the
   goods sit still, like stock on a shelf.
   ============================================================ */
.product-card {
    border-radius: 14px;
    background: var(--color-surface);
    box-shadow: var(--shadow-card-soft);
}
.product-card:hover { transform: none; border-color: var(--color-text); box-shadow: var(--shadow-card-soft); }
.product-art::after { display: none; }
.product-info { border-top: 1.5px dashed var(--color-border-strong); }
.product-price { color: var(--color-text); }
.product-badge { box-shadow: none; }
.catchip.active { box-shadow: none; }
.shop-top .shop-title { font-size: 32px; font-stretch: 118%; letter-spacing: -0.015em; }
.shop-sub { max-width: 60ch; }
.usp-strip {
    background: transparent;
    border: none;
    border-top: 1px solid var(--color-border);
    border-radius: 0;
    padding: 12px 2px 0;
}
.announce-bar { background: var(--color-brand); color: var(--color-text-inverse); }
.announce-bar a { color: inherit; }
.footer .footer-links a { color: #eaecef; }
.footer .footer-links a:hover { color: #f0b90b; }
.order-line strong, .product-price, .psb-price strong,
.checkout-bar-total strong, .cart-bar-label { font-variant-numeric: tabular-nums; }

/* --- Ledger Bazaar audit (2026-11-07): SVG trust strip on the
   brand close (emoji icons retired), inline icon sizing, and
   category chips that meet a real phone tap height. --- */
.trust-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
    justify-content: center;
    margin-top: 14px;
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text-muted);
}
.trust-strip span { display: inline-flex; align-items: center; gap: 6px; }
.trust-strip svg { width: 15px; height: 15px; flex: none; color: var(--color-brand-text); }
.icon-inline { width: 13px; height: 13px; vertical-align: -2px; }
@media (max-width: 640px) {
    .catchip { min-height: 40px; display: inline-flex; align-items: center; }
    .footer-links a { padding: 6px 2px; }
}

/* ============================================================
   SHOPIFY-STYLE — shop layer (2026-11-07), after Dawn:
   product cards lose their box entirely — media first with
   rounded corners, then left-aligned title and price beneath,
   the way Dawn collections read. Add-to-cart becomes Dawn's
   outlined quick-add; the gold stays on the primary Buy/pay
   actions and the sale badges. A typographic hero replaces
   the bottom brand block, the announcement bar goes ink, and
   the footer rests on Polaris grey.
   ============================================================ */
.announce-bar { background: var(--color-text); color: #ffffff; }
.product-card { background: transparent; border: none; box-shadow: none; border-radius: 0; overflow: visible; }
.product-card:hover { border-color: transparent; box-shadow: none; }
.product-art { border-radius: 12px; }
.product-info { border-top: none; padding: 12px 2px 0; }
.product-price { font-weight: 550; }
.add-btn { background: #ffffff; border: 1.5px solid var(--color-text); color: var(--color-text); }
.add-btn:hover { background: var(--color-text); color: #ffffff; }
.hero { text-align: center; padding: 46px 16px 34px; }
.hero-title { font-size: clamp(34px, 6vw, 54px); font-stretch: 112%; letter-spacing: -0.02em; line-height: 1.06; margin: 0; }
.hero-sub { max-width: 56ch; margin: 14px auto 0; color: var(--color-text-muted); font-size: 17px; line-height: 1.55; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 24px; }
.hero-cta .paybtn { width: auto; padding: 14px 30px; }
.btn-ghost { display: inline-flex; align-items: center; padding: 13px 24px; border: 1.5px solid var(--color-text); border-radius: 12px; font-weight: 650; color: var(--color-text); background: #ffffff; }
.btn-ghost:hover { background: var(--color-text); color: #ffffff; text-decoration: none; }
.hero-coins { margin-top: 22px; display: flex; align-items: center; justify-content: center; gap: 8px; }
.shop-top .shop-title { font-size: 26px; font-stretch: 100%; letter-spacing: -0.01em; }
.footer { background: var(--color-surface-muted); color: var(--color-text-muted); border-top: 1px solid var(--color-border); }
.footer a { color: var(--color-text); }
.footer .footer-links a { color: var(--color-text-muted); }
.footer .footer-links a:hover { color: var(--color-text); }
@media (min-width: 900px) {
    .product-grid { gap: 34px 24px; }
    .product-detail { align-items: start; }
    .product-info-col { position: sticky; top: 84px; }
}

/* ============================================================
   LANDING OVERHAUL (2026-11-07): the homepage becomes a real
   landing page, not just a product shelf. The hero turns into
   a dark ink panel (Dawn's image-banner energy, without
   needing photography), and the clean homepage gains shop-by-
   category tiles with real from-prices, a three-step how-it-
   works, the restore-or-replace promise as its own band, a
   three-question FAQ teaser drawn from the real FAQ, and a
   closing call to action. Search and category views stay pure
   shop — none of this renders while filtering.
   ============================================================ */
.hero {
    background: #eaecef;
    color: #ffffff;
    border-radius: 24px;
    padding: 60px 24px 50px;
    margin-top: 16px;
}
.hero-title { font-size: clamp(38px, 6.5vw, 60px); }
.hero-sub { color: #2b3139; }
.hero .btn-ghost { border-color: #ffffff; color: #ffffff; background: transparent; }
.hero .btn-ghost:hover { background: #ffffff; color: #eaecef; }
.hero-coins .small { color: #2b3139; }
.land-section { margin-top: 54px; }
.land-h { font-size: 24px; font-weight: 650; letter-spacing: -0.01em; margin: 0 0 4px; text-align: left; }
.land-sub { color: var(--color-text-muted); margin: 0 0 18px; }
.land-more { margin: 14px 0 0; }
.cat-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; }
.cat-tile {
    display: flex;
    gap: 14px;
    align-items: center;
    background: var(--color-surface-muted);
    border-radius: 16px;
    padding: 12px;
    color: var(--color-text);
    text-decoration: none;
}
.cat-tile:hover { text-decoration: none; box-shadow: var(--shadow-card-hover); }
.cat-tile-art { width: 84px; height: 64px; flex: none; border-radius: 10px; overflow: hidden; }
.cat-tile-art svg { width: 100%; height: 100%; display: block; }
.cat-tile-body strong { display: block; font-size: 15px; }
.cat-tile-body span { font-size: 13px; color: var(--color-text-muted); }
.how-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 22px; }
.step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--color-brand);
    color: var(--color-text-inverse);
    font-weight: 800;
    font-size: 14px;
    margin-bottom: 10px;
}
.step h3 { margin: 0 0 6px; font-size: 16px; }
.step p { margin: 0; color: var(--color-text-muted); line-height: 1.55; font-size: 14.5px; }
.promise {
    background: var(--color-brand-soft);
    border: 1px solid var(--color-gold-line);
    border-radius: 20px;
    padding: 28px 24px;
    text-align: center;
}
.promise > svg { width: 30px; height: 30px; color: var(--color-brand-text); }
.promise h2 { margin: 10px 0 8px; font-size: 22px; }
.promise p { max-width: 62ch; margin: 0 auto; color: var(--color-text-muted); line-height: 1.6; }
.promise .promise-link { margin-top: 12px; }
.faq-teaser { border-top: 1px solid var(--color-border); }
.faq-teaser-item { padding: 14px 0; border-bottom: 1px solid var(--color-border); text-align: left; }
.faq-teaser-item strong { display: block; margin-bottom: 4px; }
.faq-teaser-item p { margin: 0; color: var(--color-text-muted); line-height: 1.55; }
.final-cta { text-align: center; padding-bottom: 8px; }
.final-cta h2 { font-size: 28px; margin: 0 0 8px; }
.final-cta p { color: var(--color-text-muted); margin: 0 0 18px; }
.final-cta .paybtn { display: inline-block; width: auto; padding: 14px 30px; }

/* ============================================================
   BUTTONS + TYPE — shop layer (2026-11-07): category chips
   press like the rest of the system, cart quantity steppers
   grow to a comfortable 32px, and every money figure on the
   storefront lines up in tabular figures.
   ============================================================ */
.catchip:active { transform: translateY(1px); }
.cart-qty button { width: 32px; height: 32px; border-radius: 8px; }
.cart-qty button:hover { border-color: var(--color-text); }
.product-old, .cart-line-total, .order-total, .kpi-value { font-variant-numeric: tabular-nums; }
.details-btn { font-size: 13.5px; font-weight: 600; }

/* ============================================================
   HERO GHOST BUTTON FIX (2026-11-08): the "How it works"
   button was rendering with the plain link underline — only
   its :hover state removed it — so on the dark hero it read
   as a link wearing a box instead of a button, and felt cheap
   next to the solid gold primary. Now: no underline in any
   state, a faint glass fill on the dark panel so the button
   has presence of its own, and padding matched to the
   primary so the pair sits level.
   ============================================================ */
.btn-ghost { text-decoration: none; padding: 12px 26px; }
.btn-ghost:hover, .btn-ghost:focus-visible { text-decoration: none; }
.hero .btn-ghost { background: rgba(255, 255, 255, 0.07); }

/* ============================================================
   QUALITY PASS (2026-11-08) — residue removal. The grid's
   Add-to-cart hover loses the Midnight 2.0 gold glow/lift so
   the button hovers one way everywhere; phone card padding
   (tuned in the polish rounds, silently overridden by the
   Dawn layer) is re-asserted; card steppers match the cart's
   32px; drawer and notice targets reach honest sizes; the
   product page cover matches the grid's flat 12px treatment;
   the bundle chip rejoins the token palette (it was the only
   purple in the store); floating bars cast neutral shadows;
   the search dropdown's border uses a real token.
   ============================================================ */
.add-btn:hover { box-shadow: none; transform: none; }
@media (max-width: 640px) {
    .product-info { padding: 10px 10px 12px; }
    .footer-links a { padding: 8px 2px; }
}
.card-qty button { width: 32px; }
.mini-qty button { width: 36px; height: 36px; }
.added-close { padding: 8px; }
.mini-cart-actions button { padding: 8px 4px; }
.product-detail .product-art { border-radius: 12px; border: none; }
.chip-bundle { color: var(--color-text); background: var(--color-surface-muted); }
.cart-bar, .mini-cart, .checkout-bar, .added-notice, .product-sticky-bar { box-shadow: 0 12px 32px rgba(23, 24, 25, 0.18); }
.search-suggest { border-color: var(--color-border); }

/* ============================================================
   MIDNIGHT FINTECH — storefront: open midnight hero with
   gradient type, glass cards with amber-glow hover, mono
   amber prices, glass drawers and sticky bars.
   ============================================================ */
.hero { background: transparent; border: none; box-shadow: none; }
.hero-title { color: #ffffff; }
.hero-title .grad-text {
    background: linear-gradient(135deg, #ffffff 25%, #f0b90b 80%, #f0b90b 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.hero-sub { color: #b7bdc6; }
.hero-coins {
    background: rgba(13, 19, 34, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 16px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 10px 18px;
}
.btn-ghost {
    background: rgba(13, 19, 34, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: #ffffff;
    text-decoration: none;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.btn-ghost:hover { border-color: rgba(240, 185, 11, 0.45); background: rgba(240, 185, 11, 0.08); color: #ffffff; text-decoration: none; }
.shop-title { color: #ffffff; }
.catchip { background: rgba(13, 19, 34, 0.8); border: 1px solid rgba(255, 255, 255, 0.10); color: #b7bdc6; }
.catchip:hover { color: #ffffff; border-color: rgba(240, 185, 11, 0.4); }
.catchip.active { background: var(--color-brand-grad); color: var(--color-text-inverse); border-color: transparent; box-shadow: var(--glow-btn); font-weight: 700; }
.usp-strip { background: rgba(5, 8, 15, 0.55); border-color: rgba(255, 255, 255, 0.07); color: #b7bdc6; }
.usp-strip svg { color: var(--color-brand); }
.product-card {
    background: linear-gradient(145deg, rgba(17, 24, 39, 0.88), rgba(13, 19, 34, 0.75));
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    overflow: hidden;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: var(--shadow-card-soft);
}
.product-card:hover { transform: translateY(-4px); border-color: rgba(240, 185, 11, 0.35); box-shadow: var(--shadow-card-hover); }
.product-card .product-art { border-radius: 0; }
.product-detail .product-art { border-radius: 14px; }
.product-info { padding: 16px; }
@media (max-width: 640px) { .product-info { padding: 14px; } }
.product-info h3 { color: #ffffff; }
.product-tagline { color: var(--color-text-muted); }
.product-price { font-family: "JetBrains Mono", monospace; color: #f0b90b; font-weight: 700; }
.product-old { color: #707a8a; }
.save-pill { background: rgba(14, 203, 129, 0.13); color: #0ecb81; border: 1px solid rgba(14, 203, 129, 0.25); }
.card-chip.chip-delivery { background: rgba(240, 185, 11, 0.12); color: #f0b90b; border: 1px solid rgba(240, 185, 11, 0.25); }
.card-chip.chip-stock.ok { background: rgba(14, 203, 129, 0.12); color: #0ecb81; border: 1px solid rgba(14, 203, 129, 0.25); }
.card-chip.chip-stock.out { background: rgba(246, 70, 93, 0.10); color: #f6465d; border: 1px solid rgba(246, 70, 93, 0.25); }
.product-badge { background: var(--color-brand-grad); color: var(--color-text-inverse); }
.product-cat-chip { background: rgba(8, 12, 20, 0.72); color: #eaecef; border: 1px solid rgba(255, 255, 255, 0.12); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.add-btn { background: var(--color-brand-grad); color: var(--color-text-inverse); border: none; box-shadow: var(--glow-btn); font-weight: 700; }
.add-btn:hover { filter: brightness(1.07); box-shadow: var(--glow-btn-hover); transform: none; }
.details-btn { background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.12); color: #eaecef; }
.details-btn:hover { border-color: rgba(240, 185, 11, 0.45); color: #f0b90b; }
.card-qty button, .card-qty input { background: rgba(255, 255, 255, 0.05); border-color: rgba(255, 255, 255, 0.12); color: var(--color-text); }
.cat-tile { background: linear-gradient(145deg, rgba(17, 24, 39, 0.85), rgba(13, 19, 34, 0.72)); border: 1px solid rgba(255, 255, 255, 0.08); }
.cat-tile:hover { border-color: rgba(240, 185, 11, 0.35); }
.cat-tile-name { color: #ffffff; }
.cat-tile-meta { color: var(--color-text-muted); }
.how-step { background: linear-gradient(145deg, rgba(17, 24, 39, 0.85), rgba(13, 19, 34, 0.72)); border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 18px; }
.step-num { background: rgba(240, 185, 11, 0.10); border: 1px solid rgba(240, 185, 11, 0.30); color: #f0b90b; font-family: "JetBrains Mono", monospace; border-radius: 12px; }
.how-step:nth-child(2) .step-num { background: var(--color-brand-grad); color: var(--color-text-inverse); border-color: transparent; box-shadow: var(--glow-btn); }
.how-step:nth-child(3) .step-num { background: rgba(6, 182, 212, 0.10); border-color: rgba(6, 182, 212, 0.32); color: #22d3ee; }
.how-step h3 { color: #ffffff; }
.how-step p { color: var(--color-text-muted); }
.promise { background: linear-gradient(145deg, rgba(14, 203, 129, 0.10), rgba(13, 19, 34, 0.78)); border: 1px solid rgba(14, 203, 129, 0.25); }
.promise h2 { color: #ffffff; }
.promise p { color: #b7bdc6; }
.promise svg { color: #0ecb81; }
.faq-teaser-item, .faq-item { border-color: rgba(255, 255, 255, 0.08); }
.faq-teaser-item h3, .faq-item h3 { color: #ffffff; }
.faq-teaser-item p, .faq-item p { color: var(--color-text-muted); }
.faq-teaser-item a, .faq-item a { color: var(--color-brand-text); }
.policy { color: var(--color-text-muted); }
.policy h1, .policy h2, .policy h3 { color: #ffffff; }
.policy strong { color: var(--color-text); }
.policy a { color: var(--color-brand-text); }
.mini-cart { background: #181a20; border-left: 1px solid rgba(255, 255, 255, 0.09); color: var(--color-text); }
.mini-cart-head, .mini-item { border-color: rgba(255, 255, 255, 0.08); }
.added-notice { background: rgba(13, 19, 34, 0.94); border: 1px solid var(--color-gold-line); color: var(--color-text); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 16px 40px -12px rgba(0, 0, 0, 0.7); }
.cart-bar, .checkout-bar, .product-sticky-bar {
    background: rgba(13, 19, 34, 0.88);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-top: 1px solid rgba(255, 255, 255, 0.09);
    color: var(--color-text);
    box-shadow: 0 -14px 34px rgba(0, 0, 0, 0.5);
}
.search-suggest { background: #1e2329; border: 1px solid rgba(255, 255, 255, 0.10); box-shadow: 0 20px 44px -12px rgba(0, 0, 0, 0.75); }
.suggest-item:hover { background: rgba(240, 185, 11, 0.08); }
.suggest-meta { color: var(--color-text-faint); }
.receive-box { background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.08); }
.amount { font-family: "JetBrains Mono", monospace; color: #f0b90b; }

/* Midnight correction: the step items are .step, not .how-step —
   the glass card and the filled/cyan number tiles now land. */
.how-steps .step {
    background: linear-gradient(145deg, rgba(17, 24, 39, 0.85), rgba(13, 19, 34, 0.72));
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    padding: 22px;
}
.how-steps .step:nth-child(2) .step-num { background: var(--color-brand-grad); color: var(--color-text-inverse); border-color: transparent; box-shadow: var(--glow-btn); }
.how-steps .step:nth-child(3) .step-num { background: rgba(6, 182, 212, 0.10); border-color: rgba(6, 182, 212, 0.32); color: #22d3ee; }
.how-steps .step h3 { color: #ffffff; }
.how-steps .step p { color: var(--color-text-muted); }

/* ============================================================
   MIDNIGHT POLISH (owner feedback, 2026-11-09): the hero's
   extra air is gone — an older layer's 60px/50px padding was
   still winning — the coin row is the compact floating pill
   from his design file instead of a full-width band, the
   gradient headline flows slowly, and the hero rises in on
   load. Reduced-motion visitors get the still version.
   ============================================================ */
.hero { padding: 42px 20px 32px; margin-top: 0; }
.hero-sub { margin-top: 12px; }
.hero-cta { margin-top: 20px; }
.hero-cta .paybtn { transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease; }
.hero-coins { width: fit-content; max-width: 100%; margin: 18px auto 0; }
@media (max-width: 640px) {
    .hero { padding: 32px 16px 24px; }
    .hero-cta { margin-top: 18px; }
}
.hero-title .grad-text {
    background-image: linear-gradient(120deg, #ffffff 15%, #f0b90b 42%, #ffd76a 50%, #f0b90b 58%, #ffffff 85%);
    background-size: 220% 100%;
    animation: gradFlow 7s ease-in-out infinite;
}
@keyframes gradFlow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
.hero-title { animation: heroRise 0.7s cubic-bezier(0.22, 0.8, 0.3, 1) both; }
.hero-sub { animation: heroRise 0.7s cubic-bezier(0.22, 0.8, 0.3, 1) 0.08s both; }
.hero-cta { animation: heroRise 0.7s cubic-bezier(0.22, 0.8, 0.3, 1) 0.16s both; }
.hero-coins { animation: heroRise 0.7s cubic-bezier(0.22, 0.8, 0.3, 1) 0.24s both; }
@keyframes heroRise {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: none; }
}
.product-card { transition: transform 0.35s cubic-bezier(0.22, 0.8, 0.3, 1), box-shadow 0.35s ease, border-color 0.35s ease; }
@media (prefers-reduced-motion: reduce) {
    .hero-title, .hero-sub, .hero-cta, .hero-coins,
    .hero-title .grad-text { animation: none; }
}

/* Midnight polish II: when the hero buttons stack on a phone,
   they take the same width — one design, one size. */
@media (max-width: 640px) {
    .hero-cta .paybtn { width: min(320px, 100%); }
}

/* ============================================================
   WORD ROTATOR (owner's ask, 2026-11-09): the headline's last
   word scrolls up and the next word takes its place, like a
   ticker — "Shop the future/deals/originals/premium" and
   "Pay with crypto/Binance/USDT/USDC". Pure CSS: a masked
   inline window, a column track, keyframes with holds. The
   second line runs 1.2s behind the first so the two never
   change in the same instant. Each list repeats its first
   word at the end, so the wrap is invisible.
   ============================================================ */
.rot {
    display: inline-block;
    height: 1.28em;
    overflow: hidden;
    vertical-align: -0.16em;
    text-align: center;
    -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 9%, #000 96%, transparent 100%);
    mask-image: linear-gradient(180deg, transparent 0, #000 9%, #000 96%, transparent 100%);
}
.rot-track {
    display: flex;
    flex-direction: column;
    animation: rotScroll 10s cubic-bezier(0.65, 0, 0.35, 1) infinite;
    will-change: transform;
}
.rot-alt .rot-track { animation-name: rotScroll3; animation-delay: 1.2s; }
.rot-w {
    display: block;
    height: 1.28em;
    line-height: 1.28em;
    text-align: center;
    white-space: nowrap;
}
@keyframes rotScroll {
    0%, 18% { transform: translateY(0); }
    25%, 43% { transform: translateY(-1.28em); }
    50%, 68% { transform: translateY(-2.56em); }
    75%, 93% { transform: translateY(-3.84em); }
    100% { transform: translateY(-5.12em); }
}
@media (prefers-reduced-motion: reduce) {
    .rot-track { animation: none; }
}

/* ============================================================
   SPACE + EDGE FIXES (owner feedback, 2026-11-09):
   (a) The rotator's words align LEFT inside their window, so
       the rotating word always begins exactly one space after
       "the" / "with" — centering had stretched that gap to
       the width of the longest word. The line's total width
       never changes, so nothing jumps.
   (b) Card-edge hardening: a grid item can never outgrow its
       track and the footer can always compress (the Add
       button yields, its label ellipsizes) — the details
       arrow at the card's right edge can no longer be pushed
       out and clipped, at any width, zoom or density.
   ============================================================ */
.rot { text-align: left; }
.rot-w { text-align: left; }
.product-grid { grid-template-columns: repeat(auto-fill, minmax(min(160px, 100%), 1fr)); }
@media (min-width: 921px) {
    .product-grid { grid-template-columns: repeat(auto-fill, minmax(min(270px, 100%), 1fr)); }
}
@media (min-width: 641px) and (max-width: 920px) {
    .product-grid { grid-template-columns: repeat(auto-fill, minmax(min(225px, 100%), 1fr)); }
}
.product-grid.grid-compact { grid-template-columns: repeat(auto-fill, minmax(min(200px, 100%), 1fr)); }
.product-card, .product-info, .product-foot { min-width: 0; }
.product-foot .card-qty, .product-foot .details-btn { flex: none; }
.product-foot .add-btn { min-width: 0; }

/* USDT-only (2026-11-09): the second headline line cycles
   three words now (crypto / Binance / USDT), so it runs its
   own keyframes on the same 10-second cycle with longer
   holds; the checkout currency tile sits on one full row. */
@keyframes rotScroll3 {
    0%, 26% { transform: translateY(0); }
    33%, 59% { transform: translateY(-1.28em); }
    66%, 92% { transform: translateY(-2.56em); }
    100% { transform: translateY(-3.84em); }
}
.coin-grid-one { grid-template-columns: 1fr; }

/* ============================================================
   CONTRAST PASS (owner report, 2026-11-09 — "text not visible
   in some places"): a full sweep of every page found the
   spots where light-theme rules survived the midnight
   re-grade. (1) The announcement bar: a Dawn rule in this
   file (ink background, white text) outranked the midnight
   tint from base.css — with the ink token now near-white,
   the bar was white text on a near-white bar. (2) The info
   pages (.policy) still colored paragraphs #44403c, a warm
   near-black from the Ivory era — invisible on glass.
   (3) Add to cart on hover: Dawn's hover inverted the button
   to the text token as background with white text; the token
   is near-white now, so the label vanished on hover.
   (4) The struck old price sat at 3.8:1 — lifted.
   ============================================================ */
.announce-bar {
    background: linear-gradient(90deg, rgba(240, 185, 11, 0.16), rgba(14, 203, 129, 0.10), rgba(240, 185, 11, 0.16));
    color: #f0b90b;
    border-bottom: 1px solid rgba(240, 185, 11, 0.22);
}
.announce-bar a { color: #f0b90b; }
.policy p, .policy li { color: var(--color-text-muted); }
.policy .small { color: var(--color-text-muted); }
.policy .eyebrow { color: var(--color-brand-text); }
.add-btn:hover, .add-btn:active { background: var(--color-brand-grad); color: var(--color-text-inverse); }
.product-old { color: var(--color-text-muted); }

/* ============================================================
   SWISS SLATE — shop (2026-11-10 theme rebuild): the store
   re-skinned from the ui-ux-pro-max design system. Flat slate
   cards with visible borders, Inter display type, amber
   brand, violet kept to a single flat accent line. Layout,
   grid geometry and the headline rotator mechanics are
   untouched — this layer is paint and type only. The
   contrast-pass pins (announcement bar, policy text, button
   hovers, old price) are restated so nothing regresses.
   ============================================================ */
.announce-bar {
    background: linear-gradient(90deg, rgba(240, 185, 11, 0.16), rgba(14, 203, 129, 0.10), rgba(240, 185, 11, 0.16));
    color: #f0b90b;
    border-bottom: 1px solid rgba(240, 185, 11, 0.22);
}
.announce-bar a { color: #f0b90b; }
.hero-title { font-family: var(--font-display); letter-spacing: 0.01em; }
.grad-text {
    background: linear-gradient(100deg, #f8fafc 10%, var(--color-brand-text) 55%, var(--color-brand) 90%);
    -webkit-background-clip: text;
    background-clip: text;
}
.hero-sub { color: var(--color-text-muted); }
.hero-coins {
    background: rgba(26, 34, 54, 0.72);
    border: 1px solid var(--color-border);
    color: var(--color-text-muted);
}
.usp-strip { border-bottom: 1px solid var(--color-border); }
.usp-item { color: var(--color-text-muted); }
.usp-item strong { color: var(--color-text); }
.shop-title { font-family: var(--font-display); }
.catchip {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    color: var(--color-text-muted);
}
.catchip:hover { border-color: var(--color-border-strong); color: var(--color-text); }
.catchip.active {
    background: var(--color-brand-grad);
    border-color: transparent;
    color: var(--color-text-inverse);
    box-shadow: var(--glow-btn);
}
.step {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-card-soft);
}
.step-num { font-family: "JetBrains Mono", monospace; }
.how-step-1 .step-num, .step:nth-child(1) .step-num { background: rgba(240, 185, 11, 0.14); color: var(--color-brand-text); }
.step:nth-child(2) .step-num { background: var(--color-brand-grad); color: var(--color-text-inverse); }
.step:nth-child(3) .step-num { background: rgba(112, 122, 138, 0.14); color: var(--color-accent-text); }
.promise {
    background: linear-gradient(120deg, rgba(14, 203, 129, 0.13), rgba(14, 203, 129, 0.05));
    border: 1px solid rgba(14, 203, 129, 0.3);
}
.promise strong { color: #0ecb81; }
.product-card {
    background: var(--color-surface-muted);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-card-soft);
    transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) ease, border-color var(--dur) ease;
}
.product-card:hover {
    border-color: rgba(240, 185, 11, 0.45);
    box-shadow: var(--shadow-card-hover);
}
.product-badge {
    background: var(--color-brand-grad);
    color: var(--color-text-inverse);
    box-shadow: 0 4px 12px rgba(240, 185, 11, 0.3);
}
.product-cat-chip {
    background: rgba(11, 14, 17, 0.66);
    color: #eaecef;
    border: 1px solid rgba(148, 163, 184, 0.25);
}
.product-name { color: var(--color-text); }
.product-price { color: var(--color-brand-text); font-family: "JetBrains Mono", monospace; }
.product-old { color: var(--color-text-muted); }
.add-btn {
    background: var(--color-brand-grad);
    color: var(--color-text-inverse);
    box-shadow: var(--glow-btn);
}
.add-btn:hover, .add-btn:active { background: var(--color-brand-grad); color: var(--color-text-inverse); }
.details-btn {
    background: rgba(148, 163, 184, 0.07);
    border: 1px solid var(--color-border);
    color: var(--color-text-muted);
}
.details-btn:hover { color: var(--color-brand-text); border-color: rgba(240, 185, 11, 0.4); }
.qty-stepper { background: #0b0e11; border: 1px solid var(--color-border); }
.qty-stepper button { color: var(--color-text-muted); }
.qty-stepper button:hover { color: var(--color-brand-text); }
.mini-cart, .cart-drawer {
    background: #181a20;
    border-left: 1px solid var(--color-border);
}
.drawer-head { border-bottom: 1px solid var(--color-border); }
.mini-item { border-bottom: 1px solid var(--color-border); }
.added-notice {
    background: var(--color-surface-muted);
    border: 1px solid var(--color-border-strong);
    box-shadow: var(--shadow-card);
    color: var(--color-text);
}
.cart-bar {
    background: rgba(20, 28, 48, 0.92);
    border: 1px solid var(--color-border-strong);
    color: var(--color-text);
    box-shadow: var(--shadow-card);
}
.checkout-panel, .pay-panel, .policy, .faq-item, .track-panel {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-card-soft);
}
.policy p, .policy li { color: var(--color-text-muted); }
.policy .small { color: var(--color-text-muted); }
.policy .eyebrow { color: var(--color-brand-text); }
.policy h1, .policy h2, .policy h3 { color: var(--color-text); }
.policy a { color: var(--color-brand-text); }
.faq-item h3 { color: var(--color-text); }
.faq-item p { color: var(--color-text-muted); }
.order-lines { border-bottom: 1px solid var(--color-border); }
.order-total { color: var(--color-text); }
.stable-note { color: var(--color-text-faint); }
.search-suggest {
    background: #1e2329;
    border: 1px solid var(--color-border-strong);
    box-shadow: var(--shadow-card);
}
.suggest-item:hover { background: rgba(240, 185, 11, 0.08); }
.recently-viewed { border-top: 1px solid var(--color-border); }
.product-sticky-bar {
    background: rgba(11, 14, 17, 0.9);
    border-top: 1px solid var(--color-border);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}
.receive-box { background: #0b0e11; border: 1px solid var(--color-border); }
.stock-ok { color: #0ecb81; }
.stock-low { color: #f0b90b; }

/* ============================================================
   ARCH WATERMARK (2026-11-10, owner's pick): the logo's arch
   and coin, drawn huge and ultra-faint behind the hero
   headline, breathing on a 14-second cycle. An inline SVG
   data URI — no extra request. Content sits above it.
   ============================================================ */
.hero { position: relative; overflow: clip; }
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cg fill='none' stroke='%23f0b90b' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 46V31a12 12 0 0 1 24 0v15'/%3E%3Cpath d='M13 46h38'/%3E%3C/g%3E%3Ccircle cx='32' cy='35' r='4.4' fill='%23f0b90b'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center 30%;
    background-size: min(560px, 94vw) auto;
    opacity: 0.055;
    pointer-events: none;
}
.hero > * { position: relative; z-index: 1; }

@media (prefers-reduced-motion: reduce) {
    .hero::before { animation: none; opacity: 0.09; }
}

/* Fintech Clean Dark: the hero is flat — no aurora, no sheen sweep.
   The Bazaar Arch watermark above stays, static and faint. */

/* ============================================================
   CARD FOOTER FIX (2026-11-10, owner's screenshot): the
   primary button's label was being eaten — "Add …" at 1920px
   and 1280px, and at 768px the button collapsed to 41px with
   a 5px-wide label. Cause: stepper + button + arrow need
   ~272px; 5-across and 3-across cards give the footer less,
   and the button (flexible, min-width 0 from the edge
   hardening) absorbed the whole deficit into its label.
   Fix: the stepper is measured and slim (26px buttons, no
   stray padding), all three controls share one 38px height,
   the arrow is fixed at 38px and right-anchored, the button
   keeps a 112px floor with a label that can never ellipsize
   — and when a card is genuinely too narrow for one row,
   the footer WRAPS: stepper + arrow on the first row, the
   Add button full-width beneath. Never a clipped CTA again.
   Plus: cover art eases a small zoom on hover, and the card
   controls get visible keyboard focus.
   ============================================================ */
.product-foot { flex-wrap: wrap; gap: 6px; }
.card-qty { gap: 4px; flex: none; }
.card-qty button { width: 26px; height: 38px; padding: 0; flex: none; }
.card-qty input { width: 30px; height: 38px; padding: 0; flex: none; }
/* (flex-basis must stay 0%: with basis auto, Chrome sizes the button at a phantom max-content in a wrapping row and every control lands on its own line — measured, not guessed.) */
.product-foot .add-btn { flex: 1 1 0%; min-width: 112px; height: 38px; padding-top: 0; padding-bottom: 0; }
.product-foot .add-btn span { overflow: visible; text-overflow: clip; }
.product-foot .details-btn { width: 38px; height: 38px; flex: none; margin-left: auto; }
.product-art svg { transition: transform 0.35s var(--ease-out); }
.product-card:hover .product-art svg { transform: scale(1.045); }
.card-qty button:focus-visible, .product-foot .details-btn:focus-visible {
    outline: 2px solid var(--color-brand-text);
    outline-offset: 1px;
}
@media (prefers-reduced-motion: reduce) {
    .product-art svg { transition: none; }
    .product-card:hover .product-art svg { transform: none; }
}

/* ============================================================
   SPACING TIGHTENING (2026-11-10, owner's word: "a lot of
   free spacing or extra gap"). Measured first: the homepage
   stacked 54px of air before each of the five content
   sections (~270px of margin alone), a 507px hero (645px on
   phones), 232px of shop header before the first product,
   and 28px between the header and the hero. This layer cuts
   the dead air roughly in half everywhere while keeping at
   least ~14px between major blocks — same design, less
   emptiness. Nothing structural changes.
   ============================================================ */
main, .page { padding-top: 16px; padding-bottom: 24px; }
.hero { padding: 32px 20px 24px; }
.hero-sub { margin-top: 10px; }
.hero-cta { margin-top: 16px; }
.hero-coins { margin-top: 14px; padding-top: 8px; padding-bottom: 8px; }
.shop-top { margin-bottom: 14px; }
.shop-title { margin-top: 8px; margin-bottom: 2px; }
.shop-search { margin-bottom: 10px; }
.catchips { margin-bottom: 10px; }
.shop-count { margin-top: 8px; }
.land-section { margin-top: 32px; }
.product-info { padding: 14px; }
.brand-close { margin-top: 30px; padding-top: 22px; }
@media (max-width: 640px) {
    .hero { padding: 24px 16px 18px; }
    .land-section { margin-top: 28px; }
    .product-info { padding: 12px; }
}

/* ============================================================
   ABOVE-THE-FOLD FIX (2026-11-11, owner's photo of his
   laptop: the hero filled the whole screen and the products
   only appeared after scrolling). The hero is now a compact
   banner — smaller display type, a wider sub-line that wraps
   to fewer lines, tighter rhythm — and on desktop the shop
   header shares one row (title left, search right) with the
   category chips and the product count sharing the next, so
   the first product cards show in the first screen on a
   laptop. The aurora, watermark and sheen are untouched;
   phones keep their stacked layout with slimmer padding.
   ============================================================ */
.hero { padding: 26px 20px 18px; }
.hero-title { font-size: clamp(34px, 5.2vw, 50px); }
.hero-sub { font-size: 15.5px; line-height: 1.55; max-width: 66ch; margin-top: 8px; }
.hero-cta { margin-top: 14px; }
.hero-cta .paybtn { padding: 12px 26px; }
.hero-coins { margin-top: 12px; }
@media (min-width: 900px) {
    .shop-top { display: flex; flex-wrap: wrap; align-items: center; column-gap: 18px; }
    .shop-title { flex: 1 1 auto; margin: 0; }
    .shop-search { flex: 0 1 440px; margin: 0; }
    .catchips { flex: 1 1 auto; margin: 12px 0 0; }
    .shop-count { flex: none; margin: 12px 0 0 auto; }
    .usp-strip { flex: 1 1 100%; margin-top: 12px; }
}
@media (max-width: 640px) {
    .hero { padding: 16px 16px 12px; }
    .hero-title { font-size: 30px; }
    .hero-sub { font-size: 14px; line-height: 1.5; margin-top: 6px; }
    .hero-cta { flex-wrap: nowrap; gap: 10px; margin-top: 12px; }
    .hero-cta .paybtn { flex: 1 1 0%; padding: 12px 8px; font-size: 14px; text-align: center; }
    .hero-coins { margin-top: 10px; padding-top: 7px; padding-bottom: 7px; }
    .usp-strip { font-size: 11.5px; gap: 6px 12px; padding: 8px 10px; margin-bottom: 10px; justify-content: center; }
    .usp-strip svg { width: 13px; height: 13px; }
}

/* ============================================================
   HOMEPAGE REDESIGN — "STOREFRONT SLATE" (2026-11-11, the
   owner's order: "redesign home page style use skills").
   The catalogue's generator passes missed this store twice
   (a playful indigo light theme, then a light luxury-glass
   one), so this direction is built on the verified MASTER
   instead (Trust & Authority, Swiss) with a product-first
   composition: the hero becomes a split stage — copy on the
   left, the featured product itself on the right in a
   framed showcase card with floating payment chips — the
   trust strip moves up into the hero, section titles get
   the amber bar of the design system, the steps carry big
   ghost numerals, the promise goes two-column, and the
   page closes on a full amber panel. Engine, cards and
   checkout untouched; aurora, watermark and sheen kept.
   ============================================================ */
.hero-eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    font-family: "JetBrains Mono", monospace; font-size: 12px; font-weight: 600;
    letter-spacing: 0.14em; text-transform: uppercase; color: var(--color-brand-text);
    margin: 0 0 14px;
}
.eyebrow-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--color-brand); box-shadow: 0 0 0 4px rgba(240, 185, 11, 0.18); flex: none; }
.hero-trust { background: transparent; border: none; border-radius: 0; padding: 0; margin: 18px 0 0; font-size: 12.5px; }
.hero-showcase { position: relative; z-index: 1; }
.hero-showcase::before, .hero-showcase::after {
    content: ""; position: absolute; inset: 0; z-index: 0;
    border: 1px solid var(--color-border); border-radius: 20px;
}
.hero-showcase::before { transform: rotate(2.4deg) translate(8px, 6px); opacity: 0.55; }
.hero-showcase::after { transform: rotate(-1.8deg) translate(-6px, 10px); opacity: 0.35; }
.showcase-card {
    position: relative; z-index: 1; display: block; text-decoration: none;
    background: var(--color-surface); border: 1px solid var(--color-border-strong);
    border-radius: 20px; overflow: hidden;
    box-shadow: 0 24px 48px rgba(2, 6, 17, 0.45);
}
.showcase-art { display: block; position: relative; aspect-ratio: 16 / 9; background: var(--color-surface-muted); }
.showcase-art svg, .showcase-art img { display: block; width: 100%; height: 100%; object-fit: cover; }
.showcase-art .product-badge { position: absolute; top: 12px; left: 12px; }
.showcase-info { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 14px 16px; }
.showcase-info strong { color: var(--color-text); font-size: 16px; line-height: 1.3; }
.showcase-price { font-family: "JetBrains Mono", monospace; color: var(--color-brand-text); font-weight: 700; white-space: nowrap; }
.showcase-price small { font-weight: 600; }
.showcase-price s { color: var(--color-text-faint); font-weight: 400; margin-left: 4px; }
.showcase-chip {
    position: absolute; z-index: 2; display: inline-flex; align-items: center; gap: 7px;
    background: rgba(26, 34, 54, 0.94); border: 1px solid var(--color-border-strong);
    color: var(--color-text); font-size: 12.5px; font-weight: 600;
    padding: 8px 12px; border-radius: 999px; box-shadow: 0 10px 24px rgba(2, 6, 17, 0.4);
    animation: chipFloat 7s ease-in-out infinite alternate;
}
.showcase-chip svg, .showcase-chip img { width: 16px; height: 16px; flex: none; }
.showcase-chip svg { color: var(--color-brand-text); }
.chip-pay { top: 16px; right: -8px; }
.chip-fast { bottom: 64px; left: -12px; animation-delay: 1.4s; }
@keyframes chipFloat { from { transform: translateY(-3px); } to { transform: translateY(4px); } }
.shop-title, .land-h { position: relative; padding-left: 16px; }
.shop-title::before, .land-h::before {
    content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
    width: 5px; height: 26px; border-radius: 3px; background: var(--color-brand-grad);
}
.shop-search input[type="search"] { border-radius: 999px; }
.shop-search .mini-btn { border-radius: 999px; }
.step { position: relative; overflow: hidden; }
.step-num {
    position: absolute; top: 2px; right: 14px; z-index: 0;
    font-family: var(--font-display); font-size: 46px; font-weight: 800; line-height: 1;
    color: rgba(240, 185, 11, 0.16); background: none; border: none; box-shadow: none;
    width: auto; height: auto; padding: 0; border-radius: 0;
}
.step h3, .step p { position: relative; z-index: 1; }
.final-cta { background: var(--color-brand-grad); border: none; }
.final-cta h2 { color: var(--color-text-inverse); }
.final-cta p { color: rgba(23, 16, 2, 0.8); }
.final-cta .paybtn { background: #0b0e11; color: var(--color-brand-text); box-shadow: none; }
.final-cta .paybtn:hover { background: #181a20; color: var(--color-brand-text); }
@media (min-width: 1024px) {
    .hero {
        display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
        gap: 44px; align-items: center; text-align: left; padding: 36px 42px 32px;
    }
    .hero::before { background-position: 16% 30%; }
    .hero-copy { position: relative; z-index: 1; }
    .hero-sub { margin-left: 0; margin-right: 0; }
    .hero-cta { justify-content: flex-start; }
    .hero-coins { margin-left: 0; margin-right: 0; }
    .hero-trust { justify-content: flex-start; }
    .promise { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 28px; text-align: left; align-items: start; }
    .promise > svg { grid-row: 1 / span 3; width: 46px; height: 46px; margin: 4px 0 0; }
    .promise h2, .promise p { margin-left: 0; margin-right: 0; }
}
@media (max-width: 1023.5px) {
    .hero-showcase { margin-top: 20px; }
    .hero-showcase::before, .hero-showcase::after, .showcase-chip { display: none; }
    .showcase-card { display: flex; align-items: center; gap: 12px; border-radius: 16px; }
    .showcase-art { flex: none; width: 96px; height: 70px; aspect-ratio: auto; border-radius: 12px; overflow: hidden; margin: 8px 0 8px 8px; }
    .showcase-art .product-badge { display: none; }
    .showcase-info { flex: 1; flex-direction: column; align-items: flex-start; justify-content: center; gap: 2px; padding: 10px 12px 10px 0; }
    .hero-trust { justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
    .showcase-chip { animation: none; }
}

/* Phone fold trim for the redesign: the eyebrow, trust
   ticks and showcase strip are worth their pixels, but the
   first products must still peek in — so on phones the
   title drops a step, the trust ticks run tighter, and the
   strip slims down. */
@media (max-width: 640px) {
    .hero-eyebrow { margin-bottom: 10px; }
    .hero-title { font-size: 28px; }
    .hero-trust { margin-top: 12px; font-size: 11px; gap: 4px 10px; line-height: 1.3; }
    .hero-showcase { margin-top: 14px; }
    .showcase-art { height: 60px; }
}

/* Second phone trim: small change, same design — the pill,
   the strip and the shop header each give back a few pixels
   so a real slice of the first products shows. */
@media (max-width: 640px) {
    main, .page { padding-top: 10px; }
    .hero-coins { font-size: 12px; }
    .hero-coins svg, .hero-coins img { width: 20px; height: 20px; }
    .hero-trust { line-height: 1.25; gap: 3px 10px; }
    .hero-showcase { margin-top: 10px; }
    .showcase-art { margin-top: 6px; margin-bottom: 6px; }
    .shop-title { font-size: 24px; }
    .catchip { padding: 7px 12px; font-size: 13px; }
}

/* The payment pill repeats what the sub-line already says
   ("Pay in seconds with Binance Pay, in USDT") — on phones
   it yields its row so the products show; desktop keeps it. */
@media (max-width: 640px) {
    .hero-coins { display: none; }
    .hero-sub { font-size: 13.5px; line-height: 1.45; }
}

/* ============================================================
   UI/UX REVIEW FIXES (owner's order, 2026-11-12) — five items
   from tonight's live review, all surgical, theme untouched.
   ============================================================ */

/* 1. The second button of a pair is a quiet text link now, not
   an orange twin of the primary: "Continue shopping" on the
   cart page and "Edit cart" on checkout can no longer be
   tapped by mistake on the way to paying. */
.quiet-link {
    display: block;
    min-height: 44px;
    padding: 12px;
    text-align: center;
    font-weight: 600;
    color: var(--color-text-muted);
    text-decoration: none;
}
.quiet-link:hover { color: var(--color-text); text-decoration: underline; }

/* 2. The sticky cart bar is a proper flush bottom bar on
   phones — edge to edge, safe-area padding, no floating pill
   covering cards or the footer. (It is already absent from
   the cart/checkout/payment pages: cart.js only builds it on
   browsing pages, so nothing to hide there.) */
@media (max-width: 640px) {
    .cart-bar {
        left: 0;
        right: 0;
        bottom: 0;
        border-left: none;
        border-right: none;
        border-bottom: none;
        border-radius: 0;
        padding: 8px 12px calc(8px + env(safe-area-inset-bottom, 0px));
    }
}

/* 3a. Helper and body text that sat at 10-13px in faint grey
   now reads at 14px in the muted tone. */
.stable-note { font-size: 14px; }
.checkout-trust { font-size: 14px; color: var(--color-text-muted); }
.mini-cart-note { font-size: 14px; color: var(--color-text-muted); }
.mini-line-info span, .cart-line-info span { font-size: 14px; }
.cart-bar-meta { font-size: 13px; }
.cart-secure-note { font-size: 14px; }
.mini-steps li { font-size: 12px; }
.checkout-steps li { font-size: 13px; }
.footer-links a { font-size: 14px; }
.footer p { color: var(--color-text-muted); }
.small { font-size: 14px; color: var(--color-text-muted); }
@media (max-width: 480px) {
    .checkout-steps li { font-size: 12px; }
}

/* 3b. Quantity steppers are thumb-sized now: 44px in the cart,
   the drawer and the product cards. */
.cart-qty button { width: 44px; height: 44px; }
.cart-qty input { min-height: 44px; padding: 10px 4px; }
.card-qty button { width: 44px; min-height: 44px; }
.card-qty input { min-height: 44px; }
.mini-qty button { width: 44px; height: 44px; }
.mini-qty input { min-height: 44px; }

/* 3b. "Remove" no longer runs into the price text: it sits on
   its own line with a real tap target, in the drawer and on
   the cart page alike. "Clear cart" gets the same treatment. */
.cart-remove {
    display: block;
    margin-top: 6px;
    padding: 8px 0;
    font-size: 14px;
}
#clearCart { padding: 10px 12px; margin-top: 10px; }

/* 3c. The product page's quantity stepper is a card stepper
   now, and it stays visible on phones: the ≤480px rule that
   hides card steppers is outranked here for the quantity row. */
.qty-row .card-qty { display: flex; flex: none; }

/* 3d. The terms checkbox is a thumb-sized 24px target, and its
   label is a flex row so the whole line is tappable. */
.agree-row label { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
.agree-row input { width: 24px; height: 24px; flex: none; margin-top: 2px; vertical-align: 0; }

/* 4d. The BEP20 network warning is bold on an amber tint, so it
   cannot be skimmed past — it only ever renders when BEP20 is
   the selected method (checkout.js toggles it). */
.chain-warning {
    font-weight: 600;
    color: var(--color-text);
    background: var(--color-warning-bg);
    border: 1px solid var(--color-gold-line);
    border-radius: var(--radius-md);
    padding: 10px 12px;
}

/* 5b. The "How it works" numbers are one consistent watermark
   now: the per-step amber/gradient/cyan paint from older
   layers is outranked here, and the number sits fully inside
   the card (top 10px, not 2px) so the card border can no
   longer clip it. */
.how-steps .step:nth-child(n) .step-num {
    background: none;
    border: none;
    box-shadow: none;
    color: rgba(240, 185, 11, 0.16);
    top: 10px;
    right: 16px;
    font-size: 40px;
}

/* ============================================================
   INTERACTIVE STATE GUARANTEE (2026-11-12 — the owner's
   report from the LIVE store: the payment popup's
   "Continue shopping" label vanished on hover, the second
   time this week a button did that; he asked for a complete
   rescan instead of one-at-a-time reports). Root cause, the
   same cascade disease as the admin's: theme eras restated
   backgrounds without restating ink. The Swiss layer gave
   .mini-btn its amber gradient but never restated its
   hover, so the Dawn/Polaris hover (near-white #1e2329)
   survived underneath white ink; and .mini-btn-link's
   light-amber ink (readable when it was coined for dark
   glass) landed ON the amber gradient — amber on amber.
   This closing layer restates the whole mini-btn family in
   every state, and gives the popup's secondary action its
   own slate paint so the popup has one amber button, not
   two. Verified by the storefront state audit
   (sandbox/storefront-state-audit.js): every control on
   every page measured at rest and on real hover.
   ============================================================ */
.mini-btn {
    background: var(--color-brand-grad);
    color: var(--color-text-inverse);
    border: 1px solid transparent;
}
.mini-btn:hover {
    background: var(--color-brand-grad);
    color: var(--color-text-inverse);
    border-color: transparent;
    filter: brightness(1.07);
}
.mini-btn.mini-btn-link,
.mini-btn.mini-btn-link:hover { color: var(--color-text-inverse); }
/* The payment popup's secondary action is a slate button,
   deliberately not a second amber one. */
.pay-pop-actions .mini-btn {
    background: var(--color-surface-muted);
    border: 1px solid var(--color-border-strong);
    color: var(--color-text);
    filter: none;
}
.pay-pop-actions .mini-btn:hover {
    background: #23282f;
    border-color: var(--color-gold-line);
    color: #ffffff;
    filter: none;
}

/* ============================================================
   FINTECH CLEAN DARK — compact hero strip (2026-11-12): the
   tall split hero is retired. One slim strip carries the
   value proposition and the trust row, so search, category
   chips and the product grid start immediately.
   ============================================================ */
.hero-strip {
    display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px;
    background: var(--color-surface); border: 1px solid var(--color-border);
    border-radius: var(--radius-lg); padding: 20px 22px; margin-bottom: 22px;
    text-align: left;
}
.hero-strip-main { flex: 1 1 320px; min-width: min(320px, 100%); }
.hero-strip-title { margin: 0 0 6px; font-size: var(--font-size-2xl); font-weight: 700; letter-spacing: -0.01em; }
.hero-strip-sub { margin: 0; color: var(--color-text-muted); font-size: var(--font-size-base); line-height: 1.55; max-width: 56ch; }
.hero-strip-trust {
    flex: 0 1 620px; justify-content: space-between; gap: 10px 22px;
    background: var(--color-surface-muted); border: 1px solid var(--color-border);
    border-radius: var(--radius-md, 12px); padding: 12px 18px;
}
@media (max-width: 640px) {
    .hero-strip { padding: 16px; }
    .hero-strip-trust { justify-content: flex-start; }
}

/* ============================================================
   FINTECH CLEAN DARK — card meta row (2026-11-12): category
   and stock (dot indicator) share one quiet row; the tagline
   clamps to two lines so every card in a row stays even.
   ============================================================ */
.card-meta-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: var(--font-size-xs); color: var(--color-text-muted); margin-bottom: 6px; }
.meta-cat { font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; font-size: 11px; color: var(--color-text-muted); }
.meta-item { display: inline-flex; align-items: center; gap: 4px; }
.meta-item svg { width: 12px; height: 12px; color: var(--color-brand-text); }
.meta-bundle { border: 1px solid var(--color-gold-line); color: var(--color-brand-text); border-radius: var(--radius-pill); padding: 1px 7px; font-weight: 600; }
.meta-stock { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--color-success); }
.meta-stock .stock-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--color-success); flex: none; }
.meta-stock.low { color: var(--color-warning); }
.meta-stock.low .stock-dot { background: var(--color-warning); }
.meta-stock.out { color: var(--color-danger); }
.meta-stock.out .stock-dot { background: var(--color-danger); }
.product-tagline { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ============================================================
   FINTECH CLEAN DARK — two-column checkout (2026-11-12):
   order summary card on the left, payment + delivery form
   on the right; one column on phones, summary first.
   ============================================================ */
.checkout-grid { display: grid; gap: 20px; text-align: left; }
.checkout-col-summary { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: 18px; }
@media (min-width: 920px) {
    .checkout-grid { grid-template-columns: 5fr 7fr; align-items: start; }
    .checkout-col-summary { position: sticky; top: 84px; }
}

/* ============================================================
   CRITIQUE ROUND (2026-11-13) — three scoped fixes.
   1) The hero title inherits .page-wide h1's centering from
      base.css; the hero is a left-column layout, so pin it
      left with higher specificity. (Pay/checkout h1s keep
      their centering — that rule is theirs.)
   2) The cart badge: .cart-count sets a display value, which
      overrides the hidden attribute's UA rule, so the gold 0
      showed on an empty cart even though cart.js hides it.
      The attribute must win.
   3) Search submit: a secondary outline button, so gold is
      reserved for the active filter chip and purchase CTAs.
      Scoped under .shop-search to outrank the guarantee
      layer's .mini-btn states.
   ============================================================ */
.hero-strip .hero-strip-title { text-align: left; }
.cart-count[hidden] { display: none !important; }
.shop-search .search-submit {
    background: var(--color-surface-muted);
    border: 1px solid var(--color-border-strong);
    color: var(--color-text);
    box-shadow: none;
}
.shop-search .search-submit:hover {
    background: var(--color-surface-muted);
    border-color: var(--color-brand);
    color: var(--color-brand-text);
}
.shop-search .search-submit:focus-visible {
    background: var(--color-surface-muted);
    border-color: var(--color-brand);
    color: var(--color-brand-text);
}

/* ============================================================
   TOOLBAR REWORK (2026-11-13, owner's annotated screenshot):
   the shop toolbar was one wrapping flex row — title, search,
   chips and count all fighting for one axis, drifting off
   center. Now two deliberate rows: title + search on one
   shared center line (44px controls), category chips +
   product count on the second. Scoped under .shop-row so
   the older .shop-top flex rules retire gracefully.
   ============================================================ */
.shop-top { display: block; }
.shop-row { display: flex; align-items: center; gap: 12px 20px; }
.shop-row-main { justify-content: space-between; margin-bottom: 12px; }
.shop-row-main .shop-title { margin: 0; flex: none; }
.shop-row-main .shop-search { flex: 0 1 480px; margin: 0; }
.shop-row-main .search-wrap { flex: 1 1 auto; min-width: 0; }
.shop-row-main .shop-search input[type="search"] { height: 44px; }
.shop-row-main .search-submit { height: 44px; padding-top: 0; padding-bottom: 0; flex: none; }
.shop-row-filters { justify-content: space-between; flex-wrap: wrap; }
.shop-row-filters .catchips { margin: 0; flex: 1 1 auto; }
.shop-row-filters .shop-count { margin: 0; flex: none; }
.shop-row .catchip { min-height: 38px; display: inline-flex; align-items: center; }
@media (max-width: 720px) {
    .shop-row-main { flex-wrap: wrap; }
    .shop-row-main .shop-search { flex: 1 1 100%; }
}

/* Instant filtering (2026-11-13): cards are display:flex, which
   would override the hidden attribute — same trap as the cart
   badge. Guard it, and the JS empty-state block with it. */
.product-card[hidden] { display: none !important; }
#shopEmpty[hidden] { display: none !important; }

/* Buyer delivery details on the tracking page (2026-11-13):
   the filled dispatch fields, shown once an order is
   delivered. Self-contained — no reliance on admin styles. */
.delivery-details { margin-top: 16px; border: 1px solid var(--color-border); border-radius: 12px; padding: 14px 16px; background: var(--color-surface-muted); text-align: left; }
.delivery-details .delivery-item { font-weight: 600; margin: 12px 0 4px; }
.delivery-details .delivery-group:first-of-type .delivery-item { margin-top: 4px; }
.delivery-details dl { margin: 0; }
.delivery-details dl > div { display: flex; gap: 12px; justify-content: space-between; padding: 3px 0; border-bottom: 1px dashed var(--color-border); }
.delivery-details dl > div:last-child { border-bottom: 0; }
.delivery-details dt { color: var(--color-text-muted); }
.delivery-details dd { margin: 0; overflow-wrap: anywhere; text-align: right; }

/* Amount options (topup denominations, 2026-11-24): the product
   page's picker — one radio card per amount, the selected one
   gold-ringed, each showing its price, its saving against the
   old price, and the effective PKR-per-USDT rate so the ladder
   sells the bigger amounts by itself. */
.denom-picker { margin: 18px 0 6px; }
.denom-title { font-weight: 700; margin: 0 0 10px; }
.denom-opt { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 12px 14px; margin: 0 0 8px; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: 12px; cursor: pointer; }
.denom-opt:hover { border-color: var(--color-border-strong); }
.denom-opt.is-selected { border-color: var(--color-brand); box-shadow: 0 0 0 1px var(--color-brand); background: var(--color-brand-soft); }
.denom-opt input[type="radio"] { accent-color: var(--color-brand); width: 18px; height: 18px; margin: 0; }
.denom-label { font-weight: 700; font-size: 1.05rem; }
.denom-price { font-weight: 700; color: var(--color-gold-text); margin-left: auto; }
.denom-old { color: var(--color-text-faint); text-decoration: line-through; }
.denom-rate { color: var(--color-text-muted); font-size: 0.9rem; font-weight: 600; width: 100%; padding-left: 28px; }
.denom-summary { margin: 10px 0 2px; font-weight: 700; color: var(--color-text); }
.denom-opt.is-best { border-color: var(--color-border-strong); background: var(--color-surface); box-shadow: inset 0 0 0 1px rgba(240, 185, 11, 0.35); }
.denom-opt.is-best.is-selected { border-color: var(--color-brand); background: var(--color-brand-soft); box-shadow: 0 0 0 2px var(--color-brand); }
.denom-best { background: var(--color-brand); color: #181a20; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; }

/* Topup product page redesign (2026-11-26): balanced two-column
   layout — an elevated showcase card anchors the left, a 2x2
   tier grid with the live summary and CTAs leads the right, and
   the receive details read as one checklist. Scoped to topup
   pages so regular products keep their layout. */
.product-detail.is-topup .product-info-col { display: flex; flex-direction: column; }
.product-detail.is-topup .denom-picker { order: 3; }
.product-detail.is-topup .qty-row { order: 4; margin-top: 12px; }
.product-detail.is-topup .product-stock { order: 5; }
.product-detail.is-topup .receive-box { order: 6; }
.product-detail.is-topup .product-desc { order: 7; }
.product-detail.is-topup .product-wa { order: 8; }
.product-detail.is-topup .product-paynote { order: 9; }
.topup-showcase { background: radial-gradient(120% 90% at 50% 0%, rgba(240, 185, 11, 0.10), transparent 55%), var(--color-surface); border: 1px solid var(--color-border); border-radius: 18px; padding: 18px; }
.topup-showcase .product-art { border-radius: 12px; }
.topup-badges { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 4px; }
.topup-badge { border: 1px solid var(--color-border-strong); color: var(--color-text); font-size: 0.78rem; font-weight: 700; padding: 5px 10px; border-radius: 999px; }
.topup-trust { margin-top: 14px; border-top: 1px solid var(--color-border); padding-top: 12px; }
.topup-trust-title { font-weight: 800; margin: 0 0 8px; }
.topup-trust ul { list-style: none; margin: 0; padding: 0; }
.topup-trust li { position: relative; padding-left: 24px; margin: 0 0 7px; color: var(--color-text-muted); line-height: 1.5; font-size: 0.92rem; }
.topup-trust li::before { content: "\2713"; position: absolute; left: 0; top: 0; color: var(--color-success, #0ecb81); font-weight: 800; }
.denom-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.denom-grid .denom-opt { flex-direction: column; align-items: flex-start; gap: 6px; margin: 0; padding: 14px; position: relative; }
.denom-grid .denom-opt input[type="radio"] { position: absolute; opacity: 0; width: 1px; height: 1px; }
.denom-grid .denom-opt:focus-within { outline: 2px solid var(--color-brand); outline-offset: 2px; }
.denom-grid .denom-opt.is-selected { box-shadow: 0 0 0 2px var(--color-brand); }
.denom-grid .denom-opt.is-selected::after { content: "\2713"; position: absolute; top: 10px; right: 12px; width: 22px; height: 22px; line-height: 22px; text-align: center; border-radius: 50%; background: var(--color-brand); color: #181a20; font-weight: 800; font-size: 0.8rem; }
.denom-grid .denom-label { font-size: 1.15rem; }
.denom-grid .denom-price { margin-left: 0; font-size: 1.05rem; font-family: "JetBrains Mono", monospace; }
.denom-grid .denom-rate { width: auto; padding-left: 0; font-family: "JetBrains Mono", monospace; font-size: 0.8rem; }
.product-detail.is-topup .denom-summary { background: var(--color-brand-soft); border: 1px solid var(--color-brand); border-radius: 12px; padding: 12px 14px; margin-top: 12px; }
.receive-checklist { list-style: none; padding-left: 0 !important; }
.receive-checklist li { position: relative; padding-left: 26px; margin-bottom: 8px; }
.receive-checklist li::before { content: "\2713"; position: absolute; left: 0; top: 0; color: var(--color-success, #0ecb81); font-weight: 800; }
@media (min-width: 900px) {
    .product-detail.is-topup { grid-template-columns: 0.92fr 1.08fr; gap: 34px; }
    .product-detail.is-topup .product-info-col { position: static; }
    .topup-showcase { position: sticky; top: 84px; }
}
@media (max-width: 560px) {
    .denom-grid { grid-template-columns: 1fr; }
}

/* Topup page polish round 2 (2026-11-26): centered title block
   with stat chips, a smaller centered logo in the showcase,
   tier cards with a rate meter, and a 3-step strip. */
.product-detail.is-topup .eyebrow { align-self: center; border: 1px solid var(--color-border-strong); border-radius: 999px; padding: 4px 12px; }
.product-detail.is-topup h1 { text-align: center; font-size: 34px; margin: 10px 0 6px; }
.product-detail.is-topup .product-price-row { justify-content: center; }
.topup-tagline { order: 2; text-align: center; color: var(--color-text-muted); margin: 2px 0 10px; }
.topup-stats { order: 2; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0 0 6px; }
.topup-stat { font-family: "JetBrains Mono", monospace; font-size: 0.8rem; font-weight: 700; color: var(--color-gold-text); border: 1px solid var(--color-border); background: var(--color-surface); border-radius: 999px; padding: 5px 11px; }
.topup-showcase { background: radial-gradient(90% 60% at 50% 0%, rgba(240, 185, 11, 0.12), transparent 55%), radial-gradient(80% 55% at 50% 30%, rgba(34, 197, 94, 0.10), transparent 60%), var(--color-surface); padding: 22px; }
.topup-showcase .product-art { max-width: 300px; margin: 4px auto 0; box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35); }
.topup-badges { justify-content: center; }
.topup-trust-title { text-align: center; }
.topup-payrow { text-align: center; font-family: "JetBrains Mono", monospace; font-size: 0.78rem; color: var(--color-text-muted); margin: 12px 0 0; }
.denom-grid .denom-opt { transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease; }
.denom-grid .denom-opt:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28); }
.denom-grid .denom-label { font-size: 1.25rem; }
.denom-meter { width: 100%; height: 6px; margin-top: 2px; }
.topup-steps { order: 7; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 14px 0 4px; }
.product-detail.is-topup .product-desc { order: 8; }
.product-detail.is-topup .product-wa { order: 9; }
.product-detail.is-topup .product-paynote { order: 10; }
.topup-step { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: 12px; padding: 12px; display: flex; flex-direction: column; gap: 3px; }
.topup-step-num { font-family: "JetBrains Mono", monospace; color: var(--color-brand); font-weight: 800; font-size: 1.05rem; }
.topup-step strong { font-size: 0.95rem; }
.topup-step span:last-child { color: var(--color-text-muted); font-size: 0.85rem; line-height: 1.45; }
@media (max-width: 560px) {
    .product-detail.is-topup h1 { font-size: 26px; }
    .topup-showcase .product-art { max-width: 240px; }
    .topup-steps { grid-template-columns: 1fr; }
}

/* Dedicated topup page (2026-11-26): topup products get a full
   page of their own — centered hero, amount stage with a sticky
   order panel, comparison table, steps, checklist and FAQ. */
.topup-page { max-width: 1180px; margin: 0 auto; }
.topup-hero { text-align: center; padding: 26px 16px 8px; }
.topup-hero-art { width: 190px; margin: 0 auto 14px; border-radius: 16px; overflow: hidden; box-shadow: 0 18px 44px rgba(0, 0, 0, 0.38); }
.topup-hero-art svg, .topup-hero-art img { width: 100%; height: auto; display: block; }
.topup-hero .eyebrow { display: inline-block; border: 1px solid var(--color-border-strong); border-radius: 999px; padding: 4px 12px; }
.topup-hero h1 { font-size: 38px; margin: 12px 0 6px; }
.topup-hero .topup-stats { order: 0; }
.topup-stage { display: grid; grid-template-columns: 1.15fr 0.85fr; grid-template-areas: "picker order" "info order"; gap: 22px; align-items: start; margin-top: 18px; }
.topup-card { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: 18px; padding: 22px; }
.topup-picker-card { grid-area: picker; }
.topup-order { grid-area: order; position: sticky; top: 84px; }
.topup-info { grid-area: info; }
.topup-order-title { font-weight: 800; font-size: 1.05rem; margin: 0 0 10px; }
.topup-order .product-price { font-size: 30px; }
.topup-order .denom-summary { background: var(--color-brand-soft); border: 1px solid var(--color-brand); border-radius: 12px; padding: 12px 14px; }
.topup-order .qty-row { margin-top: 14px; }
.topup-info-title { font-size: 1.15rem; margin: 22px 0 12px; }
.topup-info-title:first-child { margin-top: 0; }
.topup-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.topup-table th, .topup-table td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--color-border); }
.topup-table th { color: var(--color-text-muted); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em; }
.topup-table td:nth-child(2), .topup-table td:nth-child(3), .topup-table td:nth-child(4) { font-family: "JetBrains Mono", monospace; font-size: 0.88rem; }
.topup-info .topup-steps { order: 0; margin-top: 18px; }
.topup-faq { border-top: 1px solid var(--color-border); padding: 10px 2px; }
.topup-faq summary { cursor: pointer; font-weight: 700; }
.topup-faq p { color: var(--color-text-muted); line-height: 1.6; margin: 8px 0 2px; }
@media (max-width: 900px) {
    .topup-stage { grid-template-columns: 1fr; grid-template-areas: "picker" "order" "info"; }
    .topup-order { position: static; }
    .topup-hero h1 { font-size: 28px; }
    .topup-hero-art { width: 150px; }
}

/* Topup page density fix (2026-11-26): wide hero band, filled
   amount cards, order breakdown, split info sections. */
.topup-page { max-width: 1360px; }
.topup-hero { display: grid; grid-template-columns: 190px 1fr 230px; align-items: center; gap: 24px; text-align: center; background: radial-gradient(70% 120% at 50% 0%, rgba(240, 185, 11, 0.08), transparent 55%), var(--color-surface); border: 1px solid var(--color-border); border-radius: 18px; padding: 20px 24px; }
.topup-hero-art { margin: 0; width: 190px; }
.topup-hero-main { text-align: center; }
.topup-hero-rate { text-align: center; border-left: 1px solid var(--color-border); padding-left: 20px; }
.topup-hero-rate-num { font-family: "JetBrains Mono", monospace; font-size: 1.5rem; font-weight: 800; color: var(--color-gold-text); margin: 0; }
.topup-hero-rate-num span { font-size: 0.85rem; }
.topup-hero-rate-label { color: var(--color-text-muted); font-size: 0.85rem; margin: 2px 0 8px; }
.topup-hero-rate-save { font-weight: 800; color: var(--color-success, #0ecb81); margin: 0 0 2px; }
.topup-truststrip { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 26px; margin: 12px 0 0; color: var(--color-text-muted); font-size: 0.88rem; font-weight: 600; }
.topup-stage { gap: 18px; margin-top: 14px; }
.topup-card { padding: 20px; }
.denom-grid .denom-opt { display: grid; grid-template-columns: 1fr auto; align-items: center; column-gap: 10px; }
.denom-grid .denom-best { justify-self: end; }
.denom-grid .denom-opt.is-best.is-selected .denom-best { margin-right: 30px; }
.denom-grid .denom-opt.is-selected .denom-label::after { content: " \00B7 Selected"; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; color: var(--color-gold-text); vertical-align: middle; }
.denom-grid .denom-old { justify-self: end; }
.denom-grid .denom-rate { justify-self: end; font-size: 0.85rem; }
.denom-grid .denom-meter { grid-column: 1 / -1; }
.denom-grid .denom-label { grid-row: 1; grid-column: 1; }
.denom-grid .denom-best { grid-row: 1; grid-column: 2; }
.denom-grid .denom-price { grid-row: 2; grid-column: 1; }
.denom-grid .denom-old { grid-row: 2; grid-column: 2; }
.denom-grid .save-pill { grid-row: 3; grid-column: 1; justify-self: start; }
.denom-grid .denom-rate { grid-row: 3; grid-column: 2; }
.denom-grid .denom-meter { grid-row: 4; }
.topup-breakdown { margin: 12px 0 4px; border-top: 1px solid var(--color-border); }
.topup-breakdown div { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px solid var(--color-border); }
.topup-breakdown dt { color: var(--color-text-muted); font-size: 0.9rem; }
.topup-breakdown dd { margin: 0; font-family: "JetBrains Mono", monospace; font-weight: 700; font-size: 0.92rem; }
.topup-order .add-btn { background: transparent; border: 1px solid var(--color-border-strong); color: var(--color-text); }
.topup-order .paybtn-whatsapp { background: transparent; border: 1px solid #25d366; color: #25d366; }
.topup-info-grid { display: grid; grid-template-columns: 1.25fr 0.75fr; gap: 22px; align-items: start; }
.topup-steps-stack { grid-template-columns: 1fr; margin-top: 0; }
.topup-table tr.is-active td { background: var(--color-brand-soft); font-weight: 700; }
.topup-info-title { margin: 18px 0 10px; }
.topup-faq summary { list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.topup-faq summary::-webkit-details-marker { display: none; }
.topup-faq summary::after { content: "+"; color: var(--color-brand); font-weight: 800; }
.topup-faq[open] summary::after { content: "\2212"; }
@media (max-width: 900px) {
    .topup-hero { grid-template-columns: 1fr; justify-items: center; }
    .topup-hero-rate { border-left: none; border-top: 1px solid var(--color-border); padding: 12px 0 0; }
    .topup-info-grid { grid-template-columns: 1fr; }
}

/* Topup improvements 19-30 (2026-11-26). */
.denom-grid .denom-per1000 { grid-row: 3; grid-column: 1 / -1; font-family: "JetBrains Mono", monospace; font-size: 0.8rem; color: var(--color-text-muted); }
.denom-grid .save-pill { grid-row: 4; }
.denom-grid .denom-rate { grid-row: 4; }
.denom-grid .denom-meter { grid-row: 5; }
.topup-delivery { color: var(--color-text-muted); font-size: 0.9rem; margin: 8px 0 0; }
.topup-proof { color: var(--color-success, #0ecb81); font-weight: 700; font-size: 0.9rem; margin: 6px 0 0; }
.topup-callout { background: var(--color-brand-soft); border: 1px solid var(--color-border); border-left: 3px solid var(--color-brand); border-radius: 10px; padding: 12px 14px; margin-top: 18px; line-height: 1.6; }
.topup-info .receive-checklist li::before { background: rgba(14, 203, 129, 0.15); border-radius: 50%; width: 18px; height: 18px; line-height: 18px; text-align: center; font-size: 0.75rem; }
.topup-related { margin-top: 22px; }
.topup-hero-art { background: linear-gradient(135deg, #1e2329, #14532d); }
.topup-page a:focus-visible, .topup-page button:focus-visible, .topup-faq summary:focus-visible { outline: 2px solid var(--color-brand); outline-offset: 2px; }
@keyframes denomPop { 0% { transform: scale(1); } 50% { transform: scale(1.02); } 100% { transform: scale(1); } }
.denom-grid .denom-opt.is-selected { animation: denomPop 0.25s ease; }
@media (prefers-reduced-motion: reduce) {
    .denom-grid .denom-opt.is-selected { animation: none; }
    .denom-grid .denom-opt { transition: none; }
}

/* Checkout topup fields (2026-11-24, owner report): the account
   number rendered as a small default browser box because
   input[type="tel"] was missing from the shared input rule (fixed
   in components.css), and the field labels used the small-caps
   dashboard style while the checkout's own labels are plain 16px.
   Here the topup labels match the checkout form, the number reads
   large with spaced tabular digits (checkout.js auto-formats it
   as 0321 1234567), and the hint turns green once the number is a
   valid 03 number. */
#topupFields .field label {
    font-size: 16px;
    font-weight: 400;
    letter-spacing: normal;
    text-transform: none;
    color: var(--color-text);
    margin: 14px 0 6px;
}
#topupFields input[type="tel"] {
    font-size: 17px;
    letter-spacing: 0.08em;
    font-variant-numeric: tabular-nums;
}
#topupFields .hint.is-ok { color: var(--color-success); }

/* Bulk-price nudge on cart lines (Batch 1, 2026-11-24). */
.bulk-nudge { color: var(--color-success); font-weight: 600; }

/* Resume-payment bar (Batch 2, 2026-11-24). */
.resume-bar { position: fixed; right: 20px; bottom: 20px; z-index: 61; display: flex; align-items: center; gap: 12px; padding: 10px 12px; background: var(--color-surface); border: 1px solid var(--color-border-strong); border-radius: 14px; box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28); max-width: min(520px, calc(100vw - 24px)); }
.resume-bar.resume-stacked { bottom: 100px; }
.resume-text { font-size: 13.5px; color: var(--color-text); }
.resume-cta { display: flex; align-items: center; padding: 9px 14px; font-size: 13.5px; font-weight: 800; color: var(--color-text-inverse); background: var(--color-brand-grad-135); border-radius: 10px; text-decoration: none; white-space: nowrap; }
.resume-close { background: none; border: none; color: var(--color-text-muted); font-size: 18px; line-height: 1; cursor: pointer; padding: 2px 4px; }
@media (max-width: 640px) {
    .resume-bar { left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); }
    .resume-bar.resume-stacked { bottom: calc(100px + env(safe-area-inset-bottom, 0px)); }
}
/* Pay-page trust block + claim reference + copy chips (Batch 2). */
.pay-trust { margin-top: 16px; padding: 14px 16px; background: var(--color-surface-muted); border: 1px solid var(--color-border); border-radius: 12px; }
.pay-trust p { margin: 0 0 8px; font-size: 13.5px; line-height: 1.55; color: var(--color-text-muted); }
.pay-trust p:last-child { margin-bottom: 0; }
.pay-trust strong { color: var(--color-text); }
.copy-chip { display: inline-block; margin-left: 6px; padding: 3px 9px; font-size: 12px; font-weight: 700; color: var(--color-text); background: var(--color-surface); border: 1px solid var(--color-border-strong); border-radius: 999px; cursor: pointer; }
.claim-ref { margin: 0 0 12px; text-align: left; }
.claim-ref label { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 600; }
.claim-ref .optional { font-weight: 400; color: var(--color-text-muted); font-size: 12.5px; }
.claim-ref input { width: 100%; }

/* Promo Apply (Batch 5, 2026-11-24): the code is checked live
   against /promo-check so the discounted total shows before
   payment, not after. */
.promo-row { display: flex; gap: 8px; align-items: stretch; }
.promo-row input { flex: 1 1 auto; min-width: 0; }
.promo-row .mini-btn { flex: 0 0 auto; min-height: 44px; padding: 6px 16px; }
.promo-msg { font-size: 13px; margin: 6px 0 0; }
.promo-msg.is-ok { color: var(--color-success); }
.promo-msg.is-err { color: var(--color-danger); }
.promo-total span:last-child { color: var(--color-success); font-weight: 700; }

/* Topup improvements 5-50 (2026-11-26). */
.topup-page { margin-top: 18px; }
.topup-hero { padding: 14px 22px; }
.topup-hero .eyebrow { margin: 0 0 6px; }
.topup-hero h1 { font-size: 34px; margin: 4px 0 4px; }
.topup-info-title { font-size: 1.3rem; }
.topup-hero-artwrap { text-align: center; }
.topup-hero-caption { color: #c3cad4; font-size: 0.82rem; margin: 8px 0 0; line-height: 1.4; }
.topup-truststrip span::before { content: "\2713"; color: var(--color-success, #0ecb81); font-weight: 800; margin-right: 6px; }
.topup-back, .product-back { display: inline-block; padding: 10px 4px; min-height: 40px; }
.denom-grid .denom-opt { padding: 12px 14px; row-gap: 5px; }
.denom-grid .denom-radio { display: inline-block; width: 15px; height: 15px; border: 2px solid var(--color-border-strong); border-radius: 50%; margin-right: 8px; vertical-align: -2px; }
.denom-grid .denom-opt.is-selected .denom-radio { background: var(--color-brand); box-shadow: inset 0 0 0 3px #181a20; border-color: var(--color-brand); }
.denom-grid .denom-old { text-decoration: none; color: #c3cad4; font-size: 0.78rem; }
.denom-grid .denom-old s { text-decoration: line-through; }
.denom-grid .save-pill { grid-row: 3; font-size: 0.85rem; padding: 5px 10px; }
.denom-grid .save-pill.is-base { background: var(--color-surface-muted); color: #c3cad4; border: 1px solid var(--color-border); }
.denom-grid .denom-rate { grid-row: 3; color: #c3cad4; }
.denom-grid .denom-meter { grid-row: 4; }
.topup-delivery { color: var(--color-text); font-size: 0.95rem; background: rgba(14, 203, 129, 0.08); border: 1px solid rgba(14, 203, 129, 0.25); border-radius: 10px; padding: 10px 12px; }
.topup-limit-note { border: 1px solid var(--color-border-strong); border-radius: 10px; padding: 10px 12px; color: var(--color-text); font-size: 0.92rem; margin: 12px 0; }
.topup-ctas { grid-template-columns: 0.85fr 1.15fr; }
.topup-wa-link { display: inline-block; color: var(--color-success, #0ecb81); font-weight: 700; padding: 8px 2px; }
.topup-info-grid { grid-template-columns: 1fr; }
.topup-info-grid .topup-steps { grid-template-columns: repeat(3, 1fr); }
.topup-table th { font-size: 0.8rem; letter-spacing: 0.05em; color: #c3cad4; }
.topup-table tr.is-active { background: rgba(240, 185, 11, 0.14); box-shadow: inset 3px 0 0 var(--color-brand); }
.topup-table tr.is-active td:first-child { font-weight: 800; }
.table-best { background: var(--color-brand); color: #181a20; border-radius: 999px; padding: 2px 8px; font-size: 0.72rem; font-weight: 800; margin-left: 6px; white-space: nowrap; }
.topup-info .receive-checklist { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 22px; }
.topup-info .receive-checklist li:nth-child(2) { grid-column: 1 / -1; }
.topup-info .receive-checklist li.receive-warning { background: rgba(246, 70, 93, 0.08); border: 1px solid rgba(246, 70, 93, 0.35); border-left: 3px solid var(--color-danger, #f6465d); border-radius: 10px; padding: 10px 12px 10px 34px; }
.topup-info .receive-checklist li.receive-warning::before { content: "!"; background: rgba(246, 70, 93, 0.2); color: var(--color-danger, #f6465d); left: 10px; top: 10px; }
.receive-urdu { display: block; margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--color-border-strong); text-align: right; }
.topup-faq p { color: #d5dbe3; font-size: 0.95rem; }
.footer-links a { display: inline-block; padding: 8px 2px; min-height: 36px; }
@media (max-width: 900px) {
    .topup-hero-artwrap { justify-self: center; }
    .topup-hero-rate { width: 100%; text-align: center; }
    .topup-info-grid .topup-steps { grid-template-columns: 1fr; }
    .topup-info .receive-checklist { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    .topup-truststrip { gap: 6px 14px; }
    .topup-truststrip span { white-space: normal; }
    .topup-table thead { display: none; }
    .topup-table, .topup-table tbody, .topup-table tr, .topup-table td { display: block; width: 100%; }
    .topup-table tr { border: 1px solid var(--color-border); border-radius: 10px; padding: 8px 10px; margin-bottom: 8px; }
    .topup-table td { display: flex; justify-content: space-between; gap: 12px; border: none; padding: 4px 0; }
    .topup-table td::before { content: attr(data-label); color: #c3cad4; font-weight: 700; }
    .topup-ctas { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
    .denom-grid { grid-template-columns: 1fr; }
    .denom-grid .denom-opt { grid-template-columns: 1fr auto; }
    .denom-grid .denom-old { font-size: 0.72rem; }
}

/* Homepage improvements 1-100 (2026-11-26). */
.topbar { min-height: 56px; }
.brand-tag { font-size: 11px; letter-spacing: 0.08em; }
.nav-link { min-height: 44px; color: #c3cad4; }
.header-search input { background: var(--color-surface-muted); border: 1px solid var(--color-border-strong); border-radius: 999px; color: var(--color-text); padding: 9px 14px; width: 180px; }
.hero-strip { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 22px; align-items: center; padding-bottom: 10px; }
.hero-strip-sub { font-size: 1.08rem; color: #d5dbe3; }
.hero-strip-ctas { display: flex; gap: 10px; flex-wrap: wrap; margin: 16px 0 8px; }
.hero-ghost-btn { display: inline-flex; align-items: center; border: 1px solid var(--color-border-strong); color: var(--color-text); border-radius: 10px; padding: 12px 18px; font-weight: 700; }
.hero-strip-note { color: #c3cad4; font-size: 0.9rem; }
.hero-showcase { display: flex; gap: 14px; align-items: center; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: 16px; padding: 14px; color: var(--color-text); }
.hero-showcase-art { width: 150px; flex: 0 0 auto; border-radius: 12px; overflow: hidden; }
.hero-showcase-art svg, .hero-showcase-art img { width: 100%; height: auto; display: block; }
.hero-showcase-body { display: flex; flex-direction: column; gap: 4px; }
.hero-showcase-meta { color: #c3cad4; font-size: 0.85rem; }
.hero-showcase-price { font-family: "JetBrains Mono", monospace; font-weight: 800; color: var(--color-gold-text); }
.hero-showcase-price s { color: #c3cad4; font-weight: 400; font-size: 0.85rem; }
.hero-showcase-cta { color: var(--color-brand); font-weight: 800; }
.hero-strip-trust { grid-column: 1 / -1; font-size: 0.95rem; color: #d5dbe3; }
.hero-strip-trust svg { color: var(--color-brand); }
.search-shortcuts { color: #c3cad4; margin: 8px 0 0; }
.search-shortcuts a { color: var(--color-brand); font-weight: 700; margin-right: 10px; padding: 6px 2px; }
.catchip { min-height: 44px; display: inline-flex; align-items: center; border: 1px solid var(--color-border-strong); color: #d5dbe3; }
.shop-count { color: #d5dbe3; font-size: 0.95rem; font-weight: 700; }
.shop-tools { display: flex; gap: 12px; flex-wrap: wrap; }
.shop-tools label { color: #c3cad4; font-size: 0.85rem; font-weight: 700; }
.shop-tools select { background: var(--color-surface-muted); color: var(--color-text); border: 1px solid var(--color-border-strong); border-radius: 8px; padding: 9px; min-height: 44px; }
.cover-variant { position: absolute; left: 10px; bottom: 10px; background: rgba(11, 14, 17, 0.85); color: #fff; border: 1px solid rgba(255,255,255,0.35); border-radius: 999px; padding: 3px 9px; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.05em; }
.product-badge { font-size: 0.75rem; }
.meta-cat { font-size: 0.8rem; color: #c3cad4; }
.card-metaline { color: #c3cad4; font-size: 0.88rem; margin: 2px 0 4px; font-weight: 600; }
.product-card h3 { min-height: 2.4em; }
.product-price { letter-spacing: 0.01em; }
.add-btn-primary { background: var(--color-brand); color: #181a20; }
.help-tile { display: flex; align-items: center; }
.grid-disclaimer { color: #c3cad4; font-size: 0.88rem; margin-top: 12px; }
.compare-table { width: 100%; border-collapse: collapse; }
.compare-table th { text-align: left; color: #c3cad4; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.05em; padding: 10px; }
.compare-table td { padding: 12px 10px; border-top: 1px solid var(--color-border); }
.compare-table a { color: var(--color-brand); font-weight: 800; }
.how-steps .step { min-height: 0; }
.track-link { color: var(--color-brand); font-weight: 800; text-decoration: underline; }
.promise { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 22px; align-items: start; }
.promise-points { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.promise-points li { border: 1px solid var(--color-border); border-radius: 10px; padding: 12px; }
.faq-teaser-item summary { cursor: pointer; font-weight: 800; padding: 8px 0; }
.faq-teaser-item p { color: #d5dbe3; font-size: 0.98rem; }
.final-cta { border-radius: 20px; margin-left: auto; margin-right: auto; }
.recent-strip { overflow-x: auto; }
@media (max-width: 900px) {
    .hero-strip { grid-template-columns: 1fr; }
    .header-search { display: none; }
    .promise { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    .topnav { overflow-x: auto; flex-wrap: nowrap; }
    .secure-badge { display: none; }
    .hero-showcase { flex-direction: column; align-items: flex-start; }
    .compare-table thead { display: none; }
    .compare-table, .compare-table tbody, .compare-table tr, .compare-table td { display: block; width: 100%; }
    .compare-table tr { border: 1px solid var(--color-border); border-radius: 10px; padding: 8px 10px; margin-bottom: 8px; }
    .compare-table td { display: flex; justify-content: space-between; gap: 12px; border: none; padding: 4px 0; }
    .compare-table td::before { content: attr(data-label); color: #c3cad4; font-weight: 700; }
}

/* Homepage mistake fixes 1-70 (2026-11-26). */
[hidden] { display: none !important; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.topbar { padding: 8px 20px; gap: 16px; }
.topbar .brand-tag { font-size: 12px; }
.topnav { margin-left: 12px; }
.nav-link { min-height: 40px; }
.nav-link.active { background: var(--color-brand); color: #181a20; border-color: var(--color-brand); }
.header-search-link { margin-left: auto; color: #d5dbe3; font-weight: 700; border: 1px solid var(--color-border-strong); border-radius: 999px; padding: 9px 16px; text-decoration: none; }
.secure-badge { background: transparent; border: none; color: #c3cad4; }
.hero-strip { grid-template-columns: 1fr 560px; gap: 18px; }
.hero-strip-ctas .paybtn { width: auto; }
.hero-ghost-btn, .hero-showcase, .add-btn, .search-shortcuts a, .compare-table a { text-decoration: none; }
.hero-showcase { width: 100%; }
.hero-showcase-art { height: 150px; }
.hero-showcase-art svg { height: 100%; }
.hero-strip-note { color: #d5dbe3; }
.hero-strip-trust { justify-content: flex-start; gap: 12px 28px; margin-top: 6px; }
.search-shortcuts a { color: #c3cad4; font-weight: 600; }
.shop-count { margin-right: auto; }
.clear-filters { background: transparent; border: 1px solid var(--color-border-strong); color: #d5dbe3; border-radius: 8px; padding: 9px 12px; min-height: 44px; font-weight: 700; cursor: pointer; }
#productGrid { grid-template-columns: repeat(4, 1fr); }
.help-tile { border: 1px solid var(--color-border); align-items: stretch; }
.help-tile .product-info { display: flex; flex-direction: column; justify-content: center; gap: 8px; width: 100%; }
.help-tile .paybtn { width: 100%; }
.cover-variant { font-size: 0.75rem; }
.product-tagline { min-height: 2.6em; }
.save-pill { font-size: 0.8rem; color: #4ade80; background: rgba(14, 203, 129, 0.18); }
.grid-disclaimer { margin-top: 8px; }
.compare-table { table-layout: fixed; }
.compare-table th:nth-child(1) { width: 34%; }
.compare-table th:nth-child(2) { width: 26%; }
.compare-table th:nth-child(3) { width: 16%; }
.compare-table th:nth-child(4) { width: 14%; }
.compare-table th { font-size: 0.85rem; color: #d5dbe3; }
.step-num { color: var(--color-brand); opacity: 1; }
.promise { background: var(--color-surface); }
.promise-main svg { width: 56px; height: 56px; }
.land-section { margin: 36px auto; }
.land-section .land-h, .land-section .land-sub { text-align: left; }
.faq-teaser { max-width: 920px; }
.faq-teaser-item summary { list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq-teaser-item summary::-webkit-details-marker { display: none; }
.faq-teaser-item summary::after { content: "+"; color: var(--color-brand); font-weight: 800; }
.faq-teaser-item[open] summary::after { content: "\2212"; }
.faq-teaser-item summary:focus-visible { outline: 2px solid var(--color-brand); outline-offset: 2px; }
.final-cta { max-width: 1100px; }
.footer-links a { font-size: 0.92rem; color: #c3cad4; }
.footer p { color: #c3cad4; font-size: 0.92rem; }
.empty-shop .paybtn { width: auto; }
@media (max-width: 1100px) {
    #productGrid { grid-template-columns: repeat(3, 1fr); }
    .hero-strip { grid-template-columns: 1fr; }
    .hero-showcase { max-width: 560px; }
}
@media (max-width: 760px) {
    #productGrid { grid-template-columns: repeat(2, 1fr); }
    .hero-showcase-art { height: 110px; width: 110px; }
}
@media (max-width: 480px) {
    #productGrid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
    .hero-strip { gap: 12px; padding: 16px 14px; }
    .hero-strip-title { font-size: 30px; }
    .hero-strip-sub { font-size: 0.98rem; }
    .hero-showcase { padding: 10px; }
    .hero-strip-trust { font-size: 0.9rem; gap: 8px 16px; }
}

/* Minor-mistake fixes 1-84 (2026-11-26). */
.topbar { background: var(--color-bg); }
.nav-link, .header-search-link, .secure-badge { height: 40px; min-height: 40px; display: inline-flex; align-items: center; gap: 6px; }
.nav-link.active { box-shadow: none; }
.paybtn, .hero-ghost-btn { height: 48px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; }
.paybtn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; box-shadow: 0 0 0 4px #181a20; }
.nav-link:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.hero-strip { max-width: 1360px; margin-left: auto; margin-right: auto; }
.hero-strip-ctas { align-items: stretch; }
.hero-strip-sub, .promise-main p, .help-tile p { text-wrap: balance; }
.hero-showcase { box-shadow: none; }
.hero-showcase-body { gap: 6px; }
.hero-strip-trust svg { width: 16px; height: 16px; vertical-align: -3px; }
.usp-strip { width: fit-content; }
.catchip:hover, .search-shortcuts a:hover { color: var(--color-brand); border-color: var(--color-brand); }
.shop-row-filters { align-items: flex-end; }
.clear-filters { height: 44px; border-radius: 10px; }
.shop-tools select { border-radius: 10px; height: 44px; }
.shop-count { display: none; }
.product-info { display: flex; flex-direction: column; }
.product-price-row { margin-top: auto; }
.product-tagline { color: #c3cad4; }
.product-price small { font-size: 0.75rem; vertical-align: baseline; color: #c3cad4; }
.price-from { font-size: 0.85rem; }
.meta-cat { letter-spacing: 0.03em; }
.product-card:hover .add-btn-primary { filter: brightness(1.08); }
.help-tile .product-info { padding: 16px; }
.help-topics { color: #c3cad4; font-size: 0.92rem; }
.compare-table { outline: 1px solid var(--color-border); border-radius: 12px; }
.compare-table th { padding-top: 12px; padding-bottom: 12px; }
.compare-price { color: var(--color-brand); font-family: "JetBrains Mono", monospace; font-weight: 700; }
.steps-grid { align-items: start; }
.step-num { width: 44px; text-align: right; }
.track-link { text-decoration: none; }
.track-link:hover { text-decoration: underline; }
.promise { border-color: var(--color-border); max-width: 1100px; align-items: stretch; }
.promise-main svg { width: 40px; height: 40px; }
.promise-list li::before { content: "\2713"; color: var(--color-brand); font-weight: 800; margin-right: 8px; }
.faq-teaser { max-width: 980px; }
.faq-teaser-item p { margin: 10px 0; }
.faq-teaser-item summary::after { width: 16px; text-align: center; }
.recent-section { min-height: 120px; }
.recent-section h2, .recent-title { font-size: 28px; }
.recent-card { padding: 12px; }
.recent-view { color: var(--color-brand); font-weight: 700; }
.final-cta { max-width: 1360px; padding: 32px; }
.footer { text-align: left; }
.footer-links { justify-content: flex-start; }
.footer a[href^="mailto:"] { text-decoration: none; }
::placeholder { color: #b6bfcc; }
@media (max-width: 760px) {
    .shop-row-filters { gap: 10px; }
    .recent-strip { flex-wrap: wrap; }
}

.product-info { flex: 1; }

/* Interface-quality pass (jakubkrehel/skills, 2026-11-26). */
.catchip, .shop-tools select, .clear-filters, .denom-radio { border-color: var(--color-control-border); }
.catchip:hover, .shop-tools select:hover, .clear-filters:hover { border-color: var(--color-control-border-hover); }
.mini-cart-items { overscroll-behavior: contain; }
.promise-main p, .help-tile p { text-wrap: pretty; }
.product-price, .hero-showcase-price, .topup-order .product-price, .checkout-bar-total strong { font-variant-numeric: tabular-nums; }
@media (max-width: 760px) {
    .shop-search input[type="search"], .shop-tools select, .promo-row input, #note, .topup-fields input { font-size: 16px; }
}

/* Main-website mistake fixes 1-36 (2026-11-26). */
.topnav .nav-link { gap: 8px; }
.nav-link .nav-icon { flex: none; margin-right: 0; }
.hero-showcase::before, .hero-showcase::after { display: none; }
.hero-showcase-cta { display: inline-flex; align-items: center; width: fit-content; min-height: 36px; padding: 0 14px; border: 1px solid var(--color-brand); border-radius: 10px; background: rgba(240, 185, 11, 0.08); color: var(--color-brand); }
.shop-search input[type="search"] { border-width: 1px; }
.shop-search .search-submit { background: var(--color-brand); color: #181a20; border-color: var(--color-brand); font-weight: 800; }
.shop-row-filters { align-items: flex-end; gap: 20px; justify-content: flex-start; }
.shop-tools { align-items: flex-end; margin-left: 0; }
.shop-tools label { display: flex; flex-direction: column; gap: 6px; }
.shop-tools select, .clear-filters { height: 44px; min-height: 44px; align-self: flex-end; }
.product-price-row { align-items: baseline; align-content: flex-start; gap: 6px; min-height: 48px; }
.product-price small { margin-left: 2px; }
.product-old { align-self: baseline; }
.product-badge { top: 12px; left: 12px; }
.compare-table th:last-child { text-align: right; }
.faq-teaser { max-width: 1100px; }
.final-cta { padding: 28px 32px; }
.product-detail h1, .product-detail .eyebrow { text-align: left; }
.product-detail .product-price { letter-spacing: 0; }
.product-price small { margin-left: 4px; }
.card-qty button, .cart-qty button, .mini-qty button { border: 1px solid var(--color-control-border); }
.card-qty input, .cart-qty input, .mini-qty input { border: 1px solid var(--color-control-border); }
.add-btn { background: var(--color-surface-muted); color: var(--color-text); border: 1px solid var(--color-control-border); }
.paybtn-whatsapp { background: transparent; color: #25d366; border: 1px solid #25d366; box-shadow: none; }
.related-grid, .topup-related .product-grid { justify-content: center; }
.topup-hero-caption, .topup-rate-sub { max-width: 340px; text-wrap: balance; }
.denom-opt { overflow: hidden; }
.denom-meter { width: calc(100% - 4px); margin: 8px 2px 0; }
.topup-order strong, .compare-table td { letter-spacing: 0; }
.compare-table tr.is-active { background: rgba(240, 185, 11, 0.16); color: var(--color-text); }
.receive-checklist { max-width: none; }
.topup-info-grid { align-items: stretch; }
.cart-scrim { background: rgba(0, 0, 0, 0.55); }
.mini-cart-empty { padding: 24px 18px; }
.mini-cart-items { flex: 0 1 auto; }
.cart-page, .cart-wrap { max-width: 980px; }
.added-notice { white-space: normal; max-width: min(92vw, 420px); }
body:has(.added-notice:not([hidden])) .cart-bar { display: none; }
.checkout-col-main input, .checkout-col-main select, .checkout-col-main textarea { border-color: var(--color-border-strong); }
#agree { accent-color: var(--color-brand); }
.tile input[type="radio"] { appearance: auto; width: 18px; height: 18px; accent-color: var(--color-brand); }
.checkout-steps li { color: #aab2bd; }
.checkout-col-main input[type="tel"] { letter-spacing: 0; font-family: inherit; }
.agree-row a { padding: 0; }
#agreeError { margin-left: 34px; }
.checkout-help { margin-top: 18px; padding: 14px; border: 1px solid var(--color-border); border-radius: 12px; background: var(--color-surface); }
.checkout-help p { margin: 0 0 8px; color: var(--color-text-muted); line-height: 1.5; }
.checkout-help p:last-child { margin-bottom: 0; }

/* Verification follow-up fixes (2026-11-26): filter row, save pills, numerals, radio. */
.shop-tools label { flex-direction: row; align-items: center; gap: 8px; }
.shop-row-filters { align-items: center; }
.catchip { height: 44px; min-height: 44px; }
.shop-tools select, .clear-filters { height: 44px; min-height: 44px; }
.product-price-row { min-height: 54px; }
.product-actions { flex: none; }
.product-card .add-btn, .product-card .paybtn { min-height: 44px; flex: none; }
.product-price, .hero-showcase-price, .denom-price, .topup-order .product-price { font-family: Inter, system-ui, sans-serif; letter-spacing: -0.01em; }
.product-price small { margin-left: 4px; }
.product-detail .add-btn { background: #2b3139; color: #ffffff; border: 1px solid #3a4149; }
.denom-grid .denom-opt.is-selected .denom-label::after { content: " · Selected"; }
.tile input[type="radio"] { opacity: 1; position: static; appearance: auto; width: 20px; height: 20px; flex: none; accent-color: var(--color-brand); }
html { scroll-padding-bottom: 96px; }
body:has(.cart-bar:not([hidden])) { padding-bottom: 88px; }

/* Hero CTA alignment fix (2026-11-26): both buttons one height, one line. */
.hero-strip-ctas { align-items: center; }
.hero-strip-ctas .paybtn, .hero-strip-ctas .hero-ghost-btn { height: 48px; min-height: 48px; padding: 0 22px; margin: 0; box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center; line-height: 1; }

/* Final verification fixes (2026-11-26): cart bar scroll gate, radio inside tile, label nowrap. */
.cart-bar { transition: transform 250ms ease-out, opacity 250ms ease-out; }
body:not(.cart-bar-scrolled) .cart-bar { transform: translateY(140%); opacity: 0; pointer-events: none; }
.tile { display: flex; align-items: center; gap: 12px; }
.tile input[type="radio"] { margin: 0; }
.shop-tools label { white-space: nowrap; }
.shop-tools select { min-width: 150px; }

/* Payment radio inside tile (2026-11-26): card styling moves to the label. */
.tile { background: var(--color-surface); border: 1px solid var(--color-border-strong); border-radius: 14px; padding: 14px 16px; cursor: pointer; }
.tile span { background: transparent; border: none; box-shadow: none; padding: 0; text-align: left; }
.tile:has(input:checked) { background: var(--color-brand-grad-135); border-color: var(--color-brand); }
.tile:has(input:checked) span { background: transparent; color: #181a20; }
.tile:has(input:focus-visible) { box-shadow: 0 0 0 4px var(--color-brand-soft); }

/* Payment tile text alignment (2026-11-26): title and subtitle share one left edge. */
.tile span { display: flex; flex-direction: column; align-items: flex-start; text-align: left; }
.tile span strong, .tile span small { text-align: left; }
.tile:has(input:checked) input[type="radio"] { accent-color: #181a20; }

/* ============================================================
   Premium Fintech Polish (2026-11-26): crisp card elevation,
   aligned search/filter/promo controls, refined payment tiles,
   smooth micro-interactions, and responsive mobile ergonomics.
   ============================================================ */

/* Hero showcase & CTAs */
.hero-showcase {
    border: 1px solid var(--color-border-strong);
    background: linear-gradient(160deg, #1d212a 0%, #15181f 100%);
    box-shadow: var(--shadow-card-soft), inset 0 1px 0 rgba(255, 255, 255, 0.04);
    transition: border-color var(--dur) var(--ease-out),
                box-shadow var(--dur) var(--ease-out),
                transform var(--dur) var(--ease-out);
}
@media (hover: hover) {
    .hero-showcase:hover {
        border-color: var(--color-gold-line);
        box-shadow: var(--shadow-card-hover);
        transform: translateY(-2px);
    }
}
.hero-ghost-btn {
    border: 1px solid var(--color-control-border);
    background: rgba(255, 255, 255, 0.03);
    color: var(--color-text);
    transition: border-color var(--dur) var(--ease-out),
                background-color var(--dur) var(--ease-out),
                color var(--dur) var(--ease-out),
                transform var(--dur) var(--ease-out);
}
.hero-ghost-btn:hover {
    border-color: var(--color-brand);
    background: var(--color-brand-soft);
    color: #ffffff;
}

/* Search & filter bar: exact 44px alignment */
.shop-search {
    align-items: stretch;
}
.shop-search input[type="search"] {
    height: var(--control-h);
    min-height: var(--control-h);
    padding: 0 16px;
}
.shop-search .search-submit {
    height: var(--control-h);
    min-height: var(--control-h);
    padding: 0 20px;
    border-radius: var(--radius-pill);
    background: var(--color-brand);
    color: var(--color-text-inverse);
    border: 1px solid var(--color-brand);
    font-weight: 700;
}
.shop-search .search-submit:hover {
    background: var(--color-brand-hover);
    border-color: var(--color-brand-hover);
}
.catchip,
.shop-tools select,
.clear-filters {
    height: var(--control-h);
    min-height: var(--control-h);
    box-sizing: border-box;
    transition: border-color var(--dur) var(--ease-out),
                background-color var(--dur) var(--ease-out),
                color var(--dur) var(--ease-out),
                box-shadow var(--dur) var(--ease-out);
}
.catchip:hover:not(.active) {
    border-color: var(--color-gold-line);
    color: #ffffff;
    background: rgba(255, 255, 255, 0.04);
}
.catchip.active {
    background: var(--color-brand);
    color: var(--color-text-inverse);
    border-color: var(--color-brand);
    font-weight: 700;
}

/* Product cards: refined surface, crisp hover lift, aligned footer buttons */
.product-card {
    background: linear-gradient(180deg, #1b1f27 0%, #161920 100%);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-card-soft), inset 0 1px 0 rgba(255, 255, 255, 0.03);
    transition: border-color var(--dur) var(--ease-out),
                box-shadow var(--dur) var(--ease-out),
                transform var(--dur) var(--ease-out);
}
@media (hover: hover) {
    .product-card:hover {
        border-color: var(--color-gold-line);
        box-shadow: var(--shadow-card-hover);
        transform: translateY(-3px);
    }
}
.product-card .product-tagline {
    color: var(--color-text-muted);
}
.product-card .card-metaline {
    color: var(--color-text-faint);
}
.product-foot {
    display: flex;
    align-items: stretch;
    gap: 8px;
}
.product-card .add-btn,
.product-card .details-btn {
    height: var(--control-h);
    min-height: var(--control-h);
    border-radius: var(--radius-sm);
    transition: background-color var(--dur) var(--ease-out),
                border-color var(--dur) var(--ease-out),
                color var(--dur) var(--ease-out),
                transform var(--dur) var(--ease-out);
}
.product-card .add-btn {
    flex: 1 1 auto;
    font-weight: 700;
}
.product-card .add-btn:hover:not(:disabled) {
    background: var(--color-brand);
    color: var(--color-text-inverse);
    border-color: var(--color-brand);
}
.product-card .details-btn {
    flex: 0 0 44px;
    width: 44px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--color-control-border);
}
.product-card .details-btn:hover {
    border-color: var(--color-brand);
    color: var(--color-brand);
    background: var(--color-brand-soft);
}

/* Topup denomination cards: crisp feedback and aligned CTAs */
.denom-opt {
    transition: border-color var(--dur) var(--ease-out),
                background-color var(--dur) var(--ease-out),
                box-shadow var(--dur) var(--ease-out),
                transform var(--dur) var(--ease-out);
}
.denom-opt:hover:not(.is-selected) {
    border-color: var(--color-gold-line);
    background: rgba(240, 185, 11, 0.04);
}
.denom-opt.is-selected {
    border-color: var(--color-brand);
    box-shadow: 0 0 0 1px var(--color-brand), 0 8px 20px -12px rgba(240, 185, 11, 0.35);
}
.qty-row.topup-ctas {
    display: flex;
    align-items: stretch;
    gap: 10px;
}
.qty-row.topup-ctas .add-btn,
.qty-row.topup-ctas .paybtn {
    flex: 1 1 0;
    min-height: 46px;
    margin: 0;
}

/* Checkout columns: elevated fintech cards & aligned form rows */
.checkout-col-summary,
.checkout-col-main {
    background: linear-gradient(180deg, #1b1e26 0%, #15181f 100%);
    border: 1px solid var(--color-border-strong);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-card-soft), inset 0 1px 0 rgba(255, 255, 255, 0.03);
}
.checkout-col-main label:not(.tile):not(.agree-row label) {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text);
}
.checkout-col-main .optional {
    color: var(--color-text-muted);
    font-weight: 500;
}
.checkout-col-main input[type="text"],
.checkout-col-main input[type="tel"],
.checkout-col-main input[type="email"] {
    height: var(--control-h);
    min-height: var(--control-h);
    padding: 0 14px;
    border-color: var(--color-control-border);
}
.promo-row {
    display: flex;
    align-items: stretch;
    gap: 8px;
}
.promo-row input {
    height: var(--control-h);
    min-height: var(--control-h);
}
.promo-row .mini-btn {
    height: var(--control-h);
    min-height: var(--control-h);
    padding: 0 18px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    border: 1px solid var(--color-control-border);
    background: var(--color-surface-muted);
    color: var(--color-text);
}
.promo-row .mini-btn:hover {
    border-color: var(--color-brand);
    color: var(--color-brand);
    background: var(--color-brand-soft);
}

/* Payment method tiles: smooth selection + strong contrast */
.tile {
    background: var(--color-bg);
    border: 1px solid var(--color-control-border);
    border-radius: var(--radius-md);
    padding: 14px 16px;
    transition: border-color var(--dur) var(--ease-out),
                background-color var(--dur) var(--ease-out),
                box-shadow var(--dur) var(--ease-out);
}
.tile:hover:not(:has(input:checked)) {
    border-color: var(--color-gold-line);
    background: rgba(240, 185, 11, 0.04);
}
.tile span strong {
    font-size: 15px;
    line-height: 1.3;
}
.tile span small {
    font-size: 13px;
    line-height: 1.45;
    margin-top: 2px;
    color: var(--color-text-muted);
}
.tile:has(input:checked) {
    background: var(--color-brand);
    border-color: var(--color-brand);
    box-shadow: 0 6px 20px -10px rgba(240, 185, 11, 0.55);
}
.tile:has(input:checked) span,
.tile:has(input:checked) span strong,
.tile:has(input:checked) span small {
    color: #0b0e11;
}
.tile:has(input:focus-visible) {
    outline: 2px solid var(--color-brand);
    outline-offset: 2px;
    box-shadow: var(--focus-ring);
}

/* Order tracking form & result card */
.track-form {
    background: linear-gradient(180deg, #1b1e26 0%, #15181f 100%);
    border: 1px solid var(--color-border-strong);
    border-radius: var(--radius-lg);
    padding: 22px;
    box-shadow: var(--shadow-card-soft);
}
.track-form .field {
    margin-bottom: 14px;
}
.track-form .field label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text);
}
.track-form .field input {
    width: 100%;
    height: var(--control-h);
    padding: 0 14px;
}
.track-result {
    background: linear-gradient(180deg, #1b1e26 0%, #15181f 100%);
    border: 1px solid var(--color-border-strong);
    border-radius: var(--radius-lg);
    padding: 22px;
}

/* Mobile responsiveness polish */
@media (max-width: 760px) {
    .checkout-col-summary,
    .checkout-col-main {
        padding: 18px 16px;
    }
    .shop-tools {
        width: 100%;
        flex-wrap: wrap;
        gap: 10px;
    }
    .shop-tools label {
        flex: 1 1 160px;
        justify-content: space-between;
    }
    .shop-tools select {
        flex: 1 1 auto;
        min-width: 130px;
    }
    .clear-filters {
        width: 100%;
    }
}
@media (max-width: 520px) {
    .hero-strip-ctas {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    .hero-strip-ctas .paybtn,
    .hero-strip-ctas .hero-ghost-btn {
        width: 100%;
        justify-content: center;
    }
    .qty-row.topup-ctas {
        flex-direction: column;
    }
    .promo-row {
        flex-wrap: wrap;
    }
    .promo-row .mini-btn {
        flex: 1 1 auto;
    }
    .track-form,
    .track-result {
        padding: 18px 15px;
    }
}

/* ============================================================
   Full Transformation Layer (2026-11-26): agency-grade policy &
   FAQ surfaces, About trust pillars, elevated landing sections,
   keyboard search highlight, and smooth scroll-reveal.
   ============================================================ */

/* Keyboard-highlighted live search suggestion */
.search-suggest .suggest-item.is-active,
.search-suggest .suggest-item:hover {
    background: rgba(240, 185, 11, 0.12);
    color: #ffffff;
}
.search-suggest .suggest-item.is-active .suggest-meta {
    color: var(--color-brand);
}

/* Editorial dark-fintech document card for About, FAQ, Delivery, Privacy, Terms */
.policy {
    background: linear-gradient(180deg, #1b1e26 0%, #15181f 100%);
    border: 1px solid var(--color-border-strong);
    border-radius: var(--radius-lg);
    padding: 32px 30px;
    box-shadow: var(--shadow-card-soft), inset 0 1px 0 rgba(255, 255, 255, 0.04);
    text-align: left;
}
.policy h1 {
    font-size: clamp(24px, 3vw, 30px);
    margin-bottom: 14px;
}
.policy h2 {
    margin-top: 28px;
    margin-bottom: 10px;
    padding-top: 18px;
    border-top: 1px solid var(--color-border);
    font-size: 18px;
    color: #ffffff;
}
.policy p,
.policy li {
    color: #cfd5df;
    line-height: 1.65;
}
.policy-callout {
    margin-top: 24px;
    padding: 18px 20px;
    border-radius: var(--radius-md);
    background: rgba(240, 185, 11, 0.07);
    border: 1px solid var(--color-gold-line);
}
.policy-callout h2 {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
    font-size: 17px;
}
.policy-callout p:last-child {
    margin-bottom: 0;
}

/* About page trust pillars */
.about-pillars {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin: 22px 0 8px;
}
.about-pillar {
    background: rgba(11, 14, 17, 0.65);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 16px;
    transition: border-color var(--dur) var(--ease-out);
}
.about-pillar:hover {
    border-color: var(--color-gold-line);
}
.about-pillar strong {
    display: block;
    margin-bottom: 6px;
    font-size: 14.5px;
    color: var(--color-brand);
}
.about-pillar p {
    margin: 0;
    font-size: 13.5px;
    line-height: 1.5;
    color: var(--color-text-muted);
}

/* FAQ accordions: sleek dark cards with smooth open state */
.faq-item {
    background: rgba(11, 14, 17, 0.55);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 0;
    margin-bottom: 10px;
    transition: border-color var(--dur) var(--ease-out), background-color var(--dur) var(--ease-out);
}
.faq-item[open] {
    border-color: var(--color-gold-line);
    background: rgba(240, 185, 11, 0.04);
}
.faq-item summary {
    padding: 15px 18px;
    font-weight: 600;
    color: #ffffff;
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.faq-item summary::-webkit-details-marker {
    display: none;
}
.faq-item summary::after {
    content: "+";
    font-family: var(--font-mono);
    font-size: 18px;
    font-weight: 700;
    color: var(--color-brand);
    flex-shrink: 0;
}
.faq-item[open] summary::after {
    content: "\2212";
}
.faq-item p {
    margin: 0;
    padding: 0 18px 16px;
    font-size: 14.5px;
    color: var(--color-text-muted);
}

/* Homepage landing sections elevation */
.how-steps .step {
    background: linear-gradient(180deg, #1b1e26 0%, #15181f 100%);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 22px 20px;
    transition: border-color var(--dur) var(--ease-out), transform var(--dur) var(--ease-out);
}
@media (hover: hover) {
    .how-steps .step:hover {
        border-color: var(--color-gold-line);
        transform: translateY(-2px);
    }
}
.compare-table {
    background: #14171d;
    border: 1px solid var(--color-border-strong);
    border-radius: var(--radius-md);
    overflow: hidden;
}
.compare-table tbody tr {
    transition: background-color 0.15s ease;
}
.compare-table tbody tr:hover {
    background: rgba(240, 185, 11, 0.06);
}
.final-cta {
    background: linear-gradient(135deg, rgba(240, 185, 11, 0.1) 0%, #161920 55%, #12151b 100%);
    border: 1px solid var(--color-gold-line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card-soft);
}

/* Subtle scroll-reveal for landing sections (graceful with no-JS) */
.land-section.reveal-ready {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.45s var(--ease-out), transform 0.45s var(--ease-out);
}
.land-section.reveal-ready.is-revealed {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 700px) {
    .policy { padding: 22px 18px; }
    .about-pillars { grid-template-columns: 1fr; }
}

/* Search button hover contrast fix (2026-11-26): dark text stays on gold. */
.shop-search .search-submit:hover, .shop-search .search-submit:focus-visible { color: #181a20; background: var(--color-brand-hover, #f5c518); }

/* Final CTA contrast fix (2026-11-27): panel is dark, text must be light. */
.final-cta h2 { color: var(--color-text); }
.final-cta p { color: var(--color-text-muted); }
.final-cta .paybtn { background: var(--color-brand); color: #181a20; }
.final-cta .paybtn:hover { background: var(--color-brand-hover, #f5c518); color: #181a20; }
