@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700;900&family=Inter:wght@300;400;600;800&display=swap');

:root {
    /* Base Attributes */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --transition-base: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dark Mode Variables (Default) */
:root,
[data-theme="dark"],
body.dark-mode {
    --bg-body: #050505;
    --bg-header: rgba(10, 10, 10, 0.85);
    --bg-card: #121212;
    --bg-sidebar: #0a0a0a;

    --primary-neon: #00f2ff;
    --secondary-neon: #39ff14;
    --accent-gradient: linear-gradient(135deg, #00f2ff, #0066ff);
    --success-gradient: linear-gradient(135deg, #39ff14, #00cc66);

    --text-main: #e0e0e0;
    --text-bright: #ffffff;
    --text-muted: #999999;

    --border-color: rgba(255, 255, 255, 0.1);
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.1);

    --shadow-main: 0 10px 30px rgba(0, 0, 0, 0.5);
    --shadow-neon: 0 0 20px rgba(0, 242, 255, 0.3);
    --hero-gradient: radial-gradient(circle at top right, rgba(0, 242, 255, 0.1), transparent),
        radial-gradient(circle at bottom left, rgba(57, 255, 20, 0.05), transparent);

    /* Hardware Analyzer Vars */
    --core-neon: #00f2ff;
    --core-bg: #060c14;
    --core-border: rgba(0, 242, 255, 0.25);
    --monitor-bg: #000000;
}

/* Light Mode Variables (Premium Soft Mode) */
[data-theme="light"],
body.light-mode {
    --bg-body: #f1f5f9; /* Soft Slate-White */
    --bg-header: rgba(255, 255, 255, 0.85);
    --bg-card: #ffffff;
    --bg-sidebar: #ffffff;

    --primary-neon: #0ea5e9; /* Professional Cyan-Blue */
    --secondary-neon: #10b981; /* Emerlad Green */
    --accent-gradient: linear-gradient(135deg, #0ea5e9, #2563eb);
    --success-gradient: linear-gradient(135deg, #10b981, #059669);

    --text-main: #475569; /* Slate 600 - Perfect for reading */
    --text-bright: #1e293b; /* Slate 800 - Deep but not black */
    --text-muted: #94a3b8;

    --border-color: rgba(203, 213, 225, 0.4); /* Very soft borders */
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(203, 213, 225, 0.5);

    --shadow-main: 0 10px 25px rgba(148, 163, 184, 0.1);
    --shadow-neon: 0 0 15px rgba(14, 165, 233, 0.15);
    --hero-gradient: radial-gradient(circle at top right, rgba(14, 165, 233, 0.08), transparent),
        radial-gradient(circle at bottom left, rgba(16, 185, 129, 0.04), transparent);

    /* Hardware Analyzer Soft Mode */
    --core-neon: #0ea5e9;
    --core-bg: #ffffff;
    --core-border: rgba(14, 165, 233, 0.2);
    --monitor-bg: #f8fafc;
}


* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.6;
    font-size: 16px;
    overflow-x: hidden;
    transition: background-color 0.4s ease, color 0.4s ease;
}

h1,
h2,
h3,
h4,
.outfit-font {
    font-family: 'Outfit', sans-serif;
}

a {
    color: inherit;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

a:hover {
    color: var(--primary-neon);
}

.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- HEADER --- */
.site-header {
    background: var(--bg-header);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    height: 80px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--glass-border);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition-base);
}

.site-header.scrolled {
    background: var(--bg-header);
    box-shadow: var(--shadow-main);
    border-bottom-color: var(--primary-neon);
    height: 70px;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.site-logo img {
    height: 50px;
    filter: drop-shadow(0 0 5px rgba(0, 242, 255, 0.4));
}

.main-navigation ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

.main-navigation a {
    color: var(--text-bright);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 1px;
    position: relative;
    padding: 10px 0;
}

.main-navigation a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-gradient);
    transition: width 0.3s ease;
}

.main-navigation a:hover::after {
    width: 100%;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.btn-join-discord {
    background: var(--accent-gradient);
    color: #fff;
    padding: 10px 24px;
    border-radius: var(--radius-lg);
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    box-shadow: var(--shadow-neon);
}

.btn-join-discord:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(0, 242, 255, 0.5);
    color: #fff;
}

/* Theme Toggle Premium Design */
.theme-switch-wrapper {
    display: flex;
    align-items: center;
}

.mode-toggle {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-base);
    position: relative;
    overflow: hidden;
    padding: 0;
    color: var(--text-bright);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.mode-toggle:hover {
    transform: translateY(-2px);
    border-color: var(--primary-neon);
    box-shadow: 0 0 15px var(--shadow-neon);
}

.toggle-icon-box {
    position: relative;
    width: 20px;
    height: 20px;
}

.sun-icon, .moon-icon {
    position: absolute;
    top: 0;
    left: 0;
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

/* Hide/Show logic via CSS classes */
body.dark-mode .sun-icon {
    transform: scale(0) rotate(90deg);
    opacity: 0;
}

body.dark-mode .moon-icon {
    transform: scale(1) rotate(0deg);
    opacity: 1;
    color: #ffd700;
    filter: drop-shadow(0 0 5px rgba(255, 215, 0, 0.5));
}

body.light-mode .sun-icon {
    transform: scale(1) rotate(0deg);
    opacity: 1;
    color: #ff9d00;
    filter: drop-shadow(0 0 5px rgba(255, 157, 0, 0.5));
}

body.light-mode .moon-icon {
    transform: scale(0) rotate(-90deg);
    opacity: 0;
}

/* --- PREMIUM HERO SECTION --- */
.hero-section {
    position: relative;
    padding: 100px 0 140px;
    background: transparent;
    overflow: hidden;
    margin-bottom: 60px;
}

.hero-animated-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: -2;
    overflow: hidden;
    background: #050505; /* fallback */
}

.dark-glass-hero .hero-animated-bg {
    background: var(--bg-body);
}

.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.6;
    animation: orbFloat 15s infinite alternate ease-in-out;
}

.orb-1 {
    width: 600px; height: 600px;
    background: rgba(0, 242, 255, 0.15);
    top: -200px; left: -200px;
}

.orb-2 {
    width: 500px; height: 500px;
    background: rgba(57, 255, 20, 0.1);
    bottom: -100px; right: -100px;
    animation-delay: -5s;
}

.orb-3 {
    width: 400px; height: 400px;
    background: rgba(0, 102, 255, 0.15);
    top: 30%; left: 50%;
    animation-delay: -10s;
}

