:root {
    --bg-deep: #050505;
    --card-surface: rgba(14, 14, 14, 0.8);
    --border-alpha: rgba(255, 255, 255, 0.08);
    --blue-accent: #007bff;
    --blue-glow: rgba(0, 123, 255, 0.4);
    --green-accent: #10b981;
    --text-muted: #888;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background: var(--bg-deep);
    color: #fff;
    font-family: 'Plus Jakarta Sans', sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    overflow-x: hidden;
}

/* =========================================
   NEW: Announcement Banner
========================================= */
.announcement-banner {
    width: 100%;
    background: linear-gradient(90deg, #9a3412, #ea580c, #9a3412);
    background-size: 200% auto;
    color: #ffffff;
    text-align: center;
    padding: 12px 20px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    position: relative;
    z-index: 5000;
    box-shadow: 0 4px 15px rgba(234, 88, 12, 0.4);
    animation: gradientShift 3s linear infinite;
}

.pulse-warning {
    width: 8px;
    height: 8px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 0 10px #fff;
    animation: pulse 1s infinite;
}

.close-banner {
    position: absolute;
    right: 20px;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0.7;
    transition: 0.2s;
}

.close-banner:hover { opacity: 1; transform: scale(1.2); }

@keyframes gradientShift {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}

@keyframes pulse {
    0% { transform: scale(0.95); opacity: 0.8; }
    50% { transform: scale(1.2); opacity: 1; }
    100% { transform: scale(0.95); opacity: 0.8; }
}

/* =========================================
   CORE LAYOUT & EFFECTS
========================================= */
.app-container { width: 100%; max-width: 1400px; display: flex; flex-direction: column; align-items: center; }

.noise-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-image: url('https://grainy-gradients.vercel.app/noise.svg'); opacity: 0.12; pointer-events: none; z-index: -1; }
#flakeCanvas { position: fixed; top: 0; z-index: -1; left: 0; }

