/* --- 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;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body, html { height: 100%; width: 100%; font-family: 'Montserrat', sans-serif; background: #eee; overflow: hidden; }

/* --- BACKGROUNDS --- */
#map { position: fixed !important; top: 0; left: 0; width: 100vw; height: 100vh; z-index: 1; }
#network-canvas { position: fixed; top: 0; left: 0; z-index: 2; pointer-events: none; opacity: 0.5; }
.map-vignette { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 3; pointer-events: none; background: radial-gradient(circle, transparent 20%, rgba(0,0,0,0.4) 100%); }

/* --- LOGO HEADER --- */
.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.3)); pointer-events: auto; }

/* --- VISITOR MODAL --- */
#visitor-modal { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 26, 77, 0.7); backdrop-filter: blur(12px); z-index: 100000; display: none; align-items: center; justify-content: center; }
.modal-glass { background: white; padding: 40px; border-radius: 40px; width: 95%; max-width: 480px; text-align: center; box-shadow: 0 40px 100px rgba(0,0,0,0.6); border: 1px solid var(--royal-blue-light); }
.modal-input { width: 100%; padding: 12px 15px; border: 1.5px solid #eee; border-radius: 12px; font-family: 'Montserrat'; font-size: 0.95rem; margin-top: 5px; outline: none; }
.form-row { margin-bottom: 12px; text-align: left; }
.form-row label { font-family: 'Orbitron'; font-size: 0.65rem; color: #999; letter-spacing: 1px; }

/* RECTIFIED SUBMIT BUTTON STYLE */
.submit-btn-royal {
    width: 100%;
    padding: 18px;
    background: var(--royal-blue-deep);
    color: var(--premium-yellow) !important; /* Force visible color */
    border: none;
    border-radius: 15px;
    font-family: 'Orbitron', sans-serif !important; /* Force Font */
    font-size: 1rem;
    font-weight: 900;
    letter-spacing: 2px;
    cursor: pointer;
    transition: 0.4s;
    margin-top: 20px;
    display: block;
    text-transform: uppercase;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}
.submit-btn-royal:hover {
    background: var(--accent-red);
    color: white !important;
    transform: translateY(-3px);
}

/* --- WELCOME TOAST --- */
#welcome-toast { position: fixed; top: -100px; left: 50%; transform: translateX(-50%); background: var(--royal-blue-deep); color: white; padding: 12px 30px; border-radius: 0 0 25px 25px; z-index: 100001; font-family: 'Orbitron'; border: 2px solid var(--premium-yellow); transition: 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
#welcome-toast.show { top: 0; }

/* --- DESKTOP BOTTOM DOCK --- */
.desktop-nav { 
    position: fixed; bottom: 40px; left: 0; width: 100%; height: 105px; z-index: 9999; 
    background: var(--royal-blue-deep); backdrop-filter: blur(20px); 
    border-radius: 45px 45px 0 0; display: flex; align-items: center; justify-content: space-between; padding: 0 40px; 
    box-shadow: 0 -15px 50px rgba(0,0,0,0.4); border-top: 1px solid rgba(255,255,255,0.1);
}
.cluster { display: flex; justify-content: space-evenly; align-items: center; flex: 1; gap: 5px; }
.m-item { text-decoration: none; color: #fff; text-align: center; transition: 0.3s; display: flex; flex-direction: column; align-items: center; min-width: 85px; cursor: pointer; }
.m-item i { font-size: 1.4rem; margin-bottom: 4px; color: #ffffff !important; }
.m-item span { font-size: 0.6rem; text-transform: uppercase; letter-spacing: 1.2px; font-weight: 700; opacity: 0.8; }
.active-nav { background: rgba(255, 255, 255, 0.12); border: 1px solid var(--premium-yellow); border-radius: 20px; padding: 10px 15px; transform: translateY(-5px); }

/* Offers & Prime (Nav Segment) */
.offer-btn { background: var(--pink-gradient) !important; border-radius: 20px !important; padding: 12px 25px !important; }
.prime-btn { background: #000 !important; border: 2px solid #bf953f !important; border-radius: 20px !important; padding: 12px 35px !important; overflow: hidden; position: relative; }
.prime-btn i, .prime-btn span { color: var(--premium-yellow) !important; position: relative; z-index: 2; }
.prime-btn::before { content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%; background: conic-gradient(from 0deg, transparent, rgba(255,204,0,0.3), transparent 40%); animation: rotateBeam 4s linear infinite; }

/* --- REAL SPEEDOMETER --- */
.meter-container { position: fixed; bottom: 55px; left: 50%; transform: translateX(-50%); z-index: 10000; transition: 0.7s; }
.speed-hex { width: 170px; height: 170px; background: #111; border-radius: 50%; border: 8px solid #fff; position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 15px 45px rgba(0,0,0,0.4); overflow: hidden; }
.meter-container.testing-active { transform: translateX(-50%) scale(1.35) translateY(-35px); }
.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 77px; }
.needle { position: absolute; width: 4px; height: 75px; background: var(--accent-red); bottom: 50%; left: calc(50% - 2px); transform-origin: bottom center; transform: rotate(-120deg); transition: transform 0.1s linear; z-index: 5; box-shadow: 0 0 10px var(--accent-red); }
.s-num { font-family: 'Orbitron', sans-serif; font-size: 2.2rem; color: #fff; font-weight: 900; z-index: 10; margin-top: 35px; }
.mbps-label { font-size: 0.6rem; color: var(--premium-yellow); font-weight: 900; z-index: 10; }

/* --- RECTIFIED MOBILE STAGGERED SIDEBARS --- */
.mob-wing { 
    position: fixed; 
    width: 72px; 
    background: var(--royal-blue-deep); 
    border-radius: 36px; 
    display: none; /* Hidden on Desktop */
    flex-direction: column; 
    align-items: center; 
    padding: 15px 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); 
}

/* Left Wing -> UPPER Left */
.wing-l { 
    left: 10px; 
    top: 80px; 
    bottom: auto;
}

/* Right Wing -> BOTTOM Right */
.wing-r { 
    right: 10px; 
    bottom: 110px; /* Sits above the footer area */
    top: auto;
}

.wing-item { 
    text-decoration: none; 
    color: #fff; 
    text-align: center; 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    transition: 0.3s; 
    width: 100%;
}

.wing-item i { font-size: 1.2rem; color: #ffffff !important; margin-bottom: 2px; }
.wing-item span { font-size: 0.4rem; text-transform: uppercase; font-weight: 800; opacity: 0.8; color: #fff; }

/* Mobile Specific Accents for Special Buttons */
.offer-wing-item { 
    background: var(--pink-gradient); 
    padding: 8px 0; 
    border-radius: 15px; 
    width: 85%; 
    box-shadow: 0 5px 15px rgba(255,0,127,0.3);
}

.prime-wing-item { 
    border: 1px solid var(--premium-yellow); 
    background: #000;
    padding: 8px 0; 
    border-radius: 15px; 
    width: 85%; 
}
.prime-wing-item i, .prime-wing-item span { color: var(--premium-yellow) !important; }

/* --- RESPONSIVE TOGGLE --- */
@media (max-width: 1000px) {
    /* Hide Desktop Nav and Footer bar on Mobile */
    .desktop-nav, .footer-bar { display: none !important; } 
    
    /* Show Staggered Wings */
    .mob-wing { display: flex !important; } 
    
    /* Re-center Meter for Mobile */
    .meter-container { 
        bottom: 20px; 
        position: fixed; 
        left: 50%;
        transform: translateX(-50%);
    } 
    .speed-hex { width: 120px; height: 120px; border-width: 5px; }
    .s-num { font-size: 1.3rem; margin-top: 25px; }
    
    /* Adjust content container padding */
    .container { padding: 80px 85px 180px 85px !important; }
}

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

@keyframes rotateBeam { 100% { transform: rotate(360deg); } }
@media (max-width: 1000px) { .desktop-nav, .footer-bar { display: none; } .mob-wing { display: flex; } .meter-container { bottom: 20px; } .speed-hex { width: 120px; height: 120px; border-width: 5px; } }