@charset "UTF-8";
/* ============================================================
   STYLE.CSS – PRODUCTION READY
   Architecture: Modular, Design Tokens, Modern CSS
   Theme: Gaming & Console Store
   Inspired by: Razer, Steam, Corsair, ASUS ROG, NZXT
   ============================================================ */

/* ============================================================
   1.  RESET
   ============================================================ */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

ul,
ol {
    list-style: none;
    margin-block: 0;
    padding-inline: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    overflow-x: hidden;
}

body {
    min-height: 100vh;
    max-width: 100vw;
    overflow-x: hidden;
    text-rendering: optimizeSpeed;
    line-height: 1.5;
    font-family: 'Vazirmatn', 'Tahoma', system-ui, -apple-system, sans-serif;
    font-weight: 600;
    background: var(--color-bg-base);
    color: var(--color-text-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img,
picture,
video,
canvas,
svg {
    display: block;
    max-width: 100%;
}

input,
button,
textarea,
select {
    font: inherit;
}

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

/* ============================================================
   2.  ROOT VARIABLES – GAMING THEME TOKENS
   ============================================================ */
:root {
    /* ----- Brand Colors - Gaming Theme ----- */
    --color-primary: #FF1744;
    --color-primary-hover: #D50000;
    --color-secondary: #00E5FF;
    --color-secondary-hover: #00B8D4;
    --color-accent: #FFD600;
    --color-accent-hover: #FFC107;
    --color-gaming-dark: #0A0A0A;
    --color-gaming-darker: #050505;
    --color-gaming-card: #141414;
    --color-gaming-border: #2A2A2A;

    /* ----- Gaming RGB Colors ----- */
    --color-rgb-red: #FF1744;
    --color-rgb-green: #00E676;
    --color-rgb-blue: #2979FF;
    --color-rgb-cyan: #00E5FF;
    --color-rgb-purple: #D500F9;
    --color-rgb-orange: #FF9100;
    --color-rgb-pink: #F50057;

    /* ----- Neutral Palette ----- */
    --color-white: #FFFFFF;
    --color-black: #0A0A0A;

    --color-neutral-50: #F5F5F5;
    --color-neutral-100: #E0E0E0;
    --color-neutral-200: #BDBDBD;
    --color-neutral-300: #9E9E9E;
    --color-neutral-400: #757575;
    --color-neutral-500: #616161;
    --color-neutral-600: #424242;
    --color-neutral-700: #212121;
    --color-neutral-800: #141414;
    --color-neutral-900: #0A0A0A;
    --color-neutral-950: #050505;

    /* ----- Semantic Colors ----- */
    --color-success: #00E676;
    --color-success-hover: #00C853;
    --color-error: #FF1744;
    --color-error-hover: #D50000;
    --color-warning: #FF9100;
    --color-info: #2979FF;

    /* ----- Backgrounds ----- */
    --color-bg-base: var(--color-neutral-900);
    --color-bg-surface: var(--color-neutral-800);
    --color-bg-surface-alt: var(--color-neutral-700);
    --color-bg-inverse: var(--color-white);

    /* ----- Text ----- */
    --color-text-primary: var(--color-neutral-50);
    --color-text-secondary: var(--color-neutral-300);
    --color-text-muted: var(--color-neutral-400);
    --color-text-inverse: var(--color-black);
    --color-text-on-primary: var(--color-white);

    /* ----- Border ----- */
    --color-border-light: var(--color-neutral-700);
    --color-border-base: var(--color-neutral-600);
    --color-border-focus: var(--color-secondary);

    /* ----- Shadows - Gaming Glow ----- */
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.5);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.6);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.7);
    --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.8);
    --shadow-xl: 0 30px 70px rgba(0, 0, 0, 0.9);
    --shadow-2xl: 0 40px 90px rgba(0, 0, 0, 0.95);
    --shadow-glow-red: 0 0 30px rgba(255, 23, 68, 0.3);
    --shadow-glow-cyan: 0 0 30px rgba(0, 229, 255, 0.3);
    --shadow-glow-purple: 0 0 30px rgba(213, 0, 249, 0.3);

    /* ----- Radius ----- */
    --radius-xs: 4px;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-2xl: 24px;
    --radius-3xl: 32px;
    --radius-full: 9999px;

    /* ----- Spacing (scale) ----- */
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 20px;
    --space-6: 24px;
    --space-7: 28px;
    --space-8: 32px;
    --space-10: 40px;
    --space-12: 48px;
    --space-16: 64px;
    --space-20: 80px;
    --space-24: 96px;

    /* ----- Font Sizes (fluid) ----- */
    --text-xs: clamp(0.7rem, 0.65rem + 0.15vw, 0.75rem);
    --text-sm: clamp(0.8rem, 0.75rem + 0.18vw, 0.9rem);
    --text-base: clamp(0.95rem, 0.9rem + 0.2vw, 1.05rem);
    --text-lg: clamp(1.05rem, 0.98rem + 0.3vw, 1.2rem);
    --text-xl: clamp(1.2rem, 1.1rem + 0.4vw, 1.4rem);
    --text-2xl: clamp(1.4rem, 1.25rem + 0.6vw, 1.8rem);
    --text-3xl: clamp(1.8rem, 1.5rem + 0.9vw, 2.4rem);
    --text-4xl: clamp(2.2rem, 1.8rem + 1.2vw, 3rem);
    --text-5xl: clamp(2.8rem, 2.2rem + 1.8vw, 4rem);

    /* ----- Font Weights ----- */
    --font-normal: 400;
    --font-medium: 500;
    --font-semibold: 600;
    --font-bold: 700;
    --font-extrabold: 800;
    --font-black: 900;

    /* ----- Transitions ----- */
    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
    --transition-fast: 150ms var(--ease-out);
    --transition-base: 250ms var(--ease-out);
    --transition-smooth: 350ms var(--ease-in-out);
    --transition-slower: 500ms var(--ease-in-out);

    /* ----- Z-Index Scale ----- */
    --z-negative: -1;
    --z-0: 0;
    --z-10: 10;
    --z-20: 20;
    --z-30: 30;
    --z-40: 40;
    --z-50: 50;
    --z-auto: auto;
    --z-modal: 100;
    --z-toast: 200;
    --z-tooltip: 300;
    --z-overlay: 400;

    /* ----- Container Widths ----- */
    --container-max: 1280px;
    --container-padding: clamp(1rem, 4vw, 2.5rem);
}

/* ============================================================
   3.  COLOR SYSTEM – SEMANTIC MAPPING
   ============================================================ */
:root {
    --color-surface: var(--color-bg-surface);
    --color-surface-hover: var(--color-neutral-700);
    --color-border: var(--color-border-light);
    --color-text: var(--color-text-primary);
    --color-text-subtle: var(--color-text-muted);
}

/* ============================================================
   3b. LIGHT THEME OVERRIDE
   Toggled via [data-theme="light"] on <html>. Everything else in
   this file references the variables below, so no other rule
   needs to change to support light mode.
   ============================================================ */
html[data-theme="light"] {
    --color-gaming-card: #FFFFFF;
    --color-gaming-border: #E0E0E0;

    --color-bg-base: #F5F6F8;
    --color-bg-surface: #FFFFFF;
    --color-bg-surface-alt: #ECEEF1;
    --color-bg-inverse: #0A0A0A;

    --color-text-primary: #16181C;
    --color-text-secondary: #4B4F58;
    --color-text-muted: #7A7F89;
    --color-text-inverse: #FFFFFF;

    --color-border-light: #E3E5E9;
    --color-border-base: #CBCED4;

    --shadow-xs: 0 1px 2px rgba(20, 20, 30, 0.06);
    --shadow-sm: 0 2px 8px rgba(20, 20, 30, 0.08);
    --shadow-md: 0 10px 30px rgba(20, 20, 30, 0.10);
    --shadow-lg: 0 20px 50px rgba(20, 20, 30, 0.12);
    --shadow-xl: 0 30px 70px rgba(20, 20, 30, 0.14);
    --shadow-2xl: 0 40px 90px rgba(20, 20, 30, 0.16);

    --color-surface: var(--color-bg-surface);
    --color-surface-hover: #F0F1F4;
    --color-border: var(--color-border-light);
    --color-text: var(--color-text-primary);
    --color-text-subtle: var(--color-text-muted);
}

html,
html[data-theme] body {
    transition: background-color var(--transition-smooth), color var(--transition-smooth);
}

/* ----- Theme / language toggle buttons (header) ----- */
.icon-toggle-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    border: 1px solid var(--color-border-light);
    background: var(--color-bg-surface);
    color: var(--color-text-primary);
    font-size: 1.1rem;
    line-height: 1;
    cursor: pointer;
    transition: var(--transition-fast);
}

.icon-toggle-btn:hover {
    border-color: var(--color-secondary);
    box-shadow: var(--shadow-glow-cyan);
}

.lang-toggle-btn {
    width: auto;
    padding: 0 var(--space-3);
    gap: var(--space-1);
    font-size: var(--text-sm);
    font-weight: var(--font-bold);
    text-decoration: none;
}

/* ============================================================
   4.  TYPOGRAPHY - GAMING STYLE
   ============================================================ */
body {
    font-size: var(--text-base);
    font-weight: var(--font-normal);
    line-height: 1.6;
    background: var(--color-bg-base);
    color: var(--color-text-primary);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: var(--font-extrabold);
    line-height: 1.1;
    color: var(--color-text-primary);
    letter-spacing: -0.02em;
    text-transform: uppercase;
}