@keyframes orbFloat {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(50px, 100px) scale(1.2); }
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: url('../images/hero-bg.jpg') center/cover no-repeat;
    opacity: 0.15;
    z-index: -1;
    mix-blend-mode: overlay;
}

.hero-content-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    position: relative;
    z-index: 2;
}

@media (max-width: 992px) {
    .hero-content-wrapper {
        flex-direction: column;
        text-align: center;
    }
}

.hero-text-content {
    flex: 1;
    max-width: 650px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--glass-bg);
    border: 1px solid var(--border-color);
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 800;
    color: var(--text-bright);
    margin-bottom: 25px;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.pulse-dot {
    width: 10px; height: 10px;
    background: var(--secondary-neon);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--secondary-neon);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(57, 255, 20, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(57, 255, 20, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(57, 255, 20, 0); }
}

.hero-title {
    font-size: clamp(40px, 6vw, 64px);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 24px;
    color: var(--text-bright);
    text-transform: uppercase;
}

.hero-title span {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.hero-description {
    font-size: 18px;
    color: var(--text-muted);
    margin-bottom: 40px;
    line-height: 1.7;
}

.hero-action-container {
    margin-bottom: 40px;
    position: relative;
    z-index: 10000;
}

.hero-search-form {
    display: flex;
    align-items: center;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    padding: 5px 5px 5px 25px;
    backdrop-filter: blur(15px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    transition: var(--transition-base);
}

.hero-search-form:focus-within {
    border-color: var(--primary-neon);
    box-shadow: var(--shadow-neon);
}

.search-icon-hero {
    color: var(--text-muted);
    font-size: 20px;
    margin-top: 5px;
}

.hero-search-input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-bright);
    font-size: 16px;
    padding: 15px;
    outline: none;
    font-family: inherit;
}

.btn-hero-search {
    background: var(--accent-gradient);
    color: #fff;
    border: none;
    padding: 15px 35px;
    border-radius: 40px;
    font-weight: 800;
    font-size: 14px;
    cursor: pointer;
    text-transform: uppercase;
    transition: var(--transition-base);
}

.btn-hero-search:hover {
    box-shadow: 0 0 20px rgba(0, 242, 255, 0.4);
    transform: scale(1.03);
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 30px;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-num {
    font-size: 24px;
    font-weight: 900;
    color: var(--text-bright);
    font-family: 'Outfit', sans-serif;
}

.stat-label {
    font-size: 13px;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 600;
}

.stat-divider {
    width: 2px;
    height: 40px;
    background: var(--border-color);
}

@media (max-width: 992px) {
    .hero-stats { justify-content: center; }
}

/* HERO VISUAL CONTENT */
.hero-visual-content {
    flex: 1;
    position: relative;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.floating-cards-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-floating-card {
    position: absolute;
    width: 200px;
    aspect-ratio: 2/3;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    border: 2px solid rgba(255,255,255,0.1);
    transition: var(--transition-base);
}

.hero-floating-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-glass-layer {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1), transparent);
    z-index: 1;
}

.hero-card-meta {
    position: absolute;
    bottom: 0; left: 0; width: 100%;
    padding: 20px 15px;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    z-index: 2;
}

.hero-card-meta h6 {
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    margin-bottom: 5px;
}

.hero-stars {
    color: #ffd700;
    font-size: 12px;
}

/* Positioning the 3 cards */
.hero-card-1 {
    top: 50%; left: 50%;
    transform: translate(-50%, -50%) scale(1.1);
    z-index: 3;
    box-shadow: 0 0 30px rgba(0,242,255,0.3);
    border-color: var(--primary-neon);
    animation: float1 6s infinite ease-in-out;
}

.hero-card-2 {
    top: 20%; left: 0;
    transform: rotate(-10deg);
    z-index: 2;
    filter: brightness(0.7);
    animation: float2 7s infinite ease-in-out;
}

.hero-card-3 {
    bottom: 10%; right: 0;
    transform: rotate(10deg);
    z-index: 2;
    filter: brightness(0.7);
    animation: float3 8s infinite ease-in-out;
}

@keyframes float1 {
    0%, 100% { transform: translate(-50%, -50%) scale(1.1) translateY(0); }
    50% { transform: translate(-50%, -50%) scale(1.1) translateY(-15px); }
}

@keyframes float2 {
    0%, 100% { transform: rotate(-10deg) translateY(0); }
    50% { transform: rotate(-10deg) translateY(-20px); }
}

@keyframes float3 {
    0%, 100% { transform: rotate(10deg) translateY(0); }
    50% { transform: rotate(10deg) translateY(-20px); }
}

@media (max-width: 992px) {
    .hero-visual-content { display: none; }
}

/* --- FEATURED SLIDER --- */
.section-title {
    font-size: 24px;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.section-title::before {
    content: '';
    width: 4px;
    height: 24px;
    background: var(--accent-gradient);
    border-radius: 2px;
}

.featured-row {
    margin-bottom: 60px;
}

.featured-grid {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding-bottom: 20px;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-neon) transparent;
}

.game-card-mini {
    flex: 0 0 200px;
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    aspect-ratio: 2/3;
}

.game-card-mini img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.game-card-mini:hover img {
    transform: scale(1.1);
}

.game-card-mini .card-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
}

.game-card-mini h4 {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
}

/* --- MAIN CONTENT LAYOUT --- */
.main-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    grid-template-areas: 
        "content sidebar"
        "smart smart";
    gap: 40px;
    margin-top: 40px;
}

.content-area { grid-area: content; }
.sidebar-repack { grid-area: sidebar; }
.smart-sections { grid-area: smart; }

@media (max-width: 1024px) {
    .main-layout {
        grid-template-columns: 1fr;
        grid-template-areas: 
            "content"
            "smart"
            "sidebar";
        gap: 20px;
    }
}

/* --- GAME CARD (Grid) --- */
.repack-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 25px;
}

.repack-card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: all 0.4s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.repack-card:hover {
    transform: translateY(-15px) scale(1.02);
    border-color: var(--cat-color, var(--primary-neon));
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2), 0 0 20px var(--cat-color, var(--primary-neon));
}

/* Floating Animation */
@keyframes cardFloat {
    0% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
    100% { transform: translateY(0); }
}

.repack-card {
    animation: cardFloat 4s ease-in-out infinite;
    animation-delay: calc(var(--card-index, 0) * 0.2s);
}

.repack-card:hover {
    animation-play-state: paused;
}

.repack-card-img {
    position: relative;
    aspect-ratio: 3/4;
    overflow: hidden;
    display: block;
}

.repack-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.repack-card:hover .repack-card-img img {
    transform: scale(1.1);
}

