/* ============================================
   CreativeConor — Design System
   Modern Gaming Download Platform
   ============================================ */

/* ============ IMPORTS ============ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* ============ CSS CUSTOM PROPERTIES ============ */
:root {
    /* Theme colors (admin overridable via inline styles) */
    --primary: #6366f1;
    --primary-light: #818cf8;
    --secondary: #a855f7;
    --accent-pink: #ec4899;
    --accent-emerald: #10b981;
    --accent-emerald-dark: #059669;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #6366f1, #a855f7);
    --gradient-purple: linear-gradient(135deg, #a855f7, #6366f1);
    --gradient-pink: linear-gradient(135deg, #ec4899, #be185d);
    --gradient-emerald: linear-gradient(135deg, #10b981, #059669);
    --gradient-hero: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(168, 85, 247, 0.15));

    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-xs: 0.75rem;
    --font-sm: 0.875rem;
    --font-base: 1rem;
    --font-lg: 1.125rem;
    --font-xl: 1.25rem;
    --font-2xl: 1.5rem;
    --font-3xl: 1.875rem;
    --font-4xl: 2.25rem;
    --font-5xl: 3rem;

    /* Spacing */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;

    /* Border radius */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    /* Transitions: Reduced 'all' to specific properties for better performance */
    --transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
    --transition-fast: transform 0.15s ease, background-color 0.15s ease;

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 20px rgba(99, 102, 241, 0.3);

    /* Z-index */
    --z-header: 100;
    --z-dropdown: 200;
    --z-modal: 300;
    --z-overlay: 400;

    /* Container */
    --container-max: 1480px;
    --container-wide: 1600px;
}

/* ============ DARK THEME (DEFAULT) ============ */
[data-theme="dark"],
:root {
    --bg-primary: #020617;
    --bg-secondary: #0f172a;
    --bg-card: #111827;
    --bg-card-hover: #1e293b;
    --bg-surface: #0f172a;
    --bg-input: #0f172a;
    --bg-header: rgba(2, 6, 23, 0.95);

    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --text-inverse: #0f172a;

    --border-color: rgba(255, 255, 255, 0.08);
    --border-color-hover: rgba(255, 255, 255, 0.15);
    --divider: rgba(255, 255, 255, 0.06);
}

/* ============ LIGHT THEME ============ */
[data-theme="light"] {
    --bg-primary: #f8fafc;
    --bg-secondary: #ffffff;
    --bg-card: #ffffff;
    --bg-card-hover: #f1f5f9;
    --bg-surface: #f1f5f9;
    --bg-input: #ffffff;
    --bg-header: rgba(248, 250, 252, 0.92);

    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --text-inverse: #f1f5f9;

    --border-color: rgba(0, 0, 0, 0.08);
    --border-color-hover: rgba(0, 0, 0, 0.15);
    --divider: rgba(0, 0, 0, 0.06);

    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.12);
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(0, 0, 0, 0.05);
    --glass-blur: 12px;
    --hero-bg: #f8fafc;
}

/* ============ PREMIUM COMPONENTS ============ */
.page-hero {
    position: relative;
    padding: 120px 0 80px;
    overflow: hidden;
    background: var(--hero-bg, var(--bg-primary));
}

.hero-decor-1 {
    position: absolute;
    top: -10%;
    left: -10%;
    width: 40%;
    height: 60%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, transparent 70%);
    filter: blur(80px);
    pointer-events: none;
}

.hero-decor-2 {
    position: absolute;
    bottom: -10%;
    right: -10%;
    width: 50%;
    height: 70%;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.1) 0%, transparent 70%);
    filter: blur(100px);
    pointer-events: none;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 900;
    letter-spacing: -0.02em;
    line-height: 1.1;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--text-secondary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: fadeInUp 0.8s ease-out;
    text-shadow: none !important;
}

[data-theme="light"] .hero-title {
    background: linear-gradient(135deg, var(--text-primary) 0%, #1e293b 100%);
    -webkit-background-clip: text;
    background-clip: text;
}

.hero-divider {
    width: 80px;
    height: 4px;
    background: var(--gradient-primary);
    margin: 0 auto;
    border-radius: 2px;
}

.glass-body {
    background: var(--glass-bg, rgba(15, 23, 42, 0.6));
    backdrop-filter: blur(var(--glass-blur, 12px)) saturate(180%);
    border: 1px solid var(--glass-border, rgba(255, 255, 255, 0.08));
    border-radius: 32px;
    padding: clamp(30px, 6vw, 60px);
    box-shadow: var(--shadow-lg);
    animation: fadeInUp 1s ease-out 0.2s both;
    will-change: transform, opacity;
}

[data-theme="dark"] .glass-body {
    --glass-bg: rgba(15, 23, 42, 0.6);
    --glass-border: rgba(255, 255, 255, 0.08);
}

[data-theme="light"] .glass-body {
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(0, 0, 0, 0.05);
}

.premium-form-group {
    margin-bottom: 24px;
}

.premium-form-label {
    display: block;
    margin-bottom: 10px;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.95rem;
}

.premium-form-input {
    width: 100%;
    padding: 14px 18px;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-primary);
    transition: var(--transition);
    font-family: inherit;
    font-size: 1rem;
}

[data-theme="light"] .premium-form-input {
    background: #fff;
    border-color: #cbd5e1;
}

.premium-form-input:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.premium-form-btn {
    background: var(--gradient-primary);
    color: #fff;
    border: none;
    padding: 16px 32px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1.05rem;
    cursor: pointer;
    transition: var(--transition);
    width: 100%;
    box-shadow: 0 10px 20px rgba(99, 102, 241, 0.2);
    display: block;
}

.premium-form-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(99, 102, 241, 0.3);
}

.premium-form-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.premium-form .form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    margin-bottom: 24px;
}

.premium-form .form-row .premium-form-group {
    flex: 1;
    min-width: 280px;
    margin-bottom: 0;
}

@media (max-width: 640px) {
    .premium-form .form-row .premium-form-group {
        flex: 1 1 100%;
    }
}

.premium-form textarea.premium-form-input {
    min-height: 150px;
}

/* ============ RESET & BASE ============ */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: auto;
    /* Changed from smooth to auto to prevent scroll lag on heavy pages */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-family);
    font-size: var(--font-base);
    font-weight: 400;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

a {
    color: var(--primary-light);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--secondary);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button,
input,
select,
textarea {
    font-family: inherit;
    font-size: inherit;
    border: none;
    outline: none;
}

/* ============ UTILITY CLASSES ============ */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 32px;
    position: relative;
    width: 100%;
}

@media (max-width: 1400px) {
    .container {
        max-width: 1200px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
}

.text-center {
    text-align: center;
}

.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}

/* ============ BUTTONS ============ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: 10px 24px;
    font-weight: 600;
    font-size: var(--font-sm);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-decoration: none;
    white-space: nowrap;
}

.btn-primary {
    background: var(--gradient-primary);
    color: #fff;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
    color: #fff;
    will-change: transform;
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    border-color: var(--primary);
    color: var(--primary-light);
}

.btn-emerald {
    background: var(--gradient-emerald);
    color: #fff;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.btn-emerald:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
    color: #fff;
}

.btn-pink {
    background: var(--gradient-pink);
    color: #fff;
}

.btn-pink:hover {
    transform: translateY(-2px);
    color: #fff;
}

.btn-sm {
    padding: 6px 16px;
    font-size: var(--font-xs);
}

.btn-lg {
    padding: 14px 32px;
    font-size: var(--font-base);
}

.btn-icon {
    padding: 10px;
    border-radius: var(--radius-md);
}

/* ============ HEADER ============ */
.site-header {
    position: sticky;
    top: 0;
    z-index: var(--z-header);
    background: transparent;
    border-bottom: 1px solid transparent;
    border-top: 1px solid transparent;
    transition: background 0.4s ease, height 0.4s ease, box-shadow 0.4s ease;
}

