/* ============================================================================
 * LACNR — lacnr-store.css
 * Master theme for the Tebex custom template. Add as a Tebex asset:
 *   Assets → Add → CSS → name it  lacnr-store.css
 * head.twig links it LAST so it overrides the stock generic.css / shared.css.
 *
 * Two jobs:
 *   1. Fully style the new LACNR chrome (.lacnr-navbar, .lacnr-footer, .lacnr-hero,
 *      .lacnr-btn, scanline overlay, …) authored in header/footer/layout twig.
 *   2. Reskin the stock Exo store internals that we DON'T rewrite — their real
 *      classes (.site, .site-content, .store-product, .product-actions, .price,
 *      .basket-popup, .store-sidebar, .widget, …). !important is used on
 *      color-identity props so the reskin beats the stock CSS that loads before.
 *
 * Palette + type mirror src/Cnr.Web/wwwroot/css/tokens.css (keep in sync).
 * ========================================================================== */

@import url('https://fonts.bunny.net/css?family=inter:400,500,600|jetbrains-mono:400,500,600|saira-condensed:700,900');

:root {
    --lapd-blue: #0B3D91;
    --lapd-blue-bright: #2E6BE8;
    --crime-red: #C8102E;
    --crime-red-bright: #FF2D2D;
    --la-gold: #D4A24C;
    --la-gold-soft: #b58736;

    --asphalt: #0A0A0C;
    --asphalt-deep: #050507;
    --asphalt-elevated: #131318;
    --asphalt-elevated-2: #181820;
    --asphalt-stroke: #1F1F26;
    --asphalt-stroke-bright: #2a2a33;

    --smoke: #8A8A93;
    --smoke-dim: #5a5a63;
    --bone: #EDEDF0;
    --ems-white: #f5f5f7;

    --discord: #5865F2;
    --discord-dark: #4752c4;

    --f-display: "Saira Condensed", "Arial Narrow", Impact, sans-serif;
    --f-body: "Inter", system-ui, -apple-system, sans-serif;
    --f-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

    --tween: 120ms cubic-bezier(.4, 0, .2, 1);
    --tween-slow: 320ms cubic-bezier(.4, 0, .2, 1);

    --glow-blue: 0 0 24px rgba(46, 107, 232, .35);
    --glow-red: 0 0 24px rgba(255, 45, 45, .35);
    --glow-gold: 0 0 18px rgba(212, 162, 76, .25);
    --glow-discord: 0 0 24px rgba(88, 101, 242, .4);

    /* Map Tebex's schema colour vars onto ours so config() pickers keep working. */
    --color-primary: var(--la-gold);
    --color-primary-hover: var(--la-gold-soft);
    --color-primary-text: var(--asphalt-deep);
}

/* ----------------------------------------------------------------------------
 * Base
 * -------------------------------------------------------------------------- */
html { color-scheme: dark; scroll-behavior: smooth; }

