/* ========================================
   FLUORITE THEME - Premium Gaming Store
   Purple gradient design inspired by fluorite.store
   ======================================== */

:root {
    /* Fluorite Purple Theme */
    --primary: #805AD5;
    --primary-hover: #6B46C1;
    --primary-light: rgba(128, 90, 213, 0.1);
    --primary-glow: rgba(128, 90, 213, 0.4);

    --secondary: #6366F1;
    --secondary-hover: #4F46E5;

    --accent: #A855F7;
    --accent-glow: rgba(168, 85, 247, 0.4);

    /* Dark Background */
    --bg-dark: #0a0a0b;
    --bg-card: #141417;
    --bg-elevated: #1a1a1f;
    --bg-input: rgba(20, 20, 23, 0.8);

    /* Borders */
    --border-color: rgba(128, 90, 213, 0.2);
    --border-subtle: rgba(255, 255, 255, 0.06);

    /* Text */
    --text-main: #fafafa;
    --text-muted: #a1a1aa;
    --text-subtle: #71717a;

    /* Status Colors */
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --info: #3b82f6;

    /* Spacing & Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
}

/* ========================================
   BASE STYLES
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Animated Background Gradient */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(128, 90, 213, 0.15), transparent),
        radial-gradient(ellipse 60% 40% at 100% 0%, rgba(99, 102, 241, 0.1), transparent),
        radial-gradient(ellipse 60% 40% at 0% 100%, rgba(168, 85, 247, 0.08), transparent);
    pointer-events: none;
    z-index: -1;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
}

img {
    max-width: 100%;
    height: auto;
}

/* ========================================
   TYPOGRAPHY
   ======================================== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-main);
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.75rem); }

.text-gradient {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-purple { color: var(--primary); }
.text-muted { color: var(--text-muted); }

/* ========================================
   LAYOUT
   ======================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 768px) {
    .container { padding: 0 2rem; }
}

/* ========================================
   NAVBAR - Fluorite Style
   ======================================== */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(10, 10, 11, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-subtle);
    padding: 0;
}

.nav-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    height: 52px;
    width: 100%;
    min-height: 52px;
}

.nav-brand {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    align-items: center;
}

.nav-toolbar {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    min-width: 0;
    max-width: 100%;
    text-decoration: none;
    line-height: 1;
}

.logo img {
    height: 32px;
    width: 32px;
    object-fit: contain;
    border-radius: 8px;
    flex-shrink: 0;
}

.logo-text {
    color: var(--text-main);
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: min(42vw, 200px);
}

@media (max-width: 480px) {
    .logo-text {
        max-width: min(36vw, calc(100vw - 108px));
    }
}

.logo-accent { color: var(--primary); }

@media (min-width: 768px) {
    .nav-content {
        height: 56px;
        min-height: 56px;
    }

    .logo img {
        height: 36px;
        width: 36px;
    }

    .logo-text {
        font-size: 1.05rem;
        max-width: 280px;
    }
}

.nav-links {
    display: none;
    align-items: center;
    gap: 8px;
}

@media (min-width: 768px) {
    .nav-links { display: flex; }

    .navbar .nav-content {
        display: grid;
        grid-template-columns: minmax(0, auto) 1fr auto;
        align-items: center;
        gap: 1rem;
    }

    .navbar .nav-brand {
        justify-self: start;
    }

    .navbar .nav-links {
        justify-self: center;
        display: flex !important;
    }

    .navbar .nav-toolbar {
        justify-self: end;
    }
}

.nav-links a {
    padding: 8px 16px;
    border-radius: var(--radius-full);
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
    transition: all 0.2s ease;
}

.nav-links a:hover:not(.btn), .nav-links a.active:not(.btn) {
    color: var(--text-main);
    background: var(--primary-light);
}

.nav-links a.btn {
    margin-left: 4px;
}

.nav-links a.btn-primary {
    color: #fff;
}

.nav-links a.btn-primary:hover {
    color: #fff;
    text-decoration: none;
}

/* Hamburger Menu — size unified with .nav-action-btn below */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    padding: 0;
    background: rgba(128, 90, 213, 0.15);
    border: 1.5px solid rgba(128, 90, 213, 0.55);
    border-radius: 10px;
    cursor: pointer;
    flex-shrink: 0;
    box-shadow: 0 0 8px rgba(128, 90, 213, 0.2);
}

@media (max-width: 991px) {
    .navbar .nav-actions .hamburger {
        display: flex !important;
    }
}

@media (min-width: 992px) {
    .hamburger { display: none !important; }
}

.hamburger span {
    display: block;
    width: 20px;
    height: 2px;
    background: #ffffff;
    border-radius: 99px;
    transition: all 0.3s ease;
}

/* Mobile Menu */
.mobile-menu,
#mobileMenu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 10, 11, 0.98);
    border-bottom: 1px solid var(--border-subtle);
    padding: calc(72px + env(safe-area-inset-top, 0px)) 1rem 1rem;
    padding-bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
    flex-direction: column;
    gap: 0.5rem;
    z-index: 200000;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.mobile-menu.active { display: flex; }

