:root {
    --bg-color: #0f1115;
    --card-bg: #181b21;
    --primary: #00ff9d;
    --primary-glow: rgba(0, 255, 157, 0.3);
    --secondary: #00d2ff;
    --text-main: #ffffff;
    --text-muted: #8b9bb4;
    --font-stack: 'Outfit', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-stack);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.main-header {
    text-align: center;
    padding: 2rem 1rem 0.5rem 1rem;
    /* Reduced bottom padding from 2rem to 0.5rem */
    margin-bottom: 0.5rem;
}

.main-header h1 {
    font-size: 2rem;
    font-weight: 800;
    margin: 1rem 0 0.5rem;
    color: var(--text-main);
    line-height: 1.2;
}

@media(max-width: 600px) {
    .main-header h1 {
        font-size: 1.5rem;
    }
}

.logo-img {
    max-width: 250px;
    height: auto;
    display: block;
    margin: 0 auto;
}

.subtitle {
    color: var(--text-muted);
    font-size: 1rem;
    margin-top: 0.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.app-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1.5rem;
    /* Gap between cards */
}

/* HERO DASHBOARD */
.hero-dashboard {
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.03) 0%, transparent 70%);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    padding: 2.5rem;
    position: relative;
    max-width: 700px;
    width: 100%;
    margin: 0 auto;
    box-shadow: 0 0 60px rgba(0, 0, 0, 0.3);
    text-align: center;
    backdrop-filter: blur(10px);
}

.status-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.05);
    color: var(--primary);
    padding: 0.25rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
    /* Added spacing for new position above progress bar */
    border: 1px solid rgba(0, 255, 157, 0.1);
}

.status-badge:empty {
    display: none;
}

/* DUAL DISPLAY (Side by Side) */
.dual-display {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-bottom: 3rem;
    transition: opacity 0.5s ease;
}

.speed-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    min-width: 200px;
    /* Ensure space is reserved */
}

.speed-label {
    font-size: 1rem;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
}

.speed-c {
    display: flex;
    align-items: baseline;
    justify-content: center;
    min-height: 5rem;
    /* Reserve height */
}

.speed-value-large {
    font-size: 5rem;
    font-weight: 700;
    line-height: 1;
    color: #fff;
    text-shadow: 0 0 30px var(--primary-glow);
    font-variant-numeric: tabular-nums;
    min-width: 3ch;
    /* Reserve space for at least 3 chars */
    text-align: right;
}

.speed-unit-large {
    font-size: 1.2rem;
    color: var(--text-muted);
    font-weight: 300;
    margin-left: 0.5rem;
}

/* GAUGES (Imported Style) */
.gauge-wrapper {
    position: relative;
    width: 250px;
    height: 140px;
    /* Cut off bottom half of the circle */
    overflow: hidden;
    margin: 0 auto;
}

.gauge-imported {
    position: absolute;
    width: 500px;
    /* Original Size */
    height: 500px;
    top: 0;
    left: 50%;
    margin-left: -250px;
    border-radius: 100%;
    transform-origin: top center;
    transform: scale(0.5);
    /* Shrink to fit 250px container */

    /* GRADIENT BACKGROUND */
    /*
       Mapping Speed to Degrees (Log Scale):
       0-25 Mbps (0-30deg) -> Red (Fraco)
       25-100 Mbps (30-90deg) -> Orange (Limitado)
       100-300 Mbps (90-110deg) -> Yellow (Bom)
       300-600 Mbps (110-140deg) -> Green (Muito Bom)
       > 600 Mbps (140-180deg) -> Blue (Excelente)
    */
    background: conic-gradient(from 270deg,
            #FA0E1C 0deg,
            /* Start Red */
            #FA0E1C 15deg,
            /* Stay Red mostly */
            #FF8200 30deg,
            /* 25Mbps - Orange starts */
            #FEE62A 90deg,
            /* 100Mbps - Yellow starts */
            #09B84F 110deg,
            /* 300Mbps - Green starts */
            #00d2ff 140deg,
            /* 600Mbps - Blue starts */
            #00d2ff 180deg,
            /* End Blue */
            transparent 180deg);
}

.meter {
    margin: 0;
    padding: 0;
}

.meter>li {
    width: 250px;
    height: 250px;
    list-style-type: none;
    position: absolute;
    border-top-left-radius: 250px;
    border-top-right-radius: 0px;
    transform-origin: 100% 100%;
    transition-property: transform;
    pointer-events: none;
}