html, body {
    background-color: var(--asphalt) !important;
    color: var(--bone) !important;
    font-family: var(--f-body) !important;
    font-size: 15px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

body {
    background-image:
        radial-gradient(ellipse 120% 80% at 50% -10%, rgba(46, 107, 232, .07) 0%, transparent 60%),
        radial-gradient(ellipse 100% 60% at 50% 115%, rgba(200, 16, 46, .05) 0%, transparent 55%) !important;
    background-attachment: fixed !important;
    min-height: 100vh;
}

/* Stock Tebex .site is a flexbox with align-items:flex-start, which shrinks the
   header/content/footer to their content width. Force a full-width stretch
   column (!important to beat the stock rule's specificity) so the navbar bar
   spans the viewport and the content can center. */
.site {
    position: relative; z-index: 1;
    display: flex !important; flex-direction: column !important;
    align-items: stretch !important; width: 100% !important;
    min-height: 100vh;
}
.lacnr-page { flex: 1 0 auto; width: 100%; }

h1, h2, h3, h4, h5 {
    font-family: var(--f-display) !important;
    font-weight: 900 !important;
    letter-spacing: -.01em;
    line-height: .95;
    text-transform: uppercase;
    color: var(--bone) !important;
}

a { color: var(--bone); text-decoration: none; transition: color var(--tween); }
a:hover { color: var(--la-gold); }

::selection { background: var(--lapd-blue-bright); color: var(--bone); }

* { scrollbar-width: thin; scrollbar-color: var(--asphalt-stroke-bright) transparent; }
*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-track { background: transparent; }
*::-webkit-scrollbar-thumb { background: var(--asphalt-stroke-bright); border: 2px solid transparent; background-clip: padding-box; }
*::-webkit-scrollbar-thumb:hover { background: var(--smoke); background-clip: padding-box; }

/* CRT scanline + vignette overlay (the divs in layout.html) */
.lacnr-scanlines {
    position: fixed; inset: 0; pointer-events: none; z-index: 9990;
    background-image: repeating-linear-gradient(to bottom, rgba(255,255,255,.02) 0, rgba(255,255,255,.02) 1px, transparent 1px, transparent 3px);
    mix-blend-mode: overlay; opacity: .5;
}
.lacnr-vignette {
    position: fixed; inset: 0; pointer-events: none; z-index: 9989;
    background: radial-gradient(ellipse at center, transparent 60%, rgba(0,0,0,.5) 100%);
}

/* ----------------------------------------------------------------------------
 * Navbar — frosted dark glass, sticky to the top (matches the website)
 * -------------------------------------------------------------------------- */
.lacnr-navbar {
    position: sticky; top: 0; z-index: 50; width: 100%;
    background: rgba(10, 10, 12, .72);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    backdrop-filter: blur(14px) saturate(140%);
    border-bottom: 1px solid rgba(255, 255, 255, .06);
}
.lacnr-navbar__inner {
    max-width: 1280px; margin-inline: auto;
    height: 64px; padding-inline: 24px;
    display: flex; align-items: center; gap: 24px;
}
.lacnr-navbar__brand { display: inline-flex; align-items: center; color: var(--bone); flex: none; }
.lacnr-navbar__brand:hover { opacity: .85; }
.lacnr-wordmark { display: block; width: auto; height: 22px; color: var(--bone); }
.lacnr-footer .lacnr-wordmark { height: 30px; }

.lacnr-navbar__cta { margin-left: auto; display: inline-flex; align-items: center; gap: 12px; flex: none; }

/* Copy-IP chip */
.lacnr-copy-ip {
    display: inline-flex; align-items: center; gap: 8px;
    font-family: var(--f-mono); font-size: 12px; letter-spacing: .04em;
    color: var(--smoke); background: var(--asphalt-elevated);
    border: 1px solid var(--asphalt-stroke-bright); border-radius: 2px;
    padding: 8px 12px; cursor: pointer; transition: color var(--tween), border-color var(--tween);
}
.lacnr-copy-ip:hover { color: var(--bone); border-color: var(--smoke); }
.lacnr-copy-ip__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--la-gold); box-shadow: var(--glow-gold); }

.lacnr-navbar__burger {
    display: none; width: 40px; height: 40px; align-items: center; justify-content: center;
    color: var(--bone); background: transparent; border: 0; border-radius: 2px; cursor: pointer;
}
.lacnr-navbar__burger:hover { background: rgba(255,255,255,.05); }

/* ----------------------------------------------------------------------------
 * Navigation — desktop inline; mobile slide-in drawer driven by main.js's
 * `body.show-navigation`. Container = .site-navigation, panel = .menu.
 * -------------------------------------------------------------------------- */
.site-navigation.lacnr-nav { display: flex; align-items: center; }
.lacnr-nav__list {
    list-style: none; margin: 0; padding: 0;
    display: flex; align-items: center; gap: 28px;
}
.lacnr-nav__link {
    font-family: var(--f-display); font-weight: 700; font-size: 13px;
    letter-spacing: .18em; text-transform: uppercase; color: var(--smoke);
    border-bottom: 2px solid transparent; padding: 6px 2px;
    transition: color var(--tween), border-color var(--tween);
}
.lacnr-nav__link:hover { color: var(--bone); }
.lacnr-nav__link.is-active { color: var(--la-gold); border-bottom-color: var(--la-gold); }
.lacnr-nav__mobile-only { display: none; }
.lacnr-nav__close { display: none; }

@media (max-width: 960px) {
    .lacnr-navbar__burger { display: inline-flex; }
    .site-navigation.lacnr-nav {
        position: fixed; inset: 0; z-index: 100;
        display: block; justify-content: flex-end;
        background: rgba(0, 0, 0, .6);
        opacity: 0; visibility: hidden; pointer-events: none;
        transition: opacity .28s ease, visibility .28s ease;
    }
    body.show-navigation .site-navigation.lacnr-nav { opacity: 1; visibility: visible; pointer-events: auto; }

    .lacnr-nav__list {
        position: absolute; top: 0; right: 0; bottom: 0;
        width: 320px; max-width: 85vw;
        flex-direction: column; align-items: stretch; gap: 0;
        padding: 88px 0 24px;
        background: rgba(10, 10, 12, .96);
        -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
        border-left: 1px solid rgba(255, 255, 255, .06);
        transform: translateX(100%); transition: transform .28s cubic-bezier(.4, 0, .2, 1);
    }
    body.show-navigation .lacnr-nav__list { transform: translateX(0); }

    .lacnr-nav__link {
        display: block; padding: 16px 24px; font-size: 18px; letter-spacing: .12em;
        color: var(--bone); border-bottom: 0; border-left: 3px solid transparent;
    }
    .lacnr-nav__link.is-active { border-bottom: 0; border-left-color: var(--la-gold); }
    .lacnr-nav__mobile-only { display: block; }
    .lacnr-nav__close {
        display: block; position: absolute; top: 20px; right: 20px; z-index: 1;
        font-family: var(--f-mono); font-size: 11px; letter-spacing: .2em; text-transform: uppercase;
        color: var(--smoke); background: transparent; border: 1px solid var(--asphalt-stroke-bright);
        border-radius: 2px; padding: 8px 12px; cursor: pointer;
    }
    .lacnr-nav__close:hover { color: var(--bone); border-color: var(--smoke); }
}

