/* ================================================
   ShopAnhVon - Premium Gaming Store
   Modern Dark UI — 2026 Refresh
   ================================================ */

/* === CSS Variables / Design Tokens === */
:root {
    /* Colors — Pure Black & White Monochrome Palette */
    --bg-primary: #000000;
    --bg-secondary: #000000;
    --bg-card: #0a0a0a;
    --bg-card-hover: #141414;
    --bg-surface: #0a0a0a;

    --accent-primary: #ffffff;
    --accent-primary-light: #e5e5e5;
    --accent-primary-dim: rgba(255, 255, 255, 0.08);
    --accent-secondary: #d4d4d4;
    --accent-tertiary: #a3a3a3;
    --accent-gold: #ffffff;
    --accent-green: #ffffff;
    --accent-red: #ef4444;

    --gradient-primary: #ffffff;
    --gradient-secondary: #ffffff;
    --gradient-gold: #ffffff;
    --gradient-hero: #000000;
    --gradient-glass: transparent;
    --gradient-border: #262626;

    --text-primary: #ffffff;
    --text-secondary: #a3a3a3;
    --text-muted: #737373;

    --border-color: #222222;
    --border-hover: #404040;

    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.9);
    --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.9);
    --shadow-lg: 0 16px 56px rgba(0, 0, 0, 0.95);
    --shadow-glow: none;
    --shadow-glow-pink: none;
    --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.8);

    /* Layout */
    --header-height: 70px;
    --sidebar-width: 300px;
    --container-max: 1400px;
    --radius-sm: 10px;
    --radius-md: 14px;
    --radius-lg: 18px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    /* Transitions */
    --transition-fast: 0.18s ease;
    --transition-base: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.55s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-spring: 0.55s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* === Light Theme Override (Clean Monochrome Day Mode) === */
[data-theme="light"] {
    --bg-primary: #ffffff;
    --bg-secondary: #fafafa;
    --bg-card: #ffffff;
    --bg-card-hover: #f4f4f5;
    --bg-surface: #ffffff;

    --accent-primary: #000000;
    --accent-primary-light: #27272a;
    --accent-primary-dim: rgba(0, 0, 0, 0.05);
    --accent-secondary: #52525b;
    --accent-tertiary: #71717a;
    --accent-gold: #000000;
    --accent-green: #15803d;
    --accent-red: #dc2626;

    --gradient-primary: #000000;
    --gradient-secondary: #000000;
    --gradient-gold: #000000;
    --gradient-hero: #f4f4f5;
    --gradient-glass: transparent;
    --gradient-border: #e4e4e7;

    --text-primary: #000000;
    --text-secondary: #3f3f46;
    --text-muted: #71717a;

    --border-color: #e4e4e7;
    --border-hover: #a1a1aa;

    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.07);
    --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.09);
    --shadow-glow: none;
    --shadow-glow-pink: none;
    --shadow-card: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* Light theme — element-specific overrides */
[data-theme="light"] body {
    background: #ffffff !important;
    color: #000000 !important;
}

[data-theme="light"] body::before {
    display: none !important;
}

[data-theme="light"] html {
    scrollbar-color: #71717a #f4f4f5;
}

[data-theme="light"] .top-bar {
    background: #ffffff !important;
    border-bottom: 1px solid #e4e4e7 !important;
}

[data-theme="light"] .top-bar-links a {
    color: #71717a;
}

[data-theme="light"] .top-bar-links a:hover {
    color: #000000;
}

[data-theme="light"] .header {
    background: rgba(255, 255, 255, 0.96) !important;
    border-bottom: 1px solid #e4e4e7 !important;
}

[data-theme="light"] .header.scrolled {
    background: #ffffff !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06), 0 1px 0 #e4e4e7 !important;
}

[data-theme="light"] .logo-main {
    color: #000000 !important;
}

[data-theme="light"] .logo-icon {
    border-color: #e4e4e7 !important;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.05) !important;
}

[data-theme="light"] .nav-link {
    color: #52525b;
}

[data-theme="light"] .nav-link:hover,
[data-theme="light"] .nav-link.active {
    background: #f4f4f5 !important;
    color: #000000 !important;
}

[data-theme="light"] .nav-link.active::after {
    background: #000000 !important;
}

[data-theme="light"] .dropdown-menu {
    background: #ffffff !important;
    border: 1px solid #e4e4e7 !important;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08) !important;
}

[data-theme="light"] .dropdown-menu a {
    color: #52525b;
}

[data-theme="light"] .dropdown-menu a:hover {
    background: #f4f4f5 !important;
    color: #000000 !important;
}

/* Light Theme — Header Buttons */
[data-theme="light"] .theme-toggle {
    background: #f4f4f5 !important;
    border: 1px solid #e4e4e7 !important;
    color: #000000 !important;
}

[data-theme="light"] .theme-toggle:hover {
    background: #e4e4e7 !important;
    border-color: #a1a1aa !important;
}

[data-theme="light"] .btn-header-cart {
    background: #f4f4f5 !important;
    border: 1px solid #e4e4e7 !important;
    color: #000000 !important;
}

[data-theme="light"] .btn-header-cart:hover {
    background: #e4e4e7 !important;
    border-color: #a1a1aa !important;
}

[data-theme="light"] .header-cart-badge {
    background: #000000 !important;
    color: #ffffff !important;
}

[data-theme="light"] .btn-login,
[data-theme="light"] .btn-header-auth {
    background: #000000 !important;
    color: #ffffff !important;
    border: 1px solid #000000 !important;
}

[data-theme="light"] .btn-login:hover,
[data-theme="light"] .btn-header-auth:hover {
    background: #27272a !important;
    color: #ffffff !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2) !important;
}

[data-theme="light"] .btn-header-auth span,
[data-theme="light"] .btn-header-auth .header-auth-text,
[data-theme="light"] .btn-header-auth .header-auth-icon {
    color: #ffffff !important;
}

/* Light Theme — User Profile Menu */
[data-theme="light"] .user-profile-menu {
    background: #f4f4f5 !important;
    border: 1px solid #e4e4e7 !important;
}

[data-theme="light"] .user-avatar-badge {
    background: #000000 !important;
    color: #ffffff !important;
}

[data-theme="light"] .user-name-display {
    color: #000000 !important;
}

[data-theme="light"] .btn-user-change-pwd {
    background: #ffffff !important;
    border-color: #d4d4d8 !important;
    color: #000000 !important;
}

/* Light Theme — Hero Section */
[data-theme="light"] .hero {
    background: #fafafa !important;
}

