:root {
    --bg-dark: #07090f;
    --glass-bg: rgba(16, 22, 38, 0.7);
    --glass-border: rgba(43, 219, 255, 0.2);
    --neon-cyan: #00f0ff;
    --neon-pink: #ff003c;
    --text-main: #e2e8f0;
    --text-muted: #94a3b8;
    --font-sans: 'Inter', sans-serif;
    --font-display: 'Orbitron', sans-serif;
}

html {
    scroll-behavior: smooth;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-sans);
    line-height: 1.6;
    background-image:
        radial-gradient(circle at 15% 50%, rgba(0, 240, 255, 0.05), transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(255, 0, 60, 0.05), transparent 25%);
    background-attachment: fixed;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: #1e293b;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--neon-cyan);
}

.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.glass-panel:hover {
    border-color: rgba(0, 240, 255, 0.5);
    box-shadow: 0 8px 32px 0 rgba(0, 240, 255, 0.1);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    background: rgba(7, 9, 15, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo h1 {
    font-family: var(--font-display);
    font-size: 1.8rem;
    color: var(--text-main);
    letter-spacing: 2px;
}

.logo span {
    color: var(--neon-cyan);
    text-shadow: 0 0 10px rgba(0, 240, 255, 0.5);
}

nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}

nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

nav a:hover,
nav a.active {
    color: var(--neon-cyan);
    text-shadow: 0 0 8px rgba(0, 240, 255, 0.5);
}

.language-selector {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-left: 2rem;
}

.lang-flag {
    font-size: 1.5rem;
    cursor: pointer;
    transition: transform 0.2s ease, filter 0.2s ease;
    filter: grayscale(100%) opacity(0.6);
}

.lang-flag:hover {
    transform: scale(1.2);
    filter: grayscale(0%) opacity(1);
}

.lang-flag.active-lang {
    filter: grayscale(0%) opacity(1);
    transform: scale(1.1);
    border-bottom: 2px solid var(--neon-cyan);
}

.ad-banner {
    width: 100%;
    max-width: 728px;
    height: 90px;
    margin: 1rem auto;
    background: #111827;
    border: 1px dashed #334155;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #475569;
    font-size: 0.8rem;
    border-radius: 8px;
}

main {
    flex: 1;
    padding: 2rem 5%;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

.section-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-main);
    text-transform: uppercase;
    letter-spacing: 2px;
    border-left: 4px solid var(--neon-cyan);
    padding-left: 0.8rem;
}

.section-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.section-header-flex .section-title {
    margin-bottom: 0;
}

.jump-link {
    color: var(--neon-cyan);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border: 1px solid var(--neon-cyan);
    border-radius: 4px;
    background: rgba(0, 240, 255, 0.1);
}

.jump-link:hover {
    background: var(--neon-cyan);
    color: #000;
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.5);
}

/* User counts styling */
.live-stats-bar {
    display: flex;
    justify-content: center;
    gap: 3rem;
    padding: 1rem 2rem;
    margin-bottom: 2rem;
    align-items: center;
    border-color: rgba(0, 240, 255, 0.3);
}

.live-stat-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.pulse-dot {
    width: 10px;
    height: 10px;
    background-color: var(--neon-pink);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--neon-pink);
    animation: pulse 1.5s infinite alternate;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    100% {
        transform: scale(1.5);
        opacity: 0.5;
    }
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-number {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: #fff;
    font-weight: 700;
}

.hero-dashboard {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

.main-gauge-container {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 400px;
}

.speedometer {
    position: relative;
    width: 100%;
    max-width: 400px;
    display: flex;
    justify-content: center;
}

.meter {
    width: 100%;
    height: auto;
    transform: rotate(180deg);
}

.meter-bg {
    stroke: #1e293b;
}

.meter-value {
    stroke: var(--neon-cyan);
    filter: drop-shadow(0 0 8px var(--neon-cyan));
    transition: stroke-dashoffset 2s cubic-bezier(0.16, 1, 0.3, 1);
}

.meter-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    transform: translateY(20px);
}

.leader-name {
    font-size: 1.2rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: -10px;
    z-index: 2;
}

.qbit-count {
    font-family: var(--font-display);
    font-size: 5rem;
    font-weight: 900;
    color: #fff;
    text-shadow: 0 0 20px rgba(0, 240, 255, 0.8), 0 0 40px rgba(0, 240, 255, 0.4);
    line-height: 1;
}

.qbit-label {
    font-size: 1rem;
    color: var(--neon-cyan);
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-top: 5px;
}