/* ----------------------------------------------------------------------------
 * Buttons — LACNR chrome buttons (.lacnr-btn) AND the stock Tebex store
 * buttons (.btn-primary/.add/.subscribe = gold buy, .btn-secondary = ghost,
 * .btn-tertiary = quantity steppers, .checkout = gold, .remove = red).
 * -------------------------------------------------------------------------- */
.lacnr-btn,
.store-product .btn-primary, .store-product .btn-secondary,
.product-actions .add, .product-actions .subscribe, .product-actions .btn-primary,
.product-actions .btn-secondary, .product-actions .btn-tertiary,
button.checkout, .open-basket-cta, .btn-primary, .btn-secondary {
    position: relative;
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    font-family: var(--f-display) !important; font-weight: 700 !important;
    font-size: 14px !important; letter-spacing: .14em; text-transform: uppercase;
    border: 1px solid transparent !important; border-radius: 2px !important;
    padding: 11px 22px; cursor: pointer; overflow: hidden; text-decoration: none;
    transition: transform var(--tween), box-shadow var(--tween), background var(--tween), color var(--tween), border-color var(--tween);
}
.lacnr-btn::before {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(120deg, transparent 0%, rgba(255,255,255,.12) 40%, transparent 70%);
    transform: translateX(-110%); transition: transform 600ms cubic-bezier(.4, 0, .2, 1);
}
.lacnr-btn:hover::before { transform: translateX(110%); }
.lacnr-btn:hover,
.btn-primary:hover, .add:hover, .subscribe:hover, button.checkout:hover { transform: translateY(-1px); text-decoration: none; }

/* Gold = primary buy / checkout */
.lacnr-btn--gold,
.btn-primary, .product-actions .add, .product-actions .subscribe,
button.checkout, .open-basket-cta {
    background: var(--la-gold) !important; border-color: var(--la-gold) !important; color: var(--asphalt-deep) !important;
}
.lacnr-btn--gold:hover,
.btn-primary:hover, .product-actions .add:hover, .product-actions .subscribe:hover,
button.checkout:hover, .open-basket-cta:hover {
    background: var(--la-gold-soft) !important; color: var(--asphalt-deep) !important; box-shadow: var(--glow-gold) !important;
}

/* Ghost = secondary */
.lacnr-btn--ghost,
.btn-secondary, .product-actions .btn-secondary {
    background: transparent !important; border-color: var(--asphalt-stroke-bright) !important; color: var(--bone) !important;
}
.lacnr-btn--ghost:hover,
.btn-secondary:hover { border-color: var(--smoke) !important; background: rgba(255,255,255,.03) !important; color: var(--bone) !important; }

/* Tertiary = quantity steppers */
.btn-tertiary, .product-actions .btn-tertiary {
    background: var(--asphalt-elevated-2) !important; border-color: var(--asphalt-stroke-bright) !important;
    color: var(--bone) !important; padding: 8px 12px; font-size: 13px !important;
}
.btn-tertiary:hover { color: var(--la-gold) !important; border-color: var(--la-gold) !important; }

/* Discord */
.lacnr-btn--discord {
    background: var(--discord) !important; border-color: var(--discord) !important; color: var(--ems-white) !important;
}
.lacnr-btn--discord:hover { background: var(--discord-dark) !important; border-color: var(--discord-dark) !important; box-shadow: var(--glow-discord) !important; }

/* Remove / cancel */
.remove, a.remove, .btn-danger {
    color: var(--crime-red-bright) !important; border-color: var(--crime-red) !important; background: transparent !important;
}
.remove:hover, .btn-danger:hover { color: var(--bone) !important; border-color: var(--crime-red-bright) !important; box-shadow: var(--glow-red) !important; }

.lacnr-btn--block { width: 100%; }
.lacnr-btn--ghost.user-name .text-hover { display: none; }
.lacnr-btn--ghost.user-name:hover .text { display: none; }
.lacnr-btn--ghost.user-name:hover .text-hover { display: inline; color: var(--crime-red-bright); }