.card-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--accent-gradient);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    text-transform: uppercase;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.repack-card-info {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.repack-card-title {
    font-size: 16px;
    color: var(--text-bright);
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 10px;
}

/* --- SLIDER STYLING (Shaded as requested) --- */
.repack-slider-wrapper {
    position: relative;
    background: #111;
    padding: 20px 45px;
    border-radius: var(--radius-md);
    margin-bottom: 20px;
    border: 1px solid var(--border-color);
}
[data-theme="light"] .repack-slider-wrapper,
body.light-mode .repack-slider-wrapper {
    background: #e9ecef;
}

.repack-grid.repack-slider {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    gap: 15px;
    padding-bottom: 15px; /* for shadow clipping */
    cursor: grab;
}
.repack-grid.repack-slider.active-drag {
    cursor: grabbing;
    scroll-behavior: auto; /* Disable smooth scroll on drag */
}
.repack-grid.repack-slider::-webkit-scrollbar {
    display: none;
}
.repack-grid.repack-slider > .repack-card {
    flex: 0 0 220px;
    height: auto;
    user-select: none;
}

.slider-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 35px;
    height: 35px;
    background: #252525;
    border: 1px solid #333;
    color: #fff;
    z-index: 10;
    cursor: pointer;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-base);
}
body.light-mode .slider-nav-btn {
    background: #fff;
    border-color: #ddd;
    color: #333;
}
.slider-nav-btn:hover {
    background: var(--primary-neon);
    border-color: var(--primary-neon);
    color: #000;
}
.slider-nav-btn.prev-btn {
    left: 5px;
}
.slider-nav-btn.next-btn {
    right: 5px;
}

/* --- SIDEBAR --- */
.sidebar-repack {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.widget-repack {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 24px;
    border: 1px solid var(--border-color);
}

.widget-title-repack {
    color: var(--text-bright);
    font-size: 18px;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.widget-title-repack::before {
    content: '';
    width: 3px;
    height: 18px;
    background: var(--secondary-neon);
}

.trending-item {
    display: flex;
    gap: 15px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

.trending-item:last-child {
    border-bottom: none;
}

.trending-item img {
    width: 80px;
    height: 50px;
    object-fit: cover;
    border-radius: var(--radius-sm);
}

.trending-info h4 {
    font-size: 14px;
    color: var(--text-bright);
    margin-bottom: 4px;
    line-height: 1.3;
}

.trending-info span {
    font-size: 12px;
    color: var(--text-muted);
}

/* Card Badges */
.card-top-badges {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    z-index: 10;
}

.badge-star, .badge-downloads {
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 5px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.badge-star {
    background: rgba(255, 215, 0, 0.2);
    color: #ffd700;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

.badge-downloads {
    background: rgba(0, 242, 255, 0.2);
    color: var(--primary-neon);
    box-shadow: 0 0 10px rgba(0, 242, 255, 0.3);
}

/* Hover Overlay */
.card-hover-info {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 5;
    padding: 20px;
}

.repack-card:hover .card-hover-info {
    opacity: 1;
}

.hover-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    transform: translateY(20px);
    transition: transform 0.4s ease;
}

.repack-card:hover .hover-content {
    transform: translateY(0);
}

.hover-cat-neon {
    background: transparent;
    border: 1px solid var(--cat-color, var(--primary-neon));
    color: var(--cat-color, var(--primary-neon));
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    box-shadow: inset 0 0 10px var(--cat-color, rgba(0, 242, 255, 0.2)), 0 0 10px var(--cat-color, rgba(0, 242, 255, 0.2));
}

.hover-quick-meta {
    font-size: 13px;
    color: #fff;
    display: flex;
    gap: 10px;
    font-weight: 600;
}

/* Categories Grid */
.categories-grid-section {
    padding: 60px 0;
    background: radial-gradient(circle at center, rgba(0, 242, 255, 0.03) 0%, transparent 70%);
}

.categories-neon-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
}

.cat-neon-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 30px 20px;
    text-align: center;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    position: relative;
    overflow: hidden;
}

.cat-neon-card:hover {
    transform: translateY(-5px);
    border-color: var(--cat-color, var(--primary-neon));
    box-shadow: 0 0 20px var(--cat-color, rgba(0, 242, 255, 0.3));
}

.cat-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: var(--cat-color, var(--primary-neon));
    transition: all 0.3s ease;
    border: 1px solid var(--glass-border);
}

.cat-neon-card:hover .cat-icon {
    background: var(--cat-color, var(--primary-neon));
    color: #000;
    box-shadow: 0 0 20px var(--cat-color, var(--primary-neon));
}

.cat-neon-card:hover h3 {
    color: var(--cat-color, var(--primary-neon));
    text-shadow: 0 0 10px var(--cat-color, var(--primary-neon));
}

.cat-neon-card h3 {
    font-size: 18px;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--text-bright);
    margin: 0;
}

.cat-count {
    font-size: 12px;
    color: var(--text-muted);
    background: rgba(255,255,255,0.05);
    padding: 4px 12px;
    border-radius: 20px;
}

/* Sidebar Cats Neon */
.sidebar-cats-neon {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sidebar-cat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
}

.sidebar-cat-item:hover {
    background: rgba(255, 255, 255, 0.05); /* subtle background change */
    border-color: var(--cat-color, var(--primary-neon));
    padding-left: 20px;
    box-shadow: 0 0 10px var(--cat-color, rgba(0, 242, 255, 0.15));
}

.cat-link-inner {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 14px;
}

.cat-link-inner i {
    color: var(--cat-color, var(--primary-neon));
}

.count-pill {
    font-size: 11px;
    font-weight: 800;
    color: var(--text-muted);
    background: rgba(0,0,0,0.3);
    padding: 2px 8px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
}

.category-tag-small {
    font-size: 10px;
    background: rgba(255,255,255,0.05);
    padding: 2px 8px;
    border-radius: 4px;
    color: #888;
    border: 1px solid rgba(255,255,255,0.1);
}

/* --- SINGLE GAME PAGE --- */
.repack-post-header {
    margin-bottom: 40px;
}

.repack-title {
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 900;
    color: var(--text-bright);
    margin-bottom: 15px;
}

.repack-badges {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.badge {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--primary-neon);
    font-size: 12px;
    font-weight: 700;
    padding: 4px 12px;
    text-transform: uppercase;
    border-radius: var(--radius-sm);
}

.repack-meta {
    display: flex;
    gap: 20px;
    color: var(--text-muted);
    font-size: 14px;
}

.featured-img-repack {
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 40px;
    box-shadow: var(--shadow-main);
}

