/* ====================================
   MEDIA MINT - Retro Games Theme
   ==================================== */

:root {
    --dark-bg: #0a0a1a;
    --card-bg: #12122a;
    --card-hover: #1a1a3e;
    --neon-purple: #9b59b6;
    --neon-green: #39ff14;
    --neon-blue: #00d4ff;
    --neon-pink: #ff2d95;
    --text-primary: #e0e0ff;
    --text-secondary: #a0a0c0;
    --sale-red: #ff4444;
    --gold: #ffd700;
    --border-color: #2a2a5a;
    --font-pixel: 'Press Start 2P', 'Courier New', monospace;
    --font-retro: 'VT323', 'Courier New', monospace;
}

@layer storefront-dark, storefront-readability-refresh;

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-retro);
    background: var(--dark-bg);
    color: var(--text-primary);
    line-height: 1.6;
    font-size: 20px;
    overflow-x: hidden;
    position: relative;
}

.scanlines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(255, 255, 255, 0.03) 2px,
        rgba(255, 255, 255, 0.03) 4px
    );
    pointer-events: none;
    z-index: 9999;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3, h4 {
    font-family: var(--font-pixel);
    margin-bottom: 1rem;
}
h1 { font-size: 1.6rem; }
h2 { font-size: 1.3rem; color: var(--neon-purple); }
h3 { font-size: 1rem; }

a {
    color: var(--neon-blue);
    text-decoration: none;
    transition: color 0.3s;
}
a:hover { color: var(--neon-green); }

.neon-text {
    color: var(--neon-green);
    text-shadow: 0 0 10px var(--neon-green), 0 0 20px var(--neon-green);
}

/* --- Trust Signal Grid --- */
.trust-signal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    padding: 40px 20px;
    background: rgba(18, 18, 42, 0.5);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    text-align: center;
}

.trust-card {
    padding: 20px;
    transition: transform 0.3s;
}

.trust-card:hover {
    transform: translateY(-5px);
}

.trust-icon {
    font-size: 2rem;
    margin-bottom: 10px;
}

.trust-card h3 {
    color: var(--neon-blue);
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.trust-card p {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* --- Mint Live Status --- */
.mint-live-status {
    padding: 60px 20px;
    background: linear-gradient(180deg, var(--dark-bg) 0%, #1a1a3e 100%);
}

.live-container {
    max-width: 1000px;
    margin: 0 auto;
    border: 2px solid var(--neon-green);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(57, 255, 20, 0.2);
}

.live-header {
    background: rgba(57, 255, 20, 0.1);
    padding: 15px 20px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--neon-green);
}

.live-dot {
    width: 12px;
    height: 12px;
    background: #ff0000;
    border-radius: 50%;
    margin-right: 15px;
    animation: blink 1s infinite;
}

@keyframes blink {
    0% { opacity: 1; }
    50% { opacity: 0.3; }
    100% { opacity: 1; }
}

.live-header h2 {
    margin: 0;
    font-size: 0.9rem;
    flex-grow: 1;
}

.live-location {
    font-size: 0.7rem;
    color: var(--neon-green);
}

.live-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 0;
}

@media (max-width: 768px) {
    .live-content { grid-template-columns: 1fr; }
}

.live-video-placeholder {
    position: relative;
    background: #000;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.live-video-placeholder img {
    width: 100%;
    height: auto;
    opacity: 0.8;
}

.neon-scanline {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(57, 255, 20, 0.4);
    box-shadow: 0 0 10px var(--neon-green);
    z-index: 2;
    animation: scan 4s linear infinite;
}

@keyframes scan {
    0% { top: 0%; }
    100% { top: 100%; }
}

.live-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.7);
    padding: 10px;
    z-index: 3;
}

.overlay-text {
    font-size: 0.7rem;
    color: var(--neon-green);
    font-family: var(--font-pixel);
}

.live-stats {
    background: var(--card-bg);
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.stat-box {
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
}

.stat-box label {
    display: block;
    font-size: 0.7rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    margin-bottom: 5px;
}

.stat-val {
    font-size: 1.2rem;
    color: var(--neon-blue);
    font-family: var(--font-pixel);
}

.btn-outline-neon {
    border: 1px solid var(--neon-green);
    color: var(--neon-green);
    background: transparent;
}

/* --- Mint Concierge --- */
.mint-concierge-section {
    margin-top: 40px;
}

.concierge-card {
    background: var(--card-bg);
    border: 1px solid var(--neon-blue);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.1);
}

.concierge-header {
    background: linear-gradient(90deg, #1a1a3e, #00d4ff33);
    padding: 20px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
}

.concierge-avatar {
    font-size: 2.5rem;
    margin-right: 20px;
}

.concierge-title h2 {
    margin: 0;
    font-size: 1rem;
    color: var(--neon-blue);
}

.concierge-title p {
    margin: 0;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.concierge-body {
    padding: 30px;
}

.analysis-status {
    display: flex;
    gap: 40px;
    margin-bottom: 30px;
}

.status-item {
    display: flex;
    flex-direction: column;
}

.status-item .label {
    font-size: 0.7rem;
    text-transform: uppercase;
    color: var(--text-secondary);
}

.status-item .value {
    font-size: 1.2rem;
    font-family: var(--font-pixel);
    color: var(--text-primary);
}

.concierge-recommendations h4 {
    font-size: 0.8rem;
    margin-bottom: 20px;
    border-left: 3px solid var(--neon-blue);
    padding-left: 10px;
}

.rec-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.rec-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 20px;
    display: flex;
    align-items: center;
    border: 1px solid transparent;
    transition: 0.3s;
}

.rec-item:hover {
    border-color: var(--neon-blue);
    background: rgba(0, 212, 255, 0.05);
}

.rec-image {
    font-size: 2rem;
    margin-right: 20px;
    min-width: 50px;
    text-align: center;
}

.rec-info {
    flex-grow: 1;
}

.rec-info h5 {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-primary);
}

.rec-info p {
    margin: 5px 0;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.rec-info .badge {
    font-size: 0.6rem;
}

.btn-neon {
    background: var(--neon-blue);
    color: #000;
    border: none;
    font-weight: bold;
    font-family: var(--font-retro);
}

.btn-neon:hover {
    background: var(--neon-green);
    box-shadow: 0 0 10px var(--neon-green);
}
/* Navigation Dropdown */
.nav-dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--dark-bg);
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.5);
    z-index: 1000;
    border: 1px solid var(--neon-blue);
    border-radius: 4px;
    top: 100%;
    left: 0;
}

.dropdown-content a {
    color: var(--text-color);
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    font-size: 0.8rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.dropdown-content a:hover {
    background-color: rgba(0, 243, 255, 0.1);
    color: var(--neon-blue);
}

.nav-dropdown:hover .dropdown-content,
.nav-dropdown:focus-within .dropdown-content {
    display: block;
}

.neon-text-blue { color: var(--neon-blue); text-shadow: 0 0 5px var(--neon-blue); }
.neon-text-green { color: var(--neon-green); text-shadow: 0 0 5px var(--neon-green); }
.neon-text-purple { color: var(--neon-purple); text-shadow: 0 0 5px var(--neon-purple); }
.neon-text-yellow { color: #f1c40f; text-shadow: 0 0 5px #f1c40f; }

.border-neon-blue { border: 1px solid var(--neon-blue) !important; }
.border-neon-purple { border: 1px solid var(--neon-purple) !important; }
.border-neon-yellow { border: 1px solid #f1c40f !important; }

.navbar {
    background: var(--card-bg);
    border-bottom: 2px solid var(--neon-purple);
    padding: 0 0 8px;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 0 20px rgba(155, 89, 182, 0.3);
}
.navbar .container {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 7px;
    flex-wrap: nowrap;
}
.navbar .nav-promo-inner {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}
.nav-promo-link {
    display: inline-flex;
    align-items: baseline;
    gap: 0.35rem;
    text-decoration: none;
}
.nav-promo-link-right { text-align: right; }
.nav-promo-guarantee-icon { color: #ffd84d; font-weight: 900; }
.nav-promo-guarantee-short { display: none; }
.nav-top-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 16px;
}
.nav-company-links {
    grid-column: 1;
    justify-self: start;
    display: flex;
    align-items: center;
    gap: 4px;
    min-width: 0;
}
.logo {
    display: flex;
    align-items: center;
    grid-column: 2;
    justify-self: center;
    text-decoration: none;
}
.logo-img {
    height: 40px;
    width: auto;
    filter: drop-shadow(0 0 5px rgba(57, 255, 20, 0.5));
}
.logo-img-footer {
    height: 50px;
    width: auto;
    margin-bottom: 15px;
    filter: drop-shadow(0 0 5px rgba(57, 255, 20, 0.3));
}
.logo-pixel { color: var(--neon-purple); font-size: 1.2rem; }
.nav-links,
.nav-utilities {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
}
.nav-links { gap: 20px; }
.nav-utilities {
    grid-column: 3;
    gap: 16px;
    justify-content: flex-end;
    justify-self: end;
    min-width: 0;
}
.nav-category-row {
    display: grid;
    grid-template-columns: max-content minmax(190px, 1fr);
    align-items: stretch;
    gap: 0;
}
.nav-category-menu {
    display: flex;
    align-items: stretch;
    min-width: 0;
}
.nav-category-scroll {
    min-width: 0;
    position: relative;
}
.nav-scroll-cue {
    display: none;
}
.nav-category-menu > a,
.nav-category-menu > .nav-dropdown {
    display: flex;
    align-items: stretch;
}
.nav-platform-links {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 16px;
    padding-top: 6px;
    border-top: 1px solid rgba(155, 89, 182, 0.3);
}
.nav-platform-balance { grid-column: 1; }
.nav-platform-menu {
    grid-column: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(28px, 8vw, 100px);
}
.nav-search-form {
    grid-column: 2;
    align-self: center;
    justify-self: stretch;
    max-width: 360px;
    width: 100%;
}
.nav-links a,
.nav-utilities a,
.nav-dropdown-trigger,
.nav-link-button {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-family: var(--font-pixel);
    text-transform: uppercase;
    padding: 5px 0;
    border-bottom: 2px solid transparent;
    transition: all 0.3s;
}
.nav-dropdown-trigger {
    background: transparent;
    border-top: 0;
    border-right: 0;
    border-left: 0;
    cursor: pointer;
}
.nav-platform-links a { color: var(--neon-blue); }
.admin-nav-link { color: var(--neon-purple) !important; }
.nav-inline-form {
    margin: 0;
    display: inline-flex;
    align-items: center;
}
.nav-link-button {
    background: transparent;
    border-top: 0;
    border-right: 0;
    border-left: 0;
    cursor: pointer;
}
.nav-links a:hover,
.nav-utilities a:hover,
.nav-dropdown-trigger:hover,
.nav-dropdown-trigger:focus,
.nav-link-button:hover { color: var(--neon-green); border-bottom-color: var(--neon-green); }
.cart-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.cart-icon { font-size: 1.15rem; line-height: 1; }
.cart-badge {
    background: var(--neon-pink); color: #fff; border-radius: 50%;
    padding: 2px 6px; font-size: 0.5rem;
    position: absolute; top: -8px; right: -12px;
    font-family: var(--font-pixel);
}
.search-form { display: flex; width: 100%; margin: 0; }
.search-form input {
    background: var(--dark-bg); border: 1px solid var(--border-color);
    color: var(--text-primary); padding: 8px 12px;
    font-family: var(--font-retro); font-size: 1rem; outline: none; width: 100%; min-width: 0;
}
.search-form input:focus {
    border-color: var(--neon-purple);
    box-shadow: 0 0 10px rgba(155, 89, 182, 0.5);
}
.search-form button {
    background: var(--neon-purple); border: none; color: #fff;
    padding: 8px 12px; cursor: pointer; font-size: 1rem;
}

/* --- Flash Messages --- */
.flash-messages { margin-top: 10px; }
.flash {
    padding: 12px 20px; margin-bottom: 10px;
    font-family: var(--font-pixel); font-size: 0.75rem; border-radius: 4px;
}
.flash-success { background: rgba(57, 255, 20, 0.15); border: 1px solid var(--neon-green); color: var(--neon-green); }

/* --- Hero --- */
.hero {
    text-align: center; padding: 80px 20px 60px;
    background: linear-gradient(180deg, var(--card-bg) 0%, var(--dark-bg) 100%);
    border-bottom: 2px solid var(--neon-purple); margin-bottom: 40px; position: relative;
}
.hero::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(155, 89, 182, 0.1) 0%, transparent 70%);
    pointer-events: none;
}
.hero-title { font-size: 2rem; margin-bottom: 20px; line-height: 1.4; }
.hero-subtitle { font-size: 1.2rem; color: var(--text-secondary); margin-bottom: 30px; }
.hero-buttons { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; }

/* --- Buttons --- */
.btn {
    display: inline-block; padding: 12px 24px;
    font-family: var(--font-pixel); font-size: 0.75rem;
    text-transform: uppercase; border: 2px solid; cursor: pointer;
    transition: all 0.3s; text-decoration: none;
}
.btn-primary {
    background: var(--neon-purple); border-color: var(--neon-purple); color: #fff;
    box-shadow: 0 0 15px rgba(155, 89, 182, 0.5);
}
.btn-primary:hover { background: transparent; color: var(--neon-purple); box-shadow: 0 0 25px rgba(155, 89, 182, 0.8); }
.btn-secondary { background: transparent; border-color: var(--neon-blue); color: var(--neon-blue); }
.btn-secondary:hover { background: var(--neon-blue); color: var(--dark-bg); }
.btn-add-cart { background: var(--neon-green); border-color: var(--neon-green); color: #000; display: block; width: 100%; text-align: center; }
.btn-add-cart:hover { background: transparent; color: var(--neon-green); }
.btn-disabled { opacity: 0.5; cursor: not-allowed; }
.btn-lg { padding: 16px 40px; font-size: 0.9rem; }
.btn-sm { padding: 7px 11px; font-size: 0.75rem; }

/* --- Live Activity Feed --- */
.activity-feed {
    background: #000;
    border: 2px solid var(--neon-blue);
    padding: 10px;
    margin-bottom: 2rem;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 0 10px var(--neon-blue);
}
.ticker-wrap {
    width: 100%;
    overflow: hidden;
}
.ticker {
    display: inline-block;
    white-space: nowrap;
    padding-right: 100%;
    animation: ticker 30s linear infinite;
}
.ticker__item {
    display: inline-block;
    padding: 0 2rem;
    font-family: var(--font-pixel);
    font-size: 0.7rem;
    color: var(--neon-green);
    text-transform: uppercase;
}
.ticker__item span {
    color: var(--neon-pink);
    margin-right: 5px;
}

@keyframes ticker {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-100%, 0, 0); }
}