[disabled], .disabled { opacity: .55 !important; cursor: not-allowed !important; transform: none !important; }
/* In a login-required store Tebex marks every add/subscribe link `disabled`
   until you've identified yourself — but clicking it productively opens the
   login flow (main.js intercepts it), so keep these looking active, not dead. */
.product-actions .add[disabled], .product-actions .subscribe[disabled],
.product-actions .add.disabled, .product-actions .subscribe.disabled {
    opacity: 1 !important; cursor: pointer !important; pointer-events: auto !important;
}

/* ----------------------------------------------------------------------------
 * Hero + section heads + prose (index / category)
 * -------------------------------------------------------------------------- */
.lacnr-hero { padding: clamp(40px, 7vw, 96px) 0 clamp(28px, 4vw, 56px); text-align: center; border-bottom: 1px solid var(--asphalt-stroke); margin-bottom: 40px; }
.lacnr-hero__status {
    display: inline-flex; align-items: center; gap: 10px;
    font-family: var(--f-mono); font-size: 11px; letter-spacing: .32em; text-transform: uppercase; color: var(--la-gold);
}
.lacnr-hero__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--la-gold); box-shadow: var(--glow-gold); }
.lacnr-hero__title {
    margin: 16px 0 0; font-size: clamp(2.4rem, 6vw, 5rem); line-height: .92;
    background: linear-gradient(180deg, var(--bone) 45%, var(--smoke) 100%);
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.lacnr-hero__blurb { margin: 22px auto 0; max-width: 560px; color: var(--smoke); font-size: 15px; line-height: 1.7; }

.lacnr-section-head { display: flex; align-items: flex-end; gap: 18px; flex-wrap: wrap; padding-bottom: 18px; margin-bottom: 28px; border-bottom: 1px solid var(--asphalt-stroke); }
.lacnr-eyebrow { font-family: var(--f-mono); font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--smoke-dim); }
.lacnr-section-title { font-size: clamp(2rem, 4vw, 3.2rem); margin: 0; }
.lacnr-prose { color: var(--smoke); line-height: 1.7; margin-bottom: 28px; }
.lacnr-prose a { color: var(--la-gold); }
.lacnr-empty { color: var(--smoke); font-family: var(--f-mono); letter-spacing: .04em; padding: 40px 0; }

/* ----------------------------------------------------------------------------
 * Store layout — main + sidebar (stock .site-content is the flex row)
 * -------------------------------------------------------------------------- */
.site-content, .site-content-widgets {
    max-width: 1280px; margin-inline: auto; padding: 32px 24px 64px;
    display: flex; align-items: flex-start; gap: 32px;
}
.lacnr-main, .store-products { flex: 1 1 auto; min-width: 0; }
.store-sidebar, .lacnr-sidebar { flex: 0 0 300px; max-width: 300px; }

@media (max-width: 900px) {
    .site-content, .site-content-widgets { flex-direction: column; }
    .store-sidebar, .lacnr-sidebar { flex-basis: auto; max-width: none; width: 100%; }
}

/* Package grid (stock .store-products-grid / -list) */
.store-products-grid, .lacnr-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px;
}
.store-products-list { display: flex; flex-direction: column; gap: 14px; }

/* ----------------------------------------------------------------------------
 * Package cards — stock .store-product / .product-title / .product-actions
 * -------------------------------------------------------------------------- */
.store-product {
    display: flex; flex-direction: column;
    background: var(--asphalt-elevated) !important;
    border: 1px solid var(--asphalt-stroke) !important; border-radius: 2px !important;
    overflow: hidden; transition: transform var(--tween-slow), border-color var(--tween-slow), box-shadow var(--tween-slow);
}
.store-product:hover {
    transform: translateY(-3px);
    border-color: var(--asphalt-stroke-bright) !important;
    box-shadow: var(--glow-gold), 0 12px 32px rgba(0, 0, 0, .5) !important;
}
.store-product .image-link {
    display: flex; align-items: center; justify-content: center;
    width: 100%; padding: 14px; overflow: hidden;
    aspect-ratio: 4 / 3; background: var(--asphalt-elevated-2) !important;
    border-bottom: 1px solid var(--asphalt-stroke);
}
/* contain (not cover) so product art is never cropped — coin images are tall
   portraits, banners are wide; contain shows the whole thing either way. */
.store-product .image {
    display: block; width: 100%; height: 100%;
    object-fit: contain !important; background: transparent !important;
}

