/* ============ Theme tokens ============ */
:root {
    --bg-void: #08080c;
    --bg-base: #0c0c13;
    --bg-panel: #13131d;
    --bg-panel-alt: #191925;

    --border-subtle: rgba(255, 255, 255, 0.07);
    --border-glow: rgba(235, 3, 5, 0.35);

    --text-primary: #ece9f4;
    --text-muted: #9a97ad;
    --text-faint: #625f74;

    --neon-red: #eb0305;
    --neon-red-soft: #f14d4f;
    --neon-green: #39ff9d;
    --neon-cyan: #38f2ff;
    --neon-gold: #ffd23f;
    --neon-purple: #b968ff;

    --font-pixel: "Press Start 2P", monospace;
    --font-display: "Orbitron", "Vazirmatn", sans-serif;
    --font-body: "Vazirmatn", system-ui, -apple-system, "Segoe UI", sans-serif;

    --radius-md: 10px;
    --radius-lg: 18px;
}

/* ============ Reset ============ */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(ellipse 900px 520px at 12% -8%, rgba(235, 3, 5, 0.14), transparent 60%),
        radial-gradient(ellipse 800px 520px at 92% 8%, rgba(188, 2, 4, 0.12), transparent 60%),
        var(--bg-base);
    background-attachment: fixed;
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

body.nav-open {
    overflow: hidden;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

/* Blazor's CSS-isolation scope attribute is only ever stamped onto elements
   literally written in a component's own .razor markup at compile time —
   it's never added to content injected via a MarkupString (e.g. an <a> tag
   document.execCommand('createLink') inserts into the home ticker's
   contenteditable, or the same tag surviving the round-trip through
   HomeTicker.Text). A scoped rule like `.home-ticker-track a` compiles to
   `.home-ticker-track a[b-xxxxxxxxxx]`, which such a tag can never match —
   confirmed by hand (computed color stayed the inherited default instead of
   this rule's color). This is the same category of gotcha as a shared
   component's root ignoring a parent's scoped CSS (see the Blazor gotchas
   note in CLAUDE.md), just triggered by MarkupString content instead of a
   child component boundary — the fix is the same: put it here, in global
   app.css, not a scoped .razor.css. */
.home-ticker-track a,
.ticker-rte-editable a {
    color: var(--neon-red-soft);
    text-decoration: underline;
}

ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

h1, h2, h3, h4 {
    margin: 0;
    font-family: var(--font-display);
}

p {
    margin: 0;
}

button {
    font-family: inherit;
    cursor: pointer;
}

svg.icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

/* Sized the same as svg.icon above, but for the three real raster icon
   images (cart-pouch.png/profile-face.jpg/logout-door.png,
   wwwroot/images/icons/) used on NavMenu.razor's top-bar cart/profile/logout
   buttons in place of Icon.razor's plain currentColor line icons. */
.top-bar-ico {
    width: 18px;
    height: 18px;
    object-fit: contain;
    flex-shrink: 0;
}

/* ============ Layout helpers ============ */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 88px 0;
    position: relative;
}

.section-tight {
    padding: 56px 0;
}

.pixel-font {
    font-family: var(--font-pixel);
}

/* ============ Typography helpers ============ */
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-size: .72rem;
    font-weight: 700;
    color: var(--neon-red-soft);
    margin-bottom: 14px;
}

.eyebrow::before {
    content: "";
    width: 28px;
    height: 2px;
    background: linear-gradient(90deg, var(--neon-red), transparent);
    box-shadow: 0 0 8px var(--neon-red);
}

.section-title {
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    font-weight: 800;
    margin: 0px, 10px;
    color: var(--text-primary);
}

.section-sub {
    color: var(--text-muted);
    max-width: 560px;
    margin-top: 10px;
    font-size: .98rem;
}

.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.glow-text {
    color: #fff;
    text-shadow: 0 0 6px currentColor, 0 0 18px currentColor;
}