[data-theme="light"] .hero::after {
    background: linear-gradient(to top, #ffffff, transparent) !important;
}

[data-theme="light"] .hero h1 {
    color: #000000 !important;
}

[data-theme="light"] .gradient-text {
    color: #000000 !important;
    background: none !important;
    -webkit-text-fill-color: #000000 !important;
}

[data-theme="light"] .hero-desc {
    color: #52525b !important;
}

[data-theme="light"] .hero-badge {
    background: #f4f4f5 !important;
    border-color: #e4e4e7 !important;
    color: #000000 !important;
}

[data-theme="light"] .hero-card {
    background: #ffffff !important;
    border: 1px solid #e4e4e7 !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05) !important;
}

[data-theme="light"] .hero-card:hover {
    border-color: #000000 !important;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1) !important;
}

[data-theme="light"] .hero-card span {
    color: #000000 !important;
}

[data-theme="light"] .stat-number {
    color: #000000 !important;
}

[data-theme="light"] .stat-label {
    color: #71717a !important;
}

/* Light Theme — Action Buttons */
[data-theme="light"] .btn-primary {
    background: #000000 !important;
    color: #ffffff !important;
    border: 1px solid #000000 !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15) !important;
}

[data-theme="light"] .btn-primary:hover {
    background: #27272a !important;
    color: #ffffff !important;
}

[data-theme="light"] .btn-outline {
    background: transparent !important;
    color: #000000 !important;
    border: 1px solid #000000 !important;
}

[data-theme="light"] .btn-outline:hover {
    background: #f4f4f5 !important;
}

/* Light Theme — Sidebar */
[data-theme="light"] .sidebar-section {
    background: #ffffff !important;
    border: 1px solid #e4e4e7 !important;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.03) !important;
}

[data-theme="light"] .sidebar-title {
    color: #000000 !important;
    border-bottom: 1px solid #e4e4e7 !important;
}

[data-theme="light"] .cat-link {
    color: #52525b !important;
}

[data-theme="light"] .cat-link:hover {
    background: #f4f4f5 !important;
    color: #000000 !important;
}

[data-theme="light"] .cat-link.active {
    background: #000000 !important;
    color: #ffffff !important;
    border-left-color: #000000 !important;
}

[data-theme="light"] .cat-link.active .cat-count {
    background: #ffffff !important;
    color: #000000 !important;
}

[data-theme="light"] .cat-count {
    background: #f4f4f5 !important;
    color: #52525b !important;
}

[data-theme="light"] .sidebar-support {
    background: #f4f4f5 !important;
    border-color: #e4e4e7 !important;
}

[data-theme="light"] .support-value {
    color: #000000 !important;
}

/* Light Theme — Product Cards & Prices (Black color) */
[data-theme="light"] .product-card {
    background: #ffffff !important;
    border: 1px solid #e4e4e7 !important;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04) !important;
}

[data-theme="light"] .product-card:hover {
    border-color: #000000 !important;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08) !important;
}

[data-theme="light"] .product-card::before {
    background: #000000 !important;
}

[data-theme="light"] .product-thumb {
    background: #f4f4f5 !important;
}

[data-theme="light"] .product-thumb::after {
    background: linear-gradient(to top, #ffffff, transparent) !important;
}

[data-theme="light"] .product-title {
    color: #000000 !important;
}

[data-theme="light"] .product-desc {
    color: #71717a !important;
}

[data-theme="light"] .product-id-badge {
    background: #f4f4f5 !important;
    border-color: #e4e4e7 !important;
    color: #000000 !important;
}

[data-theme="light"] .product-fav {
    background: rgba(0, 0, 0, 0.06) !important;
    color: #71717a !important;
}

[data-theme="light"] .product-fav:hover {
    background: #000000 !important;
    color: #ffffff !important;
}

/* Giá tiền màu đen rõ nét trong Day Mode */
[data-theme="light"] .product-price {
    color: #000000 !important;
    -webkit-text-fill-color: #000000 !important;
    background: none !important;
    font-weight: 800 !important;
    font-size: 1.15rem !important;
}

/* Nút Mua/Thêm vào giỏ màu đen trong Day Mode */
[data-theme="light"] .product-buy {
    background: #000000 !important;
    color: #ffffff !important;
    border: 1px solid #000000 !important;
    font-weight: 700 !important;
}

[data-theme="light"] .product-buy:hover {
    background: #27272a !important;
    color: #ffffff !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2) !important;
}

/* Light Theme — Cart Drawer */
[data-theme="light"] .cart-drawer {
    background: #ffffff !important;
    border-left: 1px solid #e4e4e7 !important;
    box-shadow: -10px 0 50px rgba(0, 0, 0, 0.1) !important;
}

[data-theme="light"] .cart-drawer-header {
    background: #fafafa !important;
    border-bottom: 1px solid #e4e4e7 !important;
}

[data-theme="light"] .cart-drawer-title h3 {
    color: #000000 !important;
}

[data-theme="light"] .cart-close-btn {
    background: #f4f4f5 !important;
    border: 1px solid #e4e4e7 !important;
    color: #000000 !important;
}

[data-theme="light"] .cart-item {
    background: #f4f4f5 !important;
    border: 1px solid #e4e4e7 !important;
}

[data-theme="light"] .cart-item:hover {
    border-color: #a1a1aa !important;
    background: #ebebee !important;
}

[data-theme="light"] .cart-item-name {
    color: #000000 !important;
}

[data-theme="light"] .cart-item-id {
    background: #e4e4e7 !important;
    border-color: #d4d4d8 !important;
    color: #000000 !important;
}

[data-theme="light"] .cart-item-subtotal {
    color: #000000 !important;
}

[data-theme="light"] .cart-qty-group {
    background: #ffffff !important;
    border: 1px solid #d4d4d8 !important;
}

[data-theme="light"] .cart-qty-btn {
    color: #000000 !important;
}

[data-theme="light"] .cart-qty-btn:hover {
    background: #e4e4e7 !important;
}

[data-theme="light"] .cart-qty-value {
    color: #000000 !important;
}

[data-theme="light"] .cart-drawer-footer {
    background: #fafafa !important;
    border-top: 1px solid #e4e4e7 !important;
}

[data-theme="light"] .cart-summary-row.total-row {
    color: #000000 !important;
    border-top-color: #e4e4e7 !important;
}

[data-theme="light"] .cart-summary-grand {
    color: #000000 !important;
}

[data-theme="light"] .btn-clear-cart {
    background: #ffffff !important;
    color: #000000 !important;
    border: 1px solid #d4d4d8 !important;
}

[data-theme="light"] .btn-clear-cart:hover {
    background: #f4f4f5 !important;
    border-color: #000000 !important;
}

[data-theme="light"] .btn-checkout {
    background: #000000 !important;
    color: #ffffff !important;
    border: 1px solid #000000 !important;
}

[data-theme="light"] .btn-checkout:hover {
    background: #27272a !important;
    color: #ffffff !important;
}

/* Light Theme — Search Box & Filters */
[data-theme="light"] .search-box input {
    background: #ffffff !important;
    border: 1px solid #d4d4d8 !important;
    color: #000000 !important;
}

[data-theme="light"] .search-box input:focus {
    border-color: #000000 !important;
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.1) !important;
}

[data-theme="light"] .sort-control select {
    background: #ffffff !important;
    border: 1px solid #d4d4d8 !important;
    color: #000000 !important;
}

[data-theme="light"] .main-nav {
    background: #ffffff !important;
}

/* === Theme Toggle Button === */
.theme-toggle {
    position: relative;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #141414;
    border: 1px solid #262626;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-base);
    flex-shrink: 0;
    overflow: hidden;
}

.theme-toggle:hover {
    background: #222222;
    border-color: #444444;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.6);
}

.theme-toggle-icon {
    font-size: 1.15rem;
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
    line-height: 1;
}

.theme-toggle:active .theme-toggle-icon {
    transform: rotate(360deg) scale(0.85);
}

[data-theme="light"] .theme-toggle {
    background: rgba(251, 191, 36, 0.1);
    border-color: rgba(251, 191, 36, 0.25);
}

[data-theme="light"] .theme-toggle:hover {
    background: rgba(251, 191, 36, 0.2);
    border-color: rgba(251, 191, 36, 0.5);
    box-shadow: 0 4px 20px rgba(251, 191, 36, 0.15);
}

/* === Reset & Base === */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: #333333 #000000;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: #000000;
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Pure Black background — no colored gradients */
body::before {
    display: none;
}

::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #000000;
}