.featured-img-repack img {
    width: 100%;
    display: block;
}

.section-box {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 30px;
    margin-bottom: 30px;
    border: 1px solid var(--border-color);
}

.section-box h2 {
    color: var(--primary-neon);
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.req-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.req-col h3 {
    color: var(--secondary-neon);
    font-size: 18px;
    margin-bottom: 15px;
}

.req-col ul {
    list-style: none;
}

.req-col li {
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 15px;
}

.req-col li strong {
    color: var(--text-bright);
    margin-right: 5px;
}

.dl-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.host-btn {
    flex: 1;
    min-width: 200px;
    text-align: center;
    padding: 15px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    text-transform: uppercase;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.host-btn:hover {
    filter: contrast(1.1) brightness(1.1);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

[data-theme="light"] .host-btn, 
body.light-mode .host-btn {
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

/* --- PAGINATION --- */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 50px;
}

.pagination .page-numbers {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-weight: 700;
    color: var(--text-bright);
    transition: all 0.3s ease;
}

.pagination .page-numbers.current,
.pagination .page-numbers:hover {
    background: var(--accent-gradient);
    border-color: transparent;
    color: #fff;
    box-shadow: var(--shadow-neon);
}

/* --- FOOTER --- */
.site-footer {
    background: #000;
    padding: 80px 0 40px;
    border-top: 1px solid var(--border-color);
    margin-top: 100px;
}

.footer-widgets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}

.footer-navigation {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-menu li a {
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.footer-menu li a:hover {
    color: var(--primary-neon);
    text-shadow: 0 0 10px rgba(0, 242, 255, 0.3);
}

.footer-bottom {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 14px;
}

/* --- UTILS --- */
.neon-text {
    color: var(--primary-neon);
    text-shadow: 0 0 10px rgba(0, 242, 255, 0.5);
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
}

/* --- SOCIAL SHARE --- */
.social-share-box {
    text-align: center;
}

.share-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    margin-top: 20px;
}

.share-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    color: #fff;
    cursor: pointer;
    border: none;
    font-size: 14px;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.share-btn:hover {
    transform: translateY(-3px);
    filter: brightness(1.2);
    color: #fff;
}

.share-btn i {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

.btn-whatsapp { background: #25D366; }
.btn-telegram { background: #0088cc; }
.btn-facebook { background: #1877F2; }
.btn-twitter { background: #1DA1F2; }
.btn-copy { 
    background: var(--bg-body); 
    border: 1px solid var(--border-color); 
    color: var(--text-bright); 
}

.btn-copy:hover { 
    border-color: var(--primary-neon); 
    background: rgba(0, 242, 255, 0.1); 
    color: var(--primary-neon);
}


/* --- LIGHTBOX & GALLERY --- */
.lightbox-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.lightbox-modal.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: var(--radius-sm);
    box-shadow: 0 0 30px rgba(0, 242, 255, 0.3);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.lightbox-modal.active .lightbox-content {
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 40px;
    cursor: pointer;
    transition: color 0.3s;
    line-height: 1;
}

.lightbox-close:hover {
    color: var(--primary-neon);
}

/* WP Gallery Styles Override to look like the grid */
.repack-content .wp-block-gallery,
.repack-content .gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin: 30px 0;
    padding: 0;
    list-style: none;
}

@media (max-width: 600px) {
    .repack-content .wp-block-gallery,
    .repack-content .gallery {
        grid-template-columns: 1fr;
    }
}

.repack-content .wp-block-gallery .wp-block-image,
.repack-content .gallery-item {
    margin: 0;
    width: 100%;
}

.repack-content .wp-block-gallery img,
.repack-content .gallery img,
.repack-content img.aligncenter,
.repack-content img.alignleft,
.repack-content img.alignright,
.repack-content img.size-full,
.repack-content img.size-large {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: var(--radius-sm);
    cursor: zoom-in;
    transition: transform 0.3s, filter 0.3s, border-color 0.3s;
    border: 1px solid var(--border-color);
}

.repack-content .wp-block-gallery img,
.repack-content .gallery img {
    aspect-ratio: 16/9;
}

.repack-content img:hover {
    filter: brightness(1.1);
    border-color: var(--primary-neon);
}

/* --- SEARCH --- */
.ajax-search-input {
    width: 100%;
    background: var(--bg-body);
    border: 1px solid var(--border-color);
    padding: 12px 20px;
    border-radius: var(--radius-sm);
    color: var(--text-bright);
    outline: none;
    transition: all 0.3s ease;
}

.ajax-search-input:focus {
    border-color: var(--primary-neon);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 15px rgba(0, 242, 255, 0.2);
}

/* --- SEARCH SUGGESTIONS --- */
.widget-repack {
    position: relative;
}

.ajax-search-results {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--bg-card);
    border: 1px solid var(--primary-neon);
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
    z-index: 100;
    display: none;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8);
    overflow: hidden;
    margin-top: 5px;
}

.ajax-search-results.active {
    display: block;
    animation: slideDown 0.3s ease-out;
}

.search-suggestions {
    list-style: none;
    margin: 0;
    padding: 0;
}

.search-suggestions li {
    border-bottom: 1px solid var(--border-color);
}

.search-suggestions li:last-child {
    border-bottom: none;
}

.search-suggestions a {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 20px;
    transition: background 0.2s;
    color: var(--text-main);
}

.search-suggestions a:hover {
    background: rgba(0, 242, 255, 0.1);
    color: var(--primary-neon);
}

.search-suggestions img {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
}

.search-suggestions span {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: start;
}

.no-suggestions {
    padding: 20px;
    text-align: center;
    color: var(--text-muted);
}

/* --- ANIMATIONS --- */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal-card {
    opacity: 0;
}

.reveal-card.revealed {
    animation: fadeInUp 0.8s cubic-bezier(0.2, 1, 0.3, 1) forwards;
}

/* --- RESPONSIVE FIXES --- */
@media (max-width: 768px) {
    .site-header {
        height: 70px;
    }

    .main-navigation {
        display: none;
    }

    /* Add a mobile menu later if needed */
    .hero-title {
        font-size: 36px;
    }

    .hero-section {
        padding: 60px 0;
    }

    .main-layout {
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .repack-grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }

    /* Slider specific on mobile - show 2 cards nearly */
    .repack-grid.repack-slider {
        display: flex !important;
        gap: 10px !important;
        padding: 10px 0 !important;
    }
    
    .repack-grid.repack-slider > .repack-card {
        flex: 0 0 160px !important;
        height: auto;
    }

    .repack-card-info {
        padding: 12px !important;
    }

    .repack-card-title {
        font-size: 14px !important;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        height: 40px;
    }

    .repack-card-stats {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
        font-size: 11px !important;
    }

    .container {
        padding: 0 12px;
    }

    .hero-title {
        font-size: 30px;
    }

    .repack-slider-wrapper {
        padding: 15px 10px !important;
    }

    .slider-nav-btn {
        display: none !important;
    }
}

/* ==========================================================================
   ADVANCED INTERACTIVE PLATFORM STYLES (USERS, LIBRARY, TICKER, RATING)
   ========================================================================== */

/* --- USER ACTION MENU --- */
.user-action-menu {
    position: relative;
    display: flex;
    align-items: center;
}

.user-auth-btns .btn-login {
    background: transparent;
    color: var(--text-bright);
    border: 1px solid var(--border-color);
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition-base);
}

.user-auth-btns .btn-login:hover {
    background: rgba(0, 242, 255, 0.1);
    border-color: var(--primary-neon);
    color: var(--primary-neon);
    transform: translateY(-2px);
}

.user-dropdown {
    position: relative;
}

.user-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-bright);
    padding: 6px 15px 6px 6px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-weight: 700;
    font-family: inherit;
    transition: var(--transition-base);
}

.user-btn img {
    border-radius: 50%;
    border: 2px solid var(--primary-neon);
    width: 32px;
    height: 32px;
}

.user-btn:hover {
    background: rgba(255,255,255,0.05);
    border-color: var(--primary-neon);
}

.user-dropdown-content {
    position: absolute;
    top: calc(100% + 15px);
    right: 0;
    background: var(--bg-card);
    min-width: 200px;
    border-radius: var(--radius-sm);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    border: 1px solid var(--primary-neon);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition-base);
    z-index: 1000;
}

.user-dropdown-content::before {
    content: '';
    position: absolute;
    top: -6px;
    right: 20px;
    width: 12px;
    height: 12px;
    background: var(--bg-card);
    border-top: 1px solid var(--primary-neon);
    border-left: 1px solid var(--primary-neon);
    transform: rotate(45deg);
}

.user-dropdown:hover .user-dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-dropdown-content a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    color: var(--text-main);
    font-size: 14px;
    font-weight: 600;
    border-bottom: 1px solid var(--border-color);
}