h1 {
    font-size: var(--text-5xl);
    background: linear-gradient(135deg, var(--color-primary), var(--color-rgb-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

h2 {
    font-size: var(--text-3xl);
}

h3 {
    font-size: var(--text-2xl);
}

h4 {
    font-size: var(--text-xl);
}

h5 {
    font-size: var(--text-lg);
}

h6 {
    font-size: var(--text-base);
}

p {
    margin-bottom: var(--space-4);
    color: var(--color-text-secondary);
}

a {
    color: var(--color-secondary);
    transition: var(--transition-fast);
}

a:hover {
    color: var(--color-secondary-hover);
}

/* ============================================================
   5.  SPACING SYSTEM
   ============================================================ */
.m-0 {
    margin: 0;
}

.m-1 {
    margin: var(--space-1);
}

.m-2 {
    margin: var(--space-2);
}

.m-3 {
    margin: var(--space-3);
}

.m-4 {
    margin: var(--space-4);
}

.m-5 {
    margin: var(--space-5);
}

.m-6 {
    margin: var(--space-6);
}

.m-8 {
    margin: var(--space-8);
}

.m-10 {
    margin: var(--space-10);
}

.p-0 {
    padding: 0;
}

.p-1 {
    padding: var(--space-1);
}

.p-2 {
    padding: var(--space-2);
}

.p-3 {
    padding: var(--space-3);
}

.p-4 {
    padding: var(--space-4);
}

.p-5 {
    padding: var(--space-5);
}

.p-6 {
    padding: var(--space-6);
}

.p-8 {
    padding: var(--space-8);
}

.p-10 {
    padding: var(--space-10);
}

.gap-1 {
    gap: var(--space-1);
}

.gap-2 {
    gap: var(--space-2);
}

.gap-3 {
    gap: var(--space-3);
}

.gap-4 {
    gap: var(--space-4);
}

.gap-5 {
    gap: var(--space-5);
}

.gap-6 {
    gap: var(--space-6);
}

.gap-8 {
    gap: var(--space-8);
}

/* ============================================================
   6.  RADIUS SYSTEM
   ============================================================ */
.rounded-xs {
    border-radius: var(--radius-xs);
}

.rounded-sm {
    border-radius: var(--radius-sm);
}

.rounded-md {
    border-radius: var(--radius-md);
}

.rounded-lg {
    border-radius: var(--radius-lg);
}

.rounded-xl {
    border-radius: var(--radius-xl);
}

.rounded-2xl {
    border-radius: var(--radius-2xl);
}

.rounded-3xl {
    border-radius: var(--radius-3xl);
}

.rounded-full {
    border-radius: var(--radius-full);
}

/* ============================================================
   7.  SHADOW SYSTEM - GAMING GLOW
   ============================================================ */
.shadow-xs {
    box-shadow: var(--shadow-xs);
}

.shadow-sm {
    box-shadow: var(--shadow-sm);
}

.shadow-md {
    box-shadow: var(--shadow-md);
}

.shadow-lg {
    box-shadow: var(--shadow-lg);
}

.shadow-xl {
    box-shadow: var(--shadow-xl);
}

.shadow-2xl {
    box-shadow: var(--shadow-2xl);
}

.shadow-none {
    box-shadow: none;
}

.shadow-glow-red {
    box-shadow: var(--shadow-glow-red);
}

.shadow-glow-cyan {
    box-shadow: var(--shadow-glow-cyan);
}

.shadow-glow-purple {
    box-shadow: var(--shadow-glow-purple);
}

/* ============================================================
   8.  BLUR SYSTEM
   ============================================================ */
.backdrop-blur-sm {
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.backdrop-blur-md {
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.backdrop-blur-lg {
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
}

/* ============================================================
   9.  Z-INDEX SCALE
   ============================================================ */
.z-0 {
    z-index: var(--z-0);
}

.z-10 {
    z-index: var(--z-10);
}

.z-20 {
    z-index: var(--z-20);
}

.z-30 {
    z-index: var(--z-30);
}

.z-40 {
    z-index: var(--z-40);
}

.z-50 {
    z-index: var(--z-50);
}

.z-auto {
    z-index: var(--z-auto);
}

.z-modal {
    z-index: var(--z-modal);
}

.z-toast {
    z-index: var(--z-toast);
}

.z-tooltip {
    z-index: var(--z-tooltip);
}

.z-overlay {
    z-index: var(--z-overlay);
}

/* ============================================================
   10. UTILITIES
   ============================================================ */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.items-center {
    align-items: center;
}

.justify-center {
    justify-content: center;
}

.justify-between {
    justify-content: space-between;
}

.flex-1 {
    flex: 1;
}

.gap-2 {
    gap: var(--space-2);
}

.gap-4 {
    gap: var(--space-4);
}

.gap-6 {
    gap: var(--space-6);
}

.w-full {
    width: 100%;
}

.h-full {
    height: 100%;
}

.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.text-left {
    text-align: left;
}

.relative {
    position: relative;
}

.absolute {
    position: absolute;
}

.fixed {
    position: fixed;
}

.sticky {
    position: sticky;
}

.inset-0 {
    inset: 0;
}

.overflow-hidden {
    overflow: hidden;
}

.overflow-auto {
    overflow: auto;
}

.overflow-x-auto {
    overflow-x: auto;
}

.select-none {
    user-select: none;
}

.pointer-events-none {
    pointer-events: none;
}

.cursor-pointer {
    cursor: pointer;
}

.cursor-not-allowed {
    cursor: not-allowed;
}

/* Gaming gradient text */
.text-gradient-gaming {
    background: linear-gradient(135deg, var(--color-primary), var(--color-rgb-purple), var(--color-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* RGB border animation */
.rgb-border {
    position: relative;
    border: 2px solid transparent;
    background-clip: padding-box;
}

.rgb-border::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: inherit;
    padding: 2px;
    background: linear-gradient(90deg, var(--color-rgb-red), var(--color-rgb-cyan), var(--color-rgb-purple), var(--color-rgb-red));
    background-size: 300% 300%;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    animation: rgbBorder 3s ease-in-out infinite;
    z-index: -1;
}

@keyframes rgbBorder {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

/* ============================================================
   11. LAYOUT
   ============================================================ */
.container {
    width: min(92%, var(--container-max));
    margin-inline: auto;
    padding-inline: var(--container-padding);
}

main {
    flex: 1;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ============================================================
   12. HEADER - GAMING STYLE
   ============================================================ */
.main-header {
    position: relative;
    z-index: var(--z-50);
    width: 100%;
}

/* --- Top Bar --- */
.top-bar {
    background: var(--color-gaming-dark);
    border-bottom: 2px solid var(--color-gaming-border);
    padding-block: var(--space-3);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.8);
    position: relative;
    overflow: hidden;
}

.top-bar::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 23, 68, 0.05), transparent);
    animation: scanline 8s linear infinite;
}

@keyframes scanline {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

.top-bar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
    flex-wrap: wrap;
}

/* Logo - Gaming */
.logo a {
    font-size: var(--text-2xl);
    font-weight: var(--font-black);
    color: var(--color-white);
    letter-spacing: -0.03em;
    transition: var(--transition-base);
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.logo a .logo-gaming {
    color: var(--color-primary);
    text-shadow: 0 0 20px rgba(255, 23, 68, 0.5);
}

.logo a:hover {
    text-shadow: 0 0 30px rgba(255, 23, 68, 0.3);
}

.logo-img {
    width: 38px;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(0, 229, 255, 0.3));
}

/* --- Search - Gaming Style --- */
.search-box {
    display: flex;
    flex: 1;
    max-width: 500px;
    min-width: 200px;
    position: relative;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid var(--color-gaming-border);
    transition: var(--transition-base);
}

.search-box:focus-within {
    border-color: var(--color-secondary);
    box-shadow: 0 0 25px rgba(0, 229, 255, 0.15), inset 0 0 25px rgba(0, 229, 255, 0.05);
    background: rgba(255, 255, 255, 0.08);
}

.search-box input {
    flex: 1;
    padding: var(--space-3) var(--space-5);
    border: none;
    background: transparent;
    border-radius: var(--radius-full) 0 0 var(--radius-full);
    outline: none;
    font-size: var(--text-sm);
    color: var(--color-white);
    transition: var(--transition-fast);
}

.search-box input::placeholder {
    color: var(--color-text-muted);
    font-weight: var(--font-normal);
}

.search-box button {
    padding-inline: var(--space-5);
    border: none;
    background: linear-gradient(135deg, var(--color-primary), var(--color-rgb-purple));
    color: var(--color-white);
    border-radius: 50rem;
    cursor: pointer;
    font-weight: var(--font-bold);
    transition: var(--transition-base);
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-box button:hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(255, 23, 68, 0.3);
}

.search-box button:active {
    transform: scale(0.95);
}

/* --- Header Actions --- */
.header-actions {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.header-actions a {
    color: var(--color-text-secondary);
    font-weight: var(--font-medium);
    padding: var(--space-2) var(--space-3);
    border-radius: var(--radius-md);
    transition: var(--transition-base);
}

.header-actions a:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--color-secondary);
}

/* --- Cart Button - Gaming --- */
.cart-btn {
    background: linear-gradient(135deg, var(--color-primary), var(--color-rgb-purple));
    padding: var(--space-2) var(--space-5);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    gap: var(--space-2);
    box-shadow: var(--shadow-glow-red);
    transition: var(--transition-base);
    color: var(--color-white);
    font-weight: var(--font-bold);
}

.cart-btn:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 0 40px rgba(255, 23, 68, 0.4);
}

.cart-count {
    background: var(--color-white);
    color: var(--color-primary);
    font-size: var(--text-xs);
    font-weight: var(--font-extrabold);
    padding: 2px var(--space-2);
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-xs);
}

.username-header {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    color: var(--color-text-secondary);
    font-weight: var(--font-medium);
    padding-inline: var(--space-2);
    white-space: nowrap;
}

.username-header-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    white-space: nowrap;
}

.username-header::before {
    content: '🎮 ';
}

/* ============================================================
   13. NAVIGATION - GAMING
   ============================================================ */
.main-nav {
    background: var(--color-gaming-darker);
    border-bottom: 2px solid var(--color-gaming-border);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.main-nav ul {
    display: flex;
    gap: var(--space-6);
    padding: 0;
    flex-wrap: wrap;
}

.main-nav li {
    margin-inline-start: 0;
}

.main-nav a {
    color: var(--color-text-secondary);
    font-weight: var(--font-semibold);
    padding-block: var(--space-4);
    display: inline-block;
    position: relative;
    transition: var(--transition-base);
    text-transform: uppercase;
    font-size: var(--text-sm);
    letter-spacing: 0.5px;
}

.main-nav a::after {
    content: '';
    position: absolute;
    inset-inline-start: 0;
    bottom: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
    transform: scaleX(0);
    transform-origin: right;
    transition: var(--transition-base);
    border-radius: var(--radius-full);
    box-shadow: 0 0 20px rgba(255, 23, 68, 0.5);
}

.main-nav a:hover {
    color: var(--color-white);
    letter-spacing: 1px;
}

.main-nav a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* --- Category Navbar - Gaming --- */
.navbar-categories {
    width: min(85vw, var(--container-max));
    margin-inline: auto;
    background: var(--color-gaming-card);
    border-inline: 3px solid var(--color-gaming-border);
    border-bottom: 3px solid var(--color-gaming-border);
    border-radius: 0 0 var(--radius-2xl) var(--radius-2xl);
    padding-block: var(--space-2);
    padding-inline: var(--space-8);
    box-shadow: var(--shadow-md);
}

.categories-list {
    display: flex;
    justify-content: center;
    gap: var(--space-8);
    padding-block: var(--space-3);
    flex-wrap: wrap;
}

.categories-list li a {
    color: var(--color-text-secondary);
    font-weight: var(--font-semibold);
    font-size: var(--text-sm);
    padding-block: var(--space-1);
    position: relative;
    transition: var(--transition-base);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.categories-list li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    inset-inline-start: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--color-secondary), var(--color-rgb-purple));
    border-radius: var(--radius-full);
    transition: var(--transition-base);
}