.mobile-menu a {
    padding: 12px 16px;
    border-radius: var(--radius-md);
    color: var(--text-muted);
    font-weight: 500;
}

.mobile-menu a:hover {
    background: var(--primary-light);
    color: var(--text-main);
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero {
    padding: 72px 0 48px;
    text-align: center;
    position: relative;
}

@media (min-width: 768px) {
    .hero { padding: 96px 0 64px; text-align: left; }
}

.hero-eyebrow {
    display: inline-block;
    padding: 6px 14px;
    margin-bottom: 1.25rem;
    background: var(--primary-light);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--primary);
}

.hero-title {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin-bottom: 1.25rem;
}

.hero-brand {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.hero-tagline {
    font-size: clamp(1.5rem, 4vw, 2.25rem);
    font-weight: 700;
    line-height: 1.15;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

@media (min-width: 1024px) {
    .hero-grid { grid-template-columns: 1fr 1fr; }
}

.hero h1 { margin-bottom: 0.5rem; }

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--text-muted);
    max-width: 500px;
    margin-bottom: 2rem;
    line-height: 1.7;
}

@media (max-width: 768px) {
    .hero-subtitle { margin: 0 auto 2rem; }
}

/* Trust Badge */
.trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: var(--primary-light);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    margin-bottom: 1.5rem;
}

.trust-badge svg { width: 20px; height: 20px; color: var(--primary); }
.trust-badge strong { color: var(--text-main); }
.trust-badge span { color: var(--text-muted); font-size: 14px; }
.trust-badge .counter { color: var(--primary); font-weight: 700; }

.trust-badge .global-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: linear-gradient(135deg, rgba(128, 90, 213, 0.2), rgba(99, 102, 241, 0.2));
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 13px;
    color: var(--primary);
    font-weight: 500;
}

/* Feature Tags */
.feature-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 2rem;
    justify-content: center;
}

@media (min-width: 768px) {
    .feature-tags { justify-content: flex-start; }
}

.feature-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: linear-gradient(135deg, var(--primary-light), rgba(99, 102, 241, 0.1));
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.feature-tag::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--primary);
    box-shadow: 0 0 8px var(--primary-glow);
}

.feature-tag:hover {
    border-color: var(--primary);
    box-shadow: 0 0 20px var(--primary-glow);
    transform: translateY(-1px);
}

/* Hero Visual Showcase */
.hero-visual {
    display: none;
}

@media (min-width: 1024px) {
    .hero-visual { display: block; }
}

.hero-showcase {
    position: relative;
    min-height: 420px;
}

.showcase-glow {
    position: absolute;
    inset: 10% 5%;
    background: radial-gradient(circle, var(--primary-glow), transparent 70%);
    filter: blur(40px);
    pointer-events: none;
}

.showcase-card {
    background: rgba(20, 20, 23, 0.9);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.35);
}

.showcase-card-main {
    position: relative;
    z-index: 2;
    padding: 0;
    overflow: hidden;
}

.showcase-card-header {
    display: flex;
    gap: 8px;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid var(--border-subtle);
}

.showcase-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
}

.showcase-dot:first-child { background: #ef4444; }
.showcase-dot:nth-child(2) { background: #f59e0b; }
.showcase-dot:nth-child(3) { background: #22c55e; }

.showcase-card-body {
    padding: 2rem 1.75rem 2.25rem;
    text-align: center;
}

.showcase-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    background: linear-gradient(135deg, var(--primary-light), rgba(99, 102, 241, 0.15));
    border: 1px solid var(--border-color);
    border-radius: 18px;
}

.showcase-card-body h3 {
    font-size: 1.35rem;
    margin-bottom: 0.5rem;
}

.showcase-card-body p {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 1.25rem;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 600;
}

.status-pill::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 10px currentColor;
}

.status-safe {
    background: rgba(16, 185, 129, 0.15);
    color: var(--success);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.showcase-card-float {
    position: absolute;
    z-index: 3;
    padding: 1rem 1.25rem;
    min-width: 140px;
    animation: floatCard 6s ease-in-out infinite;
}

.showcase-card-stats {
    top: 12%;
    right: -8%;
}

.showcase-card-delivery {
    bottom: 10%;
    left: -6%;
    animation-delay: -3s;
}

.showcase-stat-value {
    display: block;
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--text-main);
    line-height: 1.2;
}

.showcase-stat-label {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 2px;
}

@keyframes floatCard {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Stats Banner */
.stats-banner {
    padding: 0 0 48px;
    margin-top: -8px;
}

.stats-banner-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    padding: 1.25rem;
    background: rgba(20, 20, 23, 0.75);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-subtle);
    border-radius: 20px;
}

@media (min-width: 768px) {
    .stats-banner-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 1.5rem;
        padding: 1.5rem 2rem;
    }
}

.stats-banner-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0.5rem;
}

.stats-banner-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    background: var(--primary-light);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    flex-shrink: 0;
}

.stats-banner-item strong {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-main);
    line-height: 1.3;
}

.stats-banner-item span {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.4;
}

/* Hero Buttons */
.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

