:root {
    /* Premium Dark Theme Palette (DEFAULT) */
    --bg-dark: #0f1115;
    --bg-panel: #161920;
    --bg-hover: #1e222b;

    --primary: #FF4D00;
    --primary-glow: rgba(255, 77, 0, 0.4);

    --secondary: #00f0ff;
    --secondary-glow: rgba(0, 240, 255, 0.3);

    --text-main: #ffffff;
    --text-dim: #8b9bb4;

    --success: #00E676;
    --danger: #FF1744;
    --warning: #FFC107;

    --glass: rgba(22, 25, 32, 0.7);
    --border: rgba(255, 255, 255, 0.08);

    --font-head: 'Outfit', sans-serif;
    --font-body: 'Poppins', sans-serif;

    --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
}

[data-theme="light"] {
    --bg-dark: #f3f4f6;
    --bg-panel: #ffffff;
    --bg-hover: #f9fafb;

    --primary: #FF4D00;
    --primary-glow: rgba(255, 77, 0, 0.2);

    --secondary: #0070f3;
    --secondary-glow: rgba(0, 112, 243, 0.2);

    --text-main: #111827;
    --text-dim: #6b7280;

    --glass: rgba(255, 255, 255, 0.9);
    --border: #e5e7eb;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s;
}

ul {
    list-style: none;
}

button {
    font-family: var(--font-head);
}

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

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

::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 0px;
}

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

/* Utilities */
.hidden {
    display: none !important;
}

/* Layout */
.app-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Top Navigation */
.top-bar {
    height: 80px;
    background: rgba(15, 17, 21, 0.95);
    /* backdrop-filter: blur(12px); Performance fix */
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
}

.logo-area {
    font-family: var(--font-head);
    font-weight: 800;
    font-size: 1.8rem;
    letter-spacing: -0.5px;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-area span {
    color: var(--primary);
}

.shop-menu-links {
    display: flex;
    gap: 30px;
}

.shop-menu-links a {
    font-weight: 500;
    color: var(--text-dim);
    font-size: 0.95rem;
    position: relative;
    padding: 5px 0;
}

.shop-menu-links a:hover {
    color: #fff;
}

.shop-menu-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s var(--ease-out);
}

.shop-menu-links a:hover::after {
    width: 100%;
}

/* Main Builder Grid */
.builder-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 40px;
    padding: 40px;
    max-width: 1800px;
    margin: 0 auto;
    width: 100%;
}

.component-stage {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.stage-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
    margin-top: 25px;
}

.stage-title {
    font-family: var(--font-head);
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
}

.build-cards-header {
    display: grid;
    grid-template-columns: 80px 1fr 120px 120px 150px;
    padding: 0 20px 15px 20px;
    color: var(--text-dim);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 1px solid var(--border);
}

.build-cards-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Premium GX Card */
.gx-card {
    display: grid;
    grid-template-columns: 80px 1fr 120px 120px 150px;
    background: linear-gradient(145deg, var(--bg-panel) 0%, #13151a 100%);
    border: 1px solid var(--border);
    border-left: 0;
    border-radius: 0px;
    padding: 20px 25px 20px 45px;
    /* Ruimte links voor de statusbalk */
    align-items: center;
    gap: 25px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    will-change: transform;
}

.gx-card:hover {
    transform: translateX(2px);
    background: linear-gradient(145deg, var(--bg-hover) 0%, #1e222b 100%);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: -5px 10px 30px rgba(0, 0, 0, 0.3);
}

/* Status Bar (Left Strip) */
.gx-status-bar {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 6px;
    background: rgba(255, 255, 255, 0.05);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.gx-card.filled .gx-status-bar {
    width: 22px;
    background: #2b990747;
    /* GROEN voor succes */
    /* box-shadow: 4px 0 15px rgba(0, 230, 118, 0.3); */
}

.gx-status-bar svg {
    width: 14px;
    height: 14px;
    color: #fff;
    opacity: 0;
    transform: scale(0) rotate(-45deg);
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transition-delay: 0.1s;
}

.gx-card.filled .gx-status-bar svg {
    opacity: 1;
    transform: scale(1) rotate(0deg);
}

/* Shine Effect */
.gx-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.03), transparent);
    transform: skewX(-25deg);
    transition: 0.5s;
    pointer-events: none;
}

.gx-card:hover::after {
    left: 150%;
    transition: 0.7s ease-in-out;
}

.gx-card-img {
    width: 70px;
    height: 70px;
    background: #0a0c10;
    border-radius: 0px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    transition: 0.3s;
    position: relative;
    z-index: 2;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.gx-card:hover .gx-card-img {
    border-color: var(--text-dim);
    /* transform: scale(1.05); */
}

.gx-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* padding: 6px; */
}

.gx-card-img svg {
    stroke: var(--text-dim);
    width: 28px;
    height: 28px;
    transition: 0.3s;
}

.gx-card:hover .gx-card-img svg {
    stroke: #fff;
}

/* Selection Text */
.comp-select-btn {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    z-index: 2;
}

.comp-select-btn div:first-child {
    /* Label */
    font-size: 0.7rem !important;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-dim);
    font-weight: 700;
    opacity: 0.7;
}

.comp-select-btn strong {
    font-size: 0.8rem;
    font-weight: 200;
    color: #fff;
    transition: 0.3s;
    line-height: 1.3;
}

.gx-card:hover .comp-select-btn strong {
    color: var(--primary);
    text-shadow: 0 0 20px rgba(255, 77, 0, 0.4);
}

/* Filled State */
.gx-card.filled {
    background: linear-gradient(90deg, rgba(0, 230, 118, 0.03) 0%, var(--bg-panel) 50%);
    border-color: rgba(0, 230, 118, 0.2);
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.1) inset;
}

.gx-card.filled .gx-card-img {
    /* border-color: var(--success); */
    box-shadow: 0 0 20px rgba(0, 230, 118, 0.15);
    background: #0f0f0f;
}

.gx-card.filled .gx-card-img svg {
    stroke: var(--success);
}

/* Child Component Indentation (e.g. CPU Cooler) */
.gx-card.is-child {
    margin-left: 40px;
    width: calc(100% - 40px);
}

.gx-card.is-child.filled {
    /* border-left handled by status bar now */
}

.gx-card.is-child::before {
    content: '';
    position: absolute;
    left: -20px;
    top: 50%;
    width: 20px;
    height: 1px;
    background: var(--border);
}

/* Next Step Pulse */
.gx-card.next-step {
    border-color: var(--primary);
    box-shadow: 0 0 20px rgba(255, 77, 0, 0.1) inset;
    animation: borderPulse 2s infinite;
}

@keyframes borderPulse {
    0% {
        border-color: rgba(255, 77, 0, 0.3);
    }

    50% {
        border-color: var(--primary);
        box-shadow: 0 0 25px rgba(255, 77, 0, 0.2) inset;
    }

    100% {
        border-color: rgba(255, 77, 0, 0.3);
    }
}

.comp-price {
    font-family: var(--font-head);
    font-weight: 700;
    color: var(--text-dim);
    font-size: 1.1rem;
    text-align: right;
    transition: 0.3s;
}

.gx-card.filled .comp-price {
    color: #fff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

/* Store Info */
.comp-store {
    color: var(--text-dim);
    font-size: 0.9rem;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.action-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid transparent;
    color: var(--text-dim);
    cursor: pointer;
    width: 27px;
    height: 27px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.action-btn:hover {
    background: var(--bg-hover);
    color: #fff;
    border-color: var(--text-dim);
    transform: scale(1.1);
}

.action-btn.remove:hover {
    color: #fff;
    background: var(--danger);
    border-color: var(--danger);
    box-shadow: 0 0 15px rgba(255, 23, 68, 0.4);
}

.icon-action-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    color: var(--text-dim);
    width: 40px;
    height: 40px;
    border-radius: 0px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.2s;
}

.icon-action-btn:hover {
    background: var(--hover);
    color: #fff;
    border-color: var(--primary);
}

.action-buttons-row {
    display: flex;
    gap: 10px;
}

/* Sidebar HUD */
.sidebar-hud {
    position: sticky;
    top: 100px;
    height: calc(100vh - 120px);
    display: flex;
    flex-direction: column;
}

.hud-glass {
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: 0px;
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.hud-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 15px;
}

.hud-header h2 {
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--text-dim);
}

.price-display {
    text-align: center;
    margin-bottom: 30px;
}

.price-display small {
    display: block;
    color: var(--text-dim);
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.price-display .val {
    font-family: var(--font-head);
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #fff 0%, #ccc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-grid {
    display: grid;
    gap: 20px;
    margin-bottom: auto;
}

.stat-item label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-dim);
    margin-bottom: 8px;
}

.watt-bar-container {
    height: 6px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 0px;
    overflow: hidden;
    margin-bottom: 8px;
}

.watt-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--secondary), #00A6FF);
    width: 0%;
    transition: width 0.5s var(--ease-out);
    box-shadow: 0 0 10px var(--secondary-glow);
}

.checkout-btn {
    width: 100%;
    padding: 16px;
    background: var(--primary);
    border: none;
    border-radius: 0px;
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: 0.3s;
    margin-top: 20px;
    box-shadow: 0 5px 20px rgba(255, 77, 0, 0.3);
}

.checkout-btn:hover {
    background: #ff6a00;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(255, 77, 0, 0.4);
}

/* Modal */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    /* backdrop-filter: blur(8px); Performance fix */
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: 0.3s;
}

.modal.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background: #1a1e26;
    width: 90%;
    max-width: 1000px;
    height: 85vh;
    border-radius: 0px;
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    box-shadow: 0 50px 100px rgba(0, 0, 0, 0.5);
    transform: scale(0.95);
    transition: 0.3s var(--ease-out);
}

.modal.active .modal-content {
    transform: scale(1);
}

.modal-header {
    padding: 20px 30px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
    font-family: var(--font-head);
}

.close-modal {
    background: none;
    border: none;
    color: var(--text-dim);
    font-size: 2rem;
    cursor: pointer;
}

.close-modal:hover {
    color: #fff;
}

.component-list {
    flex: 1;
    padding: 0;
}

/* New frame inside modal if using iframe or just div */

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

    .sidebar-hud {
        position: fixed;
        bottom: 0;
        top: auto;
        width: 100%;
        height: auto;
        z-index: 900;
    }

    .hud-glass {
        flex-direction: row;
        align-items: center;
        padding: 15px;
        border-radius: 0px 20px 0 0;
    }

    .hud-header,
    .stat-grid,
    .checkout-btn {
        margin: 0;
        width: auto;
    }

    .checkout-btn {
        margin-left: auto;
        padding: 10px 20px;
        margin-top: 0;
    }

    .price-display {
        margin: 0 30px;
        text-align: left;
    }

    .price-display .val {
        font-size: 1.5rem;
    }

    .stat-item {
        display: none;
    }

    /* Hide stats on mobile sticky for simplicity or stack them */
}

/* Missing Button Styles */
.view-options-btn {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-dim);
    padding: 6px 12px;
    border-radius: 0px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
    white-space: nowrap;
}

.view-options-btn:hover {
    border-color: var(--primary);
    color: #fff;
    background: rgba(255, 77, 0, 0.1);
}

.store-add-btn {
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 0px;
    font-weight: 700;
    cursor: pointer;
    font-family: var(--font-head);
    transition: 0.2s;
    font-size: 0.9rem;
}

.store-add-btn:hover {
    background: #ff6a00;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 77, 0, 0.3);
}

.back-btn {
    background: transparent;
    border: none;
    color: var(--text-dim);
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 20px;
    padding: 0;
}

.back-btn:hover {
    color: #fff;
}

/* Modal specific fixes */
.product-detail-view {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

.detail-header {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    background: rgba(0, 0, 0, 0.2);
    padding: 20px;
    border-radius: 0px;
    border: 1px solid var(--border);
}

.detail-img {
    width: 100px;
    height: 100px;
    background: #fff;
    border-radius: 0px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px;
}

.detail-img img,
.detail-img svg {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.detail-info h2 {
    margin-bottom: 10px;
    font-size: 1.5rem;
    color: var(--text-main);
}

.specs-grid {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.specs-grid span {
    background: rgba(255, 255, 255, 0.1);
    padding: 4px 8px;
    border-radius: 0px;
    font-size: 0.85rem;
    color: var(--text-dim);
}

.merchant-table {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.merchant-row {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 15px;
    align-items: center;
    background: rgba(255, 255, 255, 0.03);
    padding: 10px 15px;
    border-radius: 0px;
    border: 1px solid var(--border);
}

.merchant-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.merchant-logo {
    width: 30px;
    height: 30px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: var(--text-main);
    font-size: 0.8rem;
}

.merchant-price {
    font-family: var(--font-head);
    font-weight: bold;
    color: var(--primary);
    font-size: 1.1rem;
}

/* --- COMPONENT SELECTION PAGE STYLES --- */

/* Header Area */
.cs-header {
    background-color: var(--bg-panel);
    border-bottom: 1px solid var(--border);
    padding: 2rem 0;
    margin-bottom: 0;
    margin-top: 30px;
}

.cs-header-inner {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 30px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cs-back-link {
    color: var(--text-dim);
    font-size: 0.9rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.cs-back-link:hover {
    color: var(--primary);
}

.cs-title {
    font-family: var(--font-head);
    font-size: 1.4rem;
    color: #fff;
}

/* Layout */
.cs-content-bg {
    /* background-color: var(--bg-dark); */
    min-height: calc(100vh - 200px);
}

.cs-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 40px 30px;
}

.selection-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 30px;
    align-items: start;
}

/* Sidebar Filters */
.filter-sidebar {
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: 0px;
    padding: 20px;
}

.filter-sidebar h3 {
    font-family: var(--font-head);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
    color: #fff;
}

.filter-group {
    margin-bottom: 20px;
}

.filter-title {
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-main);
}

.filter-options {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.filter-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-dim);
    font-size: 0.9rem;
    cursor: pointer;
}

.filter-checkbox:hover {
    color: #fff;
}

.filter-checkbox input {
    accent-color: var(--primary);
}

/* Table Styles */
.spec-table-container {
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: 0px;
    overflow: hidden;
}

.spec-table {
    width: 100%;
    border-collapse: collapse;
}

.spec-table th {
    background: rgba(255, 255, 255, 0.02);
    padding: 15px 20px;
    text-align: left;
    color: var(--text-dim);
    font-weight: 600;
    font-size: 0.9rem;
    border-bottom: 1px solid var(--border);
}

.spec-table td {
    padding: 15px 20px;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
    color: var(--text-main);
}

.spec-table tr:last-child td {
    border-bottom: none;
}

.spec-table tr:hover {
    background: var(--bg-hover);
}

/* Table Elements */
.tbl-img {
    width: 50px;
    height: 50px;
    background: #fff;
    border-radius: 0px;
    padding: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tbl-img img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.tbl-name {
    font-weight: 400;
    color: #fff;
    font-size: 0.8rem;
}

#table-body {
    font-size: 0.7rem !important;
}

.tbl-sub {
    font-size: 0.8rem;
    color: var(--text-dim);
    margin-top: 2px;
}

.tbl-dim {
    font-size: 0.9rem;
    color: var(--text-dim);
    font-family: monospace;
}

.tbl-price-cell {
    cursor: pointer;
    text-align: right;
}

.price-sub {
    font-size: 0.75rem;
    color: var(--text-dim);
}

.price-main {
    font-family: var(--font-head);
    font-weight: 700;
    color: var(--primary);
    font-size: 0.875rem;
}

.tbl-add-btn {
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
    padding: 6px 14px;
    font-weight: 500;
    font-size: 0.7rem;
    border-radius: 0px;
    cursor: pointer;
    transition: 0.2s;
}

.tbl-add-btn.filled {
    background-color: var(--primary);
    color: white;
}

.tbl-add-btn:hover {
    background: var(--primary);
    color: #fff;
}

.selected-row {
    background: rgba(255, 77, 0, 0.05) !important;
    border-left: 3px solid var(--primary);
}

/* Loading */
.loading-spinner {
    color: var(--text-dim);
    font-style: italic;
    padding: 10px;
}

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

    .filter-sidebar {
        display: none;
        /* Hide filters on mobile for now or make collapsible */
    }
}

/* --- SIDEBAR & NAVIGATION STYLES --- */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 260px;
    background: var(--bg-panel);
    border-right: 1px solid var(--border);
    z-index: 9999;
    /* High Z-index to ensure visibility */
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.brand-logo {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 30px;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 5px;
    font-family: var(--font-head);
}

.logo-yap {
    color: var(--primary);
}

.nav-menu {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 0.75rem !important;
    padding: 12px 15px;
    color: var(--text-dim);
    border-radius: 0px;
    transition: all 0.2s ease;
    font-weight: 500;
    text-decoration: none;
}

.nav-item:hover,
.nav-item.active {
    background: var(--primary-glow);
    color: white;
    border-right: none;
    /* Remove dashboard border */
}

.nav-item.active {
    background: rgba(255, 77, 0, 0.15);
    font-weight: 700;
}

.nav-item svg {
    width: 22px;
    height: 22px;
    stroke: currentColor;
    stroke-width: 2;
}

.header-right {
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.search-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--bg-dark);
    padding: 10px 15px;
    border-radius: 0px;
    border: 1px solid var(--border);
}

.search-wrapper svg {
    width: 18px;
    height: 18px;
    color: var(--text-dim);
}

.search-wrapper input {
    border: none;
    background: transparent;
    color: #fff;
    width: 100%;
    outline: none;
    font-family: var(--font-body);
}

.user-profile {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-dim);
    font-size: 0.9rem;
    padding: 5px 0;
}

.avatar svg {
    width: 32px;
    height: 32px;
}

/* Main Content Wrapper for Sidebar Pages */
.main-content {
    margin-left: 260px;
    margin-top: 100px !important;
    width: calc(100% - 260px);
    display: flex;
    flex-direction: column;
}