.categories-list li a:hover {
    color: var(--color-white);
}

.categories-list li a:hover::after {
    width: 100%;
}

/* --- Mobile nav toggle (hidden on desktop; see the 900px block below) --- */
.nav-toggle {
    display: none;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding-block: var(--space-4);
    background: transparent;
    border: none;
    color: var(--color-text-primary);
    font-weight: var(--font-semibold);
    font-size: var(--text-sm);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
}

.nav-toggle-icon {
    position: relative;
    display: block;
    width: 22px;
    height: 2px;
    flex-shrink: 0;
    background: currentColor;
    border-radius: var(--radius-full);
    transition: background-color 0.2s ease;
}

.nav-toggle-icon::before,
.nav-toggle-icon::after {
    content: '';
    position: absolute;
    inset-inline-start: 0;
    width: 100%;
    height: 2px;
    background: currentColor;
    border-radius: var(--radius-full);
    transition: transform 0.3s var(--ease-out), top 0.3s var(--ease-out);
}

.nav-toggle-icon::before {
    top: -7px;
}

.nav-toggle-icon::after {
    top: 7px;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-icon {
    background: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-icon::before {
    top: 0;
    transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-icon::after {
    top: 0;
    transform: rotate(-45deg);
}

/* ============================================================
   14. HERO - GAMING
   ============================================================ */
.hero {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-8);
    background: linear-gradient(145deg, var(--color-gaming-darker), var(--color-neutral-800));
    color: var(--color-white);
    padding: var(--space-16);
    border-radius: var(--radius-3xl);
    margin-bottom: var(--space-16);
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
    border: 1px solid var(--color-gaming-border);
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 70% 30%, rgba(255, 23, 68, 0.1), transparent 60%),
        radial-gradient(circle at 30% 70%, rgba(0, 229, 255, 0.05), transparent 50%);
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.02'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
    opacity: 0.5;
}

.hero-content {
    direction: rtl;
}

.hero-content h1 {
    font-size: var(--text-5xl);
    margin-bottom: var(--space-4);
    font-weight: var(--font-black);
    line-height: 1.1;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary), var(--color-rgb-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-content span {
    color: var(--color-accent);
    text-shadow: 0 0 30px rgba(255, 214, 0, 0.3);
}

.hero-content p {
    color: var(--color-text-secondary);
    font-size: var(--text-lg);
    max-width: 500px;
}

.hero-image img {
    padding: 10px;
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-lg), 0 0 40px rgba(255, 23, 68, 0.2);
    transition: var(--transition-smooth);
    max-width: 320px;
    border: 2px solid var(--color-gaming-border);
}

.hero-image img:hover {
    transform: scale(1.03) rotate(-2deg);
    box-shadow: var(--shadow-xl), 0 0 60px rgba(0, 229, 255, 0.2);
}

/* ============================================================
   15. BUTTONS - GAMING
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-6);
    border: none;
    border-radius: var(--radius-full);
    font-weight: var(--font-bold);
    font-size: var(--text-sm);
    cursor: pointer;
    transition: var(--transition-base);
    text-decoration: none;
    background: linear-gradient(135deg, var(--color-primary), var(--color-rgb-purple));
    color: var(--color-white);
    box-shadow: var(--shadow-sm), var(--shadow-glow-red);
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: var(--shadow-md), 0 0 40px rgba(255, 23, 68, 0.4);
}

.btn:active {
    transform: scale(0.95);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

.btn-secondary {
    background: linear-gradient(135deg, var(--color-secondary), var(--color-rgb-cyan));
    box-shadow: var(--shadow-sm), var(--shadow-glow-cyan);
}

.btn-secondary:hover {
    box-shadow: var(--shadow-md), 0 0 40px rgba(0, 229, 255, 0.4);
}

.btn-accent {
    background: linear-gradient(135deg, var(--color-accent), var(--color-rgb-orange));
    color: var(--color-black);
    box-shadow: var(--shadow-sm);
}

.btn-accent:hover {
    box-shadow: var(--shadow-md), 0 0 40px rgba(255, 214, 0, 0.3);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--color-gaming-border);
    color: var(--color-text-secondary);
    box-shadow: none;
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--color-secondary);
    color: var(--color-white);
}

.btn-ghost {
    background: transparent;
    color: var(--color-text-secondary);
    box-shadow: none;
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--color-white);
}

.btn-hero {
    border-radius: 25px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-rgb-purple));
    padding: var(--space-4) var(--space-10);
    font-size: var(--text-base);
    box-shadow: 0 4px 30px rgba(255, 23, 68, 0.3);
}

.btn-hero:hover {
    box-shadow: 0 6px 40px rgba(255, 23, 68, 0.5);
}

.btn-banner {
    background: linear-gradient(135deg, var(--color-accent), var(--color-rgb-orange));
    color: var(--color-black);
    padding: var(--space-4) var(--space-10);
    border-radius: var(--radius-full);
    font-weight: var(--font-extrabold);
    box-shadow: 0 4px 30px rgba(255, 214, 0, 0.3);
}

.btn-banner:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 6px 40px rgba(255, 214, 0, 0.4);
}

.btn-save {
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    border: none;
    padding: var(--space-3) var(--space-8);
    border-radius: var(--radius-full);
    font-weight: var(--font-bold);
    color: var(--color-white);
    cursor: pointer;
    transition: var(--transition-base);
    box-shadow: 0 4px 25px rgba(255, 23, 68, 0.3);
}

.btn-save:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 35px rgba(255, 23, 68, 0.4);
}

.btn-add-to-cart {
    background: linear-gradient(135deg, var(--color-secondary), var(--color-rgb-cyan));
    color: var(--color-black);
    padding: var(--space-3) var(--space-6);
    border-radius: var(--radius-full);
    font-weight: var(--font-bold);
    display: inline-block;
    transition: var(--transition-base);
    box-shadow: 0 4px 20px rgba(0, 229, 255, 0.3);
}

.btn-add-to-cart:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 6px 30px rgba(0, 229, 255, 0.4);
}

.buy-btn {
    width: 100%;
    background: linear-gradient(135deg, var(--color-primary), var(--color-rgb-purple));
    color: var(--color-white);
    border: none;
    padding: var(--space-4);
    font-size: var(--text-lg);
    font-weight: var(--font-bold);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: var(--transition-base);
    box-shadow: 0 4px 30px rgba(255, 23, 68, 0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.buy-btn:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 8px 40px rgba(255, 23, 68, 0.4);
}

.buy-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

/* ============================================================
   16. FORMS - GAMING
   ============================================================ */
.auth-container,
.panel,
.form-area,
.seller-form-wrap {
    background: var(--color-gaming-card);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--color-gaming-border);
}

.auth-container {
    margin-top: 20px;
    justify-self: center;
    width: 420px;
    max-width: 94%;
    padding: var(--space-12) var(--space-10);
}

.auth-form {
    display: none;
}

.auth-form.active {
    display: block;
    animation: fadeIn 0.4s var(--ease-out);
}

.auth-form h2 {
    text-align: center;
    margin-bottom: var(--space-8);
    color: var(--color-text-primary);
}