@media (min-width: 768px) {
    .hero-buttons { justify-content: flex-start; }
}

/* ========================================
   BUTTONS
   ======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 22px;
    min-height: 44px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.01em;
    border-radius: 10px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    user-select: none;
}

.btn:active {
    transform: scale(0.97);
}

.btn:focus-visible {
    outline: 2px solid rgba(128, 90, 213, 0.65);
    outline-offset: 2px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: #fff;
    box-shadow: 0 4px 16px rgba(128, 90, 213, 0.35);
    border-color: rgba(255, 255, 255, 0.08);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(128, 90, 213, 0.45);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-main);
    border: 1px solid rgba(128, 90, 213, 0.28);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.btn-secondary:hover {
    background: rgba(128, 90, 213, 0.12);
    border-color: rgba(128, 90, 213, 0.45);
    color: #fff;
}

.btn-sm {
    padding: 8px 14px;
    min-height: 36px;
    font-size: 13px;
    border-radius: 8px;
}

.btn-lg {
    padding: 14px 28px;
    min-height: 48px;
    font-size: 16px;
    border-radius: 12px;
}

.btn-success {
    background: linear-gradient(135deg, var(--success), #059669);
    color: #fff;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.3);
}

.btn-danger {
    background: linear-gradient(135deg, var(--danger), #dc2626);
    color: #fff;
    box-shadow: 0 4px 14px rgba(239, 68, 68, 0.28);
}

.btn-warning {
    background: linear-gradient(135deg, var(--warning), #d97706);
    color: #fff;
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.28);
}

.btn-outline {
    background: transparent;
    color: var(--text-main);
    border: 1px solid rgba(128, 90, 213, 0.4);
}

.btn-outline:hover {
    background: rgba(128, 90, 213, 0.1);
    border-color: rgba(128, 90, 213, 0.6);
}

/* ========================================
   HERO V2 — Clean minimal
   ======================================== */
.hero-v2 {
    padding: 72px 0 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-v2-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: min(640px, 90vw);
    height: 320px;
    transform: translate(-50%, -55%);
    background: radial-gradient(ellipse at center, rgba(128, 90, 213, 0.18), transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.hero-v2 .container {
    position: relative;
    z-index: 1;
}

.hero-v2-inner {
    max-width: 720px;
    margin: 0 auto;
}

.hero-v2-title {
    font-size: clamp(2rem, 5vw, 3.25rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.15;
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.hero-v2-sub {
    font-size: 1.05rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

.hero-quick-pills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 1.75rem;
}

.hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: rgba(20, 20, 23, 0.7);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
}

.hero-pill svg {
    width: 15px;
    height: 15px;
    color: var(--primary);
    flex-shrink: 0;
}

.hero-v2-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-bottom: 0;
}

.trust-metrics-section {
    padding: 56px 0 64px;
    background: linear-gradient(180deg, transparent, rgba(20, 20, 23, 0.5) 20%, rgba(20, 20, 23, 0.5) 80%, transparent);
    border-top: 1px solid var(--border-subtle);
}

.trust-metrics-section .hero-v2-metrics {
    max-width: 100%;
}

.section-eyebrow {
    display: inline-block;
    padding: 5px 12px;
    margin-bottom: 0.75rem;
    background: var(--primary-light);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--primary);
}

.section-intro {
    text-align: center;
    max-width: 560px;
    margin: 0 auto 2rem;
}

.section-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
}

.section-sub {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
}

.hero-v2-metrics {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    text-align: left;
}

@media (min-width: 768px) {
    .hero-v2-metrics {
        grid-template-columns: repeat(4, 1fr);
    }
}

.hero-v2-metric {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 18px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.hero-v2-metric:hover {
    border-color: var(--border-color);
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}

.hero-v2-metric-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    background: var(--primary-light);
    border-radius: var(--radius-md);
    color: var(--primary);
}

.hero-v2-metric-icon svg {
    width: 18px;
    height: 18px;
}

.hero-v2-metric strong {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 2px;
}

.hero-v2-metric span {
    font-size: 12px;
    color: var(--text-subtle);
    line-height: 1.4;
}

/* Logged-in page top */
.page-top-bar {
    padding: 32px 0 8px;
    border-bottom: 1px solid var(--border-subtle);
    margin-bottom: 8px;
}

.page-top-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.page-top-title {
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 4px;
}

.page-top-sub {
    font-size: 14px;
    color: var(--text-muted);
    margin: 0;
}

.page-top-badge {
    padding: 8px 16px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
}

/* ========================================
   CATALOG — Products list header & search
   ======================================== */
.catalog-header {
    margin-bottom: 2rem;
    max-width: 100%;
    overflow-x: clip;
}

.catalog-search {
    max-width: 100%;
}

.catalog-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 1.5rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--border-subtle);
}

.catalog-title-block {
    flex: 1;
    min-width: 0;
}