/* --- Scarcity Effects --- */
.low-stock-alert {
    color: var(--sale-red);
    font-family: var(--font-pixel);
    font-size: 0.8rem;
    margin: 1rem 0;
    animation: blink 1s step-start infinite;
    border: 1px solid var(--sale-red);
    padding: 10px;
    display: inline-block;
}

@keyframes blink {
    50% { opacity: 0; }
}

/* --- Platform Rail --- */
.platform-rail { margin-bottom: 50px; }
.platform-grid { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.platform-card {
    background: var(--card-bg); border: 1px solid var(--border-color);
    padding: 15px 20px; display: flex; align-items: center; gap: 10px;
    transition: all 0.3s; cursor: pointer;
}
.platform-card:hover { border-color: var(--neon-purple); box-shadow: 0 0 15px rgba(155, 89, 182, 0.4); transform: translateY(-2px); }
.platform-icon { font-size: 1.5rem; }
.platform-card span { font-family: var(--font-pixel); font-size: 0.75rem; }

/* --- Product Grid --- */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 25px; margin: 20px 0 50px; }
.product-card {
    background: var(--card-bg); border: 1px solid var(--border-color);
    overflow: hidden; transition: all 0.3s; cursor: pointer;
}
.product-card:hover { border-color: var(--neon-purple); box-shadow: 0 0 20px rgba(155, 89, 182, 0.4); transform: translateY(-5px); background: var(--card-hover); }
.product-card-link { text-decoration: none; color: inherit; display: block; }
.product-image { 
    position: relative; 
    width: 100%; 
    height: 350px; 
    overflow: hidden; 
    background: #111;
    border-bottom: 2px solid var(--border-color);
}
.product-image img { 
    display: block !important;
    width: 100%; 
    height: 100%; 
    object-fit: fill; 
    transition: transform 0.3s;
}
.product-card:hover .product-image img { transform: scale(1.05); }
.badge {
    position: absolute; top: 10px; left: 10px; padding: 5px 10px;
    font-family: var(--font-pixel); font-size: 0.6rem; z-index: 1;
}
.badge-sale { background: var(--sale-red); color: #fff; box-shadow: 0 0 10px rgba(255, 68, 68, 0.5); }
.badge-console { background: var(--gold); color: #000; top: 10px; left: 10px; }
.product-info { padding: 15px; }
.product-platform { color: var(--neon-blue); font-family: var(--font-pixel); font-size: 0.65rem; text-transform: uppercase; letter-spacing: 1px; }
.product-info h3 { font-size: 0.85rem; margin: 8px 0; line-height: 1.4; min-height: 2.8em; }
.product-condition { color: var(--text-secondary); font-size: 0.9rem; display: block; margin-bottom: 10px; }
.product-price { margin-bottom: 12px; }
.original-price { color: var(--text-secondary); text-decoration: line-through; font-size: 0.8rem; margin-right: 8px; }
.current-price { color: var(--neon-green); font-size: 1.2rem; }
.original-price-lg { color: var(--text-secondary); text-decoration: line-through; font-size: 1.2rem; margin-right: 10px; }
.current-price-lg { color: var(--neon-green); font-size: 1.8rem; }
.in-stock { color: var(--neon-green); font-size: 0.8rem; display: block; margin-bottom: 10px; }
.out-of-stock { color: var(--sale-red); font-size: 0.8rem; display: block; margin-bottom: 10px; }

/* --- Product Detail --- */
.product-detail { padding: 30px 0; }
.breadcrumbs { margin-bottom: 30px; font-size: 0.9rem; color: var(--text-secondary); }
.breadcrumbs a { color: var(--neon-blue); }
.product-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; margin-bottom: 60px; }
.product-detail-image img { width: 100%; border: 2px solid var(--border-color); object-fit: contain; max-height: 600px; }
.product-detail-info h1 { font-size: 1.5rem; line-height: 1.4; }
.product-platform-lg { color: var(--neon-blue); font-family: var(--font-pixel); font-size: 0.7rem; text-transform: uppercase; }
.product-condition-lg { color: var(--text-secondary); font-size: 1rem; display: block; margin-bottom: 15px; }
.product-detail-price { margin: 20px 0; }
.product-description { color: var(--text-secondary); font-size: 1.15rem; line-height: 1.8; margin-bottom: 20px; }
.product-meta { margin-bottom: 25px; font-size: 1.05rem; }
.product-meta div { padding: 8px 0; border-bottom: 1px solid var(--border-color); }

/* --- Cart --- */
.cart-layout { display: grid; grid-template-columns: 2fr 1fr; gap: 40px; margin: 30px 0; }
.cart-item { display: flex; align-items: center; gap: 20px; background: var(--card-bg); border: 1px solid var(--border-color); padding: 15px; margin-bottom: 15px; }
.cart-item-image { width: 80px; height: 80px; object-fit: contain; }
.cart-item-info { flex: 1; }
.cart-item-info h3 { font-size: 0.8rem; margin-bottom: 5px; }
.cart-item-quantity { display: inline-flex; align-items: center; gap: 8px; min-width: 112px; justify-content: center; }
.cart-item-quantity form { margin: 0; }
.qty-btn {
    width: 32px; height: 32px; border: 1px solid var(--neon-blue); border-radius: 4px;
    background: #111; color: var(--neon-blue); cursor: pointer; font-weight: bold;
}
.qty-btn:hover:not(:disabled) { background: var(--neon-blue); color: #000; }
.qty-btn:disabled { opacity: 0.35; cursor: not-allowed; }
.qty-count { min-width: 24px; text-align: center; color: var(--text-primary); font-weight: bold; }
.cart-item-price { min-width: 110px; display: flex; flex-direction: column; gap: 3px; font-size: 1.1rem; color: var(--neon-green); font-weight: bold; text-align: right; }
.cart-item-price small { color: var(--text-secondary); font-size: 0.7rem; font-weight: normal; }
.btn-remove { background: none; border: none; color: var(--sale-red) !important; font-size: 1.2rem; padding: 5px 10px; cursor: pointer; }
.cart-summary { background: var(--card-bg); border: 1px solid var(--border-color); padding: 25px; height: fit-content; position: sticky; top: 100px; }
.summary-row { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--border-color); font-size: 1rem; }
.summary-total { font-family: var(--font-pixel); font-size: 0.8rem; border-bottom: none; margin-top: 10px; padding-top: 15px; border-top: 2px solid var(--neon-purple); }
.cart-summary .btn { width: 100%; margin-top: 15px; text-align: center; }
.checkout-note { text-align: center; color: var(--text-secondary); font-size: 0.85rem; margin-top: 10px; }
.empty-cart { text-align: center; padding: 80px 0; }
.empty-cart p { font-size: 1.2rem; margin-bottom: 20px; }

/* --- Sell Page --- */
.sell-page { padding: 30px 0; }
.sell-header { text-align: center; margin-bottom: 40px; }
.sell-header p { font-size: 1.1rem; color: var(--text-secondary); max-width: 600px; margin: 10px auto 0; }
.sell-layout { display: grid; grid-template-columns: 1.5fr 1fr; gap: 40px; }
.sell-form { background: var(--card-bg); border: 1px solid var(--border-color); padding: 30px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-family: var(--font-pixel); font-size: 0.7rem; margin-bottom: 8px; color: var(--text-secondary); }
.form-group input, .form-group select, .form-group textarea {
    width: 100%; padding: 12px; background: var(--dark-bg);
    border: 1px solid var(--border-color); color: var(--text-primary);
    font-family: var(--font-retro); font-size: 1rem; outline: none;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    border-color: var(--neon-purple); box-shadow: 0 0 10px rgba(155, 89, 182, 0.3);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.sell-info { display: flex; flex-direction: column; gap: 20px; }
.info-card { background: var(--card-bg); border: 1px solid var(--border-color); padding: 25px; }
.info-card h3 { font-size: 0.7rem; margin-bottom: 15px; }
.info-card ol, .info-card ul { padding-left: 20px; }
.info-card li { margin-bottom: 12px; font-size: 0.95rem; }

/* --- Empty State --- */
.empty-state { grid-column: 1 / -1; text-align: center; padding: 80px 0; }
.empty-state p { font-size: 1.1rem; margin-bottom: 20px; color: var(--text-secondary); }

/* --- Footer --- */
.footer { background: var(--card-bg); border-top: 2px solid var(--neon-purple); padding: 50px 0 20px; margin-top: 80px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 30px; margin-bottom: 30px; }
.footer h4 { color: var(--neon-purple); font-size: 0.8rem; margin-bottom: 15px; }
.footer p { color: var(--text-secondary); font-size: 0.9rem; }
.footer a { display: block; color: var(--text-secondary); font-size: 0.9rem; margin-bottom: 8px; }
.footer a:hover { color: var(--neon-green); }
.footer-bottom { text-align: center; padding-top: 20px; border-top: 1px solid var(--border-color); }
.footer-bottom p { color: var(--text-secondary); font-size: 0.8rem; }

.low-stock-alert {
    color: #ff6b6b;
    font-weight: bold;
    font-size: 0.8rem;
    display: block;
    margin-top: 5px;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { opacity: 0.7; }
    50% { opacity: 1; }
    100% { opacity: 0.7; }
}

.legal-disclaimer {
    margin-top: 15px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.4;
}

.legal-disclaimer p {
    margin-bottom: 5px;
}

/* --- Newsletter Footer --- */
.footer-newsletter {
    display: flex;
    flex-direction: column;
}
.newsletter-form {
    margin-top: 10px;
}
.newsletter-form .form-control {
    background: var(--dark-bg);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 10px;
    font-family: var(--font-retro);
    font-size: 0.9rem;
    width: 100%;
    margin-bottom: 10px;
}
.newsletter-form .btn {
    width: 100%;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--neon-blue);
    padding-bottom: 10px;
}
.view-all {
    font-family: var(--font-pixel);
    font-size: 0.7rem;
    color: var(--neon-blue);
}
.view-all:hover {
    color: var(--neon-green);
}
.recently-viewed {
    margin: 40px 0;
    padding: 20px;
    background: rgba(0, 212, 255, 0.05);
    border: 1px dashed var(--neon-blue);
}

.contact-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 2rem;
    max-width: 900px;
    margin: 2rem auto;
}

.contact-identity-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.search-sort-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.search-sort-options {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 0.5rem;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    body { font-size: 16px; }
    .hero-title { font-size: 1.2rem; }
    .hero-subtitle { font-size: 1rem; }
    .navbar > .container { gap: 0; }
    .navbar .nav-promo-inner { gap: 8px; }
    .nav-brand-row { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 8px; }
    .nav-category-row {
        grid-template-columns: minmax(0, 1fr) minmax(150px, 34%);
    }
    .nav-category-menu {
        justify-content: flex-start;
        overflow-x: auto;
        overflow-y: hidden;
        scrollbar-width: none;
        min-height: 40px;
    }
    .nav-category-menu::-webkit-scrollbar,
    .nav-utilities::-webkit-scrollbar { display: none; }
    .nav-utilities {
        gap: 10px;
        justify-content: flex-start;
        overflow-x: auto;
        scrollbar-width: none;
    }
    .nav-search-form { grid-column: 2; min-width: 0; }
    .nav-primary-links .dropdown-content {
        position: fixed;
        top: var(--navbar-height, 141px);
        left: 20px;
    }
    .nav-primary-links .nav-dropdown + .nav-dropdown .dropdown-content {
        right: 20px;
        left: auto;
    }
    .search-form input { width: 100%; }
    .product-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 15px; }
    .product-detail-grid { grid-template-columns: 1fr; gap: 30px; }
    .cart-layout { grid-template-columns: 1fr; }
    .cart-item {
        display: grid;
        grid-template-columns: 64px minmax(0, 1fr) auto;
        gap: 10px 12px;
        align-items: center;
    }
    .cart-item-image { width: 64px; height: 64px; grid-row: 1 / span 2; }
    .cart-item-info { min-width: 0; }
    .cart-item-quantity { grid-column: 2; min-width: 0; justify-content: flex-start; }
    .cart-item-price { grid-column: 3; grid-row: 1; min-width: 0; }
    .cart-item > form:last-child { grid-column: 3; grid-row: 2; justify-self: end; }
    .search-sort-options { justify-content: flex-start; width: 100%; }
    .sell-layout { grid-template-columns: 1fr; }
    .form-row,
    .contact-layout,
    .contact-identity-grid { grid-template-columns: 1fr; }
    .product-image { height: 200px; }
}
@media (max-width: 480px) {
    .logo-img { width: 92px; height: auto; }
    .navbar .nav-promo-inner { align-items: flex-start; }
    .nav-promo-link { align-items: flex-start; flex-direction: column; gap: 0; }
    .nav-brand-row {
        grid-template-areas: "logo" "company" "utilities";
        grid-template-columns: 1fr;
        gap: 3px;
    }
    .nav-brand-row .logo { grid-area: logo; }
    .nav-company-links { grid-area: company; justify-self: center; }
    .nav-utilities { grid-area: utilities; justify-content: center; justify-self: stretch; gap: 7px; overflow-x: auto; }
    .nav-utilities a,
    .nav-utilities .nav-link-button { font-size: 0.55rem; }
    .nav-category-row { grid-template-columns: 1fr; }
    .nav-category-menu { grid-column: 1; }
    .nav-search-form { grid-column: 1; justify-self: stretch; max-width: none; }
    .search-form input { padding: 7px 6px; font-size: 0.9rem; }
    .search-form button { padding: 7px 8px; }
}
/* Filter System */
.shop-container {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.catalog-results {
    min-width: 0;
    scroll-margin-top: 6rem;
}

.catalog-product-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-top: 0;
}