.auth-btn {
    width: 100%;
    padding: var(--space-4);
    border: none;
    background: linear-gradient(135deg, var(--color-primary), var(--color-rgb-purple));
    color: var(--color-white);
    border-radius: var(--radius-lg);
    font-weight: var(--font-bold);
    font-size: var(--text-base);
    cursor: pointer;
    transition: var(--transition-base);
    box-shadow: 0 4px 25px rgba(255, 23, 68, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.auth-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 35px rgba(255, 23, 68, 0.4);
}

/* ============================================================
   17. INPUTS - GAMING
   ============================================================ */
input,
textarea,
select {
    width: 100%;
    padding: var(--space-3) var(--space-4);
    border: 2px solid var(--color-gaming-border);
    border-radius: var(--radius-md);
    background: var(--color-neutral-900);
    font-family: inherit;
    font-size: var(--text-sm);
    transition: var(--transition-base);
    color: var(--color-text-primary);
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--color-secondary);
    box-shadow: 0 0 25px rgba(0, 229, 255, 0.1), inset 0 0 25px rgba(0, 229, 255, 0.05);
    background: var(--color-black);
}

input::placeholder,
textarea::placeholder {
    color: var(--color-text-muted);
}

input:disabled,
textarea:disabled,
select:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

input.valid,
textarea.valid,
select.valid {
    border-color: var(--color-success);
    box-shadow: 0 0 25px rgba(0, 230, 118, 0.1);
}

input.invalid,
textarea.invalid,
select.invalid {
    border-color: var(--color-error) !important;
    box-shadow: 0 0 25px rgba(255, 23, 68, 0.15) !important;
}

.success-msg {
    color: var(--color-success);
    font-size: var(--text-sm);
    min-height: var(--space-5);
}

.error-msg {
    color: var(--color-error);
    font-size: var(--text-sm);
    min-height: var(--space-5);
}

/* ============================================================
   18. CARDS - GAMING
   ============================================================ */
.card {
    background: var(--color-gaming-card);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-gaming-border);
    padding: var(--space-6);
    transition: var(--transition-base);
}

.card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
    border-color: var(--color-secondary);
}

/* ============================================================
   19. PRODUCT CARDS - GAMING
   ============================================================ */
.product-card {
    background: var(--color-gaming-card);
    border: 1px solid var(--color-gaming-border);
    border-radius: var(--radius-2xl);
    padding: var(--space-5);
    text-align: center;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-xs);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg), 0 0 40px rgba(0, 229, 255, 0.05);
    border-color: var(--color-secondary);
}

.product-image {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: var(--space-4);
}

.product-image img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    transition: var(--transition-smooth);
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-image .gaming-badge {
    position: absolute;
    top: var(--space-2);
    inset-inline-end: var(--space-2);
    background: linear-gradient(135deg, var(--color-primary), var(--color-rgb-purple));
    color: var(--color-white);
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: var(--font-bold);
    box-shadow: var(--shadow-glow-red);
    text-transform: uppercase;
}

.product-name {
    font-weight: var(--font-bold);
    color: var(--color-text-primary);
    font-size: var(--text-base);
    margin-bottom: var(--space-1);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.product-price {
    color: var(--color-success);
    font-weight: var(--font-extrabold);
    font-size: var(--text-xl);
    margin: var(--space-2) 0;
    text-shadow: 0 0 20px rgba(0, 230, 118, 0.2);
}

.price {
    color: var(--color-success);
    font-weight: var(--font-extrabold);
    font-size: var(--text-xl);
}

/* ============================================================
   20. PRODUCT GRID
   ============================================================ */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: var(--space-6);
}

.product-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: var(--space-5);
    width: min(85vw, var(--container-max));
    margin-inline: auto;
}

.product-list .item {
    max-width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: 1px solid var(--color-gaming-border);
    background: var(--color-gaming-card);
    border-radius: var(--radius-xl);
    padding: var(--space-5);
    transition: var(--transition-smooth);
    min-height: 380px;
}

.product-list .item:hover {
    box-shadow: var(--shadow-lg), 0 0 40px rgba(0, 229, 255, 0.05);
    transform: translateY(-6px);
    border-color: var(--color-secondary);
}

.product-list .item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: var(--radius-md);
    margin-bottom: var(--space-3);
}

.product-list .item .product-name {
    font-size: var(--text-base);
    font-weight: var(--font-bold);
    text-transform: uppercase;
}

.product-list .item .product-price {
    font-size: var(--text-sm);
    color: var(--color-success);
    font-weight: var(--font-bold);
}

/* ============================================================
   21. CART
   ============================================================ */
.cart-btn {
    background: linear-gradient(135deg, var(--color-primary), var(--color-rgb-purple));
    padding: var(--space-2) var(--space-5);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    gap: var(--space-2);
    transition: var(--transition-base);
    box-shadow: var(--shadow-glow-red);
}

.cart-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 40px rgba(255, 23, 68, 0.4);
}

.invoice-card {
    justify-self: center;
    margin-top: var(--space-10);
    width: 100%;
    max-width: 550px;
    background: var(--color-gaming-card);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    border: 1px solid var(--color-gaming-border);
}

.invoice-header {
    background: linear-gradient(135deg, var(--color-gaming-darker), var(--color-neutral-800));
    color: var(--color-white);
    padding: var(--space-6);
    text-align: center;
    border-bottom: 2px solid var(--color-gaming-border);
}

.invoice-header h2 {
    color: var(--color-white);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.invoice-body {
    padding: var(--space-8);
}

.invoice-footer {
    background: var(--color-gaming-darker);
    padding: var(--space-4);
    text-align: center;
    font-size: var(--text-xs);
    color: var(--color-text-muted);
    border-top: 1px solid var(--color-gaming-border);
}

.items-table {
    width: 100%;
    border-collapse: collapse;
    display: table;
}

@media (max-width: 480px) {
    .items-table {
        table-layout: fixed;
    }

    .items-table th:first-child,
    .items-table td:first-child {
        width: 50%;
    }

    .items-table th:nth-child(2),
    .items-table td:nth-child(2) {
        width: 15%;
    }

    .items-table th:last-child,
    .items-table td:last-child {
        width: 35%;
    }

    .items-table td {
        word-break: break-word;
        font-size: var(--text-sm);
        padding: var(--space-2) var(--space-1);
    }

    .items-table th {
        font-size: var(--text-xs);
        padding: var(--space-2) var(--space-1);
    }
}

.items-table th {
    text-align: right;
    padding: var(--space-3) var(--space-2);
    border-bottom: 2px solid var(--color-gaming-border);
    font-weight: var(--font-bold);
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.items-table td {
    padding: var(--space-3) var(--space-2);
    border-bottom: 1px solid var(--color-gaming-border);
}

.items-table tr:last-child td {
    border-bottom: none;
}

.total-section {
    margin-top: var(--space-6);
    padding-top: var(--space-5);
    border-top: 2px dashed var(--color-gaming-border);
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: var(--space-4);
}

.total-label {
    font-weight: var(--font-bold);
    color: var(--color-text-secondary);
    text-transform: uppercase;
}

.total-amount {
    font-size: var(--text-2xl);
    font-weight: var(--font-extrabold);
    color: var(--color-primary);
    text-shadow: 0 0 20px rgba(255, 23, 68, 0.3);
}

/* ============================================================
   23. USER PANEL - GAMING
   ============================================================ */
.panel-container {
    display: flex;
    justify-content: center;
    margin-top: var(--space-16);
    padding-inline: var(--space-4);
}

.panel {
    background: var(--color-gaming-card);
    max-width: 450px;
    padding: var(--space-10);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--color-gaming-border);
}

.panel h2 {
    text-align: center;
    margin-bottom: var(--space-8);
}

.user-info {
    display: flex;
    align-items: center;
    gap: var(--space-5);
    background: var(--color-neutral-900);
    padding: var(--space-4);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-gaming-border);
}

.avatar {
    width: 85px;
    height: 85px;
    border-radius: var(--radius-full);
    border: 3px solid var(--color-primary);
    object-fit: cover;
    box-shadow: var(--shadow-sm), 0 0 20px rgba(255, 23, 68, 0.2);
}

.details p {
    margin: var(--space-1) 0;
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
}

.details strong {
    color: var(--color-secondary);
}

.actions {
    margin-top: var(--space-8);
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-3);
}

.logout {
    background: var(--color-neutral-700);
}

.logout:hover {
    background: var(--color-error);
    box-shadow: var(--shadow-glow-red);
}

.form-area {
    margin-top: 20px;
    max-width: 600px;
    padding: var(--space-10);
    margin-inline: auto;
}

.form-title {
    font-size: var(--text-2xl);
    font-weight: var(--font-bold);
    color: var(--color-secondary);
    border-right: 5px solid var(--color-primary);
    padding-right: var(--space-4);
    margin-bottom: var(--space-8);
    text-transform: uppercase;
}

.input-group {
    margin-bottom: var(--space-6);
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.input-group label {
    font-weight: var(--font-bold);
    color: var(--color-text-secondary);
    font-size: var(--text-sm);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.double-group {
    display: flex;
    gap: var(--space-5);
    flex-wrap: wrap;
}

.double-group .input-group {
    flex: 1;
    min-width: 200px;
}

/* ============================================================
   24. SELLER PANEL - GAMING
   ============================================================ */
.seller-main {
    padding-block: var(--space-10);
}

.seller-layout {
    display: grid;
    gap: var(--space-6);
}

.seller-card {
    background: var(--color-gaming-card);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--color-gaming-border);
}

.seller-form-wrap {
    padding: var(--space-8);
}

.seller-form-wrap h1 {
    font-size: var(--text-2xl);
    color: var(--color-text-primary);
    margin-bottom: var(--space-2);
    text-transform: uppercase;
}

.seller-form {
    display: grid;
    gap: var(--space-4);
}

.seller-form textarea,
.form-group textarea,
#productDescription {
    width: 100%;
    padding: var(--space-3) var(--space-4);
    border: 2px solid var(--color-gaming-border);
    border-radius: var(--radius-md);
    background: var(--color-neutral-900);
    color: var(--color-text-primary);
    font-size: var(--text-sm);
    transition: var(--transition-base);
    resize: none;
    /* Disable manual resize */
    min-height: 200px;
    overflow: hidden;
    /* Hide scrollbar */
    font-family: inherit;
    line-height: 1.6;
    box-sizing: border-box;
}