::-webkit-scrollbar-thumb {
    background: #333333;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555555;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-fast);
}

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

button,
input,
select {
    font-family: inherit;
    outline: none;
    border: none;
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

/* === Animated Background (Disabled for pure black) === */
#particles-bg {
    display: none;
}

@keyframes floatOrb {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    25% {
        transform: translate(70px, -120px) scale(1.1);
    }

    50% {
        transform: translate(-50px, -160px) scale(0.9);
    }

    75% {
        transform: translate(100px, -60px) scale(1.08);
    }
}

/* === Top Bar === */
.top-bar {
    background: #000000;
    border-bottom: 1px solid #1a1a1a;
    padding: 8px 0;
    font-size: 0.78rem;
    position: relative;
    z-index: 100;
}

.top-bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-links {
    display: flex;
    gap: 24px;
}

.top-bar-links a {
    color: var(--text-muted);
    transition: color var(--transition-fast);
    letter-spacing: 0.01em;
}

.top-bar-links a:hover {
    color: #ffffff;
}

.favorites-link {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-secondary);
}

.heart-icon {
    color: #ffffff;
    font-size: 0.9rem;
}

.fav-count {
    background: #ffffff;
    color: #000000;
    font-size: 0.65rem;
    padding: 2px 7px;
    border-radius: 10px;
    font-weight: 700;
}

/* === Header === */
.header {
    position: sticky;
    top: 0;
    z-index: 99;
    background: #000000;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid #1a1a1a;
    transition: background var(--transition-base), box-shadow var(--transition-base);
}

.header.scrolled {
    background: #000000;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.9), 0 1px 0 #222222;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
    gap: 24px;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.logo-icon {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.08);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
    flex-shrink: 0;
    border: 2px solid #333333;
}

.logo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    transition: transform var(--transition-base);
}

.logo:hover .logo-icon {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.15);
    border-color: #666666;
}

.logo:hover .logo-img {
    transform: scale(1.06);
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-main {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 1.15rem;
    color: #ffffff;
    line-height: 1.2;
}

.logo-sub {
    font-size: 0.63rem;
    color: var(--text-muted);
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

/* Navigation */
.main-nav {
    display: flex;
    align-items: center;
    gap: 2px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
    transition: all var(--transition-fast);
    white-space: nowrap;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.08);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 2px;
    background: #ffffff;
    border-radius: 2px;
}

.nav-icon {
    font-size: 0.95rem;
}

.dropdown-arrow {
    font-size: 0.7rem;
    transition: transform var(--transition-fast);
}

/* Dropdown Menu */
.nav-dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: #0a0a0a;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity var(--transition-base), visibility var(--transition-base), transform var(--transition-base);
    box-shadow: var(--shadow-lg);
    z-index: 50;
}

.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(4px);
}

.nav-dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-menu a {
    display: block;
    padding: 10px 14px;
    color: var(--text-secondary);
    font-size: 0.85rem;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

.dropdown-menu a:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
    padding-left: 20px;
}

/* Mega Menu */
.mega-menu {
    min-width: 680px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    padding: 20px;
}

.mega-col h4 {
    font-size: 0.85rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-color);
}

.mega-col a {
    padding: 6px 0;
    font-size: 0.82rem;
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-login, .btn-header-auth {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 40px;
    padding: 0 20px;
    background: #ffffff !important;
    color: #000000 !important;
    font-weight: 700;
    font-size: 0.88rem;
    border-radius: 9999px !important;
    border: 1px solid #ffffff !important;
    cursor: pointer;
    transition: all var(--transition-base);
    box-shadow: 0 4px 16px rgba(255, 255, 255, 0.15);
    white-space: nowrap;
    text-decoration: none;
    line-height: 1;
}

.btn-header-auth span, .btn-header-auth .header-auth-text, .btn-header-auth .header-auth-icon {
    color: #000000 !important;
    display: inline-flex;
    align-items: center;
}

.btn-login:hover, .btn-header-auth:hover {
    transform: translateY(-2px);
    background: #e5e5e5 !important;
    color: #000000 !important;
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.3);
}

.btn-header-cart {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: #141414;
    color: #ffffff;
    border: 1px solid #262626;
    border-radius: var(--radius-full);
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all var(--transition-fast);
}

.btn-header-cart:hover {
    background: #222222;
    border-color: #404040;
}

.header-cart-badge {
    background: #ffffff;
    color: #000000;
    font-size: 0.72rem;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 50px;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    background: none;
    cursor: pointer;
}

.mobile-menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all var(--transition-base);
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

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

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* === Hero Section === */
.hero {
    position: relative;
    background: #000000;
    padding: 100px 0 80px;
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 140px;
    background: linear-gradient(to top, #000000, transparent);
    pointer-events: none;
}

.hero-glow {
    display: none;
}

.hero-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    padding: 8px 20px;
    background: #141414;
    border: 1px solid #262626;
    color: #ffffff;
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 600;
    margin-bottom: 22px;
}

.hero h1 {
    font-family: 'Outfit', sans-serif;
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 22px;
    letter-spacing: -0.03em;
    color: #ffffff;
}

.gradient-text {
    color: #ffffff;
    background: none;
    -webkit-text-fill-color: initial;
}

