/* =========================================
   ULTIMATE MOTION DESIGN SYSTEM
   ========================================= */
:root {
    --bg-base: #030305;
    --neon-cyan: #00f0ff;
    --white: rgb(255, 255, 255, 0.33);
    --neon-purple: #8a2be2;
    --neon-pink: #ff0055;
    --success: #00ff66;
    --glass-bg: rgba(15, 15, 20, 0.35);
    --glass-border: rgba(255, 255, 255, 0.2);
    --font-main: 'Heebo', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    --bezier-smooth: cubic-bezier(0.25, 1, 0.5, 1);
    --bezier-spring: cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { background-color: var(--bg-base); color: #fff; font-family: var(--font-main); overflow-x: hidden; -webkit-font-smoothing: antialiased; display: flex; flex-direction: column; min-height: 100vh; }

/* --- 1. DYNAMIC FLUID BACKGROUND --- */
.ambient-bg { position: fixed; inset: 0; z-index: -3; background: radial-gradient(circle at 50% 50%, #0a0a12 0%, var(--bg-base) 100%); overflow: hidden; }
.ambient-orb { position: absolute; border-radius: 50%; filter: blur(120px); opacity: 0.4; mix-blend-mode: screen; animation: orbFloat 20s infinite alternate var(--bezier-smooth); }
.orb-1 { width: 60vw; height: 60vw; background: var(--neon-purple); top: -20%; right: -10%; }
.orb-2 { width: 50vw; height: 50vw; background: var(--white); bottom: -20%; left: -10%; animation-delay: -5s; }

/* --- 2. NAVBAR --- */
nav { position: fixed; top: 0; width: 100%; padding: 20px 5%; display: flex; justify-content: space-between; align-items: center; z-index: 1000; background: rgba(3, 3, 5, 0.5); backdrop-filter: blur(20px); border-bottom: 1px solid var(--glass-border); }
.logo { font-size: 1.8rem; font-weight: 900; letter-spacing: -1px; background: linear-gradient(90deg, #fff, var(--white)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; text-decoration: none; }
.nav-links { display: flex; gap: 30px; list-style: none; }
.nav-links a { color: rgba(255,255,255,0.6); text-decoration: none; font-weight: 700; transition: color 0.3s; }
.nav-links a:hover, .nav-links a.active { color: #fff; }
.magnetic-btn { background: rgba(255,255,255,0.03); border: 1px solid var(--glass-border); color: #fff; padding: 12px 28px; border-radius: 30px; font-weight: 700; cursor: pointer; position: relative; overflow: hidden; transition: transform 0.3s var(--bezier-smooth), box-shadow 0.3s; display: inline-block; }
.magnetic-btn:hover { box-shadow: 0 0 20px rgba(0, 240, 255, 0.2); border-color: rgba(0, 240, 255, 0.5); }

/* --- 3. COMMON COMPONENTS --- */
.reveal-scroll { opacity: 0; transform: scale(0.8) translateY(80px) rotateX(-15deg); transition: all 1s var(--bezier-spring); will-change: transform, opacity; }
.reveal-scroll.is-revealed { opacity: 1; transform: scale(1) translateY(0) rotateX(0); }

.tilt-card { position: relative; background: var(--glass-bg); backdrop-filter: blur(25px); -webkit-backdrop-filter: blur(25px); border: 1px solid var(--glass-border); border-radius: 32px; overflow: hidden; transform-style: preserve-3d; transition: transform 0.1s ease-out, box-shadow 0.3s, border-color 0.3s; box-shadow: 0 20px 50px rgba(0,0,0,0.5); display: flex; flex-direction: column; width: 100%; height: 100%; }
.tilt-card:hover { box-shadow: 0 30px 60px rgba(0,0,0,0.7); border-color: rgba(255,255,255,0.4); }
.tilt-card::before { content: ''; position: absolute; inset: 0; background: radial-gradient(800px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255,255,255,0.15), transparent 40%); opacity: 0; transition: opacity 0.3s; pointer-events: none; z-index: 1; }
.tilt-card:hover::before { opacity: 1; }
.card-content { position: relative; z-index: 2; padding: 35px; height: 100%; display: flex; flex-direction: column; pointer-events: none; transform: translateZ(30px); }

/* --- 4. INDEX PAGE STYLES --- */
.hero-scene { min-height: 100vh; display: flex; justify-content: center; align-items: center; position: relative; perspective: 1500px; transform-style: preserve-3d; overflow: hidden; padding-top: 80px; }
.scene-element { position: absolute; transform-style: preserve-3d; will-change: transform; pointer-events: none; z-index: 20; }
.glass-shape { position: absolute; background: linear-gradient(135deg, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0.01) 100%); backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px); border: 1px solid rgba(255,255,255,0.05); box-shadow: 0 30px 60px rgba(0,0,0,0.3); z-index: 5; }
.shape-1 { width: 350px; height: 350px; border-radius: 50%; top: 15%; right: 25%; }
.shape-2 { width: 280px; height: 280px; border-radius: 40px; bottom: 20%; left: 20%; }
.shape-3 { width: 450px; height: 180px; border-radius: 30px; top: 50%; right: 15%; }

.hero-glass-panel { background: rgba(10, 10, 15, 0.3); backdrop-filter: blur(30px) saturate(150%); -webkit-backdrop-filter: blur(30px) saturate(150%); border: 1px solid rgba(255, 255, 255, 0.25); border-radius: 40px; padding: 80px 60px; text-align: center; box-shadow: 0 50px 100px rgba(0,0,0,0.8), inset 0 0 40px rgba(255,255,255,0.05); max-width: 1000px; pointer-events: auto; z-index: 10; }
.hero-title { font-size: clamp(4rem, 8vw, 7rem); font-weight: 900; line-height: 1.1; letter-spacing: -2px; margin-bottom: 20px; transform: translateZ(60px); }
.hero-title span { background: linear-gradient(135deg, #fff 20%, var(--white) 80%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.hero-desc { font-size: 1.3rem; color: rgba(255,255,255,0.7); transform: translateZ(40px); }

.obj-mc-block { width: 100px; height: 100px; top: 25%; right: 18%; }
.mc-face { position: absolute; width: 100px; height: 100px; box-shadow: inset 0 0 20px rgba(0,0,0,0.8); border: 2px solid rgba(0,0,0,0.5); }
.mc-top { background: #5b8731; transform: rotateX(90deg) translateZ(50px); border-color: #74a142; }
.mc-bottom { background: #513a27; transform: rotateX(-90deg) translateZ(50px); }
.mc-side { background: linear-gradient(to bottom, #5b8731 25%, #513a27 25%); }
.mc-front { transform: translateZ(50px); } .mc-back { transform: rotateY(180deg) translateZ(50px); }
.mc-left { transform: rotateY(-90deg) translateZ(50px); } .mc-right { transform: rotateY(90deg) translateZ(50px); }

.obj-holo-screen { width: 180px; height: 120px; top: 60%; left: 15%; background: rgba(0, 240, 255, 0.05); border: 2px solid var(--neon-cyan); box-shadow: 0 0 25px rgba(0,240,255,0.4), inset 0 0 20px rgba(0,240,255,0.2); backdrop-filter: blur(8px); padding: 20px; display: flex; flex-direction: column; gap: 15px; }
.holo-line { height: 4px; background: var(--neon-cyan); box-shadow: 0 0 10px var(--neon-cyan); width: 85%; }
.holo-line.short { width: 45%; }

.obj-ram { width: 160px; height: 50px; bottom: 20%; right: 25%; background: #111; border: 2px solid var(--neon-purple); box-shadow: 0 0 25px rgba(138,43,226,0.6); display: flex; align-items: center; justify-content: space-evenly; }
.ram-chip { width: 25px; height: 32px; background: #222; border: 1px solid #444; }

.dashboard { padding: 50px 5% 100px; max-width: 1600px; margin: 0 auto; position: relative; z-index: 10; }
.bento-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; grid-auto-rows: minmax(260px, auto); }
.col-2 { grid-column: span 2; } .row-2 { grid-row: span 2; } .col-4 { grid-column: span 4; }

.card-title { font-size: 1.8rem; font-weight: 900; margin-bottom: 5px; }
.card-subtitle { font-family: var(--font-mono); font-size: 0.85rem; color: rgba(255,255,255,0.5); text-transform: uppercase; letter-spacing: 2px; margin-bottom: 20px; }

.status-indicator { display: inline-flex; align-items: center; gap: 10px; background: rgba(0, 255, 102, 0.1); border: 1px solid rgba(0, 255, 102, 0.2); padding: 8px 16px; border-radius: 20px; font-family: var(--font-mono); color: var(--success); margin-bottom: auto; width: fit-content; box-shadow: 0 0 20px rgba(0,255,102,0.1); }
.pulse-dot { width: 10px; height: 10px; background: var(--success); border-radius: 50%; box-shadow: 0 0 15px var(--success); animation: pulse 2s infinite; }
.big-number { font-size: 5rem; font-weight: 900; line-height: 1; background: linear-gradient(180deg, #fff, rgba(255,255,255,0.2)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }

.status-indicator.server-offline {
    background: rgba(255, 0, 102, 0.1);
    border: 1px solid rgba(255, 0, 102, 0.2);
    color: var(--neon-pink, #ff0066); /* משתמש במשתנה שלך או בצבע קבוע אם לא הוגדר */
    box-shadow: 0 0 20px rgba(255, 0, 102, 0.1);
}

.gauges-container { display: flex; justify-content: space-around; align-items: center; flex: 1; }
.gauge-wrapper { position: relative; width: 140px; height: 140px; display: flex; justify-content: center; align-items: center; }
.gauge-svg { width: 100%; height: 100%; transform: rotate(-90deg); position: absolute; }
.gauge-bg { fill: none; stroke: rgba(255,255,255,0.05); stroke-width: 10; }
.gauge-fill { fill: none; stroke: url(#gaugeGradient); stroke-width: 10; stroke-linecap: round; stroke-dasharray: 377; stroke-dashoffset: 377; transition: stroke-dashoffset 2s var(--bezier-spring); }
.gauge-text { text-align: center; font-family: var(--font-mono); }
.gauge-val { font-size: 2rem; font-weight: 900; color: #fff; line-height: 1; }
.gauge-label { font-size: 0.8rem; color: rgba(255,255,255,0.5); }

.feed-list { list-style: none; overflow-y: auto; flex: 1; pointer-events: auto; padding-left: 10px; }
.feed-list::-webkit-scrollbar { width: 4px; } .feed-list::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.2); border-radius: 4px; }
.feed-item { display: flex; align-items: center; gap: 15px; padding: 15px 0; border-bottom: 1px solid rgba(255,255,255,0.05); }
.feed-icon { width: 40px; height: 40px; border-radius: 12px; background: rgba(255,255,255,0.05); display: flex; justify-content: center; align-items: center; font-size: 1.2rem; }
.feed-info h4 { font-size: 1rem; font-weight: 700; }
.feed-info p { font-size: 0.8rem; color: rgba(255,255,255,0.5); font-family: var(--font-mono); }

.controls-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; flex: 1; pointer-events: auto; }
.control-btn { background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.05); border-radius: 16px; display: flex; justify-content: center; align-items: center; cursor: pointer; transition: all 0.3s; font-family: var(--font-mono); font-weight: 700; }
.control-btn:hover { background: rgba(255,255,255,0.1); border-color: var(--neon-cyan); transform: translateY(-3px); box-shadow: 0 10px 20px rgba(0,240,255,0.2); }

.ticker-container { display: flex; align-items: center; height: 100%; overflow: hidden; white-space: nowrap; mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent); }
.ticker-track { display: flex; gap: 50px; animation: scrollTicker 20s linear infinite; }
.ticker-item { display: flex; align-items: center; gap: 15px; font-size: 1.2rem; font-weight: 700; }
.ticker-tag { background: var(--neon-purple); padding: 6px 12px; border-radius: 8px; font-size: 0.8rem; font-family: var(--font-mono); box-shadow: 0 0 15px rgba(112,0,255,0.4); }

/* --- 5. FORUMS PAGE STYLES --- */
.forum-container { padding: 150px 5% 100px; max-width: 1200px; margin: 0 auto; position: relative; z-index: 10; perspective: 1500px; }
.forum-container .hero-glass-panel { padding: 50px 60px; display: flex; justify-content: space-between; align-items: center; margin-bottom: 60px; text-align: right; max-width: 100%; }
.forum-container .page-title { font-size: 3.5rem; font-weight: 900; letter-spacing: -2px; transform: translateZ(40px); margin-bottom: 0; }
.forum-container .page-desc { color: rgba(255,255,255,0.6); font-size: 1.2rem; transform: translateZ(30px); margin-top: 10px; }
.forum-list { display: flex; flex-direction: column; gap: 20px; }
.forum-list .tilt-card { padding: 30px; flex-direction: row; justify-content: space-between; align-items: center; height: auto; }
.forum-list .card-content { flex-direction: row; justify-content: space-between; width: 100%; align-items: center; padding: 0; }
.forum-info h3 { font-size: 1.6rem; font-weight: 900; margin-bottom: 8px; }
.forum-info p { color: rgba(255,255,255,0.6); font-size: 1rem; }
.forum-stats { display: flex; gap: 30px; font-family: var(--font-mono); text-align: center; }
.stat-box { background: rgba(0,0,0,0.4); padding: 10px 20px; border-radius: 16px; border: 1px solid rgba(255,255,255,0.05); }
.stat-box span { display: block; font-size: 1.4rem; font-weight: 900; color: var(--neon-cyan); }

/* --- 6. SHOP PAGE STYLES --- */
.shop-layout { display: flex; max-width: 1600px; width: 100%; margin: 0 auto; padding: 140px 5% 100px; gap: 40px; flex: 1; position: relative; z-index: 10; perspective: 1500px; }
.items-section { flex: 1; }
.shop-layout .hero-glass-panel { padding: 50px 60px; margin-bottom: 50px; text-align: right; max-width: 100%; }
.shop-layout .page-title { font-size: 3.5rem; font-weight: 900; letter-spacing: -2px; transform: translateZ(40px); margin-bottom: 0; }
.shop-layout .page-desc { color: rgba(255,255,255,0.6); font-size: 1.2rem; margin-top: 10px; transform: translateZ(30px); }
.shop-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 30px; }
.shop-grid .tilt-card { padding: 40px; }
.shop-grid .card-content { padding: 0; }
.rank-name { font-size: 2.5rem; font-weight: 900; margin-bottom: 10px; }
.rank-price { font-family: var(--font-mono); font-size: 3rem; font-weight: 900; margin-bottom: 30px; color: var(--neon-cyan); }
.elite .rank-price { color: var(--neon-pink); }
.perks-list { list-style: none; margin-bottom: 40px; display: flex; flex-direction: column; gap: 15px; }
.perks-list li { font-size: 1.1rem; color: rgba(255,255,255,0.8); display: flex; align-items: center; gap: 12px; }
.perks-list li::before { content: "✓"; color: var(--neon-cyan); font-weight: 900; font-size: 1.2rem; }
.elite .perks-list li::before { color: var(--neon-pink); }
.btn-add { background: rgba(255, 255, 255, 0.05); color: #fff; border: 1px solid rgba(255,255,255,0.2); padding: 18px; border-radius: 20px; font-weight: 900; font-family: var(--font-main); font-size: 1.2rem; cursor: pointer; transition: all 0.3s var(--bezier-smooth); margin-top: auto; pointer-events: auto; }
.btn-add:hover { background: #fff; color: #000; box-shadow: 0 0 30px rgba(255,255,255,0.4); transform: translateY(-3px); }
.elite .btn-add { background: linear-gradient(90deg, var(--neon-purple), var(--neon-pink)); border: none; }
.elite .btn-add:hover { color: #fff; box-shadow: 0 10px 30px rgba(255,0,85,0.5); }
.cart-sidebar { width: 420px; background: rgba(10, 10, 15, 0.6); border: 1px solid var(--glass-border); border-radius: 40px; padding: 40px; backdrop-filter: blur(30px); display: flex; flex-direction: column; height: fit-content; position: sticky; top: 140px; box-shadow: 0 40px 100px rgba(0,0,0,0.8); }
.cart-title { font-size: 1.8rem; font-weight: 900; margin-bottom: 25px; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 15px; }
.cart-items { flex: 1; display: flex; flex-direction: column; gap: 15px; margin-bottom: 30px; min-height: 200px; }
.cart-item { display: flex; justify-content: space-between; font-size: 1.2rem; font-weight: 700; color: #fff; background: rgba(255,255,255,0.05); padding: 20px; border-radius: 20px; border: 1px solid rgba(255,255,255,0.1); transition: all 0.4s var(--bezier-spring); }
.cart-total { display: flex; justify-content: space-between; font-size: 1.8rem; font-weight: 900; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 25px; margin-bottom: 30px; font-family: var(--font-mono); color: var(--neon-cyan); }

/* --- 7. AUTH MODAL --- */
.modal-overlay { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.7); backdrop-filter: blur(30px); z-index: 2000; display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transition: opacity 0.4s var(--bezier-smooth); }
.modal-overlay.active { opacity: 1; pointer-events: auto; }
.modal-content { background: rgba(10, 10, 15, 0.8); border: 1px solid var(--glass-border); border-radius: 32px; padding: 40px; width: 100%; max-width: 450px; box-shadow: 0 40px 100px rgba(0,0,0,0.9); transform: scale(0.95) translateY(20px); transition: all 0.5s var(--bezier-spring); }
.modal-overlay.active .modal-content { transform: scale(1) translateY(0); }
.modal-tabs { display: flex; gap: 10px; margin-bottom: 30px; background: rgba(0,0,0,0.5); padding: 5px; border-radius: 20px; }
.modal-tab { flex: 1; padding: 12px; background: transparent; border: none; color: rgba(255,255,255,0.5); font-family: var(--font-main); font-weight: 900; font-size: 1.1rem; border-radius: 16px; cursor: pointer; transition: all 0.3s; }
.modal-tab.active { background: rgba(255,255,255,0.1); color: #fff; box-shadow: 0 4px 15px rgba(0,0,0,0.3); }
.auth-form { display: none; flex-direction: column; gap: 15px; }
.auth-form.active { display: flex; }
.input-group input { width: 100%; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.1); padding: 18px; border-radius: 16px; color: #fff; font-size: 1rem; outline: none; transition: all 0.3s; font-family: var(--font-main); }
.input-group input:focus { border-color: var(--neon-cyan); box-shadow: 0 0 20px rgba(0,240,255,0.2); background: rgba(0,0,0,0.5); }
.submit-btn { background: linear-gradient(90deg, var(--neon-cyan), var(--neon-purple)); color: #fff; border: none; padding: 18px; border-radius: 16px; font-weight: 900; font-size: 1.2rem; cursor: pointer; margin-top: 10px; transition: transform 0.2s, box-shadow 0.2s; }
.submit-btn:hover { transform: translateY(-2px); box-shadow: 0 15px 30px rgba(112,0,255,0.4); }

/* Animations */
@keyframes orbFloat { 0% { transform: translate(0,0) scale(1); } 100% { transform: translate(5vw, -5vw) scale(1.1); } }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(0, 255, 102, 0.4); } 70% { box-shadow: 0 0 0 20px rgba(0, 255, 102, 0); } }
@keyframes pulse-red {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(255, 0, 102, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(255, 0, 102, 0);
    }
}
@keyframes scrollTicker { 0% { transform: translateX(0); } 100% { transform: translateX(30%); } }

.status-indicator.server-offline .pulse-dot {
    animation: pulse-red 2s infinite;
}

@media (max-width: 1200px) { .bento-grid { grid-template-columns: repeat(2, 1fr); } .col-4 { grid-column: span 2; } .shop-layout { flex-direction: column; } .cart-sidebar { width: 100%; position: relative; top: 0; } }
@media (max-width: 768px) { .bento-grid { grid-template-columns: 1fr; } .col-2, .col-4 { grid-column: span 1; } .obj-mc-block, .obj-holo-screen, .obj-ram, .glass-shape { display: none; } .forum-list .tilt-card { flex-direction: column; text-align: center; } .forum-list .card-content { flex-direction: column; gap: 20px; } }