.seller-form textarea:focus,
.form-group textarea:focus,
#productDescription:focus {
    outline: none;
    border-color: var(--color-secondary);
    box-shadow: 0 0 25px rgba(0, 229, 255, 0.1);
    background: var(--color-black);
}

.seller-form textarea::placeholder,
.form-group textarea::placeholder,
#productDescription::placeholder {
    color: var(--color-text-muted);
}

.seller-form button {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 250px;
    justify-self: center;
    border: none;
    border-radius: var(--radius-lg);
    padding: var(--space-4);
    background: linear-gradient(135deg, var(--color-primary), var(--color-rgb-purple));
    color: var(--color-white);
    font-weight: var(--font-bold);
    cursor: pointer;
    box-shadow: 0 4px 25px rgba(255, 23, 68, 0.3);
    transition: var(--transition-base);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.seller-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 35px rgba(255, 23, 68, 0.4);
}

/* Seller panel: multi-image thumbnails (new selections preview + current
   gallery when editing a product), each with a small × remove button. */
.seller-image-thumbs {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
}

.seller-image-thumb {
    position: relative;
    width: 72px;
    height: 72px;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--color-gaming-border);
}

.seller-image-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.seller-image-thumb .remove-thumb-btn {
    position: absolute;
    top: 2px;
    inset-inline-end: 2px;
    width: 20px;
    height: 20px;
    line-height: 18px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.65);
    color: var(--color-white);
    font-size: 12px;
    cursor: pointer;
}

.seller-image-thumb .remove-thumb-btn:hover {
    background: var(--color-error, #e5484d);
}

/* Product detail page: gallery thumbnail strip below the main image. */
.gallery-thumbs {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    margin-top: var(--space-3);
}

.gallery-thumb {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 2px solid transparent;
    cursor: pointer;
    padding: 0;
    background: none;
    opacity: 0.7;
    transition: var(--transition-base);
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gallery-thumb:hover {
    opacity: 1;
}

.gallery-thumb.active {
    border-color: var(--color-secondary);
    opacity: 1;
}

/* ============================================================
   25. ADMIN PANEL - GAMING
   ============================================================ */
.admin-main {
    padding-block: var(--space-10);
}

.admin-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: var(--space-8);
}

.admin-sidebar {
    background: var(--color-gaming-card);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-md);
    padding: var(--space-6);
    position: sticky;
    top: var(--space-8);
    height: fit-content;
    border: 1px solid var(--color-gaming-border);
}

.admin-profile {
    border-bottom: 2px solid var(--color-gaming-border);
    padding-bottom: var(--space-5);
    margin-bottom: var(--space-5);
    text-align: center;
}

.admin-profile h2 {
    font-size: var(--text-xl);
    margin-bottom: var(--space-1);
    color: var(--color-text-primary);
}

.admin-profile p {
    color: var(--color-text-muted);
    font-size: var(--text-sm);
}

.admin-menu a {
    display: block;
    padding: var(--space-3) var(--space-4);
    border-radius: var(--radius-lg);
    background: var(--color-neutral-900);
    font-weight: var(--font-semibold);
    transition: var(--transition-base);
    color: var(--color-text-secondary);
    border: 1px solid transparent;
}

.admin-menu a:hover,
.admin-menu a.active {
    background: linear-gradient(135deg, var(--color-primary), var(--color-rgb-purple));
    color: var(--color-white);
    box-shadow: var(--shadow-glow-red);
    border-color: var(--color-primary);
}

.admin-content {
    display: grid;
    gap: var(--space-6);
}

.admin-header {
    background: linear-gradient(135deg, var(--color-gaming-darker), var(--color-neutral-800));
    color: var(--color-white);
    border-radius: var(--radius-2xl);
    padding: var(--space-8);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--color-gaming-border);
}

.admin-header h1 {
    color: var(--color-white);
}

.admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-5);
}

.admin-stat-card {
    background: var(--color-gaming-card);
    border-radius: var(--radius-xl);
    padding: var(--space-5);
    box-shadow: var(--shadow-sm);
    border-top: 4px solid var(--color-secondary);
    transition: var(--transition-base);
    border: 1px solid var(--color-gaming-border);
}

.admin-stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md), 0 0 30px rgba(0, 229, 255, 0.05);
}

.admin-stat-card:nth-child(1) {
    border-top-color: var(--color-secondary);
}

.admin-stat-card:nth-child(2) {
    border-top-color: var(--color-primary);
}

.admin-stat-card:nth-child(3) {
    border-top-color: var(--color-accent);
}

.admin-stat-card:nth-child(4) {
    border-top-color: var(--color-rgb-purple);
}

.admin-stat-title {
    color: var(--color-text-muted);
    font-size: var(--text-sm);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.admin-stat-value {
    font-size: var(--text-2xl);
    font-weight: var(--font-extrabold);
    color: var(--color-text-primary);
}

.admin-section {
    background: var(--color-gaming-card);
    border-radius: var(--radius-xl);
    padding: var(--space-6);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-gaming-border);
}

.admin-section h3 {
    margin-bottom: var(--space-4);
    color: var(--color-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.admin-list li {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-2);
    background: var(--color-neutral-900);
    border: 1px solid var(--color-gaming-border);
    border-radius: var(--radius-md);
    padding: var(--space-3) var(--space-4);
    transition: var(--transition-fast);
}

.admin-list li:hover {
    background: var(--color-neutral-800);
    border-color: var(--color-secondary);
}

/* ============================================================
   26. TABLES - GAMING
   ============================================================ */
.admin-table-wrap {
    overflow-x: auto;
    padding: var(--space-2);
    background: var(--color-gaming-card);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-gaming-border);
}

.admin-table {
    width: 100%;
    min-width: 650px;
    border-collapse: separate;
    border-spacing: 0 var(--space-2);
}

.admin-table th,
.admin-table td {
    text-align: right;
    padding: var(--space-4);
}

.admin-table th {
    background: var(--color-neutral-900);
    font-weight: var(--font-bold);
    border-bottom: 2px solid var(--color-gaming-border);
    color: var(--color-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: var(--text-sm);
}

.admin-table td {
    background: var(--color-gaming-card);
    border-bottom: 1px solid var(--color-gaming-border);
}

.admin-user-btn,
.ip-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    white-space: nowrap;
    border: none;
    border-radius: var(--radius-sm);
    padding: var(--space-2) var(--space-4);
    font-weight: var(--font-bold);
    font-size: var(--text-xs);
    cursor: pointer;
    transition: var(--transition-base);
    text-transform: uppercase;
}

.promote-btn {
    background: rgba(0, 230, 118, 0.2);
    color: var(--color-success);
}

.promote-btn:hover {
    background: var(--color-success);
    color: var(--color-black);
    box-shadow: 0 0 20px rgba(0, 230, 118, 0.3);
}

.demote-btn {
    background: rgba(255, 23, 68, 0.2);
    color: var(--color-error);
}

.demote-btn:hover {
    background: var(--color-error);
    color: var(--color-white);
    box-shadow: 0 0 20px rgba(255, 23, 68, 0.3);
}

/* .ip-action-btn already sets white-space: nowrap, but this button lives
   in the narrowest column of the orders table (main/seller.php), so it
   gets its own belt-and-braces rule to guarantee it never breaks onto a
   second line no matter how tight the column gets. */
.order-slip-btn {
    white-space: nowrap;
    flex-shrink: 0;
    width: max-content;
}

/* --- Admin tables become stacked cards below 768px --------------------
   A horizontally-scrolling table is easy to miss on a phone (no visible
   scrollbar, no hint more columns exist off-screen), so instead every
   row becomes its own card and every cell stacks with its column header
   as a label in front of it. The label text is filled in automatically
   by main.js (main.initResponsiveTables), reading it straight from each
   table's own <thead> -- so this applies to every .admin-table already
   in the codebase (orders, users, banned IPs, tickets, logs, etc.)
   without editing each one's markup. */
@media (max-width: 768px) {
    .admin-table-wrap {
        overflow-x: visible;
    }

    .admin-table-scroll {
        overflow-x: visible;
    }

    .admin-table {
        min-width: 0;
        width: 100%;
        border-spacing: 0 var(--space-3);
    }

    .admin-table thead {
        display: none;
    }

    .admin-table tr {
        display: block;
        background: var(--color-neutral-900);
        border: 1px solid var(--color-gaming-border);
        border-radius: var(--radius-md);
        padding: 0 var(--space-4);
    }

    .admin-table td {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: var(--space-4);
        text-align: left;
        padding: var(--space-3) 0;
        background: transparent;
        border-bottom: 1px solid var(--color-gaming-border);
    }

    .admin-table td:last-child {
        border-bottom: none;
    }

    .admin-table td::before {
        content: attr(data-label);
        flex-shrink: 0;
        font-weight: var(--font-bold);
        color: var(--color-secondary);
        font-size: var(--text-xs);
        text-transform: uppercase;
        letter-spacing: 0.5px;
        padding-top: 2px;
    }

    /* The "no rows yet" empty-state cell (colspan) isn't a label/value
       pair, so it stays a plain centered block. */
    .admin-table td[colspan] {
        display: block;
        text-align: center;
    }

    .admin-table td[colspan]::before {
        content: none;
    }
}

/* ============================================================
   26b. IP MANAGEMENT - GAMING
   ============================================================ */