.meter .low {
    transform: rotate(0deg);
    z-index: 8;
    background-color: transparent;
    /* Replaced by gradient */
}

.meter .normal {
    transform: rotate(47deg);
    z-index: 7;
    background-color: transparent;
    /* Replaced by gradient */
}

.meter .high {
    transform: rotate(90deg);
    z-index: 6;
    background-color: transparent;
    /* Replaced by gradient */
}

/* THE MASK (The inner circle that hides the center) */
.dial {
    background-color: #181b21;
    /* Match the card background to mask properly */
    width: 470px;
    height: 470px;
    position: relative;
    top: 15px;
    /* (500-470)/2 = 15px offset center */
    left: 15px;
    border-radius: 100%;
    z-index: 10;
}

/* The Rotating Container for the Needle */
.dial .inner {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    transition: transform 0.2s ease-out;
    transform: rotate(0deg);
}

/* The Needle Arrow */
.dial .arrow {
    width: 0;
    height: 0;
    position: absolute;
    /* Position the arrow at the start of the arc (left side) */
    /* The gauge arc starts at 0deg (left/west) and goes to 180deg (right/east) */
    /* Adjust these values to place the arrow exactly on the rim */
    top: 220px;
    left: 10px;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 25px solid #ffffff;
    transform: rotate(-90deg);
    /* Point along the arc */
    filter: drop-shadow(0 0 2px rgba(0, 0, 0, 0.5));
}

/* Value Text */
.gauge-imported .value {
    font-family: 'Outfit', sans-serif;
    font-size: 50px;
    color: #ffffff;
    position: absolute;
    top: 170px;
    left: 0;
    width: 100%;
    text-align: center;
    z-index: 11;
    font-weight: 700;
}

.speed-label-small {
    margin-top: 1rem;
    display: block;
    color: var(--text-muted);
}

.vertical-divider {
    width: 1px;
    height: 80px;
    background: rgba(255, 255, 255, 0.1);
}

@media(max-width: 600px) {
    .speed-value-large {
        font-size: 3.5rem;
    }

    .dual-display {
        gap: 1rem;
    }
}

.hero-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 2rem 0;
    margin-bottom: 2rem;
}

.hero-stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 600;
    color: #fff;
}

.stat-sub {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.highlight .stat-value {
    color: var(--primary);
}

.progress-container {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    margin-bottom: 2rem;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #09B84F, #00d2ff);
    /* Green -> Blue */
    box-shadow: 0 0 10px rgba(0, 210, 255, 0.5);
    transition: width 0.2s linear;
}

.controls-area {
    margin-bottom: 1rem;
}

.glow-button {
    background: var(--primary);
    color: #000;
    border: none;
    padding: 1.2rem 4rem;
    font-size: 1.1rem;
    font-weight: 800;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 0 30px var(--primary-glow);
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.glow-button:hover {
    transform: scale(1.05);
    box-shadow: 0 0 50px var(--primary-glow);
}

.secondary-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-main);
    padding: 0.8rem 2rem;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.2s;
}

.secondary-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--text-main);
}

.hidden {
    display: none !important;
}

.action-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.server-micro {
    font-size: 0.75rem;
    color: var(--text-muted);
    opacity: 0.6;
    margin-top: 1rem;
}

/* SECONDARY INFO DASHBOARD */
/* Now embedded in Hero */
/* Now embedded in Hero */
.info-grid-embedded {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    grid-auto-flow: column;
    /* Fills Column 1 then Column 2 */
    gap: 2rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
}

.info-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.info-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.3rem;
}

.info-value {
    font-size: 0.9rem;
    color: #fff;
    font-weight: 600;
}

/* Privacy Blur Utility */
.blur-text {
    filter: blur(4px);
    cursor: pointer;
    user-select: none;
    transition: filter 0.3s ease;
}

.blur-text:hover {
    opacity: 0.8;
}

.blur-text.revealed {
    filter: blur(0);
    cursor: text;
    user-select: text;
}

.main-footer {
    text-align: center;
    padding: 2rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: auto;
}

.main-footer a {
    color: inherit;
    text-decoration: none;
    margin: 0 0.5rem;
    transition: color 0.2s;
}

.main-footer a:hover {
    color: var(--text-main);
}