.hero-desc {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 34px;
    max-width: 520px;
}

.hero-stats {
    display: flex;
    gap: 40px;
    margin-bottom: 38px;
}

.stat-item {
    text-align: center;
    position: relative;
}

.stat-item::after {
    content: '';
    position: absolute;
    right: -20px;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 30px;
    background: rgba(139, 92, 246, 0.15);
}

.stat-item:last-child::after {
    display: none;
}

.stat-number {
    display: block;
    font-family: 'Outfit', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.78rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.hero-actions {
    display: flex;
    gap: 14px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    font-size: 0.92rem;
    font-weight: 600;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all var(--transition-base);
    border: none;
    letter-spacing: 0.01em;
}

.btn-primary {
    background: #ffffff;
    color: #000000;
    box-shadow: 0 4px 16px rgba(255, 255, 255, 0.15);
    position: relative;
    overflow: hidden;
}

.btn-primary:hover {
    transform: translateY(-2px);
    background: #e5e5e5;
    box-shadow: 0 8px 24px rgba(255, 255, 255, 0.25);
}

.btn-outline {
    background: transparent;
    color: #ffffff;
    border: 1px solid #333333;
}

.btn-outline:hover {
    background: #141414;
    border-color: #666666;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
}

.btn-full {
    width: 100%;
    justify-content: center;
}

/* Hero Visual */
.hero-visual {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    padding: 10px;
}

.hero-card {
    position: relative;
    background: #0a0a0a;
    border: 1px solid #222222;
    border-radius: var(--radius-lg);
    padding: 12px;
    text-align: center;
    transition: transform var(--transition-spring), border-color var(--transition-spring), box-shadow var(--transition-spring);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    will-change: transform;
}

.hero-card:hover {
    border-color: #555555;
    transform: translateY(-6px) !important;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.hero-card-glow {
    display: none;
}

.hero-card:hover .hero-card-glow {
    opacity: 1.5;
}

.hero-card-img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: calc(var(--radius-md) - 2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.45);
    transition: transform var(--transition-spring);
}

.hero-card:hover .hero-card-img {
    transform: scale(1.04);
}

.game-icon {
    font-size: 3.2rem;
    margin-bottom: 14px;
    display: block;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.3));
    transition: transform var(--transition-spring);
}

.hero-card:hover .game-icon {
    transform: scale(1.15) rotate(-5deg);
}

.hero-card span {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-secondary);
    letter-spacing: 0.01em;
}

/* Floating Animation */
.floating {
    animation: floating 6s ease-in-out infinite;
}

.floating.delay-1 {
    animation-delay: -1.5s;
}

.floating.delay-2 {
    animation-delay: -3s;
}

.floating.delay-3 {
    animation-delay: -4.5s;
}

@keyframes floating {

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

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

/* === Info Banners === */
.info-banners {
    padding: 32px 0;
    position: relative;
    z-index: 1;
}

.banners-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.banner-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    background: rgba(14, 19, 36, 0.5);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(139, 92, 246, 0.08);
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.banner-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.banner-card:hover::before {
    opacity: 1;
}

.banner-card:hover {
    border-color: rgba(139, 92, 246, 0.2);
    box-shadow: 0 8px 36px rgba(139, 92, 246, 0.08);
    transform: translateY(-3px);
    background: rgba(18, 24, 44, 0.7);
}

.banner-icon {
    font-size: 2rem;
    flex-shrink: 0;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.25));
}

.banner-content h3 {
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.banner-content p {
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* === Main Content Layout === */
.main-content {
    padding: 40px 0 70px;
    position: relative;
    z-index: 1;
}

.main-grid {
    display: grid;
    grid-template-columns: var(--sidebar-width) 1fr;
    gap: 28px;
    align-items: start;
}

/* === Sidebar === */
.sidebar {
    position: sticky;
    top: calc(var(--header-height) + 20px);
}

.sidebar-section {
    background: #0a0a0a;
    border: 1px solid #222222;
    border-radius: var(--radius-md);
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
}

.sidebar-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid #222222;
    color: var(--text-primary);
}

.sidebar-icon {
    font-size: 1.2rem;
}

.category-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 2px;
    max-height: 600px;
    overflow-y: auto;
    scrollbar-width: thin;
}

.cat-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 0.82rem;
    font-weight: 500;
    transition: all var(--transition-fast);
    border-left: 3px solid transparent;
}

.cat-link:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #ffffff;
    padding-left: 16px;
}

.cat-link.active {
    background: #1a1a1a;
    color: #ffffff;
    font-weight: 600;
    border-left-color: #ffffff;
}

.cat-icon {
    font-size: 1rem;
    flex-shrink: 0;
}

.cat-count {
    margin-left: auto;
    font-size: 0.7rem;
    padding: 2px 8px;
    background: #1a1a1a;
    border-radius: 10px;
    color: #a3a3a3;
    flex-shrink: 0;
    font-weight: 600;
}

/* Sidebar Support */
.sidebar-support {
    background: #0a0a0a;
    border: 1px solid #222222;
}

.support-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.support-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.support-label {
    font-size: 0.82rem;
    color: var(--text-muted);
}

.support-value {
    font-size: 0.85rem;
    font-weight: 600;
    color: #ffffff;
}

/* === Products Area === */
.products-area {
    min-height: 400px;
}

.products-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 16px;
}

.products-header h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-icon {
    font-size: 1.3rem;
}

.products-controls {
    display: flex;
    gap: 10px;
    align-items: center;
}

.search-box {
    position: relative;
    display: flex;
    align-items: center;
}

.search-box input {
    width: 260px;
    padding: 10px 40px 10px 16px;
    background: #000000;
    border: 1px solid #222222;
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 0.84rem;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.search-box input:focus {
    border-color: #444444;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.08);
    background: #000000;
}

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

.search-btn {
    position: absolute;
    right: 8px;
    background: none;
    font-size: 1rem;
    cursor: pointer;
    padding: 4px;
}

.sort-control select {
    padding: 10px 16px;
    background-color: #000000;
    border: 1px solid #222222;
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 0.84rem;
    cursor: pointer;
    transition: border-color var(--transition-fast);
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%2394a3b8' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

.sort-control select:focus {
    border-color: #444444;
}

/* Product Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 18px;
    margin-bottom: 30px;
}

/* Product Card — optimized for performance */
.product-card {
    background: rgba(14, 19, 36, 0.9);
    border: 1px solid #222222;
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: transform var(--transition-spring), border-color var(--transition-spring), box-shadow var(--transition-spring);
    position: relative;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
    background: #0a0a0a;
    contain: layout style;
    will-change: transform;
}

.product-card:hover {
    border-color: #555555;
    transform: translateY(-5px);
    box-shadow:
        0 16px 40px rgba(0, 0, 0, 0.8),
        0 0 0 1px rgba(255, 255, 255, 0.08);
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: #ffffff;
    opacity: 0;
    transition: opacity var(--transition-base);
    z-index: 2;
}

.product-card:hover::before {
    opacity: 1;
}

.product-card::after {
    display: none;
}

.product-thumb {
    position: relative;
    height: 170px;
    background: #141414;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-thumb::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50px;
    background: linear-gradient(to top, #0a0a0a, transparent);
    pointer-events: none;
}

.product-thumb-icon {
    font-size: 3.8rem;
    filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.3));
    transition: transform var(--transition-spring);
}

.product-card:hover .product-thumb-icon {
    transform: scale(1.15) rotate(-6deg);
}

.product-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-spring);
}