/* ============ Buttons ============ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 26px;
    border-radius: 8px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: .82rem;
    border: 1px solid transparent;
    transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
    white-space: nowrap;
}

.btn svg {
    width: 15px;
    height: 15px;
}

.btn:active {
    transform: translateY(1px);
}

.btn-sm {
    padding: 9px 18px;
    font-size: .72rem;
}

.btn-primary {
    background: linear-gradient(135deg, #eb0305, #bc0204);
    color: #fff;
    box-shadow: 0 0 0 1px rgba(235, 3, 5, .4) inset, 0 8px 24px -8px rgba(235, 3, 5, .7), 0 0 18px rgba(235, 3, 5, .35);
}

.btn-primary:hover {
    box-shadow: 0 0 0 1px rgba(235, 3, 5, .6) inset, 0 10px 30px -6px rgba(235, 3, 5, .85), 0 0 30px rgba(235, 3, 5, .55);
    transform: translateY(-1px);
}

.btn-outline {
    background: rgba(235, 3, 5, .05);
    color: var(--neon-red-soft);
    border-color: rgba(235, 3, 5, .4);
}

.btn-outline:hover {
    background: rgba(235, 3, 5, .12);
    box-shadow: 0 0 22px rgba(235, 3, 5, .35);
    border-color: var(--neon-red-soft);
}

.btn-ghost {
    background: transparent;
    color: var(--text-muted);
    border-color: var(--border-subtle);
}

.btn-ghost:hover {
    color: var(--text-primary);
    border-color: rgba(255, 255, 255, .2);
}

.btn-gold {
    background: linear-gradient(135deg, #ffb238, var(--neon-gold));
    color: #1a1408;
    box-shadow: 0 0 0 1px rgba(255, 210, 63, .4) inset, 0 8px 24px -8px rgba(255, 178, 56, .7), 0 0 18px rgba(255, 178, 56, .3);
}

.btn-gold:hover {
    box-shadow: 0 0 0 1px rgba(255, 210, 63, .6) inset, 0 10px 30px -6px rgba(255, 178, 56, .85), 0 0 30px rgba(255, 178, 56, .5);
    transform: translateY(-1px);
}

/* ============ Nav shell (shared by NavMenu and ProfileLayout) ============ */
.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* !important on these three: PixelHeartMark.razor.css's own .ph-mark rule
   (36x32) carries a class+attribute-selector specificity of its own once
   Blazor's CSS-isolation scope attribute is applied ([b-xxx]), which beats a
   plain single-class override like .brand-mark/.hero-mark/.auth-mark
   regardless of source order — these three sizes were silently losing that
   fight and rendering at .ph-mark's 36x32 default everywhere (most visible
   on the homepage hero, which should be a much larger 88x78) until this was
   caught. Same precedent as .desktop-nav-hot's !important, below. */
.brand-mark {
    width: 30px !important;
    height: 27px !important;
    flex-shrink: 0;
}

.hero-mark {
    width: 88px !important;
    height: 78px !important;
    margin-bottom: 22px;
}

.hero-biome {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: clamp(110px, 16vw, 180px);
    opacity: .7;
    z-index: 0;
    pointer-events: none;
}

.brand-word {
    font-family: var(--font-pixel);
    font-size: .78rem;
    letter-spacing: .03em;
    color: #f4f2fa;
    text-shadow: 0 0 10px rgba(235, 3, 5, .5);
    direction: ltr;
}

.brand-word .accent {
    color: var(--neon-red-soft);
    text-shadow: 0 0 10px var(--neon-red), 0 0 22px var(--neon-red);
}

.nav-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, .04);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    flex-shrink: 0;
}

.nav-toggle span {
    width: 18px;
    height: 2px;
    background: #eee;
    border-radius: 2px;
    transition: transform .25s ease, opacity .2s ease, background .2s ease;
}

.nav-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
    background: var(--neon-red-soft);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
    background: var(--neon-red-soft);
}