.catalog-title {
    font-size: clamp(1.35rem, 3vw, 1.75rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin: 0 0 0.35rem;
}

.catalog-subtitle {
    font-size: 14px;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.5;
    max-width: 480px;
}

.catalog-count {
    flex-shrink: 0;
    padding: 8px 16px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    white-space: nowrap;
}

.catalog-search {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.catalog-search-row {
    display: flex;
    align-items: stretch;
    gap: 12px;
}

.catalog-search-row .catalog-search-box {
    flex: 1;
    min-width: 0;
}

.catalog-search-btn {
    flex-shrink: 0;
    height: 52px;
    padding: 0 24px;
    white-space: nowrap;
}

@media (max-width: 480px) {
    .catalog-search-row {
        flex-direction: column;
    }

    .catalog-search-btn {
        width: 100%;
    }
}

.catalog-search-box {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 18px;
    height: 52px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    transition: all 0.2s ease;
}

.catalog-search-box:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
}

.catalog-search-svg {
    width: 20px;
    height: 20px;
    color: var(--text-subtle);
    flex-shrink: 0;
}

.catalog-search-input {
    flex: 1;
    min-width: 0;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-main);
    font-size: 15px;
    font-family: inherit;
}

.catalog-search-input::placeholder {
    color: var(--text-subtle);
}

.catalog-search-clear {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: var(--radius-md);
    color: var(--text-muted);
    cursor: pointer;
    flex-shrink: 0;
}

.catalog-search-clear:hover {
    background: rgba(239, 68, 68, 0.12);
    color: var(--danger);
}

.catalog-search-clear svg {
    width: 16px;
    height: 16px;
}

.catalog-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    max-width: 100%;
    overflow-x: clip;
}

.catalog-filter {
    padding: 8px 16px;
    background: transparent;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-full);
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.15s ease;
}

.catalog-filter:hover {
    color: var(--text-main);
    border-color: var(--border-color);
}

.catalog-filter.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.catalog-meta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--text-subtle);
    margin: 0;
    padding: 6px 12px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-full);
    width: fit-content;
}

.catalog-meta #visibleCount {
    color: var(--text-main);
    font-weight: 600;
}

/* ========================================
   STORE TOOLBAR & SEARCH (legacy)
   ======================================== */
.products-section {
    padding: 40px 0 48px;
    position: relative;
    width: 100%;
    max-width: 100%;
    overflow-x: clip;
}

.products-section .container {
    max-width: 1200px;
    overflow-x: clip;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 1.25rem;
    width: 100%;
    max-width: 100%;
    align-items: stretch;
}

@media (min-width: 640px) {
    .products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1.35rem;
    }
}

@media (min-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 1.5rem;
    }
}

.product-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-width: 0;
    max-width: 100%;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
}

.product-card.is-search-hidden {
    display: none !important;
}

.products-grid.has-search-results .product-card:not(.is-search-hidden) {
    opacity: 1 !important;
    transform: none !important;
    visibility: visible !important;
}

.product-card:hover {
    border-color: var(--border-color);
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(128, 90, 213, 0.14), 0 0 0 1px rgba(128, 90, 213, 0.1);
}

.product-image {
    width: 100%;
    aspect-ratio: 16 / 10;
    height: auto;
    min-height: 168px;
    max-height: 200px;
    flex-shrink: 0;
    background: linear-gradient(135deg, var(--primary-light), rgba(99, 102, 241, 0.08));
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.store-logged-banner {
    padding: 24px 0 0;
    text-align: center;
}

.store-logged-banner p {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--primary-light);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    color: var(--text-muted);
    font-size: 14px;
}

.store-toolbar {
    background: linear-gradient(145deg, rgba(20, 20, 23, 0.95), rgba(26, 26, 31, 0.9));
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 28px 32px;
    margin-bottom: 2.5rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
    position: relative;
    overflow: hidden;
}

.store-toolbar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary), var(--accent));
}

.store-toolbar-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
    margin-bottom: 28px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border-subtle);
}

.store-heading {
    flex: 1;
    min-width: 240px;
}

.store-eyebrow {
    display: inline-block;
    padding: 5px 12px;
    margin-bottom: 10px;
    background: var(--primary-light);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--primary);
}

.store-heading h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: 6px;
    letter-spacing: -0.02em;
}

.store-heading p {
    color: var(--text-muted);
    font-size: 15px;
    max-width: 480px;
    line-height: 1.6;
}

.store-head-stats {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.store-stat-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 100px;
    padding: 14px 20px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    text-align: center;
}

.store-stat-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
}

.store-stat-label {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
    font-weight: 500;
}

.store-stat-live {
    flex-direction: row;
    gap: 8px;
    padding: 14px 18px;
}

.store-stat-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--success);
    box-shadow: 0 0 10px var(--success);
    animation: pulse-dot 2s ease infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(0.9); }
}

.store-search-panel {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.store-search-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0.02em;
}

.store-search-field {
    display: flex;
    align-items: center;
    gap: 0;
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 4px 4px 4px 16px;
    transition: all 0.25s ease;
}

.store-search-field:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-light), 0 12px 32px rgba(128, 90, 213, 0.12);
}

.store-search-icon {
    display: flex;
    color: var(--text-subtle);
    flex-shrink: 0;
}