.catalog-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin: 0 0 2rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    text-align: center;
}

.filter-sidebar {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 20px;
    height: fit-content;
    position: sticky;
    top: 100px;
}

.filter-summary {
    display: none;
}

@media (min-width: 769px) {
    .filter-sidebar > .filter-panel {
        display: block !important;
    }
}

.filter-sidebar h3 {
    margin-top: 0;
    border-bottom: 2px solid var(--neon-purple);
    padding-bottom: 0.5rem;
    color: var(--neon-purple);
    margin-bottom: 20px;
}

.filter-category {
    border-bottom: 1px solid var(--border-color);
    margin: 0;
}

.filter-category-summary {
    align-items: center;
    color: var(--neon-blue);
    cursor: pointer;
    display: flex;
    font-family: var(--font-pixel);
    font-size: 0.85rem;
    gap: 8px;
    justify-content: space-between;
    line-height: 1.4;
    list-style: none;
    min-height: 48px;
    padding: 12px 2px;
}

.filter-category-summary::-webkit-details-marker {
    display: none;
}

.filter-category-summary::marker {
    content: '';
}

.filter-category-summary::after {
    align-items: center;
    border: 1px solid currentColor;
    border-radius: 50%;
    content: '+';
    display: inline-flex;
    flex: 0 0 22px;
    font-family: var(--font-body);
    font-size: 1rem;
    height: 22px;
    justify-content: center;
    margin-left: auto;
}

.filter-category[open] > .filter-category-summary::after {
    content: '-';
}

.filter-category-summary:hover,
.filter-category-summary:focus-visible {
    color: var(--neon-purple);
}

.filter-category-summary:focus-visible {
    outline: 3px solid currentColor;
    outline-offset: 3px;
}

.filter-category-status {
    background: rgba(57, 255, 20, 0.14);
    border: 1px solid currentColor;
    border-radius: 999px;
    color: var(--neon-green);
    font-family: var(--font-body);
    font-size: 0.72rem;
    font-weight: 800;
    line-height: 1;
    padding: 5px 7px;
}

.filter-category-content {
    padding: 0 2px 14px;
}

.filter-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.filter-list li {
    margin-bottom: 8px;
}

.filter-list a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 1.05rem;
    transition: all 0.2s;
    display: block;
}

.filter-list a:hover, .filter-list a.active {
    color: var(--neon-green);
    transform: translateX(5px);
}

.filter-list a.active {
    font-weight: bold;
    text-shadow: 0 0 5px rgba(57, 255, 20, 0.5);
}

.filter-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.btn-block {
    width: 100%;
    text-align: center;
}

@media (max-width: 768px) {
    .shop-container {
        grid-template-columns: 1fr;
    }
    .catalog-product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 15px;
    }
    .catalog-product-grid .product-image {
        height: clamp(180px, 45vw, 280px) !important;
    }
    .catalog-product-grid .product-image img {
        object-fit: contain !important;
    }
    .catalog-results {
        scroll-margin-top: 11rem;
    }
    .filter-sidebar {
        padding: 0;
        position: static;
    }
    .filter-summary {
        align-items: center;
        background: var(--card-bg);
        color: var(--neon-blue);
        cursor: pointer;
        display: flex;
        font-family: var(--font-pixel);
        font-size: 0.76rem;
        font-weight: 800;
        justify-content: space-between;
        min-height: 48px;
        padding: 12px 14px;
    }
    .filter-summary::-webkit-details-marker {
        display: none;
    }
    .filter-summary::marker {
        content: '';
    }
    .filter-summary-action {
        color: var(--text-secondary);
        font-family: var(--font-body);
        font-size: 0.8rem;
        font-weight: 700;
    }
    .filter-sidebar[open] .filter-summary {
        border-bottom: 1px solid var(--border-color);
    }
    .filter-panel {
        padding: 16px;
    }
    .filter-desktop-title {
        display: none;
    }
    .chat-window {
        width: 100vw;
        max-width: 100vw;
        height: calc(100vh - 74px);
        top: 74px;
        right: 0;
        border-radius: 0;
    }
}

@media (min-width: 769px) and (max-width: 1199px) {
    .catalog-product-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.profile-link { position: relative; }
.founder-dot { font-size: 0.7rem; vertical-align: super; margin-left: -2px; filter: drop-shadow(0 0 2px var(--neon-blue)); }


/* ====================================
   ACCESSIBILITY HELPERS
   ==================================== */
.skip-link {
  position: fixed;
  top: 0;
  left: 8px;
  transform: translateY(calc(-100% - 4px));
  background: var(--neon-green, #39ff14);
  color: #000;
  padding: 8px 16px;
  z-index: 10000;
  text-decoration: none;
  font-weight: bold;
  border-radius: 0 0 6px 6px;
  transition: transform 0.15s ease-in-out;
}
.skip-link:focus {
  transform: translateY(0);
  outline: 3px solid var(--neon-purple, #ff00ff);
}
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}
*:focus-visible {
  outline: 3px solid var(--neon-purple, #ff00ff);
  outline-offset: 2px;
}

/* --- AI Chat Widgets --- */
.chat-widget {
    position: fixed;
    bottom: 20px;
    z-index: 1000;
}

.chat-widget.buy {
    right: 20px;
}

.chat-widget.sell {
    left: auto;
    right: 16px;
}

.chat-toggle {
    align-items: center;
    display: inline-flex;
    gap: 6px;
    height: 46px;
    justify-content: center;
    min-width: 52px;
    width: auto;
    padding: 0 14px;
    border-radius: 999px;
    background: var(--neon-purple);
    border: 1px solid var(--neon-blue);
    color: white;
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.24);
    transition: transform 0.3s ease;
}

.chat-toggle-label {
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.chat-toggle:hover {
    transform: scale(1.1);
}

.chat-window {
    position: fixed;
    top: var(--navbar-height, 74px);
    width: 600px;
    height: calc(100vh - var(--navbar-height, 74px));
    max-width: calc(50vw - 20px);
    background: var(--dark-bg);
    border: 1px solid var(--neon-blue);
    display: flex;
    flex-direction: column;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    z-index: 1001;
}

@media (min-width: 1200px) {
    .chat-window {
        width: calc((100vw - 1200px) / 2 + 150px);
        max-width: 600px;
    }
}

.chat-window#chat-window-buy {
    right: 0;
    border-right: none;
    border-radius: 10px 0 0 10px;
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.5);
}

.chat-window#chat-window-sell {
    left: auto;
    right: 0;
    border-right: none;
    border-radius: 10px 0 0 10px;
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.5);
}

@media (max-width: 768px) {
    .chat-window,
    .chat-window#chat-window-buy,
    .chat-window#chat-window-sell {
        top: var(--navbar-height, 141px);
        width: 100vw;
        max-width: 100vw;
        height: calc(100vh - var(--navbar-height, 141px));
        right: 0;
        left: 0;
        border-radius: 0;
    }
}

.chat-window.hidden {
    display: none;
}

.chat-header {
    background: var(--card-bg);
    padding: 10px 15px;
    border-bottom: 1px solid var(--neon-blue);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-header h3 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--neon-blue);
}

.chat-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 20px;
    cursor: pointer;
}

.chat-messages-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.pinned-greeting {
    padding: 15px;
    background: rgba(0, 0, 0, 0.2);
    border-bottom: 2px solid var(--neon-purple); /* The purple line */
}