/* Nav */
.enterprise-nav { width: 100%; max-width: 1200px; padding: 25px 20px; position: sticky; top: 0; z-index: 100; }
.nav-content { background: rgba(10, 10, 10, 0.85); border: 1px solid var(--border-alpha); backdrop-filter: blur(15px); border-radius: 50px; padding: 12px 30px; display: flex; justify-content: space-between; align-items: center; }
.nav-logo { height: 30px; width: auto; }
.brand-cluster { display: flex; align-items: center; gap: 15px; }
.brand-v-line { width: 1px; height: 20px; background: #333; }
.brand-title { font-weight: 800; font-size: 1rem; letter-spacing: 2px; }
.brand-title span { color: var(--blue-accent); }

/* Main Master Panel */
.master-panel { width: 100%; max-width: 1100px; padding: 60px 20px; display: flex; flex-direction: column; align-items: center; }
.hero-section { text-align: center; margin-bottom: 70px; }
.main-title { font-size: clamp(3rem, 6vw, 4.5rem); font-weight: 800; background: linear-gradient(180deg, #fff, #555); -webkit-background-clip: text; -webkit-text-fill-color: transparent; line-height: 1.1; margin-bottom: 10px; }
.badge-premium { font-size: 0.7rem; font-weight: bold; color: var(--blue-accent); border: 1px solid var(--blue-accent); padding: 5px 15px; border-radius: 20px; display: inline-block; margin-bottom: 20px; background: rgba(0, 123, 255, 0.1); }

/* Universal Hover Uplift & Glow */
.hover-glow { transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
.hover-glow:hover { transform: translateY(-6px); box-shadow: 0 10px 30px var(--blue-glow); border-color: var(--blue-accent); background: #111; }

/* Sections */
.panel-section { width: 100%; margin-bottom: 60px; }
.section-head { font-size: 0.75rem; color: #777; letter-spacing: 3px; margin-bottom: 25px; display: flex; align-items: center; gap: 10px; font-weight: bold; }
.section-head .dot { width: 8px; height: 8px; background: var(--blue-accent); border-radius: 50%; box-shadow: 0 0 10px var(--blue-accent); }

/* Core Services Grid */
.portal-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.glass-box { background: var(--card-surface); border: 1px solid var(--border-alpha); padding: 25px; border-radius: 16px; cursor: pointer; backdrop-filter: blur(10px); display: flex; flex-direction: column; gap: 20px; }
.box-top { display: flex; justify-content: space-between; align-items: flex-start; }
.glass-box h3 { font-size: 1.1rem; font-weight: 600; }
.status-pill { font-size: 0.9rem; font-weight: bold; color: var(--green-accent); }

/* Copy Tags */
.copy-tag { font-size: 0.6rem; color: var(--text-muted); background: #1a1a1a; padding: 4px 8px; border-radius: 6px; cursor: pointer; border: 1px solid #333; font-weight: bold; }
.copy-tag:hover { color: #fff; background: var(--blue-accent); border-color: var(--blue-accent); }

/* Blade Structure */
.blade-container { display: flex; flex-direction: column; gap: 12px; }
.blade { display: grid; grid-template-columns: 1.2fr 1fr 1.5fr 0.8fr 0.8fr; background: var(--card-surface); border: 1px solid var(--border-alpha); padding: 20px 30px; border-radius: 12px; align-items: center; cursor: default; }
.id-code { font-family: monospace; font-weight: bold; font-size: 1rem; margin-right: 10px; }
.region { font-size: 0.95rem; font-weight: 600; }
.spec-text { font-size: 0.85rem; color: var(--text-muted); }
.latency { color: var(--blue-accent); font-weight: 800; }
.uptime-trigger { text-align: right; color: var(--green-accent); font-weight: 800; cursor: pointer; }

/* Toast */
.toast { position: fixed; bottom: 30px; background: var(--blue-accent); color: white; padding: 15px 30px; border-radius: 50px; font-weight: bold; box-shadow: 0 10px 30px var(--blue-glow); transform: translateY(150px); transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); z-index: 2000; }
.toast.active { transform: translateY(0); }

/* Live Terminal */
.terminal-window { background: #080808; border: 1px solid #222; border-radius: 12px; padding: 20px; height: 200px; overflow-y: hidden; font-family: 'Courier New', Courier, monospace; font-size: 0.85rem; position: relative; box-shadow: inset 0 0 20px rgba(0,0,0,0.8); }
.terminal-window::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06)); background-size: 100% 2px, 3px 100%; pointer-events: none; }
.term-line { margin-bottom: 5px; opacity: 0.8; }
.system-msg { color: #facc15; }
.ping-msg { color: var(--green-accent); }

/* Modal & Charts */
.modal { display: none; position: fixed; width: 100%; height: 100%; background: rgba(0,0,0,0.85); backdrop-filter: blur(10px); z-index: 3000; top: 0; left: 0; }
.modal-content { max-width: 800px; background: #0d0d0d; margin: 8vh auto; padding: 40px; border-radius: 20px; border: 1px solid #333; position: relative; box-shadow: 0 20px 50px rgba(0,0,0,0.5); }
.modal-sub { color: var(--text-muted); font-size: 0.85rem; margin-bottom: 20px; }
.close { position: absolute; right: 30px; top: 25px; font-size: 2rem; color: #888; cursor: pointer; transition: 0.2s; }
.close:hover { color: #fff; transform: scale(1.1); }
.modal-stats-footer { margin-top: 25px; padding: 15px; background: #151515; border-radius: 10px; border: 1px solid #222; font-family: monospace; color: var(--green-accent); font-size: 1.1rem; text-align: center; }

@media (max-width: 900px) { 
    .blade { grid-template-columns: 1fr 1fr; gap: 15px; padding: 20px; } 
    .uptime-trigger { text-align: left; } 
}