.store-search-input {
    flex: 1;
    min-width: 0;
    padding: 14px 12px;
    background: transparent;
    border: none;
    color: var(--text-main);
    font-size: 15px;
    font-family: inherit;
    outline: none;
}

.store-search-input::placeholder {
    color: var(--text-subtle);
}

.store-search-clear {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: transparent;
    border: none;
    border-radius: var(--radius-md);
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
}

.store-search-clear:hover {
    background: rgba(239, 68, 68, 0.15);
    color: var(--danger);
}

.store-search-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 22px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border: none;
    border-radius: var(--radius-md);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
    white-space: nowrap;
}

.store-search-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 24px var(--primary-glow);
}

.store-search-btn svg {
    flex-shrink: 0;
}

.store-filter-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.store-filter-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-subtle);
    flex-shrink: 0;
}

.store-filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.filter-chip {
    padding: 8px 16px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-full);
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-chip:hover {
    border-color: var(--border-color);
    color: var(--text-main);
}

.filter-chip.active {
    background: var(--primary-light);
    border-color: var(--primary);
    color: var(--primary);
    font-weight: 600;
}

.store-results-meta {
    font-size: 13px;
    color: var(--text-subtle);
    margin: 0;
}

.store-results-meta strong {
    color: var(--text-main);
    font-weight: 600;
}

.store-no-results {
    margin-top: 2rem;
}

@media (max-width: 640px) {
    .store-toolbar {
        padding: 20px 18px;
    }

    .store-search-field {
        flex-wrap: wrap;
        padding: 12px;
        gap: 10px;
    }

    .store-search-icon { display: none; }

    .store-search-input {
        width: 100%;
        padding: 10px 0;
    }

    .store-search-btn {
        width: 100%;
        justify-content: center;
        padding: 14px;
    }

    .store-search-clear {
        order: 1;
    }
}

/* Legacy search (fallback) */
.product-search-wrap {
    max-width: 520px;
    margin: 0 auto 2.5rem;
}

.product-search {
    position: relative;
    display: flex;
    align-items: center;
}

.product-search-icon {
    position: absolute;
    left: 16px;
    color: var(--text-subtle);
    pointer-events: none;
}

.product-search-input {
    padding-left: 46px !important;
    border-radius: var(--radius-full) !important;
    background: rgba(20, 20, 23, 0.85) !important;
    border-color: var(--border-color) !important;
    font-size: 15px !important;
}

.product-search-input:focus {
    box-shadow: 0 0 0 4px var(--primary-light), 0 8px 24px rgba(128, 90, 213, 0.15) !important;
}

.preview-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 52px;
    height: 52px;
    background: rgba(0, 0, 0, 0.7);
    border: 2px solid rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    z-index: 6;
    padding-left: 3px;
}

.preview-btn svg {
    width: 20px;
    height: 20px;
}

.product-card:hover .preview-btn { opacity: 1; }

.preview-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: translate(-50%, -50%) scale(1.08);
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.35; }
}

.products-empty {
    margin-top: 1rem;
    background: var(--bg-card);
    border: 1px dashed var(--border-color);
    border-radius: var(--radius-lg);
}

.section-header { text-align: center; margin-bottom: 3rem; }
.section-header .section-eyebrow { margin-bottom: 0.85rem; }
.section-header h2 { margin-bottom: 0.5rem; font-size: clamp(1.5rem, 3vw, 2rem); letter-spacing: -0.02em; }
.section-header p { color: var(--text-muted); max-width: 520px; margin: 0 auto; font-size: 15px; }

.product-image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    background: rgba(128, 90, 213, 0.12);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    color: var(--primary);
    z-index: 1;
}

.product-image-placeholder svg {
    width: 36px;
    height: 36px;
}

.product-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10, 10, 11, 0.6) 0%, transparent 50%);
    pointer-events: none;
    z-index: 2;
}

.product-image video, .product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.product-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 5px 12px;
    color: white;
    font-size: 11px;
    font-weight: 700;
    border-radius: var(--radius-full);
    z-index: 10;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.badge-popular { background: linear-gradient(135deg, var(--primary), var(--accent)); }