/* Fix for Top Bar in Builder */
.top-bar .action-btn svg {
    width: 24px;
    height: 24px;
    stroke-width: 2;
}

/* Mobile Responsiveness for Sidebar */
@media(max-width: 1000px) {
    .sidebar {
        width: 80px;
        padding: 20px 10px;
    }

    .brand-logo .logo-pc,
    .brand-logo .logo-yap,
    .nav-item span,
    .header-right {
        display: none;
    }

    .brand-logo {
        justify-content: center;
    }

    .brand-logo::after {
        content: 'PC';
        color: var(--primary);
    }

    .nav-item {
        justify-content: center;
        padding: 15px;
    }

    .main-content {
        margin-left: 80px;
        width: calc(100% - 80px);
    }
}

/* --- PRODUCT DETAIL PAGE STYLES --- */

/* Container */
.page-container {
    padding: 40px;
    max-width: 1600px;
    margin: 0 auto;
}

.pd-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* Header Card */
.pd-header-card {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 40px;
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: 0px;
    padding: 30px;
    margin-top: 20px;
}

.pd-image {
    width: 100%;
    height: 350px;
    background: #fff;
    border-radius: 0px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 20px;
    border: 1px solid var(--border);
}

.pd-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.pd-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.pd-brand {
    font-weight: 800;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.pd-title {
    font-family: var(--font-head);
    font-size: 1.8rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
    margin-bottom: 20px;
}

.pd-meta-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 25px;
}

.pd-tag {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    padding: 6px 12px;
    border-radius: 0px;
    color: var(--text-dim);
    font-size: 0.9rem;
}

/* Content Grid */
.pd-content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

.pd-section-title {
    font-family: var(--font-head);
    font-size: 1.4rem;
    color: #fff;
    margin-bottom: 20px;
    border-left: 4px solid var(--primary);
    padding-left: 15px;
}

/* Store Table */
.comp-table-wrapper {
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: 0px;
    overflow: hidden;
}

.comp-table {
    width: 100%;
    border-collapse: collapse;
}

.comp-table th {
    padding: 15px 20px;
    background: rgba(0, 0, 0, 0.2);
    color: var(--text-dim);
    text-align: left;
    font-weight: 600;
    border-bottom: 1px solid var(--border);
}

.comp-table td {
    padding: 15px 20px;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
    color: var(--text-main);
}

.comp-table tr:hover {
    background: var(--bg-hover);
}

.store-cell {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}

.store-logo-box {
    width: 32px;
    height: 32px;
    background: #fff;
    border-radius: 0px;
    color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.shipping-free {
    color: var(--success);
    font-size: 0.85rem;
    font-weight: 600;
}

.shipping-paid {
    color: var(--text-dim);
    font-size: 0.85rem;
}

.stock-status {
    font-size: 0.85rem;
    font-weight: 600;
}

.stock-status.in {
    color: var(--success);
}

.stock-status.low {
    color: #FFA500;
}

.price-total {
    font-family: var(--font-head);
    font-weight: 800;
    color: var(--primary);
    font-size: 1.2rem;
}

.btn-select-store {
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 0px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.2s;
}

.btn-select-store:hover {
    background: #ff6a00;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 77, 0, 0.3);
}

/* Right Col / Charts */
.pd-right-col {
    display: flex;
    flex-direction: column;
}

.chart-wrapper-box {
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: 0px;
    padding: 25px;
}

.chart-container {
    height: 200px;
    display: flex;
    align-items: flex-end;
    gap: 8px;
    padding-top: 20px;
}

.chart-bar {
    flex: 1;
    background: linear-gradient(180deg, var(--secondary) 0%, rgba(0, 240, 255, 0.2) 100%);
    border-radius: 0px 4px 0 0;
    position: relative;
    transition: 0.2s;
}

.chart-bar:hover {
    background: var(--secondary);
}

.chart-bar:hover::after {
    content: attr(data-price);
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    background: #000;
    color: #fff;
    padding: 4px 8px;
    border-radius: 0px;
    font-size: 0.75rem;
    white-space: nowrap;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.5);
    pointer-events: none;
}