.site-header.scrolled {
    background: rgba(2, 6, 23, 0.85);
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    box-shadow: var(--shadow-lg);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

/* Scroll Progress Bar */
/* Scroll Progress Bar - Body Level */
.scroll-progress-container {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 2px !important;
    /* Ultra Thin */
    background: rgba(255, 255, 255, 0.05) !important;
    z-index: 2147483647 !important;
    pointer-events: none !important;
    display: block !important;
}

.scroll-progress-bar {
    height: 100% !important;
    width: 0%;
    background: var(--primary) !important;
    /* Theme Color */
    box-shadow: 0 0 8px var(--primary), 0 0 2px #fff !important;
    transition: width 0.1s linear !important;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
    /* Slightly taller default */
    gap: var(--space-6);
    transition: height 0.4s ease;
}

.site-header.scrolled .header-inner {
    height: 58px;
    /* Shrunk height */
}

.site-logo {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    font-size: var(--font-xl);
    font-weight: 800;
    color: var(--text-primary);
    text-decoration: none;
    flex-shrink: 0;
}

.site-logo img {
    height: 36px;
    width: auto;
}

.site-logo .logo-highlight {
    color: var(--primary-light);
}

.main-nav {
    display: flex;
    align-items: center;
    gap: var(--space-1);
}

.main-nav a {
    padding: 8px 16px;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: var(--font-sm);
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--text-primary);
    background: rgba(var(--primary-rgb), 0.12);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    flex-shrink: 0;
}

.mobile-nav {
    display: none;
}

.header-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    background: var(--bg-card);
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.header-btn:hover {
    color: var(--primary-light);
    border-color: var(--primary);
    background: rgba(var(--primary-rgb), 0.12);
}

.mobile-menu-btn {
    display: none;
}

/* ============ SEARCH OVERLAY ============ */
.search-overlay {
    position: fixed;
    inset: 0;
    z-index: var(--z-overlay);
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    display: none;
    align-items: flex-start;
}

/* ============ FOOTER SOCIALS ============ */
.footer-socials {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.social-icon {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: var(--bg-card);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.social-icon svg {
    width: 18px;
    height: 18px;
}

.social-icon:hover {
    transform: translateY(-3px);
    color: #fff;
}

.social-icon.fb:hover {
    background: #1877f2;
    border-color: #1877f2;
}

.social-icon.x:hover {
    background: #000;
    border-color: #333;
}

.social-icon.wa:hover {
    background: #25d366;
    border-color: #25d366;
}

.social-icon.tg:hover {
    background: #0088cc;
    border-color: #0088cc;
}

[data-theme="light"] .social-icon {
    background: #fff;
    border-color: #e2e8f0;
}

[data-theme="light"] .social-icon:hover {
    color: #fff;
}

/* ============ FOOTER REFINEMENT ============ */
.footer-join-us {
    margin-top: 24px;
}

.join-us-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.join-us-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.join-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: var(--transition);
}

.join-btn-icon {
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
}

.join-btn:hover {
    transform: translateY(-2px);
    border-color: var(--primary);
    color: var(--primary);
    background: var(--bg-secondary);
    box-shadow: var(--shadow-sm);
}

/* Official Brand Colors */
.join-btn.discord:hover {
    background: #5865F2;
    border-color: #5865F2;
    color: #fff;
}

.join-btn.telegram:hover {
    background: #0088cc;
    border-color: #0088cc;
    color: #fff;
}

.join-btn.whatsapp:hover {
    background: #25D366;
    border-color: #25D366;
    color: #fff;
}

.join-btn.facebook:hover {
    background: #1877F2;
    border-color: #1877F2;
    color: #fff;
}

.join-btn.twitter:hover {
    background: #000000;
    border-color: #333333;
    color: #fff;
}

.join-btn.youtube:hover {
    background: #FF0000;
    border-color: #FF0000;
    color: #fff;
}

.join-btn.reddit:hover {
    background: #FF4500;
    border-color: #FF4500;
    color: #fff;
}

.join-btn.instagram:hover {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    border-color: #bc1888;
    color: #fff;
}

.join-btn.tiktok:hover {
    background: #000000;
    border-color: #000000;
    color: #fff;
    text-shadow: 2px 0 0 #ff0050, -2px 0 0 #00f2ea;
}

.join-btn.linkedin:hover {
    background: #0077b5;
    border-color: #0077b5;
    color: #fff;
}

.join-btn.pinterest:hover {
    background: #bd081c;
    border-color: #bd081c;
    color: #fff;
}

.join-btn.github:hover {
    background: #333333;
    border-color: #333333;
    color: #fff;
}

/* Footer Bottom Share */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-share {
    display: flex;
    align-items: center;
    gap: 15px;
}

.share-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.share-icons {
    display: flex;
    gap: 8px;
}

.share-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: var(--bg-card);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.share-icon svg {
    width: 16px;
    height: 16px;
}

.share-icon:hover {
    transform: translateY(-2px);
    color: #fff;
}

.share-icon.fb:hover {
    background: #1877f2;
    border-color: #1877f2;
}

.share-icon.x:hover {
    background: #000;
    border-color: #333;
}

.share-icon.wa:hover {
    background: #25d366;
    border-color: #25d366;
}

.share-icon.tg:hover {
    background: #0088cc;
    border-color: #0088cc;
}

@media (max-width: 768px) {
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

.search-overlay {
    justify-content: center;
    padding-top: 120px;
}

.search-overlay.active {
    display: flex;
}

.search-box {
    width: 90%;
    max-width: 640px;
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.search-input-wrap {
    display: flex;
    align-items: center;
    padding: var(--space-4) var(--space-6);
    border-bottom: 1px solid var(--border-color);
}

.search-input-wrap svg {
    color: var(--text-muted);
    flex-shrink: 0;
}

.search-input-wrap input {
    flex: 1;
    background: none;
    color: var(--text-primary);
    padding: var(--space-2) var(--space-4);
    font-size: var(--font-lg);
}

.search-input-wrap input::placeholder {
    color: var(--text-muted);
}

.search-popular {
    padding: var(--space-4) var(--space-6);
    background: rgba(var(--primary-rgb), 0.03);
    border-bottom: 1px solid var(--border-color);
}

.search-popular-title {
    font-size: var(--font-xs);
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-3);
}

.search-popular-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
}

.search-tag {
    padding: 6px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

/* Colorful Variants */
.search-tag:nth-child(6n+1):hover {
    --tag-color: #6366f1;
}

/* Indigo */
.search-tag:nth-child(6n+2):hover {
    --tag-color: #a855f7;
}

/* Purple */
.search-tag:nth-child(6n+3):hover {
    --tag-color: #10b981;
}

/* Emerald */
.search-tag:nth-child(6n+4):hover {
    --tag-color: #f43f5e;
}

/* Rose */
.search-tag:nth-child(6n+5):hover {
    --tag-color: #f59e0b;
}

/* Amber */
.search-tag:nth-child(6n+6):hover {
    --tag-color: #06b6d4;
}

/* Cyan */

.search-tag:hover {
    background: var(--tag-color, var(--primary));
    border-color: var(--tag-color, var(--primary));
    color: #fff;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3), 0 0 15px var(--tag-color, var(--primary));
}

.search-tag:active {
    transform: translateY(-1px) scale(0.98);
}

.search-results {
    max-height: 400px;
    overflow-y: auto;
    padding: var(--space-2);
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    padding: var(--space-3) var(--space-4);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
}

.search-result-item:hover {
    background: var(--bg-card-hover);
}

.search-result-item img {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: var(--radius-sm);
}

.search-result-info {
    flex: 1;
}

.search-result-info h4 {
    font-size: var(--font-sm);
    font-weight: 600;
    color: var(--text-primary);
}

.search-result-info span {
    font-size: var(--font-xs);
    color: var(--text-muted);
}

.search-no-results {
    padding: var(--space-8);
    text-align: center;
    color: var(--text-muted);
}

.search-see-all {
    display: block;
    padding: var(--space-3) var(--space-4);
    text-align: center;
    font-weight: 600;
    font-size: var(--font-sm);
    color: var(--primary-light);
    border-top: 1px solid var(--border-color);
}

.search-see-all:hover {
    background: rgba(99, 102, 241, 0.05);
}

/* ============ HERO SLIDER ============ */
.hero-section {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    display: flex;
    align-items: center;
}

.hero-slide.active {
    opacity: 1;
    z-index: 5;
}

/* Animations are now in index.php or below */

.hero-title {
    font-size: clamp(2.2rem, 6vw, 4.2rem);
    font-weight: 900;
    line-height: 1.05;
    margin-bottom: var(--space-4);
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), 0 0 60px rgba(0, 0, 0, 0.4);
}

.hero-desc {
    font-size: 1.15rem;
    line-height: 1.6;
    margin-bottom: var(--space-8);
    max-width: 550px;
    text-shadow: 0 5px 15px rgba(0, 0, 0, 0.7);
    font-weight: 500;
}

.hero-badges {
    display: flex;
    gap: var(--space-2);
    margin-bottom: var(--space-4);
}

.hero-badge {
    padding: 6px 14px;
    font-size: var(--font-xs);
    font-weight: 700;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.hero-buttons {
    display: flex;
    gap: var(--space-4);
    align-items: center;
}

.hero-buttons .btn-primary {
    padding: 12px 28px;
    font-size: var(--font-base);
}

.hero-dots {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: var(--space-2);
    z-index: 5;
}

.hero-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: var(--transition);
}

.hero-dot.active {
    background: var(--primary-light);
    width: 28px;
    border-radius: var(--radius-full);
}

.hero-arrows {
    position: absolute;
    bottom: 20px;
    right: 40px;
    display: flex;
    gap: var(--space-2);
    z-index: 5;
}

.hero-arrow {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.hero-arrow:hover {
    background: var(--primary);
    border-color: var(--primary);
}

/* ============ SECTION HEADERS ============ */
.section {
    padding: var(--space-16) 0;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-8);
    flex-wrap: wrap;
    gap: var(--space-4);
}

.section-title {
    font-size: var(--font-2xl);
    font-weight: 800;
    color: var(--text-primary);
}

.section-link {
    font-size: var(--font-sm);
    font-weight: 600;
    color: var(--primary-light);
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.section-link:hover {
    color: var(--secondary);
    gap: var(--space-3);
}

/* ============ TAB CONTROLS ============ */
.tab-controls {
    display: flex;
    gap: var(--space-2);
    flex-wrap: wrap;
}

.tab-btn {
    padding: 8px 20px;
    font-size: var(--font-sm);
    font-weight: 600;
    color: var(--text-muted);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: var(--transition);
}

.tab-btn:hover {
    color: var(--text-primary);
    border-color: var(--primary);
}

.tab-btn.active {
    background: var(--gradient-primary);
    color: #fff;
    border-color: transparent;
}

/* ============ PRODUCT CARDS ============ */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
}

.products-grid.large {
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 16px;
}

@media (min-width: 1680px) {

    .products-grid,
    .products-grid.large {
        grid-template-columns: repeat(8, 1fr);
    }
}

.product-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: var(--transition);
    position: relative;
    display: block;
}