.badge-bestseller { background: linear-gradient(135deg, #f97316, #ea580c); }
.badge-new { background: linear-gradient(135deg, #22c55e, #16a34a); }
.badge-hot { background: linear-gradient(135deg, #ef4444, #dc2626); }

.product-status {
    position: absolute;
    bottom: 12px;
    left: 12px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(8px);
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 600;
    color: #fff;
    z-index: 10;
    text-transform: capitalize;
}

.product-status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

.product-status.status-safe { color: #4ade80; }
.product-status.status-safe .product-status-dot { background: #4ade80; }

.product-status.status-update { color: #facc15; }
.product-status.status-update .product-status-dot { animation: blink 1s infinite; }

.product-status.status-maintenance { color: #fb923c; }
.product-status.status-maintenance .product-status-dot { animation: blink 1s infinite; }

.product-status.status-offline,
.product-status.status-detecting { color: #f87171; }
.product-status.status-offline .product-status-dot,
.product-status.status-detecting .product-status-dot { animation: blink 1s infinite; }

.product-price-tag {
    position: absolute;
    bottom: 12px;
    right: 12px;
    padding: 6px 12px;
    background: rgba(128, 90, 213, 0.9);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    z-index: 10;
}

.product-content {
    padding: 1.25rem 1.35rem 1.35rem;
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
    min-height: 0;
}

.product-card-top {
    margin-bottom: 0.5rem;
    min-width: 0;
}

.product-game-chip {
    display: inline-block;
    padding: 4px 10px;
    margin-bottom: 8px;
    background: var(--primary-light);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.product-content h3 {
    font-size: 1.125rem;
    margin-bottom: 0;
    line-height: 1.35;
    letter-spacing: -0.01em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
    min-height: 3.04rem;
}

.product-desc {
    color: var(--text-muted);
    font-size: 13px;
    margin-bottom: 0.75rem;
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    white-space: normal;
    word-break: break-word;
    min-height: 2.55rem;
}

.product-features {
    margin-bottom: 1rem;
    min-height: 56px;
    flex-shrink: 0;
}

.product-features .tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    max-height: 56px;
    overflow: hidden;
}

.product-features .tag {
    padding: 5px 10px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    font-size: 11px;
    font-weight: 500;
    color: var(--text-muted);
}

.product-features .tag-game {
    display: none;
}

.product-buy-form {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid var(--border-subtle);
    width: 100%;
    min-width: 0;
}

.product-out-of-stock {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid var(--border-subtle);
    width: 100%;
}

.product-plan-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-subtle);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.product-plan-select {
    width: 100%;
    max-width: 100%;
    padding: 12px 14px;
    margin-bottom: 12px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    color: var(--text-main);
    font-size: 14px;
    font-family: inherit;
    cursor: pointer;
    transition: border-color 0.2s;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23a1a1aa' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
}

.product-plan-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
}

.product-buy-btn {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 20px;
    font-size: 15px;
    font-weight: 600;
}

.product-badge.popular {
    background: rgba(128, 90, 213, 0.9);
    display: flex;
    align-items: center;
    gap: 4px;
}

.product-badge.undetected {
    position: absolute;
    top: auto;
    bottom: 12px;
    left: 12px;
    right: auto;
    background: rgba(16, 185, 129, 0.8);
    border-color: rgba(16, 185, 129, 0.5);
}

.product-badge.price-badge {
    position: absolute;
    top: auto;
    bottom: 12px;
    right: 12px;
    left: auto;
    background: rgba(128, 90, 213, 0.8);
}

.product-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 1rem;
    border-top: 1px solid var(--border-subtle);
}

.product-price { font-size: 1.25rem; font-weight: 700; color: var(--primary); }
.product-buttons { display: flex; gap: 10px; margin-top: 1rem; }
.product-buttons .btn { flex: 1; }

/* ========================================
   TESTIMONIALS
   ======================================== */
.testimonials-section {
    padding: 72px 0;
    background: var(--bg-card);
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
}

.testimonial-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    transition: all 0.3s ease;
    position: relative;
}

.testimonial-card:hover {
    border-color: var(--border-color);
    transform: translateY(-3px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.15);
}

.testimonial-quote {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    width: 28px;
    height: 28px;
    color: var(--primary);
    opacity: 0.25;
}

.testimonial-quote svg {
    width: 100%;
    height: 100%;
}

.testimonial-header { display: flex; align-items: center; gap: 12px; margin-bottom: 1rem; }

.testimonial-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    flex-shrink: 0;
    border: none;
}

.testimonial-avatar-alt {
    background: linear-gradient(135deg, #6366f1, #4f46e5);
}

.testimonial-avatar-accent {
    background: linear-gradient(135deg, #f97316, #ea580c);
}

.testimonial-info h4 { font-size: 14px; margin-bottom: 2px; }
.testimonial-info span { font-size: 12px; color: var(--text-subtle); }
.testimonial-stars { color: #fbbf24; margin-bottom: 0.75rem; font-size: 13px; letter-spacing: 2px; }
.testimonial-text { color: var(--text-muted); font-size: 14px; line-height: 1.65; font-style: italic; }

/* ========================================
   FOOTER
   ======================================== */
.footer {
    padding: 64px 0 24px;
    border-top: 1px solid var(--border-subtle);
    background: linear-gradient(180deg, transparent, rgba(20, 20, 23, 0.5));
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

@media (min-width: 768px) {
    .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
}

.footer-brand p { color: var(--text-muted); font-size: 14px; max-width: 300px; margin-top: 1rem; line-height: 1.7; }

.footer-links h4 { font-size: 14px; font-weight: 600; margin-bottom: 1rem; color: var(--text-main); }

.footer-links a { display: block; padding: 6px 0; color: var(--text-muted); font-size: 14px; }
.footer-links a:hover { color: var(--primary); }

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid var(--border-subtle);
    text-align: center;
    font-size: 12px;
    color: var(--text-subtle);
}

/* ========================================
   FORMS
   ======================================== */
.form-group { margin-bottom: 1rem; }

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.form-input, .glass-input {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-input);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    color: var(--text-main);
    font-size: 16px;
    transition: all 0.2s ease;
}

.form-input:focus, .glass-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
}

.form-input::placeholder, .glass-input::placeholder { color: var(--text-subtle); }
select.form-input, select.glass-input { cursor: pointer; }

textarea.form-input, textarea.glass-input {
    min-height: 100px;
    resize: vertical;
}

/* ========================================
   CARDS (Generic)
   ======================================== */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
}

.glass-card {
    background: rgba(20, 20, 23, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
}

/* ========================================
   BADGES
   ======================================== */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 600;
    border-radius: var(--radius-full);
}

.badge-primary { background: var(--primary-light); color: var(--primary); }
.badge-success { background: rgba(16, 185, 129, 0.15); color: var(--success); }
.badge-danger { background: rgba(239, 68, 68, 0.15); color: var(--danger); }
.badge-warning { background: rgba(245, 158, 11, 0.15); color: var(--warning); }
.badge-info { background: rgba(59, 130, 246, 0.15); color: var(--info); }

/* ========================================
   TABLES
   ======================================== */
.table-container {
    overflow-x: auto;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-subtle);
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border-subtle);
}

th {
    background: var(--bg-elevated);
    font-weight: 600;
    font-size: 13px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

td { font-size: 14px; }

tr:hover td { background: var(--primary-light); }

/* ========================================
   ALERTS
   ======================================== */
.alert {
    padding: 16px 20px;
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
    font-size: 14px;
}

.alert-success { background: rgba(16, 185, 129, 0.15); border: 1px solid var(--success); color: var(--success); }
.alert-danger { background: rgba(239, 68, 68, 0.15); border: 1px solid var(--danger); color: var(--danger); }
.alert-warning { background: rgba(245, 158, 11, 0.15); border: 1px solid var(--warning); color: var(--warning); }
.alert-info { background: rgba(59, 130, 246, 0.15); border: 1px solid var(--info); color: var(--info); }

/* ========================================
   STAT CARDS
   ======================================== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.stat-card:hover {
    border-color: var(--border-color);
    transform: translateY(-2px);
}

.stat-card .icon {
    width: 48px;
    height: 48px;
    background: var(--primary-light);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 24px;
}

.stat-card .value { font-size: 2rem; font-weight: 700; color: var(--text-main); }
.stat-card .label { font-size: 14px; color: var(--text-muted); margin-top: 0.25rem; }

/* ========================================
   UTILITIES
   ======================================== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.p-0 { padding: 0; }
.p-1 { padding: 0.5rem; }
.p-2 { padding: 1rem; }
.p-3 { padding: 1.5rem; }
.p-4 { padding: 2rem; }

.w-full { width: 100%; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }
.hidden { display: none; }

@media (min-width: 768px) {
    .md\:flex { display: flex; }
    .md\:hidden { display: none; }
}

/* ========================================
   ANIMATIONS
   ======================================== */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in { animation: fadeIn 0.5s ease forwards; }

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.animate-pulse { animation: pulse 2s infinite; }

/* ========================================
   SCROLLBAR
   ======================================== */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb { background: var(--border-color); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }

/* ========================================
   GLOBAL UI ELEMENTS
   ======================================== */

/* Google Translate Customization */
.goog-te-gadget { font-family: inherit !important; }
.goog-te-gadget-simple { background: transparent !important; border: none !important; padding: 0 !important; font-size: 13px !important; }
.goog-te-gadget-simple .goog-te-menu-value { color: var(--text-muted) !important; }
.goog-te-gadget-simple .goog-te-menu-value span { color: var(--text-muted) !important; }
.goog-te-gadget-icon { display: none !important; }
.goog-te-banner-frame, .skiptranslate { display: none !important; }
body { top: 0 !important; }

#google_translate_element {
    width: 0;
    height: 0;
    overflow: hidden;
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.goog-tooltip, .goog-te-spinner-pos { display: none !important; }

/* Navbar Actions */
.nav-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    flex-shrink: 0;
}

.nav-action-btn,
.navbar .hamburger {
    width: 36px;
    height: 36px;
    min-width: 36px;
    min-height: 36px;
    padding: 0;
    background: rgba(128, 90, 213, 0.12);
    border: 1px solid rgba(128, 90, 213, 0.38);
    border-radius: 10px;
    color: #f8fafc;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.15s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    flex-shrink: 0;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    box-shadow: 0 2px 8px rgba(128, 90, 213, 0.15);
}

.nav-action-btn:active,
.navbar .hamburger:active {
    transform: scale(0.94);
}

@media (min-width: 768px) {
    .nav-action-btn,
    .navbar .hamburger {
        width: 36px;
        height: 36px;
        min-width: 36px;
        min-height: 36px;
    }
}

.nav-action-btn svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.nav-action-btn:hover,
.navbar .hamburger:hover {
    background: rgba(128, 90, 213, 0.2);
    border-color: rgba(128, 90, 213, 0.55);
    color: #fff;
}

@media (max-width: 768px) {
    .nav-actions { gap: 6px; }
}

/* Search/Language Modal */
.search-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
    z-index: 10000;
    align-items: flex-start;
    justify-content: center;
    padding-top: 100px;
}

.search-modal.active { display: flex; }

.search-box {
    width: 90%;
    max-width: 400px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    overflow: hidden;
}

.search-input-wrap {
    display: flex;
    align-items: center;
    padding: 14px;
    gap: 12px;
    border-bottom: 1px solid var(--border-subtle);
}

.search-input-wrap input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-main);
    font-size: 15px;
    outline: none;
}

.search-results { max-height: 250px; overflow-y: auto; }

.search-result-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    color: var(--text-muted);
    cursor: pointer;
    transition: background 0.2s;
    text-decoration: none;
}