@media(max-width: 1100px) {
    .pd-header-card {
        grid-template-columns: 1fr;
    }

    .pd-image {
        height: 250px;
    }

    .pd-content-grid {
        grid-template-columns: 1fr;
    }

    /* --- HOMEPAGE STYLES --- */

    /* Hero Adjustments */
    .hero-section {
        position: relative;
        height: 60vh;
        min-height: 500px;
        background: #000;
        overflow: hidden;
        /* Make sure to position correctly if Top Bar is usually present */
    }

    .hero-carousel {
        position: absolute;
        inset: 0;
    }

    .hero-slide {
        position: absolute;
        inset: 0;
        background-size: cover;
        background-position: center;
        opacity: 0;
        transition: opacity 1s ease;
    }

    .hero-slide.active {
        opacity: 1;
    }

    .hero-slide::after {
        content: '';
        position: absolute;
        inset: 0;
        background: linear-gradient(0deg, var(--bg-dark) 0%, rgba(0, 0, 0, 0.4) 100%);
    }

    .hero-overlay {
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        padding: 40px;
        z-index: 10;
    }

    .hero-content {
        max-width: 800px;
        animation: slideUp 0.8s var(--ease-out);
    }

    @keyframes slideUp {
        from {
            transform: translateY(30px);
            opacity: 0;
        }

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

    .hero-tag {
        display: inline-block;
        background: var(--primary);
        color: #fff;
        padding: 5px 10px;
        border-radius: 0px;
        font-weight: 700;
        font-size: 0.8rem;
        margin-bottom: 15px;
    }

    #hero-title {
        font-size: 3.5rem;
        line-height: 1;
        margin-bottom: 20px;
        text-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    }

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

    .cta-btn {
        padding: 12px 30px;
        font-weight: 700;
        border-radius: 0px;
        font-size: 1rem;
        cursor: pointer;
        transition: 0.2s;
        border: none;
        font-family: var(--font-head);
    }

    .cta-btn.primary {
        background: var(--primary);
        color: #fff;
    }

    .cta-btn.primary:hover {
        background: #ff6a00;
        transform: translateY(-2px);
        box-shadow: 0 10px 20px rgba(255, 77, 0, 0.3);
    }

    .cta-btn.secondary {
        background: rgba(255, 255, 255, 0.1);
        /* backdrop-filter: blur(10px); Performance fix */
        color: #fff;
        border: 1px solid rgba(255, 255, 255, 0.2);
    }

    .cta-btn.secondary:hover {
        background: rgba(255, 255, 255, 0.2);
    }

    /* Home Sections */
    .home-section {
        margin-bottom: 60px;
    }

    .section-header {
        display: flex;
        justify-content: space-between;
        align-items: flex-end;
        margin-bottom: 25px;
    }

    .section-header h2 {
        font-size: 2rem !important;
        color: var(--text-main);
        font-family: var(--font-head);
    }

    .mb-title-secondary {
        font-size: 2rem !important;
    }

    .view-all {
        color: var(--text-dim);
        font-weight: 600;
        font-size: 0.9rem;
    }

    .view-all:hover {
        color: var(--primary);
    }

    /* Feature Grid */
    .feature-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
    }

    .feature-card {
        background: var(--bg-panel);
        border: 1px solid var(--border);
        border-radius: 0px;
        padding: 30px;
        cursor: pointer;
        transition: 0.3s;
    }

    .feature-card:hover {
        transform: translateY(-5px);
        border-color: var(--primary);
    }

    .f-icon {
        width: 50px;
        height: 50px;
        background: rgba(255, 77, 0, 0.1);
        border-radius: 0px;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-bottom: 20px;
        color: var(--primary);
    }

    .f-icon svg {
        width: 28px;
        height: 28px;
    }

    .feature-card h3 {
        color: var(--text-main);
        margin-bottom: 10px;
        font-size: 1.2rem;
    }

    .feature-card p {
        color: var(--text-dim);
        font-size: 0.9rem;
    }

    /* Build Slider (Horizontal Scroll) */
    .builds-slider-container {
        width: 100%;
        overflow: hidden;
    }

    .builds-slider {
        display: flex;
        gap: 20px;
        overflow-x: auto;
        padding-bottom: 20px;
        scroll-snap-type: x mandatory;
    }

    .builds-slider::-webkit-scrollbar {
        height: 6px;
    }

    .builds-slider::-webkit-scrollbar-thumb {
        background: var(--border);
        border-radius: 0px;
    }

    .build-card {
        min-width: 280px;
        width: 280px;
        background: var(--bg-panel);
        border-radius: 0px;
        border: 1px solid var(--border);
        overflow: hidden;
        scroll-snap-align: start;
        display: flex;
        flex-direction: column;
        transition: 0.2s;
    }

    .build-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    }

    .build-img {
        height: 250px;
        background: #fff;
        position: relative;
    }

    .build-img img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        padding: 20px;
    }

    .build-badge {
        position: absolute;
        top: 10px;
        right: 10px;
        background: var(--secondary);
        color: #fff;
        padding: 4px 8px;
        border-radius: 0px;
        font-size: 0.75rem;
        font-weight: 700;
    }

    .build-info {
        padding: 20px;
    }

    .build-info h3 {
        color: var(--text-main);
        margin-bottom: 10px;
        font-size: 1.1rem;
    }

    .build-specs {
        display: flex;
        flex-wrap: wrap;
        gap: 5px;
        margin-bottom: 15px;
    }

    .build-specs span {
        font-size: 0.75rem;
        color: var(--text-dim);
        background: rgba(255, 255, 255, 0.05);
        padding: 2px 6px;
        border-radius: 0px;
    }

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

    .build-price-row .price {
        font-weight: 800;
        color: var(--text-main);
        font-size: 1.1rem;
    }

    .build-btn {
        width: 32px;
        height: 32px;
        border-radius: 50%;
        border: none;
        background: var(--primary);
        color: #fff;
        font-size: 1.2rem;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .build-btn:hover {
        background: #fff;
        color: var(--primary);
    }

    /* News Grid */
    .news-grid {
        display: grid;
        grid-template-columns: 2fr 1.2fr;
        gap: 20px;
        height: 500px;
    }

    .news-card {
        position: relative;
        border-radius: 0px;
        overflow: hidden;
        cursor: pointer;
    }

    .news-card .news-img {
        width: 100%;
        height: 100%;
        background-size: cover;
        background-position: center;
        transition: 0.5s;
    }

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

    .news-card.big .news-overlay {
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        padding: 30px;
        background: linear-gradient(0deg, rgba(0, 0, 0, 0.9) 0%, transparent 100%);
        z-index: 2;
    }

    .news-tag {
        display: inline-block;
        background: var(--secondary);
        color: #000;
        padding: 4px 8px;
        font-size: 0.75rem;
        font-weight: 800;
        border-radius: 0px;
        margin-bottom: 10px;
    }

    .news-card.big h3 {
        font-size: 2rem;
        color: #fff;
        margin-bottom: 10px;
        line-height: 1.1;
    }

    .news-card.big p {
        color: #ccc;
        font-size: 0.95rem;
    }

    .news-sub-grid {
        display: grid;
        grid-template-rows: repeat(3, 1fr);
        gap: 20px;
    }

    .news-card.small {
        display: flex;
        background: var(--bg-panel);
        border: 1px solid var(--border);
    }

    .news-card.small .news-img {
        width: 120px;
        height: 100%;
        flex-shrink: 0;
    }

    .news-card.small .news-content {
        padding: 15px;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .news-card.small h4 {
        color: #fff;
        font-size: 1rem;
        margin-bottom: 5px;
        line-height: 1.3;
    }

    .news-card.small .date {
        color: var(--text-dim);
        font-size: 0.8rem;
    }

    @media(max-width: 900px) {
        .news-grid {
            grid-template-columns: 1fr;
            height: auto;
        }

        .news-card.big {
            height: 300px;
        }

        .news-sub-grid {
            grid-template-rows: auto;
        }

        .hero-section {
            height: 50vh;
        }

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

        /* --- HOMEPAGE STYLES --- */

        /* Hero Adjustments */
        .hero-section {
            position: relative;
            height: 60vh;
            min-height: 500px;
            background: #000;
            overflow: hidden;
            /* Make sure to position correctly if Top Bar is usually present */
        }

        .hero-carousel {
            position: absolute;
            inset: 0;
        }

        .hero-slide {
            position: absolute;
            inset: 0;
            background-size: cover;
            background-position: center;
            opacity: 0;
            transition: opacity 1s ease;
        }

        .hero-slide.active {
            opacity: 1;
        }

        .hero-slide::after {
            content: '';
            position: absolute;
            inset: 0;
            background: linear-gradient(0deg, var(--bg-dark) 0%, rgba(0, 0, 0, 0.4) 100%);
        }

        .hero-overlay {
            position: absolute;
            bottom: 0;
            left: 0;
            width: 100%;
            padding: 40px;
            z-index: 10;
        }

        .hero-content {
            max-width: 800px;
            animation: slideUp 0.8s var(--ease-out);
        }

        @keyframes slideUp {
            from {
                transform: translateY(30px);
                opacity: 0;
            }

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

        .hero-tag {
            display: inline-block;
            background: var(--primary);
            color: #fff;
            padding: 5px 10px;
            border-radius: 0px;
            font-weight: 700;
            font-size: 0.8rem;
            margin-bottom: 15px;
        }

        #hero-title {
            font-size: 3.5rem;
            line-height: 1;
            margin-bottom: 20px;
            text-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
        }

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

        .cta-btn {
            padding: 12px 30px;
            font-weight: 700;
            border-radius: 0px;
            font-size: 1rem;
            cursor: pointer;
            transition: 0.2s;
            border: none;
            font-family: var(--font-head);
        }

        .cta-btn.primary {
            background: var(--primary);
            color: #fff;
        }

        .cta-btn.primary:hover {
            background: #ff6a00;
            transform: translateY(-2px);
            box-shadow: 0 10px 20px rgba(255, 77, 0, 0.3);
        }

        .cta-btn.secondary {
            background: rgba(255, 255, 255, 0.1);
            color: #fff;
            border: 1px solid rgba(255, 255, 255, 0.2);
        }

        .cta-btn.secondary:hover {
            background: rgba(255, 255, 255, 0.2);
        }

        /* Home Sections */
        .home-section {
            margin-bottom: 60px;
        }

        .section-header {
            display: flex;
            justify-content: space-between;
            align-items: flex-end;
            margin-bottom: 25px;
        }

        .section-header h2 {
            font-size: 2rem;
            color: #fff;
            font-family: var(--font-head);
        }

        .view-all {
            color: var(--text-dim);
            font-weight: 600;
            font-size: 0.9rem;
        }

        .view-all:hover {
            color: var(--primary);
        }

        /* Feature Grid */
        .feature-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 20px;
        }

        .feature-card {
            background: var(--bg-panel);
            border: 1px solid var(--border);
            border-radius: 0px;
            padding: 30px;
            cursor: pointer;
            transition: 0.3s;
        }

        .feature-card:hover {
            transform: translateY(-5px);
            border-color: var(--primary);
        }

        .f-icon {
            width: 50px;
            height: 50px;
            background: rgba(255, 77, 0, 0.1);
            border-radius: 0px;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-bottom: 20px;
            color: var(--primary);
        }

        .f-icon svg {
            width: 28px;
            height: 28px;
        }

        .feature-card h3 {
            color: #fff;
            margin-bottom: 10px;
            font-size: 1.2rem;
        }

        .feature-card p {
            color: var(--text-dim);
            font-size: 0.9rem;
        }

        /* Build Slider (Horizontal Scroll) */
        .builds-slider-container {
            width: 100%;
            overflow: hidden;
        }

        .builds-slider {
            display: flex;
            gap: 20px;
            overflow-x: auto;
            padding-bottom: 20px;
            scroll-snap-type: x mandatory;
        }

        .builds-slider::-webkit-scrollbar {
            height: 6px;
        }

        .builds-slider::-webkit-scrollbar-thumb {
            background: var(--border);
            border-radius: 0px;
        }

        .build-card {
            min-width: 280px;
            width: 280px;
            background: var(--bg-panel);
            border-radius: 0px;
            border: 1px solid var(--border);
            overflow: hidden;
            scroll-snap-align: start;
            display: flex;
            flex-direction: column;
            transition: 0.2s;
        }

        .build-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
        }

        .build-img {
            height: 250px;
            background: #fff;
            position: relative;
        }

        .build-img img {
            width: 100%;
            height: 100%;
            object-fit: contain;
            padding: 20px;
        }

        .build-badge {
            position: absolute;
            top: 10px;
            right: 10px;
            background: var(--secondary);
            color: #fff;
            padding: 4px 8px;
            border-radius: 0px;
            font-size: 0.75rem;
            font-weight: 700;
        }

        .build-info {
            padding: 20px;
        }

        .build-info h3 {
            color: #fff;
            margin-bottom: 10px;
            font-size: 1.1rem;
        }

        .build-specs {
            display: flex;
            flex-wrap: wrap;
            gap: 5px;
            margin-bottom: 15px;
        }

        .build-specs span {
            font-size: 0.75rem;
            color: var(--text-dim);
            background: rgba(255, 255, 255, 0.05);
            padding: 2px 6px;
            border-radius: 0px;
        }

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

        .build-price-row .price {
            font-weight: 800;
            color: #fff;
            font-size: 1.1rem;
        }

        .build-btn {
            width: 32px;
            height: 32px;
            border-radius: 50%;
            border: none;
            background: var(--primary);
            color: #fff;
            font-size: 1.2rem;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .build-btn:hover {
            background: #fff;
            color: var(--primary);
        }

        /* News Grid */
        .news-grid {
            display: grid;
            grid-template-columns: 2fr 1.2fr;
            gap: 20px;
            height: 500px;
        }

        .news-card {
            position: relative;
            border-radius: 0px;
            overflow: hidden;
            cursor: pointer;
        }

        .news-card .news-img {
            width: 100%;
            height: 100%;
            background-size: cover;
            background-position: center;
            transition: 0.5s;
        }

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

        .news-card.big .news-overlay {
            position: absolute;
            bottom: 0;
            left: 0;
            width: 100%;
            padding: 30px;
            background: linear-gradient(0deg, rgba(0, 0, 0, 0.9) 0%, transparent 100%);
            z-index: 2;
        }

        .news-tag {
            display: inline-block;
            background: var(--secondary);
            color: #000;
            padding: 4px 8px;
            font-size: 0.75rem;
            font-weight: 800;
            border-radius: 0px;
            margin-bottom: 10px;
        }

        .news-card.big h3 {
            font-size: 2rem;
            color: #fff;
            margin-bottom: 10px;
            line-height: 1.1;
        }

        .news-card.big p {
            color: #ccc;
            font-size: 0.95rem;
        }

        .news-sub-grid {
            display: grid;
            grid-template-rows: repeat(3, 1fr);
            gap: 20px;
        }

        .news-card.small {
            display: flex;
            background: var(--bg-panel);
            border: 1px solid var(--border);
        }

        .news-card.small .news-img {
            width: 120px;
            height: 100%;
            flex-shrink: 0;
        }

        .news-card.small .news-content {
            padding: 15px;
            display: flex;
            flex-direction: column;
            justify-content: center;
        }

        .news-card.small h4 {
            color: #fff;
            font-size: 1rem;
            margin-bottom: 5px;
            line-height: 1.3;
        }

        .news-card.small .date {
            color: var(--text-dim);

            .live-badge {
                display: flex;
                align-items: center;
                gap: 8px;
                background: rgba(0, 0, 0, 0.3);
                border: 1px solid rgba(255, 0, 0, 0.2);
                padding: 5px 10px;
                border-radius: 0px;
                color: #ff0000;
                font-weight: 900;
                font-size: 0.8rem;
                letter-spacing: 1px;
                font-family: var(--font-head);
                box-shadow: inset 0 0 10px rgba(255, 0, 0, 0.05);
            }

            .red-square {
                width: 12px;
                height: 12px;
                background: #ff0000;
                border-radius: 0px;
                animation: liveBlink 2s infinite cubic-bezier(0.4, 0, 0.6, 1);
                box-shadow: 0 0 8px rgba(255, 0, 0, 0.6);
            }

            @keyframes liveBlink {

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

                50% {
                    opacity: 0;
                    transform: scale(0.9);
                }
            }

            .theme-toggle {
                cursor: pointer;
                transition: transform 0.2s;
            }

            .theme-toggle:hover {
                transform: rotate(15deg);
            }

            @media(max-width: 900px) {
                .news-grid {
                    grid-template-columns: 1fr;
                    height: auto;
                }

                .news-card.big {
                    height: 300px;
                }

                .news-sub-grid {
                    grid-template-rows: auto;
                }

                .hero-section {
                    height: 50vh;
                }

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


            /* --- CONTROL PANEL STYLES --- */
            .live-badge {
                display: flex;
                align-items: center;
                gap: 8px;
                background: rgba(0, 0, 0, 0.3);
                border: 1px solid rgba(255, 0, 0, 0.2);
                padding: 5px 10px;
                border-radius: 0px;
                color: #ff0000;
                font-weight: 900;
                font-size: 0.8rem;
                letter-spacing: 1px;
                font-family: var(--font-head);
                box-shadow: inset 0 0 10px rgba(255, 0, 0, 0.05);
            }

            .red-square {
                width: 12px;
                height: 12px;
                background: #ff0000;
                border-radius: 0px;
                animation: liveBlink 2s infinite cubic-bezier(0.4, 0, 0.6, 1);
                box-shadow: 0 0 8px rgba(255, 0, 0, 0.6);
            }

            @keyframes liveBlink {

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

                50% {
                    opacity: 0;
                    transform: scale(0.9);
                }
            }

            .watt-bar-container {
                width: 100%;
                height: 8px;
                background: rgba(255, 255, 255, 0.1);
                border-radius: 0px;
                overflow: hidden;
                margin: 5px 0;
            }

            .watt-bar-fill {
                height: 100%;
                width: 0%;
                background: linear-gradient(90deg, var(--secondary), #00ffaa);
                border-radius: 0px;
                transition: width 0.5s ease, background 0.3s;
            }

            /* Status Colors */
            .status-ok {
                color: #00ffaa !important;
            }

            .status-warn {
                color: #ffa500 !important;
            }

            .status-crit {
                color: #ff3333 !important;
            }

            /* --- THEME TOGGLE BUTTON --- */
            /* --- THEME TOGGLE SWITCH --- */
            .theme-toggle {
                display: none !important;
                /* Only Dark Theme active */
                cursor: pointer;
                background: var(--bg-hover);
                border: 1px solid var(--border);
                border-radius: 0px;
                width: 100%;
                height: 36px;
                /* Reduced height */
                align-items: center;
                justify-content: space-between;
                padding: 3px;
                position: relative;
                margin-top: 15px;
                transition: 0.3s ease;
                overflow: hidden;
                box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
            }

            /* The sliding knob */
            .theme-toggle::after {
                content: '';
                position: absolute;
                left: 3px;
                top: 3px;
                width: 28px;
                height: 28px;
                background: #fff;
                border-radius: 50%;
                box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
                transition: 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
                /* Precise smooth sliding */
                z-index: 2;
            }

            /* Dark mode: Knob moves right */
            [data-theme="dark"] .theme-toggle::after {
                left: calc(100% - 31px);
                background: var(--primary);
                box-shadow: 0 0 10px var(--primary-glow);
            }

            /* Icons */
            .icon-sun,
            .icon-moon {
                position: absolute;
                top: 50%;
                transform: translateY(-50%);
                z-index: 1;
                display: flex;
                align-items: center;
                justify-content: center;
                width: 30px;
                height: 30px;
                pointer-events: none;
            }

            .icon-sun {
                left: 2px;
                color: #FDB813;
            }

            .icon-moon {
                right: 2px;
                color: var(--text-dim);
            }

            .icon-sun svg,
            .icon-moon svg {
                width: 16px !important;
                height: 16px !important;
                stroke-width: 2px;
                transition: 0.3s;
            }

            /* Active State Visuals */
            [data-theme="light"] .icon-sun svg {
                transform: scale(0.9);
            }

            [data-theme="dark"] .icon-sun {
                opacity: 0.5;
                color: var(--text-dim);
            }

            [data-theme="dark"] .icon-moon {
                color: #fff;
                opacity: 1;
            }

            /* Hover Effect */
            .theme-toggle:hover {
                border-color: var(--primary);
            }
        }
    }

    /* --- HOMEPAGE 2.0 SUPER DESIGN --- */

    /* Stats Bar */
    .stats-bar {
        display: flex;
        justify-content: center;
        gap: 50px;
        margin-bottom: 50px;
        flex-wrap: wrap;
        padding: 20px;
        border-bottom: 1px solid var(--border);
    }

    .stat-item {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .stat-num {
        font-size: 2rem;
        font-weight: 800;
        color: var(--primary);
        font-family: var(--font-head);
        line-height: 1;
    }

    .stat-label {
        font-size: 0.9rem;
        color: var(--text-dim);
        text-transform: uppercase;
        letter-spacing: 1px;
        margin-top: 5px;
    }

    /* Center Headers */
    .section-header.center-aligned {
        text-align: center;
        max-width: 800px;
        margin: 0 auto 40px auto;
    }

    .section-header.center-aligned h2 {
        font-size: 2.5rem;
        margin-bottom: 10px;
        background: linear-gradient(135deg, #fff 0%, var(--text-dim) 100%);
        -webkit-background-clip: text;
        background-clip: text;
        -webkit-text-fill-color: transparent;
    }

    /* Game Cards */
    .game-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 20px;
    }

    .game-card {
        height: 400px;
        position: relative;
        border: 1px solid var(--border);
        background: #000;
        overflow: hidden;
        cursor: pointer;
        transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
        border-radius: 0px;
    }

    .game-card:hover {
        border-color: var(--primary);
        transform: translateY(-5px);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    }

    .game-bg {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-size: cover;
        background-position: center;
        opacity: 0.7;
        transition: 0.5s;
    }

    .game-card:hover .game-bg {
        opacity: 0.4;
        transform: scale(1.05);
    }

    .game-overlay {
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        padding: 30px;
        background: linear-gradient(to top, #000 0%, rgba(0, 0, 0, 0.8) 50%, transparent 100%);
        display: flex;
        flex-direction: column;
        gap: 10px;
        transform: translateY(0px);
        transition: 0.3s;
    }

    .shop-by-game-banner {
        margin-top: -20px !important;
    }

    .game-card:hover .game-overlay {
        transform: translateY(0);
    }

    .game-card h3 {
        font-size: 1.8rem;
        font-weight: 800;
        text-transform: uppercase;
        line-height: 1;
        color: #fff;
    }

    .fps-meter {
        font-family: 'Courier New', monospace;
        color: var(--success);
        font-weight: bold;
        font-size: 1.2rem;
        display: flex;
        align-items: baseline;
        gap: 5px;
    }

    .fps-meter.high {
        color: var(--secondary);
    }

    .game-btn {
        background: transparent;
        border: 1px solid rgba(255, 255, 255, 0.3);
        color: #fff;
        padding: 10px;
        margin-top: 10px;
        text-transform: uppercase;
        font-size: 0.8rem;
        letter-spacing: 1px;
        transition: 0.3s;
        opacity: 0;
        transform: translateY(10px);
        border-radius: 0px;
    }

    .game-card:hover .game-btn {
        opacity: 1;
        transform: translateY(0);
    }

    .game-btn:hover {
        background: var(--primary);
        border-color: var(--primary);
    }

    /* Modern Build Cards (Slider Mode) */
    .builds-grid-modern {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 30px;
        padding-bottom: 20px;
        scrollbar-width: thin;
        scrollbar-color: var(--primary) var(--bg-panel);
    }

    .modern-build-card {
        background: var(--bg-panel);
        border: 1px solid var(--border);
        display: flex;
        flex-direction: column;
        position: relative;
        transition: 0.3s;
        border-radius: 0px;
        flex: 0 0 320px;
        /* Fixed width for slider */
        scroll-snap-align: start;
    }

    .modern-build-card:hover {
        border-color: var(--text-dim);
        background: var(--bg-hover);
    }

    .modern-build-card.featured {
        border: 1px solid var(--primary);
        box-shadow: 0 0 30px rgba(255, 77, 0, 0.1);
    }

    .mb-image {
        height: 250px;
        position: relative;
        background: #000;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 20px;
    }

    .mb-image img {
        max-height: 100%;
        max-width: 100%;
        object-fit: contain;
        transition: 0.3s;
    }

    .modern-build-card:hover .mb-image img {
        transform: scale(1.05);
    }

    .mb-badges {
        position: absolute;
        top: 15px;
        left: 15px;
        display: flex;
        gap: 5px;
    }

    .badge {
        font-size: 0.7rem;
        font-weight: 700;
        padding: 4px 8px;
        color: #000;
        border-radius: 0px;
    }

    .badge.new {
        background: var(--secondary);
    }

    .badge.rgb {
        background: #fff;
    }

    .badge.hot {
        background: var(--primary);
        color: #fff;
    }

    .mb-info {
        padding: 25px;
        flex: 1;
        display: flex;
        flex-direction: column;
    }

    .mb-info h3 {
        font-size: 1.4rem;
        margin-bottom: 15px;
        color: var(--text-main);
    }

    .mb-specs {
        display: grid;
        grid-template-columns: 1fr;
        gap: 8px;
        margin-bottom: 20px;
        color: var(--text-dim);
        font-size: 0.9rem;
    }

    .mb-specs small {
        display: inline-block;
        width: 40px;
        color: #555;
        font-weight: 600;
    }

    .mb-footer {
        margin-top: auto;
        display: flex;
        align-items: center;
        justify-content: space-between;
        border-top: 1px solid var(--border);
        padding-top: 20px;
    }

    .mb-footer .price {
        font-size: 1.4rem;
        font-weight: 700;
        color: #fff;
        /* ensure white price for contrast if bg is dark */
    }

    .add-btn {
        width: 40px;
        height: 40px;
        background: #fff;
        color: #000;
        border: none;
        font-size: 1.2rem;
        cursor: pointer;
        transition: 0.3s;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 0px;
    }

    .add-btn:hover {
        background: var(--primary);
        color: #fff;
    }

    /* --- BUILDER HUD / CONTROL PANEL --- */
    .sidebar-hud {
        position: sticky;
        top: 100px;
        width: 320px;
        flex-shrink: 0;
        height: fit-content;
    }

    .hud-glass {
        background: var(--bg-panel);
        border: 1px solid var(--border);
        padding: 25px;
        position: relative;
        overflow: hidden;
        border-radius: 0px;
    }

    .hud-glass::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 3px;
        background: linear-gradient(90deg, var(--primary), var(--secondary));
    }

    .hud-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 20px;
    }

    .hud-header h2 {
        font-size: 0.9rem;
        font-weight: 700;
        letter-spacing: 2px;
        color: var(--text-main);
    }

    .live-badge {
        display: flex;
        align-items: center;
        gap: 6px;
        font-size: 0.7rem;
        font-weight: 700;
        color: var(--danger);
        text-transform: uppercase;
        letter-spacing: 1px;
    }

    .red-square {
        width: 8px;
        height: 8px;
        background: var(--danger);
        animation: pulse 1.5s infinite;
    }

    @keyframes pulse {

        0%,
        100% {
            opacity: 1;
        }

        50% {
            opacity: 0.3;
        }
    }

    .price-display {
        text-align: center;
        padding: 20px 0;
        margin-bottom: 20px;
        border-bottom: 1px solid var(--border);
    }

    .price-display small {
        display: block;
        font-size: 0.8rem;
        color: var(--text-dim);
        text-transform: uppercase;
        letter-spacing: 1px;
        margin-bottom: 5px;
    }

    .price-display .val {
        font-size: 2.2rem;
        font-weight: 800;
        font-family: var(--font-head);
        color: var(--primary);
    }

    .stat-grid {
        display: flex;
        flex-direction: column;
        gap: 20px;
        margin-bottom: 20px;
    }

    .stat-grid .stat-item {
        background: var(--bg-hover);
        padding: 15px;
        border-radius: 0px;
    }

    .stat-grid .stat-item label {
        display: block;
        font-size: 0.75rem;
        font-weight: 600;
        color: var(--text-dim);
        text-transform: uppercase;
        letter-spacing: 1px;
        margin-bottom: 8px;
    }

    .watt-bar-container {
        width: 100%;
        height: 10px;
        background: #222;
        border-radius: 0px;
        overflow: hidden;
    }

    .watt-bar-fill {
        height: 100%;
        background: linear-gradient(90deg, var(--success), var(--secondary));
        transition: width 0.5s ease, background-color 0.3s;
        border-radius: 0px;
    }

    .checkout-btn {
        width: 100%;
        padding: 16px;
        background: var(--primary);
        color: #fff;
        font-weight: 700;
        font-size: 1rem;
        text-transform: uppercase;
        letter-spacing: 2px;
        border: none;
        cursor: pointer;
        transition: 0.3s;
        border-radius: 0px;
    }

    .checkout-btn:hover {
        background: #ff6a33;
        box-shadow: 0 5px 20px var(--primary-glow);
    }

    /* --- HOMEPAGE / INDEX STYLES --- */

    /* Top Navigation Bar */
    .top-bar {
        position: fixed;
        top: 0;
        left: 240px;
        right: 0;
        height: 70px;
        background: rgba(15, 17, 21, 0.95);
        border-bottom: 1px solid var(--border);
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0 40px;
        z-index: 100;
    }

    .shop-menu-links {
        display: flex;
        gap: 30px;
    }

    .shop-menu-links a {
        font-size: 0.9rem;
        font-weight: 600;
        color: var(--text-dim);
        text-transform: uppercase;
        letter-spacing: 1px;
        transition: 0.3s;
        position: relative;
    }

    .shop-menu-links a:hover {
        color: var(--text-main);
    }

    .shop-menu-links a::after {
        content: '';
        position: absolute;
        bottom: -5px;
        left: 0;
        width: 0;
        height: 2px;
        background: var(--primary);
        transition: 0.3s;
    }

    .shop-menu-links a:hover::after {
        width: 100%;
    }

    .action-btn {
        width: 40px;
        height: 40px;
        background: transparent;
        border: 1px solid var(--border);
        color: var(--text-dim);
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: 0.3s;
        border-radius: 0px;
    }

    .action-btn svg {
        width: 20px;
        height: 20px;
    }

    .action-btn:hover {
        border-color: var(--primary);
        color: var(--primary);
    }

    /* Hero Section */
    .hero-section {
        position: relative;
        height: 80vh;
        min-height: 600px;
        max-height: 900px;
        background: #000;
        overflow: hidden;
        margin-top: 70px;
    }

    .hero-carousel {
        position: absolute;
        inset: 0;
    }

    .hero-slide {
        position: absolute;
        inset: 0;
        background-size: cover;
        background-position: center;
        opacity: 0;
        transition: opacity 1.5s ease;
    }

    .hero-slide.active {
        opacity: 1;
    }

    .hero-slide::after {
        content: '';
        position: absolute;
        inset: 0;
        background: linear-gradient(to right, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.4) 50%, rgba(0, 0, 0, 0.2) 100%);
    }

    .hero-overlay {
        position: absolute;
        inset: 0;
        display: flex;
        align-items: center;
        padding-left: 80px;
        z-index: 10;
    }

    .hero-content {
        max-width: 650px;
    }

    .hero-tag {
        display: inline-block;
        background: var(--primary);
        color: #fff;
        font-size: 0.75rem;
        font-weight: 700;
        padding: 6px 14px;
        letter-spacing: 2px;
        margin-bottom: 20px;
        border-radius: 0px;
    }

    .hero-content h1 {
        font-size: 4rem;
        font-weight: 900;
        line-height: 1.1;
        margin-bottom: 20px;
        font-family: var(--font-head);
        text-transform: uppercase;
        background: linear-gradient(135deg, #fff 0%, var(--text-dim) 100%);
        -webkit-background-clip: text;
        background-clip: text;
        -webkit-text-fill-color: transparent;
    }

    .hero-content p {
        font-size: 1.1rem;
        color: var(--text-dim);
        line-height: 1.7;
        margin-bottom: 30px;
    }

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

    /* CTA Buttons */
    .cta-btn {
        padding: 14px 32px;
        font-size: 0.9rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 2px;
        border: none;
        cursor: pointer;
        transition: all 0.3s;
        border-radius: 0px;
    }

    .cta-btn.primary {
        background: var(--primary);
        color: #fff;
    }

    .cta-btn.primary:hover {
        background: #ff6a33;
        box-shadow: 0 8px 30px var(--primary-glow);
        transform: translateY(-2px);
    }

    .cta-btn.secondary {
        background: transparent;
        color: #fff;
        border: 1px solid rgba(255, 255, 255, 0.3);
    }

    .cta-btn.secondary:hover {
        border-color: #fff;
        background: rgba(255, 255, 255, 0.1);
    }

    /* Page Container */
    .page-container {
        max-width: 1400px;
        margin: 0 auto;
        padding: 40px;
    }

    /* Home Section */
    .home-section {
        margin-bottom: 60px;
    }

    .section-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 30px;
    }

    .section-header h2 {
        font-size: 2.7rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 2px;
        color: var(--text-main);
    }

    .view-all {
        color: var(--text-dim);
        font-weight: 600;
        font-size: 0.9rem;
        transition: 0.3s;
    }

    .view-all:hover {
        color: var(--primary);
    }

    /* Responsive Hero */
    @media (max-width: 1200px) {
        .hero-content h1 {
            font-size: 3rem;
        }

        .hero-overlay {
            padding-left: 40px;
        }
    }

    @media (max-width: 768px) {
        .top-bar {
            left: 0;
            padding: 0 20px;
        }

        .shop-menu-links {
            display: none;
        }

        .hero-section {
            height: 60vh;
            margin-top: 70px;
        }

        .hero-content h1 {
            font-size: 2.2rem;
        }

        .hero-overlay {
            padding: 20px;
            align-items: flex-end;
            padding-bottom: 60px;
        }

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

    /* --- EXPANDING CATEGORY SLIDER --- */
    .expanding-slider {
        display: flex;
        width: 100%;
        height: calc(100vh - 90px);
        /* Fullscreen minus header */
        min-height: 600px;
        overflow: hidden;
        background: #050505;
        margin-top: 0;
    }

    .es-panel {
        position: relative;
        flex: 1;
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        cursor: pointer;
        transition: flex 0.6s cubic-bezier(0.25, 1, 0.5, 1);
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
        border-right: 1px solid rgba(255, 255, 255, 0.05);
    }

    .es-panel:last-child {
        border-right: none;
    }

    .es-panel::before {
        content: '';
        position: absolute;
        inset: 0;
        background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.9));
        transition: background 0.5s;
        z-index: 1;
    }

    /* Default Active State (First one usually) */
    .es-panel.active {
        flex: 3.5;
    }

    /* Interaction Logic: The Magic Trick */
    /* When hovering the container, collapse the default active one */
    .expanding-slider:hover .es-panel.active {
        flex: 1;
    }

    /* Expand the specific hovered one */
    .expanding-slider .es-panel:hover {
        flex: 3.5 !important;
    }

    .es-panel.active::before,
    .expanding-slider .es-panel:hover::before {
        background: linear-gradient(to bottom, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.8));
        /* Lighter overlay on active */
    }

    .es-content {
        position: relative;
        z-index: 2;
        text-align: center;
        transition: all 0.5s ease;
        opacity: 0.6;
        transform: translateY(20px) scale(0.9);
    }

    .es-panel.active .es-content,
    .expanding-slider .es-panel:hover .es-content {
        opacity: 1;
        transform: translateY(0) scale(1);
    }

    .es-title {
        font-family: var(--font-head);
        font-size: 2.5rem;
        font-weight: 900;
        color: #fff;
        text-transform: uppercase;
        letter-spacing: 3px;
        text-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
        white-space: nowrap;
        pointer-events: none;
        margin-bottom: 5px;
    }

    .es-desc {
        font-size: 1rem;
        color: rgba(255, 255, 255, 0.8);
        font-weight: 500;
        letter-spacing: 1px;
        opacity: 0;
        transform: translateY(10px);
        transition: all 0.4s ease 0.1s;
        /* Delay for effect */
    }

    .es-panel.active .es-desc,
    .expanding-slider .es-panel:hover .es-desc {
        opacity: 1;
        transform: translateY(0);
    }

    .es-bar {
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 6px;
        z-index: 3;
        transition: height 0.3s;
    }

    .es-panel.active .es-bar,
    .expanding-slider .es-panel:hover .es-bar {
        height: 10px;
        box-shadow: 0 0 25px currentColor;
        /* Glow effect using the bar's color */
    }

    @media (max-width: 900px) {
        .expanding-slider {
            flex-direction: column;
            height: 100vh;
        }

        .es-panel {
            width: 100%;
            flex: 1;
            border-right: none;
            border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        }

        .es-panel.active {
            flex: 2;
        }

        .expanding-slider:hover .es-panel.active {
            flex: 1;
        }

        .expanding-slider .es-panel:hover {
            flex: 2 !important;
        }

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

    /* --- CORE LAYOUT FRAMEWORK --- */

    .app-container {
        display: flex;
        min-height: 100vh;
    }

    .main-content {
        flex: 1;
        margin-left: 240px;
        min-height: 100vh;
        position: relative;
    }

    /* Sidebar */
    .sidebar {
        position: fixed;
        left: 0;
        top: 0;
        width: 240px;
        height: 100vh;
        background: var(--bg-panel);
        border-right: 1px solid var(--border);
        display: flex;
        flex-direction: column;
        z-index: 200;
        overflow-y: auto;
    }

    .sidebar-header {
        padding: 25px 20px;
        border-bottom: 1px solid var(--border);
    }

    .logo {
        display: flex;
        align-items: center;
        gap: 12px;
    }

    .logo-icon {
        width: 40px;
        height: 40px;
        background: var(--primary);
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: 900;
        font-size: 1.2rem;
        color: #fff;
        border-radius: 0px;
    }

    .logo-text {
        font-family: 'Saira', sans-serif;
        font-weight: 700;
        font-size: 1.3rem;
        color: var(--text-main);
    }

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

    .sidebar-search {
        padding: 20px;
        border-bottom: 1px solid var(--border);
    }

    .search-box {
        display: flex;
        align-items: center;
        gap: 10px;
        background: var(--bg-hover);
        padding: 10px 15px;
        border: 1px solid var(--border);
        border-radius: 0px;
    }

    .search-box input {
        flex: 1;
        background: transparent;
        border: none;
        outline: none;
        color: var(--text-main);
        font-size: 0.9rem;
    }

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

    .search-box svg {
        width: 18px;
        height: 18px;
        color: var(--text-dim);
    }

    .sidebar-nav {
        flex: 1;
        padding: 20px 0;
    }

    .nav-section {
        margin-bottom: 25px;
    }

    .nav-section-title {
        font-size: 0.7rem;
        font-weight: 700;
        color: var(--text-dim);
        text-transform: uppercase;
        letter-spacing: 2px;
        padding: 0 20px;
        margin-bottom: 10px;
    }

    .nav-item {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 12px 20px;
        color: var(--text-dim);
        font-size: 0.9rem;
        font-weight: 500;
        transition: 0.3s;
        cursor: pointer;
        border-left: 3px solid transparent;
    }

    .nav-item:hover {
        background: var(--bg-hover);
        color: var(--text-main);
    }

    .nav-item.active {
        background: var(--bg-hover);
        color: var(--primary);
        border-left-color: var(--primary);
    }

    .nav-item svg {
        width: 20px;
        height: 20px;
    }

    .sidebar-footer {
        padding: 20px;
        border-top: 1px solid var(--border);
    }

    .user-profile {
        display: flex;
        align-items: center;
        gap: 12px;
    }

    .user-avatar {
        width: 40px;
        height: 40px;
        background: linear-gradient(135deg, var(--primary), var(--secondary));
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: 700;
        color: #fff;
        border-radius: 0px;
    }

    .user-info {
        flex: 1;
    }

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

    .user-status {
        font-size: 0.75rem;
        color: var(--success);
    }

    /* Responsive Sidebar */
    @media (max-width: 1100px) {
        .sidebar {
            transform: translateX(-100%);
            transition: transform 0.3s;
        }

        .sidebar.open {
            transform: translateX(0);
        }

        .main-content {
            margin-left: 0;
        }

        .top-bar {
            left: 0;
        }
    }
}