.side-panels {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.stat-card {
    padding: 2rem;
    text-align: center;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.stat-card h3 {
    font-size: 1rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.stat-value {
    font-family: var(--font-display);
    font-size: 2.5rem;
    color: var(--neon-pink);
    text-shadow: 0 0 15px rgba(255, 0, 60, 0.5);
}

.ad-card {
    background: #111827;
    border: 1px dashed #334155;
    color: #475569;
    font-size: 0.8rem;
}

.rankings-section {
    margin-bottom: 3rem;
}

.table-container {
    padding: 1rem;
    overflow-x: auto;
}

.ranking-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.ranking-table th {
    padding: 1rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    border-bottom: 1px solid var(--glass-border);
}

.ranking-table td {
    padding: 1.2rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 1rem;
}

.ranking-table tbody tr {
    transition: background 0.2s ease;
}

.ranking-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.03);
}

.ranking-table tbody tr:last-child td {
    border-bottom: none;
}

.rank-col {
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--text-muted);
    width: 60px;
}

.entity-col {
    font-weight: 600;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
}

.type-col {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.qbit-col {
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--neon-cyan);
    white-space: nowrap;
}

.qubit-physical {
    font-size: 1.1rem;
    color: var(--neon-cyan);
}

.qubit-divider {
    color: var(--text-muted);
    font-weight: 300;
    margin: 0 0.3rem;
    font-size: 0.9rem;
}

.qubit-logical {
    font-size: 0.95rem;
    color: #ffd700;
}

.adv-metric-col {
    font-family: var(--font-main);
    color: var(--neon-pink);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.adv-metric-col sup {
    font-size: 0.65rem;
}

.trend-up {
    color: #10b981;
}

.trend-down {
    color: var(--neon-pink);
}

/* --- Intel Section --- */
.intel-section {
    margin-bottom: 3rem;
    padding-top: 2rem;
}

.intel-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.intel-card {
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
    gap: 1rem;
}

.intel-card h3 {
    font-size: 1.1rem;
    color: #fff;
    line-height: 1.4;
    font-family: var(--font-display);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 0.5rem;
}

.intel-card p.intel-summary {
    font-size: 0.95rem;
    color: var(--text-main);
    flex-grow: 1;
}

.intel-badges {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    background: rgba(0, 0, 0, 0.2);
    padding: 1rem;
    border-radius: 8px;
    border: 1px dashed rgba(43, 219, 255, 0.3);
}

.intel-badge {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
}

.intel-badge-label {
    color: var(--text-muted);
    font-weight: 600;
}

.intel-badge-value {
    color: var(--neon-cyan);
    font-weight: 700;
    text-align: right;
}

.intel-badge-value.qubit-val {
    font-size: 1rem;
    color: var(--neon-pink);
    text-shadow: 0 0 5px rgba(255, 0, 60, 0.5);
}

.intel-btn {
    display: inline-block;
    text-align: center;
    background: rgba(0, 240, 255, 0.1);
    border: 1px solid var(--neon-cyan);
    color: var(--neon-cyan);
    text-decoration: none;
    padding: 0.6rem 1rem;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    margin-top: auto;
}

.intel-btn:hover {
    background: var(--neon-cyan);
    color: #000;
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.6);
}

footer {
    text-align: center;
    padding: 2rem;
    border-top: 1px solid var(--glass-border);
    background: rgba(7, 9, 15, 0.8);
    backdrop-filter: blur(10px);
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-links {
    margin-bottom: 1rem;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    margin: 0 0.5rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--neon-cyan);
}

/* --- Buy Me A Coffee Floating Button --- */
.bmc-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: rgba(255, 221, 0, 0.9);
    color: #000;
    text-decoration: none;
    font-family: var(--font-main);
    font-weight: 700;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(255, 221, 0, 0.4);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    z-index: 1000;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.bmc-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(255, 221, 0, 0.6);
}

@media (max-width: 900px) {
    .hero-dashboard {
        grid-template-columns: 1fr;
    }

    .side-panels {
        flex-direction: row;
    }
}

@media (max-width: 600px) {
    .side-panels {
        flex-direction: column;
    }

    .qbit-count {
        font-size: 4rem;
    }

    .nav ul {
        gap: 1rem;
    }

    .logo h1 {
        font-size: 1.4rem;
    }
}

/* Content Pages (About / Privacy) */
.content-page {
    max-width: 800px;
    margin: 2rem auto;
}

.text-content {
    padding: 3rem;
}

.article-body h3 {
    font-family: var(--font-display);
    color: var(--neon-cyan);
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.2rem;
    letter-spacing: 1px;
}

.article-body p {
    margin-bottom: 1.5rem;
    color: var(--text-main);
    font-size: 1.05rem;
    line-height: 1.8;
}

.article-body ul {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
    color: var(--text-main);
}

.article-body li {
    margin-bottom: 0.5rem;
}