.search-result-item:hover {
    background: var(--primary-light);
    color: var(--text-main);
}

/* Language Items */
.lang-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s;
    border-radius: 8px;
    font-size: 14px;
}

.lang-item:hover { background: var(--primary-light); color: var(--text-main); }
.lang-item.selected { background: var(--primary-light); color: var(--primary); font-weight: 600; }

/* ========================================
   DASHBOARD PANELS
   ======================================== */
.dashboard-layout {
    display: grid;
    grid-template-columns: 250px 1fr;
    min-height: 100vh;
}

@media (max-width: 768px) {
    .dashboard-layout { grid-template-columns: 1fr; }
}

.sidebar {
    background: var(--bg-card);
    border-right: 1px solid var(--border-subtle);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

@media (max-width: 768px) {
    .sidebar { display: none; }
    .sidebar.active { display: flex; position: fixed; left: 0; top: 0; bottom: 0; z-index: 1000; width: 250px; }
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: var(--text-muted);
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
}

.sidebar-link:hover { background: var(--primary-light); color: var(--text-main); }
.sidebar-link.active { background: var(--primary-light); color: var(--primary); }

.main-content {
    padding: 2rem;
    overflow-y: auto;
}

/* Page Header */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.page-header h1 { font-size: 1.5rem; }

/* ========================================
   PLAN/SUBSCRIPTION CARDS
   ======================================== */
.plan-option {
    display: block;
    padding: 15px;
    background: var(--bg-elevated);
    border: 2px solid var(--border-subtle);
    border-radius: 12px;
    cursor: pointer;
    margin-bottom: 10px;
    transition: all 0.2s;
}

.plan-option:hover { border-color: var(--border-color); }

.plan-option input:checked + .plan-option,
.plan-option.selected {
    border-color: var(--primary);
    background: var(--primary-light);
}

.plan-option input { display: none; }

.plan-name { font-weight: 600; color: var(--text-main); }
.plan-price { color: var(--primary); font-weight: 700; }
.plan-duration { color: var(--text-muted); font-size: 13px; }

/* ========================================
   PAYMENT SECTIONS
   ======================================== */
.payment-section { display: none; }
.payment-section.active { display: block; }

.payment-method-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.payment-method-card h4 { margin-bottom: 1rem; }

.qr-code-container {
    text-align: center;
    padding: 1rem;
    background: white;
    border-radius: var(--radius-md);
    max-width: 200px;
    margin: 0 auto 1rem;
}

.qr-code-container img { width: 100%; height: auto; }

/* ========================================
   MODAL
   ======================================== */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.modal-overlay.active { display: flex; }

.modal-content {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-subtle);
}