.user-dropdown-content a:last-child {
    border-bottom: none;
}

.user-dropdown-content a:hover {
    background: rgba(0, 242, 255, 0.05);
    color: var(--primary-neon);
    padding-left: 25px;
}

/* --- ANIMATED GAMES TICKER BAR --- */
.animated-games-bar {
    width: 100%;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
    border-top: 1px solid var(--border-color);
    overflow: hidden;
    position: relative;
    height: 60px;
    display: flex;
    align-items: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.games-ticker-wrapper {
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
}

.minor-cards-ticker {
    display: inline-flex;
    animation: tickerScroll 60s linear infinite;
    align-items: center;
}

.minor-cards-ticker:hover {
    animation-play-state: paused;
}

.ticker-minor-card {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 0 30px;
    text-decoration: none;
    position: relative;
    transition: var(--transition-base);
}

.ticker-minor-card::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 30px;
    width: 1px;
    background: var(--border-color);
}

.ticker-minor-card:hover {
    transform: scale(1.05);
}

.ticker-minor-card:hover .ticker-title {
    color: var(--primary-neon);
}

.ticker-mini-img {
    width: 35px;
    height: 45px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
}

.ticker-title {
    color: var(--text-main);
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    transition: var(--transition-base);
}

@keyframes tickerScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* --- ADD TO LIBRARY BTN (IN CARDS AND SINGLE POST) --- */
.btn-library-toggle {
    background: rgba(0,0,0,0.5);
    border: 1px solid var(--border-color);
    color: #fff;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-base);
    backdrop-filter: blur(5px);
}

.btn-library-toggle:hover {
    background: rgba(255, 0, 85, 0.2);
    border-color: #ff0055;
    color: #ff0055;
    transform: scale(1.1);
}

.btn-library-toggle.in-library {
    background: #ff0055;
    border-color: #ff0055;
    color: #fff;
    box-shadow: 0 0 15px rgba(255,0,85,0.4);
}

/* For absolute positioning on game cards */
.card-add-library {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 20;
}

/* --- STAR RATING --- */
.interactive-rating {
    display: flex;
    align-items: center;
    gap: 15px;
    background: var(--bg-card);
    padding: 15px 25px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    margin-bottom: 20px;
    width: max-content;
}

.rating-stars-input {
    display: flex;
    flex-direction: row-reverse;
    gap: 5px;
}

.rating-stars-input i {
    color: var(--text-muted);
    font-size: 24px;
    cursor: pointer;
    transition: 0.2s;
}

.rating-stars-input i:hover,
.rating-stars-input i:hover ~ i,
.rating-stars-input i.active,
.rating-stars-input i.active ~ i {
    color: #ffd700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.rating-feedback {
    font-size: 14px;
    font-weight: 700;
    color: #39ff14;
}

.avg-rating-display {
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: 800;
}
.avg-rating-display .dashicons {
    color: #ffd700;
    margin-top: 2px;
}

/* --- GAME CARD META LAYOUT --- */
.repack-card-stats {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 600;
}

.stat-group {
    display: flex;
    align-items: center;
    gap: 5px;
}

.stat-group .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

/* Overriding header right to align correctly */
.header-right {
    gap: 25px;
}

/* --- AUTH MODAL --- */
.auth-modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(5px);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition-base);
}
.auth-modal-overlay.active {
    display: flex;
    opacity: 1;
}
.auth-modal-content {
    background: var(--bg-card);
    width: 100%;
    max-width: 450px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    box-shadow: 0 0 30px rgba(0, 242, 255, 0.2);
    position: relative;
    padding: 30px;
    transform: scale(0.9);
    transition: var(--transition-base);
}
.auth-modal-overlay.active .auth-modal-content {
    transform: scale(1);
}
.close-auth-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 24px;
    cursor: pointer;
    transition: var(--transition-base);
    display: flex;
    align-items: center;
    justify-content: center;
}
.close-auth-modal:hover {
    color: #ff0055;
    transform: rotate(90deg);
}
.social-login-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 25px 0;
}
.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-weight: 700;
    transition: var(--transition-base);
    color: #fff;
    cursor: pointer;
}
.google-btn { background: #ea4335; }
.microsoft-btn { background: #2f2f2f; color: #fff; border: 1px solid #444; }
.apple-btn { background: #000; border: 1px solid #333; }
.social-btn img { width: 20px; height: 20px; }
.social-btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.2);
    color: #fff;
}
.auth-divider {
    text-align: center;
    position: relative;
    margin: 20px 0;
}
.auth-divider::before {
    content: '';
    position: absolute;
    left: 0; top: 50%; width: 40%;
    height: 1px; background: var(--border-color);
}
.auth-divider::after {
    content: '';
    position: absolute;
    right: 0; top: 50%; width: 40%;
    height: 1px; background: var(--border-color);
}
.auth-divider span {
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 700;
}
.auth-form .form-group {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: left;
}
.auth-form label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-bright);
}
.auth-form input[type="text"],
.auth-form input[type="password"] {
    padding: 12px;
    background: var(--bg-body);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-bright);
    font-size: 14px;
}
.auth-form input[type="text"]:focus,
.auth-form input[type="password"]:focus {
    border-color: var(--primary-neon);
    outline: none;
    box-shadow: 0 0 10px rgba(0, 242, 255, 0.2);
}
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    font-size: 13px;
}
.forgot-pwd {
    color: var(--primary-neon);
    text-decoration: none;
}
.forgot-pwd:hover {
    text-decoration: underline;
}