/* === NEW HEADER MENU STYLES === */

.main-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 90px;
    /* Exon stili daha yüksek header */
    background: rgba(15, 17, 21, 0.98);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    z-index: 1000;
    transition: all 0.3s ease;
}

.header-container {
    max-width: 1600px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 50px;
    gap: 40px;
}

/* Header Logo */
.header-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    flex-shrink: 0;
}

.header-logo .logo-icon {
    width: 42px;
    height: 42px;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-head);
    font-weight: 900;
    font-size: 22px;
    color: #fff;
    border-radius: 0px;
    clip-path: polygon(10% 0, 100% 0, 100% 90%, 90% 100%, 0 100%, 0 10%);
    /* Hafif kesik köşe */
}

.header-logo .logo-text {
    font-family: var(--font-head);
    font-size: 1.6rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 1px;
    /* text-transform: uppercase; */
}

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

/* Header Navigation */
.header-nav {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    justify-content: center;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 34px 20px;
    /* Header yüksekliğine göre ortalama */
    color: #fff;
    font-family: var(--font-head);
    font-size: 0.8rem;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 2px;
    /* Geniş harf aralığı */
    transition: all 0.3s;
    position: relative;
    border-radius: 0px;
    opacity: 0.8;
}

.nav-link svg {
    display: none;
    /* İkonları gizle */
}

.nav-link:hover {
    color: #fff;
    background: transparent;
    opacity: 1;
}

.nav-link.active {
    color: #fff;
    background: transparent;
    opacity: 1;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 25px;
    left: 20px;
    width: 20px;
    /* Kısa çizgi efekti */
    height: 3px;
    background: var(--primary);
    transform: none;
}

/* Hover efekti için çizgi animasyonu */
.nav-link::before {
    content: '';
    position: absolute;
    bottom: 25px;
    left: 20px;
    width: 0;
    height: 3px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.nav-link:hover::before {
    width: 20px;
}

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

/* Header Search */
.header-search {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--bg-hover);
    border: 1px solid var(--border);
    padding: 8px 15px;
    min-width: 220px;
    transition: 0.3s;
    border-radius: 0px;
}

.header-search:focus-within {
    border-color: var(--primary);
    background: var(--bg-panel);
}

.header-search svg {
    color: var(--text-dim);
    flex-shrink: 0;
}

.header-search input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-main);
    font-size: 0.85rem;
}

.header-search input::placeholder {
    color: var(--text-dim);
}

/* Header User */
.header-user {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 15px;
    background: var(--bg-hover);
    border: 1px solid var(--border);
    cursor: pointer;
    transition: 0.3s;
    border-radius: 0px;
}

.header-user:hover {
    border-color: var(--text-dim);
}

.header-user .user-avatar {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0px;
}

.header-user .user-avatar svg {
    width: 18px;
    height: 18px;
    color: #fff;
}

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

/* Update Main Content for Header Layout */
.main-content {
    margin-left: 0;
    margin-top: 90px;
    /* Yeni header yüksekliği */
}

/* Hide old sidebar */
.sidebar {
    display: none;
}

/* Update Hero section for new header */
.hero-section {
    margin-top: 0;
}

/* Responsive Header */
@media (max-width: 1200px) {
    .header-nav {
        gap: 0;
    }

    .nav-link {
        padding: 10px 12px;
    }

    .nav-link span {
        display: none;
    }
}

@media (max-width: 900px) {
    .header-container {
        padding: 0 15px;
        gap: 15px;
    }

    .header-search {
        min-width: 150px;
    }

    .header-user .user-name {
        display: none;
    }
}

@media (max-width: 768px) {
    .main-header {
        height: 60px;
    }

    .main-content {
        margin-top: 60px;
    }

    .header-nav {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        top: auto;
        height: 60px;
        background: var(--bg-panel);
        border-top: 1px solid var(--border);
        justify-content: space-around;
        padding: 0;
    }

    .nav-link {
        flex-direction: column;
        gap: 4px;
        padding: 8px;
        font-size: 0.65rem;
    }

    .nav-link svg {
        width: 22px;
        height: 22px;
    }

    .nav-link.active::after {
        display: none;
    }

    .header-search {
        display: none;
    }
}

/* === LAYOUT FIXES FOR HEADER-BASED DESIGN === */

/* Properly center content without sidebar */
.app-container {
    display: block;
    min-height: 100vh;
}

.main-content {
    margin-left: 0 !important;
    margin-top: 70px;
    width: 100%;
}

/* Builder page specific layout */
.builder-layout {
    display: flex;
    gap: 30px;
    max-width: 1600px;
    margin: 0 auto;
    padding: 30px 30px;
}

.builder-main,
.component-stage {
    flex: 1;
    min-width: 0;
}

/* === BUILDER HUD / CONTROL PANEL STYLES === */

.sidebar-hud {
    position: sticky;
    top: 130px;
    width: 340px;
    flex-shrink: 0;
    height: fit-content;
}

.hud-glass {
    background: var(--bg-panel);
    border: 1px solid var(--border);
    padding: 25px;
    position: relative;
    overflow: hidden;
    border-radius: 0px;
}

.hud-glass::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
}

.hud-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.hud-header h2 {
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--text-main);
}

.live-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--danger);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.red-square {
    width: 8px;
    height: 8px;
    background: var(--danger);
    animation: pulse 1.5s infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.3;
    }
}

.price-display {
    text-align: center;
    padding: 20px 0;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

.price-display small {
    display: block;
    font-size: 0.8rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.price-display .val {
    font-size: 2.2rem;
    font-weight: 800;
    font-family: var(--font-head);
    color: var(--primary);
}

.stat-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 20px;
}

.stat-grid .stat-item {
    background: var(--bg-hover);
    padding: 15px;
    border-radius: 0px;
}

.stat-grid .stat-item label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.watt-bar-container {
    width: 100%;
    height: 12px;
    background: #1a1a1a;
    border-radius: 0px;
    overflow: hidden;
    border: 1px solid var(--border);
}

.watt-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--success), var(--secondary));
    transition: width 0.5s ease, background-color 0.3s;
    border-radius: 0px;
}

.checkout-btn {
    width: 100%;
    padding: 16px;
    background: var(--primary);
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    border: none;
    cursor: pointer;
    transition: 0.3s;
    border-radius: 0px;
}

.checkout-btn:hover {
    background: #ff6a33;
    box-shadow: 0 5px 20px var(--primary-glow);
}

/* Builder Action Buttons Row */
.action-buttons-row {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.icon-action-btn {
    width: 45px;
    height: 45px;
    background: var(--bg-panel);
    border: 1px solid var(--border);
    color: var(--text-dim);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.3s;
    border-radius: 0px;
}

.icon-action-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--bg-hover);
}

.icon-action-btn svg {
    width: 20px;
    height: 20px;
}

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

    .sidebar-hud {
        position: relative;
        top: 0;
        width: 100%;
        order: -1;
    }
}

/* === PAGE CONTAINER CENTERING === */
.page-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 40px 30px;
}

/* Content sections should be centered */
.home-section {
    margin-bottom: 60px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.section-header h2 {
    font-size: 2.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-main);
}

.section-header.center-aligned {
    text-align: center;
    flex-direction: column;
    max-width: 800px;
    margin: 0 auto 40px auto;
}

.section-header.center-aligned h2 {
    margin-bottom: 10px;
}

.section-header.center-aligned p {
    color: var(--text-dim);
    font-size: 1.1rem;
}

.view-all {
    color: var(--text-dim);
    font-weight: 600;
    font-size: 0.9rem;
    transition: 0.3s;
}

.view-all:hover {
    color: var(--primary);
}

/* === GAME GRID === */
.game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    width: 100%;
}

.game-card {
    height: 400px;
    position: relative;
    border: 1px solid var(--border);
    background: #000;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    border-radius: 0px;
}

.game-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.game-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0.7;
    transition: 0.5s;
}

.game-card:hover .game-bg {
    opacity: 0.4;
    transform: scale(1.05);
}

.game-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px;
    background: linear-gradient(to top, #000 0%, rgba(0, 0, 0, 0.8) 50%, transparent 100%);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.game-card h3 {
    font-size: 1.5rem;
    font-weight: 800;
    text-transform: uppercase;
    line-height: 1;
    color: #fff;
}

.fps-meter {
    font-family: 'Courier New', monospace;
    color: var(--success);
    font-weight: bold;
    font-size: 1.2rem;
    display: flex;
    align-items: baseline;
    gap: 5px;
}

.fps-meter.high {
    color: var(--secondary);
}

.game-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    padding: 10px 20px;
    margin-top: 10px;
    text-transform: uppercase;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 1px;
    transition: 0.3s;
    cursor: pointer;
    border-radius: 0px;
    width: fit-content;
}

.game-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
}

/* === BUILDS SLIDER === */
.builds-grid-modern {
    display: flex;
    gap: 25px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 20px;
    scrollbar-width: thin;
    scrollbar-color: var(--primary) var(--bg-panel);
}

