/* 
 * MMO Premium Shop - Light Theme Design System v4.0
 * Clean, Modern, Inspired by Divine Shop
 */
/* Inter is self-hosted: @font-face in brand.css (Google Fonts removed — blocked/slow in mainland China) */
@import url('sidebar.css');

/* ==================== CSS Variables - Minimalist Dark Theme ==================== */
:root {
    /* Minimal Dark Backgrounds (SaaS/Linear style) */
    --bg-body: #09090b;
    /* Zinc 950 */
    --bg-primary: #18181b;
    /* Zinc 900 */
    --bg-secondary: #09090b;
    --bg-tertiary: #27272a;
    /* Zinc 800 */
    --bg-card: #18181b;
    /* Zinc 900 */
    --bg-nav: #09090b;
    /* Zinc 950 */
    --bg-white: #18181b;
    /* Zinc 900 */
    --bg-dark: #000000;
    --bg-card-hover: #27272a;
    /* Zinc 800 */

    /* Clean Surfaces (Glassmorphism removed/simplified) */
    --glass-bg: rgba(24, 24, 27, 0.8);
    --glass-bg-light: rgba(39, 39, 42, 0.8);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.5);

    /* Primary Colors - Professional Blue Accent */
    --primary: #3b82f6;
    --primary-dark: #2563eb;
    --primary-light: #60a5fa;
    --primary-glow: rgba(59, 130, 246, 0.15);

    /* Secondary/Accent */
    --secondary: #a1a1aa;
    /* Zinc 400 */
    --accent: #3b82f6;
    /* Blue 500 */
    --accent-cyan: #06b6d4;
    /* Cyan 500 */
    --accent-light: rgba(59, 130, 246, 0.15);

    /* Gradients — subtle, professional */
    --gradient-primary: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    --gradient-hero: linear-gradient(135deg, #09090b 0%, #18181b 100%);
    --gradient-card: linear-gradient(180deg, rgba(39, 39, 42, 0.2) 0%, rgba(24, 24, 27, 0) 100%);
    --gradient-gold: linear-gradient(135deg, rgba(245, 158, 11, 0.12) 0%, rgba(217, 119, 6, 0.06) 100%);
    --gradient-success: linear-gradient(135deg, #10b981 0%, #059669 100%);
    --gradient-border: linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04));

    /* Status Colors */
    --success: #10b981;
    --success-light: rgba(16, 185, 129, 0.15);
    --warning: #f59e0b;
    --warning-light: rgba(245, 158, 11, 0.15);
    --danger: #ef4444;
    --danger-light: rgba(239, 68, 68, 0.15);
    --info: #3b82f6;
    --info-light: rgba(59, 130, 246, 0.15);
    --error: #ef4444;

    /* Text Colors - High Contrast */
    --text-main: #f4f4f5;
    /* Zinc 100 */
    --text-primary: #ffffff;
    --text-secondary: #a1a1aa;
    /* Zinc 400 */
    --text-muted: #71717a;
    /* Zinc 500 */
    --text-light: #52525b;
    /* Zinc 600 */

    /* Border Colors */
    --border: rgba(255, 255, 255, 0.1);
    --border-color: rgba(255, 255, 255, 0.1);
    --border-light: rgba(255, 255, 255, 0.05);
    --border-focus: rgba(255, 255, 255, 0.3);

    /* Shadows - Minimalist */
    --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.5);
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.5), 0 1px 2px -1px rgba(0, 0, 0, 0.5);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.5), 0 2px 4px -2px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.6), 0 4px 6px -4px rgba(0, 0, 0, 0.5);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.7), 0 8px 10px -6px rgba(0, 0, 0, 0.6);
    --shadow-nav: 0 1px 0 rgba(255, 255, 255, 0.1);
    --shadow-glow: 0 0 15px rgba(255, 255, 255, 0.05);
    --shadow-card-hover: 0 0 0 1px rgba(255, 255, 255, 0.2), 0 10px 30px -5px rgba(0, 0, 0, 0.5);
    --shadow-glow-pink: 0 4px 20px rgba(229, 57, 53, 0.1);

    /* Spacing & Sizing */
    --container-width: 1400px;
    --radius: 0.5rem;
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.25rem;
    --radius-full: 9999px;

    /* Transitions */
    --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);

    /* ============ Premium Dark + Gradient (v5.0) ============ */
    /* Deeper bg with purple tint */
    --bg-base: #0a0a14;
    --bg-elevated: #13131f;
    --bg-glass: rgba(19, 19, 31, 0.7);
    --bg-glass-strong: rgba(19, 19, 31, 0.85);

    /* Premium gradients */
    --grad-primary: linear-gradient(135deg, #8b5cf6 0%, #06b6d4 100%);
    --grad-primary-hover: linear-gradient(135deg, #a78bfa 0%, #22d3ee 100%);
    --grad-hero: linear-gradient(135deg, #7c3aed 0%, #ec4899 50%, #06b6d4 100%);
    --grad-gold: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
    --grad-danger: linear-gradient(135deg, #ef4444 0%, #f97316 100%);
    --grad-success-new: linear-gradient(135deg, #10b981 0%, #06b6d4 100%);
    --grad-pink: linear-gradient(135deg, #ec4899 0%, #8b5cf6 100%);

    /* Glow effects */
    --glow-purple: 0 0 40px rgba(139, 92, 246, 0.3);
    --glow-purple-strong: 0 0 60px rgba(139, 92, 246, 0.5);
    --glow-cyan: 0 0 30px rgba(6, 182, 212, 0.25);
    --glow-pink: 0 0 30px rgba(236, 72, 153, 0.25);
    --glow-gold: 0 0 20px rgba(251, 191, 36, 0.4);

    /* Smooth easing */
    --ease-smooth: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
    --transition-smooth: 0.4s var(--ease-smooth);
}

/* ============ Premium Utility Classes ============ */

/* Glass morphism card */
.glass-card {
    background: var(--bg-glass);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-xl);
}

.glass-card-strong {
    background: var(--bg-glass-strong);
    backdrop-filter: blur(24px) saturate(200%);
    -webkit-backdrop-filter: blur(24px) saturate(200%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-xl);
}

/* Gradient text */
.gradient-text {
    background: var(--grad-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

.gradient-text-hero {
    background: var(--grad-hero);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

.gradient-text-gold {
    background: var(--grad-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

/* Premium gradient button */
.btn-gradient {
    background: var(--grad-primary);
    color: #fff;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-lg);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.25);
}

.btn-gradient::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.6s var(--ease-smooth);
}

.btn-gradient:hover {
    background: var(--grad-primary-hover);
    color: #fff;
    box-shadow: var(--glow-purple);
    transform: translateY(-2px);
}

.btn-gradient:hover::before {
    left: 100%;
}

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

/* Outline glass button */
.btn-glass {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-lg);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
    backdrop-filter: blur(10px);
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(139, 92, 246, 0.4);
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.15);
}

/* Premium badges */
.badge-premium {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: #fff;
}

.badge-bestseller {
    background: var(--grad-gold);
    box-shadow: var(--glow-gold);
    color: #78350f;
}

.badge-discount {
    background: var(--grad-danger);
    box-shadow: 0 0 15px rgba(239, 68, 68, 0.3);
}

.badge-new {
    background: var(--grad-primary);
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.3);
}

.badge-hot {
    background: var(--grad-pink);
    box-shadow: var(--glow-pink);
}

/* Gradient border effect */
.gradient-border {
    position: relative;
    background: var(--bg-elevated);
    border-radius: var(--radius-xl);
}

.gradient-border::before {
    content: '';
    position: absolute;
    inset: 0;
    padding: 1px;
    background: var(--grad-primary);
    border-radius: inherit;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;
    pointer-events: none;
}

/* Floating animation */
@keyframes float-y {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

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

/* Subtle glow pulse */
@keyframes glow-pulse {
    0%, 100% { box-shadow: 0 0 20px rgba(139, 92, 246, 0.25); }
    50% { box-shadow: 0 0 40px rgba(139, 92, 246, 0.5); }
}

.animate-glow {
    animation: glow-pulse 3s ease-in-out infinite;
}

/* Shine effect overlay */
@keyframes shine {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.shine-effect {
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.1) 50%,
        transparent 100%);
    background-size: 200% 100%;
    animation: shine 3s infinite;
}

/* Mesh gradient background (for hero) */
.mesh-gradient {
    background-image:
        radial-gradient(at 20% 30%, rgba(139, 92, 246, 0.25) 0%, transparent 45%),
        radial-gradient(at 80% 20%, rgba(236, 72, 153, 0.2) 0%, transparent 50%),
        radial-gradient(at 50% 80%, rgba(6, 182, 212, 0.2) 0%, transparent 45%),
        radial-gradient(at 90% 90%, rgba(139, 92, 246, 0.15) 0%, transparent 40%);
}

/* Premium card hover */
.hover-lift {
    transition: var(--transition-smooth);
}

.hover-lift:hover {
    transform: translateY(-4px);
    box-shadow: var(--glow-purple), 0 20px 40px rgba(0, 0, 0, 0.4);
}

/* Glow on hover */
.hover-glow-purple:hover { box-shadow: var(--glow-purple); }
.hover-glow-cyan:hover { box-shadow: var(--glow-cyan); }
.hover-glow-pink:hover { box-shadow: var(--glow-pink); }

/* Floating blob (for hero bg) */
.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.6;
    pointer-events: none;
    z-index: 0;
}

.blob-purple { background: #8b5cf6; }
.blob-cyan { background: #06b6d4; }
.blob-pink { background: #ec4899; }

@keyframes blob-float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -30px) scale(1.1); }
    66% { transform: translate(-20px, 20px) scale(0.95); }
}

.blob-animated {
    animation: blob-float 12s ease-in-out infinite;
}

/* Dark theme is default */

/* ==================== Keyframe Animations ==================== */
@keyframes fadeInUp {
    from {

        opacity: 0;
        transform: translateY(20px);
    }

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

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

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(10px);
    }

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

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a:hover {
    color: var(--primary-light);
}

ul {
    list-style: none;
}

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

/* ==================== Layout ==================== */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 2.5rem 0;
}

.grid {
    display: grid;
    gap: 1.5rem;
}

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

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

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

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

.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Utility Classes */
.mb-1 {
    margin-bottom: 0.5rem;
}

.mb-2 {
    margin-bottom: 1rem;
}

.mb-3 {
    margin-bottom: 1.5rem;
}

.mb-4 {
    margin-bottom: 2rem;
}

.mt-1 {
    margin-top: 0.5rem;
}

.mt-2 {
    margin-top: 1rem;
}

.mt-3 {
    margin-top: 1.5rem;
}

.mt-4 {
    margin-top: 2rem;
}

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

.text-success {
    color: var(--success);
}

.text-warning {
    color: var(--warning);
}

.text-danger {
    color: var(--danger);
}

.text-primary {
    color: var(--primary);
}

.text-secondary {
    color: var(--text-secondary);
}

.font-bold {
    font-weight: 700;
}

.hidden {
    display: none !important;
}

/* ==================== Navbar - Dark Header ==================== */
.navbar {
    background: var(--bg-nav);
    box-shadow: var(--shadow-nav);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 0.875rem 0;
    border-bottom: none;
}

.navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.brand {
    font-size: 1.5rem;
    font-weight: 800;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    letter-spacing: -0.025em;
    transition: var(--transition);
}

.brand:hover {
    opacity: 0.85;
}

.search-box {
    flex: 1;
    max-width: 500px;
    position: relative;
}

.search-input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.75rem;
    border: none;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    transition: var(--transition);
    color: #ffffff;
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.search-input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.2);
}

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.nav-actions .btn {
    color: #ffffff;
}

.nav-actions .btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

.nav-actions .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

/* ==================== Hero Section ==================== */
.hero {
    margin-top: 1.5rem;
    border-radius: var(--radius-2xl);
    overflow: hidden;
    position: relative;
    height: 320px;
    background: var(--gradient-hero);
    z-index: 1;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 80%, rgba(0, 102, 204, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(0, 82, 163, 0.15) 0%, transparent 50%);
    z-index: 1;
}

.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.3) 50%, transparent 100%);
    z-index: 2;
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.5;
    transition: var(--transition-slow);
}