/* --- NEON COMMENTS --- */
.neon-comments-box {
    margin-top: 40px;
    padding: 30px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: var(--transition-base);
}

.comments-area {
    color: var(--text-main);
}

.comment-list {
    list-style: none;
    padding: 0;
    margin: 0 0 30px;
}

.comment-list li {
    background: var(--glass-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 20px;
    margin-bottom: 20px;
    position: relative;
    box-shadow: 0 4px 12px rgba(0,0,0,0.02);
}

.comment-list li > article {
    display: flex;
    gap: 20px;
}

.comment-author img {
    border-radius: 50%;
    border: 2px solid var(--cat-color);
    box-shadow: 0 0 10px rgba(255,255,255,0.1);
}

.comment-content {
    flex: 1;
}

.comment-metadata {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.comment-content p {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-bright);
}

.reply {
    margin-top: 10px;
}

.reply a {
    font-size: 13px;
    font-weight: 700;
    color: var(--cat-color);
    text-transform: uppercase;
    transition: 0.3s;
}

.reply a:hover {
    text-shadow: 0 0 8px var(--cat-color);
}

/* Children comments */
.comment-list .children {
    list-style: none;
    margin-top: 20px;
    padding-left: 40px;
    border-left: 2px solid var(--glass-border);
}

.neon-submit-btn {
    background: var(--cat-color);
    color: #000;
    font-weight: 800;
    font-size: 15px;
    text-transform: uppercase;
    border: none;
    padding: 12px 30px;
    border-radius: 30px;
    cursor: pointer;
    box-shadow: 0 0 15px var(--cat-color);
    transition: var(--transition-base);
}

.neon-submit-btn:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 0 30px var(--cat-color);
}

.btn-emoji {
    transition: transform 0.2s;
}
.btn-emoji:hover {
    transform: scale(1.3);
}

.comment-form-container label {
    display: none;
}

.comment-form textarea, 
.comment-form input[type="text"], 
.comment-form input[type="email"], 
.comment-form input[type="url"] {
    width: 100%;
    background: var(--bg-body);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 15px;
    color: var(--text-main);
    font-family: inherit;
    transition: var(--transition-base);
}

.comment-form textarea:focus {
    border-color: var(--primary-neon);
    outline: none;
    box-shadow: 0 0 10px var(--shadow-neon);
}

[data-theme="light"] .comment-form textarea,
body.light-mode .comment-form textarea {
    background: #f8fafc;
}

/* ════════════════════════════════════════════════════
   NEON COMPATIBILITY CHECKER WIDGET
════════════════════════════════════════════════════ */
.neon-checker-widget {
    position: relative;
    padding: 0 !important;
    overflow: hidden;
    border: 1px solid rgba(0, 242, 255, 0.25) !important;
    background: linear-gradient(135deg, rgba(0, 242, 255, 0.04), rgba(0, 102, 255, 0.04)) !important;
    box-shadow: 0 0 20px rgba(0, 242, 255, 0.08), inset 0 0 30px rgba(0, 0, 0, 0.3);
}

.neon-checker-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 18px;
    border-bottom: 1px solid rgba(0, 242, 255, 0.15);
    background: rgba(0, 242, 255, 0.05);
}

.neon-checker-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--primary-neon);
    text-shadow: 0 0 10px var(--primary-neon);
}

.neon-sys-container {
    background: var(--core-bg);
    border: 1px solid var(--core-border);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), inset 0 0 15px rgba(0, 242, 255, 0.05);
    overflow: hidden;
    position: relative;
    margin-bottom: 25px;
    font-family: 'Outfit', sans-serif;
}

.sys-header {
    background: rgba(0, 242, 255, 0.08);
    border-bottom: 1px solid var(--core-border);
    padding: 12px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sys-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 11px;
    font-weight: 800;
    color: var(--core-neon);
    letter-spacing: 2px;
    text-shadow: 0 0 10px rgba(0, 242, 255, 0.4);
}

.sys-led {
    width: 6px; height: 6px;
    background: #ff0055;
    border-radius: 50%;
    box-shadow: 0 0 8px #ff0055;
    animation: led-blink 1s steps(2) infinite;
}

@keyframes led-blink {
    50% { opacity: 0.3; }
}

.sys-icon-btn {
    background: transparent;
    border: none;
    color: var(--core-neon);
    cursor: pointer;
    font-size: 18px;
    padding: 4px;
    margin-left: 8px;
    transition: all 0.3s;
    text-shadow: 0 0 8px rgba(0, 242, 255, 0.5);
    opacity: 0.6;
}

.sys-icon-btn:hover {
    opacity: 1;
    color: var(--text-bright);
    transform: scale(1.2);
    text-shadow: 0 0 15px var(--core-neon);
}

.sys-body {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    max-height: 1500px;
    overflow: hidden;
    opacity: 1;
}

.sys-body.hidden {
    max-height: 0;
    opacity: 0;
    padding: 0 !important;
    margin: 0 !important;
    pointer-events: none;
}