.drawer-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(4, 4, 7, .6);
    backdrop-filter: blur(2px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s ease, visibility .25s;
    z-index: 150;
}

.drawer-backdrop.open {
    opacity: 1;
    visibility: visible;
}

.side-drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(86vw, 360px);
    background: linear-gradient(180deg, #16161f, #0e0e15);
    border-left: 1px solid rgba(235, 3, 5, 0.2);
    box-shadow: -20px 0 60px -20px rgba(0, 0, 0, .6);
    z-index: 200;
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 22px 22px 32px;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform .3s cubic-bezier(.4, 0, .2, 1);
}

.side-drawer.open {
    transform: translateX(0);
}

.drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.drawer-close {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, .05);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    color: var(--text-muted);
    flex-shrink: 0;
    transition: color .18s ease, border-color .18s ease;
}

.drawer-close:hover {
    color: var(--neon-red-soft);
    border-color: rgba(235, 3, 5, .4);
}

.drawer-label {
    display: block;
    font-family: var(--font-display);
    font-size: .68rem;
    font-weight: 700;
    color: var(--text-faint);
    margin-bottom: 10px;
}

.drawer-links {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.drawer-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 10px;
    border-radius: 8px;
    color: var(--text-muted);
    font-weight: 600;
    font-size: .92rem;
    transition: color .18s ease, background .18s ease;
}

.drawer-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, .04);
}

.drawer-link.active {
    color: #fff;
    background: rgba(235, 3, 5, .1);
}

.drawer-link.active .nav-ico, .drawer-link:hover .nav-ico {
    color: var(--neon-red-soft);
    filter: drop-shadow(0 0 5px currentColor);
}

/* Pushed to the far/opposite side of the row from the icon+label (which sit
   flush right in RTL) via a physical margin, not a flex justify trick — see
   the chat bubble alignment note in Online support chat (CLAUDE.md) for why
   this app avoids direction-relative flex-start/flex-end for exactly this
   kind of "opposite side" placement. */
.nav-unread-badge {
    margin-right: auto;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 999px;
    background: var(--neon-red);
    color: #fff;
    font-size: .72rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.drawer-link-hot {
    color: var(--neon-gold);
}

.drawer-link-hot .nav-ico {
    color: var(--neon-gold);
}

.drawer-link-hot:hover {
    color: #fff;
}

/* Highlighted single action pinned at the bottom of a drawer (e.g. logout) */
.drawer-cta {
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 13px 14px;
    border-radius: 10px;
    background: rgba(235, 3, 5, .06);
    border: 1px solid rgba(235, 3, 5, .25);
    color: var(--neon-red-soft);
    font-weight: 600;
    font-size: .9rem;
    font-family: var(--font-body);
    transition: background .18s ease, box-shadow .18s ease;
}

.drawer-cta:hover {
    background: rgba(235, 3, 5, .12);
    box-shadow: 0 0 18px rgba(235, 3, 5, .25);
}

@media (min-width: 640px) {
    .side-drawer {
        width: 340px;
    }
}

/* ============ Dashboard shell (Profile/Admin/SuperAdmin layouts) ============ */
.dash-shell {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.dash-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(9, 9, 14, 0.92);
    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    border-bottom: 1px solid rgba(235, 3, 5, 0.15);
}

.dash-header-inner {
    display: flex;
    align-items: center;
    gap: 16px;
    height: 72px;
}

.dash-body {
    display: flex;
    flex: 1;
    min-height: 0;
}

.dash-main {
    flex: 1;
    min-width: 0;
}

/* PC: the drawer becomes a persistent sidebar instead of a hamburger-triggered
   overlay — same breakpoint as the main site's nav (NavMenu.razor.css). Scoped
   under .dash-shell so it never touches NavMenu's own (separately-scoped)
   .nav-toggle/.side-drawer at the same breakpoint. */
@media (min-width: 1024px) {
    .dash-shell .nav-toggle,
    .dash-shell .drawer-backdrop,
    .dash-shell .drawer-close {
        display: none;
    }

    .dash-shell .side-drawer {
        position: static;
        transform: none;
        width: 260px;
        height: auto;
        flex-shrink: 0;
        box-shadow: none;
        border-left: none;
        border-right: 1px solid var(--border-subtle);
    }
}

#blazor-error-ui {
    color-scheme: dark;
    background: #1b0d10;
    color: #ffb4c0;
    border-top: 1px solid rgba(235, 3, 5, .4);
    bottom: 0;
    box-shadow: 0 -4px 24px rgba(235, 3, 5, .25);
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}