.hero:hover .hero-img {
    opacity: 0.55;
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 3rem;
    transform: translateY(-50%);
    color: white;
    max-width: 500px;
    z-index: 10;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    line-height: 1.1;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

.hero-desc {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    opacity: 0.9;
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.5);
}

/* ==================== Cards - Glassmorphism ==================== */
.card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    border: 1px solid var(--glass-border);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-card);
    pointer-events: none;
    z-index: 0;
    /* Behind content */
}

/* Ensure all card content is above the ::before overlay */
.card>* {
    position: relative;
    z-index: 1;
}

.card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
}

/* Sidebar Card */
.sidebar-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 5.5rem;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
}

/* Wallet Card - Premium Gradient */
.wallet-card {
    background: var(--gradient-primary);
    border-radius: var(--radius-xl);
    padding: 2rem;
    color: white;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.wallet-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.wallet-label {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-bottom: 0.5rem;
}

.wallet-balance {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

/* ==================== Page Layout (Shop) ==================== */
.page-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.cat-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-weight: 500;
    margin-bottom: 0.25rem;
    transition: var(--transition-fast);
    position: relative;
    overflow: hidden;
}

.cat-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 3px;
    background: var(--gradient-primary);
    transform: scaleY(0);
    transition: var(--transition-fast);
}