.modern-build-card {
    background: var(--bg-panel);
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    position: relative;
    transition: 0.3s;
    border-radius: 0px;
    flex: 0 0 350px;
    scroll-snap-align: start;
}

.modern-build-card:hover {
    border-color: var(--text-dim);
    background: var(--bg-hover);
}

.modern-build-card.featured {
    border-color: var(--primary);
    box-shadow: 0 0 30px rgba(255, 77, 0, 0.15);
}

.mb-image {
    height: 220px;
    position: relative;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow: hidden;
}

.mb-image img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    transition: 0.3s;
}

.modern-build-card:hover .mb-image img {
    transform: scale(1.05);
}

.mb-badges {
    position: absolute;
    top: 15px;
    left: 15px;
    display: flex;
    gap: 8px;
}

.badge {
    font-size: 0.7rem;
    font-weight: 700;
    padding: 5px 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 0px;
}

.badge.new {
    background: var(--secondary);
    color: #000;
}

.badge.rgb {
    background: linear-gradient(90deg, #ff0000, #00ff00, #0000ff);
    color: #fff;
}

.badge.hot {
    background: var(--primary);
    color: #fff;
}

.mb-info {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.mb-info h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-main);
}

.mb-specs {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

.mb-specs span {
    color: var(--text-dim);
    font-size: 0.9rem;
}

.mb-specs small {
    display: inline-block;
    width: 45px;
    color: var(--text-dim);
    font-weight: 600;
    opacity: 0.6;
}

.mb-footer {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid var(--border);
    padding-top: 20px;
}

.mb-footer .price {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary);
}

.add-btn {
    width: 45px;
    height: 45px;
    background: var(--primary);
    color: #fff;
    border: none;
    font-size: 1.3rem;
    cursor: pointer;
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0px;
}

.add-btn:hover {
    background: #ff6a33;
    transform: scale(1.05);
}

/* Stats Bar */
.stats-bar {
    display: flex;
    justify-content: center;
    gap: 80px;
    padding: 30px 0;
    margin-bottom: 50px;
    border-bottom: 1px solid var(--border);
}

.stats-bar .stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.stats-bar .stat-num {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
    font-family: var(--font-head);
    line-height: 1;
}

.stats-bar .stat-label {
    font-size: 0.85rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 8px;
}

/* Responsive Game Grid */
@media (max-width: 1200px) {
    .game-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

    .stats-bar {
        flex-direction: column;
        gap: 30px;
    }
}

/* Compatibility Status Styles */
.compat-row {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
}

.compat-icon {
    width: 32px;
    height: 32px;
    /* border-radius: 50%; */
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.compat-icon.success {
    background: rgba(0, 230, 118, 0.15);
    color: var(--success);
    border: 1px solid rgba(0, 230, 118, 0.3);
    box-shadow: 0 0 15px rgba(0, 230, 118, 0.1);
}

.compat-icon.error {
    background: rgba(255, 23, 68, 0.15);
    color: var(--danger);
    border: 1px solid rgba(255, 23, 68, 0.3);
    box-shadow: 0 0 15px rgba(255, 23, 68, 0.1);
}

.compat-text {
    font-weight: 700;
    font-size: 0.95rem;
    color: #fff;
}

.compat-text.error {
    color: var(--danger);
    font-size: 0.85rem;
    line-height: 1.3;
}

/* --- FOOTER STYLES --- */
.main-footer {
    background: var(--bg-panel);
    border-top: 1px solid var(--border);
    padding: 60px 0 0;
    margin-top: auto;
    width: 100%;
}

.footer-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 30px;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
}

.footer-col h3 {
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 20px;
    font-family: var(--font-head);
}

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

.footer-logo .logo-icon {
    width: 32px;
    height: 32px;
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    border-radius: 0px;
}

.footer-logo .logo-text {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-main);
    font-family: var(--font-head);
}

.footer-desc {
    color: var(--text-dim);
    font-size: 0.9rem;
    line-height: 1.6;
    max-width: 300px;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--text-dim);
    font-size: 0.9rem;
    transition: 0.2s;
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-social {
    display: flex;
    gap: 15px;
}

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dim);
    border: 1px solid var(--border);
    transition: 0.2s;
}

.social-link:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.footer-bottom {
    margin-top: 50px;
    padding: 20px 0;
    border-top: 1px solid var(--border);
    text-align: center;
    color: var(--text-dim);
    font-size: 0.85rem;
}

/* --- AUTH PAGES STYLING --- */
.auth-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 200px);
    padding: 60px 20px;
}

.auth-card {
    width: 100%;
    max-width: 450px;
    animation: authFadeIn 0.5s var(--ease-out);
}

@keyframes authFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.auth-input {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border);
    padding: 14px;
    color: #fff;
    outline: none;
    font-family: var(--font-body);
    transition: 0.3s;
    clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
}

.auth-input:focus {
    border-color: var(--primary);
    background: rgba(0, 0, 0, 0.5);
    box-shadow: 0 0 15px rgba(255, 77, 0, 0.1);
}

.auth-form button {
    width: 100%;
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 15px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: 0.2s;
    font-family: var(--font-head);
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 0px;
    margin-top: 10px;
}

.auth-form button:hover {
    background: #ff6a00;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 77, 0, 0.3);
}

/* Admin Panel Styles */
.admin-layout {
    display: grid;
    grid-template-columns: 250px 1fr;
    min-height: 100vh;
}

.admin-sidebar {
    background: var(--bg-panel);
    border-right: 1px solid var(--border);
    padding: 20px;
}

.admin-content {
    padding: 40px;
}

.admin-menu-item {
    display: block;
    padding: 12px;
    color: var(--text-dim);
    text-decoration: none;
    border-radius: 4px;
    margin-bottom: 5px;
    transition: 0.2s;
}

.admin-menu-item:hover,
.admin-menu-item.active {
    background: var(--bg-hover);
    color: #fff;
}

.badge-admin {
    background: var(--primary);
    color: #fff;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.7rem;
}

@media(max-width: 1000px) {
    .footer-container {
        grid-template-columns: 1fr 1fr;
    }
}

@media(max-width: 600px) {
    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-logo,
    .footer-social {
        justify-content: center;
    }

    .footer-desc {
        margin: 0 auto;
    }
}

/* HEADER SLIDER FIXES */
.nav-indicator {
    pointer-events: none;
    /* Make click-through */
    z-index: 1;
    /* Behind text */
}

/* Ensure Nav Items are on top */
.nav-item {
    z-index: 2;
    padding: 12px 30px;
}

/* Menu Container Pill */
.nav-list {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 5px;
    border-radius: 50px;
    position: relative;
    display: flex;
}

/* Override Logo visibility if hidden */
.logo-block {
    display: flex !important;
}

/* Fix search modal styling */
#search-bar-modal {
    position: absolute;
    top: 130px;
    /* Below header */
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.95);
    padding: 30px;
    display: none;
    z-index: 999;
    border-bottom: 2px solid var(--primary);
    justify-content: center;
}

#search-bar-modal.active {
    display: flex;
}

#search-bar-modal input {
    width: 60%;
    font-size: 1.5rem;
    background: transparent;
    border: none;
    border-bottom: 1px solid #555;
    color: #fff;
    padding: 10px;
    outline: none;
    font-family: var(--font-head);
}


/* FORCE SQUARE NAV OVERRIDES */
.nav-list,
.nav-indicator,
.nav-item {
    border-radius: 0 !important;
}

/* Ensure Logo and User Profile also respect squareness if not already */
.logo-square,
.user-profile,
.action-icon {
    border-radius: 0 !important;
}

/* Slower smoother animation override */
.nav-indicator {
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

/* New Action Buttons for Builder */
.builder-actions-row {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 20px;
}

.builder-action-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 15px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    color: var(--text-dim);
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
    font-family: var(--font-head);
    text-transform: uppercase;
    font-size: 0.85rem;
}

.builder-action-btn:hover {
    background: var(--bg-hover);
    color: #fff;
    border-color: var(--primary);
}

.builder-action-btn svg {
    width: 20px;
    height: 20px;
}

/* Link Display Box */
.share-link-box {
    background: var(--bg-panel);
    border: 1px solid var(--primary);
    padding: 20px;
    margin-top: 10px;
    display: none;
    animation: slideDown 0.3s ease-out;
    position: absolute;
    z-index: 100;
    width: 327px;
    top: 100%;
    left: 0;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.share-link-box.active {
    display: block;
}

.share-input-group {
    display: flex;
    gap: 5px;
    margin-top: 10px;
}

.share-input {
    flex: 1;
    background: #000;
    border: 1px solid #333;
    color: #fff;
    padding: 8px;
    font-size: 0.9rem;
    outline: none;
}

.copy-btn {
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 0 15px;
    cursor: pointer;
    font-weight: bold;
}

.close-share {
    position: absolute;
    top: 5px;
    right: 10px;
    background: none;
    border: none;
    color: #888;
    cursor: pointer;
    font-size: 1.2rem;
}

.close-share:hover {
    color: #fff;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

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

/* Toast Notification */
.toast-notification {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--primary);
    color: #fff;
    padding: 12px 30px;
    font-weight: 600;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    border-radius: 4px;
    /* Slight round, or make 0 for square */
    z-index: 9999;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    opacity: 0;
}

.toast-notification.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}


/* Improved Saved Builds Dropdown */
.wishlist-dropdown {
    width: 350px !important;
    max-width: 90vw;
    background: #11141a !important;
    border: 1px solid var(--border) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8) !important;
    border-radius: 4px;
    padding: 15px !important;
}

.saved-build-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background: var(--bg-hover);
    margin-bottom: 8px;
    border-radius: 4px;
    border: 1px solid transparent;
    transition: 0.2s;
    cursor: pointer;
}

.saved-build-item:hover {
    border-color: var(--primary);
    background: #1f232d;
}

.sb-info h5 {
    font-size: 0.95rem;
    color: #fff;
    margin-bottom: 2px;
}

.sb-info span {
    font-size: 0.8rem;
    color: var(--text-dim);
}

.sb-actions {
    display: flex;
    gap: 5px;
}

.sb-btn {
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: 4px;
    color: var(--text-dim);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.sb-btn:hover {
    color: #fff;
    background: var(--primary);
    border-color: var(--primary);
    transform: translateY(-2px);
}

/* Custom Share Box (Popover style) */
#share-box.share-popover {
    position: absolute !important;
    top: 50px !important;
    /* Adjust based on button height */
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    width: 400px !important;
    height: auto !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    z-index: 9999;
    display: none;
    pointer-events: none;
}

#share-box.share-popover.active {
    display: block;
    pointer-events: auto;
    opacity: 1;
}

#share-box.share-popover .modal-content {
    background: #161920;
    border: 1px solid var(--primary);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
    transform: translateY(-10px);
    border-radius: 4px !important;
    position: relative;
    max-width: 100% !important;
}

#share-box.share-popover.active .modal-content {
    transform: translateY(0);
}

/* Triangle Arrow */
#share-box.share-popover .modal-content::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 40px;
    /* Align with button */
    width: 12px;
    height: 12px;
    background: #161920;
    border-left: 1px solid var(--primary);
    border-top: 1px solid var(--primary);
    transform: rotate(45deg);
}

/* Improve Dropdown Styles */
#wishlist-dropdown {
    width: 350px;
    background: #11141a;
    border: 1px solid var(--border);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
    border-radius: 6px;
    padding: 15px;
    position: absolute;
    top: 45px;
    right: 0;
    z-index: 1000;
    display: none;
    opacity: 0;
    transform: translateY(-10px);
    transition: 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}

#wishlist-dropdown.active {
    display: block !important;
    opacity: 1;
    transform: translateY(0);
}

.saved-build-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: rgba(255, 255, 255, 0.03);
    margin-bottom: 8px;
    border-radius: 4px;
    border: 1px solid transparent;
    transition: all 0.2s;
    cursor: pointer;
}

.saved-build-item:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--primary);
    transform: translateX(4px);
}

.sb-info h5 {
    font-size: 0.95rem;
    color: #fff;
    margin-bottom: 3px;
    font-weight: 600;
}

.sb-info span {
    font-size: 0.75rem;
    color: var(--text-dim);
    display: block;
}

.sb-price {
    color: var(--success);
    font-weight: bold;
    font-size: 0.9rem;
    margin-top: 2px;
}

.saved-build-empty {
    text-align: center;
    padding: 30px 10px;
    color: var(--text-dim);
    font-size: 0.9rem;
}

/* Share Box Popover Tweaks */
.share-popover-container {
    position: relative;
    display: inline-block;
}

#share-box.share-popover {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    margin-top: 15px;
    width: 380px;
    z-index: 999;
}

#share-box.share-popover .modal-content {
    background: #1a1e26;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    border-radius: 8px;
    padding: 20px;
    position: relative;
}

/* Arrow for Popover */
#share-box.share-popover .modal-content::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 12px;
    height: 12px;
    background: #1a1e26;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
}

/* Builder Popup Styles */
#builder-popup {
    position: fixed;
    background: var(--bg-panel);
    border: 1px solid var(--primary);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    z-index: 9999;
    width: 320px;
    border-radius: 0px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s, transform 0.2s;
    transform: translateY(10px);
    display: flex;
    flex-direction: column;
}

#builder-popup.active {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

#builder-popup-header {
    background: rgba(255, 255, 255, 0.05);
    padding: 12px 15px;
    border-bottom: 1px solid var(--border);
}

#builder-popup-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: #fff;
    font-family: var(--font-head);
    text-transform: uppercase;
    letter-spacing: 1px;
}

#builder-popup-content {
    padding: 0;
    max-height: 300px;
    overflow-y: auto;
}

.sp-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    border-bottom: 1px solid var(--border);
    transition: 0.2s;
}

.sp-item:last-child {
    border-bottom: none;
}

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

.sp-store {
    color: var(--text-dim);
    font-size: 0.9rem;
    font-weight: 500;
}

.sp-price {
    color: #fff;
    font-weight: 700;
    font-family: var(--font-head);
}

.sp-spec-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 15px;
    border-bottom: 1px solid var(--border);
    font-size: 0.85rem;
}

.sp-spec-label {
    color: var(--text-dim);
}

.sp-spec-val {
    color: #fff;
    font-weight: 600;
}

/* Global Status Colors Fix */
.status-ok {
    color: var(--success) !important;
}

.status-warn {
    color: var(--warning) !important;
}

.status-crit {
    color: var(--danger) !important;
}

/* --- NEW GAME HERO SECTION --- */
.game-hero {
    position: relative;
    height: 90vh;
    min-height: 700px;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.gh-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(15, 17, 21, 0.3) 0%, rgba(15, 17, 21, 0.9) 80%, var(--bg-dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
}

.gh-content {
    max-width: 900px;
    animation: slideUp 1s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.gh-sub {
    color: var(--primary);
    font-weight: 800;
    letter-spacing: 3px;
    font-size: 1rem;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.gh-title {
    font-family: var(--font-head);
    font-size: 4.5rem;
    line-height: 1.1;
    color: #fff;
    margin-bottom: 25px;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.gh-desc {
    font-size: 1.1rem;
    color: #ccc;
    line-height: 1.8;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.gh-scroll {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: var(--text-dim);
    cursor: pointer;
    transition: 0.3s;
    animation: bounce 2s infinite;
}

.gh-scroll:hover {
    color: var(--primary);
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-10px);
    }

    60% {
        transform: translateY(-5px);
    }
}

/* --- GAME CATEGORY SELECTOR --- */
.game-cat-section {
    padding: 40px 0 80px 0;
    background: var(--bg-dark);
}

.cat-tabs {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.cat-btn {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-dim);
    padding: 12px 30px;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 0px;
}

.cat-btn:hover,
.cat-btn.active {
    border-color: var(--primary);
    background: rgba(255, 77, 0, 0.1);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 30px;
}

.game-entry {
    height: 400px;
    position: relative;
    border: 1px solid var(--border);
    overflow: hidden;
    cursor: pointer;
    transition: 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    opacity: 0;
    animation: fadeInGame 0.6s forwards;
}

@keyframes fadeInGame {
    to {
        opacity: 1;
    }
}

.game-entry:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--primary);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
    z-index: 2;
}

.game-entry-bg {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: 0.5s;
}

.game-entry:hover .game-entry-bg {
    transform: scale(1.1);
    filter: brightness(1.1);
}

.game-entry-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px;
    background: linear-gradient(to top, #000 0%, transparent 100%);
    transform: translateY(20px);
    transition: 0.3s;
}

.game-entry:hover .game-entry-overlay {
    transform: translateY(0);
}

.game-entry-title {
    font-family: var(--font-head);
    font-size: 1.8rem;
    font-weight: 800;
    color: #fff;
    text-transform: uppercase;
    line-height: 1;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}



/* --- GAME LOGO GRID SECTION --- */
.game-logo-section {
    padding: 80px 20px;
    background: var(--bg-dark);
    text-align: center;
}

.logo-header {
    margin-bottom: 50px;
}

.logo-header h2 {
    font-family: var(--font-head);
    font-size: 2.5rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.logo-header p {
    color: var(--text-dim);
    font-size: 1rem;
}

.logo-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto 50px auto;
    padding: 0 20px;
}

.logo-item {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 120px;
    background: transparent;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    /* Cute bounce effect */
}

.logo-item img {
    max-width: 100%;
    max-height: 80px;
    object-fit: contain;
    transition: all 0.3s ease;
    opacity: 0.8;
    /* Slight dim by default */
}

.logo-item:hover {
    transform: translateY(-10px);
    /* Move up animation - smoother */
}

.logo-item:hover img {
    opacity: 1;
    /* Removed scale and filter manipulation */
}

.view-all-btn {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-main);
    padding: 12px 40px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 4px;
    /* Slight roundness as per screenshot roughly */
}