/* ============ Panels / badges ============ */
.panel {
    background: linear-gradient(180deg, var(--bg-panel-alt), var(--bg-panel));
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    position: relative;
    overflow: hidden;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: .68rem;
    font-weight: 700;
    width: fit-content;
}

.badge-red {
    color: var(--neon-red-soft);
    background: rgba(235, 3, 5, .12);
    border: 1px solid rgba(235, 3, 5, .3);
}

/* ============ Discount price display (shared: shop grid, product page,
   cart, checkout, admin product list) ============ */
.price-old {
    color: var(--text-faint);
    text-decoration: line-through;
    font-size: .82em;
}

.discount-badge {
    font-size: .72rem;
    white-space: nowrap;
}

/* ============ Support chat (shared: /support, /admin/support,
   /admin/support/{id}) ============ */
.chat-card {
    padding: 24px;
    max-width: 720px;
}

.chat-messages {
    display: flex;
    flex-direction: column;
    max-height: 440px;
    overflow-y: auto;
    padding: 4px;
    margin-bottom: 18px;
}

.chat-empty {
    margin: 0;
}

.chat-bubble-row {
    display: flex;
    margin-bottom: 10px;
}

.chat-bubble {
    max-width: 75%;
    padding: 10px 14px;
    border-radius: 14px;
    background: rgba(255, 255, 255, .05);
    border: 1px solid var(--border-subtle);
}

.chat-bubble p {
    color: var(--text-primary);
    font-size: .9rem;
    line-height: 1.6;
    white-space: pre-wrap;
    overflow-wrap: break-word;
}

.chat-bubble-time {
    display: block;
    margin-top: 4px;
    font-size: .72rem;
    color: var(--text-faint);
}

/* Physical margins, not flex justify-content — direction-relative flex
   keywords (flex-start/flex-end) flip meaning under RTL and are exactly the
   kind of confusion this app's "physical properties only" convention (see
   CLAUDE.md) exists to avoid. margin-left:auto always pushes right,
   margin-right:auto always pushes left, regardless of direction. */
.chat-bubble-row.mine .chat-bubble {
    margin-right: 0;
    margin-left: auto;
    background: rgba(235, 3, 5, .1);
    border-color: rgba(235, 3, 5, .3);
}

.chat-bubble-row.theirs .chat-bubble {
    margin-left: 0;
    margin-right: auto;
}

.chat-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.chat-form textarea {
    width: 100%;
    padding: 12px 14px;
    background: rgba(255, 255, 255, .04);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: inherit;
    font-size: .9rem;
    resize: vertical;
}

.chat-form textarea:focus {
    outline: none;
    border-color: var(--neon-red-soft);
    box-shadow: 0 0 0 3px rgba(235, 3, 5, .15);
}

.chat-form button {
    align-self: flex-end;
}

.chat-user-card {
    padding: 20px 24px;
    max-width: 720px;
    margin-bottom: 20px;
}

.chat-user-title {
    font-size: .95rem;
    color: #fff;
    margin-bottom: 14px;
}

.chat-user-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px 24px;
}