.chat-messages {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.message {
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 1rem;
    max-width: 85%;
    line-height: 1.4;
}

.message.assistant {
    background: var(--card-bg);
    border-left: 3px solid var(--neon-purple);
    align-self: flex-start;
    color: #ffffff;
}

.message.user {
    background: var(--neon-blue);
    color: black;
    align-self: flex-end;
}

.chat-product-results {
    display: grid;
    gap: 8px;
    width: 100%;
}

.chat-product-result {
    display: grid;
    gap: 3px;
    padding: 9px 11px;
    border: 1px solid var(--border-color);
    border-left: 3px solid var(--neon-blue);
    border-radius: 5px;
    background: var(--card-bg);
    color: var(--text-primary);
    text-decoration: none;
}

.chat-product-result:hover,
.chat-product-result:focus {
    border-color: var(--neon-green);
    color: var(--neon-green);
}

.chat-product-result strong {
    font-size: 0.9rem;
}

.chat-product-result span {
    color: var(--text-secondary);
    font-size: 0.78rem;
}

.chat-browse-results {
    justify-self: start;
    color: var(--neon-blue);
    font-size: 0.85rem;
}

.chat-form {
    padding: 10px;
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 10px;
}

.chat-form-with-photo {
    flex-direction: column;
    gap: 7px;
}

.chat-compose-row,
.chat-photo-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.chat-compose-row {
    flex: 1;
    min-width: 0;
}

.chat-compose-row input[type="text"] {
    flex: 1;
    background: #111;
    border: 1px solid var(--border-color);
    color: white;
    padding: 10px;
    border-radius: 5px;
    font-size: 1rem;
}

.chat-photo-button input[type="file"] {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.chat-photo-button {
    flex: 0 0 auto;
    padding: 6px 10px;
    border: 1px solid var(--neon-blue);
    border-radius: 5px;
    color: var(--neon-blue);
    cursor: pointer;
    font-size: 0.85rem;
}

.chat-photo-button:focus-within {
    outline: 2px solid var(--neon-green);
    outline-offset: 2px;
}

.chat-photo-name {
    min-width: 0;
    overflow: hidden;
    color: var(--text-secondary);
    font-size: 0.8rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.chat-photo-consent {
    display: flex;
    align-items: flex-start;
    gap: 7px;
    color: var(--text-secondary);
    font-size: 0.75rem;
    line-height: 1.3;
}

.chat-photo-consent input {
    flex: 0 0 auto;
    margin-top: 2px;
}

.chat-photo-note {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.72rem;
    line-height: 1.3;
}

.chat-form button {
    background: var(--neon-purple);
    border: none;
    color: white;
    padding: 5px 15px;
    border-radius: 5px;
    cursor: pointer;
}

/* ====================================
   STOREFRONT READABILITY REFRESH
   High-contrast retro retail styling inspired by the clarity of classic game stores.
   Retained as a lower-priority fallback layer so the established dark storefront
   remains the default. Admin screens retain their existing operational theme.
   ==================================== */

@layer storefront-readability-refresh {
body:not(.admin-theme) {
    --dark-bg: #eef3f8;
    --card-bg: #ffffff;
    --card-hover: #f5f9fd;
    --neon-purple: #084a91;
    --neon-green: #187446;
    --neon-blue: #075aa6;
    --neon-pink: #c62f46;
    --text-primary: #000000;
    --text-secondary: #526174;
    --sale-red: #c62828;
    --gold: #ffd84d;
    --border-color: #b9c7d6;
    --font-body: Arial, Helvetica, sans-serif;
    background: #ffffff;
    color: #000000;
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
}

body:not(.admin-theme) .scanlines {
    display: none;
}

body:not(.admin-theme) .container {
    max-width: 1240px;
}

body:not(.admin-theme) h1,
body:not(.admin-theme) h2,
body:not(.admin-theme) h3,
body:not(.admin-theme) h4 {
    color: #103f70;
    font-family: var(--font-body);
    font-weight: 800;
    letter-spacing: -0.015em;
    line-height: 1.25;
}

body:not(.admin-theme) h1 { font-size: clamp(2rem, 4vw, 3rem); }
body:not(.admin-theme) h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
body:not(.admin-theme) h3 { font-size: 1.05rem; }

body:not(.admin-theme) a {
    color: #075aa6;
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
}

body:not(.admin-theme) a:hover {
    color: #003d78;
}

body:not(.admin-theme) a:focus-visible,
body:not(.admin-theme) button:focus-visible,
body:not(.admin-theme) input:focus-visible,
body:not(.admin-theme) select:focus-visible,
body:not(.admin-theme) textarea:focus-visible {
    outline: 3px solid #ffd84d;
    outline-offset: 3px;
}

body:not(.admin-theme) .skip-link {
    background: #ffd84d;
    color: #10243d;
    font-family: var(--font-body);
    font-weight: 800;
}

/* Header and navigation */
body:not(.admin-theme) .navbar {
    background: #084a91;
    border-bottom: 5px solid #ffd84d;
    box-shadow: 0 3px 12px rgba(10, 43, 78, 0.25);
    padding: 0;
}

body:not(.admin-theme) .navbar > .container {
    gap: 0;
}

body:not(.admin-theme) .logo-img {
    height: 52px;
    filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.28));
}

body:not(.admin-theme) .nav-promo-row {
    background: #176fc1;
    border-bottom: 1px solid rgba(255, 255, 255, 0.22);
}

body:not(.admin-theme) .navbar .nav-promo-inner {
    min-height: 38px;
    padding-top: 5px;
    padding-bottom: 5px;
}

body:not(.admin-theme) .nav-promo-link {
    color: #ffffff;
    font-family: var(--font-body);
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1.15;
    padding: 2px 0;
}

body:not(.admin-theme) .nav-promo-link:hover,
body:not(.admin-theme) .nav-promo-link:focus-visible {
    color: #ffd84d;
}

body:not(.admin-theme) .nav-promo-link strong {
    color: #ffd84d;
    font-weight: 900;
}

body:not(.admin-theme) .nav-brand-row {
    min-height: 82px;
    padding: 10px 0;
}

body:not(.admin-theme) .nav-links,
body:not(.admin-theme) .nav-utilities,
body:not(.admin-theme) .nav-company-links {
    gap: 0;
}

body:not(.admin-theme) .nav-links a,
body:not(.admin-theme) .nav-utilities a,
body:not(.admin-theme) .nav-company-links a,
body:not(.admin-theme) .nav-dropdown-trigger,
body:not(.admin-theme) .nav-link-button {
    border: 0;
    color: #ffffff;
    font-family: var(--font-body);
    font-size: 0.94rem;
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1.2;
    padding: 10px 15px;
    text-transform: none;
}

body:not(.admin-theme) .nav-utilities a,
body:not(.admin-theme) .nav-utilities .nav-link-button,
body:not(.admin-theme) .nav-company-links a {
    font-size: 0.9rem;
    padding: 7px 9px;
}

body:not(.admin-theme) .nav-category-menu > a,
body:not(.admin-theme) .nav-category-menu .nav-dropdown-trigger {
    display: flex;
    align-items: center;
    font-size: 1rem;
    padding: 16px clamp(13px, 1.5vw, 21px);
    white-space: nowrap;
}

body:not(.admin-theme) .nav-category-row {
    background: #063b74;
    border-top: 1px solid rgba(255, 255, 255, 0.24);
}

body:not(.admin-theme) .nav-category-menu > a,
body:not(.admin-theme) .nav-category-menu > .nav-dropdown {
    border-left: 1px solid rgba(255, 255, 255, 0.18);
}

body:not(.admin-theme) .nav-category-menu > .nav-dropdown {
    border-right: 1px solid rgba(255, 255, 255, 0.18);
}

body:not(.admin-theme) .nav-category-row .nav-search-form {
    max-width: none;
    padding: 8px 0 8px 14px;
}

body:not(.admin-theme) .nav-category-row .search-form input {
    background: #ffffff;
    border: 2px solid #ffffff;
    color: #17233a;
}

body:not(.admin-theme) .nav-category-row .search-form button {
    background: #ffd84d;
    color: #10243d;
    font-weight: 900;
}

body:not(.admin-theme) .nav-links a:hover,
body:not(.admin-theme) .nav-utilities a:hover,
body:not(.admin-theme) .nav-company-links a:hover,
body:not(.admin-theme) .nav-dropdown-trigger:hover,
body:not(.admin-theme) .nav-dropdown-trigger:focus,
body:not(.admin-theme) .nav-link-button:hover {
    background: #063b74;
    color: #ffd84d;
}

body:not(.admin-theme) .nav-utilities .pro-nav-link {
    background: #ffd84d;
    border-radius: 4px;
    color: #08345f;
    font-weight: 900;
    margin-right: 4px;
}

body:not(.admin-theme) .nav-utilities .pro-nav-link:hover,
body:not(.admin-theme) .nav-utilities .pro-nav-link:focus-visible {
    background: #ffffff;
    color: #063b74;
}

body:not(.admin-theme) .nav-utilities .admin-nav-link {
    background: #ffd84d;
    border-radius: 4px;
    color: #08345f !important;
    font-weight: 900;
    margin-left: 4px;
}

body:not(.admin-theme) .nav-utilities .admin-nav-link:hover,
body:not(.admin-theme) .nav-utilities .admin-nav-link:focus-visible {
    background: #ffffff;
    color: #063b74 !important;
}

body:not(.admin-theme) .nav-deals-link {
    color: #ffd84d;
}

body:not(.admin-theme) .cart-label {
    margin-left: 0.3rem;
}

/* Media Mint Pro */
.pro-page {
    color: #10243d;
    margin: 0 auto;
    max-width: 1180px;
    padding: 42px 0 64px;
}

.pro-hero {
    background: linear-gradient(135deg, #062f58 0%, #084a91 56%, #1268b7 100%);
    border: 4px solid #ffd84d;
    border-radius: 14px;
    box-shadow: 0 12px 28px rgba(4, 39, 73, 0.2);
    color: #ffffff;
    overflow: hidden;
    padding: clamp(34px, 6vw, 72px) 24px;
    position: relative;
    text-align: center;
}

.pro-hero::after {
    background: radial-gradient(circle, rgba(255, 216, 77, 0.2) 0 2px, transparent 3px);
    background-size: 22px 22px;
    content: '';
    inset: 0;
    opacity: 0.35;
    pointer-events: none;
    position: absolute;
}

.pro-hero > * {
    position: relative;
    z-index: 1;
}

.pro-kicker {
    color: #ffd84d;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    margin: 0 0 10px;
}

.pro-hero h1 {
    color: #ffffff;
    font-family: var(--font-body);
    font-size: clamp(2.5rem, 8vw, 5.3rem);
    font-weight: 900;
    letter-spacing: -0.05em;
    line-height: 0.95;
    margin: 0;
    text-shadow: 0 4px 0 rgba(0, 0, 0, 0.2);
}

.pro-hero h1 span { color: #ffd84d; }

.pro-lede {
    font-size: clamp(1.05rem, 2vw, 1.35rem);
    margin: 20px auto 0;
    max-width: 680px;
}

.pro-status {
    background: #ffffff;
    border-radius: 8px;
    color: #10243d;
    margin: 24px auto 0;
    max-width: 720px;
    padding: 14px 18px;
}

.pro-status-active {
    align-items: center;
    background: #eaffdf;
    border: 2px solid #59a333;
    display: flex;
    gap: 14px;
    justify-content: center;
}

.pro-status-active strong { color: #276612; }
.pro-status-pending { border: 2px solid #ffd84d; }

.pro-benefit-grid,
.pro-plan-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-top: 24px;
}

.pro-benefit-card,
.pro-plan-card,
.pro-member-actions,
.pro-fine-print {
    background: #ffffff;
    border: 2px solid #b6c9dc;
    border-radius: 10px;
    box-shadow: 0 5px 14px rgba(10, 43, 78, 0.1);
    padding: 24px;
}

.pro-benefit-card h2,
.pro-plan-card h3,
.pro-member-actions h2,
.pro-fine-print h2,
.pro-plan-heading h2 {
    color: #083f77;
    font-family: var(--font-body);
    font-weight: 900;
}

.pro-benefit-card h2 { font-size: 1.25rem; margin: 16px 0 8px; }
.pro-benefit-card p, .pro-plan-card p, .pro-fine-print p { margin-bottom: 0; }

.pro-benefit-icon {
    align-items: center;
    background: #ffd84d;
    border: 3px solid #083f77;
    border-radius: 50%;
    color: #083f77;
    display: inline-flex;
    font-size: 1.1rem;
    font-weight: 900;
    height: 66px;
    justify-content: center;
    width: 66px;
}

.pro-plan-section { margin-top: 54px; }
.pro-plan-heading { text-align: center; }
.pro-plan-heading h2 { font-size: clamp(1.7rem, 4vw, 2.5rem); margin: 0; }
.pro-plan-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 28px auto 0; max-width: 800px; }
.pro-plan-card { display: flex; flex-direction: column; position: relative; }
.pro-plan-card h3 { font-size: 1.5rem; margin: 0; }
.pro-plan-featured { border: 4px solid #ffd84d; }
.pro-plan-badge {
    background: #ffd84d;
    border-radius: 4px;
    color: #083f77;
    font-size: 0.75rem;
    font-weight: 900;
    padding: 7px 10px;
    position: absolute;
    right: 16px;
    top: -16px;
}

.pro-price { align-items: baseline; display: flex; gap: 7px; margin: 18px 0 6px !important; }
.pro-price strong { color: #083f77; font-size: 2.45rem; line-height: 1; }

.pro-join-button,
.pro-secondary-button {
    background: #ffd84d;
    border: 3px solid #083f77;
    border-radius: 6px;
    color: #083f77;
    cursor: pointer;
    display: block;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 900;
    margin-top: 24px;
    padding: 13px 18px;
    text-align: center;
    text-decoration: none;
    width: 100%;
}

.pro-join-button:hover,
.pro-join-button:focus-visible,
.pro-secondary-button:hover,
.pro-secondary-button:focus-visible {
    background: #083f77;
    color: #ffffff;
}

.pro-member-actions { margin: 28px auto 0; max-width: 720px; text-align: center; }
.pro-member-actions form { margin: 0 auto; max-width: 280px; }
.pro-fine-print { margin-top: 32px; }
.pro-fine-print p { font-size: 0.9rem; }

@media (max-width: 900px) {
    .pro-benefit-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
    .pro-page { padding-top: 20px; }
    .pro-benefit-grid, .pro-plan-grid { grid-template-columns: 1fr; }
    .pro-hero { padding-left: 16px; padding-right: 16px; }
    .pro-status-active { align-items: flex-start; flex-direction: column; text-align: left; }
    .pro-plan-featured { margin-top: 12px; }
}

body:not(.admin-theme) .nav-platform-links {
    background: #063b74;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    grid-template-columns: minmax(0, 1fr) minmax(240px, 360px);
    margin: 0 -20px;
    padding: 8px 20px;
}

body:not(.admin-theme) .nav-platform-balance {
    display: none;
}

body:not(.admin-theme) .nav-platform-menu {
    grid-column: 1;
    justify-content: flex-start;
}

body:not(.admin-theme) .nav-search-form {
    grid-column: 2;
}

body:not(.admin-theme) .nav-platform-links a {
    color: #ffffff;
    font-size: 0.9rem;
}

body:not(.admin-theme) .nav-platform-links a:hover {
    color: #ffd84d;
}

body:not(.admin-theme) .search-form input {
    background: #ffffff;
    border: 2px solid #d3dce6;
    color: #17233a;
    font-family: var(--font-body);
    font-size: 1rem;
    min-height: 42px;
}

body:not(.admin-theme) .search-form input::placeholder {
    color: #657386;
    opacity: 1;
}

body:not(.admin-theme) .search-form button {
    background: #ffd84d;
    border: 2px solid #e0b700;
    color: #10243d;
    min-height: 42px;
    min-width: 48px;
}

body:not(.admin-theme) .cart-badge {
    background: #ffd84d;
    color: #10243d;
    font-family: var(--font-body);
    font-size: 0.72rem;
    font-weight: 800;
}

body:not(.admin-theme) .dropdown-content {
    background: #ffffff;
    border: 2px solid #084a91;
    box-shadow: 0 8px 20px rgba(15, 40, 70, 0.2);
}

body:not(.admin-theme) .dropdown-content a {
    color: #17233a;
    font-family: var(--font-body);
    font-size: 0.95rem;
}

body:not(.admin-theme) .dropdown-content a:hover {
    background: #e9f2fb;
    color: #003d78;
}

/* Homepage */
body:not(.admin-theme) .promo-bar {
    background: #ffd84d;
    border-bottom: 3px solid #e0b700;
    color: #10243d;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 900;
    letter-spacing: 0.015em;
    padding: 11px 18px;
    text-align: center;
}

body:not(.admin-theme) .hero {
    background: linear-gradient(110deg, #ffffff 0%, #edf5fc 100%);
    border-bottom: 1px solid #c9d8e8;
    margin-bottom: 0;
    padding: clamp(54px, 7vw, 88px) 24px;
}

body:not(.admin-theme) .hero::before {
    background: radial-gradient(circle at 82% 20%, rgba(255, 216, 77, 0.35), transparent 28%);
}

body:not(.admin-theme) .hero-title {
    color: #084a91;
    font-family: var(--font-pixel);
    font-size: clamp(1.65rem, 3.6vw, 2.8rem);
    letter-spacing: -0.04em;
    line-height: 1.35;
    text-shadow: 3px 3px 0 rgba(8, 74, 145, 0.12);
}

body:not(.admin-theme) .neon-text {
    background: #ffd84d;
    box-decoration-break: clone;
    color: #084a91;
    padding: 0.08em 0.18em;
    text-shadow: none;
    -webkit-box-decoration-break: clone;
}

body:not(.admin-theme) .hero-subtitle {
    color: #3e5064;
    font-size: clamp(1.05rem, 2vw, 1.3rem);
    font-weight: 600;
}

body:not(.admin-theme) .hero-buttons {
    gap: 14px;
}

body:not(.admin-theme) .btn {
    border-radius: 3px;
    box-shadow: none;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 900;
    letter-spacing: 0.01em;
    line-height: 1.2;
    min-height: 46px;
    padding: 13px 22px;
    text-transform: none;
}

body:not(.admin-theme) .btn-primary,
body:not(.admin-theme) .btn-add-cart {
    background: #ffd84d;
    border-color: #d5aa00;
    color: #10243d;
}

body:not(.admin-theme) .btn-primary:hover,
body:not(.admin-theme) .btn-add-cart:hover {
    background: #ffe476;
    border-color: #a98600;
    color: #10243d;
    box-shadow: none;
}

body:not(.admin-theme) .btn-secondary,
body:not(.admin-theme) .btn-outline-neon {
    background: #ffffff;
    border-color: #075aa6;
    color: #075aa6;
}

body:not(.admin-theme) .btn-secondary:hover,
body:not(.admin-theme) .btn-outline-neon:hover {
    background: #075aa6;
    color: #ffffff;
}

body:not(.admin-theme) .home-newsletter {
    background: #e8f2fb;
    border-bottom: 1px solid #bdd0e4;
    border-top: 1px solid #bdd0e4;
    margin-top: 48px;
    padding: 38px 20px;
    text-align: center;
}

body:not(.admin-theme) .home-newsletter-inner {
    margin: 0 auto;
    max-width: 680px;
}

body:not(.admin-theme) .home-newsletter h2 {
    color: #084a91;
    font-size: 1.65rem;
    margin-bottom: 8px;
}

body:not(.admin-theme) .home-newsletter p {
    color: #3e5064;
    font-size: 1rem;
    margin-bottom: 18px;
}

body:not(.admin-theme) .home-newsletter-form {
    display: flex;
    gap: 8px;
    justify-content: center;
}

body:not(.admin-theme) .home-newsletter-form input {
    background: #ffffff;
    border: 2px solid #7595b8;
    border-radius: 3px;
    color: #17233a;
    flex: 1;
    font-family: var(--font-body);
    font-size: 1rem;
    max-width: 380px;
    min-height: 46px;
    min-width: 220px;
    padding: 10px 14px;
}

body:not(.admin-theme) .home-newsletter .home-newsletter-note {
    color: #59697a;
    font-size: 0.82rem;
    margin: 10px 0 0;
}

body:not(.admin-theme) .trust-signal-grid {
    background: #ffffff;
    border-bottom: 1px solid #c9d5e2;
    border-top: 0;
    gap: 18px;
    padding: 34px 20px;
}

body:not(.admin-theme) .trust-card {
    background: #f7fafd;
    border: 2px solid #d4e0ec;
    border-radius: 4px;
    padding: 24px;
}

body:not(.admin-theme) .trust-card:hover {
    border-color: #084a91;
    transform: none;
}

body:not(.admin-theme) .trust-card h3 {
    color: #084a91;
    font-size: 1.15rem;
}

body:not(.admin-theme) .trust-card p {
    color: #435468;
    font-size: 1rem;
}

body:not(.admin-theme) .mint-live-status {
    background: #edf4fb;
    padding: 52px 20px;
}

body:not(.admin-theme) .live-container {
    background: #ffffff;
    border: 3px solid #084a91;
    border-radius: 4px;
    box-shadow: 0 5px 18px rgba(15, 55, 94, 0.14);
}

body:not(.admin-theme) .live-header {
    background: #084a91;
    border-bottom: 4px solid #ffd84d;
}

body:not(.admin-theme) .live-header h2,
body:not(.admin-theme) .live-location {
    color: #ffffff;
    font-family: var(--font-body);
}

body:not(.admin-theme) .live-stats {
    background: #ffffff;
}

body:not(.admin-theme) .stat-box label {
    color: #526174;
    font-family: var(--font-body);
}

body:not(.admin-theme) .stat-val {
    color: #084a91;
    font-family: var(--font-body);
    font-weight: 800;
}

body:not(.admin-theme) .resurface-mint-live {
    background: transparent;
    margin: 36px 0;
    padding: 0;
}

.mint-process-dot {
    background: var(--neon-green);
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(57, 255, 20, 0.55);
    flex: 0 0 12px;
    height: 12px;
    margin-right: 15px;
    width: 12px;
}

.mint-process-overview {
    background: #07111f;
    color: #ffffff;
    padding: 30px;
}

.mint-process-kicker {
    color: var(--neon-green);
    font-family: var(--font-pixel);
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    margin: 0 0 20px;
}

.mint-process-steps {
    display: grid;
    gap: 18px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.mint-process-step {
    align-items: start;
    display: grid;
    gap: 14px;
    grid-template-columns: auto 1fr;
}

.mint-process-step > span {
    border: 1px solid var(--neon-green);
    color: var(--neon-green);
    font-family: var(--font-pixel);
    font-size: 0.62rem;
    padding: 7px;
}

.mint-process-step strong {
    color: #ffffff;
    display: block;
    margin-bottom: 4px;
}

.mint-process-step p {
    color: #c6d2df;
    line-height: 1.5;
    margin: 0;
}

.mint-process-disclosure {
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    color: #aebdcb;
    font-size: 0.8rem;
    line-height: 1.5;
    margin: 24px 0 0;
    padding-top: 16px;
}

.stat-label {
    color: var(--text-secondary);
    display: block;
    font-size: 0.7rem;
    margin-bottom: 5px;
    text-transform: uppercase;
}

body:not(.admin-theme) .stat-label {
    color: #526174;
    font-family: var(--font-body);
}

.resurface-mint-live .stat-val {
    font-size: 1rem;
    line-height: 1.35;
}

@media (max-width: 480px) {
    .resurface-mint-live .live-header {
        align-items: flex-start;
        flex-wrap: wrap;
        gap: 8px;
    }

    .resurface-mint-live .live-location {
        flex-basis: 100%;
        margin-left: 27px;
    }

    .mint-process-overview,
    .resurface-mint-live .live-stats {
        padding: 22px 18px;
    }
}

/* Product discovery and content cards */
body:not(.admin-theme) .section-header {
    border-bottom: 5px solid #084a91;
    padding-bottom: 12px;
}

body:not(.admin-theme) .section-header::after {
    background: #ffd84d;
    content: "";
    height: 5px;
    width: 74px;
}

body:not(.admin-theme) .view-all {
    color: #075aa6;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 800;
}

body:not(.admin-theme) .platform-card,
body:not(.admin-theme) .product-card,
body:not(.admin-theme) .blog-card,
body:not(.admin-theme) .admin-section {
    background: #ffffff !important;
    border-color: #084a91 !important;
    box-shadow: none;
    color: #17233a;
}

body:not(.admin-theme) .platform-card {
    border-width: 2px;
}

body:not(.admin-theme) .platform-card:hover {
    background: #e9f2fb;
    border-color: #063b74;
    box-shadow: none;
    transform: translateY(-2px);
}

body:not(.admin-theme) .platform-card span {
    color: #084a91;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 800;
}

body:not(.admin-theme) .product-grid {
    gap: 20px;
}

body:not(.admin-theme) .product-card {
    background: transparent !important;
    border: 0 !important;
    border-radius: 0;
    box-shadow: none !important;
    overflow: visible;
}

body:not(.admin-theme) .product-card:hover {
    background: #ffffff;
    box-shadow: none !important;
    transform: none;
}

body:not(.admin-theme) .product-image {
    background: #ffffff !important;
    border: 0 !important;
}

body:not(.admin-theme) .product-image img {
    object-fit: contain !important;
}

body:not(.admin-theme) .product-card:hover .product-image img {
    transform: scale(1.025);
}

body:not(.admin-theme) .product-card:focus-within {
    outline: 3px solid #d49a00;
    outline-offset: 4px;
}

body:not(.admin-theme) .product-info {
    padding: 12px 2px 0;
}

body.storefront-theme .product-card .product-condition {
    display: none;
}

body:not(.admin-theme) .product-info h3,
body:not(.admin-theme) .blog-card h3 {
    color: #17233a !important;
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.4;
}

body:not(.admin-theme) .product-platform {
    color: #075aa6 !important;
    font-family: var(--font-body);
    font-size: 0.78rem;
    font-weight: 800;
}

body:not(.admin-theme) .current-price,
body:not(.admin-theme) .current-price-lg,
body:not(.admin-theme) .product-price {
    color: #17643e;
    font-family: var(--font-body);
    font-weight: 900;
}

body:not(.admin-theme) .product-condition,
body:not(.admin-theme) .product-condition-lg,
body:not(.admin-theme) .product-description,
body:not(.admin-theme) .breadcrumbs {
    color: #526174;
}

body:not(.admin-theme) .recently-viewed {
    background: #edf5fc;
    border: 2px solid #9ab7d3;
}

body:not(.admin-theme) .activity-feed {
    background: #084a91;
    border-color: #ffd84d;
    box-shadow: none;
}

body:not(.admin-theme) .ticker__item {
    color: #ffffff;
    font-family: var(--font-body);
    font-size: 0.9rem;
}

body:not(.admin-theme) .testimonial-card,
body:not(.admin-theme) .testimonials {
    background: #f2f6fa !important;
    color: #17233a;
}

body:not(.admin-theme) .testimonial-card p,
body:not(.admin-theme) .admin-section p,
body:not(.admin-theme) .blog-card p {
    color: #526174 !important;
}

/* Forms, cart, footer, and supporting pages */
body:not(.admin-theme) input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
body:not(.admin-theme) select,
body:not(.admin-theme) textarea {
    background: #ffffff;
    border-color: #8da2b8;
    color: #17233a;
    font-family: var(--font-body);
}

body:not(.admin-theme) .cart-item,
body:not(.admin-theme) .cart-summary,
body:not(.admin-theme) .filter-sidebar,
body:not(.admin-theme) .form-card {
    background: #ffffff;
    border-color: #b9c7d6;
    color: #17233a;
}

body:not(.admin-theme) .footer {
    background: #063b74;
    border-top: 6px solid #ffd84d;
    color: #ffffff;
}

body:not(.admin-theme) .footer h4,
body:not(.admin-theme) .footer p,
body:not(.admin-theme) .footer a {
    color: #ffffff;
    font-family: var(--font-body);
}

body:not(.admin-theme) .footer a:hover {
    color: #ffd84d;
    text-decoration: underline;
}

body:not(.admin-theme) .footer .newsletter-form .form-control {
    background: #ffffff;
    border: 2px solid #c7d7e8;
    color: #17233a;
    font-family: var(--font-body);
}

body:not(.admin-theme) .flash {
    background: #eef6ff;
    border: 2px solid #075aa6;
    color: #173a61;
    font-family: var(--font-body);
    font-size: 1rem;
}

body:not(.admin-theme) .chat-window,
body:not(.admin-theme) .chat-header,
body:not(.admin-theme) .chat-product-result,
body:not(.admin-theme) .message.assistant {
    background: #ffffff;
    color: #17233a;
}

body:not(.admin-theme) .chat-header h3 {
    color: #084a91;
}

/* Light surfaces for storefront pages that retain page-local dark retro styles. */
body.storefront-theme .retro-layout .retro-card,
body.storefront-theme .retro-columns .retro-card,
body.storefront-theme .whole-box-panel {
    background: rgba(255, 255, 255, 0.78);
    color: #000000;
}

body.storefront-theme .retro-layout .retro-card,
body.storefront-theme .retro-columns .retro-card {
    border-color: #b9c7d6;
    box-shadow: 8px 8px 0 rgba(8, 74, 145, 0.12);
}

body.storefront-theme .retro-layout > div,
body.storefront-theme .retro-columns > div {
    min-width: 0;
}

body.storefront-theme .retro-columns .retro-table-wrap {
    max-width: 100%;
}

body.storefront-theme .retro-layout .stat-box,
body.storefront-theme .retro-columns .retro-table tr,
body.storefront-theme .whole-box-panel .bulk-tier-grid div {
    background: rgba(255, 255, 255, 0.7);
}

body.storefront-theme .retro-layout .stat-label,
body.storefront-theme .retro-columns .retro-table th,
body.storefront-theme .whole-box-panel .bulk-tier-grid span,
body.storefront-theme .whole-box-panel .bulk-tier-grid small {
    color: #333333;
}

body.storefront-theme .retro-layout .stat-value,
body.storefront-theme .retro-columns .retro-table,
body.storefront-theme .whole-box-panel .whole-box-copy p {
    color: #000000;
}

body.storefront-theme .whole-box-panel {
    box-shadow: 5px 5px 0 rgba(7, 90, 166, 0.18);
}

body.storefront-theme .whole-box-panel .bulk-tier-grid div {
    border-color: #9fb2c5;
}

body.storefront-theme .seller-mechanics-grid > div,
body.storefront-theme .trade-agent-panel,
body.storefront-theme .trade-agent-panel .buylist-target-panel {
    background: rgba(255, 255, 255, 0.78);
    color: #000000;
}

body.storefront-theme .seller-mechanics-grid > div {
    border-color: #9fb2c5;
}

body.storefront-theme .seller-mechanics-grid article,
body.storefront-theme .trade-agent-log,
body.storefront-theme .trade-agent-panel .agent-quote-box {
    background: rgba(255, 255, 255, 0.7);
    border-color: #9fb2c5;
}

body.storefront-theme .seller-mechanics-grid span,
body.storefront-theme .seller-mechanics-grid small,
body.storefront-theme .trade-agent-heading p,
body.storefront-theme .trade-agent-panel .buylist-target-copy p,
body.storefront-theme .trade-agent-panel .buylist-target-lists ul,
body.storefront-theme .trade-agent-panel .agent-source,
body.storefront-theme .trade-agent-panel .agent-review-note,
body.storefront-theme .trade-agent-panel .agent-bundle-row,
body.storefront-theme .trade-agent-panel .agent-bundle-row small {
    color: #000000;
}

body.storefront-theme .trade-agent-panel .agent-message-bot,
body.storefront-theme .trade-agent-panel .agent-message-user {
    background: rgba(237, 245, 252, 0.86);
    color: #000000;
}

body.storefront-theme .trade-agent-panel .agent-message-user {
    background: rgba(253, 237, 242, 0.86);
}

body.storefront-theme .trade-agent-panel .agent-frenzy-hit,
body.storefront-theme .trade-agent-panel .agent-bulk-hit,
body.storefront-theme .trade-agent-panel .agent-bulk-next {
    background: rgba(255, 255, 255, 0.7);
}

body.storefront-theme .trade-agent-panel .agent-frenzy-hit span,
body.storefront-theme .trade-agent-panel .agent-frenzy-hit small,
body.storefront-theme .trade-agent-panel .agent-bulk-hit span,
body.storefront-theme .trade-agent-panel .agent-bulk-hit small,
body.storefront-theme .trade-agent-panel .agent-bulk-next span {
    color: #000000;
}

@media (max-width: 768px) {
    body:not(.admin-theme) {
        font-size: 16px;
    }

    body:not(.admin-theme) .navbar {
        position: relative;
    }

    body:not(.admin-theme) .nav-promo-link {
        font-size: 0.76rem;
    }

    body:not(.admin-theme) .nav-category-row {
        border-top: 1px solid rgba(255, 255, 255, 0.24);
        gap: 0;
    }

    body:not(.admin-theme) .nav-links a,
    body:not(.admin-theme) .nav-utilities a,
    body:not(.admin-theme) .nav-company-links a,
    body:not(.admin-theme) .nav-dropdown-trigger,
    body:not(.admin-theme) .nav-link-button {
        font-size: 0.88rem;
        padding: 10px 12px;
    }

    body:not(.admin-theme) .nav-utilities a,
    body:not(.admin-theme) .nav-utilities .nav-link-button,
    body:not(.admin-theme) .nav-company-links a {
        font-size: 0.78rem;
        padding: 5px 8px;
    }

    body:not(.admin-theme) .nav-category-menu > a,
    body:not(.admin-theme) .nav-category-menu .nav-dropdown-trigger {
        font-size: 0.98rem;
        padding: 12px 14px;
    }

    body:not(.admin-theme) .nav-category-row .nav-search-form {
        padding: 7px 0 7px 8px;
    }

    body:not(.admin-theme) .hero {
        padding: 48px 16px;
    }

    body:not(.admin-theme) .hero-title {
        font-size: clamp(1.45rem, 7vw, 2rem);
    }

    body:not(.admin-theme) .home-newsletter-form {
        align-items: stretch;
        flex-direction: column;
    }

    body:not(.admin-theme) .home-newsletter-form input {
        max-width: none;
        min-width: 0;
        width: 100%;
    }

    body:not(.admin-theme) .home-newsletter-form .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    body:not(.admin-theme) .logo-img {
        height: auto;
        width: 92px;
    }

    body:not(.admin-theme) .nav-promo-link {
        font-size: 0.66rem;
    }

    body:not(.admin-theme) .nav-promo-link-right {
        align-items: center;
        flex-direction: row;
        gap: 0.25rem;
        justify-content: flex-end;
    }

    .nav-promo-guarantee-long { display: none; }
    .nav-promo-guarantee-short { display: inline; }

    body:not(.admin-theme) .nav-utilities a,
    body:not(.admin-theme) .nav-utilities .nav-link-button,
    body:not(.admin-theme) .nav-company-links a {
        font-size: 0.72rem;
        padding: 4px 6px;
    }

    body:not(.admin-theme) .nav-category-menu > a,
    body:not(.admin-theme) .nav-category-menu .nav-dropdown-trigger {
        font-size: 0.9rem;
        padding: 11px 12px;
    }

    body:not(.admin-theme) .nav-search-form {
        grid-column: 1;
        justify-self: stretch;
    }

    body:not(.admin-theme) .nav-category-row .nav-search-form {
        padding: 6px 0 8px;
    }
}

/* About page */
body:not(.admin-theme) .about-page {
    margin: 38px auto 0;
    max-width: 1080px;
    padding: 0 0 24px;
}

body:not(.admin-theme) .about-hero {
    background:
        linear-gradient(120deg, rgba(5, 48, 91, 0.98), rgba(8, 74, 145, 0.94)),
        linear-gradient(90deg, transparent 49%, rgba(255, 255, 255, 0.08) 50%);
    background-size: auto, 24px 24px;
    border-bottom: 8px solid #ffd84d;
    border-radius: 6px 6px 0 0;
    color: #ffffff;
    padding: clamp(34px, 6vw, 64px);
}

body:not(.admin-theme) .about-kicker,
body:not(.admin-theme) .about-section-label {
    color: #075aa6;
    font-family: var(--font-body);
    font-size: 0.76rem;
    font-weight: 900;
    letter-spacing: 0.13em;
    margin: 0 0 10px;
    text-transform: uppercase;
}

body:not(.admin-theme) .about-hero .about-kicker {
    color: #ffd84d;
}

body:not(.admin-theme) .about-hero h1 {
    color: #ffffff;
    font-family: var(--font-body);
    font-size: clamp(2.15rem, 5vw, 4rem);
    font-weight: 900;
    letter-spacing: -0.045em;
    line-height: 1.02;
    margin: 0;
    max-width: 820px;
}

body:not(.admin-theme) .about-lede {
    color: #e5f1fc;
    font-size: clamp(1.05rem, 2vw, 1.25rem);
    font-weight: 600;
    line-height: 1.65;
    margin: 22px 0 0;
    max-width: 750px;
}

body:not(.admin-theme) .about-story {
    background: #ffffff;
    border: 2px solid #b9cadd;
    border-top: 0;
    display: grid;
    gap: clamp(28px, 5vw, 56px);
    grid-template-columns: minmax(0, 1.35fr) minmax(270px, 0.85fr);
    padding: clamp(30px, 5vw, 52px);
}

body:not(.admin-theme) .about-story-copy h2,
body:not(.admin-theme) .about-section-heading h2,
body:not(.admin-theme) .about-inventory h2,
body:not(.admin-theme) .about-contact h2 {
    color: #103f70;
    font-family: var(--font-body);
    font-size: clamp(1.65rem, 3vw, 2.25rem);
    font-weight: 900;
    letter-spacing: -0.035em;
    line-height: 1.15;
    margin: 0 0 18px;
}

body:not(.admin-theme) .about-story-copy p:not(.about-section-label),
body:not(.admin-theme) .about-inventory > p:not(.about-section-label),
body:not(.admin-theme) .about-contact > p:not(.about-section-label) {
    color: #334b62;
    font-size: 1.05rem;
    line-height: 1.75;
    margin: 0 0 16px;
}

body:not(.admin-theme) .about-story-copy p:last-child,
body:not(.admin-theme) .about-inventory > p:last-of-type,
body:not(.admin-theme) .about-contact > p:last-of-type {
    margin-bottom: 0;
}

body:not(.admin-theme) .about-standard {
    align-self: start;
    background: #eef5fc;
    border-left: 6px solid #ffd84d;
    padding: 26px;
}

body:not(.admin-theme) .about-standard h3 {
    color: #103f70;
    font-size: 1.25rem;
    line-height: 1.3;
    margin: 0 0 18px;
}

body:not(.admin-theme) .about-standard ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

body:not(.admin-theme) .about-standard li {
    border-top: 1px solid #c4d5e5;
    color: #334b62;
    font-size: 0.95rem;
    line-height: 1.5;
    padding: 12px 0 12px 26px;
    position: relative;
}

body:not(.admin-theme) .about-standard li::before {
    color: #17643e;
    content: "\2713";
    font-weight: 900;
    left: 2px;
    position: absolute;
}

body:not(.admin-theme) .about-values {
    padding: clamp(48px, 7vw, 72px) 0;
}

body:not(.admin-theme) .about-section-heading {
    max-width: 660px;
}

body:not(.admin-theme) .about-value-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-top: 26px;
}

body:not(.admin-theme) .about-value-card {
    background: #ffffff;
    border: 2px solid #c1cfdd;
    border-top: 5px solid #084a91;
    min-height: 245px;
    padding: 24px 22px;
}

body:not(.admin-theme) .about-value-number {
    align-items: center;
    background: #ffd84d;
    color: #103f70;
    display: inline-flex;
    font-size: 0.78rem;
    font-weight: 900;
    height: 34px;
    justify-content: center;
    margin-bottom: 22px;
    width: 42px;
}

body:not(.admin-theme) .about-value-card h3 {
    color: #103f70;
    font-family: var(--font-body);
    font-size: 1.15rem;
    font-weight: 900;
    line-height: 1.25;
    margin: 0 0 10px;
}

body:not(.admin-theme) .about-value-card p {
    color: #43586d;
    font-size: 0.94rem;
    line-height: 1.65;
    margin: 0;
}

body:not(.admin-theme) .about-bottom-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: minmax(0, 1.2fr) minmax(310px, 0.8fr);
}

body:not(.admin-theme) .about-inventory,
body:not(.admin-theme) .about-contact {
    padding: clamp(28px, 5vw, 42px);
}

body:not(.admin-theme) .about-inventory {
    background: #f3f7fb;
    border: 2px solid #b9cadd;
}

body:not(.admin-theme) .about-category-list {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    list-style: none;
    margin: 24px 0 0;
    padding: 0;
}

body:not(.admin-theme) .about-category-list li {
    background: #ffffff;
    border: 2px solid #89a5c1;
    color: #103f70;
    font-size: 0.84rem;
    font-weight: 800;
    padding: 8px 12px;
}

body:not(.admin-theme) .about-contact {
    background: #084a91;
    border-bottom: 6px solid #ffd84d;
}

body:not(.admin-theme) .about-contact .about-section-label {
    color: #ffd84d;
}

body:not(.admin-theme) .about-contact h2,
body:not(.admin-theme) .about-contact > p:not(.about-section-label) {
    color: #ffffff;
}

body:not(.admin-theme) .about-contact-actions {
    align-items: flex-start;
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-top: 26px;
}

body:not(.admin-theme) .about-contact .btn-primary {
    width: 100%;
}

body:not(.admin-theme) .about-text-link {
    color: #ffffff;
    font-weight: 800;
    text-decoration: underline;
}

body:not(.admin-theme) .about-text-link:hover {
    color: #ffd84d;
}

body:not(.admin-theme) .about-trust-bar {
    background: #ffffff;
    border: 2px solid #b9cadd;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 20px;
}

body:not(.admin-theme) .about-trust-item {
    color: #17233a;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 22px 24px;
}

body:not(.admin-theme) .about-trust-item + .about-trust-item {
    border-left: 1px solid #c8d4df;
}

body:not(.admin-theme) a.about-trust-item:hover {
    background: #eef5fc;
    color: #103f70;
}

body:not(.admin-theme) .about-trust-item strong {
    color: #103f70;
    font-size: 0.95rem;
    line-height: 1.35;
}

body:not(.admin-theme) .about-trust-item span {
    color: #526174;
    font-size: 0.82rem;
    line-height: 1.4;
}

@media (max-width: 860px) {
    body:not(.admin-theme) .about-page {
        margin-top: 24px;
    }

    body:not(.admin-theme) .about-story,
    body:not(.admin-theme) .about-bottom-grid {
        grid-template-columns: 1fr;
    }

    body:not(.admin-theme) .about-value-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    body:not(.admin-theme) .about-value-card {
        min-height: 0;
    }
}

@media (max-width: 560px) {
    body:not(.admin-theme) .about-page {
        margin-top: 16px;
    }

    body:not(.admin-theme) .about-hero,
    body:not(.admin-theme) .about-story,
    body:not(.admin-theme) .about-inventory,
    body:not(.admin-theme) .about-contact {
        padding: 26px 20px;
    }

    body:not(.admin-theme) .about-value-grid,
    body:not(.admin-theme) .about-trust-bar {
        grid-template-columns: 1fr;
    }

    body:not(.admin-theme) .about-values {
        padding: 44px 0;
    }

    body:not(.admin-theme) .about-trust-item + .about-trust-item {
        border-left: 0;
        border-top: 1px solid #c8d4df;
    }
}
}

/* Public storefront default: preserve the original retro-premium dark palette.
   The readability-refresh layer above remains available as structural fallback
   for newer components without overriding these unlayered theme declarations. */
body.storefront-theme {
    --dark-bg: #0a0a1a;
    --card-bg: #12122a;
    --card-hover: #1a1a3e;
    --neon-purple: #9b59b6;
    --neon-green: #39ff14;
    --neon-blue: #00d4ff;
    --neon-pink: #ff2d95;
    --text-primary: #e0e0ff;
    --text-secondary: #a0a0c0;
    --sale-red: #ff4444;
    --gold: #ffd700;
    --border-color: #2a2a5a;
    --font-body: var(--font-retro);
    background: var(--dark-bg);
    color: var(--text-primary);
    font-family: var(--font-retro);
    font-size: 20px;
    line-height: 1.6;
}

body.storefront-theme .scanlines {
    display: block;
}

body.storefront-theme .hero-title,
body.storefront-theme h1,
body.storefront-theme h3,
body.storefront-theme h4 {
    color: var(--text-primary);
}

body.storefront-theme h2 {
    color: var(--neon-purple);
}

body.storefront-theme .neon-text {
    background: transparent;
    color: var(--neon-green);
    padding: 0;
    text-shadow: 0 0 10px var(--neon-green), 0 0 20px var(--neon-green);
}

body.storefront-theme .nav-promo-row {
    background: linear-gradient(90deg, #12122a, #1a1a3e);
    border-bottom: 1px solid rgba(155, 89, 182, 0.45);
}

body.storefront-theme .nav-promo-link {
    color: var(--text-secondary);
    font-family: var(--font-retro);
    font-size: 0.9rem;
}

body.storefront-theme .nav-promo-link:hover,
body.storefront-theme .nav-promo-link:focus-visible,
body.storefront-theme .nav-promo-link strong {
    color: var(--neon-green);
}

body.storefront-theme .nav-category-row {
    background: rgba(10, 10, 26, 0.72);
    border-top: 1px solid rgba(155, 89, 182, 0.3);
}

body.storefront-theme .nav-category-menu > a,
body.storefront-theme .nav-category-menu > .nav-dropdown {
    border-color: rgba(155, 89, 182, 0.3);
}

body.storefront-theme .nav-category-menu > a,
body.storefront-theme .nav-category-menu .nav-dropdown-trigger {
    align-items: center;
    display: flex;
    font-size: clamp(0.65rem, 1.15vw, 0.75rem);
    line-height: 1.25;
    padding: 14px clamp(10px, 1.1vw, 16px);
    white-space: nowrap;
}

body.storefront-theme .nav-company-links {
    gap: 12px;
}

body.storefront-theme .nav-utilities .pro-nav-link {
    background: var(--neon-purple);
    color: #ffffff;
}

body.storefront-theme .nav-utilities .pro-nav-link:hover,
body.storefront-theme .nav-utilities .pro-nav-link:focus-visible {
    background: transparent;
    color: var(--neon-green);
}

body.storefront-theme .trust-card {
    background: rgba(18, 18, 42, 0.72);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

body.storefront-theme .trust-card:hover {
    border-color: var(--neon-purple);
    box-shadow: 0 0 18px rgba(155, 89, 182, 0.3);
}

body.storefront-theme .trust-card h3 {
    color: var(--neon-blue);
}

body.storefront-theme .trust-icon {
    color: var(--neon-purple);
    font-family: var(--font-pixel);
}

/* The readability refresh contains a few legacy !important declarations.
   Keep their useful image-fit behavior, while letting the first-priority dark
   layer own customer-facing surfaces and text. */
@layer storefront-dark {
    body.storefront-theme .platform-card,
    body.storefront-theme .blog-card,
    body.storefront-theme .admin-section,
    body.storefront-theme .testimonial-card,
    body.storefront-theme .testimonials {
        background: var(--card-bg) !important;
        border-color: var(--border-color) !important;
        color: var(--text-primary) !important;
    }

    body.storefront-theme .product-card {
        background: transparent !important;
        border-color: var(--border-color) !important;
    }

    body.storefront-theme .product-image {
        background: #0d0d22 !important;
        border-color: var(--border-color) !important;
    }

    body.storefront-theme .product-info h3,
    body.storefront-theme .blog-card h3 {
        color: var(--text-primary) !important;
    }

    body.storefront-theme .product-platform {
        color: var(--neon-blue) !important;
    }

    body.storefront-theme .testimonial-card p,
    body.storefront-theme .testimonial-card strong {
        color: var(--text-secondary) !important;
    }
}

body.storefront-theme .home-newsletter {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.08), rgba(155, 89, 182, 0.12));
    border-bottom: 1px solid var(--border-color);
    border-top: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 2.5rem 1rem;
    text-align: center;
}

body.storefront-theme .home-newsletter-inner {
    margin: 0 auto;
    max-width: 680px;
}

body.storefront-theme .home-newsletter h2 {
    color: var(--neon-blue);
    font-family: var(--font-pixel);
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

body.storefront-theme .home-newsletter p {
    color: var(--text-secondary);
}

body.storefront-theme .home-newsletter-form {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
}

body.storefront-theme .home-newsletter-form input {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--neon-blue);
    border-radius: 5px;
    color: var(--text-primary);
    flex: 1;
    font: inherit;
    max-width: 320px;
    min-width: 220px;
    padding: 0.6rem 1rem;
}

body.storefront-theme .home-newsletter-form input::placeholder {
    color: var(--text-secondary);
}

body.storefront-theme .home-newsletter-note {
    color: var(--text-secondary);
    font-size: 0.7rem;
    margin-top: 0.75rem;
}

body.storefront-theme .about-hero {
    background: linear-gradient(135deg, #12122a, #1a1a3e);
    border: 1px solid var(--neon-purple);
    border-bottom: 4px solid var(--neon-green);
}

body.storefront-theme .about-kicker,
body.storefront-theme .about-section-label {
    color: var(--neon-blue);
    font-family: var(--font-pixel);
}

body.storefront-theme .about-hero .about-kicker,
body.storefront-theme .about-contact .about-section-label {
    color: var(--neon-green);
}

body.storefront-theme .about-hero h1,
body.storefront-theme .about-story-copy h2,
body.storefront-theme .about-section-heading h2,
body.storefront-theme .about-inventory h2,
body.storefront-theme .about-contact h2 {
    color: var(--text-primary);
    font-family: var(--font-pixel);
}

body.storefront-theme .about-lede,
body.storefront-theme .about-story-copy p:not(.about-section-label),
body.storefront-theme .about-inventory > p:not(.about-section-label),
body.storefront-theme .about-contact > p:not(.about-section-label),
body.storefront-theme .about-value-card p,
body.storefront-theme .about-trust-item span {
    color: var(--text-secondary);
}

body.storefront-theme .about-story,
body.storefront-theme .about-inventory,
body.storefront-theme .about-value-card,
body.storefront-theme .about-trust-bar {
    background: var(--card-bg);
    border-color: var(--border-color);
    color: var(--text-primary);
}

body.storefront-theme .about-standard,
body.storefront-theme .about-category-list li {
    background: #0d0d22;
    color: var(--text-primary);
}

body.storefront-theme .about-standard {
    border-left-color: var(--neon-green);
}

body.storefront-theme .about-standard h3,
body.storefront-theme .about-value-card h3,
body.storefront-theme .about-trust-item strong {
    color: var(--neon-blue);
}

body.storefront-theme .about-standard li {
    border-color: var(--border-color);
    color: var(--text-secondary);
}

body.storefront-theme .about-standard li::before {
    color: var(--neon-green);
}

body.storefront-theme .about-value-card {
    border-top-color: var(--neon-purple);
}

body.storefront-theme .about-value-number {
    background: var(--neon-purple);
    color: #ffffff;
}

body.storefront-theme .about-category-list li {
    border-color: var(--neon-blue);
}

body.storefront-theme .about-contact {
    background: linear-gradient(135deg, #12122a, #1a1a3e);
    border-bottom-color: var(--neon-green);
}

body.storefront-theme .about-text-link {
    color: var(--neon-green);
}

body.storefront-theme .about-trust-item {
    color: var(--text-primary);
}

body.storefront-theme .about-trust-item + .about-trust-item {
    border-color: var(--border-color);
}

body.storefront-theme a.about-trust-item:hover,
body.storefront-theme a.about-trust-item:focus-visible {
    background: var(--card-hover);
    color: var(--neon-green);
}

body.storefront-theme .resurface-mint-live .live-header {
    background: #0d0d22;
    border-bottom-color: var(--neon-green);
}

body.storefront-theme .resurface-mint-live .live-header h2 {
    color: var(--text-primary);
    font-family: var(--font-pixel);
}

body.storefront-theme .resurface-mint-live .live-location {
    color: var(--neon-green);
}

@media (max-width: 560px) {
    body.storefront-theme .home-newsletter-form {
        align-items: stretch;
        flex-direction: column;
    }

    body.storefront-theme .home-newsletter-form input {
        max-width: none;
        min-width: 0;
        width: 100%;
    }
}

/* ====================================
   ADMIN HIGH-CONTRAST LIGHT THEME
   Keeps the light workspace while giving panels, tables, and controls firm edges.
   ==================================== */

body.admin-theme {
    --dark-bg: #e8eef5;
    --card-bg: #ffffff;
    --card-hover: #edf4fb;
    --neon-purple: #563b91;
    --neon-green: #176b45;
    --neon-blue: #075a9f;
    --neon-pink: #b82945;
    --text-primary: #172536;
    --text-secondary: #46576b;
    --sale-red: #b4232f;
    --gold: #a97400;
    --border-color: #7f91a6;
    --admin-canvas: #e8eef5;
    --admin-panel: #ffffff;
    --admin-panel-muted: #f2f6fa;
    --admin-panel-blue: #e5eff8;
    --admin-border: #71859b;
    --admin-border-soft: #aab9c8;
    --admin-ink: #172536;
    --admin-muted: #46576b;
    background: var(--admin-canvas);
    color: var(--admin-ink);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
    line-height: 1.55;
}

body.admin-theme .scanlines {
    display: none;
}

body.admin-theme > main.container {
    max-width: 1480px;
    padding: 0 24px;
}

body.admin-theme h1,
body.admin-theme h2,
body.admin-theme h3,
body.admin-theme h4,
body.admin-theme h5,
body.admin-theme h6 {
    color: #173a61;
    font-family: Arial, Helvetica, sans-serif;
    font-weight: 800;
    letter-spacing: -0.01em;
    line-height: 1.25;
}

body.admin-theme p,
body.admin-theme li,
body.admin-theme dd,
body.admin-theme td {
    color: var(--admin-ink);
}

body.admin-theme .muted,
body.admin-theme .text-muted,
body.admin-theme .admin-tool-group-intro,
body.admin-theme .stat-description,
body.admin-theme .admin-workspace-summary p,
body.admin-theme .admin-pagination,
body.admin-theme .admin-tools-board-header p,
body.admin-theme .admin-tool-search-status,
body.admin-theme .admin-tool-search-empty,
body.admin-theme .admin-tool-no-js,
body.admin-theme .insights-muted,
body.admin-theme .copilot-muted {
    color: var(--admin-muted) !important;
}

body.admin-theme a {
    color: #075a9f;
    text-underline-offset: 3px;
}

body.admin-theme a:hover {
    color: #003f76;
}

body.admin-theme a:focus-visible,
body.admin-theme button:focus-visible,
body.admin-theme input:focus-visible,
body.admin-theme select:focus-visible,
body.admin-theme textarea:focus-visible,
body.admin-theme summary:focus-visible {
    outline: 3px solid #d49a00 !important;
    outline-offset: 3px !important;
}

/* Admin header and global navigation */
body.admin-theme .navbar {
    background: #084a91;
    border-bottom: 5px solid #e4b72a;
    box-shadow: 0 3px 12px rgba(10, 43, 78, 0.28);
    padding: 11px 0 0;
}

body.admin-theme .navbar .container {
    gap: 9px;
}

body.admin-theme .logo-img {
    height: 48px;
    filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.28));
}

body.admin-theme .nav-links,
body.admin-theme .nav-utilities,
body.admin-theme .nav-company-links {
    gap: 0;
}

body.admin-theme .nav-links a,
body.admin-theme .nav-utilities a,
body.admin-theme .nav-company-links a,
body.admin-theme .nav-dropdown-trigger,
body.admin-theme .nav-link-button {
    border: 0;
    color: #ffffff;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.94rem;
    font-weight: 800;
    line-height: 1.2;
    padding: 10px 15px;
    text-transform: none;
}

body.admin-theme .nav-category-menu > a,
body.admin-theme .nav-category-menu .nav-dropdown-trigger {
    align-items: center;
    display: flex;
    white-space: nowrap;
}

body.admin-theme .nav-primary-links {
    background: #063b74;
    border-top: 1px solid rgba(255, 255, 255, 0.28);
    justify-content: center;
}

body.admin-theme .nav-category-menu > a,
body.admin-theme .nav-category-menu > .nav-dropdown {
    border-left: 1px solid rgba(255, 255, 255, 0.2);
}

body.admin-theme .nav-links a:hover,
body.admin-theme .nav-utilities a:hover,
body.admin-theme .nav-company-links a:hover,
body.admin-theme .nav-dropdown-trigger:hover,
body.admin-theme .nav-dropdown-trigger:focus,
body.admin-theme .nav-link-button:hover {
    background: #063b74;
    color: #ffe06b;
}

body.admin-theme .nav-category-row .nav-search-form {
    padding: 8px 0 8px 14px;
}

body.admin-theme .nav-platform-links {
    background: #063b74;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    margin: 0 -20px;
    padding: 8px 20px;
}

body.admin-theme .nav-platform-links a {
    color: #ffffff;
}

body.admin-theme .nav-platform-links a:hover {
    color: #ffe06b;
}

body.admin-theme .admin-nav-link {
    background: #ffe06b;
    color: #10243d !important;
    margin: 0 6px;
    padding-inline: 12px !important;
}

body.admin-theme .search-form input {
    background: #ffffff;
    border: 2px solid #8da1b6;
    color: var(--admin-ink);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 1rem;
    min-height: 42px;
}

body.admin-theme .search-form button {
    background: #ffe06b;
    border: 2px solid #c79b00;
    color: #10243d;
    min-height: 42px;
    min-width: 48px;
}

body.admin-theme .dropdown-content {
    background: #ffffff;
    border: 2px solid #084a91;
    box-shadow: 0 8px 20px rgba(15, 40, 70, 0.22);
}

body.admin-theme .dropdown-content a {
    color: var(--admin-ink);
}

/* Page framing and navigation */
body.admin-theme .admin-dashboard,
body.admin-theme .admin-container,
body.admin-theme .admin-page,
body.admin-theme .admin-logs,
body.admin-theme .insights-shell,
body.admin-theme .copilot-shell,
body.admin-theme .business-insights-page {
    color: var(--admin-ink);
}

body.admin-theme .admin-header {
    background: var(--admin-panel-blue);
    border: 2px solid var(--admin-border) !important;
    border-left: 8px solid #075a9f !important;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(36, 61, 89, 0.12);
    margin: 1.5rem 0 !important;
    padding: 1.25rem 1.4rem !important;
}

body.admin-theme .admin-header h1,
body.admin-theme .admin-header p {
    margin-bottom: 0.45rem;
}

body.admin-theme .admin-destination-nav {
    background: var(--admin-panel);
    border: 2px solid var(--admin-border);
    border-radius: 6px;
    box-shadow: 0 2px 5px rgba(36, 61, 89, 0.1);
    margin: 0 0 1.5rem !important;
    padding: 0.75rem;
}

body.admin-theme .admin-destination-nav a {
    background: #edf3f8 !important;
    border: 2px solid #8295aa !important;
    color: #1c3857 !important;
    font-weight: 700;
}

body.admin-theme .admin-destination-nav a:hover {
    background: #dce9f5 !important;
    border-color: #075a9f !important;
    color: #063b74 !important;
}

body.admin-theme .admin-destination-nav a[aria-current='page'] {
    background: #075a9f !important;
    border-color: #043e70 !important;
    box-shadow: none !important;
    color: #ffffff !important;
}

body.admin-theme .admin-destination-label {
    color: #4b5d71 !important;
    font-weight: 800;
}

/* Strong panel boundaries */
body.admin-theme .admin-section,
body.admin-theme .admin-card,
body.admin-theme .card,
body.admin-theme .retro-card,
body.admin-theme .insights-panel,
body.admin-theme .workforce-section,
body.admin-theme .business-report-section,
body.admin-theme .copilot-metric,
body.admin-theme .agent-card,
body.admin-theme .result-stat,
body.admin-theme .form-card {
    background: var(--admin-panel) !important;
    border: 2px solid var(--admin-border) !important;
    border-radius: 6px;
    box-shadow: 0 3px 8px rgba(35, 58, 84, 0.12) !important;
    color: var(--admin-ink);
}

body.admin-theme .admin-section {
    margin-bottom: 1.5rem !important;
    padding: 1.35rem !important;
}

body.admin-theme .admin-section > h2:first-child,
body.admin-theme .admin-section > h3:first-child,
body.admin-theme .admin-card > h2:first-child,
body.admin-theme .admin-card > h3:first-child,
body.admin-theme .insights-section-heading {
    border-bottom: 3px solid #075a9f;
    color: #173a61 !important;
    margin-bottom: 1rem;
    padding-bottom: 0.55rem;
}

body.admin-theme .admin-tool-group {
    background: var(--admin-panel-muted);
    border: 2px solid var(--admin-border-soft);
    border-left: 6px solid #075a9f;
    border-radius: 5px;
    padding: 0.9rem;
}

body.admin-theme .admin-tools-unified-grid {
    gap: 1rem;
}

body.admin-theme .admin-tools-unified-grid > .admin-tool-group > h3 {
    border-bottom: 2px solid #7895b4;
    color: #173a61;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.9rem;
    font-weight: 900;
}

/* Dashboard cards */
body.admin-theme .stat-card,
body.admin-theme .insights-metric,
body.admin-theme .business-metric,
body.admin-theme .workforce-metric,
body.admin-theme .metric-card {
    background: #ffffff !important;
    border: 2px solid #71859b !important;
    box-shadow: inset 5px 0 0 #075a9f, 0 2px 5px rgba(35, 58, 84, 0.1) !important;
    color: var(--admin-ink) !important;
}

body.admin-theme .stat-card-link:hover {
    background: #e5eff8 !important;
    border-color: #075a9f !important;
    transform: translateY(-2px);
}

body.admin-theme .stat-label,
body.admin-theme .insights-metric-definition {
    color: #334b65 !important;
    font-family: Arial, Helvetica, sans-serif;
    font-weight: 800;
}

body.admin-theme .stat-value,
body.admin-theme .insights-number,
body.admin-theme .insights-metric-value {
    color: #075a9f !important;
    font-family: Arial, Helvetica, sans-serif;
    font-weight: 900;
}

/* Tables */
body.admin-theme .admin-table-container,
body.admin-theme .admin-table-wrap,
body.admin-theme .table-responsive,
body.admin-theme .insights-table-wrap,
body.admin-theme .business-table-wrap,
body.admin-theme .workforce-table-wrap,
body.admin-theme .copilot-table-wrap {
    background: #ffffff;
    border: 2px solid var(--admin-border);
    border-radius: 5px;
    overflow-x: auto;
}

body.admin-theme main table {
    background: #ffffff !important;
    border-collapse: separate !important;
    border-spacing: 0;
    color: var(--admin-ink) !important;
    font-family: Arial, Helvetica, sans-serif !important;
    width: 100%;
}

body.admin-theme main table th {
    background: #dce8f3 !important;
    border-bottom: 2px solid #657b92 !important;
    border-right: 1px solid #9aabba;
    color: #173a61 !important;
    font-family: Arial, Helvetica, sans-serif;
    font-weight: 900;
    letter-spacing: 0.02em;
}

body.admin-theme main table td {
    background: #ffffff;
    border-bottom: 1px solid #aab8c6 !important;
    border-right: 1px solid #d2dbe4;
    color: var(--admin-ink) !important;
}

body.admin-theme main table tbody tr:nth-child(even) td {
    background: #f1f5f9;
}

body.admin-theme main table tbody tr:hover td {
    background: #dfeaf5;
}

body.admin-theme main table th:last-child,
body.admin-theme main table td:last-child {
    border-right: 0;
}

/* Forms and controls */
body.admin-theme .form-group label,
body.admin-theme .admin-form label,
body.admin-theme .copilot-field label,
body.admin-theme fieldset legend {
    color: #263f5b !important;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.86rem;
    font-weight: 800;
}

body.admin-theme input:not([type='checkbox']):not([type='radio']):not([type='file']),
body.admin-theme select,
body.admin-theme textarea,
body.admin-theme .admin-select,
body.admin-theme .admin-input,
body.admin-theme .form-control,
body.admin-theme .form-input {
    background: #ffffff !important;
    border: 2px solid #71859b !important;
    border-radius: 4px;
    color: var(--admin-ink) !important;
    font-family: Arial, Helvetica, sans-serif;
    min-height: 42px;
}

body.admin-theme input::placeholder,
body.admin-theme textarea::placeholder {
    color: #647489 !important;
    opacity: 1;
}

body.admin-theme .admin-tool-search {
    background: #e5eff8 !important;
    border: 2px solid #71859b !important;
}

body.admin-theme .admin-tool-category-choice label {
    background: #ffffff !important;
    border: 2px solid #7c90a6 !important;
    color: #243d59 !important;
    font-weight: 700;
}

body.admin-theme .admin-tool-category-choice input:checked + label {
    background: #075a9f !important;
    border-color: #043e70 !important;
    box-shadow: none !important;
    color: #ffffff !important;
}

body.admin-theme .btn {
    box-shadow: none;
    font-family: Arial, Helvetica, sans-serif;
    font-weight: 800;
}

body.admin-theme .btn-primary,
body.admin-theme .btn-success {
    background: #075a9f;
    border-color: #043e70;
    color: #ffffff;
}

body.admin-theme .btn-secondary,
body.admin-theme .btn-outline-info,
body.admin-theme .btn-outline-secondary {
    background: #ffffff;
    border: 2px solid #075a9f;
    color: #075a9f;
}

body.admin-theme .btn-danger {
    background: #b4232f;
    border-color: #7e1820;
    color: #ffffff;
}

body.admin-theme details {
    background: #f4f7fa;
    border: 2px solid #8b9caf;
    border-radius: 5px;
    margin-bottom: 0.75rem;
}

body.admin-theme details > summary {
    background: #e2ebf4;
    color: #173a61;
    cursor: pointer;
    font-weight: 800;
    padding: 0.75rem 1rem;
}

body.admin-theme hr {
    border: 0;
    border-top: 2px solid #91a2b4;
}

body.admin-theme .alert,
body.admin-theme .flash {
    background: #edf4fb;
    border: 2px solid #557793;
    color: #173a61;
}

body.admin-theme .badge,
body.admin-theme .status-badge,
body.admin-theme .provider-pill,
body.admin-theme .copilot-badge {
    border: 1px solid rgba(15, 35, 55, 0.45);
    font-weight: 800;
}

body.admin-theme .footer {
    background: #063b74;
    border-top: 5px solid #e4b72a;
    color: #ffffff;
}

body.admin-theme .footer h4,
body.admin-theme .footer p,
body.admin-theme .footer a {
    color: #ffffff;
}

@media (max-width: 768px) {
    body.admin-theme > main.container {
        padding: 0 14px;
    }

    body.admin-theme .navbar {
        position: relative;
    }

    body.admin-theme .nav-primary-links {
        gap: 0;
    }

    body.admin-theme .nav-platform-links {
        margin: 0 -20px;
    }

    body.admin-theme .admin-header,
    body.admin-theme .admin-section {
        padding: 1rem !important;
    }

    body.admin-theme .admin-tools-unified-grid > .admin-tool-group > .admin-stats {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    body.admin-theme .nav-utilities a,
    body.admin-theme .nav-utilities .nav-link-button {
        font-size: 0.72rem;
        padding: 4px 6px;
    }

    body.admin-theme .admin-nav-link {
        margin-inline: 2px;
        padding-inline: 8px !important;
    }
}

/* Mobile conversion: visible horizontal navigation, compact product hero,
   collapsible filters, and one small global help entry point. */
@media (max-width: 768px) {
    body:not(.admin-theme) .nav-category-scroll {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        min-width: 0;
        overflow: hidden;
        position: relative;
    }

    body:not(.admin-theme) .nav-category-menu {
        overflow-x: auto;
        overflow-y: hidden;
        padding-right: 12px;
        scroll-padding-inline: 12px;
        scrollbar-width: none;
    }

    body:not(.admin-theme) .nav-category-menu:focus-visible {
        outline-offset: -3px;
    }

    body:not(.admin-theme) .nav-scroll-cue {
        align-items: center;
        background: #084a91;
        border-left: 1px solid rgba(255, 255, 255, 0.28);
        color: #ffffff;
        display: flex;
        font-size: 0.72rem;
        font-weight: 900;
        justify-content: flex-end;
        letter-spacing: 0.04em;
        overflow: hidden;
        padding: 0 8px;
        pointer-events: none;
        position: static;
        text-transform: uppercase;
        transition: opacity 0.2s ease;
        white-space: nowrap;
    }

    body:not(.admin-theme) .nav-category-scroll.at-end .nav-scroll-cue {
        opacity: 0;
        padding-inline: 0;
        visibility: hidden;
        width: 0;
    }

    body:not(.admin-theme) .product-detail {
        padding-top: 12px;
    }

    body:not(.admin-theme) .breadcrumbs {
        margin-bottom: 12px;
    }

    body:not(.admin-theme) .product-detail-grid {
        gap: 16px;
        margin-bottom: 32px;
    }

    body:not(.admin-theme) .product-detail-image {
        display: grid;
        height: clamp(155px, 36vh, 220px);
        place-items: center;
    }

    body:not(.admin-theme) .product-detail-image img {
        height: 100% !important;
        max-height: 220px;
        width: 100%;
    }

    body:not(.admin-theme) .product-detail-info {
        display: flex;
        flex-direction: column;
    }

    body:not(.admin-theme) .product-detail-info h1 {
        font-size: 1.25rem;
        margin: 6px 0 10px;
    }

    body:not(.admin-theme) .game-summary-badges {
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
    }

    body:not(.admin-theme) .game-summary-badges .product-condition-lg {
        display: inline-flex;
        margin: 0 !important;
    }

    body:not(.admin-theme) .product-detail-price {
        margin: 8px 0 12px;
    }

    body:not(.admin-theme) .product-detail-info > .purchase-actions,
    body:not(.admin-theme) .product-detail-info > .out-of-stock-actions {
        order: 1;
    }

    body:not(.admin-theme) .product-detail-info > .product-meta {
        order: 2;
    }

    body:not(.admin-theme) .product-detail-info > .product-description {
        order: 3;
    }

    body:not(.admin-theme) .product-detail-info > .bundle-contents {
        order: 4;
    }

    body:not(.admin-theme) .chat-widget {
        bottom: calc(12px + env(safe-area-inset-bottom));
        right: 12px;
    }

    body:not(.admin-theme) .chat-toggle {
        height: 42px;
        min-width: 48px;
        padding: 0 11px;
    }

    body:not(.admin-theme) .footer {
        padding-bottom: calc(70px + env(safe-area-inset-bottom));
    }
}

@media (max-width: 480px) {
    body:not(.admin-theme) .nav-category-scroll {
        grid-column: 1;
    }
}

/* Shared legal/static-page presentation. Keep policy content free of inline CSS. */
body:not(.admin-theme) .static-page {
    background: var(--card-bg);
    border: 1px solid var(--neon-blue);
    border-radius: 8px;
    margin: 2rem auto;
    max-width: 800px;
    padding: 2rem;
}

body:not(.admin-theme) .static-page h1 {
    color: var(--neon-purple);
    font-family: var(--font-pixel);
    margin-bottom: 1rem;
    text-align: center;
}

body:not(.admin-theme) .static-page-updated {
    color: #a8a8a8;
    font-family: 'VT323', monospace;
    text-align: center;
}

body:not(.admin-theme) .static-content section {
    border-bottom: 1px solid #333333;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
}

body:not(.admin-theme) .static-content section:last-child {
    border-bottom: 0;
}

body:not(.admin-theme) .static-content h2 {
    color: var(--neon-green);
    font-size: 1.1rem;
    margin-bottom: 0.6rem;
}

body:not(.admin-theme) .static-content p,
body:not(.admin-theme) .static-content li {
    font-family: 'VT323', monospace;
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

body:not(.admin-theme) .static-content ul {
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
}

body:not(.admin-theme) .static-footer {
    margin-top: 2rem;
    text-align: center;
}

@media (max-width: 600px) {
    body:not(.admin-theme) .static-page {
        margin: 1rem auto;
        padding: 1.25rem;
    }
}