.store-products-list .store-product { flex-direction: row; align-items: center; }
.store-products-list .store-product .image-link { width: 132px; aspect-ratio: 1 / 1; flex: none; padding: 12px; border-bottom: 0; border-right: 1px solid var(--asphalt-stroke); }
.store-products-list .product-title { flex: 1 1 auto; padding: 0 24px; }
.store-products-list .product-actions { flex: 0 0 auto; margin-left: auto; padding: 18px 20px; gap: 18px; }
.store-products-list .product-actions .price { width: auto; margin: 0; }

.product-title {
    font-family: var(--f-display) !important; font-weight: 900 !important;
    font-size: 19px !important; letter-spacing: .03em; text-transform: uppercase;
    color: var(--bone) !important; margin: 0; padding: 16px 16px 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
}
.product-title a { color: var(--bone) !important; }
.product-title a:hover { color: var(--la-gold) !important; }

.product-actions, .actions.product-actions { padding: 12px 16px 16px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: auto; }
.store-products-list .product-actions { margin-left: auto; }

/* Price → gold mono, prominent */
.product-actions .price, .price {
    width: 100%; margin: 0 0 4px; font-family: var(--f-mono) !important; font-weight: 600 !important;
    font-size: 18px !important; color: var(--la-gold) !important;
}
.price .discount, del.discount, .product-actions del {
    color: var(--smoke-dim) !important; text-decoration: line-through; font-size: 14px; margin-right: 8px;
}
.price strong { font-weight: 600; color: var(--la-gold) !important; }

/* Add / subscribe links fill the row. */
.product-actions .add, .product-actions .subscribe, .product-actions .btn-primary { flex: 1 1 auto; }
.product-actions .wide { width: 100%; }

/* In-basket quantity stepper, laid out as:  −  [n]  +  | IN BASKET
   Every part is flex:0 0 auto and the field is width:auto, so it sizes exactly
   to its content and the label can never clip (the old overflow:hidden +
   flex-shrink was what squeezed it to "N BAS…"). Visual order is set with flex
   `order`; main.js finds the input via its parent, not DOM position, so
   reordering is safe. */
/* Stock shared.css overlays the +/− buttons on the input via negative margins
   + z-index; its [type=number] selector out-specifies input.quantity, so match
   it explicitly and flatten the field into plain side-by-side flex cells. */
.quantity-field {
    display: inline-flex; align-items: stretch; width: auto; max-width: 100%;
    justify-content: flex-start;                                   /* NEW: stock centers + clips */
    border: 1px solid var(--asphalt-stroke-bright); border-radius: 2px;
    background: var(--asphalt-elevated-2); overflow: hidden;
}
.product-actions .quantity-field.wide {
    width: auto; flex: 0 0 auto;                                   /* NEW: undo .wide's 100% clamp */
}

.quantity-field .btn-tertiary.decrease { order: 1; margin: 0; }    /* margin:0 kills stock auto-margins */
.quantity-field input.quantity { order: 2; }
.quantity-field .btn-tertiary.increase { order: 3; margin: 0; }    /* margin:0 kills stock auto-margins */
.quantity-field .open-basket { order: 4; }

.quantity-field .btn-tertiary {
    flex: 0 0 auto; width: 40px; padding: 0 !important; font-size: 17px !important; line-height: 1;
    position: static; z-index: auto;                               /* NEW: stock overlays with z-index:2 */
    background: transparent !important; border: 0 !important; border-radius: 0 !important; color: var(--bone) !important;
}
.quantity-field .btn-tertiary:hover { color: var(--la-gold) !important; background: rgba(255, 255, 255, .04) !important; }

.quantity-field input.quantity,
.quantity-field.with-open-basket input[type=number] {              /* NEW selector: matches stock specificity */
    flex: 0 0 auto; width: 46px; min-width: 0; order: 2;
    margin: 0; text-align: center; padding: 10px 0;                /* NEW: undo stock -12/-15px margins */
    background: var(--asphalt) !important; border: 0 !important;
    border-inline: 1px solid var(--asphalt-stroke) !important;
    color: var(--bone) !important; font-family: var(--f-mono) !important; font-weight: 600;
}

.quantity-field .open-basket {
    flex: 0 0 auto; white-space: nowrap; cursor: pointer; margin: 0;   /* NEW margin:0 (stock adds 5px) */
    padding: 0 16px; border: 0; border-left: 1px solid var(--asphalt-stroke);
    background: transparent; color: var(--smoke);
    font-family: var(--f-display); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; font-size: 11px;
    transition: color var(--tween), background var(--tween);
}
.quantity-field .open-basket:hover { color: var(--la-gold); background: rgba(255, 255, 255, .03); }