.admin-table-title {
    padding: var(--space-4) var(--space-4) 0;
    color: var(--color-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.avatar-edit {
    display: flex;
    align-items: center;
    gap: var(--space-5);
    margin-bottom: var(--space-8);
    flex-wrap: wrap;
}

.avatar-preview {
    width: 84px;
    height: 84px;
    border-radius: var(--radius-full);
    object-fit: cover;
    border: 2px solid var(--color-secondary);
    flex-shrink: 0;
}

.avatar-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-secondary);
    color: var(--color-black, #000);
    font-size: var(--text-2xl);
    font-weight: var(--font-bold);
    text-transform: uppercase;
}

.avatar-edit-actions {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.avatar-header-thumb {
    width: 26px;
    height: 26px;
    border-radius: var(--radius-full);
    object-fit: cover;
    vertical-align: middle;
    margin-inline-end: var(--space-1);
    border: 1px solid var(--color-gaming-border);
}

/* Base look for the small pill-shaped status/date indicators used across
   the admin panel (orders, users, contact messages). The color itself
   comes from a .badge-* modifier class alongside this one. */
.admin-badge {
    display: inline-flex;
    align-items: center;
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: var(--font-bold);
    white-space: nowrap;
}

.admin-table-scroll {
    max-height: 480px;
    overflow-y: auto;
}

.text-muted {
    padding-top: 10px;
    color: var(--color-text-muted);
}

.order-status-select {
    width: auto;
    border: none;
    cursor: pointer;
    transition: var(--transition-base);
}

.order-status-select:focus {
    outline: 2px solid var(--color-secondary);
    outline-offset: 2px;
}

/* Each <option> carries the same .badge-* class as its status (see
   main/seller.php) so the open dropdown list shows the color the row
   will turn into, instead of the browser's plain dark default. */
.order-status-select option {
    background: var(--color-neutral-900);
    color: var(--color-text-primary, #fff);
}

.order-status-select option.badge-progress {
    background: var(--color-warning);
    color: var(--color-black);
}

.order-status-select option.badge-secondary {
    background: var(--color-secondary);
    color: var(--color-black);
}

.order-status-select option.badge-done {
    background: var(--color-success);
    color: var(--color-black);
}

.order-status-select option.badge-canceled {
    background: var(--color-error);
    color: var(--color-white);
}

.order-status-select option:disabled {
    opacity: 0.45;
}

.ip-chip-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    min-width: 220px;
}

.ip-chip {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    background: var(--color-neutral-900);
    border: 1px solid var(--color-gaming-border);
    border-radius: var(--radius-sm);
    padding: var(--space-1) var(--space-3);
    font-size: var(--text-xs);
    color: var(--color-text-secondary);
    direction: ltr;
}

.ip-chip-muted {
    opacity: 0.6;
    font-style: italic;
}

.ip-chip-danger {
    border-color: var(--color-error);
    color: var(--color-error);
    background: rgba(255, 23, 68, 0.12);
    font-weight: var(--font-bold);
}

.ip-ban-btn {
    border: none;
    border-radius: var(--radius-sm);
    padding: 2px var(--space-2);
    font-size: 10px;
    font-weight: var(--font-bold);
    cursor: pointer;
    background: var(--color-error);
    color: var(--color-white);
    transition: var(--transition-base);
    text-transform: uppercase;
}

.ip-ban-btn:hover {
    box-shadow: 0 0 12px rgba(255, 23, 68, 0.4);
}

.ip-banned-tag {
    font-style: normal;
    font-size: 10px;
    font-weight: var(--font-bold);
    color: var(--color-white);
    background: var(--color-error);
    padding: 2px var(--space-2);
    border-radius: var(--radius-sm);
}

.ban-ip-form {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
    padding: var(--space-4);
    align-items: center;
}

.ban-ip-form input {
    flex: 1;
    min-width: 200px;
    padding: var(--space-2) var(--space-3);
    border-radius: var(--radius-sm);
    border: 1px solid var(--color-gaming-border);
    background: var(--color-neutral-900);
    color: var(--color-text-primary);
    direction: ltr;
}

.role-select {
    width: auto;
    padding: var(--space-1) var(--space-2);
    border-radius: var(--radius-sm);
    border: 1px solid var(--color-gaming-border);
    background: var(--color-neutral-900);
    color: var(--color-text-primary);
    cursor: pointer;
}

.role-owner-label {
    display: inline-flex;
    align-items: center;
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius-full);
    font-weight: var(--font-bold);
    font-size: var(--text-xs);
    color: var(--color-secondary);
    background: rgba(0, 229, 255, 0.12);
    border: 1px solid rgba(0, 229, 255, 0.35);
}

.role-owner-locked {
    font-size: var(--text-xs);
    color: var(--color-text-muted);
    font-style: italic;
}

/* ============================================================
   27. CART QUANTITY STEPPER
   ============================================================ */
.cart-stepper {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-3);
    background: var(--color-neutral-900);
    border: 1px solid var(--color-secondary);
    border-radius: var(--radius-md);
    padding: var(--space-2) var(--space-3);
}

.cart-stepper .cart-increment,
.cart-stepper .cart-decrement {
    width: 26px;
    height: 26px;
    border: none;
    border-radius: var(--radius-sm);
    background: var(--color-secondary);
    color: #000;
    font-weight: var(--font-bold);
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-base);
}

.cart-stepper .cart-increment:hover,
.cart-stepper .cart-decrement:hover {
    filter: brightness(1.15);
    transform: scale(1.08);
}

.cart-stepper .cart-qty {
    min-width: 20px;
    text-align: center;
    font-weight: var(--font-bold);
    color: var(--color-text-primary);
}

/* ============================================================
   27. FOOTER - GAMING
   ============================================================ */
.main-footer {
    margin-top: var(--space-20);
}

.footer-content {
    background: var(--color-gaming-darker);
    padding-block: var(--space-12);
    color: var(--color-white);
    border-top: 3px solid var(--color-gaming-border);
    position: relative;
    overflow: hidden;
}

.footer-content::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(255, 23, 68, 0.02), rgba(0, 229, 255, 0.02), rgba(213, 0, 249, 0.02));
    pointer-events: none;
}

.footer-grid {
    display: flex;
    justify-content: space-between;
    gap: var(--space-10);
    flex-wrap: wrap;
}

.footer-col {
    flex: 1;
    min-width: 200px;
}

.footer-col h3,
.footer-col h4 {
    color: var(--color-white);
    margin-bottom: var(--space-4);
    padding-bottom: var(--space-2);
    position: relative;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-col h3::after,
.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    inset-inline-start: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
    border-radius: var(--radius-full);
}

.footer-col p {
    color: var(--color-text-secondary);
    line-height: 1.7;
}

.footer-col ul li {
    margin-bottom: var(--space-2);
}

.footer-col a {
    color: var(--color-text-secondary);
    transition: var(--transition-base);
}

.footer-col a:hover {
    color: var(--color-secondary);
    transform: translateX(-4px);
}

.footer-bottom {
    background: var(--color-black);
    text-align: center;
    padding: var(--space-4);
    color: var(--color-text-muted);
    font-size: var(--text-sm);
    border-top: 1px solid var(--color-gaming-border);
}

/* ============================================================
   28. TOAST - GAMING
   ============================================================ */
.toast {
    position: fixed;
    top: var(--space-10);
    inset-inline-end: var(--space-10);
    background: var(--color-gaming-card);
    border-radius: var(--radius-lg);
    min-width: 280px;
    padding: var(--space-4) var(--space-6);
    color: var(--color-white);
    box-shadow: var(--shadow-lg), 0 0 40px rgba(0, 0, 0, 0.5);
    z-index: var(--z-toast);
    transform: translateY(-150%) scale(0.9);
    opacity: 0;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    gap: var(--space-3);
    font-weight: var(--font-semibold);
    border: 1px solid var(--color-gaming-border);
}

.toast.active {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.toast.invalid {
    border-color: var(--color-error);
    box-shadow: var(--shadow-glow-red);
}

.toast.valid {
    border-color: var(--color-success);
    box-shadow: 0 0 30px rgba(0, 230, 118, 0.15);
}

/* ============================================================
   29. MODAL - GAMING
   ============================================================ */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: var(--z-modal);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-smooth);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: var(--color-gaming-card);
    border-radius: var(--radius-2xl);
    padding: var(--space-8);
    max-width: 500px;
    width: 94%;
    box-shadow: var(--shadow-xl), 0 0 60px rgba(0, 0, 0, 0.5);
    transform: scale(0.95);
    transition: var(--transition-smooth);
    border: 1px solid var(--color-gaming-border);
}

.modal-overlay.active .modal {
    transform: scale(1);
}

/* ============================================================
   30. LOADING - GAMING
   ============================================================ */
.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--color-gaming-border);
    border-top-color: var(--color-primary);
    border-right-color: var(--color-secondary);
    border-radius: var(--radius-full);
    animation: spin 0.8s linear infinite;
    box-shadow: 0 0 30px rgba(255, 23, 68, 0.2);
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ============================================================
   31. SKELETON - GAMING
   ============================================================ */
.skeleton {
    background: linear-gradient(90deg, var(--color-neutral-800), var(--color-neutral-700), var(--color-neutral-800));
    background-size: 200% 100%;
    border-radius: var(--radius-md);
    animation: shimmer 1.5s ease-in-out infinite;
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

/* ============================================================
   32. TOOLTIP - GAMING
   ============================================================ */
.tooltip {
    position: relative;
}

.tooltip::before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + var(--space-2));
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-gaming-card);
    color: var(--color-white);
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius-sm);
    font-size: var(--text-xs);
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-fast);
    border: 1px solid var(--color-gaming-border);
}

.tooltip:hover::before {
    opacity: 1;
    visibility: visible;
}

/* ============================================================
   33. DROPDOWN - GAMING
   ============================================================ */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    inset-inline-start: 0;
    background: var(--color-gaming-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--color-gaming-border);
    padding: var(--space-2);
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: var(--transition-base);
}

.dropdown:hover .dropdown-menu,
.dropdown-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* ============================================================
   34. BADGE - GAMING
   ============================================================ */