.cat-link:hover {
    background: var(--glass-bg-light);
    color: var(--primary-light);
    padding-left: 1.25rem;
}

.cat-link:hover::before {
    transform: scaleY(1);
}

.cat-link.active {
    background: var(--gradient-primary);
    color: white;
    font-weight: 600;
    box-shadow: var(--shadow-sm);
}

.cat-link.active::before {
    display: none;
}

/* ==================== Product Grid ==================== */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
}

@media (min-width: 1400px) {
    .product-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

@media (max-width: 1200px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

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

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

/* ==================== Skeleton Loading ==================== */
.skeleton {
    background: var(--bg-tertiary);
    background: linear-gradient(110deg, var(--bg-tertiary) 8%, var(--bg-card-hover) 18%, var(--bg-tertiary) 33%);
    border-radius: 5px;
    background-size: 200% 100%;
    animation: 1.5s shine linear infinite;
    color: transparent !important;
    pointer-events: none;
    user-select: none;
}

.skeleton * {
    visibility: hidden;
}

.product-card.loading {
    border-color: transparent;
    box-shadow: none;
}

.product-card.loading .product-img-wrap {
    background: var(--bg-tertiary);
}

@keyframes shine {
    to {
        background-position-x: -200%;
    }
}

/* Product Card - Minimalist Dark Style */
.product-card {
    background: var(--bg-card);
    border-radius: 12px;
    border: 1px solid var(--border);
    overflow: hidden;
    transition: all 0.2s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    box-shadow: none;
}

.product-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-card-hover);
    border-color: rgba(255, 255, 255, 0.2);
}