.view-all-btn:hover {
    border-color: var(--primary);
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

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

/* --- PREBUILDS PAGE STYLES --- */
.prebuilds-hero {
    text-align: center;
    padding: 60px 20px 40px 20px;
    background: linear-gradient(180deg, rgba(255, 77, 0, 0.05) 0%, rgba(0, 0, 0, 0) 100%);
    margin-bottom: 40px;
    border-bottom: 1px solid var(--border);
}

.prebuilds-hero h1 {
    font-family: var(--font-head);
    font-size: 3rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 10px;
}

.prebuilds-hero p {
    color: var(--text-dim);
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.nvidia-filter-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.nv-logo {
    height: 40px;
    object-fit: contain;
}

.gpu-filters {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.gpu-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    color: white;
    padding: 10px 25px;
    /* border-radius: 4px; */
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.95rem;
}

.gpu-btn:hover,
.gpu-btn.active {
    background: #76b900;
    /* Nvidia Greenish */
    color: #000;
    border-color: #76b900;
    font-weight: 700;
}

.month-section {
    margin-bottom: 60px;
}

.month-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}

.month-header h3 {
    font-family: var(--font-head);
    font-size: 1.5rem;
    color: #fff;
    white-space: nowrap;
}

.month-line {
    flex: 1;
    height: 1px;
    background: var(--border);
}

/* NEW PREBUILD CARD DESIGN */
.pb-card {
    background: var(--bg-panel);
    border: 1px solid var(--border);
    /* border-radius: 8px; */
    overflow: hidden;
    transition: 0.3s;
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
}

.pb-card:hover {
    transform: translateY(-5px);
    border-color: var(--cat-color, var(--primary));
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5), 0 0 15px var(--primary-glow);
}

/* Sticker Positioning */
.pb-cpu-sticker {
    position: absolute;
    top: 15px;
    left: 15px;
    width: 45px;
    height: auto;
    z-index: 10;
    pointer-events: none;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.pb-gpu-sticker {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 110px;
    height: auto;
    z-index: 10;
    pointer-events: none;
}

.pb-img-area {
    height: 175px;
    background: #fff !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pb-img-area img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: 0.3s;
}

.pb-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.pb-title {
    font-size: 1.1rem;
    color: #fff;
    margin-bottom: 15px;
    font-family: var(--font-head);
}

.pb-specs-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
    flex: 1;
}

.pb-spec-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.7rem;
    color: var(--text-dim);
}

.pb-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
    opacity: 0.7;
}

.pb-details-link {
    color: var(--primary);
    font-size: 0.9rem;
    text-decoration: none;
    margin-bottom: 20px;
    display: inline-block;
    transition: 0.2s;
}

.pb-details-link:hover {
    text-decoration: underline;
}

.pb-footer {
    border-top: 1px solid var(--border);
    padding-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.pb-price {
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
    font-family: var(--font-head);
}

.pb-buy-btn {
    width: 100%;
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 12px;
    font-weight: 700;
    font-size: 0.95rem;
    border-radius: 4px;
    cursor: pointer;
    transition: 0.2s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.pb-buy-btn:hover {
    background: #ff6a00;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 77, 0, 0.3);
}

/* --- NEW PREBUILD CARD STYLE IMPROVEMENTS --- */

/* Narrower grid */
.pb-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

/* Updated Card Structure */
.pb-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    /* Keep other existing pb-card stles */
}

/* Allow content area to push button to bottom */
.pb-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding-bottom: 20px;
    /* Space inside */
}

/* Specs list pushes price down */
.pb-specs-list {
    margin-bottom: auto;
}

/* Price area at the bottom of content */
.pb-price-area {
    margin-top: 20px;
    text-align: center;
    border-top: 1px solid var(--border);
    padding-top: 15px;
}

.pb-price {
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
}

/* Button flush at bottom */
.pb-buy-btn {
    width: 100%;
    border-radius: 0;
    margin: 0;
    padding: 15px;
    font-weight: 800;
    font-size: 1rem;
    background: var(--primary);
    color: #fff;
    border: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: 0.2s;
    /* Flattened look implies straight edges which radius:0 does */
}

.pb-buy-btn:hover {
    background: #ff6a00;
    /* Lighter orange */
    transform: none;
    /* Remove lift effect since it's a footer button */
    box-shadow: inset 0 -4px 0 rgba(0, 0, 0, 0.2);
}

/* GeForce Sticker Style */
.pb-gpu-sticker {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 115px;
    /* Adjust size as needed */
    height: auto;
    z-index: 10;
    pointer-events: none;
    /* Let clicks pass through if covered */
}

/* --- SLIDER STYLES --- */
.pb-slider-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
    padding: 0 10px;
}

.pb-slider {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    gap: 25px;
    padding: 10px 5px 20px 5px;
    /* Bottom padding for shadow */
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE/Edge */
    width: 100%;
}

.pb-slider::-webkit-scrollbar {
    display: none;
}

.pb-slide-item {
    flex: 0 0 220px;
    /* Fixed width for slider items */
    scroll-snap-align: start;
}

.slider-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-main);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    transition: 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    z-index: 20;
}

.slider-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}


/* --- SLIDER CONTROLS UPDATE --- */

/* Reset wrapper padding/gap */
.pb-slider-wrapper {
    display: block;
    padding: 0;
    gap: 0;
}

/* Controls container bottom right */
.slider-controls {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    padding: 15px 10px 0 0;
}

/* Ensure slide items stretch */
.pb-slide-item {
    height: auto;
    /* Flex children stretch by default if align-items is stretch */
    display: flex;
    flex-direction: column;
}


/* --- FULL BLEED RIGHT SLIDER --- */
.page-container {
    overflow-x: visible !important;
    /* Allow slider breakout */
}

.pb-slider-wrapper {
    /* Break out of container on the right side only */
    margin-right: calc(50% - 50vw);
    width: auto;
    /* Ensure it doesn't cause horizontal page scrollbar */
    max-width: 100vw;
}

.pb-slider {
    /* Horizontal Slider Logic */
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    gap: 20px;
    padding-bottom: 20px;
    /* Space for shadow */
    padding-right: 50px;
    scrollbar-width: none;
    /* Firefox */
}

.pb-slider::-webkit-scrollbar {
    display: none;
}

.pb-slide-item {
    min-width: 240px;
    max-width: 260px;
    flex: 0 0 auto;
}


/* Global Scroll Handling */
body {
    overflow-x: hidden;
    /* Prevent horizontal page scroll from slider breakout */
}

/* Ensure controls align with content width */
.slider-controls {
    max-width: 1400px;
    /* Match page container */
    margin-left: auto;
    /* Push to right */
    padding-right: 0;
    /* Align with right edge of content */
    margin-top: 10px;
}

/* Adjust slider wrapper breakout */
.pb-slider-wrapper {
    margin-right: calc(50% - 50vw);
    width: auto;
    position: relative;
    right: 0;
}


/* (Deleted Builder Layout) */

/* (Deleted Remainder of Builder Layout) */

/* (Reverted Mobile Friendly) */
/* --- MOBILE BUILDER HUD (Bottom Sheet) --- */
@media (max-width: 900px) {

    /* 1. Layout Adjustments */
    .builder-layout {
        flex-direction: column;
        padding-bottom: 100px;
        /* Space for bottom HUD */
    }

    .component-stage {
        width: 100%;
    }

    /* 2. Sticky Bottom HUD Container */
    .sidebar-hud {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        height: auto;
        /* Let content dictate height */
        top: auto !important;
        /* Force bottom */
        z-index: 9999;
        pointer-events: none;
        /* Let clicks pass through empty areas */
    }

    /* 3. The Glass Panel */
    .hud-glass {
        pointer-events: auto;
        /* Catch clicks */
        background: #1a1a1a;
        border-top: 1px solid rgba(255, 255, 255, 0.15);
        border-radius: 20px 20px 0 0;
        box-shadow: 0 -5px 30px rgba(0, 0, 0, 0.8);

        /* 3-Column Grid Layout */
        display: grid;
        grid-template-columns: minmax(0, 1fr) 1.6fr minmax(0, 1fr);
        /* 1.6fr for center - balanced */
        /* Left | Center | Right */
        gap: 2px;
        align-items: center;

        padding: 15px 0 5px 0;
        /* Reduced top padding to move items up */
        height: 85px;
        max-height: 85px;
        overflow: hidden;
        transition: height 0.3s ease-out, max-height 0.3s ease-out;
        position: relative;
    }

    /* Expanded State */
    .sidebar-hud.expanded .hud-glass {
        height: auto;
        max-height: 80vh;
        display: flex;
        flex-direction: column;
        overflow-y: auto;
        padding: 25px 0;
    }

    /* 4. RGB Line */
    .hud-glass::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 3px;
        background: linear-gradient(90deg, #ff0000, #ff7f00, #ffff00, #00ff00, #0000ff, #4b0082, #8f00ff);
        background-size: 200% auto;
        animation: rgb-slide 3s linear infinite;
        z-index: 10;
    }

    @keyframes rgb-slide {
        0% {
            background-position: 0% 50%;
        }

        100% {
            background-position: 100% 50%;
        }
    }

    /* 5. Swipe Handle */
    .hud-glass::after {
        content: '';
        position: absolute;
        top: 8px;
        /* Slightly higher */
        left: 50%;
        transform: translateX(-50%);
        width: 40px;
        height: 4px;
        background: rgba(255, 255, 255, 0.4);
        border-radius: 10px;
        z-index: 10;
    }

    /* 6. Header (Title + Badge) - Left */
    .hud-header {
        grid-column: 1;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: flex-start;
        height: 100%;
        border: none;
        padding: 0;
        margin: 0;
        transform: translateY(-5px);
        padding-left: 10px;
        /* Move text up specifically */
    }

    .hud-header h2 {
        font-size: 0.7rem;
        color: #ddd;
        margin: 0 0 4px 0;
        font-weight: 600;
        letter-spacing: 0.5px;
        white-space: nowrap;
    }

    .live-badge {
        display: inline-flex !important;
        background: rgba(220, 53, 69, 0.2);
        color: #ff5c5c;
        font-size: 0.65rem;
        padding: 3px 6px;
        border-radius: 3px;
        border: 1px solid rgba(220, 53, 69, 0.4);
        font-weight: 700;
        white-space: nowrap;
    }

    /* Center Stats (Collapsed) */
    .stat-grid {
        grid-column: 2;
        display: flex !important;
        flex-direction: column;
        align-items: stretch;
        /* Full width */
        justify-content: center;
        gap: 3px;
        margin: 0 !important;
        opacity: 1 !important;
        transform: translateY(-5px);
        width: 100%;
        padding: 0;
    }

    /* Unified Style for All 3 Items in Collapsed */
    .sidebar-hud:not(.expanded) .stat-item {
        text-align: center;
        color: #ddd;
        font-size: 0.65rem;
        line-height: 1;
        margin: 0;
        padding: 4px 6px;
        width: 100%;
        /* Stretch */
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        white-space: nowrap;
        background: rgba(255, 255, 255, 0.06);
        /* Visible card bg */
        border: 1px solid rgba(255, 255, 255, 0.08);
        /* Card border */
        border-radius: 4px;
        height: auto;
        min-height: 22px;
    }

    /* Item 1: Power */
    .sidebar-hud:not(.expanded) .watt-bar-container {
        display: block !important;
        width: 100% !important;
        height: 3px;
        background: rgba(255, 255, 255, 0.15);
        margin-top: 2px;
        border-radius: 2px;
    }

    /* (Junk removed) */

    .sidebar-hud:not(.expanded) #psu-status-text {
        display: none;
    }

    .sidebar-hud:not(.expanded) .stat-item:first-child #total-tdp::after {
        content: ' Güç Tüketimi';
        color: #aaa;
    }

    /* Item 2: Compat - Ensure it takes space */
    .sidebar-hud:not(.expanded) #compat-status {
        min-height: 0;
        margin: 0;
    }

    .sidebar-hud:not(.expanded) #compat-status span {
        font-size: 0.65rem !important;
        display: block;
    }

    /* Item 3: FPS (Oyun Performans) - Reveal It */
    .sidebar-hud:not(.expanded) .stat-item:nth-child(3) {
        display: flex;
        /* Show it! */
    }

    /* Hide the complex FPS bar/details in collapsed, just show summary if possible or placeholder? */
    /* The HTML structure for FPS is complex. Let's just show text "Oyun Performansı" if we can't show live data easily without breaking layout */
    /* Or simple "FPS: Yüksek" override via CSS content? No, can't easily read JS value in CSS. */
    /* Let's just keep the container and hide children except main label? */
    .sidebar-hud:not(.expanded) .stat-item:nth-child(3) * {
        display: none;
    }

    .sidebar-hud:not(.expanded) .stat-item:nth-child(3)::after {
        content: 'Oyun Performansı';
        /* Placeholder text since actual data is complex HTML */
        display: block;
        color: var(--primary);
    }

    /* Wait, user wants "Oyun Performans" visible. */

    /* Hide Labels generally */
    .sidebar-hud:not(.expanded) .stat-item label {
        display: none;
    }

    /* 7. Price Display - Right */
    .price-display {
        grid-column: 3;
        text-align: right;
        margin: 0;
        display: block;
        position: relative;
        transform: translateY(-5px);
        white-space: nowrap;
        justify-self: end;
        padding-right: 5px;
        z-index: 50;
    }

    .price-display small {
        display: none;
    }

    .price-display .val {
        font-size: 1.2rem;
        color: #fff;
        font-weight: 800;
    }


    /* (Duplicate removed) */

    /* 8. Hide Extras in Collapsed */
    .stat-grid,
    .checkout-btn {
        display: none;
        opacity: 0;
    }

    /* 9. Expanded Logic */
    .sidebar-hud.expanded .hud-header {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        padding-bottom: 15px;
        margin-bottom: 20px;
        padding-left: 20px;
        padding-right: 20px;
        width: 100%;
        height: auto;
    }

    .sidebar-hud.expanded .hud-header h2 {
        font-size: 1.2rem;
        color: #fff;
        margin: 0;
    }

    .sidebar-hud.expanded .price-display {
        order: 2;
        width: 100%;
        margin-bottom: 20px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        padding-bottom: 15px;
        padding-left: 20px;
        padding-right: 20px;
    }

    .sidebar-hud.expanded .price-display small {
        display: block;
        font-size: 1rem;
        color: #aaa;
    }

    .sidebar-hud.expanded .price-display .val {
        font-size: 1.5rem;
    }

    .sidebar-hud.expanded .stat-grid {
        display: flex;
        opacity: 1;
        order: 3;
    }

    .sidebar-hud.expanded .checkout-btn {
        display: block;
        opacity: 1;
        order: 4;
        margin-top: 20px;
        width: calc(100% - 40px);
        margin-left: 20px;
    }

    /* Backdrop - Key Fix: Only display block when expanded */
    .sidebar-hud::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.8);
        z-index: -1;
        display: none;
        /* Hidden by default */
        opacity: 0;
        transition: opacity 0.3s;
    }

    .sidebar-hud.expanded::before {
        display: block;
        opacity: 1;
        pointer-events: auto;
    }

    /* --- BUILD CARDS RESPONSIVE --- */
    /* Hide desktop table header */
    .build-cards-header {
        display: none;
    }

    /* Card Container */
    .gx-card {
        display: grid;
        grid-template-columns: 60px 1fr auto;
        /* img | content | right-side */
        grid-template-rows: auto auto;
        /* price | actions */
        grid-template-areas:
            "img content price"
            "img content action";
        gap: 5px 15px;
        /* Vertical gap small, Horizontal gap wide */
        padding: 15px 15px 15px 20px;
        /* Left padding for status bar */
        align-items: center;
        position: relative;
        min-height: 80px;
        background: #111;
        /* Ensure dark background */
        border-bottom: 1px solid #222;
        margin-bottom: 0px;
    }

    /* Status Bar (Left Strip) */
    /* Status Bar (Left Strip) */
    .gx-status-bar {
        position: absolute;
        left: 0;
        top: 0;
        bottom: 0;
        width: 8px !important;
        /* Override desktop width */
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        overflow: hidden;
        /* Hide anything else */
    }

    .gx-card.filled .gx-status-bar {
        width: 10px !important;
    }

    .gx-status-bar svg {
        width: 10px !important;
        height: 10px !important;
        margin: 1px 0;
    }

    /* 1. Image */
    .gx-card-img {
        grid-area: img;
        width: 50px;
        height: 50px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .gx-card-img img {
        max-width: 100%;
        max-height: 100%;
        object-fit: contain;
    }

    .gx-card-img svg {
        width: 32px;
        height: 32px;
    }

    /* 2. Content (Label + Title) */
    .comp-select-btn {
        grid-area: content;
        position: static !important;
        transform: none !important;
        display: flex;
        flex-direction: column;
        justify-content: center;
        text-align: left;
        pointer-events: none;
        /* Let clicks pass to card, but text selects okay? js handles parent click */
    }

    /* Re-enable pointer events for clickable text divs inside */
    .comp-select-btn>div {
        pointer-events: auto;
    }

    /* Font tweaks for mobile */
    .comp-select-btn div:first-child {
        font-size: 0.75rem !important;
        opacity: 0.7;
    }

    /* Label */
    /* Title */
    .comp-select-btn div:nth-child(2) {
        font-size: 0.8rem !important;
        line-height: 1.3;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    /* Specs (3rd Child) */
    .comp-select-btn div:nth-child(3) {
        font-size: 0.65rem !important;
        line-height: 1.2;
        opacity: 0.8;
    }

    /* Title */

    /* 3. Store (Hidden) */
    .comp-store {
        display: none;
    }

    /* 4. Price */
    .comp-price {
        grid-area: price;
        justify-self: end;
        align-self: end;
        /* Bottom of top row */
        font-size: 0.95rem;
        font-weight: 700;
        color: var(--primary);
        margin-bottom: 2px;
    }

    /* 5. Actions (Add/Remove or Arrow) */
    /* Target the last div which is actions */
    .gx-card>div:last-child {
        grid-area: action;
        justify-self: end;
        align-self: start;
        /* Top of bottom row */
        display: flex;
        align-items: center;
        gap: 10px;
    }

    /* Make arrow bigger if it's the simple arrow */
    .action-btn svg {
        width: 20px;
        height: 20px;
        stroke-width: 2px;
    }

    /* Adjust page overflow */
    body,
    html {
        overflow-x: hidden;
        max-width: 100vw;
    }

    .stage-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

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

/* COMMUNITY BUILD CARD STYLES */
.user-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.user-avatar {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6rem;
    font-weight: 700;
}

.user-name {
    font-size: 0.75rem;
    color: var(--text-dim);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.build-date {
    margin-left: auto;
    font-size: 0.7rem;
    color: var(--text-dim);
}

.vote-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.2);
    z-index: 5;
}

.vote-badge:hover {
    background: var(--primary);
    border-color: var(--primary);
}

.price-tag {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
    margin-top: auto;
    text-align: right;
}


/* --- Auth Pages (Login / Register) --- */
.auth-page {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 140px);
    padding: 40px 20px;
}