.sys-icon-btn.toggle-widget {
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.sys-icon-btn.toggle-widget.collapsed {
    transform: rotate(180deg);
}

.sys-icon-btn.toggle-widget.collapsed i {
    color: var(--core-neon);
    text-shadow: 0 0 10px var(--core-neon);
}

/* Digital Monitor */
.sys-monitor {
    margin: 15px;
    height: 160px;
    background: var(--monitor-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 0 20px rgba(0, 242, 255, 0.1);
}

.sys-led {
    width: 8px;
    height: 8px;
    background: #ff0044;
    border-radius: 50%;
    margin-right: 10px;
    display: inline-block;
    box-shadow: 0 0 5px rgba(255, 0, 68, 0.5);
    animation: ledPulse 1.5s infinite alternate;
}

@keyframes ledPulse {
    0% { opacity: 0.4; background: #990022; box-shadow: 0 0 2px rgba(255, 0, 68, 0.2); }
    100% { opacity: 1; background: #ff0044; box-shadow: 0 0 12px rgba(255, 0, 68, 0.8); }
}

.monitor-glass {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: 3;
}

.monitor-scan {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 2px;
    background: rgba(0, 242, 255, 0.15);
    box-shadow: 0 0 15px rgba(0, 242, 255, 0.4);
    pointer-events: none;
    z-index: 4;
    animation: scanMove 4s linear infinite;
}

@keyframes scanMove {
    0% { top: -5%; opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { top: 105%; opacity: 0; }
}

.monitor-content {
    text-align: center;
    z-index: 2;
    padding: 0 20px;
}

.sys-scan-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: all 0.4s;
    backdrop-filter: blur(4px);
}

.sys-scan-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.radar-line {
    width: 100%;
    height: 4px;
    background: linear-gradient(to bottom, transparent, var(--core-neon), transparent);
    box-shadow: 0 0 20px var(--core-neon);
    position: absolute;
    top: -10%;
    animation: radarMove 2s infinite linear;
}

@keyframes radarMove {
    0% { top: -10%; opacity: 0; }
    50% { opacity: 1; }
    100% { top: 110%; opacity: 0; }
}

.scan-text {
    font-family: 'Outfit', sans-serif;
    font-size: 14px;
    color: var(--core-neon);
    font-weight: 900;
    letter-spacing: 4px;
    text-shadow: 0 0 10px var(--core-neon);
    animation: sysBlink 0.8s infinite alternate;
}

@keyframes sysBlink {
    from { opacity: 0.3; }
    to { opacity: 1; }
}

.status-icon {
    font-size: 36px;
    height: 40px;
    margin-bottom: 10px;
    transition: all 0.5s;
}

.status-label {
    font-family: 'Outfit', sans-serif;
    font-size: 32px;
    font-weight: 900;
    letter-spacing: 2px;
    text-transform: uppercase;
    line-height: 1;
    margin-bottom: 5px;
}

.status-desc {
    font-size: 10px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Technical Data Grid */
.sys-data-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr;
    align-items: center;
    padding: 0 15px 15px;
}

.data-node {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 8px 12px;
    border-radius: 6px;
    text-align: center;
}

.node-label {
    display: block;
    font-size: 9px;
    font-weight: 800;
    color: var(--core-neon);
    margin-bottom: 2px;
    opacity: 0.7;
}

.node-value {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: var(--text-bright);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.node-pipe {
    width: 2px;
    height: 20px;
    background: rgba(255, 255, 255, 0.1);
    margin: 0 10px;
}

/* Calibration Form */
.sys-form {
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
}

.sys-form.active {
    max-height: 500px;
    opacity: 1;
    padding: 0 15px 20px;
}

.form-inner {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 15px;
}

.sys-input-group {
    margin-bottom: 20px;
}

.sys-gpu-config {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.gpu-series-box, .gpu-model-box {
    margin: 0 !important;
}

.gpu-model-box select {
    border-color: rgba(0, 242, 255, 0.1) !important;
}

/* AI CONSOLE */
.sys-ai-console {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(0, 242, 255, 0.1);
    margin: 15px;
    padding: 12px;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
}

.ai-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.ai-nexus {
    width: 10px;
    height: 10px;
    background: var(--core-neon);
    border-radius: 50%;
    display: block;
    box-shadow: 0 0 10px var(--core-neon);
    animation: nexusPulse 2s infinite ease-in-out;
}

@keyframes nexusPulse {
    0% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.3); opacity: 1; box-shadow: 0 0 20px var(--core-neon); }
    100% { transform: scale(1); opacity: 0.5; }
}

.ai-nexus.emo-good {
    background: #00ffaa;
    box-shadow: 0 0 15px #00ffaa;
}
.ai-nexus.emo-warn {
    background: #ffaa00;
    box-shadow: 0 0 15px #ffaa00;
}
.ai-nexus.emo-bad {
    background: #ff0044;
    box-shadow: 0 0 15px #ff0044;
}

.ai-name {
    font-family: 'Outfit', sans-serif;
    font-size: 10px;
    font-weight: 900;
}

@keyframes cursorBlink {
    50% { border-color: transparent; }
}

.sys-input-group label {
    display: block;
    font-size: 9px;
    font-weight: 800;
    color: var(--core-neon);
    margin-bottom: 6px;
    letter-spacing: 1px;
}

.sys-input-field, .sys-select-field {
    position: relative;
}

.sys-input-field input, .sys-select-field select {
    width: 100% !important;
    background: var(--bg-body) !important;
    border: 1px dashed rgba(0, 242, 255, 0.3) !important;
    padding: 10px 15px !important;
    color: var(--text-bright) !important;
    border-radius: 4px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    outline: none !important;
}

.sys-input-field input:focus, .sys-select-field select:focus {
    border-style: solid !important;
    border-color: var(--core-neon) !important;
    box-shadow: 0 0 10px rgba(0, 242, 255, 0.2);
}

.sys-unit {
    position: absolute; right: 15px; top: 50%; transform: translateY(-50%);
    font-size: 11px; font-weight: 800; color: var(--core-neon);
}

.sys-select-field i {
    position: absolute; right: 15px; top: 50%; transform: translateY(-50%);
    pointer-events: none; color: var(--core-neon);
}

.sys-save-btn {
    width: 100%;
    padding: 12px;
    background: var(--core-neon);
    border: none;
    border-radius: 4px;
    color: #000;
    font-weight: 900;
    cursor: pointer;
    letter-spacing: 1px;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(0, 242, 255, 0.3);
}

.sys-save-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 242, 255, 0.5);
}

.sys-footer-line {
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--core-neon), transparent);
    opacity: 0.3;
}