.product-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(var(--primary-rgb), 0.1);
}

.card-image-wrap {
    position: relative;
    aspect-ratio: 10/14;
    overflow: hidden;
    background: #000;
}

.card-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.product-card:hover .card-image-wrap img {
    transform: scale(1.1) rotate(1deg);
    filter: blur(2px) brightness(0.7);
}

/* Badges Animation (Top) */
.card-badge,
.card-version {
    position: absolute;
    top: 15px;
    padding: 4px 8px;
    font-size: 0.65rem;
    font-weight: 700;
    border-radius: 8px;
    z-index: 10;
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(10px);
    max-width: 65px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-badge {
    left: 15px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
}

.card-version {
    right: 15px;
    background: #10b981;
    /* Emerald Green */
    color: #fff;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.product-card:hover .card-badge,
.product-card:hover .card-version {
    opacity: 1;
    transform: translateY(0);
}

/* Hover Overlay */
.card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom,
            rgba(0, 0, 0, 0) 0%,
            rgba(0, 0, 0, 0.2) 40%,
            rgba(0, 0, 0, 0.85) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 5;
}

.product-card:hover .card-overlay {
    opacity: 1;
}

/* Central Icon Animation */
.card-center-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1.5px solid rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    margin-bottom: 15px;
}

.card-center-icon svg {
    width: 24px;
    height: 24px;
}

.product-card:hover .card-center-icon {
    opacity: 1;
    transform: scale(1);
    transition-delay: 0.1s;
}

.card-center-icon:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: scale(1.1);
}

/* Bottom Details Animation */
.card-details {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px;
    transform: translateY(30px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card:hover .card-details {
    transform: translateY(0);
    opacity: 1;
    transition-delay: 0.2s;
}

.card-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 4px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.card-meta {
    display: flex;
    gap: 10px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.75rem;
    font-weight: 500;
}

.card-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.card-meta-item svg {
    opacity: 0.7;
}

/* Remove old card-info styles if any conflict */
.card-info {
    display: none;
    /* We moved it to the overlay */
}

/* ============ FEATURED SECTION ============ */
.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--space-6);
}

.featured-card {
    display: flex;
    gap: var(--space-4);
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: var(--space-4);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.featured-card:hover {
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.featured-card-image {
    width: 80px;
    height: 100px;
    border-radius: var(--radius-md);
    overflow: hidden;
    flex-shrink: 0;
}

.featured-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-card-info {
    flex: 1;
    min-width: 0;
}

.featured-card-info h3 {
    font-size: var(--font-sm);
    font-weight: 600;
    margin-bottom: var(--space-1);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.featured-card-info p {
    font-size: var(--font-xs);
    color: var(--text-muted);
    margin-bottom: var(--space-2);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-clamp: 2;
    overflow: hidden;
}

/* ============ CATEGORY BLOCKS ============ */
.category-blocks {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-6);
}

.category-block {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: var(--space-8);
    text-align: center;
    border: 1px solid var(--border-color);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.category-block::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-primary);
    opacity: 0;
    transition: var(--transition);
}

.category-block:hover::before {
    opacity: 0.07;
}

.category-block:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
}

.category-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto var(--space-4);
    border-radius: var(--radius-lg);
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--font-2xl);
    color: #fff;
    position: relative;
    z-index: 1;
}

.category-block h3 {
    font-size: var(--font-xl);
    font-weight: 700;
    margin-bottom: var(--space-2);
    position: relative;
    z-index: 1;
}

.category-count {
    font-size: var(--font-sm);
    color: var(--text-muted);
    position: relative;
    z-index: 1;
}

/* ============ CTA SECTION ============ */
.cta-section {
    background: var(--gradient-primary);
    border-radius: var(--radius-xl);
    padding: var(--space-16) var(--space-8);
    text-align: center;
    margin: var(--space-16) 0;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
}

.cta-section h2 {
    font-size: var(--font-3xl);
    font-weight: 800;
    color: #fff;
    margin-bottom: var(--space-4);
    position: relative;
}

.cta-section p {
    font-size: var(--font-lg);
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: var(--space-8);
    position: relative;
}

.cta-section .btn {
    background: #fff;
    color: var(--primary);
    font-weight: 700;
    position: relative;
}

.cta-section .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* ============ FOOTER ============ */
.site-footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: var(--space-16) 0 var(--space-8);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--space-10);
    margin-bottom: var(--space-10);
}

.footer-brand p {
    color: var(--text-muted);
    font-size: var(--font-sm);
    margin-top: var(--space-4);
    line-height: 1.7;
}

.footer-title {
    font-size: var(--font-base);
    font-weight: 700;
    margin-bottom: var(--space-4);
    color: var(--text-primary);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: var(--space-2);
}

.footer-links a {
    color: var(--text-muted);
    font-size: var(--font-sm);
}

.footer-links a:hover {
    color: var(--primary-light);
}

.footer-bottom {
    padding-top: var(--space-8);
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-4);
}