.countdown {
    font-family: var(--f-mono) !important; font-size: 11px; letter-spacing: .04em;
    color: var(--crime-red-bright) !important; background: rgba(200, 16, 46, .12);
    border: 1px solid rgba(255, 45, 45, .3); border-radius: 2px; padding: 2px 8px;
}
.package-info, button.package-info {
    background: transparent !important; border: 1px solid var(--asphalt-stroke-bright) !important;
    color: var(--smoke) !important; border-radius: 50%; width: 24px; height: 24px;
    display: inline-flex; align-items: center; justify-content: center; cursor: pointer; padding: 0;
}
.package-info:hover { color: var(--la-gold) !important; border-color: var(--la-gold) !important; }

/* ----------------------------------------------------------------------------
 * Category cards (index)
 * -------------------------------------------------------------------------- */
.lacnr-cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; }
.lacnr-cat-card {
    position: relative; display: flex; flex-direction: column; justify-content: flex-end;
    min-height: 150px; padding: 22px 20px;
    background: var(--asphalt-elevated) !important; border: 1px solid var(--asphalt-stroke);
    border-radius: 2px; overflow: hidden; transition: transform var(--tween-slow), border-color var(--tween-slow), box-shadow var(--tween-slow);
}
.lacnr-cat-card:hover { transform: translateY(-3px); border-color: var(--asphalt-stroke-bright); box-shadow: var(--glow-blue), 0 12px 32px rgba(0,0,0,.5); }
.lacnr-cat-card__accent { position: absolute; inset: 0; background: radial-gradient(ellipse 80% 70% at 50% 0%, rgba(46,107,232,.18) 0%, transparent 70%); pointer-events: none; }
.lacnr-cat-card__name { position: relative; font-family: var(--f-display); font-weight: 900; font-size: 22px; letter-spacing: .04em; text-transform: uppercase; color: var(--bone); }
.lacnr-cat-card__go { position: relative; margin-top: 6px; font-family: var(--f-mono); font-size: 12px; letter-spacing: .06em; color: var(--smoke); }
.lacnr-cat-card:hover .lacnr-cat-card__go { color: var(--la-gold); }

/* ----------------------------------------------------------------------------
 * Sidebar widgets / modules
 * -------------------------------------------------------------------------- */
.store-sidebar .widget, .lacnr-widget {
    background: var(--asphalt-elevated) !important; border: 1px solid var(--asphalt-stroke) !important;
    border-radius: 2px !important; margin-bottom: 20px; overflow: hidden;
}
.widget-title, .lacnr-widget__title {
    font-family: var(--f-display) !important; font-weight: 700 !important;
    font-size: 14px !important; letter-spacing: .1em; text-transform: uppercase; color: var(--bone) !important;
    padding: 14px 16px; margin: 0; background: var(--asphalt-elevated-2) !important;
    border-bottom: 1px solid var(--asphalt-stroke);
}
.widget-content, .lacnr-widget__body { padding: 16px; color: var(--smoke) !important; font-size: 14px; line-height: 1.6; }
.lacnr-widget__body p { margin: 0 0 12px; }
.lacnr-widget__body a:not(.lacnr-btn) { color: var(--la-gold) !important; }

/* ----------------------------------------------------------------------------
 * Popups + basket (stock markup fetched from /checkout/basket, /login, etc.)
 * The structural CSS comes from stock generic.css/shared.css; we reskin.
 * -------------------------------------------------------------------------- */
.popup-content, .basket-popup-content, .package-info-modal-content, .login-popup-content, .store-form {
    background: var(--asphalt-elevated) !important; color: var(--bone) !important;
    border: 1px solid var(--asphalt-stroke-bright) !important; border-radius: 3px !important;
    box-shadow: 0 24px 64px rgba(0, 0, 0, .6) !important;
}
.popup-scroll-cont { background: rgba(0, 0, 0, .6) !important; }
.popup-close {
    color: var(--smoke) !important; background: transparent !important;
    border: 1px solid var(--asphalt-stroke-bright) !important; border-radius: 2px !important;
    font-family: var(--f-mono) !important; letter-spacing: .1em; text-transform: uppercase; font-size: 12px;
}
.popup-close:hover { color: var(--la-gold) !important; border-color: var(--la-gold) !important; }

.basket-header, .basket-second-header { border-color: var(--asphalt-stroke) !important; color: var(--bone) !important; }
.basket-item { border-bottom: 1px solid var(--asphalt-stroke) !important; }
.basket-item .name, .basket-item .product-name { color: var(--bone) !important; font-family: var(--f-display) !important; text-transform: uppercase; letter-spacing: .03em; }
.basket-checkout .total, .basket-item .price, .total { color: var(--la-gold) !important; font-family: var(--f-mono) !important; font-weight: 600 !important; }
.basket-empty { color: var(--smoke) !important; font-family: var(--f-mono); letter-spacing: .04em; }

/* ----------------------------------------------------------------------------
 * Forms / inputs (login, gift, options, quote)
 * -------------------------------------------------------------------------- */