.product-card:hover .product-thumb-img {
    transform: scale(1.06);
}


.product-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 5px 12px;
    border-radius: 8px;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 3;
}

.badge-hot {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    box-shadow: 0 2px 10px rgba(239, 68, 68, 0.35);
}

.badge-sale {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #000;
    box-shadow: 0 2px 10px rgba(251, 191, 36, 0.35);
}

.badge-new {
    background: linear-gradient(135deg, #34d399, #10b981);
    color: white;
    box-shadow: 0 2px 10px rgba(52, 211, 153, 0.35);
}

.product-fav {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 34px;
    height: 34px;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(12px);
    border: none;
    border-radius: 50%;
    color: var(--text-muted);
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
    z-index: 3;
}

.product-fav:hover,
.product-fav.active {
    color: var(--accent-secondary);
    background: rgba(236, 72, 153, 0.2);
    transform: scale(1.1);
}

.product-info {
    padding: 16px;
}

/* Product Card Meta (ID & Stock) */
.product-meta-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    gap: 8px;
}

.product-id-badge {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    font-family: 'Outfit', sans-serif;
    font-size: 0.74rem;
    font-weight: 700;
    color: var(--accent-primary-light);
    background: rgba(139, 92, 246, 0.12);
    border: 1px solid rgba(139, 92, 246, 0.25);
    padding: 3px 9px;
    border-radius: 6px;
    letter-spacing: 0.5px;
}

.product-id-badge .id-prefix {
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.68rem;
    margin-right: 1px;
}

.product-stock-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 3px 9px;
    border-radius: 6px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.25);
    color: var(--accent-green);
}

.product-stock-badge.out-of-stock {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.25);
    color: var(--accent-red);
}

.stock-pulse-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent-green);
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.8);
    animation: stockBlink 1.8s infinite ease-in-out;
}

.product-stock-badge.out-of-stock .stock-pulse-dot {
    background: var(--accent-red);
    box-shadow: 0 0 8px rgba(239, 68, 68, 0.8);
}

@keyframes stockBlink {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.4;
        transform: scale(0.85);
    }
}

.cart-item-id {
    display: inline-block;
    font-family: 'Outfit', sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    background: #1a1a1a;
    border: 1px solid #333333;
    color: #ffffff;
    padding: 1px 6px;
    border-radius: 4px;
    margin-right: 6px;
    vertical-align: middle;
}

.product-title {
    font-size: 0.86rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.45;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 40px;
}

.product-desc {
    font-size: 0.76rem;
    color: var(--text-muted);
    margin-bottom: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.5;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.product-price {
    font-family: 'Outfit', sans-serif;
    font-size: 1.15rem;
    font-weight: 800;
    color: #ffffff;
}

.product-buy {
    padding: 9px 20px;
    background: #ffffff;
    color: #000000;
    border: 1px solid #ffffff;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--transition-fast);
    position: relative;
    overflow: hidden;
}

.product-buy:hover {
    background: #e5e5e5;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(255, 255, 255, 0.2);
}

.product-stock {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    color: var(--accent-green);
    margin-bottom: 10px;
}

.stock-dot {
    width: 6px;
    height: 6px;
    background: var(--accent-green);
    border-radius: 50%;
    animation: blink 1.5s infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.3;
    }
}

/* Load More */
.load-more-wrapper {
    text-align: center;
    padding: 10px 0;
}

.load-more-btn {
    padding: 12px 40px;
}

/* === Recent Section === */
.recent-section {
    padding: 40px 0 60px;
    position: relative;
    z-index: 1;
}

.recent-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.recent-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 24px;
}

.recent-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.recent-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 300px;
    overflow-y: auto;
}

.recent-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    background: rgba(139, 92, 246, 0.03);
    border-radius: var(--radius-sm);
    font-size: 0.82rem;
    border-left: 3px solid transparent;
    transition: all var(--transition-fast);
}

.recent-item:hover {
    background: rgba(139, 92, 246, 0.06);
    border-left-color: var(--accent-primary);
}

.recent-user {
    color: var(--text-secondary);
    font-weight: 500;
}

.recent-product {
    color: var(--accent-primary-light);
    font-weight: 600;
    max-width: 200px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.recent-amount {
    color: var(--accent-gold);
    font-weight: 700;
}

.recent-time {
    color: var(--text-muted);
    font-size: 0.75rem;
}

/* === Footer === */
.footer {
    position: relative;
    background: linear-gradient(180deg, var(--bg-primary) 0%, rgba(10, 15, 28, 1) 100%);
    border-top: 1px solid rgba(139, 92, 246, 0.08);
    padding: 70px 0 0;
    z-index: 1;
}

.footer-glow {
    position: absolute;
    top: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 2px;
    background: var(--gradient-primary);
    filter: blur(4px);
    opacity: 0.6;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.footer-logo .logo-emoji {
    font-size: 1.8rem;
}

.footer-logo .logo-main {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 1.2rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-desc {
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.7;
    margin-bottom: 20px;
}

.footer-socials {
    display: flex;
    gap: 10px;
}

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(14, 19, 36, 0.6);
    border: 1px solid rgba(139, 92, 246, 0.1);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: all var(--transition-base);
}

.social-link:hover {
    border-color: var(--accent-primary);
    background: rgba(139, 92, 246, 0.08);
    transform: translateY(-3px);
    box-shadow: 0 4px 16px rgba(139, 92, 246, 0.15);
}

.footer-col h4 {
    font-size: 0.92rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.footer-col a {
    display: block;
    padding: 6px 0;
    color: var(--text-muted);
    font-size: 0.84rem;
    transition: all var(--transition-fast);
}

.footer-col a:hover {
    color: var(--accent-primary-light);
    padding-left: 6px;
}

.footer-contact-info p {
    font-size: 0.84rem;
    color: var(--text-muted);
    padding: 5px 0;
}

.footer-contact-info p a {
    display: inline;
    padding: 0;
}

.footer-bottom {
    border-top: 1px solid rgba(139, 92, 246, 0.06);
    padding: 20px 0;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* === Back to Top === */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 46px;
    height: 46px;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all var(--transition-base);
    box-shadow: 0 4px 24px rgba(139, 92, 246, 0.35);
    z-index: 90;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(139, 92, 246, 0.5);
}

/* === Login Modal === */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(20px) saturate(1.2);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 200;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
}

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

.modal-card {
    background: rgba(14, 19, 36, 0.9);
    backdrop-filter: blur(24px);
    border: 1px solid rgba(139, 92, 246, 0.12);
    border-radius: var(--radius-xl);
    padding: 40px;
    width: 100%;
    max-width: 420px;
    position: relative;
    transform: translateY(30px) scale(0.92);
    transition: all var(--transition-spring);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

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

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    background: rgba(139, 92, 246, 0.08);
    border: none;
    border-radius: 50%;
    color: var(--text-secondary);
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.modal-close:hover {
    background: rgba(239, 68, 68, 0.15);
    color: var(--accent-red);
}

.modal-header {
    text-align: center;
    margin-bottom: 30px;
}

.modal-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 10px;
}

.modal-header h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 6px;
}

.modal-header p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    background: rgba(10, 15, 30, 0.8);
    border: 1px solid rgba(139, 92, 246, 0.1);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 0.9rem;
    transition: all var(--transition-fast);
}