.auth-card {
    width: 100%;
    max-width: 450px;
    margin: 0 auto;
    background: #111113;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
    position: relative;
}

@media (max-width: 768px) {
    .auth-page {
        padding: 20px 15px;
        align-items: flex-start;
        margin-top: 20px;
    }

    .auth-card {
        padding: 25px !important;
    }
}

/* --- Auth Divider ("veya") --- */
.auth-divider {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 22px 0;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.12), transparent);
}

.auth-divider span {
    color: #666;
    font-size: 0.8rem;
    font-family: var(--font-body);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
}

/* --- Steam Login Button --- */
.steam-login-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 13px 20px;
    background: #171a21;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #c7d5e0;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.steam-login-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(102, 192, 244, 0.08), transparent 60%);
    opacity: 0;
    transition: opacity 0.3s;
}

.steam-login-btn:hover {
    background: #1b2838;
    border-color: #66c0f4;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 192, 244, 0.2), 0 0 0 1px rgba(102, 192, 244, 0.1);
}

.steam-login-btn:hover::before {
    opacity: 1;
}

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

.steam-login-btn svg {
    flex-shrink: 0;
    filter: drop-shadow(0 0 4px rgba(102, 192, 244, 0.3));
    transition: filter 0.3s;
}

.steam-login-btn:hover svg {
    filter: drop-shadow(0 0 8px rgba(102, 192, 244, 0.6));
}

/* --- Global Toast Notifications --- */
#toast-container {
    position: fixed;
    top: 90px;
    right: 20px;
    z-index: 99999;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.toast {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 16px 24px;
    border-radius: 12px;
    background: rgba(18, 18, 20, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.5);
    color: #fff;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 500;
    pointer-events: auto;
    transform: translateX(100px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    min-width: 320px;
    max-width: 450px;
}

.toast.visible {
    transform: translateX(0);
    opacity: 1;
}

.toast.success {
    border-left: 4px solid #00E676;
}

.toast.error {
    border-left: 4px solid #FF1744;
}

.toast.info {
    border-left: 4px solid #2979FF;
}

.toast-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    flex-shrink: 0;
}

.toast.success .toast-icon {
    color: #00E676;
    background: rgba(0, 230, 118, 0.1);
}

.toast.error .toast-icon {
    color: #FF1744;
    background: rgba(255, 23, 68, 0.1);
}

.toast.info .toast-icon {
    color: #2979FF;
    background: rgba(41, 121, 255, 0.1);
}

/* --- Shared Section Layout (Consistent Spacing for Dark/Light) --- */
.monthly-builds-section,
.discount-section,
.community-builds-slider,
.game-logo-section {
    padding-top: 90px;
    padding-bottom: 90px;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

/* --- Light Theme Overrides (Applied via data-theme attribute) --- */

/* White Background Sections ONLY in Light Mode */
body[data-theme="light"] .monthly-builds-section,
body[data-theme="light"] .discount-section,
body[data-theme="light"] .community-builds-slider,
body[data-theme="light"] .game-logo-section {
    background-color: #ffffff !important;
    border-bottom: 1px solid #eee;
}

/* Light Mode Text Colors (Black) - Section Headers */
body[data-theme="light"] .monthly-builds-section h2 span[style*="#fff"],
body[data-theme="light"] .discount-section h2 span[style*="#fff"],
body[data-theme="light"] .community-builds-slider h2 span[style*="#fff"],
body[data-theme="light"] .game-logo-section h2,
body[data-theme="light"] .game-logo-section h2 span {
    color: #000000 !important;
}

/* Light Mode Descriptions (Dark Gray) */
body[data-theme="light"] .monthly-builds-section p,
body[data-theme="light"] .discount-section p,
body[data-theme="light"] .community-builds-slider p,
body[data-theme="light"] .game-logo-section p {
    color: #444444 !important;
}

/* --- Product/Build Card Text in Light Mode --- */
body[data-theme="light"] .pb-title,
body[data-theme="light"] .pb-title a {
    color: #000000 !important;
}

body[data-theme="light"] .pb-price,
body[data-theme="light"] .price-tag {
    color: #000000 !important;
}

body[data-theme="light"] .user-name,
body[data-theme="light"] .pb-spec-item span,
body[data-theme="light"] .pb-spec-item {
    color: #333333 !important;
}

/* Fix inline white styles in cards */
body[data-theme="light"] .pb-card *[style*="color:#fff"],
body[data-theme="light"] .pb-card *[style*="color: #fff"] {
    color: #000 !important;
}

/* Invert icons in cards if needed */
body[data-theme="light"] .pb-icon {
    filter: invert(1);
    opacity: 0.7;
}

/* Invert specific white logos to black */
body[data-theme="light"] .logo-item img[src*="cod-logo"],
body[data-theme="light"] .logo-item img[src*="fortnite-logo"],
body[data-theme="light"] .logo-item img[src*="apex-logo"],
body[data-theme="light"] .logo-item img[src*="csgo-logo"] {
    filter: invert(1);
    opacity: 0.85;
}

/* Loading Spinners */
body[data-theme="light"] .loading-spinner {
    color: #333 !important;
}

/* ============================================================
   INDEX PAGE STYLES (extracted from inline <style> blocks)
   ============================================================ */

/* --- Ambient Glow Overlay --- */
#ambient-glow {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    opacity: 0;
    transition: opacity 0.8s ease, background-color 1s ease;
    background-color: rgba(255, 77, 0, 0.28);
    -webkit-mask-image: radial-gradient(ellipse at 50% 0%, black 0%, transparent 65%);
    mask-image: radial-gradient(ellipse at 50% 0%, black 0%, transparent 65%);
}

/* --- Hero Slider Section --- */
.main-hero-slider {
    position: relative;
    width: 100%;
    min-height: 600px;
    background: #000;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* Slide 1 Background */
#slide1-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 1;
    transition: opacity 0.8s ease;
    pointer-events: none;
    background: #161920;
    overflow: hidden;
}

/* Space Star Animations */
@keyframes animStar {
    from {
        transform: translateY(0px);
    }

    to {
        transform: translateY(-2000px);
    }
}

#stars {
    width: 1px;
    height: 1px;
    background: transparent;
    animation: animStar 50s linear infinite;
}

#stars:after {
    content: " ";
    position: absolute;
    top: 2000px;
    width: 1px;
    height: 1px;
    background: transparent;
}

#stars2 {
    width: 2px;
    height: 2px;
    background: transparent;
    animation: animStar 100s linear infinite;
}

#stars2:after {
    content: " ";
    position: absolute;
    top: 2000px;
    width: 2px;
    height: 2px;
    background: transparent;
}

#stars3 {
    width: 3px;
    height: 3px;
    background: transparent;
    animation: animStar 150s linear infinite;
}

#stars3:after {
    content: " ";
    position: absolute;
    top: 2000px;
    width: 3px;
    height: 3px;
    background: transparent;
}

/* Nebula Glow */
.nebula-glow {
    position: absolute;
    width: 800px;
    height: 800px;
    filter: blur(80px);
    opacity: 0.6;
    animation: floatBlob1 20s infinite alternate ease-in-out;
}

.nebula-glow-1 {
    top: 20%;
    left: 20%;
    background: radial-gradient(circle, rgba(255, 77, 0, 0.12) 0%, transparent 60%);
}

.nebula-glow-2 {
    bottom: 10%;
    right: 10%;
    background: radial-gradient(circle, rgba(0, 150, 255, 0.08) 0%, transparent 60%);
    animation-delay: -5s;
}