.badge {
    display: inline-flex;
    align-items: center;
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: var(--font-bold);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.badge-done {
    background: var(--color-success);
    color: var(--color-black);
}

.badge-progress {
    background: var(--color-warning);
    color: var(--color-black);
}

.badge-canceled {
    background: var(--color-error);
    color: var(--color-white);
}

.badge-primary {
    background: linear-gradient(135deg, var(--color-primary), var(--color-rgb-purple));
    color: var(--color-white);
}

.badge-secondary {
    background: var(--color-secondary);
    color: var(--color-black);
}

.badge-gaming {
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary), var(--color-rgb-purple));
    background-size: 300% 100%;
    animation: rgbBg 3s ease-in-out infinite;
    color: var(--color-white);
}

@keyframes rgbBg {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

/* ============================================================
   35. ANIMATIONS - GAMING
   ============================================================ */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(var(--space-4));
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(var(--space-8));
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(var(--space-8));
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes glowPulse {

    0%,
    100% {
        box-shadow: 0 0 20px rgba(255, 23, 68, 0.2);
    }

    50% {
        box-shadow: 0 0 40px rgba(255, 23, 68, 0.5);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.animate-fadeIn {
    animation: fadeIn 0.5s var(--ease-out);
}

.animate-fadeInUp {
    animation: fadeInUp 0.6s var(--ease-out);
}

.animate-scaleIn {
    animation: scaleIn 0.4s var(--ease-out);
}

.animate-glow {
    animation: glowPulse 2s ease-in-out infinite;
}

.animate-float {
    animation: float 4s ease-in-out infinite;
}

/* Gaming hover effects */
.glass-hover {
    transition: var(--transition-base);
}

.glass-hover:hover {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.hover-3d {
    transition: var(--transition-smooth);
    transform-style: preserve-3d;
    perspective: 800px;
}

.hover-3d:hover {
    transform: rotateX(4deg) rotateY(4deg) scale(1.02);
}

.shine {
    position: relative;
    overflow: hidden;
}

.shine::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, 0.1) 50%, transparent 60%);
    transform: translateX(-100%);
    transition: transform 0.6s;
}

.shine:hover::before {
    transform: translateX(100%);
}

/* ============================================================
   36. DARK THEME - NATIVE GAMING
   ============================================================ */
html[data-theme='dark'] {
    --color-bg-base: var(--color-black);
    --color-bg-surface: var(--color-gaming-card);
    --color-bg-surface-alt: var(--color-neutral-800);
    --color-text-primary: var(--color-neutral-50);
    --color-text-secondary: var(--color-neutral-300);
    --color-text-muted: var(--color-neutral-500);
    --color-border-light: var(--color-gaming-border);
    --color-border-base: var(--color-neutral-700);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.6);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.7);
    --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.8);
}

/* ============================================================
   37. RESPONSIVE - GAMING
   ============================================================ */
/* 480px */
@media (max-width: 480px) {
    :root {
        --container-padding: 1rem;
    }

    .hero {
        padding: var(--space-8);
        flex-direction: column;
        text-align: center;
    }

    .hero-content h1 {
        font-size: var(--text-3xl);
    }

    .hero-image img {
        max-width: 200px;
        margin: 0;
    }

    .auth-container {
        padding: var(--space-6) var(--space-4);
    }

    .panel {
        padding: var(--space-6);
    }

    .form-area {
        padding: var(--space-6);
    }

    .invoice-body {
        padding: var(--space-4);
    }

    .top-bar .container {
        flex-direction: column;
        gap: var(--space-4);
    }

    .search-box {
        width: 100%;
        max-width: 100%;
    }

    .header-actions {
        width: 100%;
        justify-content: center;
    }

    .products-grid {
        grid-template-columns: 1fr 1fr;
    }

    .product-list {
        grid-template-columns: 1fr 1fr;
    }

    .categories-list {
        gap: var(--space-3);
    }

    .product-detail-actions .add-shop-cart,
    .product-detail-actions .btn-outline {
        flex: 1 1 100%;
        min-width: 100%;
    }
}

/* 768px */
@media (max-width: 768px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding: var(--space-10);
    }

    .hero-content h1 {
        font-size: var(--text-4xl);
    }

    .hero-image img {
        max-width: 240px;
        margin: 0;
    }

    .admin-layout {
        grid-template-columns: 1fr;
    }

    .admin-sidebar {
        position: static;
        padding: var(--space-4);
    }

    .admin-profile {
        padding-bottom: var(--space-3);
        margin-bottom: var(--space-3);
    }

    .admin-profile p {
        display: none;
    }

    .admin-menu {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: var(--space-2);
        -webkit-overflow-scrolling: touch;
    }

    .admin-menu li {
        flex-shrink: 0;
    }

    .admin-menu a {
        white-space: nowrap;
        padding: var(--space-2) var(--space-3);
        font-size: var(--text-sm);
    }

    .footer-grid {
        flex-direction: column;
        gap: var(--space-6);
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }

    .product-list {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }

    .navbar-categories {
        padding-inline: var(--space-4);
        width: 95vw;
    }

    .categories-list {
        gap: var(--space-4);
    }

    .features {
        flex-direction: column;
        align-items: center;
    }
}

/* 1024px */
@media (max-width: 1024px) {
    .top-bar .container {
        flex-wrap: wrap;
        justify-content: center;
    }

    .search-box {
        flex: 1 1 100%;
        max-width: 100%;
    }

    .footer-grid {
        gap: var(--space-8);
    }

    .hero {
        padding: var(--space-12);
    }
}

/* 1280px */
@media (min-width: 1280px) {
    .container {
        padding-inline: 2rem;
    }
}

/* 1536px */
@media (min-width: 1536px) {
    :root {
        --container-max: 1440px;
    }
}

/* ============================================================
   37b. MAIN NAV — COLLAPSIBLE MOBILE/TABLET MENU (<=900px)
   Above this width the nav stays the normal horizontal bar; below
   it the toggle button (hidden until here) takes over and the
   link list becomes a collapsible panel. The nav can carry up to
   ~11 items once the guest links and role-specific panel links
   are all present, which never reads well wrapped inline on a
   phone or a portrait tablet.
   ============================================================ */
@media (max-width: 900px) {
    .nav-toggle {
        display: flex;
    }

    .main-nav ul {
        display: none;
        flex-direction: column;
        justify-content: flex-start;
        gap: 0;
        width: 100%;
    }

    .main-nav ul.is-open {
        display: flex;
        padding-bottom: var(--space-3);
    }

    /* The "|" separators only make sense in a single-line bar; in the
       stacked list a border under each row does that job instead. */
    .main-nav li:nth-child(even) {
        display: none;
    }

    .main-nav li {
        width: 100%;
        border-bottom: 1px solid var(--color-gaming-border);
    }

    .main-nav li:last-child {
        border-bottom: none;
    }

    .main-nav a {
        width: 100%;
        padding-inline: var(--space-2);
    }
}

/* ============================================================
   38. PRINT STYLES
   ============================================================ */
@media print {

    *,
    *::before,
    *::after {
        background: transparent !important;
        color: #000 !important;
        box-shadow: none !important;
        text-shadow: none !important;
    }

    .main-header,
    .main-nav,
    .main-footer,
    .navbar-categories,
    .search-box,
    .header-actions {
        display: none !important;
    }

    body {
        font-size: 12pt;
        line-height: 1.4;
        background: #fff !important;
        color: #000 !important;
    }

    .invoice-card {
        box-shadow: none !important;
        border: 1px solid #ccc !important;
    }

    .buy-btn {
        display: none !important;
    }
}

/* ============================================================
   EXTRA: GAMING COMPONENTS
   ============================================================ */
.pay {
    direction: rtl;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-block: var(--space-10);
    padding-inline: var(--space-4);
}

.final-btn {
    margin-top: var(--space-5);
    max-width: 300px;
    width: 100%;
}

.features {
    display: flex;
    justify-content: space-between;
    gap: var(--space-6);
    flex-wrap: wrap;
    margin-block: var(--space-20);
}

.feature-item {
    background: var(--color-gaming-card);
    padding: var(--space-8) var(--space-6);
    border-radius: var(--radius-2xl);
    text-align: center;
    flex: 1;
    min-width: 220px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-gaming-border);
    transition: var(--transition-base);
}

.feature-item:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: var(--color-secondary);
}

.feature-icon {
    font-size: 3.5rem;
    display: block;
    margin-bottom: var(--space-4);
    filter: drop-shadow(0 0 20px rgba(0, 229, 255, 0.2));
}

.banner {
    background: linear-gradient(rgba(10, 10, 10, 0.9), rgba(10, 10, 10, 0.95)),
        url('../images/banner-bg.jpg') center/cover no-repeat;
    background-color: var(--color-gaming-darker);
    color: var(--color-white);
    text-align: center;
    padding: var(--space-16) var(--space-8);
    border-radius: var(--radius-3xl);
    margin-block: var(--space-16);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--color-gaming-border);
}

.section-header {
    text-align: center;
    margin-block: var(--space-12) var(--space-8);
}

.section-header h2 {
    font-size: var(--text-3xl);
    font-weight: var(--font-extrabold);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-header h2 span {
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary), var(--color-rgb-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.notfound-txt {
    text-align: center;
    margin-block: var(--space-20);
}

.notfound-btn {
    display: inline-block;
    padding: var(--space-3) var(--space-6);
    background: linear-gradient(135deg, var(--color-primary), var(--color-rgb-purple));
    color: var(--color-white);
    border-radius: var(--radius-lg);
    font-weight: var(--font-bold);
    transition: var(--transition-base);
}

/* Focus visible for accessibility */
:focus-visible {
    outline: 3px solid var(--color-secondary);
    outline-offset: 2px;
}

/* Selection */
::selection {
    background: var(--color-primary);
    color: var(--color-white);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Gaming scrollbar */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--color-black);
    border-left: 1px solid var(--color-gaming-border);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--color-primary), var(--color-rgb-purple));
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--color-secondary), var(--color-rgb-cyan));
}