.form-group input:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.12);
}

.form-group input::placeholder {
    color: var(--text-muted);
}

.login-form .btn {
    margin-top: 10px;
    padding: 14px;
}

.form-footer {
    display: flex;
    justify-content: space-between;
    margin-top: 18px;
}

.form-footer a {
    font-size: 0.82rem;
    color: var(--accent-primary-light);
}

.form-footer a:hover {
    text-decoration: underline;
}

/* === Responsive === */
@media (max-width: 1200px) {
    .mega-menu {
        min-width: 500px;
        grid-template-columns: repeat(2, 1fr);
    }

    .hero h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 1024px) {
    .main-grid {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: static;
    }

    .category-list {
        max-height: none;
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 6px;
    }

    .hero-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-desc {
        margin-left: auto;
        margin-right: auto;
    }

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

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

    .hero-visual {
        max-width: 500px;
        margin: 0 auto;
    }

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

@media (max-width: 768px) {
    .top-bar {
        display: none;
    }

    .main-nav {
        display: none;
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(8, 12, 22, 0.98);
        backdrop-filter: blur(24px);
        flex-direction: column;
        padding: 20px;
        gap: 4px;
        overflow-y: auto;
        z-index: 100;
    }

    .main-nav.active {
        display: flex;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .nav-dropdown .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
        background: rgba(139, 92, 246, 0.04);
        box-shadow: none;
        border: none;
        margin-top: 4px;
    }

    .nav-dropdown.open .dropdown-menu {
        display: block;
    }

    .mega-menu {
        min-width: auto;
        grid-template-columns: 1fr;
    }

    .hero {
        padding: 40px 0;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero-stats {
        gap: 20px;
    }

    .stat-number {
        font-size: 1.5rem;
    }

    .stat-item::after {
        display: none;
    }

    .hero-visual {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .hero-card {
        padding: 10px;
    }

    .game-icon {
        font-size: 2rem;
    }

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

    .category-list {
        grid-template-columns: repeat(2, 1fr);
    }

    .products-header {
        flex-direction: column;
        align-items: stretch;
    }

    .products-controls {
        flex-wrap: wrap;
    }

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

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

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

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.6rem;
    }

    .hero-desc {
        font-size: 0.9rem;
    }

    .hero-actions {
        flex-direction: column;
    }

    .hero-visual {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

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

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

    .modal-card {
        margin: 20px;
        padding: 24px;
    }
}

/* === Animations on scroll === */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* === Skeleton Loading === */
.skeleton {
    background: linear-gradient(90deg,
            rgba(14, 19, 36, 0.6) 25%,
            rgba(139, 92, 246, 0.06) 50%,
            rgba(14, 19, 36, 0.6) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.8s infinite;
    border-radius: var(--radius-sm);
}

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

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

/* === Price Filter Tags === */
.price-filter .cat-link.active {
    background: rgba(139, 92, 246, 0.1);
    color: var(--accent-primary-light);
}

/* === Selection styles === */
::selection {
    background: rgba(139, 92, 246, 0.25);
    color: var(--text-primary);
}

/* === Focus visible for accessibility === */
:focus-visible {
    outline: 2px solid var(--accent-primary);
    outline-offset: 2px;
    border-radius: 4px;
}

/* === Blox Fruits Icon Image === */
.blox-icon {
    width: 22px;
    height: auto;
    max-height: 20px;
    display: inline-block;
    vertical-align: middle;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4));
}

.hero-badge .blox-icon {
    width: 26px;
    max-height: 22px;
    margin-right: 4px;
}

.sidebar-icon .blox-icon,
.section-icon .blox-icon {
    width: 26px;
    max-height: 22px;
}

.logo-emoji .blox-icon-lg {
    width: 36px;
    height: auto;
    max-height: 32px;
    display: inline-block;
    vertical-align: middle;
    object-fit: contain;
}

/* === Shopping Cart Styles === */
.btn-header-cart {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 18px;
    background: #000000;
    border: 1px solid #222222;
    border-radius: var(--radius-full);
    color: var(--text-primary);
    font-size: 0.86rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-base);
    position: relative;
}

.btn-header-cart:hover {
    background: #141414;
    border-color: #404040;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.header-cart-icon {
    font-size: 1.05rem;
}

.header-cart-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    background: var(--gradient-primary);
    color: white;
    font-size: 0.72rem;
    font-weight: 700;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(236, 72, 153, 0.4);
    transition: transform 0.2s ease;
}

.header-cart-badge.badge-bounce {
    animation: badgeBounce 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes badgeBounce {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.4);
    }

    100% {
        transform: scale(1);
    }
}

/* Cart Overlay */
.cart-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 250;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-base), visibility var(--transition-base);
}

.cart-overlay.open {
    opacity: 1;
    visibility: visible;
}

/* Cart Drawer */
.cart-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 440px;
    height: 100vh;
    background: #000000;
    border-left: 1px solid #222222;
    box-shadow: -10px 0 50px rgba(0, 0, 0, 0.95);
    z-index: 260;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform;
}

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

.cart-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid #222222;
    background: #0a0a0a;
}

.cart-drawer-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cart-drawer-icon {
    font-size: 1.3rem;
}

.cart-drawer-title h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: #ffffff;
}

.cart-close-btn {
    width: 34px;
    height: 34px;
    background: #141414;
    border: 1px solid #262626;
    border-radius: 50%;
    color: #a3a3a3;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.cart-close-btn:hover {
    background: #262626;
    color: #ffffff;
    border-color: #404040;
}

