:root {
    --primary-red: #ff1a1a;
    --secondary-blue: #00aaff;
    --dark-bg: #0d0d0d;
    --glass-bg: rgba(20, 20, 20, 0.6);
    --glass-border: rgba(255, 255, 255, 0.1);
    --text-main: #ffffff;
    --text-muted: #aaaaaa;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { 
    background-color: var(--dark-bg); 
    color: var(--text-main); 
    font-family: 'Outfit', sans-serif;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

/* Web Trail Cursor Container */
#cursor-trail-container { position: fixed; top: 0; left: 0; pointer-events: none; z-index: 9999; }
.web-trail-dot {
    position: absolute; width: 6px; height: 6px; background: rgba(255, 255, 255, 0.9);
    border-radius: 50%; box-shadow: 0 0 10px rgba(255,255,255,0.8);
    transform: translate(-50%, -50%);
}

h1, h2, h3, h4, h5 { font-family: 'Orbitron', sans-serif; letter-spacing: 1px;}
.section-title { text-align: center; font-size: 3rem; margin-bottom: 4rem; color: var(--text-main); }
.glass { background: var(--glass-bg); backdrop-filter: blur(12px); border: 1px solid var(--glass-border); border-radius: 15px; }

/* Navbar */
.navbar {
    position: fixed; top: 0; width: 100%; display: flex; justify-content: space-between; align-items: center; padding: 1.5rem 5%;
    z-index: 1000; transition: background 0.3s, backdrop-filter 0.3s;
}
.navbar.scrolled { background: rgba(13, 13, 13, 0.8); backdrop-filter: blur(15px); border-bottom: 1px solid rgba(255,255,255,0.05); }
.logo i { font-size: 2rem; color: white; transition: 0.3s; }
.logo i:hover { color: var(--primary-red); filter: drop-shadow(0 0 10px var(--primary-red));}
.nav-links { display: flex; gap: 3rem; list-style: none; }
.nav-links a { color: white; text-decoration: none; font-weight: 700; text-transform: uppercase; font-size: 0.9rem; transition: 0.3s;}
.nav-links a:hover { color: var(--primary-red); filter: drop-shadow(0 0 5px var(--primary-red)); }
.cart-icon { position: relative; font-size: 1.2rem; cursor: pointer; transition: 0.3s; }
.cart-icon:hover { color: var(--secondary-blue); }
.cart-badge { position: absolute; top:-10px; right:-10px; background: var(--primary-red); color: white; font-size:0.7rem; width:18px; height:18px; display:flex; justify-content:center; align-items:center; border-radius:50%; font-weight:bold;}

/* Hero (Unchanged Video Setup, Right Aligned Text) */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center;}
.video-bg-container { position: absolute; top:0; left:0; width:100%; height:100%; z-index:0; overflow:hidden;}
.hero-video-bg { width:100%; height:100%; object-fit:cover; object-position:center left; filter: contrast(1.05) brightness(1.05); }
.video-overlay { position:absolute; top:0; left:0; width:100%; height:100%; background: linear-gradient(to left, rgba(13,13,13,0.95) 0%, rgba(13,13,13,0.5) 50%, transparent 100%); z-index:1; }