.product-img-wrap {
    aspect-ratio: 16/9;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-tertiary);
    position: relative;
    overflow: hidden;
}

.product-card:hover .product-img-wrap {
    background: var(--bg-card-hover);
}

.product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.product-body {
    padding: 1rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-category {
    font-size: 0.7rem;
    color: var(--primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.35rem;
}

.product-name {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-main);
    margin-bottom: 0.75rem;
    line-height: 1.4;
    min-height: 2.5em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-clamp: 2;
}

.product-price-row {
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.price-group {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
}

.price-current {
    color: var(--primary-light);
    font-weight: 700;
    font-size: 1rem;
}

.price-old {
    font-size: 0.85rem;
    text-decoration: line-through;
    color: #9ca3af;
}

.discount-badge {
    background: #dc2626;
    color: white;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    margin-left: auto;
}

/* Stock Badge - Divine Style */
.stock-badge {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    font-size: 0.7rem;
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    font-weight: 600;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    z-index: 5;
}

/* Out of Stock Style */
.product-card.out-of-stock {
    opacity: 0.75;
}

.product-card.out-of-stock .product-img {
    filter: grayscale(100%);
}

.product-card.out-of-stock .stock-badge.out {
    background: rgba(55, 65, 81, 0.9);
    color: white;
    border: 1px solid #4b5563;
}

.product-card.out-of-stock:hover {
    transform: none;
    box-shadow: none;
    border-color: var(--border);
    cursor: not-allowed;
}

.stock-badge.out {
    background: var(--danger-light);
    color: var(--danger);
    border-color: rgba(239, 68, 68, 0.3);
}

.stock-badge.in {
    background: var(--success-light);
    color: var(--success);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

/* Guest checkout incentive banner */
.guest-incentive-banner {
    margin-top: 1rem;
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.08) 0%, rgba(217, 119, 6, 0.04) 100%);
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-radius: 12px;
}

.incentive-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--warning);
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}

.incentive-list {
    list-style: none;
    padding: 0;
    margin: 0 0 0.75rem 0;
}

.incentive-list li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.incentive-list li i {
    color: var(--success);
    font-size: 0.75rem;
}

.incentive-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.85rem;
    text-decoration: none;
    transition: all 0.2s;
}

.incentive-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.35);
}