/* RGB accent line */
.rgb-accent-line {
    height: 3px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary), var(--color-rgb-purple), var(--color-primary));
    background-size: 300% 100%;
    animation: rgbSlide 4s ease-in-out infinite;
}

@keyframes rgbSlide {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

/* ============================================================
   39. PRODUCT DETAIL PAGE - GAMING
   ============================================================ */
.breadcrumb {
    width: min(85vw, var(--container-max));
    margin-inline: auto;
    margin-block: var(--space-6) var(--space-2);
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    flex-wrap: wrap;
}

.breadcrumb a {
    color: var(--color-text-secondary);
    transition: var(--transition-fast);
}

.breadcrumb a:hover {
    color: var(--color-secondary);
}

.breadcrumb-current {
    color: var(--color-text-primary);
    font-weight: var(--font-semibold);
}

.product-not-found {
    width: min(85vw, var(--container-max));
    margin-inline: auto;
    text-align: center;
    padding: var(--space-20) var(--space-6);
    direction: rtl;
}

.product-not-found h2 {
    margin-bottom: var(--space-4);
}

.product-not-found p {
    margin-bottom: var(--space-8);
}

.product-detail {
    width: min(85vw, var(--container-max));
    margin-inline: auto;
    display: grid;
    grid-template-columns: minmax(280px, 460px) 1fr;
    gap: var(--space-10);
    background: var(--color-gaming-card);
    border: 1px solid var(--color-gaming-border);
    border-radius: var(--radius-2xl);
    padding: var(--space-8);
    box-shadow: var(--shadow-md);
    margin-bottom: var(--space-16);
}

.product-detail-gallery {
    position: relative;
}

.gallery-main {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: 2px solid var(--color-gaming-border);
    cursor: zoom-in;
    background: var(--color-neutral-900);
    transition: var(--transition-base);
}

.gallery-main:hover {
    border-color: var(--color-secondary);
    box-shadow: var(--shadow-glow-cyan);
}

.gallery-main img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.gallery-main:hover img {
    transform: scale(1.04);
}

.gallery-zoom-hint {
    position: absolute;
    inset-inline: 0;
    bottom: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.75), transparent);
    color: var(--color-white);
    text-align: center;
    padding: var(--space-3);
    font-size: var(--text-xs);
    font-weight: var(--font-semibold);
    opacity: 0;
    transition: var(--transition-base);
}

.gallery-main:hover .gallery-zoom-hint,
.gallery-main:focus .gallery-zoom-hint {
    opacity: 1;
}

.gallery-flag {
    position: absolute;
    top: var(--space-4);
    inset-inline-start: var(--space-4);
}

.product-detail-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-3);
}

.product-category-badge.badge-outline {
    background: rgba(0, 229, 255, 0.08);
    border: 1px solid var(--color-secondary);
    color: var(--color-secondary);
}

.product-detail-title {
    font-size: var(--text-3xl);
    margin: var(--space-1) 0;
}

.product-detail-price {
    color: var(--color-success);
    font-size: var(--text-3xl);
    font-weight: var(--font-extrabold);
    text-shadow: 0 0 25px rgba(0, 230, 118, 0.25);
    display: flex;
    align-items: baseline;
    gap: var(--space-2);
}

.product-detail-price span {
    font-size: var(--text-base);
    color: var(--color-text-secondary);
    font-weight: var(--font-semibold);
}

.stock-badge {
    margin-bottom: var(--space-2);
}

.product-detail-description {
    width: 100%;
    padding-top: var(--space-3);
    border-top: 1px solid var(--color-gaming-border);
}

.product-detail-description h3 {
    font-size: var(--text-base);
    color: var(--color-secondary);
    margin-bottom: var(--space-2);
    text-transform: uppercase;
}

.product-detail-description p {
    color: var(--color-text-secondary);
    line-height: 1.9;
}

.product-detail-meta {
    width: 100%;
    background: var(--color-neutral-900);
    border: 1px solid var(--color-gaming-border);
    border-radius: var(--radius-lg);
    padding: var(--space-4);
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.meta-row {
    display: flex;
    justify-content: space-between;
    font-size: var(--text-sm);
}

.meta-label {
    color: var(--color-text-muted);
}

.meta-value {
    color: var(--color-text-primary);
    font-weight: var(--font-semibold);
}

.product-detail-actions {
    width: 100%;
    display: flex;
    gap: var(--space-4);
    margin-top: var(--space-4);
    flex-wrap: wrap;
}

.product-detail-actions .add-shop-cart {
    flex: 2;
    min-width: 220px;
}

.product-detail-actions .btn-outline {
    flex: 1;
    min-width: 160px;
}

.item-link {
    display: block;
    color: inherit;
}

.item-link:hover .product-name {
    color: var(--color-secondary);
}

/* --- Lightbox --- */
.lightbox-content {
    position: relative;
    max-width: min(92vw, 900px);
    max-height: 90vh;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 90vh;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-2xl);
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: -18px;
    inset-inline-end: -18px;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    border: 2px solid var(--color-gaming-border);
    background: var(--color-gaming-card);
    color: var(--color-white);
    font-size: var(--text-lg);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-base);
}

.lightbox-close:hover {
    background: var(--color-error);
    border-color: var(--color-error);
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .product-detail {
        grid-template-columns: 1fr;
        padding: var(--space-5);
    }

    .gallery-main img {
        height: 280px;
    }

    .product-detail-title {
        font-size: var(--text-2xl);
    }

    .product-detail-price {
        font-size: var(--text-2xl);
    }
}


/* ============================================================
   18. HOMEPAGE LEADERBOARD TEASER — eye-catching, guest-facing
   ============================================================ */
.lb-teaser {
    position: relative;
    margin: var(--space-10) auto;
    padding: var(--space-8) var(--space-4);
    max-width: 1100px;
    background: linear-gradient(135deg, rgba(255, 23, 68, 0.08), rgba(0, 229, 255, 0.08));
    border: 1px solid var(--color-secondary);
    border-radius: var(--radius-xl, 20px);
    box-shadow: 0 0 50px rgba(0, 229, 255, 0.12);
    overflow: hidden;
}

.lb-teaser::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: inherit;
    padding: 2px;
    background: linear-gradient(120deg, var(--color-primary), var(--color-secondary), var(--color-accent), var(--color-primary));
    background-size: 300% 300%;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    animation: lbBorderFlow 6s linear infinite;
    pointer-events: none;
}

@keyframes lbBorderFlow {
    0% {
        background-position: 0% 50%;
    }

    100% {
        background-position: 300% 50%;
    }
}

.lb-teaser-heading {
    text-align: center;
    margin-bottom: var(--space-6);
    position: relative;
}

.lb-teaser-heading h2 {
    font-size: var(--text-2xl);
    color: var(--color-text-primary);
}

.lb-teaser-heading p {
    color: var(--color-text-secondary);
    font-size: var(--text-sm);
}

.lb-podium {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: var(--space-4);
    width: min(94vw, 700px);
    margin: 0 auto;
    position: relative;
    flex-wrap: wrap;
}

.lb-podium-card {
    flex: 1;
    max-width: 200px;
    min-width: 140px;
    text-align: center;
    background: rgba(20, 20, 20, 0.6);
    backdrop-filter: blur(6px);
    border: 1px solid var(--color-gaming-border);
    border-radius: var(--radius-xl, 20px);
    padding: var(--space-5) var(--space-3);
    position: relative;
    transition: var(--transition-base);
}

.lb-podium-card:hover {
    transform: translateY(-6px);
}

.lb-podium-card.rank-1 {
    order: 2;
    padding-top: var(--space-8);
    border-color: #ffd600;
    box-shadow: 0 0 40px rgba(255, 214, 0, 0.25);
    transform: scale(1.08);
    z-index: 2;
}

.lb-podium-card.rank-1:hover {
    transform: scale(1.08) translateY(-6px);
}

.lb-podium-card.rank-2 {
    order: 1;
    border-color: #c0c0c0;
    box-shadow: 0 0 25px rgba(192, 192, 192, 0.15);
}

.lb-podium-card.rank-3 {
    order: 3;
    border-color: #cd7f32;
    box-shadow: 0 0 25px rgba(205, 127, 50, 0.15);
}

.lb-crown {
    position: absolute;
    top: -22px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 28px;
    filter: drop-shadow(0 0 10px rgba(255, 214, 0, 0.6));
}

.lb-rank-medal {
    font-size: 20px;
    font-weight: 900;
    margin-bottom: var(--space-2);
}

.lb-podium-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--color-secondary);
    margin-bottom: var(--space-2);
}

.rank-1 .lb-podium-avatar {
    width: 84px;
    height: 84px;
    border-color: #ffd600;
}

.lb-podium-name {
    font-weight: var(--font-bold);
    color: var(--color-text-primary);
    font-size: var(--text-sm);
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lb-podium-xp {
    color: var(--color-secondary);
    font-size: var(--text-xs);
    font-weight: var(--font-bold);
}

.lb-podium-level {
    display: inline-block;
    margin-top: var(--space-1);
    font-size: 10px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    color: #fff;
    padding: 1px 8px;
    border-radius: var(--radius-full);
}

.lb-teaser-cta {
    text-align: center;
    margin-top: var(--space-8);
    position: relative;
}

@media (max-width: 640px) {
    .lb-podium-card.rank-1 {
        transform: scale(1);
    }

    .lb-podium-card.rank-1:hover {
        transform: translateY(-6px);
    }
}