/* --- UNIVERSAL PREMIUM VARIABLES --- */
:root {
    --bg-base: #ffffff;
    --royal-blue-deep: #001a4d; 
    --royal-blue-light: #4169E1;
    --accent-red: #e60026;
    --premium-yellow: #FFCC00;
    --pink-gradient: linear-gradient(135deg, #ff007f, #ff52af);
    --gold-metallic: linear-gradient(135deg, #bf953f, #fcf6ba, #b38728);
    --text-dark: #111111;
    --shadow-rich: 0 25px 50px rgba(0, 0, 0, 0.2);
}

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

/* --- BACKGROUND NEURAL NETWORK --- */
#network-canvas { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 1; opacity: 0.5; pointer-events: none; }

/* --- LOGO --- */
.main-header { position: fixed; top: 20px; width: 100%; text-align: center; z-index: 9500; pointer-events: none; }
.logo-img { height: 60px; width: auto; filter: drop-shadow(0 5px 15px rgba(0, 26, 77, 0.2)); pointer-events: auto; }

/* --- DESKTOP ROYAL CRYSTAL DOCK --- */
/* --- THE ROYAL VERTICAL COMMAND TOWER (Right Side) --- */
.desktop-nav { 
    position: fixed; 
    right: 30px; /* Anchored to the Right */
    top: 50%; 
    transform: translateY(-50%); 
    width: 105px; 
    height: 90vh; /* Takes most of the vertical screen */
    z-index: 9000; 
    background: rgba(0, 26, 77, 0.95); 
    backdrop-filter: blur(25px) saturate(180%);
    border-radius: 55px; 
    display: flex; 
    flex-direction: column; /* Vertical Layout */
    align-items: center; 
    justify-content: space-between; 
    padding: 35px 0; 
    box-shadow: -15px 0 50px rgba(0,0,0,0.4), 
                inset 1px 0 1px rgba(255,255,255,0.2);
    border: 0.5px solid rgba(191, 149, 63, 0.4); 
    overflow: hidden;
}

/* Vertical Shine Effect */
.desktop-nav::before {
    content: '';
    position: absolute;
    top: -150%; left: 0;
    width: 100%; height: 100%;
    background: linear-gradient(180deg, transparent, rgba(255,255,255,0.08), transparent);
    animation: crystalShineVertical 8s infinite;
}

@keyframes crystalShineVertical {
    0% { top: -150%; }
    30% { top: 150%; }
    100% { top: 150%; }
}

.cluster { 
    display: flex; 
    flex-direction: column; /* Stack icons vertically */
    justify-content: space-evenly; 
    align-items: center; 
    flex: 1; 
    gap: 15px; 
}

/* Individual Items */
.m-item { 
    text-decoration: none; 
    color: #fff; 
    text-align: center; 
    transition: 0.4s cubic-bezier(0.23, 1, 0.32, 1); 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    padding: 10px 0;
}

.m-item i { 
    font-size: 1.4rem; 
    margin-bottom: 5px; 
    color: #ffffff !important; /* Icons White */
}

.m-item span { 
    font-size: 0.55rem; 
    text-transform: uppercase; 
    letter-spacing: 1px; 
    font-weight: 700; 
    opacity: 0.7; 
}

/* Hover & Active */
.m-item:hover { transform: translateX(-10px); } /* Pulls slightly to the left */
.m-item.active-nav {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid var(--premium-yellow);
    border-radius: 20px;
    width: 80%;
    padding: 12px 0;
}

/* --- PINK OFFER BUTTON (VERTICAL) --- */
.offer-btn { 
    background: var(--pink-gradient) !important; 
    border-radius: 20px !important;
    width: 85% !important;
    box-shadow: 0 10px 20px rgba(255, 0, 127, 0.3) !important;
}

/* --- GOLD PRIME BUTTON (VERTICAL) --- */
.prime-btn { 
    background: #000 !important; 
    border: 1px solid #bf953f !important; 
    border-radius: 20px !important;
    width: 85% !important;
    overflow: hidden;
}

/* --- INTEGRATED SPEEDOMETER (CENTERED IN NAV) --- */
.meter-container { 
    position: relative; 
    margin: 20px 0;
    z-index: 9999;
}

.speed-hex { 
    width: 120px; /* Slightly smaller to fit sidebar */
    height: 120px; 
    background: #111; 
    border-radius: 50%; 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    justify-content: center; 
    cursor: pointer; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.5); 
    border: 4px solid #fff; 
    position: relative;
}

/* Speedometer needle and ticks scale to the 120px size */
.needle { height: 50px; left: calc(50% - 1.5px); }
.s-num { font-size: 1.4rem; }
.mbps-label { font-size: 0.5rem; }

/* Scale out effect when testing */
.meter-container.testing-active { 
    transform: scale(1.4) translateX(-40px); /* Pops out to the left */
}

/* --- MOBILE WINGS --- */
/* Stay exactly as they are - they are already side-fixed for mobile */

@media (max-width: 1100px) {
    .desktop-nav { display: none; }
    .mob-wing { display: flex; }
    .meter-container {
        position: fixed;
        bottom: 30px;
        left: 50%;
        transform: translateX(-50%);
    }
}
/* --- MOBILE WINGS (FULLY RECTIFIED) --- */
.mob-wing { 
    position: fixed; top: 50%; transform: translateY(-50%); 
    width: 72px; background: var(--royal-blue-deep); 
    border-radius: 36px; display: none; flex-direction: column; align-items: center; 
    padding: 20px 0; gap: 12px; z-index: 9999; 
    box-shadow: 0 15px 45px rgba(0,0,0,0.4); border: 1px solid rgba(255,255,255,0.1);
}
.wing-l { left: 8px; } .wing-r { right: 8px; }
.wing-item { text-decoration: none; color: #fff; text-align: center; display: flex; flex-direction: column; align-items: center; }
.wing-item i { font-size: 1.1rem; color: #ffffff !important; margin-bottom: 2px; }
.wing-item span { font-size: 0.4rem; text-transform: uppercase; font-weight: 800; opacity: 0.8; }

.offer-wing { background: var(--pink-gradient); border-radius: 12px; padding: 8px 4px; width: 85%; }

/* --- REAL SPEEDOMETER UI --- */
.meter-container { 
    position: fixed; 
    bottom: 30px; 
    left: 50%; 
    transform: translateX(-50%); 
    z-index: 10000; 
    transition: 0.6s cubic-bezier(0.34, 1.56, 0.64, 1); 
}

.speed-hex { 
    width: 170px; 
    height: 170px; 
    background: #111; /* Dark dashboard background */
    border-radius: 50%; 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    justify-content: center; 
    cursor: pointer; 
    box-shadow: 0 15px 45px rgba(0,0,0,0.5), inset 0 0 15px rgba(65, 105, 225, 0.3); 
    border: 6px solid #fff; 
    position: relative;
    overflow: hidden;
}

/* Speedometer Ticks (The marks around the circle) */
.ticks {
    position: absolute;
    width: 100%;
    height: 100%;
    padding: 10px;
}

.tick {
    position: absolute;
    width: 2px;
    height: 8px;
    background: rgba(255,255,255,0.3);
    left: 50%;
    transform-origin: 0 75px;
}

/* The Needle */
.needle {
    position: absolute;
    width: 4px;
    height: 70px;
    background: var(--accent-red);
    bottom: 50%;
    left: calc(50% - 2px);
    transform-origin: bottom center;
    transform: rotate(-120deg); /* Start Position */
    transition: transform 0.1s linear;
    z-index: 5;
    border-radius: 4px;
    box-shadow: 0 0 10px var(--accent-red);
}

.needle::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: -6px;
    width: 16px;
    height: 16px;
    background: #fff;
    border-radius: 50%;
    border: 3px solid var(--accent-red);
}

/* Meter Scaling on Test */
.meter-container.testing-active { 
    transform: translateX(-50%) scale(1.3) translateY(-35px); 
}

.meter-container.testing-active .speed-hex {
    border-color: var(--royal-blue-light);
    box-shadow: 0 0 40px rgba(65, 105, 225, 0.4);
}

/* Digital Readout */
.speed-info {
    z-index: 10;
    margin-top: 30px;
    text-align: center;
}

.s-num { 
    font-family: 'Orbitron', sans-serif; 
    font-size: 2.2rem; 
    color: #fff; 
    font-weight: 900;
    text-shadow: 0 0 10px var(--royal-blue-light);
}

.mbps-label {
    display: block;
    font-size: 0.6rem;
    color: var(--premium-yellow);
    font-weight: 900;
    letter-spacing: 1px;
    margin-top: -5px;
}
/* --- CINEMATIC ROCKETS --- */
#rocket-bay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; z-index: 99998; overflow: hidden; }
.cinematic-rocket { position: absolute; bottom: -150px; display: flex; flex-direction: column; align-items: center; filter: drop-shadow(0 0 15px var(--rocket-color)); will-change: transform; }
.rocket-hull { width: 30px; height: 75px; background: #f0f0f0; border-radius: 50% 50% 15% 15%; border: 2px solid var(--rocket-color); position: relative; }
.rocket-window { width: 14px; height: 14px; background: #111; border-radius: 50%; position: absolute; top: 15px; left: 50%; transform: translateX(-50%); display: flex; justify-content: center; align-items: center; font-family: 'Orbitron'; font-size: 9px; color: var(--rocket-color); font-weight: 900; }
.exhaust { width: 12px; height: 55px; background: linear-gradient(to bottom, var(--rocket-color), transparent); border-radius: 0 0 50% 50%; filter: blur(2px); }

/* --- FOOTER --- */
.footer-bar { position: fixed; bottom: 0; width: 100%; height: 40px; background: var(--premium-yellow); display: flex; justify-content: center; align-items: center; gap: clamp(10px, 4vw, 40px); z-index: 9000; }
.footer-bar a { color: #000; text-decoration: none; font-size: 0.65rem; text-transform: uppercase; font-weight: 800; letter-spacing: 1px; }

/* Keyframes */
@keyframes rocketRise { 0% { transform: translateY(0) scale(0.7); opacity: 0; } 10% { opacity: 1; } 100% { transform: translateY(-130vh) scale(1.3); opacity: 0; } }
@keyframes rotateBeam { 100% { transform: rotate(360deg); } }
@keyframes navPulse { from { box-shadow: 0 0 5px rgba(255,0,127,0.4); } to { box-shadow: 0 0 25px rgba(255,0,127,0.7); } }

@media (max-width: 1000px) {
    .desktop-nav { display: none; } .mob-wing { display: flex; }
    .container { padding: 100px 85px 180px 85px !important; }
}