.chat-user-grid > div {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.chat-user-label {
    font-size: .74rem;
    color: var(--text-faint);
}

.chat-guest-note {
    margin-top: 10px;
}

@media (max-width: 560px) {
    .chat-user-grid {
        grid-template-columns: 1fr;
    }

    .chat-bubble {
        max-width: 88%;
    }
}

.badge-green {
    color: var(--neon-green);
    background: rgba(57, 255, 157, .12);
    border: 1px solid rgba(57, 255, 157, .3);
}

.badge-cyan {
    color: var(--neon-cyan);
    background: rgba(56, 242, 255, .12);
    border: 1px solid rgba(56, 242, 255, .3);
}

.badge-gold {
    color: var(--neon-gold);
    background: rgba(255, 210, 63, .12);
    border: 1px solid rgba(255, 210, 63, .3);
}

.badge-purple {
    color: var(--neon-purple);
    background: rgba(185, 104, 255, .12);
    border: 1px solid rgba(185, 104, 255, .3);
}

.coming-soon {
    text-align: center;
    padding: 100px 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.coming-soon .section-sub {
    margin-left: auto;
    margin-right: auto;
}

/* ============ Icon badges (shared across pages) ============ */
.ql-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ql-icon svg {
    width: 22px;
    height: 22px;
}

.ql-red { background: rgba(235, 3, 5, .12); color: var(--neon-red-soft); }
.ql-cyan { background: rgba(56, 242, 255, .12); color: var(--neon-cyan); }
.ql-green { background: rgba(57, 255, 157, .12); color: var(--neon-green); }
.ql-gold { background: rgba(255, 210, 63, .12); color: var(--neon-gold); }
.ql-purple { background: rgba(185, 104, 255, .12); color: var(--neon-purple); }

.placeholder-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    margin-bottom: 22px;
}

.placeholder-icon svg {
    width: 30px;
    height: 30px;
}

.placeholder-cta {
    margin-top: 28px;
}

.placeholder-trust {
    margin: 30px 0 6px;
}

/* ============ Trust badges (shared across pages) ============ */
.hero-trust {
    display: flex;
    gap: 32px;
    flex-wrap: wrap;
    justify-content: center;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: .8rem;
    color: var(--text-muted);
    font-family: var(--font-display);
}

.trust-item svg {
    width: 16px;
    height: 16px;
    color: var(--neon-green);
    filter: drop-shadow(0 0 4px var(--neon-green));
}

/* ============ Quantity stepper (shared: product page + cart) ============ */
.pdp-qty-stepper {
    display: flex;
    align-items: center;
    gap: 2px;
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    overflow: hidden;
}

.pdp-qty-btn {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, .03);
    border: none;
    color: var(--text-primary);
    font-size: 1.1rem;
    line-height: 1;
    transition: background .15s ease, color .15s ease;
}

.pdp-qty-btn:hover {
    background: rgba(235, 3, 5, .12);
    color: var(--neon-red-soft);
}

.pdp-qty-value {
    min-width: 36px;
    text-align: center;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: .9rem;
}

/* ============ Cart & checkout (shared: Cart.razor + Checkout.razor) ============ */
.cart-top-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 28px;
}

.cart-continue-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: .85rem;
    white-space: nowrap;
}

.cart-continue-link:hover {
    color: var(--neon-red-soft);
}

.cart-continue-link svg {
    width: 16px;
    height: 16px;
}

.cart-error-banner {
    padding: 14px 18px;
    margin-bottom: 24px;
    border-radius: var(--radius-md);
    background: rgba(235, 3, 5, .1);
    border: 1px solid rgba(235, 3, 5, .3);
    color: var(--neon-red-soft);
    font-size: .88rem;
}

/* Mirrors .pdp-layout's RTL convention: the first-declared column renders
   rightmost, so the wider card (products list / checkout form) comes first
   in markup to land on the right, and the narrower summary card second to
   land on the left. */
.cart-layout {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 28px;
    align-items: start;
}

.cart-summary {
    padding: 28px;
    position: sticky;
    top: 90px;
}