.footer-bottom p {
    font-size: var(--font-sm);
    color: var(--text-muted);
}

/* ============ PRODUCT DETAIL PAGE ============ */
.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-2);
    margin-bottom: 12px;
    /* Synchronized with subtitle margin */
    font-size: 12px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.4);
}

.breadcrumbs a {
    color: rgba(255, 255, 255, 0.6);
    transition: color 0.2s ease;
}

.breadcrumbs a:hover {
    color: #fff;
}

.breadcrumbs .sep {
    color: rgba(255, 255, 255, 0.2);
    font-weight: 300;
}

.breadcrumbs .current {
    color: #fff;
    font-weight: 600;
}

.product-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    /* Immersive all-around fade (removes all sharp lines from edges) */
    mask-image: radial-gradient(ellipse at 50% 45%, black 0%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at 50% 45%, black 0%, transparent 70%);
}

.product-backdrop::before {
    content: '';
    position: absolute;
    inset: 0;
    /* Deep 4-side vignette - widened center for better image visibility */
    background:
        radial-gradient(circle at 50% 40%, transparent 25%, var(--bg-primary) 95%),
        linear-gradient(to bottom, var(--bg-primary) 0%, transparent 15%),
        linear-gradient(to top, var(--bg-primary) 0%, transparent 25%);
    z-index: 1;
}

.product-backdrop img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.35;
    /* Increased for better visibility */
    filter: brightness(0.6) contrast(1.2) saturate(0.9);
    animation: backdropFadeIn 2s ease-out forwards;
}

@keyframes backdropFadeIn {
    from {
        opacity: 0;
        transform: scale(1.05);
    }

    to {
        opacity: 0.4;
        transform: scale(1);
    }
}

.product-detail {
    padding: var(--space-8) 0 var(--space-12);
    /* Reduced for more compact full look */
    position: relative;
    z-index: 1;
}

.product-glass-wrapper {
    background: rgba(2, 6, 23, 0.75);
    /* Dark overlay so buttons/text always visible */
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: none;
    border-radius: 24px;
    padding: 0;
    box-shadow: none;
}

.container-expansive {
    max-width: var(--container-wide);
    margin: -30px auto 0;
    /* Reduced lift to create space from site header */
    padding: 0 var(--space-6);
    /* Reduced from space-12 for full look */
    position: relative;
    z-index: 10;
}

.product-header-expansive {
    width: 100%;
    position: relative;
    overflow: visible;
    /* Changed from hidden to allow dropdowns to show */
    padding-top: 40px;
    /* Gap from site header */
    background: var(--bg-primary);
    /* Solid bg for the area above backdrop */
}

.product-header {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: var(--space-12);
    align-items: start;
    text-align: left;
    margin-top: 0;
}

.product-cover-column {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    width: 280px;
    max-width: 280px;
    margin-top: 0;
    margin-left: 20px;
    /* Push cover away from border for a cleaner look */
}

.product-cover {
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 1/1.4;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.8);
    border: none;
    /* Removed white border */
    transform: perspective(1000px) rotateY(-5deg);
    transition: transform 0.5s var(--ease-out);
    background: var(--bg-surface);
}

.product-cover:hover {
    transform: perspective(1000px) rotateY(0deg) scale(1.02);
}

.product-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.trailer-btn {
    width: 100%;
    justify-content: center;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 18px;
    font-weight: 700;
    border-radius: 12px;
    font-size: 14px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.trailer-btn:hover {
    background: var(--border-color);
    color: var(--text-primary);
    transform: translateY(-2px);
}

.product-info {
    display: flex;
    flex-direction: column;
    padding-top: 28px;
    /* Align with top of featured image */
}

.product-subtitle {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 12px;
    font-weight: 500;
    margin-top: 0;
}

[data-theme="light"] .product-subtitle {
    color: #475569;
}

.product-info h2 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-top: 0;
    margin-bottom: var(--space-4);
    line-height: 1.15;
    letter-spacing: -0.5px;
    color: var(--text-primary);
    background: linear-gradient(to right, var(--text-primary), var(--text-secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

[data-theme="light"] .product-info h2 {
    background: linear-gradient(to right, #0f172a, #334155);
    -webkit-background-clip: text;
    background-clip: text;
}

@media (max-width: 768px) {
    .product-header {
        grid-template-columns: 1fr;
        gap: var(--space-8);
        text-align: center;
        padding: 0 16px;
    }

    .product-cover-column {
        margin: 0 auto;
        width: 100%;
        max-width: 200px;
    }

    .product-info {
        padding-top: 0;
        align-items: center;
        width: 100%;
    }

    .product-info h2 {
        font-size: 1.6rem;
        margin-bottom: var(--space-6);
        text-align: center;
        width: 100%;
    }

    .product-rating-row {
        flex-direction: column;
        gap: 12px;
        padding: 16px;
        background: rgba(255, 255, 255, 0.02);
        border-radius: 12px;
        width: 100%;
        align-items: center;
    }

    .product-meta-bar {
        display: flex;
        flex-direction: column;
        gap: 10px;
        padding: 16px;
        background: rgba(255, 255, 255, 0.02);
        border: 1px solid rgba(255, 255, 255, 0.05);
        border-radius: 12px;
        width: 100%;
        align-items: center;
    }

    .meta-item-row {
        display: flex;
        justify-content: center;
        gap: 12px;
        flex-wrap: wrap;
        width: 100%;
    }

    .meta-item {
        font-size: 11px;
        color: var(--text-muted);
    }

    .product-action-bar {
        display: flex;
        flex-direction: column;
        gap: 12px;
        width: 100%;
        margin-top: var(--space-4);
        align-items: center;
    }

    .hero-badge.latest {
        margin: 0 auto !important;
    }

    .action-btn-row {
        display: flex;
        gap: 8px;
        width: 100%;
    }

    .action-btn {
        flex: 1;
        padding: 12px;
        font-size: 13px;
        justify-content: center;
    }

    .vote-group {
        width: 100%;
        justify-content: center;
    }

    .hero-badge {
        padding: 6px 14px;
        font-size: 10px;
    }
}

/* ============ HERO BADGES ============ */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    border-radius: 100px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    width: fit-content;
}

.hero-badge.version {
    background: rgba(2, 6, 23, 0.7);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(0, 230, 118, 0.5);
    color: #00e676;
    box-shadow: 0 0 15px rgba(0, 230, 118, 0.2);
    position: relative;
    overflow: hidden;
    animation: neonPulseGreen 2s infinite ease-in-out;
}

@keyframes neonPulseGreen {
    0% {
        box-shadow: 0 0 5px rgba(0, 230, 118, 0.2);
        border-color: rgba(0, 230, 118, 0.4);
    }

    50% {
        box-shadow: 0 0 20px rgba(0, 230, 118, 0.5);
        border-color: rgba(0, 230, 118, 0.7);
    }

    100% {
        box-shadow: 0 0 5px rgba(0, 230, 118, 0.2);
        border-color: rgba(0, 230, 118, 0.4);
    }
}

.hero-badge.version::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: shine 4s infinite;
}

.hero-badge.latest {
    background: rgba(2, 6, 23, 0.7);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(0, 230, 118, 0.3);
    color: #00e676;
    box-shadow: 0 0 15px rgba(0, 230, 118, 0.1);
}

.status-dot {
    width: 6px;
    height: 6px;
    background: #00e676;
    border-radius: 50%;
    box-shadow: 0 0 10px #00e676;
    animation: blink 2s infinite ease-in-out;
}

@keyframes blink {
    0% {
        opacity: 0.5;
        transform: scale(0.85);
        box-shadow: 0 0 5px #00e676;
    }

    50% {
        opacity: 1;
        transform: scale(1.1);
        box-shadow: 0 0 15px #00e676;
    }

    100% {
        opacity: 0.5;
        transform: scale(0.85);
        box-shadow: 0 0 5px #00e676;
    }
}

@keyframes shine {
    0% {
        left: -100%;
    }

    20% {
        left: 150%;
    }

    100% {
        left: 150%;
    }
}

.product-rating-row,
.product-meta-bar,
.product-action-bar {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
    margin-bottom: var(--space-6);
}

.meta-item-row,
.action-btn-row {
    display: contents;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    color: #e2e8f0;
    font-size: 14px;
    font-weight: 700;
    transition: all 0.2s ease;
    cursor: pointer;
}

.action-btn:hover {
    background: rgba(2, 6, 23, 0.85);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.2);
}

.vote-group {
    display: flex;
    gap: 2px;
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 2px;
    overflow: hidden;
}

.vote-btn {
    padding: 10px 20px;
    background: transparent;
    border: none;
    color: #e2e8f0;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
    border-radius: 10px;
}

.vote-btn:first-child {
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.vote-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.product-meta-group {
    display: flex;
    gap: var(--space-4);
    margin-bottom: var(--space-12);
}

.meta-group-it.header {
    height: var(--header-height);
    background: var(--bg-surface);
    border: none;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: background 0.3s;
}

.meta-group-item {
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    font-size: 14px;
    transition: background 0.3s;
}

.meta-label {
    color: rgba(255, 255, 255, 0.3);
    font-weight: 500;
}

.meta-value {
    color: #fff;
    font-weight: 700;
    margin-left: 6px;
}

.product-genres {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    flex-wrap: wrap;
    margin-bottom: var(--space-16);
}

.genres-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
}

.genre-tag {
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.6);
    transition: var(--transition);
}