/* ==================== Buttons - Glow Effect ==================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.65rem 1.25rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    font-size: 0.9rem;
    gap: 0.5rem;
    border: none;
    transition: var(--transition);
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, transparent 50%);
    opacity: 0;
    transition: var(--transition-fast);
}

.btn:hover::before {
    opacity: 1;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 1px 3px rgba(37, 99, 235, 0.3);
}

.btn-primary:hover {
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
    color: white;
    filter: brightness(1.1);
}

.btn-secondary {
    background: var(--glass-bg);
    color: var(--text-main);
    border: 1px solid var(--glass-border);
}

.btn-secondary:hover {
    background: var(--glass-bg-light);
    color: var(--text-main);
    border-color: var(--primary);
}

.btn-danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.2);
}

.btn-success {
    background: var(--gradient-success);
    color: white;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.2);
}

.btn-lg {
    padding: 0.875rem 1.75rem;
    font-size: 1rem;
}

.btn-full {
    width: 100%;
}

/* ==================== Badges ==================== */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.3rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    background: var(--glass-bg);
    color: var(--text-secondary);
    border: 1px solid var(--glass-border);
}

.badge-success {
    background: var(--success-light);
    color: var(--success);
    border-color: rgba(16, 185, 129, 0.3);
}

.badge-warning {
    background: var(--warning-light);
    color: var(--warning);
    border-color: rgba(245, 158, 11, 0.3);
}

.badge-danger {
    background: var(--danger-light);
    color: var(--danger);
    border-color: rgba(239, 68, 68, 0.3);
}

.badge-vip {
    background: var(--gradient-gold);
    color: white;
    border: none;
    box-shadow: 0 2px 10px rgba(245, 158, 11, 0.3);
}

/* ==================== Forms ==================== */
.form-group {
    margin-bottom: 1.25rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-main);
    font-size: 0.9rem;
}

.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    background: var(--glass-bg);
    font-size: 0.95rem;
    color: var(--text-main);
    transition: var(--transition);
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-glow);
    background: var(--glass-bg-light);
}

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

/* ==================== Alerts ==================== */
.alert {
    padding: 1rem 1.25rem;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    backdrop-filter: blur(10px);
}

.alert-success {
    background: var(--success-light);
    color: var(--success);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.alert-warning {
    background: var(--warning-light);
    color: var(--warning);
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.alert-danger {
    background: var(--danger-light);
    color: var(--danger);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

/* ==================== Trust Badges ==================== */
.trust-badge {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    border: 1px solid var(--glass-border);
    transition: var(--transition);
}

.trust-badge:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

.trust-badge .icon {
    font-size: 2rem;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    border-radius: var(--radius-lg);
    color: white;
}

.trust-badge .title {
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 0.25rem;
}

.trust-badge .desc {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ==================== Footer ==================== */
.footer {
    background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-body) 100%);
    padding: 4rem 0 2rem;
    margin-top: 4rem;
    border-top: 1px solid var(--glass-border);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.footer h4 {
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-main);
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--text-muted);
    transition: var(--transition-fast);
}

.footer-links a:hover {
    color: var(--primary-light);
    padding-left: 0.25rem;
}

/* ==================== Tables ==================== */
table {
    width: 100%;
    border-collapse: collapse;
}

table th,
table td {
    padding: 0.875rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

table th {
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

table tr:hover td {
    background-color: var(--glass-bg);
}

/* ==================== Format Helpers ==================== */
code {
    background: var(--glass-bg);
    padding: 0.2rem 0.5rem;
    border-radius: var(--radius-sm);
    font-family: 'Monaco', 'Consolas', monospace;
    font-size: 0.85rem;
    color: var(--primary-light);
    border: 1px solid var(--glass-border);
}

hr {
    border: none;
    border-top: 1px solid var(--border);
    margin: 1rem 0;
}

/* ==================== Scrollbar ==================== */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--bg-tertiary);
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

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

/* ==================== Responsive ==================== */
@media (max-width: 1024px) {
    .page-layout {
        grid-template-columns: 1fr;
    }

    .sidebar-card {
        position: relative;
        top: 0;
    }

    .hero {
        height: 260px;
    }

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

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

/* phone breakpoint = shell breakpoint (brand.css: phone ≤ 767px); was 768px, which turned tables into scroll boxes at exactly 768 */
@media (max-width: 767px) {
    .navbar-inner {
        flex-wrap: wrap;
        gap: 1rem;
    }

    .search-box {
        order: 3;
        flex: 1 0 100%;
        max-width: none;
    }

    .nav-actions {
        gap: 0.5rem;
    }

    .nav-actions .btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.85rem;
    }

    /* iOS Safari: prevent input focus zoom */
    .search-input,
    .form-input,
    input[type="text"],
    input[type="email"],
    input[type="password"],
    input[type="tel"],
    input[type="number"],
    textarea,
    select {
        font-size: 16px;
    }

    /* Tables: allow horizontal scroll on small screens */
    table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    table th,
    table td {
        white-space: nowrap;
    }

    .hero {
        height: 220px;
    }

    .hero-content {
        left: 1.5rem;
        right: 1.5rem;
        max-width: none;
    }

    .hero-title {
        font-size: 1.5rem;
    }

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

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

    .grid-4,
    .grid-3 {
        grid-template-columns: 1fr 1fr;
    }

    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 1rem;
    }

    .product-img-wrap {
        aspect-ratio: 16/9;
        padding: 0;
    }

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

    .product-body {
        padding: 1rem;
    }

    .price {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    .hero {
        height: 180px;
        border-radius: var(--radius-lg);
    }

    .hero-content {
        left: 1rem;
        right: 1rem;
    }

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

    .grid-4,
    .grid-3,
    .grid-2 {
        grid-template-columns: 1fr;
    }
}

/* ==================== Simple Homepage Layout ==================== */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.5rem 1rem;
}

.home-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Sidebar Components */
.sidebar-card {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 1.25rem;
    border: 1px solid var(--border);
    box-shadow: none;
}

.sidebar-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border);
}

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

