:root {
    --bg-dark: #070a12;
    --bg-card: rgba(16, 24, 40, 0.75);
    --border-color: rgba(255, 255, 255, 0.08);
    --border-highlight: rgba(0, 240, 255, 0.3);
    --text-primary: #f0f4f8;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --accent-cyan: #00f0ff;
    --accent-emerald: #10b981;
    --accent-purple: #8b5cf6;
    --accent-amber: #f59e0b;
    --accent-rose: #f43f5e;
    --card-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
    --glow-cyan: 0 0 20px rgba(0, 240, 255, 0.15);
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-image: 
        radial-gradient(at 0% 0%, rgba(0, 240, 255, 0.05) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(139, 92, 246, 0.05) 0px, transparent 50%);
    background-attachment: fixed;
}

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Navbar */
.navbar {
    background: rgba(7, 10, 18, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 16px 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    font-size: 28px;
    background: linear-gradient(135deg, #00f0ff, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 8px rgba(0, 240, 255, 0.4));
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-main {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.logo-main .highlight {
    color: var(--accent-cyan);
}

.logo-tag {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: var(--text-muted);
}

.nav-badges {
    display: flex;
    align-items: center;
    gap: 16px;
}

.status-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 9999px;
    font-size: 12px;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
}

.status-badge.online {
    border-color: rgba(16, 185, 129, 0.3);
    color: var(--accent-emerald);
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-emerald);
    box-shadow: 0 0 8px var(--accent-emerald);
    animation: pulse 2s infinite;
}

.fee-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.3);
    padding: 6px 14px;
    border-radius: 9999px;
    font-size: 12px;
}

.fee-label {
    color: var(--text-secondary);
}

.fee-value {
    color: #c4b5fd;
    font-weight: 600;
}

/* Main Content */
.main-content {
    flex: 1;
    padding-top: 32px;
    padding-bottom: 64px;
    display: flex;
    flex-direction: column;
    gap: 28px;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

.stat-card {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 24px;
    box-shadow: var(--card-shadow);
    transition: all 0.25s ease;
}

.stat-card:hover {
    border-color: var(--border-highlight);
    transform: translateY(-2px);
    box-shadow: var(--glow-cyan);
}

.stat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.stat-title {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--text-secondary);
}

.stat-icon {
    font-size: 18px;
}

.stat-value {
    font-size: 32px;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--text-primary);
    font-family: 'JetBrains Mono', monospace;
    margin-bottom: 6px;
}

.stat-value .unit {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-secondary);
}

.stat-sub {
    font-size: 12px;
    color: var(--text-muted);
}

/* Section Cards */
.section-card {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: 18px;
    padding: 28px;
    box-shadow: var(--card-shadow);
}

.card-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 16px;
}

.section-title {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.3px;
    margin-bottom: 6px;
}

.card-subtitle {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 16px;
}

.section-desc {
    font-size: 13px;
    color: var(--text-secondary);
}

.shield-tag {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(0, 240, 255, 0.08);
    border: 1px solid rgba(0, 240, 255, 0.25);
    color: var(--accent-cyan);
    padding: 6px 14px;
    border-radius: 9999px;
    font-size: 12px;
    font-weight: 600;
}

/* Search Form */
.search-form {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.search-form input {
    flex: 1;
    min-width: 280px;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 12px 18px;
    color: #fff;
    font-size: 14px;
    font-family: 'JetBrains Mono', monospace;
    outline: none;
    transition: border-color 0.2s;
}

.search-form input:focus {
    border-color: var(--accent-cyan);
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.2);
}

.btn-primary {
    background: linear-gradient(135deg, #00f0ff, #00b4d8);
    color: #000;
    font-weight: 700;
    border: none;
    border-radius: 10px;
    padding: 12px 24px;
    font-size: 14px;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.1s;
}

.btn-primary:hover {
    opacity: 0.92;
    transform: translateY(-1px);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    border-radius: 10px;
    padding: 12px 18px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Miner Overview Grid */
.miner-results {
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
    animation: fadeIn 0.3s ease;
}

.miner-results.hidden {
    display: none;
}

.miner-overview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.mini-stat {
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 16px;
}

.mini-label {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 6px;
}

.mini-val {
    font-size: 18px;
    font-weight: 700;
    font-family: 'JetBrains Mono', monospace;
}

.mini-val.highlight {
    color: var(--accent-emerald);
}

/* Tabs */
.tab-buttons {
    display: flex;
    gap: 8px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.tab-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    padding: 10px 18px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    position: relative;
    transition: color 0.2s;
}

.tab-btn.active {
    color: var(--accent-cyan);
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--accent-cyan);
    box-shadow: 0 0 10px var(--accent-cyan);
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
    animation: fadeIn 0.25s ease;
}

/* Config Boxes */
.config-box {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 12px;
}

.config-header {
    background: rgba(255, 255, 255, 0.03);
    padding: 10px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-color);
}

.copy-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border-color);
    color: #fff;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 11px;
    cursor: pointer;
    transition: all 0.2s;
}

.copy-btn:hover {
    background: var(--accent-cyan);
    color: #000;
}

.config-box pre {
    padding: 14px 16px;
    overflow-x: auto;
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    color: #7dd3fc;
}

.config-tip {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Endpoint Cards */
.endpoint-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
}

.endpoint-card {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 18px;
}

.endpoint-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    margin-bottom: 10px;
}

.badge-wss {
    background: rgba(0, 240, 255, 0.1);
    color: var(--accent-cyan);
}

.badge-tcp {
    background: rgba(16, 185, 129, 0.1);
    color: var(--accent-emerald);
}