.genre-tag:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    transform: translateY(-2px);
}

.btn-rate-minimal {
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    text-transform: uppercase;
}

.stars {
    display: flex;
    gap: 4px;
    color: #f59e0b;
    /* Vibrant Anker Orange */
    font-size: 18px;
}

.star-icon {
    opacity: 0.3;
}

.star-icon.filled {
    opacity: 1;
}

.product-meta-footer {
    display: flex;
    gap: var(--space-4);
    margin-bottom: var(--space-8);
}

.meta-footer-item {
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    font-size: 13px;
}

.product-footer-actions {
    display: flex;
    flex-direction: column;
    gap: var(--space-6);
}

.product-main-btns {
    display: flex;
    align-items: center;
    gap: var(--space-4);
}

.btn-discord {
    background: #5865F2;
    /* Discord specific purple */
    color: #fff;
    padding: 18px 40px;
    border-radius: 12px;
    font-weight: 800;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 10px 30px rgba(88, 101, 242, 0.3);
}

.discord-dot {
    width: 8px;
    height: 8px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 0 10px #fff;
}

.btn-download-hero {
    padding: 18px 50px;
    font-size: 18px;
    font-weight: 800;
    background: #38bdf8;
    /* Vibrant Anker blue */
    box-shadow: 0 4px 30px rgba(14, 165, 233, 0.4);
    border-radius: 12px;
    width: fit-content;
    text-transform: capitalize;
    color: #000;
    box-shadow: none;
    border: none;
}

.btn-download-hero:hover {
    background: #0ea5e9;
    box-shadow: 0 8px 40px rgba(14, 165, 233, 0.6);
    transform: translateY(-2px);
}


.product-desc-short {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: var(--space-6);
}

.product-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    margin-bottom: var(--space-6);
}

.tag {
    padding: 4px 12px;
    font-size: var(--font-xs);
    font-weight: 500;
    border-radius: var(--radius-full);
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary-light);
    border: 1px solid rgba(99, 102, 241, 0.2);
    transition: var(--transition);
}

.tag:hover {
    background: rgba(99, 102, 241, 0.2);
}

.product-actions {
    display: flex;
    gap: var(--space-4);
    flex-wrap: wrap;
    margin-top: auto;
}

/* ============ PRODUCT SECTIONS ============ */
.product-section {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    /* Reduced from space-8 */
    margin-bottom: var(--space-6);
    border: 1px solid var(--border-color);
}

.product-section h2 {
    font-size: var(--font-xl);
    font-weight: 700;
    margin-bottom: var(--space-6);
    padding-bottom: var(--space-4);
    border-bottom: 1px solid var(--border-color);
}

.product-description {
    line-height: 1.8;
    color: var(--text-secondary);
}

.product-description h1,
.product-description h2,
.product-description h3 {
    color: var(--text-primary);
    margin: var(--space-6) 0 var(--space-3);
}

.product-description p {
    margin-bottom: var(--space-4);
}

.product-description ul,
.product-description ol {
    padding-left: var(--space-6);
    margin-bottom: var(--space-4);
}

.product-description li {
    margin-bottom: var(--space-2);
}

.product-description img {
    border-radius: var(--radius-md);
    margin: var(--space-4) 0;
}

.sys-req-premium-card {
    background: rgba(13, 17, 23, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: var(--space-6) var(--space-8);
    /* Reduced from space-8/space-10 */
    margin-top: var(--space-6);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.sys-req-header {
    display: flex;
    align-items: center;
    gap: var(--space-6);
    margin-bottom: var(--space-10);
}

.sys-req-icon {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-light);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.sys-req-title-wrap h3 {
    font-size: 1.4rem;
    font-weight: 800;
    margin: 0;
    color: #fff;
    letter-spacing: -0.01em;
}

.sys-req-title-wrap p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.4);
    margin: 4px 0 0;
    font-weight: 500;
}

.sys-req-processor-notice {
    padding-bottom: var(--space-6);
    margin-bottom: var(--space-10);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    text-align: center;
}

.sys-req-processor-notice::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
}

.sys-req-processor-notice span {
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.15em;
    color: var(--primary-light);
    background: #0d1117;
    padding: 0 20px;
    position: relative;
    z-index: 2;
    text-transform: uppercase;
    border-radius: 4px;
}

.sys-req-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 var(--space-12);
}

.sys-req-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-5) 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.sys-req-item:nth-last-child(-n+2) {
    border-bottom: none;
}

.sys-req-label-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sys-req-item-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.sys-req-item:hover .sys-req-item-icon {
    transform: scale(1.1);
    background: rgba(255, 255, 255, 0.06);
}

.sys-req-label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 600;
}

.sys-req-value {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    text-align: right;
}

@media (max-width: 768px) {
    .sys-req-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .sys-req-item:nth-last-child(2) {
        border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    }

    .sys-req-item:last-child {
        border-bottom: none;
    }

    .sys-req-premium-card {
        padding: var(--space-6) var(--space-5);
    }
}

.sysreq-table {
    width: 100%;
    border-collapse: collapse;
}

.sysreq-table tr {
    border-bottom: 1px solid var(--border-color);
}

.sysreq-table td {
    padding: var(--space-3) var(--space-4);
    font-size: var(--font-sm);
}

.sysreq-table td:first-child {
    font-weight: 600;
    color: var(--text-primary);
    width: 140px;
}

.sysreq-table td:last-child {
    color: var(--text-secondary);
}


/* Download Links */
.download-links {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.download-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-4);
    background: var(--bg-surface);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.download-link:hover {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.05);
}

.download-link-name {
    font-weight: 600;
    font-size: var(--font-sm);
}

.monetization-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: var(--space-4);
    text-align: center;
    background: var(--gradient-pink);
    color: #fff;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: var(--font-base);
    transition: var(--transition);
}

.monetization-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(236, 72, 153, 0.3);
    color: #fff;
}

/* ============ REVIEWS ============ */
.review-item {
    padding: var(--space-6);
    border-bottom: 1px solid var(--border-color);
}

.review-item:last-child {
    border-bottom: none;
}

.review-header {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin-bottom: var(--space-3);
}

.review-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: var(--font-sm);
}

.review-name {
    font-weight: 600;
    font-size: var(--font-sm);
}

.review-date {
    font-size: var(--font-xs);
    color: var(--text-muted);
}

.review-stars {
    color: #fbbf24;
    font-size: var(--font-sm);
}

.review-comment {
    font-size: var(--font-sm);
    color: var(--text-secondary);
    line-height: 1.7;
}

.review-form {
    padding: var(--space-6);
    background: var(--bg-surface);
    border-radius: var(--radius-md);
    margin-top: var(--space-6);
}