.cart-drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* Empty State */
.cart-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    height: 100%;
    padding: 40px 20px;
}

.cart-empty-icon {
    font-size: 4rem;
    opacity: 0.6;
    margin-bottom: 16px;
}

.cart-empty-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: #ffffff;
}

.cart-empty-desc {
    font-size: 0.84rem;
    color: #737373;
    margin-bottom: 24px;
    max-width: 260px;
    line-height: 1.5;
}

/* Cart Item */
.cart-item {
    display: flex;
    gap: 14px;
    padding: 14px;
    background: #0a0a0a;
    border: 1px solid #222222;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.cart-item:hover {
    border-color: #444444;
    background: #121212;
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
}

.cart-item-img-wrap {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: #141414;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid #222222;
}

.cart-item-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-width: 0;
}

.cart-item-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: #ffffff;
    line-height: 1.35;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cart-item-meta {
    font-size: 0.82rem;
    margin-bottom: 8px;
}

.cart-item-unit-price {
    color: #737373;
}

.cart-item-subtotal {
    font-weight: 700;
    color: #ffffff;
}

.cart-item-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cart-qty-group {
    display: inline-flex;
    align-items: center;
    background: #141414;
    border: 1px solid #262626;
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.cart-qty-btn {
    width: 28px;
    height: 26px;
    background: transparent;
    color: #a3a3a3;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.cart-qty-btn:hover {
    background: #262626;
    color: #ffffff;
}

.cart-qty-value {
    min-width: 26px;
    text-align: center;
    font-size: 0.8rem;
    font-weight: 600;
    color: #ffffff;
}

.cart-item-remove {
    background: transparent;
    border: none;
    color: #737373;
    font-size: 0.75rem;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all var(--transition-fast);
}

.cart-item-remove:hover {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
}

/* Cart Footer */
.cart-drawer-footer {
    padding: 20px 24px;
    border-top: 1px solid #222222;
    background: #0a0a0a;
}

.cart-summary {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 18px;
}

.cart-summary-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: #a3a3a3;
}

.cart-summary-row.total-row {
    font-size: 1.05rem;
    font-weight: 700;
    color: #ffffff;
    padding-top: 8px;
    border-top: 1px dashed #333333;
}

.cart-summary-grand {
    font-family: 'Outfit', sans-serif;
    font-size: 1.3rem;
    font-weight: 800;
    color: #ffffff;
}

.cart-drawer-actions {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 10px;
}

.btn-clear-cart {
    padding: 12px 14px;
    font-size: 0.82rem;
    justify-content: center;
    background: transparent;
    color: #ffffff;
    border: 1px solid #333333;
}

.btn-clear-cart:hover {
    background: #141414;
    border-color: #555555;
}

.btn-checkout {
    padding: 12px 20px;
    font-size: 0.9rem;
    justify-content: center;
    background: #ffffff;
    color: #000000;
    border: 1px solid #ffffff;
    font-weight: 700;
}

.btn-checkout:hover {
    background: #e5e5e5;
    color: #000000;
}

/* Product Card Button State */
.btn-add-to-cart {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.btn-add-to-cart.added {
    background: linear-gradient(135deg, #10b981, #059669) !important;
    color: white !important;
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.4) !important;
    transform: scale(0.98);
}

@media (max-width: 480px) {
    .btn-header-cart .header-cart-text {
        display: none;
    }

    .btn-header-cart {
        padding: 8px 12px;
    }

    .cart-drawer {
        max-width: 100%;
    }
}

/* === Reduced Motion — kill all animations for a11y and perf === */
@media (prefers-reduced-motion: reduce) {

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

    .floating {
        animation: none !important;
    }

    .hero-glow {
        animation: none !important;
    }

    #particles-bg::before,
    #particles-bg::after {
        animation: none !important;
    }

    .stock-pulse-dot {
        animation: none !important;
    }
}

/* ==========================================================================
   AUTHENTICATION SYSTEM STYLES (Header & Modal)
   ========================================================================== */

/* Header Auth Button */
.btn-header-auth {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #ffffff;
    background: var(--gradient-primary);
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all var(--transition-normal);
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.35);
}

.btn-header-auth:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 22px rgba(139, 92, 246, 0.5);
    filter: brightness(1.1);
}

.btn-header-auth:active {
    transform: translateY(0);
}

.header-auth-icon {
    font-size: 1rem;
}

/* User Profile in Header */
.user-profile-menu {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 4px 8px 4px 4px;
    background: rgba(139, 92, 246, 0.12);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
}

.user-avatar-badge {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    box-shadow: 0 2px 8px rgba(139, 92, 246, 0.4);
}

.user-name-display {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    max-width: 110px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.btn-user-logout {
    display: flex;
    align-items: center;
    gap: 4px;
    background: rgba(248, 113, 113, 0.15);
    border: 1px solid rgba(248, 113, 113, 0.3);
    color: var(--accent-red);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 5px 10px;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn-user-logout:hover {
    background: var(--accent-red);
    color: #ffffff;
    border-color: var(--accent-red);
    transform: translateY(-1px);
}

/* Auth Modal Overlay */
.auth-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
}

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

/* Auth Modal Dialog */
.auth-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -46%) scale(0.95);
    width: 92%;
    max-width: 440px;
    background: #000000;
    border: 1px solid #262626;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.95), 0 0 0 1px rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.auth-modal.active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.auth-modal-close {
    position: absolute;
    top: 16px;
    right: 18px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #141414;
    border: 1px solid #262626;
    color: #a3a3a3;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.auth-modal-close:hover {
    background: #262626;
    color: #ffffff;
    border-color: #404040;
}

/* Modal Header */
.auth-modal-header {
    text-align: center;
    margin-bottom: 22px;
}

.auth-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: #ffffff;
    background: #141414;
    border-radius: var(--radius-full);
    border: 1px solid #262626;
    margin-bottom: 10px;
}

.auth-modal-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 6px;
    letter-spacing: -0.02em;
}

.auth-modal-desc {
    font-size: 0.88rem;
    color: #888888;
}

/* Tabs */
.auth-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: #0f0f0f;
    padding: 4px;
    border-radius: var(--radius-full);
    border: 1px solid #262626;
    margin-bottom: 22px;
}

.auth-tab-btn {
    padding: 10px 16px;
    border: none;
    background: transparent;
    color: #888888;
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.auth-tab-btn.active {
    background: #ffffff;
    color: #000000;
    box-shadow: 0 2px 10px rgba(255, 255, 255, 0.15);
}

/* Alert Notification */
.auth-alert {
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    animation: fadeIn 0.2s ease;
}

.auth-alert.error {
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.35);
    color: #fca5a5;
}