.endpoint-url {
    font-family: 'JetBrains Mono', monospace;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 6px;
    word-break: break-all;
}

.endpoint-desc {
    font-size: 12px;
    color: var(--text-muted);
}

/* Two Column Grid */
.grid-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

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

.chart-wrapper {
    height: 260px;
    width: 100%;
}

/* Tables */
.table-container {
    overflow-x: auto;
}

.small-table {
    max-height: 260px;
    overflow-y: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    text-align: left;
}

.data-table th {
    padding: 12px 14px;
    background: rgba(0, 0, 0, 0.2);
    color: var(--text-muted);
    font-weight: 600;
    border-bottom: 1px solid var(--border-color);
}

.data-table td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-secondary);
}

.data-table tr:hover td {
    background: rgba(255, 255, 255, 0.02);
    color: var(--text-primary);
}

.text-center {
    text-align: center;
}

/* Ticker Stream */
.ticker-card {
    padding: 20px 24px;
}

.ticker-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.ticker-header h3 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
}

.pulse-icon {
    width: 8px;
    height: 8px;
    background: var(--accent-cyan);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-cyan);
    animation: pulse 1.5s infinite;
}

.ticker-stream {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 140px;
    overflow-y: auto;
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
}

.ticker-item {
    padding: 6px 12px;
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.25);
    border-left: 3px solid var(--text-muted);
    animation: slideIn 0.2s ease;
}

.ticker-item.share {
    border-left-color: var(--accent-cyan);
    color: #e2e8f0;
}

.ticker-item.block {
    border-left-color: var(--accent-emerald);
    color: #a7f3d0;
    background: rgba(16, 185, 129, 0.1);
    font-weight: 600;
}

.ticker-item.system {
    border-left-color: var(--accent-purple);
    color: #cbd5e1;
}

/* Footer */
.footer {
    border-top: 1px solid var(--border-color);
    padding: 24px 0;
    margin-top: auto;
    font-size: 12px;
    color: var(--text-muted);
    background: rgba(7, 10, 18, 0.85);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

/* Animations */
@keyframes pulse {
    0% { transform: scale(0.95); opacity: 0.8; }
    50% { transform: scale(1.15); opacity: 1; }
    100% { transform: scale(0.95); opacity: 0.8; }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideIn {
    from { opacity: 0; transform: translateX(-8px); }
    to { opacity: 1; transform: translateX(0); }
}

/* 1-Click Miner Download Section */
.miner-download-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
    margin-top: 24px;
}

.miner-dl-card {
    background: rgba(16, 24, 40, 0.65);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    transition: all 0.25s ease;
}

.miner-dl-card:hover {
    border-color: rgba(0, 240, 255, 0.4);
    box-shadow: 0 10px 30px rgba(0, 240, 255, 0.1);
    transform: translateY(-2px);
}

.dl-platform-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
}

.platform-icon {
    font-size: 32px;
}

.platform-name {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 2px;
}

.platform-sub {
    font-size: 12px;
    color: var(--accent-cyan);
    font-weight: 500;
}

.dl-desc {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 20px;
    flex: 1;
}

.btn-download {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 20px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
}

.btn-win {
    background: linear-gradient(135deg, #00f0ff, #0077b6);
    color: #000;
    box-shadow: 0 4px 15px rgba(0, 240, 255, 0.3);
}

.btn-win:hover {
    box-shadow: 0 6px 20px rgba(0, 240, 255, 0.5);
    transform: translateY(-1px);
}

.btn-linux {
    background: linear-gradient(135deg, #10b981, #059669);
    color: #000;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.btn-linux:hover {
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.5);
    transform: translateY(-1px);
}

.btn-mac {
    background: linear-gradient(135deg, #a78bfa, #7c3aed);
    color: #fff;
    box-shadow: 0 4px 15px rgba(167, 139, 250, 0.3);
}

.btn-mac:hover {
    box-shadow: 0 6px 20px rgba(167, 139, 250, 0.5);
    transform: translateY(-1px);
}

.dl-icon {
    font-size: 16px;
}

.dl-meta {
    font-size: 11px;
    color: var(--text-muted);
    text-align: center;
    margin-top: 10px;
}

/* 3 Quick Steps */
.quick-steps-box {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
}

.steps-title {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 16px;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
}

.step-card {
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.step-num {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(0, 240, 255, 0.15);
    color: var(--accent-cyan);
    font-weight: 700;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 4px;
}

.step-title {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
}

.step-desc {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* Web Miner Navbar and Card Buttons */
.nav-btn-webminer {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.15), rgba(168, 85, 247, 0.2));
    color: var(--accent-cyan);
    border: 1px solid rgba(0, 240, 255, 0.4);
    padding: 6px 14px;
    border-radius: 9999px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 0 12px rgba(0, 240, 255, 0.15);
}

.nav-btn-webminer:hover {
    background: linear-gradient(135deg, #00f0ff, #a855f7);
    color: #000;
    border-color: #00f0ff;
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.4);
    transform: translateY(-1px);
}

.card-web-miner {
    border-color: rgba(168, 85, 247, 0.3);
}

.card-web-miner:hover {
    border-color: rgba(168, 85, 247, 0.6);
    box-shadow: 0 10px 30px rgba(168, 85, 247, 0.15);
}

.btn-web {
    background: linear-gradient(135deg, #00f0ff, #a855f7);
    color: #000;
    font-weight: 700;
}

.btn-web:hover {
    box-shadow: 0 0 24px rgba(0, 240, 255, 0.4);
}