.review-form h3 {
    font-size: var(--font-lg);
    font-weight: 700;
    margin-bottom: var(--space-4);
}

/* ============ FORMS ============ */
.form-group {
    margin-bottom: var(--space-5);
}

.form-label {
    display: block;
    font-size: var(--font-sm);
    font-weight: 600;
    margin-bottom: var(--space-2);
    color: var(--text-primary);
}

.form-control {
    width: 100%;
    padding: var(--space-3) var(--space-4);
    background: var(--bg-input);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

select.form-control {
    cursor: pointer;
}

.star-rating-input {
    display: flex;
    gap: var(--space-1);
    font-size: var(--font-2xl);
    cursor: pointer;
}

.star-rating-input .star {
    color: var(--text-muted);
    transition: var(--transition);
}

.star-rating-input .star.active,
.star-rating-input .star:hover {
    color: #fbbf24;
}

.honeypot {
    position: absolute;
    left: -9999px;
}

/* ============ PAGINATION ============ */
.pagination {
    display: flex;
    justify-content: center;
    gap: var(--space-2);
    margin-top: var(--space-10);
}

.page-link {
    padding: 8px 16px;
    font-size: var(--font-sm);
    font-weight: 600;
    border-radius: var(--radius-md);
    background: var(--bg-card);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.page-link:hover {
    border-color: var(--primary);
    color: var(--primary-light);
}

.page-link.active {
    background: var(--gradient-primary);
    color: #fff;
    border-color: transparent;
}

/* ============ SORT BAR ============ */
.sort-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-8);
    flex-wrap: wrap;
    gap: var(--space-4);
}

.sort-bar .result-count {
    font-size: var(--font-sm);
    color: var(--text-muted);
}

.sort-options {
    display: flex;
    gap: var(--space-2);
}

.sort-btn {
    padding: 6px 16px;
    font-size: var(--font-xs);
    font-weight: 600;
    border-radius: var(--radius-full);
    background: var(--bg-card);
    color: var(--text-muted);
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: var(--transition);
}

.sort-btn:hover,
.sort-btn.active {
    background: var(--gradient-primary);
    color: #fff;
    border-color: transparent;
}

/* ============ REQUEST PAGE ============ */
.request-page {
    padding: var(--space-16) 0;
}

.request-form-wrap {
    max-width: 640px;
    margin: 0 auto;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: var(--space-10);
    border: 1px solid var(--border-color);
}

.request-form-wrap h1 {
    font-size: var(--font-2xl);
    font-weight: 800;
    margin-bottom: var(--space-2);
}

.request-form-wrap .subtitle {
    font-size: var(--font-sm);
    color: var(--text-muted);
    margin-bottom: var(--space-8);
}

/* ============ ALERTS ============ */
.alert {
    padding: var(--space-4) var(--space-5);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-6);
    font-size: var(--font-sm);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.alert-success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--accent-emerald);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.alert-error {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

/* ============ 404 PAGE ============ */
.error-page {
    padding: var(--space-16) 0;
    text-align: center;
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.error-page h1 {
    font-size: 6rem;
    font-weight: 900;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.error-page p {
    color: var(--text-muted);
    margin-bottom: var(--space-8);
}

/* ============ LIGHTBOX ============ */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: var(--z-modal);
    background: rgba(0, 0, 0, 0.9);
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.lightbox.active {
    display: flex;
}

.lightbox img {
    max-width: 90%;
    max-height: 90vh;
    border-radius: var(--radius-md);
}

/* ============ VIDEO EMBED ============ */
.video-embed {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-6);
}

.video-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* ============ SKELETON LOADING ============ */
.skeleton {
    background: linear-gradient(90deg, var(--bg-card) 25%, var(--bg-card-hover) 50%, var(--bg-card) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--radius-md);
}

@keyframes shimmer {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
    .header-inner {
        gap: var(--space-4);
    }

    .main-nav a {
        padding: 6px 10px;
        font-size: var(--font-xs);
    }

    .hero-section {
        height: 450px;
    }

    .hero-title {
        font-size: var(--font-3xl);
    }

    .category-blocks {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--space-4);
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .container-expansive {
        margin-top: 0;
    }

    .product-header {
        grid-template-columns: 200px 1fr;
    }

    .product-cover-column {
        margin-top: 0;
    }

    .product-info {
        padding-top: 0;
    }
}

@media (max-width: 768px) {
    :root {
        --container-max: 100%;
    }

    .container {
        padding: 0 var(--space-4);
    }

    .main-nav {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .mobile-nav {
        position: fixed;
        top: 68px;
        left: 0;
        right: 0;
        background: var(--bg-secondary);
        border-bottom: 1px solid var(--border-color);
        padding: var(--space-4);
        display: none;
        z-index: var(--z-dropdown);
        box-shadow: var(--shadow-lg);
    }

    .mobile-nav.active {
        display: block;
    }

    .mobile-nav a {
        display: block;
        padding: var(--space-3) var(--space-4);
        color: var(--text-secondary);
        font-weight: 500;
        border-radius: var(--radius-md);
    }

    .mobile-nav a:hover {
        background: rgba(99, 102, 241, 0.1);
        color: var(--text-primary);
    }

    .hero-section {
        height: 400px;
    }

    .hero-title {
        font-size: var(--font-2xl);
    }

    .hero-desc {
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        line-clamp: 2;
        overflow: hidden;
    }

    .hero-content {
        padding: var(--space-6);
    }

    .hero-arrows {
        display: none;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: var(--space-4);
    }

    .featured-grid {
        grid-template-columns: 1fr;
    }

    .category-blocks {
        grid-template-columns: 1fr;
    }

    .container-expansive {
        margin-top: 0;
    }

    .product-header {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .product-cover-column {
        margin-top: 0;
        align-items: center;
        width: 100%;
        max-width: 100%;
    }

    .product-info {
        padding-top: 0;
    }

    .product-info {
        padding-top: 0;
    }

    .product-cover {
        max-width: 250px;
        margin: 0 auto;
    }

    .product-rating {
        justify-content: center;
    }

    .product-meta-badges {
        justify-content: center;
    }

    .product-tags {
        justify-content: center;
    }

    .product-actions {
        justify-content: center;
    }

    .product-badges {
        justify-content: center;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .section {
        padding: var(--space-10) 0;
    }

    .section-title {
        font-size: var(--font-xl);
    }

    .sort-bar {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-3);
    }

    .card-info {
        padding: var(--space-3);
    }

    .card-title {
        font-size: var(--font-xs);
    }

    .hero-section {
        height: 350px;
    }

    .hero-title {
        font-size: var(--font-xl);
    }

    .hero-buttons {
        flex-direction: column;
        gap: var(--space-2);
    }

    .hero-buttons .btn {
        width: 100%;
        justify-content: center;
    }

    .cta-section {
        padding: var(--space-10) var(--space-4);
    }

    .cta-section h2 {
        font-size: var(--font-2xl);
    }

    .request-form-wrap {
        padding: var(--space-6);
    }
}

/* ============ PAGE LOADING ANIMATION ============ */
.fade-in {
    animation: fadeInUp 0.5s ease forwards;
    opacity: 0;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============ SCROLLBAR ============ */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--bg-card);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* Download Modal styles */
.dl-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s var(--ease-out);
}

.dl-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.dl-modal-card {
    width: 100%;
    max-width: 580px;
    background: linear-gradient(135deg, rgba(13, 17, 23, 0.9), rgba(10, 14, 20, 0.98));
    border: 1px solid rgba(99, 102, 241, 0.3);
    box-shadow: 0 0 40px rgba(99, 102, 241, 0.15), 0 40px 100px rgba(0, 0, 0, 0.8);
    border-radius: 20px;
    transform: translateY(20px) scale(0.95);
    transition: all 0.4s var(--ease-out);
    overflow: hidden;
    position: relative;
}

.dl-modal-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(99, 102, 241, 0.5), transparent);
}

.dl-modal-overlay.active .dl-modal-card {
    transform: translateY(0) scale(1);
}

.dl-modal-header {
    padding: 24px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.dl-modal-title {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
}

.dl-title-icon {
    width: 36px;
    height: 36px;
    background: rgba(56, 189, 248, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #38bdf8;
}

.dl-modal-close {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #fff;
    cursor: pointer;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.dl-modal-close:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

.dl-modal-body {
    padding: 32px;
}

.dl-section {
    margin-bottom: 32px;
}

.dl-section:last-child {
    margin-bottom: 0;
}

.dl-section-header {
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.dl-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.015);
    border: 1px solid rgba(99, 102, 241, 0.15);
    border-radius: 14px;
    margin-bottom: 12px;
    transition: all 0.3s var(--ease-out);
}

.dl-item:hover {
    background: rgba(99, 102, 241, 0.05);
    border-color: rgba(99, 102, 241, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.2);
}

.dl-item-info {
    display: flex;
    align-items: center;
    gap: 14px;
}

.dl-server-icon {
    width: 32px;
    height: 32px;
    background: rgba(99, 102, 241, 0.05);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}

.dl-name {
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
}

.dl-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    transition: all 0.3s;
}

.dl-btn.direct {
    background: linear-gradient(135deg, var(--primary) 0%, #4f46e5 100%);
    color: #fff;
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.dl-btn.direct:hover {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
    transform: translateY(-1px);
    box-shadow: 0 0 25px rgba(99, 102, 241, 0.5);
    border-color: rgba(255, 255, 255, 0.2);
}

.dl-btn.direct:active {
    transform: translateY(0);
}

/* Torrent section specific */
.dl-section.torrent {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: 24px;
}

.dl-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.dl-torrent-icon {
    width: 28px;
    height: 28px;
    background: rgba(16, 185, 129, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #10b981;
}

.dl-badge {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
    font-size: 10px;
    text-transform: uppercase;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 20px;
    letter-spacing: 0.05em;
}

.dl-hint {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.3);
    margin-top: 4px;
}

.dl-btn-full {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 600;
    transition: all 0.3s;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    margin-top: 16px;
}

.dl-btn-full:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.2);
}

.dl-spark {
    margin-left: 4px;
    font-size: 14px;
}

@media (max-width: 580px) {
    .dl-modal-card {
        width: 95%;
        border-radius: 16px;
    }

    .dl-modal-header {
        padding: 18px 20px;
    }

    .dl-modal-body {
        padding: 20px;
    }

    .dl-item {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
        padding: 16px;
        text-align: center;
    }

    .dl-item-info {
        flex-direction: column;
        gap: 8px;
    }

    .dl-server-icon {
        margin: 0 auto;
    }

    .dl-name {
        font-size: 13px;
    }

    .dl-btn.direct {
        width: 100%;
        justify-content: center;
        padding: 12px;
    }

    .dl-section.torrent {
        padding: 16px;
    }

    .dl-header-left {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 8px;
    }

    .dl-hint {
        text-align: center;
        font-size: 12px;
    }

    .dl-modal-title {
        font-size: 1.1rem;
    }

    .dl-title-icon {
        width: 32px;
        height: 32px;
    }
}

/* SITETWIDE MOBILE POLISH */
@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }

    .header-inner {
        padding: 12px 0;
    }

    .site-logo img {
        height: 28px;
    }

    .hero-section {
        height: auto !important;
        min-height: 400px;
        padding: 40px 0;
    }

    .hero-content {
        text-align: center;
        align-items: center;
        max-width: 100%;
        padding: 20px;
    }

    .hero-title {
        font-size: 28px;
    }

    .section-header {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }

    .product-card .card-title {
        font-size: 13px;
    }

    .footer-grid {
        gap: 32px;
    }
}