.cart-summary-title {
    font-size: 1rem;
    color: #fff;
    margin-bottom: 18px;
}

.cart-summary-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: .9rem;
    color: var(--text-muted);
    padding: 8px 0;
}

.cart-summary-free {
    color: var(--neon-green);
    font-size: .78rem;
    background: rgba(57, 255, 157, .1);
    border-radius: 6px;
    padding: 3px 10px;
}

.cart-summary-total {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    padding-top: 14px;
    margin-top: 6px;
    border-top: 1px solid var(--border-subtle);
}

.cart-summary-total span:last-child {
    color: var(--neon-gold);
}

@media (max-width: 860px) {
    .cart-layout {
        grid-template-columns: 1fr;
    }

    .cart-summary {
        position: static;
    }
}

/* ============ Forms ============ */
.account-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: right;
}

.field label {
    font-family: var(--font-display);
    font-size: .7rem;
    font-weight: 600;
    color: var(--text-muted);
}

.field input,
.field textarea,
.field select {
    background: rgba(255, 255, 255, .03);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    padding: 12px 14px;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: .95rem;
    outline: none;
    transition: border-color .18s ease, box-shadow .18s ease;
}

.field textarea {
    resize: vertical;
    min-height: 90px;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
    border-color: var(--neon-red-soft);
    box-shadow: 0 0 0 3px rgba(235, 3, 5, .15);
}

.field input::placeholder,
.field textarea::placeholder {
    color: var(--text-faint);
}

.field select option {
    background: var(--bg-panel);
    color: var(--text-primary);
}

/* ============ Auth pages (Login / Register) ============ */
.auth-wrap {
    display: flex;
    justify-content: center;
}

.auth-card {
    width: 100%;
    max-width: 420px;
    padding: 44px 38px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border-color: rgba(235, 3, 5, .2);
}

.auth-mark {
    width: 52px !important;
    height: 46px !important;
    margin-bottom: 18px;
}

.auth-sub {
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 30px;
}

.auth-form {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.auth-submit {
    width: 100%;
    margin-top: 6px;
}

.auth-note {
    margin-top: 22px;
    font-size: .78rem;
    color: var(--text-faint);
}

.auth-switch {
    margin-top: 14px;
    font-size: .88rem;
    color: var(--text-muted);
}

.auth-switch a {
    color: var(--neon-red-soft);
}

.auth-switch a:hover {
    text-decoration: underline;
}

.auth-error {
    color: var(--neon-red-soft);
    font-size: .82rem;
    text-align: center;
}

.account-success {
    color: var(--neon-green);
    font-size: .85rem;
}

/* ============ Legacy Blazor styles ============ */
h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: var(--neon-red-soft);
    font-family: var(--font-body);
    font-size: .78rem;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

.blazor-error-boundary::after {
    content: "An error has occurred.";
}

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

/* ============ table ============ */

.column-center {
    text-align: center;
    vertical-align: middle;
}

/* ============ Home ticker cross-component adjustments ============ */
/* `.home-ticker` itself lives in Home.razor.css (Home.razor is its only
   caller), but the elements it needs to make room for — `.page-shell`
   (MainLayout.razor.css) and `.support-fab` (NavMenu.razor.css) — are
   scoped to *different* components, so a page-scoped stylesheet could never
   reach them (see the scoped-CSS-can't-cross-components gotcha above). Using
   `:has()` here means neither of those layouts needs to know the ticker
   exists at all — no cascading parameter, no route check, just "does a
   `.home-ticker` happen to be anywhere in this page." `.support-fab`'s
   already-scoped `bottom: 24px` needs `!important` to win (same precedent
   as `.brand-mark`/`.hero-mark`/`.auth-mark` above); `.page-shell` has no
   competing `padding-bottom` to fight, so a plain rule is enough there. */
body:has(.home-ticker) .page-shell {
    padding-bottom: 60px;
}

body:has(.home-ticker) .support-fab {
    bottom: 84px !important;
}