.sidebar-header h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-main);
    margin: 0;
}

/* Recent Buyers List */
.recent-buyers {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.buyer-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem;
    border-radius: 8px;
    transition: background 0.2s;
}

.buyer-item:hover {
    background: var(--bg-card-hover);
}

.buyer-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 0.8rem;
    flex-shrink: 0;
}

.buyer-info {
    flex: 1;
    min-width: 0;
}

.buyer-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-main);
}

.buyer-product {
    font-size: 0.75rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.buyer-time {
    font-size: 0.7rem;
    color: var(--text-muted);
    background: var(--bg-tertiary);
    padding: 2px 6px;
    border-radius: 4px;
}

/* Quick Stats */
.quick-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}

.stat-item {
    background: var(--bg-tertiary);
    padding: 0.75rem;
    border-radius: 8px;
    text-align: center;
    border: 1px solid var(--border);
}

.stat-number {
    display: block;
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
}

/* Responsive Layout */
@media (max-width: 992px) {
    .homepage-layout {
        flex-direction: column;
    }

    .home-sidebar {
        width: 100%;
        position: static;
        flex-direction: row;
        overflow-x: auto;
        padding-bottom: 0.5rem;
        align-items: stretch;
        height: auto;
        max-height: none;
    }

    .sidebar-card,
    .sidebar-banner {
        min-width: 280px;
        flex: 1;
    }
}

@media (max-width: 600px) {
    .home-sidebar {
        flex-direction: column;
    }

    .sidebar-card,
    .sidebar-banner {
        min-width: 100%;
    }
}

/* =====================================================================
   LIGHT THEME OVERRIDES (style.css)
   - Chỉ áp dụng khi <html data-theme="light"> → giao diện tối (gốc) KHÔNG đổi.
   - Biến: html[data-theme="light"] (bổ sung các biến v5.0 mà theme.css không có).
   - Thành phần: :where(html[data-theme="light"]) giữ độ ưu tiên bằng selector gốc,
     nên CSS riêng của từng template (nạp sau) vẫn thắng — đây chỉ là "mặc định sáng".
   - Màu chữ trên nền nhạt đạt WCAG AA (≥ 4.5:1).
   ===================================================================== */