@media(max-width: 600px) {
    .speed-value {
        font-size: 4.5rem;
    }

    .hero-stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }

    .hero-dashboard {
        padding: 1.5rem;
    }

    .info-grid {
        flex-direction: column;
        gap: 1.5rem;
    }
}

/* TEXT PAGES (Sobre, Privacidade, etc) */
.text-content {
    background: #181b21;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    padding: 2.5rem;
    max-width: 900px;
    width: 100%;
    margin: 0 auto;
    color: var(--text-muted);
}

.text-content h1 {
    color: var(--text-main);
    font-size: 2rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.text-content h2 {
    color: var(--text-main);
    font-size: 1.4rem;
    margin: 2rem 0 1rem;
}

.text-content p {
    margin-bottom: 1rem;
    line-height: 1.7;
}

.text-content ul {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.text-content li {
    margin-bottom: 0.5rem;
}

.text-content a {
    color: var(--primary);
    text-decoration: none;
}

.text-content a:hover {
    text-decoration: underline;
}

/* AD SPACES */
.ad-container {
    width: 100%;
    max-width: 900px;
    margin: 0.5rem auto 1.5rem auto;
    /* Reduced top margin from 1.5rem to 0.5rem */
    background: rgba(255, 255, 255, 0.03);
    border: 1px dashed rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 8px;
    overflow: hidden;
}

.ad-label {
    color: rgba(255, 255, 255, 0.2);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Desktop Ad Sizes */
.ad-top {
    min-height: 90px;
}

.ad-middle {
    min-height: 250px;
}

/* Responsive Adjustments */
@media(max-width: 768px) {
    .dual-display {
        flex-direction: column;
        /* Stack gauges */
        gap: 2rem;
    }

    .speed-box {
        width: 100%;
    }

    /* Mobile Ad Sizes */
    .ad-top {
        min-height: 60px;
    }

    .ad-middle {
        min-height: 250px;
    }

    .hero-stats-grid {
        grid-template-columns: 1fr 1fr;
        /* 2x2 grid */
        gap: 1rem;
    }

    .main-header h1 {
        font-size: 1.5rem;
    }

    .glow-button {
        width: 100%;
        /* Full width button on mobile */
        padding: 1rem;
    }

    /* Stack Info Grid on Mobile */
    .info-grid-embedded {
        flex-direction: column;
        gap: 1.5rem;
    }

    .info-col {
        width: 100%;
        flex-direction: row;
        /* Keep items side-by-side inside the column block? Or column? */
        /* User's desktop layout:
           Col 1: Latency (Top), IP (Bottom) -> Vertical inside col.
           Col 2: Op (Top), Loc (Bottom) -> Vertical inside col.
           
           If I stack the columns themselves, I get:
           [Latency]
           [IP]
           [Op]
           [Loc]
           
           This is a good vertical stack for mobile.
        */
        flex-direction: row;
        justify-content: space-around;
        /* Maybe put Ping left, IP right? */
    }

    /* Wait, the user set vertical inside the column for desktop. 
       .info-col { flex-direction: column; }
       
       If I make .info-grid-embedded column, I get:
       Block 1 (Ping/IP)
       Block 2 (Op/Loc)
       
       If Block 1 is still column, it's:
       Ping
       IP
       Op
       Loc
       
       That's a lot of vertical space. 
       Maybe on mobile we want 2x2 grid?
       The desktop is side-by-side columns:
       Ping | Op
       IP   | Loc
       (Wait, no, I did: Col1(Ping, IP) | Col2(Op, Loc))
       
       Let's stick to simple stacking for safety, or a 2x2 grid.
       
       If I use the existing .info-grid-embedded flex-direction: column (added in previous edit? No, I added .info-grid-embedded styles, but I didn't see the media query update for it yet other than what was there before).
       
       The previous `style.css` view showed:
       ```css
       660:     /* Stack Info Grid on Mobile */
    661: .info-grid-embedded {
        662: flex-direction: column;
        663: gap: 1.5rem;
        664:
    }

    ``` (This was from my previous "Stack Info Grid" edit). But now I have `.info-col`. If `info-grid-embedded` is column,
    then `.info-col`s are stacked. And `.info-col` has `width: 45%` in desktop. I need to make it `100%`. Also,
    maybe inside `.info-col` on mobile,
    we want them side-by-side to save height? Ping (Left) - IP (Right)? But IP is long. Let's stick to full vertical stack.
 */ .info-col {
        width: 100%;
    }
}