/* Top Left decorative bars */
.hero-deco-bar-white {
    position: absolute;
    top: 0;
    left: -10px;
    width: 80px;
    height: 30px;
    background: #ffffffd8;
    transform: skewX(-30deg);
    border-bottom-right-radius: 4px;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

.hero-deco-bar-primary-top {
    position: absolute;
    top: 0;
    left: 85px;
    width: 100px;
    height: 30px;
    background: var(--primary, #FF4D00);
    transform: skewX(-30deg);
    border-bottom-left-radius: 4px;
    border-bottom-right-radius: 4px;
    box-shadow: 0 0 15px rgba(255, 77, 0, 0.4);
}

/* Bottom Right decorative bars */
.hero-deco-bar-bottom-1 {
    position: absolute;
    bottom: 0;
    right: 200px;
    width: 60px;
    height: 35px;
    background: var(--primary, #FF4D00);
    transform: skewX(-30deg);
    border-top-left-radius: 4px;
    border-top-right-radius: 4px;
    box-shadow: 0 0 15px rgba(255, 77, 0, 0.4);
}

.hero-deco-bar-bottom-2 {
    position: absolute;
    bottom: 0;
    right: 120px;
    width: 60px;
    height: 35px;
    background: var(--primary, #FF4D00);
    transform: skewX(-30deg);
    border-top-left-radius: 4px;
    border-top-right-radius: 4px;
    box-shadow: 0 0 15px rgba(255, 77, 0, 0.4);
}

.hero-deco-bar-bottom-3 {
    position: absolute;
    bottom: 0;
    right: -20px;
    width: 120px;
    height: 35px;
    background: var(--primary, #FF4D00);
    transform: skewX(-30deg);
    border-top-left-radius: 4px;
    box-shadow: 0 0 15px rgba(255, 77, 0, 0.4);
}

/* Grid Patterns */
.hero-grid-pattern {
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.03) 0px, rgba(255, 255, 255, 0.03) 1px, transparent 1px, transparent 30px);
    pointer-events: none;
    mask-image: linear-gradient(to bottom, transparent, black 20%, black 80%, transparent);
}

.hero-square-pattern {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
    mask-image: linear-gradient(to bottom, transparent, black 20%, black 80%, transparent);
}

/* Shimmer Effect */
.shimmer-effect {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.04) 50%, transparent 100%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

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

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

@keyframes floatBlob1 {
    0% {
        transform: translate(0, 0) scale(1);
        opacity: 0.8;
    }

    50% {
        transform: translate(100px, 50px) scale(1.2);
        opacity: 1;
    }

    100% {
        transform: translate(-50px, 100px) scale(0.9);
        opacity: 0.8;
    }
}

@keyframes floatBlob2 {
    0% {
        transform: translate(0, 0) scale(1);
        opacity: 0.8;
    }

    50% {
        transform: translate(-100px, -80px) scale(1.3);
        opacity: 1;
    }

    100% {
        transform: translate(80px, -120px) scale(0.9);
        opacity: 0.8;
    }
}

@keyframes floatBlobCenter {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.8;
    }

    50% {
        transform: translate(-45%, -55%) scale(1.1);
        opacity: 1;
    }

    100% {
        transform: translate(-55%, -45%) scale(0.95);
        opacity: 0.8;
    }
}

/* Hero Slides */
.mh-slide {
    display: none;
}

.mh-slide.active {
    display: flex;
    animation: fadeInContainer 0.8s ease forwards;
}

@keyframes fadeInContainer {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

/* WOW Animations for Text Group */
.mh-slide.active>div:nth-child(1) {
    animation: slideTextWow 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes slideTextWow {
    0% {
        opacity: 0;
        transform: translateX(-150px) scale(0.85);
        filter: blur(5px);
    }

    100% {
        opacity: 1;
        transform: translateX(0) scale(1);
        filter: blur(0);
    }
}

/* WOW Animations for PC Image Group */
.mh-slide.active>div:nth-child(2) {
    animation: slideImgWow 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.15s forwards;
    opacity: 0;
}

@keyframes slideImgWow {
    0% {
        opacity: 0;
        transform: translateY(80px);
        filter: blur(5px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

/* Hero Nav Items */
.mh-nav-item {
    border-bottom: 3px solid transparent;
    opacity: 0.5;
    filter: grayscale(100%);
    transition: 0.3s;
}

@keyframes mhFadeInNormal {
    0% {
        opacity: 0;
        transform: scale(0.5);
        filter: blur(5px);
    }

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

@keyframes mhFadeInRight {
    0% {
        opacity: 0;
        transform: translateX(50px);
        filter: blur(5px);
    }

    100% {
        opacity: 1;
        transform: translateX(0);
        filter: blur(0);
    }
}

@keyframes mhFloat {

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

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

@keyframes mhFloatAlt {

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

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

.mh-nav-item:hover {
    opacity: 0.8;
    filter: grayscale(50%);
    transform: translateY(-3px);
}

.mh-nav-item.active {
    opacity: 1;
    border-bottom: 3px solid #fff;
    filter: grayscale(0%);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: inset 0 -3px 15px rgba(255, 255, 255, 0.1);
}

/* Part Container (Hero Slide 1) */
.part-container {
    display: block;
    position: relative;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.part-container:hover {
    transform: translateY(-15px) scale(1.1);
    z-index: 20;
}

.part-tooltip {
    position: absolute;
    left: 50%;
    background: var(--primary, #FF4D00);
    color: #fff;
    padding: 4px 8px;
    font-size: 0.75rem;
    font-weight: 500;
    font-family: 'Saira', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 5px 15px rgba(255, 77, 0, 0.5);
}

.part-tooltip.top {
    bottom: 100%;
    top: auto;
    margin-bottom: 15px;
    transform: translateX(-50%) translateY(15px);
}

.part-tooltip.bottom {
    top: 100%;
    bottom: auto;
    margin-top: 15px;
    transform: translateX(-50%) translateY(-15px);
}

.part-container:hover .part-tooltip.top,
.part-container:hover .part-tooltip.bottom {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Hero Right Column Grid */
.mh-right-col {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 30px !important;
    justify-items: center;
    align-items: end;
}

/* Slides Container */
#mh-slides-container {
    flex: 1;
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

/* Slide 1 Layout */
.mh-slide-1 {
    flex-wrap: wrap;
    max-width: 1400px;
    width: 100%;
    padding: 75px 20px 80px 20px;
    align-items: center;
    justify-content: space-between;
}

/* Slide 1 Main Title */
.mh-main-title {
    width: 100%;
    text-align: center;
    margin-bottom: 20px;
    animation: mhFadeInNormal 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.mh-main-title-primary {
    color: #FF4D00;
    font-family: 'Saira', sans-serif;
    font-style: italic;
    font-size: clamp(2rem, 8vw, 3.2rem);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
    line-height: 1.1;
    /* text-shadow: 0 0 20px rgba(255, 77, 0, 0.5); */
}

.mh-main-title-secondary {
    color: #fff;
    font-family: 'Outfit', sans-serif;
    font-style: italic;
    font-size: clamp(1.4rem, 6vw, 2rem);
    font-weight: 300;
    letter-spacing: 6px;
    text-transform: uppercase;
}

/* Left Column */
.mh-left-col {
    flex: 1;
    min-width: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    animation: mhFadeInNormal 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    position: relative;
    animation-delay: 0.1s;
}

/* Center Glow */
.mh-center-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 500px;
    height: 500px;
    /* background: radial-gradient(circle, rgba(255, 100, 0, 0.15) 0%, rgba(0, 0, 0, 0) 70%); */
    z-index: -1;
    animation: floatBlobCenter 15s infinite alternate ease-in-out;
}

/* Hero CTA Links */
.mh-case-link {
    display: block;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.mh-case-link:hover {
    transform: translateY(-15px) scale(1.05);
}

.mh-case-link img {
    max-width: 280px;
    filter: drop-shadow(0 0 25px rgba(0, 0, 0, 0.8));
}

.mh-cta-btn {
    display: inline-block;
    padding: 14px 45px;
    border: 2px solid #FF4D00;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    font-family: 'Saira', sans-serif;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background: rgba(255, 77, 0, 0.15);
    box-shadow: 0 0 20px rgba(255, 77, 0, 0.4);
    backdrop-filter: blur(5px);
}

.mh-cta-btn:hover {
    background: #FF4D00;
    color: #fff;
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255, 77, 0, 0.6);
}

/* Right Column Parts */
.mh-right-col-wrapper {
    flex: 1.5;
    min-width: 500px;
    animation: mhFadeInRight 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards 0.2s;
    opacity: 0;
}

.part-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    text-align: center;
}

.part-img {
    object-fit: contain;
    filter: drop-shadow(0 15px 15px rgba(0, 0, 0, 0.5));
    height: auto;
    max-height: 140px;
}

.part-label {
    color: #fff;
    font-family: 'Saira', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    text-shadow: 0 0 10px black;
}

/* Float animations for parts */
.part-float-1 {
    animation: mhFloat 3.5s ease-in-out infinite;
}

.part-float-2 {
    animation: mhFloatAlt 3s ease-in-out infinite;
    animation-delay: 0.2s;
}

.part-float-3 {
    animation: mhFloat 2.8s ease-in-out infinite;
    animation-delay: 0.4s;
}

.part-float-4 {
    animation: mhFloatAlt 3.2s ease-in-out infinite;
    animation-delay: 0.6s;
}

.part-float-5 {
    animation: mhFloat 3.1s ease-in-out infinite;
    animation-delay: 0.3s;
}

.part-float-6 {
    animation: mhFloatAlt 2.9s ease-in-out infinite;
    animation-delay: 0.5s;
}

/* Mobile Layout for Slide 1 */
@media (max-width: 768px) {
    .mh-left-col {
        min-width: 100% !important;
        text-align: center;
    }

    .mh-left-col img {
        max-width: 200px !important;
    }

    .mh-left-col a {
        padding: 12px 25px !important;
        font-size: 1rem !important;
    }

    .mh-right-col {
        min-width: 100% !important;
        gap: 15px !important;
        margin-top: 20px;
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .main-hero-slider {
        top: -20px !important;
    }

    .mh-right-col span {
        font-size: 0.65rem !important;
    }
}

/* --- Shop By Game Scrolling Banner --- */
.shop-by-game-banner {
    position: relative;
    width: 100%;
    height: 202px;
    overflow: hidden;
    background: #0a0a0c;
    margin: 0;
    border-top: 2px solid #ff4d00;
    border-bottom: 2px solid #ff4d00;
}

.game-banner-center-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
}

.game-banner-btn {
    display: inline-block;
    background: rgb(255, 77, 0);
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    padding: 12px 36px;
    font-size: 0.95rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-radius: 0;
    transition: filter 0.2s;
    clip-path: polygon(15px 0, 100% 0, 100% calc(100% - 15px), calc(100% - 15px) 100%, 0 100%, 0 15px);
}

.game-banner-btn:hover {
    filter: brightness(1.15);
}

.game-banner-gradient-left {
    position: absolute;
    top: 0;
    left: 0;
    width: 100px;
    height: 100%;
    background: linear-gradient(to right, rgba(10, 10, 12, 1) 0%, rgba(10, 10, 12, 0) 100%);
    z-index: 5;
    pointer-events: none;
}

.game-banner-gradient-right {
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100%;
    background: linear-gradient(to left, rgba(10, 10, 12, 1) 0%, rgba(10, 10, 12, 0) 100%);
    z-index: 5;
    pointer-events: none;
}

.sbg-track {
    display: flex;
    height: 100%;
    width: max-content;
    animation: scrollGames 140s linear infinite;
}

.sbg-track:hover {
    animation-play-state: paused;
}

@keyframes scrollGames {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.game-item {
    flex: 0 0 240px;
    height: 100%;
    position: relative;
    overflow: hidden;
    transform: skewX(-15deg);
    margin: 0 -10px;
    border-left: 2px solid #000;
    border-right: 2px solid #000;
}

.game-item img {
    width: 140%;
    height: 100%;
    object-fit: cover;
    transform: skewX(15deg) translateX(-15%);
    opacity: 0.9;
    transition: opacity 0.3s;
}

.game-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #05070a;
    opacity: 0.8;
    z-index: 1;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.game-item:hover .game-overlay {
    opacity: 0;
}

.game-item:hover img {
    opacity: 1;
}

@media (max-width: 768px) {
    .game-banner-btn {
        padding: 8px 15px !important;
        font-size: 0.75rem !important;
        white-space: nowrap;
    }
}

/* --- Monthly Builds Section --- */
.monthly-builds-bg {
    position: relative;
    overflow: visible;
    background: url('assets/img/background/home-22.webp') no-repeat center center / cover;
    margin-top: 80px;
    margin-bottom: 60px;
    padding-top: 60px;
    padding-bottom: 20px;
}

.mb-header-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    position: relative;
}

.mb-left-text {
    flex: 1;
    min-width: 300px;
    padding-right: 20px;
    z-index: 2;
}

.mb-title-primary {
    font-family: 'Saira', sans-serif;
    font-weight: 700;
    font-size: 2.2rem;
    line-height: 1.1;
    color: var(--primary);
    text-transform: uppercase;
    font-style: italic;
}

.mb-title-secondary {
    font-family: 'Saira', sans-serif;
    font-weight: 700;
    font-size: 2.8rem;
    color: #fff;
    text-transform: uppercase;
    margin-top: 5px;
    line-height: 1.1;
}

.mb-subtitle {
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-top: 15px;
    letter-spacing: 1px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    max-width: 400px;
}

/* Countdown */
.mb-countdown-label {
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.mb-countdown {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.mb-countdown-num {
    font-family: 'Saira', sans-serif;
    font-weight: 700;
    font-size: 1.8rem;
    color: #fff;
    line-height: 1;
}

.mb-countdown-unit {
    font-size: 0.6rem;
    color: #fff;
    text-transform: uppercase;
    font-weight: bold;
    margin-top: 4px;
}

.mb-countdown-sep {
    font-family: 'Saira', sans-serif;
    font-weight: 700;
    font-size: 1.8rem;
    color: #fff;
    line-height: 1;
    margin-top: -2px;
}

/* PC Image */
.monthly-pc-img-container {
    position: absolute;
    right: 5%;
    top: -140px;
    z-index: 10;
    display: block;
    width: 480px;
    text-align: right;
    text-decoration: none;
}

.tc-tooltip {
    position: absolute;
    top: 15%;
    left: 0;
    background: var(--primary);
    color: #fff;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 700;
    font-family: 'Saira', sans-serif;
    text-transform: uppercase;
    font-size: 1.4rem;
    opacity: 0;
    transform: translateY(15px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    pointer-events: none;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
    z-index: 20;
    white-space: nowrap;
}

.monthly-pc-img-container img {
    max-width: 100%;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.8));
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    z-index: 15;
}

.touch-case-hover:hover img {
    transform: translateY(-20px) scale(1.03);
}

.touch-case-hover:hover .tc-tooltip {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 900px) {
    .monthly-pc-img-container {
        display: none !important;
    }
}

/* Skeleton Grid */
.skeleton-grid {
    display: flex;
    gap: 20px;
    overflow: hidden;
    padding-bottom: 10px;
}

.skeleton-card {
    flex: 0 0 calc(25% - 15px);
    min-width: 250px;
    background: var(--bg-panel);
    border: 1px solid var(--border);
    height: 340px;
    position: relative;
    overflow: hidden;
}

/* Slider Controls */
.slider-controls {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 10px;
}

/* Page Container Utility */
.page-container {
    max-width: 1400px;
    padding: 0 20px;
    margin: 0 auto;
}

/* Section Header */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

/* Discount Section Title */
.discount-title {
    text-shadow: 0 0 20px rgba(255, 77, 0, 0.4);
}

[data-theme="light"] .discount-title {
    text-shadow: none !important;
}

.section-title {
    margin: 0;
    font-size: 1.8rem;
    font-family: 'Saira', sans-serif;
    font-style: italic;
    font-weight: 400;
}

/* Discover Button */
.discover-btn {
    display: inline-block;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    padding: 12px 36px;
    font-size: 0.95rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-radius: 0;
    transition: filter 0.2s;
}

.discover-btn:hover {
    filter: brightness(1.2);
}

/* --- Scrolling Marquee Section --- */
.scrolling-marquee-container {
    position: relative;
    width: 100%;
    margin-top: 30px;
    margin-bottom: 20px;
    height: 160px;
    overflow: hidden;
    display: flex;
    align-items: center;
    background: transparent;
    pointer-events: none;
}

@media (max-width: 768px) {
    .scrolling-marquee-container {
        height: 100px;
        margin-top: 15px;
        margin-bottom: 10px;
    }

    .marquee-fg-track {
        font-size: 1.1rem;
    }

    .marquee-bg-track {
        font-size: 1.6rem;
    }

    .marquee-fg {
        padding: 8px 0;
    }
}

.marquee-fg {
    position: absolute;
    top: 50%;
    left: -5%;
    width: 110%;
    transform: translateY(-50%) rotate(-2deg);
    background-color: #ffcc00;
    padding: 12px 0;
    white-space: nowrap;
    overflow: hidden;
    z-index: 1;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.marquee-fg-track {
    display: inline-block;
    white-space: nowrap;
    font-size: 1.8rem;
    font-family: 'Saira', sans-serif;
    font-weight: 700;
    color: #111;
    text-transform: uppercase;
    animation: marqueeFg 30s linear infinite;
}

.marquee-bg {
    position: absolute;
    left: -5%;
    width: 110%;
    transform: rotate(-2deg);
    white-space: nowrap;
    overflow: hidden;
    z-index: 2;
}

.marquee-bg-top {
    top: 15%;
}

.marquee-bg-bottom {
    bottom: 15%;
}

.marquee-bg-track {
    display: inline-block;
    white-space: nowrap;
    font-size: 2.5rem;
    font-family: 'Saira', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
}

.marquee-bg-track.top-track {
    animation: marqueeBg 40s linear infinite;
}

.marquee-bg-track.bottom-track {
    animation: marqueeBg 45s linear infinite;
}

.marquee-glow-text {
    color: transparent;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.2);
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.1);
}

[data-theme="light"] .marquee-glow-text {
    color: transparent;
    -webkit-text-stroke: 1px rgba(255, 77, 0, 0.5);
    text-shadow: 0 0 15px rgba(255, 77, 0, 0.4);
}

@keyframes marqueeBg {
    0% {
        transform: translateX(-50%);
    }

    100% {
        transform: translateX(0%);
    }
}

@keyframes marqueeFg {
    0% {
        transform: translateX(0%);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* --- Discounted Products Section --- */
.discounted-products-section {
    padding: 50px 0;
    position: relative;
    overflow: hidden;
}

.discount-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.1;
    pointer-events: none;
}

/* --- VS Voting Section --- */
.vote-section {
    position: relative;
    padding: 40px 0;
    overflow: hidden;
    background: #050505;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 40px;
}

.vs-bg-left {
    position: absolute;
    top: 0;
    left: 0;
    width: 60%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(118, 185, 0, 0.15) 0%, rgba(118, 185, 0, 0.02) 80%);
    clip-path: polygon(0 0, 100% 0, 80% 100%, 0% 100%);
    border-right: 1px solid rgba(118, 185, 0, 0.3);
}

.vs-bg-right {
    position: absolute;
    top: 0;
    right: 0;
    width: 60%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(237, 28, 36, 0.15) 0%, rgba(237, 28, 36, 0.02) 80%);
    clip-path: polygon(20% 0, 100% 0, 100% 100%, 0% 100%);
    border-left: 1px solid rgba(237, 28, 36, 0.3);
}

/* The aggressive diagonal glowing lightning slash in the middle */
.vote-section::after {
    content: '';
    position: absolute;
    top: -10%;
    left: 49%;
    width: 6px;
    height: 120%;
    background: #fff;
    transform: rotate(23deg);
    box-shadow: 0 0 15px #fff, 0 0 30px #fff, 0 0 50px rgba(255, 255, 255, 0.5);
    z-index: 1;
    pointer-events: none;
    opacity: 0.8;
}

.vs-title-container {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
    z-index: 3;
}

.vs-title {
    font-family: 'Saira', sans-serif;
    font-size: 3.5rem;
    font-weight: 900;
    font-style: italic;
    text-transform: uppercase;
    line-height: 1;
    margin-bottom: 5px;
    letter-spacing: -1px;
}

/* Manga Speed Lines Background */
.vote-arena::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200%;
    height: 200%;
    transform: translate(-50%, -50%);
    background: repeating-conic-gradient(from 0deg, transparent 0deg 10deg, rgba(255, 255, 255, 0.03) 10deg 11deg, transparent 11deg 20deg);
    animation: animeSpin 30s linear infinite;
    z-index: 0;
    pointer-events: none;
}

@keyframes animeSpin {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

.vote-arena {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    position: relative;
    perspective: 1200px;
    /* 3D effect base */
}

/* Floating Animation for idle state */
@keyframes floatFighter {
    0% {
        transform: translateY(0px);
    }

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

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

.fighter-card {
    flex: 1;
    position: relative;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    will-change: transform;
    z-index: 2;
    animation: floatFighter 6s ease-in-out infinite;
}

.fighter-card.left {
    text-align: right;
    animation-delay: 0s;
}

.fighter-card.right {
    text-align: left;
    animation-delay: -3s;
    /* Offset floating */
}

.fighter-card:hover {
    z-index: 10;
    transform: scale(1.1) translateY(-15px) !important;
}

.fighter-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 500px;
    height: 500px;
    opacity: 0.1;
    pointer-events: none;
    transition: 0.4s;
    mix-blend-mode: screen;
}

.fighter-card:hover .fighter-glow {
    opacity: 0.6;
    width: 600px;
    height: 600px;
    filter: blur(20px);
}

.fighter-card img {
    max-width: 100%;
    height: auto;
    max-height: 250px;
    object-fit: contain;
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.5));
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.fighter-card.left img {
    transform: scale(1) rotate(-8deg) perspective(600px) rotateY(15deg);
}

.fighter-card.right img {
    transform: scale(1) rotate(8deg) perspective(600px) rotateY(-15deg);
}

/* Intense Anime impact frame inside image on hover */
.fighter-card:hover img {
    transform: scale(1.15) rotate(0deg) perspective(600px) rotateY(0deg) translateY(-20px) !important;
    filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.9)) drop-shadow(0 0 40px currentColor) !important;
}

.fighter-info {
    margin-top: 25px;
    position: relative;
    z-index: 3;
    transition: 0.3s;
}

.fighter-card:hover .fighter-info {
    transform: translateY(10px);
}

.fighter-name {
    font-family: 'Saira', sans-serif;
    font-size: 2.2rem;
    font-weight: 900;
    color: #fff;
    line-height: 1;
    text-transform: uppercase;
    text-shadow: 2px 2px 0px #000, 4px 4px 10px rgba(0, 0, 0, 0.8);
}

.fighter-brand {
    font-weight: 900;
    letter-spacing: 4px;
    font-size: 1rem;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.vote-btn {
    padding: 12px 40px;
    background: rgba(0, 0, 0, 0.5);
    border: 3px solid currentColor;
    color: #fff;
    font-weight: 900;
    font-family: 'Saira', sans-serif;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    clip-path: polygon(15px 0, 100% 0, 100% calc(100% - 15px), calc(100% - 15px) 100%, 0 100%, 0 15px);
    font-size: 1.1rem;
    position: relative;
    overflow: hidden;
}

/* Flash effect on vote button hover */
.vote-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.7), transparent);
    transform: skewX(-20deg);
    transition: 0s;
}

.vote-btn:hover::after {
    left: 200%;
    transition: 0.6s ease-in-out;
}

.vote-btn:hover {
    background: currentColor !important;
    color: #000 !important;
    transform: scale(1.1);
    box-shadow: 0 0 30px currentColor;
}

/* Anime Impact VS Badge */
.vs-badge {
    position: relative;
    z-index: 5;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulseVS 2s infinite;
}

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

    50% {
        transform: scale(1.05);
        filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.5));
    }

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

.vs-badge-text {
    font-family: 'Saira', sans-serif;
    font-size: 4.5rem;
    font-weight: 900;
    font-style: italic;
    color: #fff;
    text-shadow: 0 0 30px rgba(255, 77, 0, 0.8), -3px -3px 0 #000, 3px 3px 0 #ed1c24;
    -webkit-text-stroke: 2px #000;
    transform: rotate(-10deg);
}

/* VS Progress Bar */
.vs-progress-container {
    max-width: 600px;
    margin: 40px auto 0;
    position: relative;
}

.vs-progress-labels {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-weight: 700;
    font-family: 'Saira', sans-serif;
    font-size: 1rem;
}

.vs-progress-bar {
    height: 6px;
    background: #222;
    border-radius: 3px;
    overflow: hidden;
    display: flex;
}

.vs-progress-fill {
    transition: width 0.5s;
}

.vs-total-votes {
    text-align: center;
    margin-top: 10px;
    color: var(--text-dim);
    font-size: 0.75rem;
    letter-spacing: 1px;
}

@media (max-width: 900px) {
    .vote-section::after {
        display: none;
    }

    /* hide slash on mobile to avoid breaking layout */

    .vote-arena {
        flex-direction: column;
        gap: 60px;
    }

    .vs-bg-left {
        width: 100%;
        height: 55%;
        clip-path: polygon(0 0, 100% 0, 100% 85%, 0% 100%);
        border-right: none;
        border-bottom: 1px solid rgba(118, 185, 0, 0.3);
    }

    .vs-bg-right {
        top: auto;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 55%;
        clip-path: polygon(0 15%, 100% 0, 100% 100%, 0% 100%);
        border-left: none;
        border-top: 1px solid rgba(237, 28, 36, 0.3);
    }

    .fighter-card {
        text-align: center !important;
    }

    .fighter-card img {
        max-width: 80% !important;
        max-height: 200px !important;
        transform: scale(1) rotate(0deg) !important;
    }

    .fighter-card:hover {
        transform: scale(1.05) translateY(-5px) !important;
    }
}

/* FAQ Section Styling */
.faq-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.faq-item {
    background: #0f1014;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    overflow: hidden;
}

.faq-item[open] {
    border-color: var(--primary);
    box-shadow: 0 0 15px rgba(255, 77, 0, 0.15);
}

.faq-question {
    padding: 20px;
    font-family: 'Outfit', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: #fff;
    cursor: pointer;
    list-style: none;
    /* remove default arrow */
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: 0.3s;
}

.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--primary);
    transition: transform 0.3s ease;
}

.faq-item[open] .faq-question::after {
    content: '−';
    transform: rotate(180deg);
}

.faq-item[open] .faq-question {
    background: rgba(255, 77, 0, 0.05);
}

.faq-question::-webkit-details-marker {
    display: none;
}

.faq-answer {
    padding: 0 20px 20px 20px;
    font-family: 'Poppins', sans-serif;
    color: var(--text-dim);
    line-height: 1.7;
    font-size: 0.95rem;
    animation: fadeInFaq 0.4s ease-out;
}

@keyframes fadeInFaq {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

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