.hero-content {
    flex: 1; z-index: 10; max-width: 650px; position: relative; padding-right: 5%; margin-left: auto; text-align: right; margin-top: 50px;
}
.title { font-size: 5.5rem; line-height: 1.1; margin-bottom: 1rem; color: #fff;}
.description { font-size: 1.8rem; color: var(--text-muted); margin-bottom: 3rem; font-style: italic;}
.cta-group { display: flex; gap: 1.5rem; justify-content: flex-end; }

/* Buttons */
.btn { padding: 1.2rem 2.5rem; font-family: 'Orbitron', sans-serif; font-weight: 900; text-transform: uppercase; border: none; cursor: pointer; border-radius: 5px; transition: 0.3s; font-size: 1rem; letter-spacing: 1px; text-decoration:none; display: inline-block; text-align:center;}
.btn-primary { background: var(--primary-red); color: white; }
.glow-btn:hover { box-shadow: 0 0 30px rgba(255, 26, 26, 0.8); transform: translateY(-3px); background: #ff3333;}
.btn-secondary { background: transparent; color: white; border: 1px solid var(--text-main); }
.btn-secondary:hover { background: rgba(255,255,255,0.1); }
.btn-outline { background: transparent; border: 1px solid rgba(255,255,255,0.2); color: white; padding: 0.8rem 1.5rem; }
.btn-outline:hover { border-color: white; background:rgba(255,255,255,0.1); }

/* Suits Section */
.suits-section { padding: 8rem 5%; background: var(--dark-bg); position:relative; z-index:2;}
.suits-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 3rem; }
.suit-card { padding: 2rem; overflow: hidden; transition: 0.4s; }
.suit-card:hover { transform: translateY(-10px); box-shadow: 0 10px 40px rgba(255, 26, 26, 0.1); border-color: rgba(255, 26, 26, 0.3);}
.suit-img-container { position: relative; height: 350px; border-radius: 10px; overflow: hidden; margin-bottom: 2rem; background: #000; }
.suit-img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; opacity: 0.9;}
.suit-card:hover .suit-img { transform: scale(1.1); opacity: 1;}
.eye-glow { position: absolute; top:40%; left:50%; width: 50px; height: 10px; background: rgba(255,255,255,0.8); box-shadow: 0 0 20px 10px rgba(255,255,255,0.8); transform: translate(-50%, -50%); opacity: 0; transition: 0.4s; pointer-events:none;}
.suit-card:hover .eye-glow { opacity: 0.7; }
.eye-glow.symbiote { box-shadow: 0 0 30px 15px rgba(255,255,255,1); }
.eye-glow.iron { background: var(--secondary-blue); box-shadow: 0 0 30px 10px var(--secondary-blue); }
.suit-info h3 { font-size: 2rem; margin-bottom: 0.5rem; }
.price { font-size: 1.5rem; color: var(--primary-red); font-weight: bold; margin-bottom: 1.5rem; }
.suit-actions { display: flex; gap: 1rem; }
.buy-suit-btn { flex: 1; padding: 0.8rem; }

/* Try Before Buy */
.try-section { padding: 6rem 5%; text-align: center; }
.try-container { max-width: 800px; margin: 0 auto; padding: 4rem; border: 1px dashed rgba(255,255,255,0.3); border-radius: 20px; transition:0.3s; }
.upload-area { cursor:pointer; }
.try-container:hover .upload-area i { color: var(--primary-red); }
.upload-area i { font-size: 4rem; color: var(--text-muted); margin-bottom: 1rem; transition: 0.3s;}
.hidden { display: none !important; }
.spinner { width: 60px; height: 60px; border: 4px solid rgba(255,255,255,0.1); border-radius: 50%; border-top-color: var(--primary-red); animation: spin 1s linear infinite; margin: 0 auto 2rem; }
@keyframes spin { 100% { transform: rotate(360deg); } }
.progress-bar { width: 100%; max-width: 400px; height: 10px; background: rgba(255,255,255,0.1); border-radius: 5px; overflow: hidden; margin: 2rem auto 0;}
.progress { width: 0%; height: 100%; background: var(--primary-red); box-shadow: 0 0 10px var(--primary-red); transition: width 0.2s;}
.result-img { width: 100%; border-radius: 10px; margin-bottom: 2rem; }

/* Customize */
.customize-section { padding: 6rem 5%; background: rgba(15,15,15,0.8); border-top: 1px solid var(--glass-border); border-bottom: 1px solid var(--glass-border);}/* ====== PRO SUIT CONFIGURATOR ====== */
.config-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; max-width: 1300px; margin: 0 auto; align-items: start; position: relative; z-index: 5;
}
.config-controls { padding: 2.5rem; display: flex; flex-direction: column; gap: 2rem; }
.config-step { border-bottom: 1px solid rgba(0, 170, 255, 0.1); padding-bottom: 2rem; }
.config-step:last-child { border-bottom: none; padding-bottom: 0; }
.step-header { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.5rem; }
.step-num { font-family: 'Orbitron'; color: var(--secondary-blue); font-size: 1.5rem; font-weight: bold; opacity: 0.8; }
.step-header h4 { font-size: 1.2rem; color: #fff; margin: 0; text-transform: uppercase; letter-spacing: 1px;}

.suit-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.suit-card { background: rgba(0,0,0,0.4); border: 1px solid rgba(255,255,255,0.1); border-radius: 8px; padding: 10px; cursor: pointer; text-align: center; transition: 0.3s; }
.suit-card:hover { border-color: rgba(255,255,255,0.5); transform: translateY(-3px); }
.suit-card.active { border-color: var(--primary-red); box-shadow: 0 0 15px rgba(255,26,26,0.4); background: rgba(255,26,26,0.1); }
.suit-card span { display: block; margin-top: 8px; font-family: 'Outfit'; font-size: 0.8rem; font-weight: bold; color: var(--text-muted); text-transform: uppercase; }
.suit-card.active span { color: #fff; text-shadow: 0 0 5px var(--primary-red); }

.img-crop { width: 100%; height: 60px; background-image: url('assets/download (11).jpg'); background-size: cover; border-radius: 5px;}
.suit-classic { filter: normal; }
.suit-symbiote { filter: invert(1) hue-rotate(180deg) brightness(1.2); }
.suit-iron { filter: hue-rotate(140deg) saturate(1.5); }
.suit-stealth { filter: sepia(1) brightness(0.4) contrast(1.5) hue-rotate(180deg); }

.logo-grid { display: flex; gap: 1rem; flex-wrap: wrap;}
.logo-option { width: 60px; height: 60px; border-radius: 8px; border: 1px solid rgba(255,255,255,0.1); background-image: url('assets/Spider-Man Symbol Evolution.jpg'); background-size: 400px auto; cursor: pointer; transition: 0.3s; filter: invert(1) brightness(2); background-color: rgba(0,0,0,0.6); }
.logo-option:hover { transform: scale(1.1); border-color: #fff; }
.logo-option.active { border-color: var(--secondary-blue); box-shadow: 0 0 15px rgba(0,170,255,0.5); }
.none-option { display: flex; justify-content: center; align-items: center; background: none !important; font-size:0.7rem; font-family: 'Orbitron'; font-weight:bold; color: #aaa; filter: none !important; }

#eyes-grid { display: flex; gap: 1rem; }
.suit-name-input { width: 100%; padding: 1rem; background: rgba(0,0,0,0.6); border: 1px solid rgba(0,170,255,0.3); color: #fff; font-family: 'Orbitron'; font-size: 1rem; border-radius: 5px; margin-bottom: 1.5rem; outline: none; transition: 0.3s; }
.suit-name-input:focus { border-color: var(--secondary-blue); box-shadow: 0 0 15px rgba(0,170,255,0.3); }

.pro-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.full-span { grid-column: span 2; }
.flex-btn { display: flex; justify-content: center; align-items: center; gap: 0.5rem; padding: 1rem; font-size: 0.9rem;}

.preview-stage { position: relative; width: 100%; height: 700px; background: rgba(5, 8, 15, 0.8); border: 1px solid rgba(0,170,255,0.2); border-radius: 10px; box-shadow: inset 0 0 50px rgba(0,0,0,0.9), 0 10px 40px rgba(0,0,0,0.5); overflow: hidden; display: flex; justify-content: center; align-items: center; }
.hologram-grid { position:absolute; top:0; left:0; width:100%; height:100%; background-image: linear-gradient(rgba(0, 170, 255, 0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(0, 170, 255, 0.05) 1px, transparent 1px); background-size: 30px 30px; perspective: 500px; transform: rotateX(60deg) scale(2); transform-origin: bottom center; z-index: 0; opacity: 0.5; pointer-events: none;}

.preview-layers { position: relative; width: 400px; height: 600px; z-index: 2; transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
.layer-base { width: 100%; height: 100%; object-fit: contain; transition: filter 0.4s ease; filter: drop-shadow(0 10px 20px rgba(0,0,0,0.8));}
.layer-logo { position: absolute; top: 15%; left: 50%; transform: translateX(-50%); width: 110px; height: 110px; background-size: cover; mix-blend-mode: screen; filter: drop-shadow(0 0 10px rgba(0,170,255,0.8)) invert(1); opacity: 0.9; transition: 0.3s; z-index: 5;}
.layer-eye-glow { position: absolute; top: 15%; left: 50%; transform: translateX(-50%); width: 120px; height: 60px; background: transparent; border-radius: 50px; transition: 0.3s; filter: blur(15px); mix-blend-mode: screen; pointer-events: none;}

.eye-glow-active { background: rgba(0, 170, 255, 0.8); box-shadow: 0 0 40px rgba(0,170,255,1); }
.eye-angry-active { background: rgba(255, 26, 26, 0.8); box-shadow: 0 0 40px rgba(255,26,26,1); }
.base-angry { filter: contrast(130%) brightness(0.8) drop-shadow(0 10px 20px rgba(255,0,0,0.2)) !important; }

.preview-hud { position: absolute; top: 0; left:0; width:100%; height: 100%; z-index: 5; pointer-events: none; padding: 20px; }
.hud-corner { position: absolute; width: 30px; height: 30px; border: 2px solid rgba(0,170,255,0.5); }
.tl { top: 20px; left: 20px; border-right: none; border-bottom: none; }
.tr { top: 20px; right: 20px; border-left: none; border-bottom: none; }
.bl { bottom: 20px; left: 20px; border-right: none; border-top: none; }
.br { bottom: 20px; right: 20px; border-left: none; border-top: none; }

.live-tag { position: absolute; top: 30px; left: 60px; font-family: 'Orbitron'; font-size: 0.8rem; color: var(--secondary-blue); display:flex; align-items:center; gap:8px; letter-spacing: 2px;}
.blink-dot { width: 8px; height: 8px; background: red; border-radius: 50%; animation: blinkStatus 1s infinite; box-shadow: 0 0 5px red;}
.suit-name-display { position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); font-family: 'Orbitron'; font-size: 1.5rem; letter-spacing: 5px; color: #fff; text-shadow: 0 0 15px rgba(0,170,255,0.8); text-transform: uppercase; white-space: nowrap;}
.color-palette { display: flex; gap: 1rem; }
.color-swatch { width: 50px; height: 50px; border-radius: 50%; cursor: pointer; transition:0.3s; border: 3px solid transparent; }
.color-swatch:hover, .color-swatch.active { border-color: white; transform: scale(1.1); box-shadow: 0 0 15px currentColor;}
.button-group { display: flex; gap: 1rem; }
.btn-select { padding: 1rem; background: transparent; border: 1px solid rgba(255,255,255,0.2); color: white; cursor: pointer; flex:1; transition: 0.3s; font-family:'Outfit'; font-weight:bold; border-radius: 5px;}
.btn-select.active, .btn-select:hover { background: var(--primary-red); border-color: var(--primary-red); box-shadow: 0 0 15px rgba(255,26,26,0.3);}
.builder-preview { width: 100%; position:relative; }
.preview-pod { width: 100%; padding-top: 100%; position:relative; border-radius: 50%; border: 2px dashed rgba(255,255,255,0.2); display:flex; justify-content:center; align-items:center; }
.preview-pod img { position:absolute; top:5%; left:5%; width:90%; height:90%; object-fit: cover; border-radius: 50%; filter: drop-shadow(0 0 30px rgba(0,170,255,0.2)); transition: 0.5s filter; }
.hologram-effect { position:absolute; bottom:-10%; left:50%; transform:translateX(-50%); width: 70%; height: 25px; background: var(--secondary-blue); filter: blur(25px); opacity: 0.5; animation: pulse 3s infinite;}
@keyframes pulse { 0% { opacity: 0.2; } 50% { opacity: 0.6; } 100% { opacity: 0.2; } }
.full-width { width: 100%; }

/* Story / Experience */
.story-section { min-height: 70vh; display: flex; align-items: center; justify-content: center; text-align: center; padding: 5%; background: radial-gradient(circle at center, #1a0505 0%, var(--dark-bg) 70%); border-bottom: 1px solid rgba(255,26,26,0.1);}
.story-content { max-width: 900px; }
.story-text { font-size: 2.5rem; color: var(--text-muted); font-style: italic; margin-bottom: 2rem;}
.story-text.highlight { font-size: 4rem; color: white; font-style: normal; text-shadow: 0 0 30px rgba(255,26,26,0.4); }

/* Reviews */
.reviews-section { padding: 6rem 5%; }
.reviews-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; max-width: 1200px; margin: 0 auto;}
.review-card { padding: 2.5rem 2rem; display: flex; flex-direction: column; justify-content: space-between;}
.review-photo { width: 100%; height: 260px; object-fit: cover; border-radius: 12px; margin-bottom: 1.5rem; box-shadow: 0 5px 15px rgba(0,0,0,0.5); }
.stars { color: #ffcc00; margin-bottom: 1.5rem; letter-spacing: 3px; font-size: 1.2rem; filter: drop-shadow(0 0 5px #ffcc00); }
.review-card p { font-size: 1.1rem; font-style: italic; margin-bottom: 2rem; line-height: 1.6; color: rgba(255,255,255,0.9);}
.reviewer { display: flex; align-items: center; gap: 1rem; margin-top: auto; }
.avatar { width: 50px; height: 50px; border-radius: 50%; display: flex; justify-content: center; align-items: center; font-weight: bold; font-size: 1.5rem; color: white; border: 2px solid white;}
.reviewer span { font-weight: bold; font-family: 'Orbitron'; letter-spacing:1px; color: white;}

/* Checkout */
.checkout-section { padding: 8rem 5%; display: flex; justify-content: center; background: url('https://images.unsplash.com/photo-1544670259-2c3e1e2d78be') center/cover no-repeat; position:relative;}
.checkout-section::before { content:''; position:absolute; top:0;left:0;width:100%;height:100%;background:rgba(13,13,13,0.9); z-index:0;}
.checkout-container { width: 100%; max-width: 600px; padding: 4rem; border-top: 4px solid var(--primary-red); box-shadow: 0 20px 50px rgba(255,26,26,0.15); border-radius: 15px; position:relative; z-index:1; background: linear-gradient(rgba(5, 5, 5, 0.8), rgba(5, 5, 5, 0.8)), url('assets/download.jpg') center/cover no-repeat; backdrop-filter:blur(20px);}
.form-group { margin-bottom: 2rem; }
.form-group label { display: block; margin-bottom: 0.8rem; font-weight: bold; color: var(--text-muted); font-family: 'Orbitron'; font-size: 0.9rem; letter-spacing:1px; text-transform: uppercase;}
.form-group input, .form-group textarea { width: 100%; padding: 1.2rem; background: rgba(0,0,0,0.6); border: 1px solid var(--glass-border); color: white; border-radius: 8px; font-family:'Outfit'; font-size:1rem; transition:0.3s;}
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--primary-red); box-shadow: 0 0 15px rgba(255,26,26,0.4); background: rgba(255,26,26,0.02);}
.checkout-btn { position: relative; overflow: visible !important; margin-top:2rem; width: 100%;}
.glow-bg-pulse { animation: bgPulse 2s infinite; }
@keyframes bgPulse { 0% { box-shadow: 0 0 20px var(--primary-red); background: #ff1a1a;} 50% { box-shadow: 0 0 50px var(--primary-red); background: #ff4d4d;} 100% { box-shadow: 0 0 20px var(--primary-red); background: #ff1a1a;} }

/* Footer */
.footer { padding: 5rem 5% 2rem; background: #050505; border-top: 1px solid rgba(255,255,255,0.05); }
.footer-content { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 3rem; margin-bottom: 4rem; max-width: 1200px; margin-left:auto; margin-right:auto;}
.footer-brand h2 { display: flex; align-items: center; gap: 1rem; font-size: 2.2rem; margin-bottom: 1rem; color:white;}
.footer-brand h2 i { color: var(--primary-red); filter: drop-shadow(0 0 5px var(--primary-red));}
.footer-brand p { color: var(--text-muted); font-size: 1.1rem;}
.footer-links { display: flex; gap: 4rem; }
.link-column h4 { margin-bottom: 1.5rem; color: white; letter-spacing:1px; text-transform:uppercase;}
.link-column a { display: block; color: var(--text-muted); text-decoration: none; margin-bottom: 1rem; transition:0.3s;}
.link-column a:hover { color: var(--primary-red); padding-left: 10px; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 2rem; color: var(--text-muted); font-size:0.9rem; max-width: 1200px; margin: 0 auto;}
.pro-tip { color: var(--secondary-blue); font-weight: bold; letter-spacing: 2px; text-transform: uppercase; text-shadow: 0 0 10px rgba(0,170,255,0.3);}

/* Responsive */
@media (max-width: 768px) {
    .nav-links, .cart-icon { display: none; }
    .hero-content { padding-right: 0; text-align: center; }
    .video-overlay { background: linear-gradient(to bottom, rgba(13,13,13,0.8) 0%, rgba(13,13,13,0.6) 100%); }
    .title { font-size: 3.5rem; }
    .cta-group { justify-content: center; flex-direction: column; }
    .customize-grid { grid-template-columns: 1fr; }
    .footer-content { flex-direction: column; }
    .footer-bottom { flex-direction: column; gap:1.5rem; text-align:center;}
    .checkout-container { padding: 2rem; }
    .story-text { font-size: 1.8rem; }
    .story-text.highlight { font-size: 2.5rem; }
}

/* Animations Scroll */
.fade-in-scroll { opacity: 0; transform: translateY(50px); transition: opacity 1s cubic-bezier(0.19, 1, 0.22, 1), transform 1s cubic-bezier(0.19, 1, 0.22, 1); }
.fade-in-scroll.appear { opacity: 1; transform: translateY(0); }

/* --- Diagnostics HUD Section (Iron Man / Cyberpunk Style) --- */
.diagnostics-section {
    padding: 6rem 5%;
    background: radial-gradient(circle at center, rgba(0, 170, 255, 0.08) 0%, rgba(10, 15, 25, 0.95) 60%, var(--dark-bg) 100%);
    position: relative;
    overflow: hidden;
    border-top: 1px solid rgba(0, 170, 255, 0.1);
}

/* Sub-layer for data noise / cinematic depth */
.diagnostics-section::after {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-image: url('data:image/svg+xml,%3Csvg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"%3E%3Cfilter id="noiseFilter"%3E%3CfeTurbulence type="fractalNoise" baseFrequency="0.65" numOctaves="3" stitchTiles="stitch"/%3E%3C/filter%3E%3Crect width="100%25" height="100%25" filter="url(%23noiseFilter)"/%3E%3C/svg%3E');
    opacity: 0.12; pointer-events: none; mix-blend-mode: overlay; z-index: 1;
}

.title-cyber {
    text-shadow: 0 0 15px rgba(0, 170, 255, 0.6);
}

.hud-container {
    position: relative;
    width: 100%;
    max-width: 1200px;
    height: 700px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1200px;
    transform-style: preserve-3d;
}

/* Center Character */
.hud-center {
    position: relative;
    width: 400px;
    height: 600px;
    z-index: 5;
    display: flex;
    justify-content: center;
    align-items: center;
    transform-style: preserve-3d;
    transition: transform 0.1s ease-out; /* Smooth parallax */
}

/* Model Container for Floating Animation */
.model-container {
    width: 100%;
    height: 100%;
    position: relative;
    z-index: 2;
    animation: modelFloat 5s ease-in-out infinite;
}
@keyframes modelFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
}

/* NEW: Continuous Body Scans */
.scan-vertical {
    position: absolute;
    width: 100%; height: 2px;
    background: linear-gradient(90deg, transparent, rgba(0, 170, 255, 0.8), transparent);
    box-shadow: 0 0 10px rgba(0, 170, 255, 0.8);
    z-index: 6; pointer-events: none;
    animation: scanY 3s linear infinite;
}
@keyframes scanY {
    0% { top: 0%; opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { top: 100%; opacity: 0; }
}

.scan-horizontal {
    position: absolute;
    height: 100%; width: 2px;
    background: linear-gradient(180deg, transparent, rgba(255, 26, 26, 0.5), transparent);
    box-shadow: 0 0 10px rgba(255, 26, 26, 0.5);
    z-index: 6; pointer-events: none;
    animation: scanX 5s linear infinite;
}
@keyframes scanX {
    0% { left: 0%; opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { left: 100%; opacity: 0; }
}

.hud-spiderman {
    width: 100%;
    height: 100%;
    object-fit: contain;
    position: relative;
    z-index: 2;
    /* Holographic 3D Model Effect for Transparent Image */
    filter: brightness(1.2) contrast(1.1) drop-shadow(0 0 20px rgba(0, 170, 255, 0.4)) drop-shadow(0 0 40px rgba(0, 170, 255, 0.2));
    mask-image: linear-gradient(to bottom, black 80%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 80%, transparent 100%);
    transition: filter 0.5s ease;
}

/* NEW: Core Scan Rings */
.core-ring {
    position: absolute;
    width: 180px; height: 180px;
    border: 1px dashed rgba(0, 170, 255, 0.4);
    border-left: 2px solid rgba(0, 170, 255, 0.8);
    border-right: 2px solid rgba(0, 170, 255, 0.8);
    border-radius: 50%;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    animation: rotateRing 6s linear infinite;
    z-index: 1;
    box-shadow: 0 0 40px rgba(0, 170, 255, 0.4), inset 0 0 20px rgba(0, 170, 255, 0.2);
    pointer-events: none;
}
.core-ring.ring2 {
    width: 240px; height: 240px;
    border: 1px dotted rgba(255, 26, 26, 0.3);
    border-top: 2px solid rgba(255, 26, 26, 0.8);
    animation: rotateRing 12s linear infinite reverse;
}
.core-ring.ring3 {
    width: 300px; height: 300px;
    border: 1px solid rgba(0, 170, 255, 0.1);
    border-bottom: 3px solid rgba(0, 170, 255, 0.5);
    animation: rotateRing 18s linear infinite;
}
@keyframes rotateRing {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* NEW: Core Status */
.status-core {
    position: absolute;
    top: 60%; left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-family: 'Orbitron', monospace;
    font-size: 0.8rem;
    letter-spacing: 4px;
    text-shadow: 0 0 15px rgba(0, 170, 255, 1);
    z-index: 8;
    animation: blinkStatus 1.5s infinite;
    pointer-events: none;
}
@keyframes blinkStatus {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* Glow Lights Behind Character */
.hud-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    z-index: 0;
    opacity: 0.6;
    animation: breathe 4s infinite alternate ease-in-out;
    transition: filter 0.5s, opacity 0.5s;
}
.hud-glow.cyan { width: 350px; height: 350px; background: rgba(0, 170, 255, 0.4); top: 10%; left: 50%; transform: translateX(-50%); }
.hud-glow.red { width: 300px; height: 300px; background: rgba(255, 26, 26, 0.3); bottom: 10%; right: 10%; animation-delay: 2s;}

@keyframes breathe {
    0% { opacity: 0.4; transform: translateX(-50%) scale(0.9); }
    100% { opacity: 0.8; transform: translateX(-50%) scale(1.1); }
}

/* Intense Glow modifier */
.intense-glow .hud-glow.cyan { opacity: 1; filter: blur(80px); background: rgba(0, 170, 255, 0.6); }
.intense-glow .hud-glow.red { opacity: 0.8; filter: blur(80px); background: rgba(255, 26, 26, 0.5); }
.intense-glow .hud-spiderman { filter: brightness(1.5) contrast(1.2) drop-shadow(0 0 30px rgba(0, 170, 255, 0.8)) drop-shadow(0 0 60px rgba(0, 170, 255, 0.5)); }
.intense-glow .pulse-ring { animation-duration: 1.5s !important; }

/* Micro Labels Intense */
.micro {
    position: absolute;
    font-family: 'Orbitron', monospace;
    font-size: 0.70rem;
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 2px;
    z-index: 6;
    transform-style: preserve-3d;
    transform: translateZ(80px);
    text-transform: uppercase;
    text-shadow: 0 0 5px rgba(0,170,255,0.4);
    animation: microFade 3s infinite alternate;
}
@keyframes microFade {
    from { opacity: 0.2; }
    to { opacity: 0.6; }
}
.micro-label {
    position: absolute;
    font-family: 'Orbitron', monospace;
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 1.5px;
    z-index: 6;
    display: flex; align-items: center; gap: 6px;
    opacity: 0.7;
    filter: drop-shadow(0 0 4px rgba(0,170,255,0.4));
    transform-style: preserve-3d;
    transform: translateZ(50px);
}
.micro-dot {
    width: 4px; height: 4px; background: rgba(0, 170, 255, 0.8); border-radius: 50%;
    box-shadow: 0 0 5px rgba(0,170,255,0.8);
    animation: blinkDot 1.5s infinite;
}
@keyframes blinkDot { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }

/* Scanning Grid & Reticle Overlay */
.hud-grid-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: 
        linear-gradient(rgba(0, 170, 255, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 170, 255, 0.1) 1px, transparent 1px);
    background-size: 20px 20px;
    z-index: 3;
    opacity: 0.3;
    clip-path: circle(40% at 50% 50%);
    animation: spinSlow 30s linear infinite;
}
@keyframes spinSlow { 100% { transform: rotate(360deg); } }

/* Target Reticle */
.reticle {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 150px; height: 150px;
    z-index: 4;
    border-radius: 50%;
    border: 1px dashed rgba(255, 26, 26, 0.5);
    animation: spinSlow reverse 20s linear infinite;
}
.reticle-part { position: absolute; width: 20px; height: 20px; border: 2px solid var(--primary-red); }
.reticle-part.top-left { top: -10px; left: -10px; border-right: none; border-bottom: none; }
.reticle-part.top-right { top: -10px; right: -10px; border-left: none; border-bottom: none; }
.reticle-part.bottom-left { bottom: -10px; left: -10px; border-right: none; border-top: none; }
.reticle-part.bottom-right { bottom: -10px; right: -10px; border-left: none; border-top: none; }

/* Multi-Scan Lines & Rings */
.scan-line {
    position: absolute;
    left: -20%; width: 140%; height: 2px;
    z-index: 10;
    opacity: 0;
}
.cyan-scan {
    background: linear-gradient(90deg, transparent, #00aaff, transparent);
    box-shadow: 0 0 30px 5px rgba(0, 170, 255, 0.8);
}
.red-scan {
    background: linear-gradient(90deg, transparent, #ff1a1a, transparent);
    box-shadow: 0 0 30px 5px rgba(255, 26, 26, 0.8);
    height: 1px;
}
.scan-line.scanning { animation: scanSweep 2.5s cubic-bezier(0.4, 0, 0.2, 1); }
.red-scan.scanning { animation: scanSweep 1.8s cubic-bezier(0.4, 0, 0.2, 1) 0.5s; }
.scan-line.fast-scan { animation-duration: 1.2s !important; }
.red-scan.fast-scan { animation-duration: 0.9s !important; }

@keyframes scanSweep {
    0% { top: -10%; opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { top: 110%; opacity: 0; }
}

/* Pulse Rings */
.pulse-ring {
    position: absolute; top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    border: 2px solid rgba(0,170,255,0.3);
    z-index: 1; pointer-events: none;
    opacity: 0;
}
.cyan-ring {
    box-shadow: 0 0 20px rgba(0,170,255,0.2), inset 0 0 20px rgba(0,170,255,0.2);
    animation: ringPulse 4s cubic-bezier(0.1, 0.8, 0.3, 1) infinite;
}
.red-ring {
    border-color: rgba(255,26,26,0.3);
    box-shadow: 0 0 20px rgba(255,26,26,0.2), inset 0 0 20px rgba(255,26,26,0.2);
    animation: ringPulse 5s cubic-bezier(0.1, 0.8, 0.3, 1) infinite 2s;
}
@keyframes ringPulse {
    0% { width: 50px; height: 50px; opacity: 1; border-width: 4px; }
    100% { width: 600px; height: 600px; opacity: 0; border-width: 1px; }
}

/* Particles */
.hud-particles {
    position: absolute; top:0; left:0; width:100%; height:100%; z-index: 1; overflow: hidden; pointer-events: none;
}
.particle {
    position: absolute; background: #fff; border-radius: 50%;
    opacity: 0.3; animation: floatUp linear infinite;
    box-shadow: 0 0 5px #fff;
}
@keyframes floatUp {
    0% { transform: translateY(100vh) scale(0.5); opacity: 0; }
    20% { opacity: 0.5; }
    80% { opacity: 0.5; }
    100% { transform: translateY(-100px) scale(1.5); opacity: 0; }
}

/* UI Panels Upgrade */
.hud-panel {
    position: absolute;
    background: rgba(8, 12, 18, 0.65);
    box-shadow: 0 0 10px rgba(0, 170, 255, 0.1), inset 0 0 30px rgba(0, 170, 255, 0.05);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(0, 170, 255, 0.15);
    border-radius: 8px;
    padding: 1.5rem;
    width: 260px;
    z-index: 10;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 15px), calc(100% - 15px) 100%, 0 100%);
    font-family: 'Orbitron', sans-serif;
    transform-style: preserve-3d;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), border-color 0.4s ease, box-shadow 0.4s ease, opacity 0.4s ease;
    opacity: 0.75;
}

.hud-container:hover .hud-panel {
    opacity: 0.95;
}

.hud-panel:hover {
    border-color: rgba(0, 170, 255, 0.6);
    box-shadow: 0 0 20px rgba(0, 170, 255, 0.2), inset 0 0 40px rgba(0, 170, 255, 0.15);
    transform: translateY(-5px) scale(1.03) translateZ(20px) !important;
    opacity: 1 !important;
}

/* Panel Positions */
.top-left { top: 10%; left: 0; }
.bottom-left { bottom: 15%; left: 5%; }
.top-right { top: 15%; right: 0; }
.bottom-right { bottom: 10%; right: 5%; }

/* Panel Header */
.panel-header { display: flex; align-items: center; gap: 0.8rem; margin-bottom: 1rem; border-bottom: 1px solid rgba(0, 170, 255, 0.2); padding-bottom: 0.5rem; }
.panel-header i { font-size: 1.2rem; color: var(--secondary-blue); text-shadow: 0 0 10px var(--secondary-blue); }
.panel-header h4 { font-size: 1rem; letter-spacing: 1px; color: #fff; text-shadow: 0 0 5px rgba(255,255,255,0.5); margin:0;}

/* Panel Content */
.hud-bar { width: 100%; height: 6px; background: rgba(255, 255, 255, 0.1); border-radius: 3px; overflow: hidden; margin-bottom: 0.5rem; position: relative;}
.hud-progress { height: 100%; border-radius: 3px; position:relative; overflow:hidden; }

/* Continuous Animation override for live feel */
.cyan-bar { 
    background: var(--secondary-blue); box-shadow: 0 0 10px var(--secondary-blue); 
    animation: loadCyan 3s ease-in-out infinite alternate !important; 
}
.red-bar { 
    background: var(--primary-red); box-shadow: 0 0 10px var(--primary-red); 
    animation: loadRed 2.5s ease-in-out infinite alternate !important; 
}
@keyframes loadCyan { from { width: 60%; } to { width: 95%; } }
@keyframes loadRed { from { width: 40%; } to { width: 80%; } }

/* Animated shine on bars */
.hud-progress::after {
    content:''; position:absolute; top:0;left:-50%; width:50%; height:100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.8), transparent);
    animation: shine 2s infinite;
}
@keyframes shine { 100% { left: 150%; } }

.hud-value-row { display: flex; justify-content: space-between; font-size: 0.8rem; color: var(--text-muted); font-family: 'Outfit'; font-weight: bold; }
.glow-text-cyan { color: var(--secondary-blue); text-shadow: 0 0 10px var(--secondary-blue); font-family: 'Orbitron'; font-size: 1.1rem;}
.glow-text-red { color: var(--primary-red); text-shadow: 0 0 10px var(--primary-red); font-family: 'Orbitron'; font-size: 1.1rem;}

.hud-status { font-family: 'Outfit'; font-weight: bold; font-size: 1rem; margin-bottom: 1rem; letter-spacing: 2px;}
.status-online { color: #00ff88; text-shadow: 0 0 10px #00ff88; }

/* Visualizer */
.hud-wave-visualizer { display: flex; gap: 4px; align-items: flex-end; height: 30px; }
.wave-bar { width: 8px; background: #00ff88; box-shadow: 0 0 10px #00ff88; border-radius: 2px; animation: wave 1s ease-in-out infinite alternate; }
.wave-bar:nth-child(2) { animation-delay: 0.1s; }
.wave-bar:nth-child(3) { animation-delay: 0.2s; }
.wave-bar:nth-child(4) { animation-delay: 0.3s; }
.wave-bar:nth-child(5) { animation-delay: 0.4s; }
@keyframes wave { 0% { height: 10px; } 100% { height: 30px; } }

/* Circular Chart */
.hud-circle-chart-container { position: relative; width: 80px; height: 80px; margin: 0 auto; }
.circular-chart { 
    display: block; margin: 0 auto; max-width: 100%; max-height: 250px; 
    animation: rotateLive 10s linear infinite; 
}
@keyframes rotateLive {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
.circle-bg { fill: none; stroke: rgba(255,255,255,0.1); stroke-width: 3.8; }
.circle { fill: none; stroke-width: 2.8; stroke-linecap: round; transform-origin: 50% 50%; transform: rotate(-90deg); animation: fillCircle 2s ease-out forwards; }
.circular-chart.cyan .circle { stroke: var(--secondary-blue); filter: drop-shadow(0 0 5px var(--secondary-blue)); }
.percentage { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); font-size: 1.2rem; font-family: 'Orbitron'; font-weight: bold; }
@keyframes fillCircle { 0% { stroke-dasharray: 0, 100; } }

/* SVG Connecting Lines */
.hud-svg-lines { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 2; pointer-events: none; }
.hud-line { 
    fill: none; 
    stroke: rgba(0, 170, 255, 0.3); 
    stroke-width: 2; 
    stroke-dasharray: 5 15; 
    animation: dash 15s linear infinite; 
    transition: stroke 0.4s, stroke-width 0.4s, filter 0.4s;
}
@keyframes dash { to { stroke-dashoffset: -1000; } }

/* Hover highlight using parent :has */
.hud-container:has(#panel-power:hover) #line-tl,
.hud-container:has(#panel-ai:hover) #line-bl,
.hud-container:has(#panel-integrity:hover) #line-tr,
.hud-container:has(#panel-web:hover) #line-br {
    stroke: var(--primary-red);
    stroke-width: 3;
    filter: drop-shadow(0 0 10px var(--primary-red));
}

.intense-glow .hud-line {
    stroke: rgba(0, 170, 255, 0.9);
    stroke-width: 3;
    filter: drop-shadow(0 0 10px rgba(0,170,255,1));
    animation-duration: 5s; /* faster data flow */
}

/* Cyber Button */
.cyber-btn { position:relative; overflow:hidden; border: 1px solid var(--secondary-blue); background: rgba(0,170,255,0.1); color: var(--secondary-blue); text-shadow: 0 0 5px var(--secondary-blue); box-shadow: 0 0 15px rgba(0,170,255,0.2), inset 0 0 10px rgba(0,170,255,0.1); font-size: 1.2rem; padding: 1.2rem 3rem;}
.cyber-btn:hover { background: rgba(0,170,255,0.3); box-shadow: 0 0 25px rgba(0,170,255,0.5), inset 0 0 15px rgba(0,170,255,0.4); border-color: #fff; color: #fff;}

/* Responsive HUD */
@media (max-width: 1024px) {
    .hud-panel { width: 220px; font-size: 0.9rem; padding: 1rem; }
    .hud-center { width: 300px; }
}
@media (max-width: 768px) {
    .hud-container { height: auto; flex-direction: column; gap: 2rem; perspective: none; }
    .hud-panel { position: relative; top: 0 !important; left: 0 !important; right: 0 !important; bottom: 0 !important; width: 100%; max-width: 350px; }
    .hud-svg-lines { display: none; } /* Hide lines on mobile stack */
    .hud-center { margin: 2rem 0; width: 100%; max-width: 350px;}
}

/* --- Pro Suit Configurator --- */
/* --- Spider Abilities Lab UI --- */
.lab-controls { padding: 3rem; display: flex; flex-direction: column; gap: 2rem; justify-content: center; border-radius: 20px; border: 1px solid rgba(0, 170, 255, 0.2); box-shadow: 0 0 30px rgba(0, 0, 0, 0.5); background: rgba(10, 15, 20, 0.8); backdrop-filter: blur(15px); }
.lab-header h3 { font-size: 1.8rem; color: #fff; text-transform: uppercase; letter-spacing: 2px; display: flex; align-items: center; gap: 10px; margin-bottom: 0.5rem; text-shadow: 0 0 15px rgba(0, 170, 255, 0.5); }
.lab-header p { font-family: 'Orbitron'; font-size: 0.9rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; }

.ability-toggles { display: flex; flex-direction: column; gap: 1.5rem; width: 100%; }
.cyber-toggle { display: flex; justify-content: space-between; align-items: center; background: rgba(0,0,0,0.4); padding: 1.5rem; border-radius: 10px; border: 1px solid rgba(255,255,255,0.1); cursor: pointer; transition: 0.3s ease; position: relative; overflow: hidden; box-shadow: 0 0 10px rgba(0,0,0,0.5); }
.cyber-toggle::before { content: ''; position: absolute; left: 0; top: 0; height: 100%; width: 5px; background: rgba(255,255,255,0.2); transition: 0.3s ease; }
.cyber-toggle:hover { border-color: rgba(255,255,255,0.3); background: rgba(255,255,255,0.05); }

.toggle-info { display: flex; align-items: center; gap: 15px; font-family: 'Orbitron'; color: #ccc; z-index: 2; transition: 0.3s; }
.toggle-info i { font-size: 1.6rem; color: #777; transition: 0.3s; width: 35px; text-align: center; }
.toggle-details { display: flex; flex-direction: column; gap: 3px; }
.ability-name { font-weight: bold; font-size: 1.1rem; color: #ccc; transition: 0.3s; }
.ability-price { font-family: 'Share Tech Mono', monospace; font-size: 0.9rem; color: rgba(255, 255, 255, 0.4); transition: 0.3s; }
.ability-header { display: flex; align-items: center; gap: 8px; }
.premium-tag { background: linear-gradient(45deg, #ff9900, #ff1a1a); color: #fff; font-size: 0.6rem; padding: 2px 6px; border-radius: 4px; letter-spacing: 1px; font-weight: bold; box-shadow: 0 0 5px rgba(255,153,0,0.5); }

/* Switch Active State Colors Overrides for Pricing text */
.cyber-toggle:has(input:checked) .ability-name { color: #fff; text-shadow: 0 0 10px rgba(255,255,255,0.8); }
.cyber-toggle:has(input:checked) .ability-price { color: #fff; text-shadow: 0 0 5px rgba(255,255,255,0.5); }

/* Price Display UI */
.total-price { font-family: 'Orbitron'; font-size: 2.5rem; font-weight: bold; color: #fff; text-shadow: 0 0 20px rgba(0, 170, 255, 0.8); transition: transform 0.2s ease, text-shadow 0.2s ease, color 0.2s ease; margin-top: 5px; }
.total-price.price-update { transform: scale(1.05); text-shadow: 0 0 30px #0ff, 0 0 10px #fff; color: #0ff; }

.cyber-toggle input[type="checkbox"] { display: none; }
.switch { position: relative; width: 65px; height: 35px; background: rgba(255,255,255,0.1); border-radius: 20px; border: 1px solid rgba(255,255,255,0.2); transition: 0.4s; z-index: 2; flex-shrink: 0; }
.switch::after { content: ''; position: absolute; top: 4px; left: 5px; width: 25px; height: 25px; background: #fff; border-radius: 50%; transition: 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55); box-shadow: 0 2px 5px rgba(0,0,0,0.5); }

/* Switch Active States */
.cyber-toggle input:checked + .switch::after { transform: translateX(28px); }

/* Danger (Red) - Spider-Sense */
.toggle-danger input:checked + .switch { background: rgba(255, 26, 26, 0.3); border-color: #ff1a1a; box-shadow: 0 0 15px rgba(255, 26, 26, 0.5), inset 0 0 10px rgba(255, 26, 26, 0.5); }
.toggle-danger input:checked + .switch::after { background: #ff1a1a; box-shadow: 0 0 10px #ff1a1a; }
.toggle-danger:has(input:checked) { border-color: rgba(255, 26, 26, 0.4); background: rgba(255, 26, 26, 0.05); }
.toggle-danger:has(input:checked)::before { background: #ff1a1a; box-shadow: 0 0 15px #ff1a1a; }
.toggle-danger:has(input:checked) .toggle-info { color: #fff; text-shadow: 0 0 10px rgba(255, 26, 26, 0.8); }
.toggle-danger:has(input:checked) .toggle-info i { color: #ff1a1a; filter: drop-shadow(0 0 5px #ff1a1a); }

/* Primary (Blue) - Web Fluid */
.toggle-primary input:checked + .switch { background: rgba(0, 170, 255, 0.3); border-color: #00aaff; box-shadow: 0 0 15px rgba(0, 170, 255, 0.5), inset 0 0 10px rgba(0, 170, 255, 0.5); }
.toggle-primary input:checked + .switch::after { background: #00aaff; box-shadow: 0 0 10px #00aaff; }
.toggle-primary:has(input:checked) { border-color: rgba(0, 170, 255, 0.4); background: rgba(0, 170, 255, 0.05); }
.toggle-primary:has(input:checked)::before { background: #00aaff; box-shadow: 0 0 15px #00aaff; }
.toggle-primary:has(input:checked) .toggle-info { color: #fff; text-shadow: 0 0 10px rgba(0, 170, 255, 0.8); }
.toggle-primary:has(input:checked) .toggle-info i { color: #00aaff; filter: drop-shadow(0 0 5px #00aaff); }

/* Success (Green) - Wall Climbing */
.toggle-success input:checked + .switch { background: rgba(0, 255, 136, 0.3); border-color: #00ff88; box-shadow: 0 0 15px rgba(0, 255, 136, 0.5), inset 0 0 10px rgba(0, 255, 136, 0.5); }
.toggle-success input:checked + .switch::after { background: #00ff88; box-shadow: 0 0 10px #00ff88; }
.toggle-success:has(input:checked) { border-color: rgba(0, 255, 136, 0.4); background: rgba(0, 255, 136, 0.05); }
.toggle-success:has(input:checked)::before { background: #00ff88; box-shadow: 0 0 15px #00ff88; }
.toggle-success:has(input:checked) .toggle-info { color: #fff; text-shadow: 0 0 10px rgba(0, 255, 136, 0.8); }
.toggle-success:has(input:checked) .toggle-info i { color: #00ff88; filter: drop-shadow(0 0 5px #00ff88); }

/* Warning (Orange) - Super Strength */
.toggle-warning input:checked + .switch { background: rgba(255, 153, 0, 0.3); border-color: #ff9900; box-shadow: 0 0 15px rgba(255, 153, 0, 0.5), inset 0 0 10px rgba(255, 153, 0, 0.5); }
.toggle-warning input:checked + .switch::after { background: #ff9900; box-shadow: 0 0 10px #ff9900; }
.toggle-warning:has(input:checked) { border-color: rgba(255, 153, 0, 0.4); background: rgba(255, 153, 0, 0.05); }
.toggle-warning:has(input:checked)::before { background: #ff9900; box-shadow: 0 0 15px #ff9900; }
.toggle-warning:has(input:checked) .toggle-info { color: #fff; text-shadow: 0 0 10px rgba(255, 153, 0, 0.8); }
.toggle-warning:has(input:checked) .toggle-info i { color: #ff9900; filter: drop-shadow(0 0 5px #ff9900); }

/* Info (Cyan) - AI Assist */
.toggle-info-cyan input:checked + .switch { background: rgba(0, 255, 255, 0.3); border-color: #0ff; box-shadow: 0 0 15px rgba(0, 255, 255, 0.5), inset 0 0 10px rgba(0, 255, 255, 0.5); }
.toggle-info-cyan input:checked + .switch::after { background: #0ff; box-shadow: 0 0 10px #0ff; }
.toggle-info-cyan:has(input:checked) { border-color: rgba(0, 255, 255, 0.4); background: rgba(0, 255, 255, 0.05); }
.toggle-info-cyan:has(input:checked)::before { background: #0ff; box-shadow: 0 0 15px #0ff; }
.toggle-info-cyan:has(input:checked) .toggle-info { color: #fff; text-shadow: 0 0 10px rgba(0, 255, 255, 0.8); }
.toggle-info-cyan:has(input:checked) .toggle-info i { color: #0ff; filter: drop_shadow(0 0 5px #0ff); }

/* --- Live System Visualizer --- */
.sys-visualizer { width: 100%; height: 100%; display: flex; flex-direction: column; justify-content: center; align-items: center; background: radial-gradient(circle at center, rgba(0, 170, 255, 0.05) 0%, transparent 70%); border-radius: 20px; border: 1px solid rgba(0, 170, 255, 0.1); padding: 2rem; position: relative; overflow: hidden; }
.visualizer-container { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 4rem; z-index: 5; }

/* Energy Core */
.energy-core-container { position: relative; width: 250px; height: 250px; display: flex; justify-content: center; align-items: center; }
.energy-ring { position: absolute; border-radius: 50%; border: 2px dashed rgba(255, 255, 255, 0.1); transition: all 0.5s ease; }
.outer-ring { width: 250px; height: 250px; animation: spinRotate 20s linear infinite; }
.middle-ring { width: 180px; height: 180px; border: 2px solid rgba(0, 170, 255, 0.2); animation: spinRotateReverse 15s linear infinite; }
.inner-ring { width: 120px; height: 120px; border: 2px dotted rgba(255, 255, 255, 0.3); animation: spinRotate 10s linear infinite; }

.core-node { width: 80px; height: 80px; background: rgba(0, 0, 0, 0.8); border: 2px solid rgba(255, 255, 255, 0.2); border-radius: 50%; display: flex; justify-content: center; align-items: center; z-index: 10; font-size: 2rem; color: #555; box-shadow: 0 0 20px rgba(0,0,0,0.5), inset 0 0 15px rgba(255,255,255,0.05); transition: all 0.4s ease; }
.core-icon { transition: all 0.4s ease; text-shadow: 0 0 10px rgba(255,255,255,0.1); }

/* Reactor Nodes */
.reactor-node { position: absolute; width: 15px; height: 15px; border-radius: 50%; background: #333; box-shadow: 0 0 10px #000; transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275); opacity: 0.2; }
.node-sense { top: 10%; right: 20%; }
.node-web { bottom: 20%; right: 10%; }
.node-climb { bottom: 10%; left: 20%; }
.node-strength { top: 20%; left: 10%; }
.node-ai { top: -10px; left: 50%; transform: translateX(-50%); }

@keyframes spinRotate { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
@keyframes spinRotateReverse { 0% { transform: rotate(0deg); } 100% { transform: rotate(-360deg); } }

/* Active States applied by JS */
.core-sense .core-node { border-color: #ff1a1a; background: rgba(255, 26, 26, 0.1); box-shadow: 0 0 40px rgba(255, 26, 26, 0.6), inset 0 0 20px rgba(255, 26, 26, 0.4); }
.core-sense .core-icon { color: #ff1a1a; filter: drop-shadow(0 0 10px #ff1a1a); }
.core-sense .outer-ring { border-color: rgba(255, 26, 26, 0.3); box-shadow: 0 0 20px rgba(255, 26, 26, 0.2); animation: senseWave 1.5s infinite alternate; border-style: solid; }
@keyframes senseWave { 0% { transform: scale(1); opacity: 0.5; } 100% { transform: scale(1.15); opacity: 1; border-width: 4px; } }

.core-web .middle-ring { border-color: #00aaff; box-shadow: 0 0 30px rgba(0, 170, 255, 0.6); animation: webFlow 2s linear infinite; }
@keyframes webFlow { 0% { transform: rotate(0deg) scale(1); filter: hue-rotate(0deg); } 50% { transform: rotate(180deg) scale(1.05); filter: hue-rotate(20deg); } 100% { transform: rotate(360deg) scale(1); filter: hue-rotate(0deg); } }

.core-climb .inner-ring { border-color: #00ff88; background: rgba(0, 255, 136, 0.05); box-shadow: inset 0 0 20px rgba(0, 255, 136, 0.4), 0 0 20px rgba(0, 255, 136, 0.4); }

.core-strength .core-node { transform: scale(1.1); border-width: 4px; border-color: #ff9900; background: rgba(255, 153, 0, 0.15); box-shadow: 0 0 50px rgba(255, 153, 0, 0.8), inset 0 0 30px rgba(255, 153, 0, 0.6); }

/* Demo Video Modal */
.demo-modal {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.9); backdrop-filter: blur(10px);
    z-index: 10000; display: flex; justify-content: center; align-items: center;
    opacity: 0; pointer-events: none; transition: 0.3s;
}
.demo-modal:not(.hidden) { opacity: 1; pointer-events: all; }
.demo-modal-content {
    position: relative; width: 90%; max-width: 800px;
    background: #000; border-radius: 15px; border: 1px solid rgba(0, 170, 255, 0.3);
    box-shadow: 0 0 30px rgba(0, 170, 255, 0.2); overflow: hidden;
}
.close-demo-btn {
    position: absolute; top: 15px; right: 15px; background: rgba(255, 26, 26, 0.8);
    color: white; border: none; width: 40px; height: 40px; border-radius: 50%;
    font-size: 1.2rem; cursor: pointer; z-index: 10; transition: 0.3s;
}
.close-demo-btn:hover { background: #ff1a1a; transform: scale(1.1); }
#demo-video-player { width: 100%; max-height: 75vh; display: block; object-fit: contain; background: #000; }
.demo-controls {
    display: flex; justify-content: space-between; align-items: center;
    padding: 15px 20px; background: rgba(10, 15, 20, 0.9);
}
.demo-btn {
    background: transparent; color: white; border: 1px solid rgba(255, 255, 255, 0.2);
    width: 40px; height: 40px; border-radius: 5px; cursor: pointer; transition: 0.3s;
}
.demo-btn:hover { background: var(--secondary-blue); border-color: var(--secondary-blue); }
.demo-indicators { display: flex; gap: 8px; }
.demo-dot {
    width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, 0.2);
    cursor: pointer; transition: 0.3s;
}
.demo-dot.active { background: var(--secondary-blue); box-shadow: 0 0 10px var(--secondary-blue); }
.core-strength .core-icon { color: #ff9900; filter: drop-shadow(0 0 15px #ff9900); }

.core-ai .energy-core-container::after { content: ''; position: absolute; width: 300px; height: 300px; background: repeating-radial-gradient(circle, transparent, transparent 10px, rgba(0, 255, 255, 0.1) 12px, transparent 14px); animation: aiScan 4s linear infinite; border-radius: 50%; pointer-events: none; top: -25px; left: -25px;}
@keyframes aiScan { 0% { transform: scale(0.5); opacity: 0; } 50% { opacity: 1; } 100% { transform: scale(1.5); opacity: 0; } }

/* Node Activations */
.node-sense.active { background: #ff1a1a; box-shadow: 0 0 15px #ff1a1a; opacity: 1; transform: scale(1.5); }
.node-web.active { background: #00aaff; box-shadow: 0 0 15px #00aaff; opacity: 1; transform: scale(1.5); }
.node-climb.active { background: #00ff88; box-shadow: 0 0 15px #00ff88; opacity: 1; transform: scale(1.5); }
.node-strength.active { background: #ff9900; box-shadow: 0 0 15px #ff9900; opacity: 1; transform: scale(1.5); }
.node-ai.active { background: #0ff; box-shadow: 0 0 15px #0ff; opacity: 1; transform: scale(1.5); }

/* System Logs Terminal */
.system-logs { width: 100%; max-width: 450px; background: rgba(0, 0, 0, 0.6); border: 1px solid rgba(0, 170, 255, 0.2); border-radius: 10px; padding: 1.5rem; font-family: 'Share Tech Mono', monospace; font-size: 0.9rem; color: #00ffaa; box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.8), 0 10px 30px rgba(0,0,0,0.5); height: 200px; overflow-y: auto; display: flex; flex-direction: column; }
.log-header { padding-bottom: 0.8rem; border-bottom: 1px dashed rgba(0, 170, 255, 0.3); margin-bottom: 0.8rem; display: flex; align-items: center; gap: 10px; color: var(--text-muted); font-family: 'Orbitron'; font-size: 0.9rem; letter-spacing: 1px; flex-shrink: 0;}
.log-output { display: flex; flex-direction: column; gap: 8px; flex-grow: 1; overflow-y: auto;}
.log-output::-webkit-scrollbar { width: 3px; }
.log-output::-webkit-scrollbar-thumb { background: rgba(0, 170, 255, 0.3); border-radius: 4px; }
.log-entry { opacity: 0; transform: translateY(10px); animation: logEntryIn 0.3s ease forwards; line-height: 1.4; text-shadow: 0 0 5px currentColor; }
@keyframes logEntryIn { to { opacity: 1; transform: translateY(0); } }
.log-entry.danger { color: #ff1a1a; }
.log-entry.primary { color: #00aaff; }
.log-entry.success { color: #00ff88; }
.log-entry.warning { color: #ff9900; }
.log-entry.info { color: #0ff; }
.log-entry.system-init { color: #888; text-shadow: none; }

@media (max-width: 1024px) {
    .config-grid { grid-template-columns: 1fr; }
    .config-controls { margin-bottom: 2rem; }
    .config-preview { min-height: 400px; }
    .preview-stage { height: 450px; }
}

/* ========== SPIDER LOADER ========== */
#spider-loader {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: #0d0d0d; z-index: 99999;
    display: flex; justify-content: center; align-items: center;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}
#spider-loader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-inner { position: relative; display: flex; flex-direction: column; align-items: center; gap: 1.5rem; }
.loader-icon {
    font-size: 4rem; color: var(--primary-red);
    filter: drop-shadow(0 0 20px var(--primary-red)) drop-shadow(0 0 40px rgba(255,26,26,0.4));
    animation: loaderPulse 1.2s ease-in-out infinite alternate;
}
@keyframes loaderPulse { 0% { transform: scale(1); filter: drop-shadow(0 0 15px #ff1a1a); } 100% { transform: scale(1.25); filter: drop-shadow(0 0 40px #ff1a1a) drop-shadow(0 0 80px rgba(255,26,26,0.5)); } }
.loader-web-ring {
    position: absolute; top: 50%; left: 50%;
    border-radius: 50%; border: 1.5px solid rgba(255,26,26,0.3);
    transform: translate(-50%, -50%);
    animation: loaderRingExpand 1.8s ease-out infinite;
}
.ring-a { width: 80px; height: 80px; animation-delay: 0s; }
.ring-b { width: 120px; height: 120px; animation-delay: 0.4s; }
@keyframes loaderRingExpand { 0% { opacity:1; transform: translate(-50%,-50%) scale(0.6); } 100% { opacity:0; transform: translate(-50%,-50%) scale(1.8); } }
.loader-text { font-family: 'Orbitron'; font-size: 0.85rem; letter-spacing: 4px; color: var(--text-muted); text-transform: uppercase; animation: blinkStatus 1.2s infinite; }

/* ========== ENHANCED NAV HOVERS ========== */
.nav-links a { position: relative; }
.nav-links a::after { content: ''; position: absolute; bottom: -4px; left: 0; width: 0; height: 1px; background: var(--primary-red); box-shadow: 0 0 8px var(--primary-red); transition: width 0.3s ease; }
.nav-links a:hover::after { width: 100%; }

/* ========== REVIEWS OVERHAUL ========== */
.reviews-section { padding: 6rem 5% 4rem; overflow: hidden; }

/* Header */
.reviews-header { margin-bottom: 3rem; }
.reviews-title { font-size: 3.5rem; line-height: 1.2; margin-bottom: 1rem; }
.reviews-subtitle { font-size: 1.2rem; color: var(--text-muted); margin-bottom: 1.5rem; }
.reviews-subtitle strong { color: #fff; }

/* Trending Badge */
.trending-badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(255, 26, 26, 0.15); border: 1px solid rgba(255,26,26,0.4);
    color: var(--primary-red); font-family: 'Orbitron'; font-size: 0.75rem;
    letter-spacing: 3px; padding: 6px 16px; border-radius: 30px;
    margin-bottom: 1.5rem; text-transform: uppercase;
    animation: trendingGlow 2s ease-in-out infinite alternate;
}
@keyframes trendingGlow { from { box-shadow: 0 0 0 rgba(255,26,26,0); } to { box-shadow: 0 0 20px rgba(255,26,26,0.4); } }

/* Live Social Proof Bar */
.social-proof-live {
    display: inline-flex; align-items: center; gap: 10px;
    background: rgba(0,255,136,0.08); border: 1px solid rgba(0,255,136,0.2);
    color: rgba(255,255,255,0.8); padding: 8px 20px; border-radius: 30px;
    font-size: 0.95rem; margin-bottom: 0.5rem;
}
.social-proof-live strong { color: #00ff88; font-family: 'Orbitron'; }
.live-pulse { width: 8px; height: 8px; background: #00ff88; border-radius: 50%; box-shadow: 0 0 8px #00ff88; animation: blinkStatus 1s infinite; flex-shrink: 0; }

/* Carousel Wrapper */
.reviews-carousel-wrapper {
    position: relative; display: flex; align-items: center; gap: 1rem;
    overflow: hidden;
    padding: 0 10px;
}
.reviews-carousel {
    display: flex; gap: 1.5rem;
    padding: 1rem 0.5rem 2rem;
    flex: 1;
    /* NO overflow or scroll here - JS handles transform sliding */
    will-change: transform;
}

/* Arrow Buttons */
.carousel-arrow {
    flex-shrink: 0; width: 48px; height: 48px;
    background: rgba(255,26,26,0.15); border: 1px solid rgba(255,26,26,0.4);
    color: white; border-radius: 50%; cursor: pointer; font-size: 1.1rem;
    transition: 0.3s; z-index: 10;
}
.carousel-arrow:hover { background: var(--primary-red); box-shadow: 0 0 20px rgba(255,26,26,0.6); transform: scale(1.1); }

/* Dots */
.carousel-dots { display: flex; justify-content: center; gap: 10px; margin-top: 0.5rem; }
.carousel-dots .cdot {
    width: 10px; height: 10px; border-radius: 50%;
    background: rgba(255,255,255,0.2); cursor: pointer; transition: 0.3s;
}
.carousel-dots .cdot.active { background: var(--primary-red); box-shadow: 0 0 10px var(--primary-red); transform: scale(1.3); }

/* Review Card */
.review-card-new {
    flex: 0 0 320px; min-width: 320px;
    padding: 0; border-radius: 16px; overflow: hidden;
    display: flex; flex-direction: column;
    scroll-snap-align: start;
    cursor: default;
    border: 1px solid rgba(255,255,255,0.08);
    /* transition & hover managed by stagger block below */
}
.review-card-new:hover .rc-photo { transform: scale(1.07); }

/* Badges */
.rc-badges { display: flex; flex-wrap: wrap; gap: 8px; padding: 1rem 1rem 0; }
.badge-verified {
    display: inline-flex; align-items: center; gap: 5px;
    background: rgba(0,255,136,0.1); border: 1px solid rgba(0,255,136,0.3);
    color: #00ff88; font-family: 'Orbitron'; font-size: 0.65rem;
    letter-spacing: 1px; padding: 4px 10px; border-radius: 20px; white-space: nowrap;
}
.badge-suit {
    display: inline-flex; align-items: center; gap: 5px;
    background: rgba(255,26,26,0.1); border: 1px solid rgba(255,26,26,0.3);
    color: var(--primary-red); font-family: 'Orbitron'; font-size: 0.65rem;
    letter-spacing: 1px; padding: 4px 10px; border-radius: 20px; white-space: nowrap;
}
.badge-trending {
    display: inline-flex; align-items: center; gap: 5px;
    background: rgba(255,153,0,0.15); border: 1px solid rgba(255,153,0,0.4);
    color: #ff9900; font-family: 'Orbitron'; font-size: 0.65rem;
    letter-spacing: 1px; padding: 4px 10px; border-radius: 20px; white-space: nowrap;
    animation: trendingGlow 1.5s alternate infinite;
}

/* Photo — cursor pointer for clickable wraps */
.rc-photo-wrap {
    position: relative; width: 100%; height: 240px;
    overflow: hidden; margin-top: 1rem; background: #000;
    cursor: pointer;
}
.rc-photo { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; display: block; }
.rc-photo-overlay {
    position: absolute; bottom: 0; left: 0; width: 100%; height: 60%;
    background: linear-gradient(to top, rgba(10,12,15,0.95) 0%, transparent 100%);
    pointer-events: none;
}

/* Zoom Hint */
.rc-zoom-hint {
    position: absolute; bottom: 12px; right: 12px; z-index: 5;
    background: rgba(0,0,0,0.6); color: rgba(255,255,255,0.8);
    width: 34px; height: 34px; border-radius: 50%;
    display: flex; justify-content: center; align-items: center;
    font-size: 0.9rem; opacity: 0; transition: opacity 0.3s;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255,255,255,0.2);
}
.rc-photo-wrap:hover .rc-zoom-hint { opacity: 1; }

/* Video Card */
.rc-play-btn {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 60px; height: 60px; background: rgba(255,26,26,0.85);
    border-radius: 50%; display: flex; justify-content: center; align-items: center;
    font-size: 1.4rem; color: white; z-index: 5;
    box-shadow: 0 0 30px rgba(255,26,26,0.6);
    transition: 0.3s;
}
.rc-photo-wrap:hover .rc-play-btn { transform: translate(-50%, -50%) scale(1.15); box-shadow: 0 0 50px rgba(255,26,26,0.9); }
.rc-video-label {
    position: absolute; top: 12px; right: 12px; z-index: 5;
    background: rgba(255,26,26,0.85); color: white;
    font-family: 'Orbitron'; font-size: 0.65rem; letter-spacing: 2px;
    padding: 4px 10px; border-radius: 4px;
    display: flex; align-items: center; gap: 6px;
}

/* Card Body */
.rc-stars { color: #ffcc00; letter-spacing: 2px; padding: 0.8rem 1rem 0; font-size: 1rem; filter: drop-shadow(0 0 5px #ffcc00); }
.rc-quote { font-size: 0.95rem; font-style: italic; color: rgba(255,255,255,0.85); line-height: 1.6; padding: 0.5rem 1rem; flex: 1; }

/* Card Footer */
.rc-footer { display: flex; justify-content: space-between; align-items: center; padding: 1rem; border-top: 1px solid rgba(255,255,255,0.06); margin-top: auto; }
.rc-user { display: flex; align-items: center; gap: 10px; }
.rc-avatar { width: 38px; height: 38px; border-radius: 50%; display: flex; justify-content: center; align-items: center; font-weight: bold; font-size: 1rem; color: white; border: 2px solid rgba(255,255,255,0.3); flex-shrink: 0; }
.rc-name { display: block; font-weight: bold; font-family: 'Orbitron'; font-size: 0.85rem; color: #fff; letter-spacing: 1px; }
.rc-meta { display: block; font-size: 0.72rem; color: var(--text-muted); margin-top: 2px; }
.rc-meta i { color: var(--primary-red); margin-right: 2px; }
.rc-helpful { color: var(--text-muted); font-size: 0.85rem; display: flex; align-items: center; gap: 5px; cursor: pointer; transition: 0.3s; }
.rc-helpful:hover { color: var(--secondary-blue); }

/* Card hover glow per type */
.review-card-new:nth-child(1):hover { box-shadow: 0 20px 50px rgba(255,26,26,0.2), 0 0 0 1px rgba(255,26,26,0.25); }
.review-card-new:nth-child(2):hover { box-shadow: 0 20px 50px rgba(0,170,255,0.15), 0 0 0 1px rgba(0,170,255,0.2); }
.review-card-new:nth-child(3):hover { box-shadow: 0 20px 50px rgba(255,153,0,0.15), 0 0 0 1px rgba(255,153,0,0.2); }
.review-card-new:nth-child(4):hover { box-shadow: 0 20px 50px rgba(153,51,255,0.15), 0 0 0 1px rgba(153,51,255,0.2); }

/* Mobile responsive */
@media (max-width: 768px) {
    .reviews-carousel-wrapper { flex-direction: column; overflow: visible; }
    .carousel-arrow { display: none; }
    .reviews-carousel { overflow-x: auto; -webkit-overflow-scrolling: touch; transform: none !important; }
    .review-card-new { flex: 0 0 85vw; min-width: 85vw; }
    .reviews-title { font-size: 2.5rem; }
    .rc-photo-wrap { height: 200px; }
}

/* ========== PREVIEW MODALS (Image & Video) ========== */
.preview-modal {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.92); backdrop-filter: blur(12px);
    z-index: 20000; display: flex; justify-content: center; align-items: center;
    opacity: 0; pointer-events: none;
    transition: opacity 0.3s ease;
}
.preview-modal.open { opacity: 1; pointer-events: all; }

.preview-modal-inner {
    position: relative; max-width: 90vw; max-height: 90vh;
    border-radius: 12px; overflow: hidden;
    box-shadow: 0 0 60px rgba(0,0,0,0.8);
    animation: previewPop 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}
@keyframes previewPop { from { transform: scale(0.85); opacity: 0; } to { transform: scale(1); opacity: 1; } }

.preview-img {
    display: block; max-width: 90vw; max-height: 85vh;
    object-fit: contain; border-radius: 10px;
}
.preview-vid {
    display: block; max-width: 90vw; max-height: 85vh;
    width: 800px; background: #000; border-radius: 10px;
}

.preview-close-btn {
    position: fixed; top: 20px; right: 24px;
    background: rgba(255, 26, 26, 0.85); color: white;
    border: none; width: 44px; height: 44px; border-radius: 50%;
    font-size: 1.3rem; cursor: pointer; z-index: 20001;
    transition: 0.25s; display: flex; justify-content: center; align-items: center;
    box-shadow: 0 0 20px rgba(255,26,26,0.5);
}
.preview-close-btn:hover { background: #ff1a1a; transform: scale(1.15) rotate(90deg); }

/* ========== SCROLL STAGGER ANIMATIONS (Review Cards) ========== */
.review-card-new {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.19, 1, 0.22, 1), box-shadow 0.4s ease;
}
.review-card-new.card-visible {
    opacity: 1;
    transform: translateY(0);
}
/* Stagger delays for each card */
.review-card-new:nth-child(1) { transition-delay: 0s; }
.review-card-new:nth-child(2) { transition-delay: 0.1s; }
.review-card-new:nth-child(3) { transition-delay: 0.2s; }
.review-card-new:nth-child(4) { transition-delay: 0.3s; }
.review-card-new:nth-child(5) { transition-delay: 0.4s; }

/* Override hover transform — combine with visible state */
.review-card-new.card-visible:hover {
    transform: translateY(-8px) scale(1.02);
}

/* 5th card glow */
.review-card-new:nth-child(5):hover { box-shadow: 0 20px 50px rgba(0,255,136,0.15), 0 0 0 1px rgba(0,255,136,0.2); }

/* ========== SUIT CARDS — Consistent Scale+Glow Hover ========== */
.suit-card {
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease, border-color 0.4s ease !important;
}
.suit-card:hover {
    transform: translateY(-12px) scale(1.02) !important;
    box-shadow: 0 20px 50px rgba(255, 26, 26, 0.2), 0 0 0 1px rgba(255, 26, 26, 0.3) !important;
    border-color: rgba(255,26,26,0.4) !important;
}

/* ========== NAV LINK GLOW UNDERLINE ENHANCEMENT ========== */
.nav-links a::after {
    height: 2px;
    background: linear-gradient(90deg, var(--primary-red), rgba(255,100,100,0.8));
    box-shadow: 0 0 12px var(--primary-red), 0 0 24px rgba(255,26,26,0.3);
    border-radius: 2px;
}
.nav-links a:hover {
    text-shadow: 0 0 15px rgba(255,26,26,0.6);
}

/* ========== SECTION SLIDE-UP POLISH ========== */
.fade-in-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.9s cubic-bezier(0.19, 1, 0.22, 1), transform 0.9s cubic-bezier(0.19, 1, 0.22, 1);
}
.fade-in-scroll.appear {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger for suit cards */
.suits-grid .suit-card { transition-delay: calc(var(--card-idx, 0) * 0.1s); }