.auth-alert.success {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #ffffff;
}

/* Form Groups */
.auth-form .form-group {
    margin-bottom: 16px;
}

.auth-form label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: #a3a3a3;
    margin-bottom: 6px;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 14px;
    font-size: 1rem;
    color: #737373;
    pointer-events: none;
}

.input-wrapper input {
    width: 100%;
    padding: 11px 40px 11px 42px;
    background: #0d0d0d;
    border: 1px solid #262626;
    border-radius: var(--radius-md);
    color: #ffffff;
    font-size: 0.92rem;
    transition: all var(--transition-fast);
}

.input-wrapper input:focus {
    outline: none;
    border-color: #ffffff;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.2);
    background: #141414;
}

.btn-toggle-pwd {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    opacity: 0.6;
    transition: opacity var(--transition-fast);
}

.btn-toggle-pwd:hover {
    opacity: 1;
}

/* Options */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.82rem;
    margin-bottom: 20px;
    color: #a3a3a3;
}

.remember-me, .terms-agree {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.form-options input[type="checkbox"] {
    accent-color: #ffffff;
    width: 15px;
    height: 15px;
}

.forgot-pwd {
    color: #d4d4d4;
    text-decoration: none;
    transition: color var(--transition-fast);
}

.forgot-pwd:hover {
    color: #ffffff;
    text-decoration: underline;
}

/* Submit Button — Pure Black & White */
.btn-auth-submit {
    width: 100%;
    padding: 13px;
    font-size: 0.95rem;
    font-weight: 700;
    border-radius: var(--radius-md);
    background: #ffffff !important;
    color: #000000 !important;
    border: 1px solid #ffffff;
    box-shadow: 0 4px 16px rgba(255, 255, 255, 0.15);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn-auth-submit:hover {
    background: #e5e5e5 !important;
    color: #000000 !important;
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

/* Modal Footer */
.auth-modal-footer {
    text-align: center;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #262626;
    font-size: 0.85rem;
    color: #a3a3a3;
}

.auth-modal-footer a {
    color: #ffffff;
    font-weight: 600;
    text-decoration: underline;
    cursor: pointer;
}

.auth-modal-footer a:hover {
    color: #cccccc;
}

/* Light Theme Overrides for Auth Modal */
[data-theme="light"] .auth-modal {
    background: #ffffff;
    border-color: rgba(124, 58, 237, 0.12);
    box-shadow: 0 25px 60px rgba(124, 58, 237, 0.12), 0 0 0 1px rgba(124, 58, 237, 0.08);
}

[data-theme="light"] .auth-modal-overlay {
    background: rgba(15, 23, 42, 0.45);
}

[data-theme="light"] .auth-tabs {
    background: rgba(124, 58, 237, 0.06);
    border-color: rgba(124, 58, 237, 0.12);
}

[data-theme="light"] .input-wrapper input {
    background: #f8fafc;
    border-color: rgba(124, 58, 237, 0.15);
    color: var(--text-primary);
}

[data-theme="light"] .input-wrapper input:focus {
    background: #ffffff;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.15);
}

[data-theme="light"] .auth-modal-close {
    background: rgba(124, 58, 237, 0.06);
    color: var(--text-secondary);
}

[data-theme="light"] .user-profile-menu {
    background: rgba(124, 58, 237, 0.08);
    border-color: rgba(124, 58, 237, 0.15);
}

/* === Forgot Password & OTP Flow Styling === */
.form-hint-text {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.45;
    margin-bottom: 18px;
}

.btn-auth-back {
    width: 100%;
    margin-top: 10px;
    padding: 10px;
    background: transparent;
    border: 1px dashed var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn-auth-back:hover {
    background: rgba(139, 92, 246, 0.08);
    color: var(--accent-primary-light);
    border-color: var(--accent-primary);
}

.otp-notice-box {
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 10px 14px;
    font-size: 0.84rem;
    color: var(--text-secondary);
    margin-bottom: 16px;
    text-align: center;
}

.otp-notice-box strong {
    color: var(--accent-primary-light);
}

.otp-wrapper input {
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    font-size: 1.5rem !important;
    font-weight: 700;
    letter-spacing: 12px;
    text-align: center;
    padding-left: 24px !important;
    color: var(--accent-primary-light);
}

.otp-timer-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 18px;
}

.otp-countdown strong {
    color: var(--accent-gold);
}

.btn-resend-otp {
    background: none;
    border: none;
    color: var(--accent-primary-light);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    padding: 4px 6px;
    border-radius: 4px;
    transition: all var(--transition-fast);
}

.btn-resend-otp:disabled {
    color: var(--text-muted);
    cursor: not-allowed;
    opacity: 0.6;
}

.btn-resend-otp:not(:disabled):hover {
    background: rgba(139, 92, 246, 0.15);
    color: var(--accent-secondary);
}

/* Success View */
.auth-success-view {
    text-align: center;
    padding: 16px 8px;
    animation: fadeIn 0.3s ease;
}

.success-icon-badge {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px auto;
    border-radius: 50%;
    background: rgba(52, 211, 153, 0.15);
    border: 2px solid rgba(52, 211, 153, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    animation: pulseGlow 1.5s infinite alternate;
}

@keyframes pulseGlow {
    from { box-shadow: 0 0 10px rgba(52, 211, 153, 0.2); }
    to { box-shadow: 0 0 25px rgba(52, 211, 153, 0.5); }
}

.success-title {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.success-desc {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 24px;
}

/* User Profile Menu in Header */
.user-profile-menu {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #141414;
    border: 1px solid #262626;
    border-radius: var(--radius-full);
    padding: 4px 6px 4px 6px;
}

.user-avatar-badge {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #ffffff;
    color: #000000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.85rem;
}

.user-name-display {
    font-size: 0.88rem;
    font-weight: 600;
    color: #ffffff;
    max-width: 110px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding: 0 4px;
}

.btn-user-change-pwd {
    background: #1f1f1f;
    border: 1px solid #333333;
    color: #a3a3a3;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all var(--transition-fast);
}

.btn-user-change-pwd:hover {
    background: #333333;
    border-color: #666666;
    color: #ffffff;
    transform: scale(1.05);
}

.btn-user-logout {
    display: flex;
    align-items: center;
    gap: 4px;
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.25);
    color: #fca5a5;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 5px 10px;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn-user-logout:hover {
    background: rgba(239, 68, 68, 0.25);
    border-color: rgba(239, 68, 68, 0.5);
    color: #fee2e2;
    transform: translateY(-1px);
}

.btn-auth-back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-top: 10px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--text-secondary);
    padding: 10px;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all var(--transition-fast);
}

.btn-auth-back:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border-color: rgba(255, 255, 255, 0.25);
}