input[type="text"], input[type="email"], input[type="password"], input[type="number"],
input[type="search"], select, textarea, .form-control {
    background: var(--asphalt-elevated-2) !important; border: 1px solid var(--asphalt-stroke-bright) !important;
    border-radius: 2px !important; color: var(--bone) !important;
}
input::placeholder, textarea::placeholder { color: var(--smoke-dim) !important; }
input:focus, select:focus, textarea:focus, .form-control:focus {
    border-color: var(--la-gold) !important; box-shadow: 0 0 0 1px var(--la-gold), var(--glow-gold) !important; outline: none !important;
}
label, .control-label { color: var(--bone) !important; }
input[type="checkbox"], input[type="radio"] { accent-color: var(--la-gold); }

/* ----------------------------------------------------------------------------
 * Auth surfaces — login (username.html, the FiveM step) and the add-to-basket
 * options / Discord page (options.html). Both carry [data-popup], so main.js
 * shows them as popups; styled here so they read as polished LACNR cards
 * whether they render as a popup OR as a full page.
 * NOTE: the Discord step links out to ident.tebex.io for OAuth (external,
 * full redirect) — that hop can't be an in-store popup, but the interstitial
 * around it is now on-brand.
 * -------------------------------------------------------------------------- */
/* Centre the card when these render as a full page (not a popup). */
.site-content:has(> .store-product-options),
.site-content:has(> .store-text.store-form),
.site-content:has(> .store-quote) { display: block; padding-block: clamp(40px, 8vw, 96px); }

.store-product-options, .store-text.store-form, .store-quote {
    max-width: 460px; margin-inline: auto;
    background: var(--asphalt-elevated) !important;
    border: 1px solid var(--asphalt-stroke-bright) !important; border-radius: 3px !important;
    box-shadow: 0 24px 64px rgba(0, 0, 0, .5);
    padding: 30px 30px 32px;
}
/* When already inside a popup-content card, don't double-frame it. */
.popup-content.store-product-options, .login-popup-content {
    box-shadow: none; border: 0 !important; background: transparent !important; max-width: 420px;
}

.store-form .product-title, .login-title-with-avatar {
    display: flex; flex-direction: column; align-items: center; gap: 10px;
    justify-content: center; text-align: center; padding: 0 !important; margin: 0 0 6px;
    font-size: 22px !important; line-height: 1.1;
}
.login-popup-subtitle { text-align: center; color: var(--smoke); font-size: 13px; line-height: 1.6; margin: 0 auto 22px; max-width: 360px; }

.live-avatar { display: inline-flex; align-items: center; justify-content: center; }
.player-avatar, .live-avatar-img { border-radius: 50%; border: 1px solid var(--asphalt-stroke-bright); }
.live-avatar-fallback { display: block; width: 48px; height: 48px; border-radius: 50%; background: var(--asphalt-elevated-2); border: 1px solid var(--asphalt-stroke-bright); }

.store-form .field { margin: 0 0 16px; }
.store-form .field > p { color: var(--smoke); font-size: 14px; line-height: 1.6; margin: 0 0 10px; }
/* The "you must login to Discord" notice → a gold left-accent callout. */
.store-form .field:has(> input[type="hidden"]) > p {
    background: var(--asphalt-elevated-2); border: 1px solid var(--asphalt-stroke);
    border-left: 3px solid var(--la-gold); border-radius: 2px; padding: 12px 14px; margin: 0;
}
.store-form input[type="text"], .store-form input[type="number"], .store-form select { width: 100%; padding: 11px 12px; }
.field-inline { display: flex; align-items: center; gap: 10px; font-family: var(--f-mono); color: var(--smoke); }

/* Java / Bedrock segmented selector */
.login-platform-field { border: 0; padding: 0; margin: 0 0 14px; }
.login-platform-label { font-family: var(--f-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--smoke); padding: 0; margin: 0 0 8px; }
.login-platform-options { display: flex; gap: 8px; }
.login-platform-option { flex: 1; position: relative; }
.login-platform-option input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.login-platform-option span {
    display: block; text-align: center; padding: 9px 10px;
    font-family: var(--f-display); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: 13px;
    color: var(--smoke); background: var(--asphalt-elevated-2);
    border: 1px solid var(--asphalt-stroke-bright); border-radius: 2px;
    transition: color var(--tween), border-color var(--tween), background var(--tween);
}
.login-platform-option input:checked + span { color: var(--la-gold); border-color: var(--la-gold); background: rgba(212, 162, 76, .08); }
.login-platform-hint { font-size: 12px; color: var(--smoke-dim); margin: 8px 0 0; }