/* ---------- Biến v5.0 (nền nổi, kính, gradient, quầng sáng) ---------- */
html[data-theme="light"] {
    --bg-base: #f3f6fb;
    --bg-elevated: #ffffff;
    --bg-glass: rgba(255, 255, 255, 0.80);
    --bg-glass-strong: rgba(255, 255, 255, 0.92);

    /* Đậm hơn để chữ gradient / chữ trắng trên nút vẫn đọc được trên nền sáng */
    --grad-primary: linear-gradient(135deg, #7c3aed 0%, #0e7490 100%);
    --grad-primary-hover: linear-gradient(135deg, #6d28d9 0%, #155e75 100%);
    --grad-hero: linear-gradient(135deg, #7c3aed 0%, #db2777 50%, #0e7490 100%);
    --grad-danger: linear-gradient(135deg, #dc2626 0%, #c2410c 100%);
    --grad-success-new: linear-gradient(135deg, #047857 0%, #0e7490 100%);
    --grad-pink: linear-gradient(135deg, #db2777 0%, #7c3aed 100%);

    /* Quầng sáng dịu lại trên nền trắng */
    --glow-purple: 0 0 40px rgba(124, 58, 237, 0.16);
    --glow-purple-strong: 0 0 60px rgba(124, 58, 237, 0.26);
    --glow-cyan: 0 0 30px rgba(14, 116, 144, 0.16);
    --glow-pink: 0 0 30px rgba(219, 39, 119, 0.16);
    --glow-gold: 0 0 20px rgba(217, 119, 6, 0.22);
    --shadow-glow-pink: 0 4px 20px rgba(229, 57, 53, 0.08);
}

/* ---------- Tiện ích chữ: đủ tương phản trên nền trắng ---------- */
:where(html[data-theme="light"]) .text-success { color: #047857; }
:where(html[data-theme="light"]) .text-warning { color: #b45309; }
:where(html[data-theme="light"]) .text-danger { color: #b91c1c; }

/* ---------- Kính / thẻ cao cấp ---------- */
:where(html[data-theme="light"]) .glass-card {
    border-color: var(--glass-border);
    box-shadow: var(--shadow-sm);
}
:where(html[data-theme="light"]) .glass-card-strong {
    border-color: rgba(15, 23, 42, 0.12);
    box-shadow: var(--shadow-md);
}
:where(html[data-theme="light"]) .gradient-text-gold {
    background: linear-gradient(135deg, #b45309 0%, #d97706 100%);
    -webkit-background-clip: text;
    background-clip: text;
}

/* ---------- Nút ---------- */
:where(html[data-theme="light"]) .btn-gradient { box-shadow: 0 6px 16px -6px rgba(124, 58, 237, 0.45); }
:where(html[data-theme="light"]) .btn-gradient:hover { box-shadow: 0 10px 22px -8px rgba(124, 58, 237, 0.5); }
:where(html[data-theme="light"]) .btn-glass {
    background: #ffffff;
    border-color: rgba(15, 23, 42, 0.12);
    box-shadow: var(--shadow-xs);
}
:where(html[data-theme="light"]) .btn-glass:hover {
    background: #f8fafc;
    border-color: rgba(124, 58, 237, 0.35);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.08);
}
:where(html[data-theme="light"]) .btn-secondary {
    background: #ffffff;
    border-color: rgba(15, 23, 42, 0.12);
    box-shadow: var(--shadow-xs);
}
:where(html[data-theme="light"]) .btn-secondary:hover {
    background: var(--bg-card-hover);
    border-color: var(--primary);
}
:where(html[data-theme="light"]) .btn-primary { box-shadow: 0 1px 3px rgba(37, 99, 235, 0.25), 0 4px 10px -4px rgba(37, 99, 235, 0.35); }
:where(html[data-theme="light"]) .btn-danger { box-shadow: 0 2px 8px rgba(220, 38, 38, 0.18); }
:where(html[data-theme="light"]) .btn-success { box-shadow: 0 2px 8px rgba(5, 150, 105, 0.18); }

/* ---------- Huy hiệu ---------- */
:where(html[data-theme="light"]) .badge-bestseller { color: #78350f; }
:where(html[data-theme="light"]) .badge-success { color: #047857; border-color: rgba(5, 150, 105, 0.28); }
:where(html[data-theme="light"]) .badge-warning { color: #92400e; border-color: rgba(217, 119, 6, 0.30); }
:where(html[data-theme="light"]) .badge-danger { color: #b91c1c; border-color: rgba(220, 38, 38, 0.25); }
:where(html[data-theme="light"]) .badge-vip {
    color: #92400e;
    box-shadow: 0 0 0 1px rgba(217, 119, 6, 0.30), 0 2px 8px rgba(217, 119, 6, 0.15);
}

/* ---------- Thông báo ---------- */
:where(html[data-theme="light"]) .alert-success { color: #047857; border-color: rgba(5, 150, 105, 0.28); }
:where(html[data-theme="light"]) .alert-warning { color: #92400e; border-color: rgba(217, 119, 6, 0.30); }
:where(html[data-theme="light"]) .alert-danger { color: #b91c1c; border-color: rgba(220, 38, 38, 0.25); }

/* ---------- Thẻ / khung chung: trắng + viền mảnh + bóng nhẹ ---------- */
:where(html[data-theme="light"]) .card,
:where(html[data-theme="light"]) .sidebar-card,
:where(html[data-theme="light"]) .trust-badge { box-shadow: var(--shadow-sm); }
:where(html[data-theme="light"]) .card:hover,
:where(html[data-theme="light"]) .trust-badge:hover { box-shadow: var(--shadow-md); }
:where(html[data-theme="light"]) .stat-item { background: var(--bg-secondary); }

/* ---------- Thẻ sản phẩm ---------- */
:where(html[data-theme="light"]) .product-card { box-shadow: var(--shadow-xs); }
:where(html[data-theme="light"]) .product-card:hover { border-color: rgba(37, 99, 235, 0.30); }
:where(html[data-theme="light"]) .product-card.out-of-stock:hover { border-color: var(--border); box-shadow: none; }
:where(html[data-theme="light"]) .price-old { color: var(--text-muted); }
:where(html[data-theme="light"]) .stock-badge.in { color: #047857; border-color: rgba(5, 150, 105, 0.28); }
:where(html[data-theme="light"]) .stock-badge.out { color: #b91c1c; border-color: rgba(220, 38, 38, 0.25); }

/* ---------- Banner mời đăng ký khi mua không cần tài khoản ---------- */
:where(html[data-theme="light"]) .guest-incentive-banner {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.10) 0%, rgba(245, 158, 11, 0.04) 100%);
    border-color: rgba(217, 119, 6, 0.28);
}
:where(html[data-theme="light"]) .incentive-header { color: #b45309; }
:where(html[data-theme="light"]) .incentive-btn { background: linear-gradient(135deg, #d97706, #b45309); }
:where(html[data-theme="light"]) .incentive-btn:hover { box-shadow: 0 4px 12px rgba(180, 83, 9, 0.30); }

/* ---------- Hero ---------- */
/* Hero có ảnh nền (.hero) là banner tối có chủ đích: giữ nền tối + lớp phủ + chữ trắng có bóng.
   Tiêu đề hero nằm trên nền sáng (không trong .hero) thì bỏ bóng đen. */
:where(html[data-theme="light"]) .hero { background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%); box-shadow: var(--shadow-md); }
:where(html[data-theme="light"]) .hero-title,
:where(html[data-theme="light"]) .hero-desc { text-shadow: none; }
:where(html[data-theme="light"]) .hero .hero-title { text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5); }
:where(html[data-theme="light"]) .hero .hero-desc { text-shadow: 0 1px 10px rgba(0, 0, 0, 0.5); }
:where(html[data-theme="light"]) .mesh-gradient {
    background-image:
        radial-gradient(at 20% 30%, rgba(124, 58, 237, 0.10) 0%, transparent 45%),
        radial-gradient(at 80% 20%, rgba(219, 39, 119, 0.08) 0%, transparent 50%),
        radial-gradient(at 50% 80%, rgba(8, 145, 178, 0.08) 0%, transparent 45%),
        radial-gradient(at 90% 90%, rgba(124, 58, 237, 0.06) 0%, transparent 40%);
}
:where(html[data-theme="light"]) .blob { opacity: 0.18; }
:where(html[data-theme="light"]) .shine-effect {
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.6) 50%, transparent 100%);
    background-size: 200% 100%;
}
:where(html[data-theme="light"]) .hover-lift:hover { box-shadow: var(--glow-purple), 0 20px 40px -12px rgba(15, 23, 42, 0.18); }

/* ---------- Bảng, mã, thanh cuộn ---------- */
:where(html[data-theme="light"]) table tr:hover td { background-color: var(--bg-card-hover); }
:where(html[data-theme="light"]) code { background: var(--bg-secondary); }
:where(html[data-theme="light"])::-webkit-scrollbar-thumb,
:where(html[data-theme="light"]) ::-webkit-scrollbar-thumb { background: #cbd5e1; }
:where(html[data-theme="light"])::-webkit-scrollbar-thumb:hover,
:where(html[data-theme="light"]) ::-webkit-scrollbar-thumb:hover { background: var(--primary); }