/* STATUS THEMES (SYSTEM) */
.status-optimal .monitor-content .status-icon { color: #39ff14; text-shadow: 0 0 15px #39ff14; }
.status-optimal .monitor-content .status-label { color: #39ff14; text-shadow: 0 0 15px #39ff14; }

.status-warning .monitor-content .status-icon { color: #ffd700; text-shadow: 0 0 15px #ffd700; }
.status-warning .monitor-content .status-label { color: #ffd700; text-shadow: 0 0 15px #ffd700; }

.status-critical .monitor-content .status-icon { color: #ff0055; text-shadow: 0 0 15px #ff0055; }
.status-critical .monitor-content .status-label { color: #ff0055; text-shadow: 0 0 15px #ff0055; }

.status-offline .status-label { color: var(--core-neon); opacity: 0.6; }

@keyframes neon-flicker {
    0%, 19.999%, 22%, 62.999%, 64%, 64.999%, 70%, 100% { opacity: 1; }
    20%, 21.999%, 63%, 63.999%, 65%, 69.999% { opacity: 0.4; }
}

.status-label { animation: neon-flicker 2s infinite alternate; }

/* --- MOBILE OPTIMIZATION & SWIPE FIX --- */
@media (max-width: 768px) {
    body.no-horizontal-scroll {
        position: relative;
        width: 100vw;
        overflow-x: hidden !important;
    }
    
    body.no-horizontal-scroll .container {
        max-width: 100vw !important;
        overflow-x: hidden !important;
    }

    /* If user wants to disable horizontal scrolling on sliders for better vertical experience */
    body.no-horizontal-scroll {
        overflow-x: hidden !important;
        width: 100% !important;
    }
    
    body.no-horizontal-scroll .repack-grid.repack-slider {
        overflow-x: auto !important;
        flex-wrap: nowrap !important;
        justify-content: flex-start !important;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 15px;
        scrollbar-width: thin;
        scrollbar-color: var(--primary-neon) transparent;
    }
    
    body.no-horizontal-scroll .repack-grid.repack-slider::-webkit-scrollbar {
        height: 4px;
    }
    
    body.no-horizontal-scroll .repack-grid.repack-slider::-webkit-scrollbar-thumb {
        background: var(--primary-neon);
        border-radius: 10px;
    }

    body.no-horizontal-scroll .repack-slider-wrapper {
        padding: 20px 0 !important;
    }

    body.no-horizontal-scroll .slider-nav-btn {
        display: none !important;
    }
}

/* View All Button */
.view-all-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.view-all-btn:hover {
    background: var(--primary-neon);
    color: #000;
    border-color: var(--primary-neon);
    box-shadow: 0 0 15px var(--primary-neon);
}

.view-all-btn i {
    font-size: 14px;
    width: 14px;
    height: 14px;
}

/* --- HOMEPAGE LAYOUT OVERRIDE --- */
.homepage-main-override {
    display: grid !important;
    grid-template-columns: 1fr 350px !important;
    gap: 40px !important;
    margin-top: 40px;
}
.homepage-main-override .content-area { grid-column: 1; grid-row: 1; }
.homepage-main-override .sidebar-repack { grid-column: 2; grid-row: 1; }
.homepage-main-override .smart-sections { grid-column: 1 / span 2; grid-row: 2; }

@media (max-width: 1024px) {
    .homepage-main-override {
        display: flex !important;
        flex-direction: column !important;
        gap: 30px !important;
    }
    .homepage-main-override .content-area { order: 1 !important; }
    .homepage-main-override .smart-sections { order: 2 !important; margin-top: 20px !important; }
    .homepage-main-override .sidebar-repack { order: 3 !important; }
}

/* --- MOBILE HEADER OPTIMIZATION --- */
@media (max-width: 768px) {
    .site-header { height: 65px !important; }
    .site-logo a { font-size: 18px !important; }
    .site-logo img { height: 35px !important; }
    .mode-toggle {
        width: 38px !important;
        height: 38px !important;
        border-radius: 10px !important;
    }
    .mode-toggle .toggle-icon-box,
    .mode-toggle svg {
        width: 16px !important;
        height: 16px !important;
    }
    .btn-join-discord {
        padding: 8px 15px !important;
        font-size: 11px !important;
        border-radius: 12px !important;
    }
    .header-right { gap: 10px !important; }
}

/* --- SCROLL TO TOP BUTTON --- */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--bg-card);
    border: 1px solid var(--primary-neon) !important;
    color: var(--primary-neon) !important;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 15px rgba(0, 242, 255, 0.1);
}

.scroll-to-top.show {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    background: var(--primary-neon);
    color: #000 !important;
    transform: translateY(-5px);
    box-shadow: 0 0 25px var(--primary-neon);
}

.scroll-to-top i {
    font-size: 24px !important;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 768px) {
    .scroll-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
}

/* --- LIGHT MODE VISIBILITY FIXES --- */
body.light-mode .sys-monitor {
    background: var(--monitor-bg);
    border-color: rgba(14, 165, 233, 0.2);
    box-shadow: inset 0 0 20px rgba(14, 165, 233, 0.05);
}

body.light-mode .status-desc {
    color: var(--text-muted);
}

body.light-mode .data-node {
    background: rgba(14, 165, 233, 0.03);
    border-color: rgba(14, 165, 233, 0.1);
}

body.light-mode .node-value {
    color: var(--text-bright);
}

body.light-mode .node-pipe {
    background: rgba(14, 165, 233, 0.2);
}

body.light-mode .form-inner {
    background: #f1f5f9;
    border-color: rgba(14, 165, 233, 0.1);
}

body.light-mode .sys-input-field input, 
body.light-mode .sys-select-field select {
    background: #ffffff !important;
    border-color: rgba(14, 165, 233, 0.2) !important;
    color: var(--text-bright) !important;
}

body.light-mode .sys-ai-console {
    background: #f8fafc;
    border-color: rgba(14, 165, 233, 0.1);
}

body.light-mode .ai-text {
    color: var(--text-main);
}

/* Contrast adjustment for status labels in light mode */
body.light-mode .status-optimal .monitor-content .status-label,
body.light-mode .status-optimal .monitor-content .status-icon {
    color: #10b981; /* Darker green for visibility */
    text-shadow: 0 0 10px rgba(16, 185, 129, 0.3);
}

body.light-mode .status-warning .monitor-content .status-label,
body.light-mode .status-warning .monitor-content .status-icon {
    color: #f59e0b; /* Darker yellow/orange */
    text-shadow: 0 0 10px rgba(245, 158, 11, 0.3);
}

body.light-mode .status-critical .monitor-content .status-label,
body.light-mode .status-critical .monitor-content .status-icon {
    color: #ef4444; /* Darker red */
    text-shadow: 0 0 10px rgba(239, 68, 68, 0.3);
}

body.light-mode .emoji-picker-container {
    background: rgba(0, 0, 0, 0.05) !important;
}

body.light-mode .comment-form textarea,
body.light-mode .comment-form input {
    background: #ffffff !important;
    color: #1e293b !important;
}

