/* =====================================================
   PI-BUILD - Mobile & UX Fixes
   ===================================================== */

/* Prevent horizontal scroll */
html, body {
    overflow-x: hidden !important;
    max-width: 100vw !important;
}

* {
    box-sizing: border-box;
}

/* ===========================================
   0b. HERO 3D PC MODEL - REALISTIC CASE (unused)
   =========================================== */

/* Main container */
.hero-pc-model {
    position: absolute;
    right: 5%;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    perspective: 1200px;
}

/* PC Tower - 3D container */
.pc-tower {
    transform-style: preserve-3d;
    transform: rotateY(-30deg) rotateX(5deg);
    transition: transform 0.4s ease;
}

/* Case Frame - main structure (cube style like Lian Li O11) */
.case-frame {
    width: 380px;
    height: 340px;
    position: relative;
    transform-style: preserve-3d;
}

/* ============ TOP PANEL ============ */
.case-top {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 20px;
    background: linear-gradient(180deg, #2a2a32, #1a1a22);
    border-radius: 8px 8px 0 0;
    transform: rotateX(90deg) translateZ(10px);
    transform-origin: bottom;
    display: flex;
    justify-content: center;
    gap: 15px;
    align-items: center;
    padding: 0 20px;
}

.top-vent {
    width: 40px;
    height: 8px;
    background: repeating-linear-gradient(90deg, #111 0px, #111 2px, #222 2px, #222 4px);
    border-radius: 2px;
}

/* ============ FRONT PANEL (Glass with RGB fans) ============ */
.case-front {
    position: absolute;
    top: 0;
    left: -90px;
    width: 90px;
    height: 340px;
    background: linear-gradient(90deg, rgba(15, 15, 20, 0.95), rgba(20, 20, 28, 0.9));
    border: 2px solid #2a2a35;
    border-radius: 8px 0 0 8px;
    transform: rotateY(-90deg);
    transform-origin: right;
    overflow: hidden;
    box-shadow: inset 0 0 30px rgba(0, 240, 255, 0.02);
}

.front-mesh {
    position: absolute;
    top: 20px;
    left: 10px;
    right: 10px;
    bottom: 60px;
    background: rgba(5, 5, 8, 0.8);
    border-radius: 5px;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
    padding: 15px 0;
}

.mesh-fan {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background: radial-gradient(circle, #050508 40%, #15151a 100%);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.mesh-fan .fan-blade {
    position: absolute;
    width: 45px;
    height: 45px;
    background: conic-gradient(from 0deg,
        transparent 0%, rgba(0, 240, 255, 0.4) 10%, transparent 20%,
        transparent 25%, rgba(255, 0, 255, 0.4) 35%, transparent 45%,
        transparent 50%, rgba(0, 255, 136, 0.4) 60%, transparent 70%,
        transparent 75%, rgba(0, 240, 255, 0.4) 85%, transparent 95%
    );
    border-radius: 50%;
    animation: fanSpin 0.8s linear infinite;
    transform-origin: center center;
}

.mesh-fan:nth-child(2) .fan-blade { animation-delay: 0.1s; }
.mesh-fan:nth-child(3) .fan-blade { animation-delay: 0.2s; }

.fan-rgb-ring {
    position: absolute;
    inset: 3px;
    border-radius: 50%;
    border: 3px solid transparent;
    background: linear-gradient(#0a0a0f, #0a0a0f) padding-box,
                linear-gradient(90deg, #00f0ff, #ff00ff, #00ff88, #ff0080, #00f0ff) border-box;
    background-size: 100% 100%, 400% 100%;
    animation: rgbRing 2s linear infinite;
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.4), inset 0 0 10px rgba(255, 0, 255, 0.2);
}

@keyframes rgbRing {
    0% { background-position: 0% 0%, 0% 50%; }
    100% { background-position: 0% 0%, 400% 50%; }
}

.front-io {
    position: absolute;
    bottom: 60px;
    left: 8px;
    right: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.power-btn {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: radial-gradient(circle, #333 50%, #222 100%);
    border: 2px solid #444;
    box-shadow: 0 0 8px rgba(0, 240, 255, 0.5), inset 0 0 5px rgba(0, 240, 255, 0.3);
}

.io-ports {
    display: flex;
    gap: 6px;
}

.usb-port {
    width: 10px;
    height: 6px;
    background: #111;
    border: 1px solid #333;
    border-radius: 1px;
}

.audio-port {
    width: 6px;
    height: 6px;
    background: #111;
    border: 1px solid #333;
    border-radius: 50%;
}

.front-rgb-strip {
    position: absolute;
    bottom: 20px;
    left: 5px;
    right: 5px;
    height: 4px;
    background: linear-gradient(90deg, #00f0ff, #ff00ff, #00ff88, #00f0ff);
    background-size: 300% 100%;
    animation: rgbFlow 2s linear infinite;
    border-radius: 2px;
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.6);
}

@keyframes rgbFlow {
    from { background-position: 0% 50%; }
    to { background-position: 300% 50%; }
}

/* ============ GLASS SIDE PANEL ============ */
.case-side-glass {
    position: absolute;
    top: 0;
    left: 0;
    width: 380px;
    height: 340px;
    background: linear-gradient(135deg, rgba(15, 15, 20, 0.85), rgba(10, 10, 15, 0.9));
    border: 3px solid #2a2a35;
    border-radius: 0 8px 8px 0;
    overflow: hidden;
    box-shadow: inset 0 0 60px rgba(0, 240, 255, 0.03);
}

.glass-reflection {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(135deg,
        transparent 40%,
        rgba(255, 255, 255, 0.03) 45%,
        rgba(255, 255, 255, 0.05) 50%,
        transparent 55%
    );
    pointer-events: none;
    animation: glassShine 8s ease-in-out infinite;
}

@keyframes glassShine {
    0%, 100% { transform: translateX(-30%) translateY(-30%); }
    50% { transform: translateX(30%) translateY(30%); }
}

/* Internal Components Container */
.internal-components {
    position: absolute;
    top: 15px;
    left: 15px;
    right: 15px;
    bottom: 15px;
}

/* Motherboard */
.int-motherboard {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 55px;
    background: linear-gradient(145deg, #1a2a1a, #0d1a0d);
    border: 1px solid #2a3a2a;
    border-radius: 4px;
}

/* CPU + AIO Pump */
.int-cpu {
    position: absolute;
    top: 20px;
    left: 35%;
    transform: translateX(-50%);
}

.aio-pump {
    width: 65px;
    height: 65px;
    background: linear-gradient(145deg, #2a2a35, #1a1a22);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border: 2px solid #3a3a45;
}

.aio-pump span {
    font-size: 0.75rem;
    font-weight: 800;
    color: #666;
    z-index: 2;
}

.pump-rgb {
    position: absolute;
    inset: 4px;
    border-radius: 50%;
    border: 4px solid transparent;
    background: linear-gradient(#1a1a22, #1a1a22) padding-box,
                linear-gradient(90deg, #00f0ff, #ff00ff, #00ff88, #00f0ff) border-box;
    background-size: 100% 100%, 300% 100%;
    animation: rgbRing 2.5s linear infinite;
    box-shadow: 0 0 25px rgba(0, 240, 255, 0.5);
}

/* RAM Modules */
.int-ram {
    position: absolute;
    top: 15px;
    right: 25px;
    display: flex;
    gap: 6px;
}

.ram-module {
    width: 16px;
    height: 60px;
    background: linear-gradient(180deg, #2a2a35, #1a1a22);
    border-radius: 2px;
    border: 1px solid #3a3a45;
    position: relative;
    overflow: hidden;
}

.ram-module .ram-rgb {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 10px;
    background: linear-gradient(180deg, #00f0ff, #0080ff);
    animation: ramRgb 2s ease-in-out infinite;
    box-shadow: 0 0 8px rgba(0, 240, 255, 0.6);
}

.ram-module:nth-child(2) .ram-rgb { animation-delay: 0.25s; }
.ram-module:nth-child(3) .ram-rgb { animation-delay: 0.5s; }
.ram-module:nth-child(4) .ram-rgb { animation-delay: 0.75s; }

@keyframes ramRgb {
    0%, 100% { background: linear-gradient(180deg, #00f0ff, #0080ff); box-shadow: 0 0 8px rgba(0, 240, 255, 0.6); }
    33% { background: linear-gradient(180deg, #ff00ff, #ff0080); box-shadow: 0 0 8px rgba(255, 0, 255, 0.6); }
    66% { background: linear-gradient(180deg, #00ff88, #00cc66); box-shadow: 0 0 8px rgba(0, 255, 136, 0.6); }
}

/* GPU */
.int-gpu {
    position: absolute;
    bottom: 70px;
    left: 20px;
    right: 20px;
    height: 80px;
    background: linear-gradient(180deg, #252530, #1a1a22);
    border-radius: 8px;
    border: 1px solid #3a3a45;
    overflow: hidden;
}

.gpu-shroud {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 20px;
    background: linear-gradient(90deg, #2a2a32, #333340, #2a2a32);
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid #444;
}

.gpu-name {
    font-size: 0.6rem;
    font-weight: 800;
    color: #76b900;
    letter-spacing: 1px;
    text-shadow: 0 0 8px rgba(118, 185, 0, 0.6);
}

.gpu-fans {
    position: absolute;
    top: 24px;
    left: 8px;
    right: 8px;
    display: flex;
    justify-content: space-around;
}

.int-gpu .gpu-fan {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: radial-gradient(circle, #12121a 40%, #2a2a32 100%);
    border: 1px solid #3a3a45;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.int-gpu .gpu-fan .fan-blade {
    position: absolute;
    width: 42px;
    height: 42px;
    background: conic-gradient(from 0deg,
        transparent 0%, #444 8%, transparent 16%,
        transparent 20%, #444 28%, transparent 36%,
        transparent 40%, #444 48%, transparent 56%,
        transparent 60%, #444 68%, transparent 76%,
        transparent 80%, #444 88%, transparent 96%
    );
    border-radius: 50%;
    animation: fanSpin 0.5s linear infinite;
    transform-origin: center center;
}

@keyframes fanSpin {
    to { transform: rotate(360deg); }
}

.gpu-rgb {
    position: absolute;
    bottom: 4px;
    left: 8px;
    right: 8px;
    height: 3px;
    background: linear-gradient(90deg, #76b900, #00f0ff, #ff00ff, #76b900);
    background-size: 200% 100%;
    animation: rgbFlow 1.5s linear infinite;
    border-radius: 2px;
    box-shadow: 0 0 10px rgba(118, 185, 0, 0.5);
}

/* PSU Shroud */
.int-psu-shroud {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50px;
    background: linear-gradient(180deg, #1a1a22, #0d0d12);
    border-top: 2px solid #2a2a32;
    display: flex;
    align-items: center;
    justify-content: center;
}

.psu-logo {
    font-size: 0.7rem;
    font-weight: 700;
    color: #444;
    letter-spacing: 2px;
}

/* Cables */
.int-cables {
    position: absolute;
    right: 5px;
    top: 100px;
}

.cable {
    position: absolute;
    background: #111;
    border-radius: 2px;
}

.cable-24pin {
    width: 25px;
    height: 8px;
    top: 0;
    right: 0;
    background: linear-gradient(90deg, #222, #1a1a1a);
}

.cable-gpu {
    width: 6px;
    height: 40px;
    top: 60px;
    right: 10px;
    background: linear-gradient(180deg, #222, #1a1a1a);
}

/* ============ RIGHT SIDE PANEL (with RGB fans) ============ */
.case-side-right {
    position: absolute;
    top: 0;
    left: 380px;
    width: 90px;
    height: 340px;
    background: linear-gradient(90deg, rgba(15, 15, 20, 0.95), rgba(10, 10, 15, 0.9));
    border: 2px solid #2a2a35;
    border-radius: 0 8px 8px 0;
    transform: rotateY(90deg);
    transform-origin: left;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 15px;
    padding: 25px 0;
}

/* Side RGB Fans */
.side-fan {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    background: radial-gradient(circle, #050508 30%, #12121a 100%);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.side-fan-blade {
    position: absolute;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: conic-gradient(from 0deg,
        transparent 0%, rgba(0, 240, 255, 0.5) 8%, transparent 16%,
        transparent 20%, rgba(255, 0, 255, 0.5) 28%, transparent 36%,
        transparent 40%, rgba(0, 255, 136, 0.5) 48%, transparent 56%,
        transparent 60%, rgba(255, 0, 128, 0.5) 68%, transparent 76%,
        transparent 80%, rgba(0, 240, 255, 0.5) 88%, transparent 96%
    );
    animation: fanSpin 0.7s linear infinite;
    transform-origin: center center;
}

.side-fan:nth-child(2) .side-fan-blade { animation-delay: 0.15s; }
.side-fan:nth-child(3) .side-fan-blade { animation-delay: 0.3s; }

.side-fan-ring {
    position: absolute;
    inset: 3px;
    border-radius: 50%;
    border: 4px solid transparent;
    background: linear-gradient(#0a0a0f, #0a0a0f) padding-box,
                linear-gradient(90deg, #00f0ff, #ff00ff, #00ff88, #ff0080, #00f0ff) border-box;
    background-size: 100% 100%, 400% 100%;
    animation: rgbRing 2s linear infinite;
    box-shadow: 0 0 25px rgba(0, 240, 255, 0.6), 0 0 50px rgba(255, 0, 255, 0.3);
}

.side-fan:nth-child(2) .side-fan-ring { animation-delay: 0.25s; }
.side-fan:nth-child(3) .side-fan-ring { animation-delay: 0.5s; }

/* ============ BOTTOM PANEL ============ */
.case-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 15px;
    background: linear-gradient(180deg, #1a1a22, #0d0d12);
    border-radius: 0 0 8px 8px;
    transform: rotateX(-90deg) translateZ(7px);
    transform-origin: top;
}

.case-feet {
    position: absolute;
    bottom: -8px;
    left: 20px;
    right: 20px;
    height: 8px;
    background: #0a0a0f;
    border-radius: 0 0 4px 4px;
}

/* ============ SPECS LABEL ============ */
.pc-model-specs {
    text-align: center;
    margin-top: 25px;
}

.pc-model-specs span {
    background: linear-gradient(135deg, #00f0ff, #ff00ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1400px) {
    .hero-pc-model { right: 3%; }
    .case-frame { transform: scale(0.9); }
}

@media (max-width: 1200px) {
    .hero-pc-model { right: 1%; }
    .case-frame { transform: scale(0.8); }
}

@media (max-width: 992px) {
    .hero-pc-model { display: none; }
}

/* ===========================================
   1. NAVBAR LAYOUT - CENTERED MENU + CART IN CORNER
   =========================================== */

/* Navbar container - relative for absolute positioning */
.nav-container {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* Logo stays on the left */
.nav-logo {
    position: absolute;
    left: 0;
}

/* Menu centered */
.nav-menu {
    display: flex;
    justify-content: center;
    margin: 0 auto;
}

/* Cart icon - fixed to right corner of screen */
.nav-cart {
    position: fixed !important;
    top: 25px;
    right: 30px;
    z-index: 9998;
}

/* Hide cart icon when cart sidebar is open */
.cart-sidebar.active ~ .nav-cart,
body:has(.cart-sidebar.active) .nav-cart {
    opacity: 0;
    pointer-events: none;
}

/* Hide navbar when cart is open (mobile) */
@media (max-width: 992px) {
    body.cart-open .navbar {
        display: none !important;
    }
}

/* Mobile adjustments */
@media (max-width: 992px) {
    /* Navbar 2x grubszy */
    .navbar {
        padding: 40px 0 !important;
    }

    .nav-cart {
        top: 30px;
        right: 15px;
        height: 36px;
        display: flex;
        align-items: center;
    }

    /* Hamburger na lewo - te same odstępy co koszyk */
    .hamburger {
        position: fixed !important;
        left: 15px;
        top: 30px;
        right: auto;
        z-index: 9998;
        height: 36px;
        display: flex !important;
        align-items: center;
        justify-content: center;
    }

    /* Logo na środek */
    .nav-logo {
        position: fixed !important;
        left: 50% !important;
        top: 30px !important;
        transform: translateX(-50%) !important;
        z-index: 9997;
        height: 36px;
        display: flex;
        align-items: center;
    }

    /* Kontener nav */
    .nav-container {
        justify-content: center;
    }

    /* Menu otwiera się od lewej */
    .nav-menu {
        left: -100% !important;
        right: auto !important;
    }

    .nav-menu.active {
        left: 0 !important;
        right: auto !important;
    }
}


/* ===========================================
   2. TOAST NOTIFICATION FOR CART
   =========================================== */
.cart-toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: linear-gradient(135deg, #00f0ff, #ff00ff);
    color: #0a0a0f;
    padding: 15px 30px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: 0 10px 40px rgba(0, 240, 255, 0.4);
    display: flex;
    align-items: center;
    gap: 10px;
}

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

.cart-toast i {
    font-size: 1.2rem;
}

/* ===========================================
   3. TRUST BADGE IN HERO
   =========================================== */
.hero-trust {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 40px;
    padding: 20px 30px;
    background: rgba(0, 240, 255, 0.05);
    border: 1px solid rgba(0, 240, 255, 0.2);
    border-radius: 50px;
    max-width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

.hero-trust-stars {
    display: flex;
    gap: 3px;
}

.hero-trust-stars i {
    color: #ffd700;
    font-size: 1.1rem;
}

.hero-trust-text {
    color: var(--color-text-muted);
    font-size: 0.95rem;
}

.hero-trust-text strong {
    color: var(--color-text);
}

@media (max-width: 480px) {
    .hero-trust {
        flex-direction: column;
        gap: 10px;
        padding: 15px 20px;
    }
}

/* ===========================================
   4. IMPROVED MODAL RESPONSIVENESS
   =========================================== */
@media (max-width: 600px) {
    .payment-modal-content,
    .blik-modal-content {
        max-height: 90vh;
        overflow-y: auto;
        margin: 10px;
    }

    .modal-content {
        max-height: 90vh;
        overflow-y: auto;
    }
}

/* ===========================================
   5. UNIFIED CTA BUTTONS
   =========================================== */
.btn-view,
.extra-select-btn,
.btn-outline {
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.85rem;
}

/* ===========================================
   6. IMPROVED STATS DISPLAY
   Fallback for JS animation
   =========================================== */
.stat-number {
    min-width: 60px;
}

/* ===========================================
   7. SMOOTH CART ICON ANIMATION
   =========================================== */
@keyframes cartPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.nav-cart.pulse {
    animation: cartPulse 0.3s ease;
}

.nav-cart .cart-count {
    transition: transform 0.3s ease;
}

.nav-cart.pulse .cart-count {
    transform: scale(1.3);
}

/* ===========================================
   8. FLOATING WHATSAPP BUTTON
   =========================================== */
.floating-whatsapp {
    position: fixed;
    bottom: 110px;
    left: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #25d366, #128c7e);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.8rem;
    text-decoration: none;
    box-shadow: 0 5px 25px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
    z-index: 998;
    animation: whatsappPulse 2s infinite;
}

.floating-whatsapp:hover {
    transform: scale(1.1) translateY(-5px);
    box-shadow: 0 10px 35px rgba(37, 211, 102, 0.5);
}

.floating-whatsapp .tooltip {
    position: absolute;
    left: 70px;
    background: #1a1a25;
    color: white;
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 0.85rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
}

.floating-whatsapp:hover .tooltip {
    opacity: 1;
    visibility: visible;
}

@keyframes whatsappPulse {
    0%, 100% { box-shadow: 0 5px 25px rgba(37, 211, 102, 0.4); }
    50% { box-shadow: 0 5px 35px rgba(37, 211, 102, 0.6); }
}

/* Hide WhatsApp when chatbot is open */
.chatbot-window.active ~ .floating-whatsapp,
body:has(.chatbot-window.active) .floating-whatsapp {
    opacity: 0 !important;
    pointer-events: none !important;
    transform: scale(0.5) !important;
}

@media (max-width: 768px) {
    .floating-whatsapp {
        bottom: 90px !important;
        left: 20px !important;
        right: auto !important;
        width: 55px;
        height: 55px;
        font-size: 1.5rem;
    }
    .floating-whatsapp .tooltip {
        display: none;
    }

    /* Hide WhatsApp when chatbot is open - mobile */
    .chatbot-window.active ~ .floating-whatsapp,
    body:has(.chatbot-window.active) .floating-whatsapp {
        opacity: 0 !important;
        pointer-events: none !important;
        transform: scale(0.5) !important;
    }
}

/* ===========================================
   9. SCROLL PROGRESS BAR
   =========================================== */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, #00f0ff, #ff00ff);
    width: 0%;
    z-index: 10001;
    transition: width 0.1s linear;
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.5);
}

/* ===========================================
   10. ENHANCED CARD HOVER EFFECTS
   =========================================== */
.feature-card,
.package-card,
.portfolio-item {
    position: relative;
    overflow: hidden;
}

.feature-card::before,
.package-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 240, 255, 0.05), transparent);
    transition: left 0.5s ease;
}

.feature-card:hover::before,
.package-card:hover::before {
    left: 100%;
}

/* Glow effect on hover */
.package-card:hover {
    box-shadow: 0 0 30px rgba(0, 240, 255, 0.2), 0 20px 50px rgba(0, 0, 0, 0.3);
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
    background: rgba(0, 240, 255, 0.2);
}

.feature-icon {
    transition: all 0.3s ease;
}

/* ===========================================
   11. FORM LOADING STATE
   =========================================== */
.btn-submit.loading {
    pointer-events: none;
    opacity: 0.7;
}

.btn-submit.loading span {
    opacity: 0;
}

.btn-submit.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: btnSpin 0.8s linear infinite;
}

@keyframes btnSpin {
    to { transform: rotate(360deg); }
}

.btn-submit {
    position: relative;
}

/* Success state */
.btn-submit.success {
    background: linear-gradient(135deg, #00ff88, #00cc6a) !important;
}

/* ===========================================
   12. TESTIMONIALS SECTION
   =========================================== */
.testimonials {
    padding: var(--section-padding);
    background: var(--color-bg);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.testimonial-card {
    background: var(--color-bg-card);
    padding: 35px;
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 240, 255, 0.2);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 20px;
    left: 25px;
    font-size: 4rem;
    font-family: Georgia, serif;
    color: rgba(0, 240, 255, 0.15);
    line-height: 1;
}

.testimonial-stars {
    display: flex;
    gap: 3px;
    margin-bottom: 20px;
}

.testimonial-stars i {
    color: #ffd700;
    font-size: 0.9rem;
}

.testimonial-text {
    color: var(--color-text-muted);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 25px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.testimonial-avatar {
    width: 50px;
    height: 50px;
    background: var(--color-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--color-bg);
}

.testimonial-info h4 {
    font-size: 1rem;
    margin-bottom: 3px;
    color: var(--color-text);
}

.testimonial-info span {
    font-size: 0.85rem;
    color: var(--color-primary);
}

/* ===========================================
   13. TYPING ANIMATION FOR HERO
   =========================================== */
.hero-content {
    position: relative;
}

.hero-subtitle {
    height: 30px;
    overflow: visible;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .hero-subtitle {
        display: none !important;
    }
}

.hero-typing {
    display: inline;
}

.hero-typing::after {
    content: '|';
    animation: blink 0.7s infinite;
    color: var(--color-primary);
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* ===========================================
   14. SMOOTH SECTION REVEALS
   =========================================== */
.reveal-section {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-section.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ===========================================
   15. COOKIE CONSENT BANNER
   =========================================== */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(18, 18, 26, 0.98);
    backdrop-filter: blur(10px);
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    z-index: 9998;
    border-top: 1px solid rgba(0, 240, 255, 0.2);
    transform: translateY(100%);
    transition: transform 0.4s ease;
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-banner.hide {
    transform: translateY(100%);
}

.cookie-text {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    max-width: 600px;
}

.cookie-text a {
    color: var(--color-primary);
    text-decoration: underline;
}

.cookie-btn {
    background: var(--color-gradient);
    color: var(--color-bg);
    border: none;
    padding: 12px 25px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cookie-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(0, 240, 255, 0.3);
}

@media (max-width: 600px) {
    .cookie-banner {
        flex-direction: column;
        text-align: center;
        padding: 15px;
    }
}

/* ===========================================
   16. NAVBAR LINK UNDERLINE ANIMATION
   =========================================== */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--color-gradient);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* ===========================================
   17. PRICE HIGHLIGHT ANIMATION
   =========================================== */
.price-amount {
    position: relative;
    display: inline-block;
}

.package-card:hover .price-amount {
    animation: priceGlow 1.5s ease infinite;
}

@keyframes priceGlow {
    0%, 100% { filter: drop-shadow(0 0 5px rgba(0, 240, 255, 0.3)); }
    50% { filter: drop-shadow(0 0 15px rgba(0, 240, 255, 0.6)); }
}

/* ===========================================
   18. AI CHATBOT
   =========================================== */

/* Chatbot Button */
.chatbot-btn {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 65px;
    height: 65px;
    background: var(--color-gradient);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 30px rgba(0, 240, 255, 0.4);
    transition: all 0.3s ease;
    z-index: 997;
    animation: chatbotPulse 3s infinite;
}

.chatbot-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 40px rgba(0, 240, 255, 0.5);
}

.chatbot-btn i {
    font-size: 1.8rem;
    color: var(--color-bg);
    transition: transform 0.3s ease;
}

.chatbot-btn.active i.chat-icon { display: none; }
.chatbot-btn.active i.close-icon { display: block; }
.chatbot-btn i.close-icon { display: none; }

.chatbot-btn::after {
    content: '1';
    position: absolute;
    top: -5px;
    right: -5px;
    width: 22px;
    height: 22px;
    background: #ff4444;
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: 700;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chatbot-btn.no-badge::after { display: none; }

@keyframes chatbotPulse {
    0%, 100% { box-shadow: 0 5px 30px rgba(0, 240, 255, 0.4); }
    50% { box-shadow: 0 5px 40px rgba(0, 240, 255, 0.6), 0 0 60px rgba(255, 0, 255, 0.2); }
}

/* Chat Window */
.chatbot-window {
    position: fixed;
    bottom: 110px;
    left: 30px;
    width: 380px;
    max-width: calc(100vw - 60px);
    height: 500px;
    max-height: calc(100vh - 150px);
    background: var(--color-bg-secondary);
    border-radius: 20px;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5), 0 0 30px rgba(0, 240, 255, 0.1);
    border: 1px solid rgba(0, 240, 255, 0.2);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 996;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.chatbot-window.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

/* Chat Header */
.chatbot-header {
    background: var(--color-gradient);
    padding: 18px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.chatbot-avatar {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}

.chatbot-info h4 {
    color: var(--color-bg);
    font-size: 1rem;
    margin-bottom: 2px;
}

.chatbot-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: rgba(10, 10, 15, 0.8);
}

.chatbot-status::before {
    content: '';
    width: 8px;
    height: 8px;
    background: #00ff88;
    border-radius: 50%;
    animation: statusPulse 2s infinite;
}

@keyframes statusPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Chat Messages */
.chatbot-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.chatbot-messages::-webkit-scrollbar { width: 6px; }
.chatbot-messages::-webkit-scrollbar-track { background: rgba(255, 255, 255, 0.05); }
.chatbot-messages::-webkit-scrollbar-thumb { background: rgba(0, 240, 255, 0.3); border-radius: 3px; }

/* Message Bubbles */
.chat-message {
    max-width: 85%;
    padding: 12px 16px;
    border-radius: 18px;
    font-size: 0.9rem;
    line-height: 1.5;
    animation: messageSlide 0.3s ease;
}

@keyframes messageSlide {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.chat-message.bot {
    background: var(--color-bg-card);
    color: var(--color-text);
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}

.chat-message.user {
    background: var(--color-gradient);
    color: var(--color-bg);
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}

/* Typing Indicator */
.typing-indicator {
    display: flex;
    gap: 5px;
    padding: 15px 20px;
    background: var(--color-bg-card);
    border-radius: 18px;
    border-bottom-left-radius: 4px;
    align-self: flex-start;
    max-width: 70px;
}

.typing-indicator span {
    width: 8px;
    height: 8px;
    background: var(--color-primary);
    border-radius: 50%;
    animation: typingBounce 1.4s infinite;
}

.typing-indicator span:nth-child(2) { animation-delay: 0.2s; }
.typing-indicator span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingBounce {
    0%, 60%, 100% { transform: translateY(0); }
    30% { transform: translateY(-8px); }
}

/* Quick Replies */
.chat-quick-replies {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px 20px;
}

.quick-reply-btn {
    background: rgba(0, 240, 255, 0.1);
    border: 1px solid rgba(0, 240, 255, 0.3);
    color: var(--color-primary);
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.quick-reply-btn:hover {
    background: var(--color-primary);
    color: var(--color-bg);
}

/* Chat Input */
.chatbot-input {
    padding: 15px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    gap: 10px;
    background: var(--color-bg-card);
}

.chatbot-input input {
    flex: 1;
    background: var(--color-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    padding: 12px 18px;
    color: var(--color-text);
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.3s ease;
}

.chatbot-input input:focus { border-color: var(--color-primary); }
.chatbot-input input::placeholder { color: var(--color-text-muted); }

.chatbot-send {
    width: 45px;
    height: 45px;
    background: var(--color-gradient);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.chatbot-send:hover {
    transform: scale(1.1);
    box-shadow: 0 5px 20px rgba(0, 240, 255, 0.4);
}

.chatbot-send i { color: var(--color-bg); font-size: 1rem; }

/* Mobile */
@media (max-width: 480px) {
    .chatbot-btn { bottom: 20px; left: 20px; width: 55px; height: 55px; }
    .chatbot-btn i { font-size: 1.5rem; }
    .chatbot-window {
        bottom: 90px;
        left: 10px;
        right: 10px;
        width: auto;
        max-width: none;
        height: calc(100vh - 120px);
        border-radius: 15px;
    }
}

/* ===========================================
   19. HERO TESTIMONIALS SLIDER
   =========================================== */
.hero-testimonials-slider {
    margin-bottom: 30px;
    margin-top: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    min-height: 140px;
    padding-bottom: 20px;
}

.testimonial-slide {
    position: absolute;
    width: 100%;
    opacity: 0;
    transform: translateX(30px);
    transition: all 0.5s ease;
    pointer-events: none;
    text-align: center;
    padding: 0 20px;
}

.testimonial-slide.active {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
    position: relative;
}

.testimonial-slide .testimonial-text {
    color: var(--color-text-muted);
    font-size: 1rem;
    line-height: 1.6;
    font-style: italic;
    margin-bottom: 15px;
}

.testimonial-slide .testimonial-author {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
}

.testimonial-slide .author-name {
    color: var(--color-text);
    font-weight: 600;
    font-size: 0.95rem;
}

.testimonial-slide .author-build {
    color: var(--color-primary);
    font-size: 0.8rem;
}

.testimonial-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.testimonial-dots .dot {
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.testimonial-dots .dot.active {
    background: var(--color-primary);
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.5);
}

.testimonial-dots .dot:hover {
    background: rgba(0, 240, 255, 0.5);
}

@media (max-width: 480px) {
    .hero-testimonials-slider {
        margin-top: 25px;
        margin-bottom: 60px;
    }
    .testimonial-slide .testimonial-text {
        font-size: 0.9rem;
    }
}

/* Ensure navbar is always on top */
.navbar {
    z-index: 9999 !important;
}

/* Hero section adjustments for slider */
.hero {
    padding-bottom: 100px;
}

.hero-content {
    padding-bottom: 60px;
}

/* Push hero content down to avoid covering navbar */
.hero-content {
    padding-top: 140px !important;
}

/* ===========================================
   20. PAGE LOADER ANIMATION
   =========================================== */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--color-bg, #0a0a0f);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.page-loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-content {
    text-align: center;
}

.loader-logo {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, #00f0ff, #ff00ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 30px;
    animation: logoGlow 1.5s ease infinite;
}

@keyframes logoGlow {
    0%, 100% { filter: drop-shadow(0 0 10px rgba(0, 240, 255, 0.3)); }
    50% { filter: drop-shadow(0 0 25px rgba(0, 240, 255, 0.6)); }
}

.loader-bar {
    width: 200px;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    margin: 0 auto;
    overflow: hidden;
    position: relative;
}

.loader-bar::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, #ff00ff, #00f0ff);
    border-radius: 2px;
    animation: loadBar 0.4s ease-out forwards;
}

@keyframes loadBar {
    from { transform: translateX(100%); }
    to { transform: translateX(0); }
}

.loader-text {
    margin-top: 20px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    animation: pulse 1.5s ease infinite;
}

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

/* ===========================================
   21. 3D PC CONFIGURATOR
   =========================================== */
.configurator-section {
    padding: 80px 0;
    background: var(--color-bg-secondary);
}

/* Note: .configurator-wrapper is defined in section 23 (3D VIEWER) */

/* 3D PC Case Visual */
.pc-3d-container {
    position: relative;
    width: 100%;
}

.pc-case {
    perspective: 1000px;
    display: flex;
    justify-content: center;
}

.pc-case-front {
    width: 320px;
    height: 400px;
    background: linear-gradient(145deg, #1a1a25, #12121a);
    border-radius: 15px;
    border: 2px solid rgba(0, 240, 255, 0.3);
    position: relative;
    transform: rotateY(-5deg) rotateX(2deg);
    transform-style: preserve-3d;
    box-shadow:
        20px 20px 60px rgba(0, 0, 0, 0.5),
        -5px -5px 20px rgba(0, 240, 255, 0.05),
        inset 0 0 30px rgba(0, 240, 255, 0.03);
    transition: transform 0.5s ease;
}

.pc-case-front:hover {
    transform: rotateY(0deg) rotateX(0deg);
}

.pc-glass-panel {
    position: absolute;
    top: 15px;
    left: 15px;
    right: 15px;
    bottom: 15px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 10px;
    border: 1px solid rgba(0, 240, 255, 0.2);
    overflow: hidden;
}

/* Components inside case */
.pc-component {
    position: absolute;
    transition: all 0.3s ease;
    opacity: 0.3;
}

.pc-component.active {
    opacity: 1;
}

.pc-motherboard {
    top: 10px;
    left: 10px;
    right: 10px;
    bottom: 10px;
    background: linear-gradient(135deg, #1a2a1a, #0a150a);
    border-radius: 5px;
    border: 1px solid #2a3a2a;
}

.pc-motherboard .component-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 60%;
    height: 60%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(0, 240, 255, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s;
}

.pc-motherboard.active .component-glow {
    opacity: 1;
    animation: pulseGlow 2s infinite;
}

@keyframes pulseGlow {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.pc-cpu {
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #333, #222);
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #00f0ff;
    box-shadow: 0 0 20px rgba(0, 240, 255, 0);
}

.pc-cpu.active {
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.5);
    animation: cpuPulse 1.5s infinite;
}

@keyframes cpuPulse {
    0%, 100% { box-shadow: 0 0 20px rgba(0, 240, 255, 0.3); }
    50% { box-shadow: 0 0 30px rgba(0, 240, 255, 0.6); }
}

.pc-gpu {
    bottom: 60px;
    left: 15px;
    right: 40px;
    height: 70px;
    background: linear-gradient(180deg, #2a2a35, #1a1a25);
    border-radius: 8px;
    border: 1px solid #3a3a45;
    overflow: hidden;
}

.pc-gpu .gpu-fans {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    display: flex !important;
    justify-content: space-around !important;
    padding: 15px 10px !important;
    height: 100% !important;
    align-items: center !important;
}

.pc-gpu .gpu-fans .fan {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 2px solid #444;
    background: radial-gradient(circle, #333 30%, #222 70%);
    position: relative;
    flex-shrink: 0;
}

.pc-gpu .gpu-fans .fan::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 80%;
    height: 80%;
    transform: translate(-50%, -50%);
    background: conic-gradient(from 0deg, transparent 0%, #555 10%, transparent 20%);
    border-radius: 50%;
}

.pc-gpu.active .gpu-fans .fan::before {
    animation: configuratorFanSpin 0.5s linear infinite;
}

@keyframes configuratorFanSpin {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

.pc-ram {
    top: 25px;
    right: 25px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.ram-stick {
    width: 15px;
    height: 70px;
    background: linear-gradient(180deg, #2a2a35, #1a1a25);
    border-radius: 2px;
    border: 1px solid #3a3a45;
}

.pc-ram.active .ram-stick {
    background: linear-gradient(180deg, #00f0ff, #0080ff);
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.5);
    animation: ramGlow 1s infinite alternate;
}

@keyframes ramGlow {
    from { box-shadow: 0 0 5px rgba(0, 240, 255, 0.3); }
    to { box-shadow: 0 0 15px rgba(0, 240, 255, 0.7); }
}

.pc-storage {
    bottom: 20px;
    right: 70px;
    width: 50px;
    height: 30px;
    background: #222;
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
}

.pc-storage.active {
    background: linear-gradient(135deg, #333, #222);
    color: #00f0ff;
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.3);
}

/* RGB Strips */
.rgb-strip {
    position: absolute;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #ff0000, #ff7700, #ffff00, #00ff00, #0000ff, #8b00ff, #ff0000);
    background-size: 200% 100%;
    animation: rgbFlow 3s linear infinite;
    opacity: 0.7;
}

.rgb-strip.top { top: 5px; border-radius: 15px 15px 0 0; }
.rgb-strip.bottom { bottom: 5px; border-radius: 0 0 15px 15px; }

@keyframes rgbFlow {
    from { background-position: 0% 50%; }
    to { background-position: 200% 50%; }
}

/* Specs Display */
.pc-specs-display {
    margin-top: 30px;
    padding: 20px;
    background: var(--color-bg-card);
    border-radius: 10px;
    border: 1px solid rgba(0, 240, 255, 0.1);
    width: 100%;
    min-width: 350px;
}

.spec-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.85rem;
    gap: 15px;
}

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

.spec-label {
    color: var(--color-text-muted);
    flex-shrink: 0;
}

.spec-value {
    color: var(--color-primary);
    font-weight: 500;
    text-align: right;
    white-space: normal;
    word-break: break-word;
}

/* Configurator Panel */
.configurator-panel {
    background: var(--color-bg-card);
    border-radius: 15px;
    padding: 30px;
    border: 1px solid rgba(0, 240, 255, 0.1);
}

.config-category {
    margin-bottom: 25px;
}

.config-category label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--color-text);
}

.config-category label i {
    color: var(--color-primary);
    margin-right: 8px;
}

.config-category select {
    width: 100%;
    padding: 15px;
    background: var(--color-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: var(--color-text);
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.config-category select:hover,
.config-category select:focus {
    border-color: var(--color-primary);
    outline: none;
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.1);
}

.config-category select option {
    background: var(--color-bg);
    padding: 10px;
}

/* Config Summary */
.config-summary {
    margin-top: 30px;
    padding-top: 25px;
    border-top: 2px solid rgba(0, 240, 255, 0.2);
}

.config-summary > div {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
}

.total-price, .service-price {
    color: var(--color-text-muted);
}

.final-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--color-text);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 15px !important;
    margin-top: 10px;
}

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

.btn-config {
    width: 100%;
    margin-top: 20px;
    padding: 18px;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-config i {
    font-size: 1.3rem;
}

/* Mobile */
@media (max-width: 992px) {
    .configurator-wrapper {
        grid-template-columns: 1fr;
    }

    .pc-3d-container {
        position: relative;
        top: 0;
    }

    .pc-case-front {
        width: 280px;
        height: 350px;
    }
}

@media (max-width: 480px) {
    .pc-case-front {
        width: 240px;
        height: 300px;
        transform: none;
    }

    .pc-case-front:hover {
        transform: none;
    }
}

/* Config Toast - Socket Compatibility Warning */
.config-toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: linear-gradient(135deg, #ff6b00, #ff0066);
    color: #fff;
    padding: 15px 25px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: 0 10px 40px rgba(255, 107, 0, 0.4);
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 90%;
    text-align: center;
}

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

.config-toast i {
    font-size: 1.1rem;
    color: #fff;
}

/* ===========================================
   22. BRAND LOGOS SECTION
   =========================================== */
.brands-section {
    padding: 60px 0;
    background: var(--color-bg);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.brands-title {
    text-align: center;
    color: var(--color-text-muted);
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 40px;
}

.brands-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 50px;
}

.brand-item {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.5;
    filter: grayscale(100%);
    transition: all 0.3s ease;
    padding: 15px 25px;
}

.brand-item:hover {
    opacity: 1;
    filter: grayscale(0%);
    transform: scale(1.1);
}

.brand-item img {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.brand-item svg {
    height: 40px;
    width: auto;
}

/* Text-based brand logos as fallback */
.brand-logo-text {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 2px;
    background: linear-gradient(135deg, #fff, #888);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.brand-item:hover .brand-logo-text {
    background: var(--color-gradient);
    -webkit-background-clip: text;
    background-clip: text;
}

/* Specific brand colors on hover */
.brand-item.intel:hover .brand-logo-text {
    background: linear-gradient(135deg, #0071c5, #00aeef);
    -webkit-background-clip: text;
    background-clip: text;
}

.brand-item.amd:hover .brand-logo-text {
    background: linear-gradient(135deg, #ed1c24, #ff5722);
    -webkit-background-clip: text;
    background-clip: text;
}

.brand-item.nvidia:hover .brand-logo-text {
    background: linear-gradient(135deg, #76b900, #a4d007);
    -webkit-background-clip: text;
    background-clip: text;
}

.brand-item.corsair:hover .brand-logo-text {
    background: linear-gradient(135deg, #f0d000, #ffeb3b);
    -webkit-background-clip: text;
    background-clip: text;
}

.brand-item.msi:hover .brand-logo-text {
    background: linear-gradient(135deg, #ff0000, #cc0000);
    -webkit-background-clip: text;
    background-clip: text;
}

.brand-item.asus:hover .brand-logo-text {
    background: linear-gradient(135deg, #00529b, #0078d4);
    -webkit-background-clip: text;
    background-clip: text;
}

@media (max-width: 768px) {
    .brands-grid {
        gap: 30px;
    }
    .brand-logo-text {
        font-size: 1.4rem;
    }
    .comparison-table-wrapper {
        margin: 40px -15px 0;
        border-radius: 0;
    }
}

/* ===========================================
   23. 3D CONFIGURATOR VIEW TOGGLE
   =========================================== */

/* Main configurator layout - 2 columns */
.configurator-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 40px;
    align-items: start;
}

/* Left column - visual area - sticky on scroll */
.configurator-visual {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: -webkit-sticky;
    position: sticky;
    top: 100px;
    height: fit-content;
    align-self: start;
    z-index: 10;
}

/* View Toggle Buttons */
.view-toggle {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.view-btn {
    padding: 10px 20px;
    background: var(--color-bg-card, #1a1a25);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    color: var(--color-text-muted, #888);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.view-btn:hover {
    border-color: var(--color-primary, #00f0ff);
    color: var(--color-primary, #00f0ff);
}

.view-btn.active {
    background: var(--color-gradient, linear-gradient(135deg, #00f0ff, #ff00ff));
    color: var(--color-bg, #0a0a0f);
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(0, 240, 255, 0.3);
}

.view-btn i {
    font-size: 0.9rem;
}

/* 2D PC Visual Container */
.pc-visual-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

/* 3D Viewer Container */
.viewer-3d-container {
    position: relative;
    width: 100%;
    height: 450px;
    background: linear-gradient(145deg, #0d0d12, #1a1a25);
    border-radius: 15px;
    border: 2px solid rgba(0, 240, 255, 0.2);
    overflow: hidden;
    box-shadow: inset 0 0 50px rgba(0, 240, 255, 0.05), 0 20px 60px rgba(0, 0, 0, 0.5);
}

.viewer-3d-container canvas {
    width: 100% !important;
    height: 100% !important;
    display: block;
    cursor: grab;
}

.viewer-3d-container canvas:active {
    cursor: grabbing;
}

/* 3D Viewer Controls */
.viewer-3d-controls {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    padding: 10px 20px;
    border-radius: 30px;
    backdrop-filter: blur(10px);
}

.viewer-3d-controls p {
    color: var(--color-text-muted);
    font-size: 0.8rem;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 5px;
}

.viewer-3d-controls i {
    color: var(--color-primary);
}

/* 3D Viewer Info Overlay */
.viewer-3d-info {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: var(--color-text-muted);
    font-size: 1rem;
    padding: 30px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 15px;
    backdrop-filter: blur(5px);
    border: 1px dashed rgba(0, 240, 255, 0.3);
    pointer-events: none;
}

.viewer-3d-info.hidden {
    display: none;
}

.viewer-3d-container.has-model .viewer-3d-info {
    display: none;
}

/* Case Name Badge */
.viewer-3d-case-name {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--color-gradient);
    color: var(--color-bg);
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 5px 20px rgba(0, 240, 255, 0.3);
}

/* PSU and Case icons in 2D view */
.pc-psu, .pc-case-icon {
    bottom: 20px;
    width: 40px;
    height: 30px;
    background: #222;
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 0.9rem;
}

.pc-psu { left: 20px; }
.pc-case-icon { right: 20px; }

.pc-psu.active, .pc-case-icon.active {
    background: linear-gradient(135deg, #333, #222);
    color: #00f0ff;
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.3);
}

/* 3D Loading spinner */
.viewer-3d-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.viewer-3d-loading .spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(0, 240, 255, 0.1);
    border-top-color: var(--color-primary);
    border-radius: 50%;
    animation: spin3d 1s linear infinite;
}

@keyframes spin3d {
    to { transform: rotate(360deg); }
}

.viewer-3d-loading span {
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 992px) {
    .configurator-wrapper {
        grid-template-columns: 1fr;
    }

    .configurator-visual {
        position: relative;
        top: 0;
    }

    .viewer-3d-container {
        height: 350px;
    }
}

@media (max-width: 480px) {
    .viewer-3d-container {
        height: 280px;
        border-radius: 10px;
    }

    .view-btn {
        padding: 8px 15px;
        font-size: 0.8rem;
    }
}

/* ===========================================
   24. CONFIGURATOR FILTER BUTTONS
   =========================================== */
.config-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.filter-btn {
    padding: 8px 16px;
    border: 2px solid rgba(0, 240, 255, 0.5);
    background: rgba(0, 240, 255, 0.1);
    color: var(--color-text);
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
    background: rgba(0, 240, 255, 0.05);
}

.filter-btn.active {
    background: var(--color-gradient);
    color: var(--color-bg);
    border-color: transparent;
    box-shadow: 0 2px 10px rgba(0, 240, 255, 0.3);
}

@media (max-width: 480px) {
    .config-filters {
        gap: 6px;
    }
    .filter-btn {
        padding: 5px 10px;
        font-size: 0.75rem;
    }
}

/* Privacy Policy Section */
.privacy-policy {
    padding: 80px 0;
    background: linear-gradient(135deg, rgba(10,10,15,0.95), rgba(20,20,30,0.95));
}

.privacy-content {
    max-width: 900px;
    margin: 0 auto;
}

.privacy-section {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 16px;
    padding: 24px 30px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.privacy-section:hover {
    border-color: rgba(0,240,255,0.3);
    background: rgba(255,255,255,0.05);
}

.privacy-section h3 {
    color: #00f0ff;
    font-size: 1.2rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.privacy-section h3 i {
    font-size: 1.1rem;
    opacity: 0.8;
}

.privacy-section p {
    color: rgba(255,255,255,0.8);
    line-height: 1.7;
    margin-bottom: 10px;
}

.privacy-section ul {
    list-style: none;
    padding: 0;
}

.privacy-section ul li {
    color: rgba(255,255,255,0.75);
    padding: 8px 0;
    padding-left: 24px;
    position: relative;
    line-height: 1.6;
}

.privacy-section ul li::before {
    content: "\f00c";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    position: absolute;
    left: 0;
    color: #00f0ff;
    font-size: 0.8rem;
}

.privacy-section a {
    color: #00f0ff;
    text-decoration: none;
    transition: color 0.3s;
}

.privacy-section a:hover {
    color: #ff00ff;
}

/* Mobile - ukryj domyslnie */
@media (max-width: 992px) {
    .privacy-policy {
        display: none;
    }
    .privacy-policy.mobile-visible {
        display: block;
    }
}