.modal-header h3 { font-size: 1.25rem; }

.modal-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 24px;
    cursor: pointer;
}

.modal-close:hover { color: var(--text-main); }

.modal-body { padding: 1.5rem; }
.modal-footer { padding: 1rem 1.5rem; border-top: 1px solid var(--border-subtle); display: flex; gap: 1rem; justify-content: flex-end; }

/* ========================================
   KEY DISPLAY
   ======================================== */
.key-display {
    background: var(--bg-dark);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 1rem;
    font-family: monospace;
    font-size: 14px;
    word-break: break-all;
    position: relative;
}

.key-display .copy-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    background: var(--primary-light);
    border: 1px solid var(--border-color);
    color: var(--primary);
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 12px;
}

.key-display .copy-btn:hover { background: var(--primary); color: white; }

/* ========================================
   COPY BUTTON UTILITY
   ======================================== */
.copy-text {
    cursor: pointer;
    position: relative;
}

.copy-text:hover::after {
    content: 'Click to copy';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-elevated);
    color: var(--text-muted);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    white-space: nowrap;
}

/* ========================================
   EMPTY STATE
   ======================================== */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-muted);
}

.empty-state-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    margin-bottom: 1.25rem;
    background: var(--primary-light);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    color: var(--primary);
}

.empty-state-icon svg {
    width: 28px;
    height: 28px;
}

.empty-state .icon { font-size: 3rem; margin-bottom: 1rem; opacity: 0.5; }
.empty-state h3 { color: var(--text-main); margin-bottom: 0.5rem; }
.empty-state p { font-size: 14px; }

.logged-in-products-header {
    padding-top: 48px;
}

/* Hamburger active state */
.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}