/* Action buttons — stack full-width, gold primary, ghost secondary */
.store-form .actions { display: flex; flex-direction: column; gap: 10px; margin-top: 22px; }
.store-form .actions .btn-primary, .store-form .actions .btn-secondary,
.store-form button[type="submit"], .store-form .btn-primary { width: 100%; }
.link-text { display: block; text-align: center; font-family: var(--f-mono); font-size: 12px; letter-spacing: .06em; color: var(--smoke); margin-top: 4px; }
.link-text:hover { color: var(--la-gold); }

/* ----------------------------------------------------------------------------
 * Toasts / notifications (main.js newToast + page.message)
 * -------------------------------------------------------------------------- */
.toast, .notification, .alert {
    background: var(--asphalt-elevated-2) !important; color: var(--bone) !important;
    border: 1px solid var(--asphalt-stroke-bright) !important; border-left: 3px solid var(--la-gold) !important;
    border-radius: 3px !important; box-shadow: 0 12px 32px rgba(0, 0, 0, .5) !important;
    font-family: var(--f-mono) !important; font-size: 13px;
}
.toast.error, .notification.error, .alert-danger { border-left-color: var(--crime-red-bright) !important; }
.toast.success, .notification.success { border-left-color: var(--la-gold) !important; }
.toast.info, .notification.info { border-left-color: var(--lapd-blue-bright) !important; }

/* ----------------------------------------------------------------------------
 * Loading spinners — stock shared.css masks loading.svg over the .updating
 * actions row and grayscales everything under it, which reads as a washed-out
 * button with a white blob on this theme. Replace with a gold ring.
 * -------------------------------------------------------------------------- */
.store-product .actions.updating::before,
.store-product-options .actions.updating::before,
.gift-form-popup .popup-content .actions.updating::before,
.basket-popup-content.updating::before,
.popup.popup-loading .popup-content::before {
    width: 26px; height: 26px;
    background: none !important;
    mask: none !important; -webkit-mask: none !important;
    border: 2px solid rgba(212, 162, 76, .2);
    border-top-color: var(--la-gold);
    border-radius: 50%;
    box-sizing: border-box;
    animation: lacnr-spin .7s linear infinite;
}
@keyframes lacnr-spin { to { transform: rotate(360deg); } }

/* Keep the row readable while updating — stock dims to 30% + full grayscale. */
.store-product .actions.updating > * { opacity: .45; filter: none; }

/* ----------------------------------------------------------------------------
 * Footer
 * -------------------------------------------------------------------------- */
.lacnr-footer { flex-shrink: 0; width: 100%; background: var(--asphalt-deep) !important; border-top: 1px solid var(--asphalt-stroke); margin-top: 40px; }
.lacnr-footer__inner {
    max-width: 1280px; margin-inline: auto; padding: 48px 24px 28px;
    display: flex; align-items: flex-start; justify-content: space-between; gap: 32px; flex-wrap: wrap;
}
.lacnr-footer__brand { display: flex; flex-direction: column; gap: 14px; }
.lacnr-footer__tagline { color: var(--smoke); font-size: 13px; line-height: 1.6; margin: 0; }
.lacnr-footer__links { display: flex; flex-direction: column; gap: 10px; }
.lacnr-footer__link { color: var(--smoke); font-family: var(--f-display); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; font-size: 13px; }
.lacnr-footer__link:hover { color: var(--la-gold); }
.lacnr-footer__discord {
    display: inline-flex; align-items: center; gap: 10px; align-self: flex-start;
    color: var(--smoke); border: 1px solid var(--asphalt-stroke-bright); border-radius: 2px; padding: 10px 16px;
    font-family: var(--f-display); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: 13px;
    transition: color var(--tween), border-color var(--tween);
}
.lacnr-footer__discord:hover { color: var(--discord); border-color: var(--discord); }
.lacnr-footer__accept { display: flex; gap: 14px; align-items: center; justify-content: center; flex-wrap: wrap; list-style: none; margin: 0; padding: 12px 24px; opacity: .55; }
.lacnr-footer__accept img { height: 22px; width: auto; filter: grayscale(1) brightness(1.4); }
.lacnr-footer__strip {
    border-top: 1px solid var(--asphalt-stroke);
    display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px;
    max-width: 1280px; margin-inline: auto; padding: 16px 24px;
    font-family: var(--f-mono); font-size: 11px; letter-spacing: .06em; color: var(--smoke-dim);
}
.lacnr-footer__built { color: var(--la-gold); letter-spacing: .18em; }

/* ----------------------------------------------------------------------------
 * Reduced motion
 * -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    .lacnr-btn::before { display: none !important; }
    .lacnr-btn:hover, .store-product:hover, .lacnr-cat-card:hover, .btn-primary:hover { transform: none !important; }
    .lacnr-scanlines { display: none; }
    * { scroll-behavior: auto !important; }
}