/* ============ GAMES LIBRARY ============ */
.library-container {
    padding-top: var(--space-8);
}

.library-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto var(--space-12);
}

.library-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: var(--space-2);
    color: #fff;
    background: linear-gradient(135deg, #fff 0%, #a5a2a2 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.library-subtitle {
    color: var(--text-muted);
    font-size: var(--font-lg);
    margin-bottom: var(--space-8);
}

.library-search-wrap {
    margin-bottom: var(--space-8);
}

.library-search-input-box {
    display: flex;
    align-items: center;
    position: relative;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--space-4) var(--space-6);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.library-search-input-box:focus-within {
    border-color: var(--primary);
    background: rgba(var(--primary-rgb), 0.05);
    box-shadow: 0 0 25px rgba(var(--primary-rgb), 0.15), inset 0 0 10px rgba(var(--primary-rgb), 0.05);
}

.library-search-input-box svg {
    color: var(--primary);
    margin-right: var(--space-4);
}

.library-search-input-box input {
    flex: 1;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: var(--font-lg);
    outline: none;
}

.library-pro-tip {
    margin-top: var(--space-4);
    font-size: var(--font-sm);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
}

.library-pro-tip .tip-icon {
    font-size: 1.1rem;
}

.library-quick-tags {
    display: flex;
    justify-content: center;
    gap: var(--space-3);
    margin-top: var(--space-4);
    flex-wrap: wrap;
}

.l-tag {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: var(--radius-md);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.tag-blue {
    background: rgba(59, 130, 246, 0.1);
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.tag-blue-alt {
    background: rgba(14, 165, 233, 0.1);
    color: #38bdf8;
    border: 1px solid rgba(14, 165, 233, 0.2);
}

.tag-green {
    background: rgba(34, 197, 94, 0.1);
    color: #4ade80;
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.library-pills {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: var(--space-10);
}

.pill {
    padding: 10px 22px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 100px;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-secondary);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(8px);
}

.pill:hover {
    transform: translateY(-3px) scale(1.05);
    color: #fff;
}

/* Vibrant Colorful Pills */
.pill.latest {
    border-color: rgba(139, 92, 246, 0.3);
}

.pill.latest:hover,
.pill.latest.active {
    background: linear-gradient(135deg, #8b5cf6, #d946ef);
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.4);
    border-color: transparent;
}

.pill.popular {
    border-color: rgba(34, 197, 94, 0.3);
}

.pill.popular:hover,
.pill.popular.active {
    background: linear-gradient(135deg, #22c55e, #10b981);
    box-shadow: 0 8px 25px rgba(34, 197, 94, 0.4);
    border-color: transparent;
}

.pill.category {
    border-color: rgba(59, 130, 246, 0.3);
}

.pill.category:hover,
.pill.category.active {
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
    border-color: transparent;
}

.pill.year {
    border-color: rgba(245, 158, 11, 0.3);
}

.pill.year:hover,
.pill.year.active {
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.4);
    border-color: transparent;
}

.library-about {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-10);
    overflow: hidden;
    cursor: pointer;
    text-align: left;
}

.about-header {
    padding: 16px 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    color: var(--text-secondary);
}

.about-header .chevron {
    margin-left: auto;
    transition: transform 0.3s ease;
}

.library-about.expanded .chevron {
    transform: rotate(180deg);
}

.about-content {
    max-height: 0;
    padding: 0 24px;
    overflow: hidden;
    transition: all 0.3s ease;
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
}

.library-about.expanded .about-content {
    max-height: 200px;
    padding-bottom: 24px;
}

.alpha-filter-wrap,
.alpha-title,
.alpha-strip,
.alpha-item {
    display: none !important;
}

.library-random-cta {
    margin-bottom: var(--space-12);
}

.random-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 14px 28px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 12px;
    color: #fff;
    font-weight: 600;
    box-shadow: 0 4px 20px rgba(var(--primary-rgb), 0.3);
    transition: all 0.3s ease;
}

.random-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(var(--primary-rgb), 0.4);
    color: #fff;
}

.library-results-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 40px;
}

.sort-select select {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 8px 16px;
    border-radius: 8px;
    outline: none;
    cursor: pointer;
}

@media (max-width: 768px) {
    .library-title {
        font-size: 1.8rem;
    }

    .alpha-strip {
        gap: 4px;
        overflow-x: auto;
        justify-content: flex-start;
        padding-bottom: 10px;
    }

    .alpha-item {
        min-width: 32px;
        width: 32px;
        height: 32px;
        font-size: 11px;
    }

    .library-results-bar {
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
    }
}

/* Radar Animations & Polish */
@keyframes radarPulse {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }

    50% {
        transform: scale(1.05);
        opacity: 1;
        filter: drop-shadow(0 0 10px rgba(var(--primary-rgb), 0.5));
    }

    100% {
        transform: scale(1);
        opacity: 0.8;
    }
}

.radar-animation {
    animation: radarPulse 2s ease-in-out infinite;
}

.radar-vibrant {
    position: relative;
    width: 42px;
    height: 42px;
    background: rgba(var(--primary-rgb), 0.1);
    border: 1.5px solid rgba(var(--primary-rgb), 0.3);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    transition: all 0.3s ease;
}

.radar-btn-wrap:hover .radar-vibrant {
    background: rgba(var(--primary-rgb), 0.2);
    border-color: var(--primary);
    box-shadow: 0 0 15px rgba(var(--primary-rgb), 0.3);
}

/* Polished Language Selector & Dropdown Alignment */
.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.header-btn {
    width: 42px;
    height: 42px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.03);
    border: 1.5px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: var(--text-secondary);
    transition: all 0.2s ease;
}

.header-btn svg {
    width: 18px;
    height: 18px;
}

.header-btn .flag-img {
    width: 22px !important;
    height: 22px !important;
}

.header-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.25);
    color: #fff;
}

.language-dropdown-wrap {
    position: relative;
    display: inline-block;
}

.language-trigger.active {
    border-color: #3b82f6 !important;
    color: #3b82f6 !important;
    background: rgba(59, 130, 246, 0.1) !important;
}

.language-dropdown-wrap .lang-dropdown {
    width: 260px;
    background: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
    padding: 12px;
    border-radius: 16px;
    position: absolute;
    top: calc(100% + 15px);
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.language-dropdown-wrap:hover .lang-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.lang-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4px;
}

.lang-item {
    padding: 12px 16px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 16px;
    color: #cbd5e1;
    font-size: 0.95rem;
    background: transparent;
    border: none;
    cursor: pointer;
    width: 100%;
    text-align: left;
    transition: all 0.2s ease;
}

.lang-item.active {
    background: rgba(30, 64, 175, 0.4);
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.lang-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
}

.flag-img {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.language-trigger {
    border: 1.5px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 10px !important;
    padding: 0 !important;
}

.language-trigger:hover {
    border-color: var(--primary) !important;
    background: rgba(var(--primary-rgb), 0.1) !important;
}

/* Fix for Google Translate top bar */
.skiptranslate {
    display: none !important;
}

body {
    top: 0 !important;
}

/* Animations for Library Actions */
@keyframes diceRoll {
    0% {
        transform: rotate(0deg) scale(1);
    }

    30% {
        transform: rotate(180deg) scale(1.2);
    }

    70% {
        transform: rotate(-10deg) scale(0.9);
    }

    100% {
        transform: rotate(360deg) scale(1);
    }
}

@keyframes gradientFlow {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.library-actions-row {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: var(--space-8);
}

.action-icon-btn {
    width: 54px;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    color: var(--text-secondary);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    backdrop-filter: blur(10px);
}

.action-icon-btn:hover {
    background: rgba(var(--primary-rgb), 0.1);
    border-color: var(--primary);
    color: #fff;
    transform: translateY(-8px);
}

.random-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 36px;
    background: linear-gradient(-45deg, #ee7752, #e73c7e, #23a6d5, #23d5ab);
    background-size: 400% 400%;
    animation: gradientFlow 8s ease infinite;
    border-radius: 18px;
    color: #fff;
    font-weight: 800;
}

/* ============ GOOGLE TRANSLATE CLEANUP ============ */
.goog-te-banner-frame,
.goog-te-balloon-frame,
#goog-gt-tt,
.goog-te-menu-value span:last-child,
.VIpgJd-Zvi9ab-aZHe0b-L6EBgc {
    display: none !important;
}

body {
    top: 0 !important;
}

/* ============ HEADER POLISH ============ */
.header-actions {
    gap: 20px !important;
}

/* ============ TRUE VOLUMETRIC 3D ROLLING DICE ============ */
.dice-3d-scene {
    width: 26px;
    height: 26px;
    perspective: 900px;
    /* Adjusted perspective for smaller size */
    display: flex;
    align-items: center;
    justify-content: center;
}

.dice-3d {
    width: 26px;
    height: 26px;
    position: relative;
    transform-style: preserve-3d;
    animation: diceTumbleVolumetric 10s linear infinite;
    transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    will-change: transform;
}

.random-btn-wrap:hover .dice-3d {
    animation: diceTumbleVolumetric 4s linear infinite;
    transform: scale(1.1) translateZ(5px);
}

.dice-face {
    position: absolute;
    width: 26px;
    height: 26px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 4px;
    display: flex;
    flex-wrap: wrap;
    align-content: space-between;
    justify-content: space-between;
    padding: 4px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.4);
    backface-visibility: visible;
}

/* Volumetric Shading per Face (Harmonized to #818cf8) */
.face-1 {
    background: #818cf8 !important;
    transform: rotateY(0deg) translateZ(13px);
    box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.2);
}

.face-2 {
    background: #818cf8 !important;
    transform: rotateY(90deg) translateZ(13px);
    filter: brightness(0.9);
}

.face-3 {
    background: #818cf8 !important;
    transform: rotateY(180deg) translateZ(13px);
    filter: brightness(0.8);
}

.face-4 {
    background: #818cf8 !important;
    transform: rotateY(-90deg) translateZ(13px);
    filter: brightness(0.9);
}

.face-5 {
    background: #818cf8 !important;
    transform: rotateX(90deg) translateZ(13px);
    filter: brightness(1.1);
}

.face-6 {
    background: #818cf8 !important;
    transform: rotateX(-90deg) translateZ(13px);
    filter: brightness(0.7);
}

.dice-face .dot {
    width: 6px;
    height: 6px;
    background-color: #ffffff;
    border-radius: 50%;
    box-shadow: 0 0 4px #fff, inset 0 0 2px rgba(0, 0, 0, 0.5);
}

/* Dots alignment fixed for 26px */
.face-2 .dot:nth-child(2) {
    align-self: flex-end;
}

.face-3 .dot:nth-child(1) {
    align-self: flex-start;
}

.face-3 .dot:nth-child(2) {
    align-self: center;
}

.face-3 .dot:nth-child(3) {
    align-self: flex-end;
}

.face-4 {
    flex-direction: column;
}

.face-4 .dot:nth-child(2),
.face-4 .dot:nth-child(4) {
    align-self: flex-end;
}

.face-5 {
    flex-direction: column;
    justify-content: space-between;
}

.face-5 .dot:nth-child(2),
.face-5 .dot:nth-child(4) {
    align-self: flex-end;
}

.face-5 .dot:nth-child(3) {
    align-self: center;
    margin-top: -6px;
}

.face-6 {
    flex-direction: column;
}

.face-6 .dot:nth-child(2),
.face-6 .dot:nth-child(4),
.face-6 .dot:nth-child(6) {
    align-self: flex-end;
}

@keyframes diceTumbleVolumetric {
    0% {
        transform: rotateX(0deg) rotateY(0deg) rotateZ(0deg);
    }

    25% {
        transform: rotateX(90deg) rotateY(180deg) rotateZ(45deg);
    }

    50% {
        transform: rotateX(180deg) rotateY(360deg) rotateZ(90deg);
    }

    75% {
        transform: rotateX(270deg) rotateY(540deg) rotateZ(135deg);
    }

    100% {
        transform: rotateX(360deg) rotateY(720deg) rotateZ(180deg);
    }
}

.random-btn-wrap {
    overflow: visible !important;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px;
}

body {
    top: 0 !important;
}

/* ============ HEADER POLISH ============ */
.header-actions {
    gap: 20px !important;
}