/* CKPool Solo WebUI - Based on Reference Design */

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

body {
    font-family: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: transparent;
    color: #212121;
    min-height: 100vh;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    padding: 0;
    position: relative;
    overflow-x: hidden;
    max-width: 100vw;
}

/* Background - Default Light Mode */
.background {
    position: fixed;
    width: 100vw;
    height: 100vh;
    top: 0;
    left: 0;
    margin: 0;
    padding: 0;
    background: #F1F1F1;
    overflow: hidden;
    z-index: -1;
}

/* Dark Mode Styles */
body.dark-mode {
    color: #e0e0e0;
}

body.dark-mode .background {
    background: #1F2324;
}

/* Recuadros/Cards con fondo oscuro - TODOS los elementos (excepto stats-box-1 y stats-box-2) */
body.dark-mode .stats-box:not(.stats-box-1):not(.stats-box-2),
body.dark-mode .efficiency-card,
body.dark-mode .chart-section,
body.dark-mode .leaderboard-table-wrapper,
body.dark-mode .stats-section,
body.dark-mode .workers-table-section,
body.dark-mode .pool-stats-grid > div,
body.dark-mode .hero-card,
body.dark-mode .guide__card,
body.dark-mode .chart-container,
body.dark-mode .hashrate-chart-section,
body.dark-mode .search-bar,
body.dark-mode .stat-card,
body.dark-mode .home-section.hashrate-section,
body.dark-mode .top-card,
body.dark-mode .home-section,
body.dark-mode .modal-content,
body.dark-mode .modal-content-guide,
body.dark-mode .status-indicator-box,
body.dark-mode .estimation-card,
body.dark-mode .no-data,
body.dark-mode .error-content,
body.dark-mode .footer-content {
    background: #1A1B1D !important;
    border: 1px solid #3D3D3D !important;
}

body.dark-mode .pool-stat-box {
    background: #1A1B1D !important;
    border: 1px solid #333333 !important;
}

/* Títulos y labels en blanco */
body.dark-mode .stats-header,
body.dark-mode .card-label,
body.dark-mode h2,
body.dark-mode h3,
body.dark-mode h4,
body.dark-mode .stat-label,
body.dark-mode .top-card h3,
body.dark-mode .workers-table-section h3,
body.dark-mode .hashrate-chart-section h3,
body.dark-mode .miner-address-header,
body.dark-mode .hero-title-section h2,
body.dark-mode .modal-content h3,
body.dark-mode .guide__header h1,
body.dark-mode .footer-title {
    color: #ffffff !important;
}

/* Hero section en dark mode */
body.dark-mode .hero-title,
body.dark-mode .hero-subtitle {
    color: #ffffff;
}

/* Tablas en dark mode */
body.dark-mode .leaderboard-table {
    background: #1A1B1D !important;
}

body.dark-mode .leaderboard-table thead {
    background: #1A1B1D !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

body.dark-mode .leaderboard-table th {
    color: #ffffff !important;
    background: #1A1B1D !important;
}

body.dark-mode .leaderboard-table tbody tr {
    background: #1A1B1D !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

body.dark-mode .leaderboard-table tbody tr:hover {
    background: rgba(236, 212, 0, 0.05) !important;
}

body.dark-mode .leaderboard-table td {
    color: #e0e0e0 !important;
}

body.dark-mode .leaderboard-table .rank-cell,
body.dark-mode .leaderboard-table .worker-cell,
body.dark-mode .leaderboard-table .hashrate-cell {
    color: #ffffff !important;
}

body.dark-mode .leaderboard-table .diff-cell {
    color: #ECD400 !important;
}

/* Input en dark mode */
body.dark-mode input[type="text"],
body.dark-mode input[type="search"] {
    background: #1A1B1D !important;
    border: 1px solid #3D3D3D !important;
    color: #ffffff !important;
}

body.dark-mode input::placeholder {
    color: rgba(255, 255, 255, 0.5) !important;
}

/* Título "CHECK YOUR WORKER STATS" sin fondo negro */
body.dark-mode h2,
body.dark-mode h3,
body.dark-mode h4 {
    background: transparent !important;
}

/* Botón "CONNECT YOUR MINER" con borde correcto - NO tocar navbar */
body.dark-mode .btn:not(.dark-mode-toggle):not(.stats-btn-refresh):not(.connect-miner-btn):not(.year-btn),
body.dark-mode button:not(.dark-mode-toggle):not(.navbar button):not(.navbar *):not(.stats-btn-refresh):not(.connect-miner-btn):not(.year-btn) {
    border: 1px solid #3D3D3D !important;
    background: #1A1B1D !important;
    color: #ffffff !important;
}

body.dark-mode .btn:not(.dark-mode-toggle):not(.stats-btn-refresh):not(.connect-miner-btn):not(.year-btn):hover,
body.dark-mode button:not(.dark-mode-toggle):not(.navbar button):not(.navbar *):not(.stats-btn-refresh):not(.connect-miner-btn):not(.year-btn):hover {
    background: #252627 !important;
    border-color: #ECD400 !important;
}

/* Connect Miner Button */
body.dark-mode .connect-miner-btn {
    background: #1A1B1D !important;
    color: #e0e0e0 !important;
    border: 1px solid #3D3D3D !important;
}

body.dark-mode .connect-miner-btn:hover {
    background: #252627 !important;
    border-color: #ECD400 !important;
    color: #ECD400 !important;
}

/* Pool stat labels and values in dark mode */
body.dark-mode .pool-stat-label {
    color: #b0b0b0 !important;
}

body.dark-mode .pool-stat-value {
    color: #ffffff !important;
}

body.dark-mode .pool-stat-border {
    border: none !important;
}

body.dark-mode .pool-stat-box.highlight .pool-stat-label {
    color: #ffffff !important;
}

body.dark-mode .pool-stat-box.highlight .pool-stat-value {
    color: #ECD400 !important;
}

/* NO tocar el navbar ni sus elementos en dark mode */
body.dark-mode .navbar,
body.dark-mode .navbar *,
body.dark-mode .nav-menu,
body.dark-mode .nav-menu-item,
body.dark-mode .dark-mode-toggle {
    /* Navbar mantiene sus estilos originales */
}

/* Canvas del gráfico */
body.dark-mode canvas {
    background: #1A1B1D !important;
}

/* Texto en párrafos */
body.dark-mode p,
body.dark-mode .top-card p {
    color: #b0b0b0 !important;
}

/* Status text and indicators */
body.dark-mode .status-text {
    color: #e0e0e0 !important;
}

/* Lookup card inputs */
body.dark-mode .lookup-card .input-group input {
    background: #1A1B1D !important;
    border: 1px solid #3D3D3D !important;
    color: #ffffff !important;
}

body.dark-mode .lookup-card .input-group input::placeholder {
    color: rgba(255, 255, 255, 0.5) !important;
}

body.dark-mode .lookup-form-inline input {
    background: #1A1B1D !important;
    border: 1px solid #3D3D3D !important;
    color: #ffffff !important;
}

body.dark-mode .lookup-form-inline input::placeholder {
    color: rgba(255, 255, 255, 0.5) !important;
}

/* Dark Mode - Input focus */
body.dark-mode .input-group input:focus {
    border-color: #ECD400 !important;
    box-shadow: 0 0 0 2px rgba(236, 212, 0, 0.2) !important;
}

/* Efficiency card text */
body.dark-mode .efficiency-card .card-label {
    color: #b0b0b0 !important;
}

body.dark-mode .efficiency-card .card-value {
    color: #ECD400 !important;
}

body.dark-mode .efficiency-card.primary {
    background: #252627 !important;
}

body.dark-mode .efficiency-card.primary .card-label {
    color: #ECD400 !important;
}

body.dark-mode .efficiency-card.primary .card-value {
    color: #ffffff !important;
}

body.dark-mode .pool-stat-box.highlight {
    background: #252627 !important;
}

body.dark-mode .pool-stat-box.highlight .pool-stat-label {
    color: #ffffff !important;
}

body.dark-mode .pool-stat-box.highlight .pool-stat-value {
    color: #ECD400 !important;
}

/* Alert styling in dark mode */
body.dark-mode .alert {
    background: #1A1B1D !important;
    border: 1px solid #3D3D3D !important;
}

body.dark-mode .alert-error {
    border-color: #ff6b6b !important;
}

body.dark-mode .alert-error p {
    color: #ff8b8b !important;
}

/* Modal styling in dark mode */
body.dark-mode .modal-content .stratum-line,
body.dark-mode .modal-content .stratum-info {
    color: #e0e0e0 !important;
}

body.dark-mode .modal-content .stratum-line span {
    color: #ECD400 !important;
}

/* Guide card styling */
body.dark-mode .guide__card ol,
body.dark-mode .guide__card .bullets,
body.dark-mode .guide__card p {
    color: #e0e0e0 !important;
}

body.dark-mode .guide__card .note {
    background: rgba(236, 212, 0, 0.1) !important;
    color: #ECD400 !important;
}

body.dark-mode .guide__card .field__label,
body.dark-mode .guide__card .muted {
    color: #b0b0b0 !important;
}

body.dark-mode .guide__card a {
    color: #ECD400 !important;
}

/* Leaderboard warning */
body.dark-mode .leaderboard-warning {
    background: rgba(236, 212, 0, 0.1) !important;
    border: 1px solid #3D3D3D !important;
    color: #ECD400 !important;
}

/* Error page styling */
body.dark-mode .error-message {
    color: #e0e0e0 !important;
}

body.dark-mode .error-stack {
    background: rgba(0, 0, 0, 0.3) !important;
    border: 1px solid #3D3D3D !important;
    color: #b0b0b0 !important;
}

/* No data styling */
body.dark-mode .no-data p {
    color: #b0b0b0 !important;
}

/* Dark Mode - Leaderboard Table Lines */
body.dark-mode .leaderboard-table td {
    border-bottom: 1px solid rgba(236, 212, 0, 0.1) !important;
}

/* Dark Mode - Workers Table Lines */
body.dark-mode .workers-table td {
    border-bottom: 1px solid rgba(236, 212, 0, 0.1) !important;
}

body.dark-mode .workers-table tr:hover td {
    background: rgba(236, 212, 0, 0.08) !important;
}

/* Dark Mode - Stats buttons */
body.dark-mode .stats-btn-refresh {
    background: #ECD400 !important;
    color: #000000 !important;
    border: none !important;
}

body.dark-mode .stats-btn-refresh:hover {
    background: #FFE066 !important;
    box-shadow: 0 4px 12px rgba(236, 212, 0, 0.3) !important;
}

/* Year buttons in dark mode */
body.dark-mode .year-btn {
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: rgba(255, 255, 255, 0.6) !important;
}

body.dark-mode .year-btn:hover {
    background: rgba(255, 255, 255, 0.15) !important;
    border-color: rgba(236, 212, 0, 0.4) !important;
    color: rgba(255, 255, 255, 0.9) !important;
}

body.dark-mode .year-btn.active {
    background: #ECD400 !important;
    border-color: #ECD400 !important;
    color: #000000 !important;
}

body.dark-mode .year-btn.active:hover {
    background: #FFE066 !important;
    border-color: #FFE066 !important;
}

/* Footer links in dark mode */
body.dark-mode .footer-link:hover {
    background: rgba(236, 212, 0, 0.15) !important;
    border-color: #ECD400 !important;
    color: #ECD400 !important;
}

body.dark-mode .footer-link.donate-link:hover {
    background: #ECD400 !important;
    color: #1A1B1D !important;
}

/* Recent searches in dark mode */
body.dark-mode .recent-searches-mini .search-item:hover {
    background: rgba(236, 212, 0, 0.15) !important;
    border-color: #ECD400 !important;
    color: #ECD400 !important;
}

/* Stats page wrapper in dark mode */
body.dark-mode .stats-page-wrapper {
    background: #1F2324 !important;
}

.background li {
    display: none;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    margin-top: 40px;
    width: 100%;
}

/* Navbar */
.navbar {
    background: #212121;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0;
    margin-bottom: 0;
    height: 72px;
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
}

/* Navbar Container - 3 column layout */
.navbar-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
    position: relative;
    z-index: 1;
}

/* Left section */
.navbar-left {
    flex: 1;
    display: flex;
    justify-content: flex-start;
    margin-left: -35px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 15px;
}

.nav-brand a {
    color: #ff931c;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: opacity 0.3s ease;
}

.nav-brand a:hover {
    opacity: 0.9;
}

.nav-logo {
    height: 40px;
    width: auto;
}

.pool-badge {
    padding: 4px 14px;
    border-radius: 4px;
    font-family: 'M PLUS 1 Code', monospace;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    height: 28px;
    box-sizing: border-box;
}

/* 1. Fondo sólido amarillo (original) */
.pool-badge-1 {
    background: #ECD400;
    color: #000000;
    box-shadow: 0 2px 8px rgba(236, 212, 0, 0.3);
}

.pool-badge-1:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(236, 212, 0, 0.5);
}

/* 2. Outline/Border style */
.pool-badge-2 {
    background: transparent;
    color: #ECD400;
    border: 2px solid #ECD400;
    box-shadow: 0 0 8px rgba(236, 212, 0, 0.2);
    font-weight: 800;
    letter-spacing: 1.5px;
}

.pool-badge-2:hover {
    background: rgba(236, 212, 0, 0.1);
    box-shadow: 0 0 12px rgba(236, 212, 0, 0.4);
}

.pool-badge-2 svg {
    filter: drop-shadow(0 0 2px rgba(236, 212, 0, 0.6));
}

.pool-badge-pickaxe svg {
    animation: pickaxe-swing 2s ease-in-out infinite;
}

@keyframes pickaxe-swing {
    0%, 100% {
        transform: rotate(0deg);
        filter: drop-shadow(0 0 2px rgba(236, 212, 0, 0.6));
    }
    25% {
        transform: rotate(-15deg);
        filter: drop-shadow(0 0 3px rgba(236, 212, 0, 0.8));
    }
    50% {
        transform: rotate(0deg);
        filter: drop-shadow(0 0 2px rgba(236, 212, 0, 0.6));
    }
}

/* 3. Neón/Glow effect with lightning */
.pool-badge-3 {
    background: rgba(236, 212, 0, 0.15);
    color: #ECD400;
    border: 1.5px solid #ECD400;
    box-shadow: 0 0 10px rgba(236, 212, 0, 0.6),
                0 0 20px rgba(236, 212, 0, 0.4),
                inset 0 0 10px rgba(236, 212, 0, 0.2);
    text-shadow: 0 0 8px rgba(236, 212, 0, 0.8);
    font-weight: 800;
    letter-spacing: 2px;
    animation: neon-pulse 2s ease-in-out infinite;
}

.pool-badge-3 svg {
    animation: lightning-glow 1s ease-in-out infinite;
}

@keyframes lightning-glow {
    0%, 100% {
        filter: drop-shadow(0 0 3px rgba(236, 212, 0, 1));
    }
    50% {
        filter: drop-shadow(0 0 6px rgba(236, 212, 0, 1)) drop-shadow(0 0 10px rgba(236, 212, 0, 0.5));
    }
}

@keyframes neon-pulse {
    0%, 100% {
        box-shadow: 0 0 10px rgba(236, 212, 0, 0.6),
                    0 0 20px rgba(236, 212, 0, 0.4),
                    inset 0 0 10px rgba(236, 212, 0, 0.2);
    }
    50% {
        box-shadow: 0 0 15px rgba(236, 212, 0, 0.8),
                    0 0 30px rgba(236, 212, 0, 0.6),
                    inset 0 0 15px rgba(236, 212, 0, 0.3);
    }
}

/* 4. Skewed/Inclinado */
.pool-badge-4 {
    background: #ECD400;
    color: #000000;
    transform: skewX(-10deg);
    box-shadow: 0 2px 8px rgba(236, 212, 0, 0.3);
}

.pool-badge-4:hover {
    transform: skewX(-10deg) translateY(-2px);
    box-shadow: 0 4px 12px rgba(236, 212, 0, 0.5);
}

/* 5. Gradiente */
.pool-badge-5 {
    background: linear-gradient(135deg, #ECD400 0%, #ff931c 100%);
    color: #000000;
    box-shadow: 0 2px 8px rgba(236, 212, 0, 0.3);
}

.pool-badge-5:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(236, 212, 0, 0.5);
}

/* 6. Tag style con punta */
.pool-badge-6 {
    background: #ECD400;
    color: #000000;
    border-radius: 8px 8px 8px 0;
    position: relative;
    box-shadow: 0 2px 8px rgba(236, 212, 0, 0.3);
}

.pool-badge-6::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 0;
    border-left: 8px solid #212121;
    border-top: 8px solid transparent;
}

/* 7. Minimalista */
.pool-badge-7 {
    background: transparent;
    color: #ECD400;
    padding: 8px 15px;
    font-weight: 600;
}

.pool-badge-7:hover {
    color: #ffffff;
    text-shadow: 0 0 8px rgba(236, 212, 0, 0.8);
}

/* 8. 3D Effect */
.pool-badge-8 {
    background: linear-gradient(180deg, #ECD400 0%, #d4b900 100%);
    color: #000000;
    box-shadow: 0 4px 0 #b09500,
                0 6px 12px rgba(0, 0, 0, 0.3);
    border-radius: 8px;
}

.pool-badge-8:hover {
    transform: translateY(2px);
    box-shadow: 0 2px 0 #b09500,
                0 4px 8px rgba(0, 0, 0, 0.3);
}

.nav-brand-text {
    color: #ff931c;
}

/* Center section */
.navbar-center {
    flex: 1;
    display: flex;
    justify-content: center;
}

.nav-stat {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    color: #b0b0b0;
    font-weight: 500;
}

.nav-stat-value {
    color: #ff931c;
    font-weight: 700;
}

.nav-stat-label {
    font-size: 0.9rem;
}

/* Discord Badge */
.discord-badge-link {
    transition: opacity 0.3s ease;
}

.discord-badge-link:hover {
    opacity: 0.9;
}

.discord-badge {
    height: 24px;
    display: block;
}

/* Right section */
.navbar-right {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-link {
    color: #e8e8e8;
    text-decoration: none;
    font-family: 'Mulish', sans-serif;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.nav-link:hover {
    text-decoration: underline;
    text-underline-offset: 4px;
}

/* Hero Section */
.hero-section {
    background: #000000 url('/images/ImageHeader.png') no-repeat left center;
    background-size: contain;
    width: 100%;
    height: 250px;
    position: relative;
    overflow: visible;
    display: flex;
    align-items: center;
}

.hero-wrapper {
    width: 100%;
    max-width: 1200px;
    height: 250px;
    position: relative;
    margin: 0 auto;
    padding: 0 30px;
}

.hero-title {
    width: 350px;
    left: 0px;
    top: 50%;
    transform: translateY(-65%);
    position: absolute;
    color: white;
    font-size: 38px;
    font-family: 'M PLUS 1 Code', monospace;
    font-weight: 700;
    line-height: 46px;
    word-wrap: break-word;
}

.hero-subtitle {
    position: absolute;
    left: 0px;
    top: 50%;
    transform: translateY(125%);
    color: rgba(255, 255, 255, 0.8);
    font-size: 15px;
    font-family: 'M PLUS 1 Code', monospace;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.highlight-fees {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    background: #ECD400;
    color: #000000;
    border-radius: 12px;
    font-weight: 700;
    margin-left: 4px;
    font-size: 15px;
}

/* Stats Box - Basado en Anima export */
.stats-box {
    position: absolute;
    width: 332.5px;
    height: 119px;
    z-index: 1;
}

.stats-box-1 {
    left: 500px;
    top: 50%;
    transform: translateY(-50%);
}

.stats-box-2 {
    left: 882px;
    top: 50%;
    transform: translateY(-50%);
}

.stats-box .stats-group {
    position: absolute;
    top: 10;
    left: 0;
    width: 362.5px;
    height: 110px;
}

.stats-box .stat-vertical-line {
    position: absolute;
    top: 18px;
    left: 230px;
    width: 1px;
    height: 101px;
    background: white;
}

.stats-box .group-wrapper {
    position: absolute;
    width: 362.5px;
    height: 119px;
    top: 0;
    left: 0;
    display: flex;
}

.stats-box .stats-inner {
    width: 362.5px;
    height: 119px;
    position: relative;
}

.stats-box .stat-line-1 {
    position: absolute;
    top: 51px;
    left: 32.5px;
    width: 300px;
    height: 1px;
    background: white;
}

.stats-box .stat-line-2 {
    position: absolute;
    top: 86px;
    left: 32.5px;
    width: 300px;
    height: 1px;
    background: white;
}

.stats-box .stats-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 363.5px;
    height: 119px;
}

.stats-box .stats-border-group {
    position: absolute;
    top: 0;
    left: 0;
    width: 362.5px;
    height: 119px;
}

.stats-box .stats-year-bar {
    position: absolute;
    top: 18px;
    left: 0.5px;
    width: 30.5px;
    height: 101px;
    background: white;
    border-radius: 1.64px;
    border: 1px solid #FFF3F3;
}

.stats-box .stats-border {
    position: absolute;
    top: 18px;
    left: 27.5px;
    width: 305px;
    height: 101px;
    border-radius: 5.75px;
    border: 1px solid white;
}

.stats-box .stats-year-text {
    position: absolute;
    top: 55px;
    left: -32px;
    width: 95px;
    transform: rotate(-90deg);
    transform-origin: center center;
    font-family: 'M PLUS 1 Code', monospace;
    font-weight: 600;
    color: #000000;
    font-size: 22.75px;
    letter-spacing: 0;
    line-height: normal;
    white-space: nowrap;
    text-align: center;
}

.stats-header {
    position: absolute;
    left: 0px;
    top: -13px;
    width: 100%;
    color: white;
    font-size: 15.23px;
    font-family: 'M PLUS 1 Code', monospace;
    font-weight: 600;
    white-space: nowrap;
    z-index: 10002;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.year-selector {
    display: flex;
    gap: 6px;
    margin-left: auto;
    margin-right: -28px;
    margin-top: -5px;
}

.year-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.6);
    font-family: 'M PLUS 1 Code', monospace;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.year-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(236, 212, 0, 0.4);
    color: rgba(255, 255, 255, 0.9);
}

.year-btn.active {
    background: #ECD400;
    border-color: #ECD400;
    color: #000000;
}

.year-btn.active:hover {
    background: #FFE066;
    border-color: #FFE066;
}

.info-tooltip {
    position: relative;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.5);
    transition: color 0.2s ease;
    z-index: 10003;
}

.info-tooltip:hover {
    color: #ECD400;
}

.info-tooltip svg {
    width: 16px;
    height: 16px;
}

.tooltip-text {
    display: none;
    position: absolute;
    left: 24px;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgb(0, 0, 0);
    color: rgb(255, 255, 255);
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 400;
    white-space: normal;
    width: 280px;
    z-index: 99999;
    border: 1px solid rgba(255, 255, 255, 0.3);
    line-height: 1.4;
    pointer-events: none;
    box-shadow: 0 4px 12px rgb(0, 0, 0);
}

.info-tooltip:hover .tooltip-text {
    display: block;
}

.stat-label {
    position: absolute;
    color: white;
    font-size: 18px;
    font-family: 'M PLUS 1 Code', monospace;
    font-weight: 600;
    left: 50px;
}

.stats-box .stat-value {
    position: absolute;
    text-align: center;
    top: -8px;
    font-size: 20px;
    font-family: 'M PLUS 1 Code', monospace;
    font-weight: 600;
    right: 10px;
    left: 230px;
}

.stat-label-1 { top: 23px; }
.stat-label-2 { top: 58px; }
.stat-label-3 { top: 93px; }

.stats-box .stat-value-1 { top: 18px; }
.stats-box .stat-value-2 { top: 52px; }
.stats-box .stat-value-3 { top: 86px; }

.stats-box .stat-value-yellow {
    color: #ECD400;
}

.stats-box .stat-value-white {
    color: #FFFFFF;
}

/* Primera tabla - columna segunda más pequeña */
.stats-box-1 .stat-vertical-line {
    left: 240px !important;
}

.stats-box-1 .stat-value {
    left: 250px !important;
}

/* Segunda tabla - columna más ancha */
.stats-box-2 .stat-vertical-line {
    left: 190px !important;
}

.stats-box-2 .stat-value {
    left: 200px !important;
}

/* Plebminer Stats Card */
.plebminer-stats-card {
    position: absolute;
    left: 0px;
    top: 18px;
    width: 362px;
    height: 110px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    padding: 16px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    z-index: 1;
}

.plebminer-stat-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
    text-align: center;
    max-width: 95px;
}

.plebminer-stat-label {
    font-family: 'M PLUS 1 Code', monospace;
    font-size: 11.5px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    line-height: 1.1;
    letter-spacing: 0.2px;
}

.plebminer-stat-value.has-tooltip {
    position: relative;
    cursor: help;
    transition: color 0.2s ease;
}

.plebminer-stat-value.has-tooltip:hover {
    color: #FFE066;
}

.plebminer-stat-value.has-tooltip::before {
    content: attr(data-tooltip);
    display: none;
    position: absolute;
    left: 50%;
    top: calc(100% + 12px);
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.95);
    color: #ffffff;
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 400;
    white-space: normal;
    width: 200px;
    z-index: 999999;
    border: 1px solid rgba(255, 255, 255, 0.2);
    line-height: 1.5;
    pointer-events: none;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.9);
    text-transform: none;
    letter-spacing: 0;
}

/* Triangle pointer pointing up */
.plebminer-stat-value.has-tooltip::after {
    content: '';
    display: none;
    position: absolute;
    left: 50%;
    top: calc(100% + 6px);
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-bottom-color: rgba(0, 0, 0, 0.95);
    z-index: 999999;
}

.plebminer-stat-value.has-tooltip:hover::before,
.plebminer-stat-value.has-tooltip:hover::after {
    display: block;
}

.plebminer-stat-value {
    font-family: 'M PLUS 1 Code', monospace;
    font-size: 28px;
    font-weight: 700;
    color: #ECD400;
    line-height: 1;
}

/* Solo Block Cards */
.solo-block-card {
    position: absolute;
    width: 158px;
    height: 110px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    text-decoration: none;
    cursor: pointer;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.solo-block-card:hover {
    border-color: #ECD400;
    transform: translateY(-2px);
}

.solo-block-card:hover .solo-block-link-icon {
    color: #ECD400;
    transform: translateY(-1px);
}

.solo-block-1 {
    left: 0px;
    top: 18px;
}

.solo-block-2 {
    left: 172px;
    top: 18px;
}

.solo-block-height {
    font-family: 'M PLUS 1 Code', monospace;
    font-size: 28px;
    font-weight: 700;
    color: #FFFFFF;
    line-height: 1;
    text-align: left;
}

.solo-block-time {
    font-family: 'M PLUS 1 Code', monospace;
    font-size: 13px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.6);
    text-align: left;
    line-height: 1.2;
}

.solo-block-pool {
    font-family: 'M PLUS 1 Code', monospace;
    font-size: 12px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.5);
    text-align: left;
    line-height: 1.2;
}

.solo-block-link-icon {
    position: absolute;
    bottom: 12px;
    right: 12px;
    color: rgba(255, 255, 255, 0.4);
    transition: color 0.2s ease, transform 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.solo-block-link-icon svg {
    width: 14px;
    height: 14px;
}

/* Page Title */
.page-title {
    color: #c4c4c4;
    font-size: 2rem;
    margin-bottom: 20px;
    text-align: center;
    font-weight: 600;
}

/* Tabs */
.tabs {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
}

.tab-btn {
    background: #212121;
    border: 4px solid #000000;
    color: #b0b0b0;
    padding: 12px 30px;
    border-radius: 42px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    font-weight: 600;
    box-shadow: 5px 5px 0px 0px rgba(0, 0, 0, 1);
}

.tab-btn:hover {
    transform: translate(2px, 2px);
    border-color: #c4c4c4;
    box-shadow: 3px 3px 0px 0px rgba(196, 196, 196, 1);
    color: #c4c4c4;
}

.tab-btn.active {
    background: #ff931c;
    color: #212121;
    border-color: #000000;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

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

/* Stat Card - Main Style */
.stat-card {
    background: #FFFFFF;
    border: 4px solid #000000;
    border-radius: 5.75px;
    padding: 25px;
    text-align: center;
    box-shadow: 10px 10px 0px 0px rgba(0, 0, 0, 1);
}

.stat-card.highlight {
    /* Same as regular cards - highlight only affects the value color */
}

.stat-card.wide {
    grid-column: span 2;
}

.stat-label {
    color: #b0b0b0;
    font-size: 0.9rem;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.stat-value {
    font-size: 1.6rem;
    font-weight: 700;
    color: #c4c4c4;
}

.stat-value.success {
    color: #00d26a;
}

.stat-value.warning {
    color: #ff931c;
}

.stat-value.highlight {
    color: #00d26a;
}

.stat-value.error {
    color: #ff6b6b;
}

/* Stats Section */
.stats-section {
    margin-bottom: 30px;
}

.stats-section h2 {
    color: #c4c4c4;
    margin-bottom: 20px;
    font-size: 1.4rem;
    font-weight: 700;
    display: inline-block;
    background: #ff931c;
    color: #212121;
    padding: 8px 20px;
    border: 4px solid #000000;
    border-radius: 42px;
}

/* Fee Rates */
.fee-rates {
    background: #212121;
    border: 4px solid #000000;
    border-radius: 42px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 10px 10px 0px 0px rgba(0, 0, 0, 1);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.fee-rates::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 147, 28, 0.1);
    border-radius: 42px;
    transition: all 0.3s ease;
    filter: blur(40px);
    z-index: 0;
}

.fee-rates:hover::before {
    background: rgba(255, 147, 28, 0.08);
}

.fee-rates:hover {
    transform: translate(2px, 2px);
    border-color: #c4c4c4;
    box-shadow: 8px 8px 0px 0px rgba(196, 196, 196, 1);
}

.fee-rates > * {
    position: relative;
    z-index: 1;
}

.fee-rates h3 {
    margin-bottom: 20px;
    color: #b0b0b0;
    font-weight: 600;
    text-align: center;
}

.fee-grid {
    display: flex;
    justify-content: space-around;
    gap: 20px;
}

.fee-item {
    text-align: center;
    padding: 15px 25px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
}

.fee-label {
    display: block;
    color: #b0b0b0;
    font-size: 0.9rem;
    margin-bottom: 8px;
    font-weight: 500;
}

.fee-value {
    font-size: 1.4rem;
    font-weight: bold;
    color: #ff931c;
}

/* Pool Summary */
.pool-summary {
    background: #212121;
    border: 4px solid #000000;
    border-radius: 42px;
    padding: 25px;
    margin-top: 25px;
    box-shadow: 10px 10px 0px 0px rgba(0, 0, 0, 1);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.pool-summary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 147, 28, 0.1);
    border-radius: 42px;
    transition: all 0.3s ease;
    filter: blur(40px);
    z-index: 0;
}

.pool-summary:hover::before {
    background: rgba(255, 147, 28, 0.08);
}

.pool-summary:hover {
    transform: translate(2px, 2px);
    border-color: #c4c4c4;
    box-shadow: 8px 8px 0px 0px rgba(196, 196, 196, 1);
}

.pool-summary > * {
    position: relative;
    z-index: 1;
}

.pool-summary h3 {
    margin-bottom: 20px;
    color: #c4c4c4;
    font-weight: 700;
    text-align: center;
    font-size: 1.3rem;
}

/* Lookup Section */
.lookup-section {
    text-align: center;
    max-width: 650px;
    margin: 0 auto;
    background: #212121;
    border: 4px solid #000000;
    border-radius: 42px;
    padding: 50px;
    box-shadow: 10px 10px 0px 0px rgba(0, 0, 0, 1);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.lookup-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 147, 28, 0.1);
    border-radius: 42px;
    transition: all 0.3s ease;
    filter: blur(40px);
    z-index: 0;
}

.lookup-section:hover::before {
    background: rgba(255, 147, 28, 0.08);
}

.lookup-section:hover {
    transform: translate(2px, 2px);
    border-color: #c4c4c4;
    box-shadow: 8px 8px 0px 0px rgba(196, 196, 196, 1);
}

.lookup-section > * {
    position: relative;
    z-index: 1;
}

.lookup-section h2 {
    color: #c4c4c4;
    margin-bottom: 10px;
    font-size: 1.8rem;
}

.lookup-section p {
    color: #b0b0b0;
    margin-bottom: 30px;
}

/* Form */
.lookup-form {
    margin-bottom: 30px;
}

.input-group {
    display: flex;
    gap: 10px;
}

.input-group input {
    flex: 1;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid #000000;
    border-radius: 8px;
    color: #ffffff;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.input-group input:focus {
    outline: none;
    border-color: #ff931c;
    box-shadow: 0 0 0 2px rgba(255, 147, 28, 0.2);
}

.input-group input::placeholder {
    color: #888;
}

/* Buttons */
.btn {
    padding: 12px 24px;
    border: 1px solid #000000;
    border-radius: 5.75px;
    font-size: 14px;
    font-family: 'M PLUS 1 Code', monospace;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: #ECD400;
    color: #000000;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #c4c4c4;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: #c4c4c4;
}

/* Recent Searches */
.recent-searches {
    text-align: left;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 20px;
}

.recent-searches h4 {
    margin-bottom: 15px;
    color: #b0b0b0;
    font-weight: 600;
}

.search-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.search-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid transparent;
    border-radius: 12px;
    text-decoration: none;
    color: #c4c4c4;
    transition: all 0.3s ease;
    font-family: monospace;
}

.search-item:hover {
    background: rgba(255, 147, 28, 0.1);
    border-color: #ff931c;
}

/* Workers Table */
.workers-table {
    overflow-x: auto;
    background: #212121;
    border: 4px solid #000000;
    border-radius: 42px;
    box-shadow: 10px 10px 0px 0px rgba(0, 0, 0, 1);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.workers-table::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 147, 28, 0.1);
    border-radius: 42px;
    transition: all 0.3s ease;
    filter: blur(40px);
    z-index: 0;
}

.workers-table:hover::before {
    background: rgba(255, 147, 28, 0.08);
}

.workers-table:hover {
    transform: translate(2px, 2px);
    border-color: #c4c4c4;
    box-shadow: 8px 8px 0px 0px rgba(196, 196, 196, 1);
}

.workers-table table {
    width: 100%;
    border-collapse: collapse;
    position: relative;
    z-index: 1;
}

.workers-table th,
.workers-table td {
    padding: 16px 20px;
    text-align: left;
}

.workers-table th {
    background: #c4c4c4;
    color: #212121;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
}

.workers-table th:first-child {
    border-radius: 38px 0 0 0;
}

.workers-table th:last-child {
    border-radius: 0 38px 0 0;
}

.workers-table td {
    color: #c4c4c4;
    border-bottom: 1px solid rgba(196, 196, 196, 0.1);
}

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

.workers-table tr:hover td {
    background: rgba(255, 147, 28, 0.05);
}

/* Miner Type Display */
.miner-type {
    white-space: nowrap;
    cursor: help;
}

.miner-type:hover {
    color: #ff931c;
}

/* Miner Types Grid */
.miner-types-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.miner-type-card {
    background: rgba(255, 147, 28, 0.1);
    border: 2px solid rgba(255, 147, 28, 0.3);
    border-radius: 12px;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.miner-type-name {
    color: #c4c4c4;
    font-size: 0.95rem;
}

.miner-type-count {
    background: #ff931c;
    color: #212121;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.85rem;
}

/* Chart Container */
.chart-container {
    background: #FFFFFF;
    border: none;
    border-radius: 5.75px;
    padding: 25px;
    height: 350px;
    position: relative;
}

.chart-container canvas {
    position: relative;
    z-index: 1;
    width: 100% !important;
    height: 100% !important;
    max-height: 280px;
}

/* Light mode canvas - explicit override */
body:not(.dark-mode) canvas {
    background: transparent !important;
}

/* Estimation Card */
.estimation-card {
    background: linear-gradient(135deg, #2d3436 0%, #636e72 100%);
    border: 4px solid #000000;
    border-radius: 42px;
    padding: 30px;
    text-align: center;
    box-shadow: 10px 10px 0px 0px rgba(0, 0, 0, 1);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.estimation-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 147, 28, 0.1);
    border-radius: 42px;
    transition: all 0.3s ease;
    filter: blur(40px);
    z-index: 0;
}

.estimation-card:hover::before {
    background: rgba(255, 147, 28, 0.08);
}

.estimation-card:hover {
    transform: translate(2px, 2px);
    border-color: #c4c4c4;
    box-shadow: 8px 8px 0px 0px rgba(196, 196, 196, 1);
}

.estimation-card > * {
    position: relative;
    z-index: 1;
}

.estimation-card p {
    color: #b0b0b0;
    margin-bottom: 15px;
}

.estimation-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ff931c;
}

/* Alerts */
.alert {
    padding: 25px;
    border: 4px solid #000000;
    border-radius: 42px;
    margin-bottom: 25px;
    text-align: center;
    box-shadow: 10px 10px 0px 0px rgba(0, 0, 0, 1);
}

.alert-error {
    background: #212121;
    border-color: #ff6b6b;
}

.alert-error p {
    color: #ff6b6b;
    font-weight: 600;
    margin-bottom: 15px;
}

/* No Data */
.no-data {
    text-align: center;
    padding: 50px;
    background: #212121;
    border: 4px solid #000000;
    border-radius: 42px;
    box-shadow: 10px 10px 0px 0px rgba(0, 0, 0, 1);
}

.no-data p {
    color: #b0b0b0;
    margin-bottom: 15px;
}

/* No Chart Data */
.no-chart-data {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 280px;
    text-align: center;
    color: #b0b0b0;
}

.no-chart-data p {
    margin: 5px 0;
}

.no-chart-data .hint {
    font-size: 0.85rem;
    color: #888;
}

/* Stats Actions */
.stats-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
}

/* Address Display */
.address-display {
    font-family: 'Courier New', monospace;
    background: rgba(255, 147, 28, 0.2);
    border: 2px solid #ff931c;
    padding: 10px 20px;
    border-radius: 42px;
    word-break: break-all;
    color: #ff931c;
    display: inline-block;
    font-size: 0.95rem;
}

/* Stats Header */
.stats-header {
    text-align: center;
    margin-bottom: 30px;
}

/* Error Page */
.error-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
}

.error-content {
    text-align: center;
    background: #212121;
    border: 4px solid #000000;
    border-radius: 42px;
    padding: 50px;
    box-shadow: 10px 10px 0px 0px rgba(0, 0, 0, 1);
}

.error-message {
    color: #b0b0b0;
    margin: 20px 0 30px;
    font-size: 1.1rem;
}

.error-stack {
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 12px;
    text-align: left;
    overflow-x: auto;
    margin-bottom: 25px;
    font-size: 0.85rem;
    color: #b0b0b0;
}

/* Footer */
.footer {
    text-align: center;
    padding: 30px 20px;
    margin-top: auto;
}

.footer-content {
    background: #212121;
    border: 4px solid #000000;
    border-radius: 42px;
    padding: 30px;
    box-shadow: 10px 10px 0px 0px rgba(0, 0, 0, 1);
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.footer-content::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 147, 28, 0.1);
    border-radius: 42px;
    transition: all 0.3s ease;
    filter: blur(40px);
    z-index: 0;
}

.footer-content:hover::before {
    background: rgba(255, 147, 28, 0.08);
}

.footer-content:hover {
    transform: translate(2px, 2px);
    border-color: #c4c4c4;
    box-shadow: 8px 8px 0px 0px rgba(196, 196, 196, 1);
}

.footer-content > * {
    position: relative;
    z-index: 1;
}

.footer-title {
    color: #c4c4c4;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
}

.footer-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid transparent;
    border-radius: 20px;
    color: #b0b0b0;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.footer-link:hover {
    background: rgba(255, 147, 28, 0.1);
    border-color: #ff931c;
    color: #ff931c;
}

.footer-link.donate-link {
    background: rgba(255, 147, 28, 0.2);
    border-color: #ff931c;
    color: #ff931c;
}

.footer-link.donate-link:hover {
    background: #ff931c;
    color: #212121;
}

.footer-icon {
    width: 18px;
    height: 18px;
    object-fit: contain;
}

.footer-powered {
    color: #888;
    font-size: 0.85rem;
}

.footer-powered a {
    color: #ff931c;
    text-decoration: none;
}

.footer-powered a:hover {
    text-decoration: underline;
}

/* Hero Card - Bitcoin Network Stats */
.hero-card {
    background: #212121;
    border: 4px solid #000000;
    border-radius: 42px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 10px 10px 0px 0px rgba(0, 0, 0, 1);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.hero-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 147, 28, 0.15) 0%, rgba(255, 147, 28, 0.05) 100%);
    border-radius: 42px;
    transition: all 0.3s ease;
    filter: blur(40px);
    z-index: 0;
}

.hero-card:hover::before {
    background: linear-gradient(135deg, rgba(255, 147, 28, 0.12) 0%, rgba(255, 147, 28, 0.04) 100%);
}

.hero-card:hover {
    transform: translate(2px, 2px);
    border-color: #c4c4c4;
    box-shadow: 8px 8px 0px 0px rgba(196, 196, 196, 1);
}

.hero-card > * {
    position: relative;
    z-index: 1;
}

.hero-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 2px solid rgba(255, 147, 28, 0.2);
}

.hero-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #ff931c 0%, #e67e00 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(255, 147, 28, 0.4);
}

.hero-icon svg,
.hero-icon img {
    width: 28px;
    height: 28px;
    color: #212121;
}

.hero-title-section {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
}

.hero-title-section h2 {
    color: #c4c4c4;
    font-size: 1.6rem;
    font-weight: 700;
    margin: 0;
}

.live-indicator {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(0, 210, 106, 0.15);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    color: #00d26a;
    letter-spacing: 1px;
}

.live-dot {
    width: 8px;
    height: 8px;
    background: #00d26a;
    border-radius: 50%;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.8); }
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 25px;
}

.hero-stat {
    text-align: center;
    padding: 20px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 20px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.hero-stat:hover {
    background: rgba(255, 147, 28, 0.08);
    border-color: rgba(255, 147, 28, 0.3);
}

.hero-stat.primary {
    background: rgba(255, 147, 28, 0.1);
    border-color: rgba(255, 147, 28, 0.3);
}

.hero-stat.primary .hero-stat-value {
    color: #ff931c;
}

.hero-stat-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: #c4c4c4;
    margin-bottom: 5px;
    line-height: 1.2;
}

.hero-stat-label {
    font-size: 0.85rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.hero-details {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 25px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 20px;
}

.hero-detail-row {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.hero-detail {
    flex: 1;
    min-width: 150px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.detail-label {
    font-size: 0.8rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.detail-value {
    font-size: 1.1rem;
    color: #c4c4c4;
    font-weight: 600;
}

.recent-blocks {
    padding-top: 20px;
    border-top: 1px solid #EEEEEE;
}

.recent-blocks h4 {
    color: #000000;
    font-size: 14px;
    font-family: 'M PLUS 1 Code', monospace;
    margin-bottom: 15px;
    font-weight: 600;
    text-transform: uppercase;
}

.blocks-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.block-item {
    display: grid;
    grid-template-columns: auto 1fr auto auto auto;
    gap: 15px;
    align-items: center;
    padding: 12px 16px;
    background: #FFFFFF;
    border-radius: 5.75px;
    border: 1px solid #EEEEEE;
}

.block-item.loading {
    grid-template-columns: 1fr;
    text-align: center;
    color: #888;
}

.block-height {
    font-weight: 600;
    color: #000000;
    font-family: 'M PLUS 1 Code', monospace;
    font-size: 14px;
}

.block-miner {
    color: #000000;
    font-weight: 600;
    font-family: 'M PLUS 1 Code', monospace;
    font-size: 14px;
}

.block-hash {
    color: #666666;
    font-size: 12px;
    font-family: 'M PLUS 1 Code', monospace;
}

.block-txs {
    color: #666666;
    font-size: 12px;
    font-family: 'M PLUS 1 Code', monospace;
}

.block-time {
    color: #666666;
    font-size: 12px;
    font-family: 'M PLUS 1 Code', monospace;
}

/* Top Cards Row - Worker Lookup + Pool Stats */
.top-cards-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-bottom: 30px;
}

.top-card {
    background: #FFFFFF;
    border: 1px solid #AAAAAA;
    border-radius: 5.75px;
    padding: 30px;
}

.top-card h3 {
    color: #000000;
    font-size: 15.23px;
    font-family: 'M PLUS 1 Code', monospace;
    font-weight: 600;
    margin-bottom: 20px;
    text-align: center;
    text-transform: uppercase;
}

.top-card p {
    color: #6B6B6B;
    font-size: 14px;
    font-family: 'M PLUS 1 Code', monospace;
    font-weight: 400;
    text-align: center;
    margin-bottom: 20px;
}

/* Lookup Card Specific */
.lookup-card .lookup-form {
    margin-bottom: 15px;
}

.lookup-card .input-group {
    display: flex;
    gap: 10px;
}

.lookup-card .input-group input {
    flex: 1;
    padding: 12px 16px;
    background: #F1F1F1;
    border: 1px solid #000000;
    border-radius: 5.75px;
    color: #000000;
    font-size: 14px;
    font-family: 'M PLUS 1 Code', monospace;
    font-weight: 400;
}

.lookup-card .input-group input:focus {
    outline: none;
    border-color: #000000;
}

.lookup-card .input-group input::placeholder {
    color: #6B6B6B;
}

.recent-searches-mini {
    margin-top: 10px;
}

.recent-searches-mini .search-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.recent-searches-mini .search-item {
    display: inline-block;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid transparent;
    border-radius: 20px;
    text-decoration: none;
    color: #888;
    font-size: 0.8rem;
    font-family: monospace;
    transition: all 0.3s ease;
}

.recent-searches-mini .search-item:hover {
    background: rgba(255, 147, 28, 0.1);
    border-color: #ff931c;
    color: #ff931c;
}

/* Action Bar */
.action-bar {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 30px;
    gap: 20px;
}

.worker-lookup-inline {
    flex: 0 0 calc(50% - 10px);
    max-width: calc(50% - 10px);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.lookup-title {
    font-size: 11px;
    font-family: 'M PLUS 1 Code', monospace;
    font-weight: 600;
    color: #666666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.lookup-form-inline {
    display: flex;
    gap: 10px;
    align-items: center;
}

.lookup-form-inline input {
    flex: 1;
    padding: 12px 16px;
    background: #F1F1F1;
    border: 1px solid #AAAAAA;
    border-radius: 5.75px;
    color: #000000;
    font-size: 14px;
    font-family: 'M PLUS 1 Code', monospace;
    font-weight: 400;
}

.lookup-form-inline input:focus {
    outline: none;
    border-color: #888888;
}

.lookup-form-inline input::placeholder {
    color: #6B6B6B;
}

.lookup-form-inline button {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.lookup-form-inline button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Status Indicators */
.status-indicators {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
    min-width: fit-content;
}

.status-indicators-row {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
}

.status-indicator-box {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: #FFFFFF;
    border: 1px solid #AAAAAA;
    border-radius: 5.75px;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #FF931C;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        box-shadow: 0 0 0 0 rgba(255, 147, 28, 0.7);
    }
    50% {
        opacity: 0.8;
        box-shadow: 0 0 0 4px rgba(255, 147, 28, 0);
    }
}

.status-text {
    font-size: 12px;
    font-family: 'M PLUS 1 Code', monospace;
    font-weight: 500;
    color: #000000;
    white-space: nowrap;
}

/* Connect Miner Button */
.connect-miner-btn {
    background: #212121;
    color: #F1F1F1;
    padding: 12px 24px;
    border: 1px solid #AAAAAA;
    border-radius: 5.75px;
    font-size: 14px;
    font-family: 'M PLUS 1 Code', monospace;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    width: 100%;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.connect-miner-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Pool Stats Grid - Full Width */
.pool-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.pool-stat-box {
    position: relative;
    background: #FFFFFF;
    padding: 22px 20px 12px 30px;
    min-height: 59px;
    border-radius: 5.75px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
}

.pool-stat-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.pool-stat-box:hover .pool-stat-border {
    border-color: #ECD400;
    border-width: 2px;
}

.pool-stat-box.highlight {
    background: #212121;
}

.pool-stat-box.highlight .pool-stat-label {
    color: #ECD400;
}

.pool-stat-box.highlight .pool-stat-value {
    color: #FFFFFF;
}

/* Override for dark mode */
body.dark-mode .pool-stat-box.highlight .pool-stat-label {
    color: #ffffff !important;
}

body.dark-mode .pool-stat-box.highlight .pool-stat-value {
    color: #ECD400 !important;
}

.pool-stat-box.highlight .pool-stat-border {
    border-color: #212121;
}

.pool-stat-box.highlight:hover .pool-stat-border {
    border-color: #000000;
}

.pool-stat-border {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 1px solid #AAAAAA;
    border-radius: 5.75px;
    pointer-events: none;
    transition: border-color 0.2s ease, border-width 0.2s ease;
}

.pool-stat-label {
    font-size: 13px;
    font-family: 'M PLUS 1 Code', monospace;
    font-weight: 600;
    color: #000000;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
    position: relative;
    z-index: 2;
}

.pool-stat-value {
    font-size: 24px;
    font-family: 'M PLUS 1 Code', monospace;
    font-weight: 600;
    color: #ECD400;
    position: relative;
    z-index: 2;
    transform: translateY(-5px);
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background: #FFFFFF;
    padding: 40px;
    border-radius: 5.75px;
    border: 1px solid #AAAAAA;
    max-width: 500px;
    width: 90%;
    position: relative;
}

.modal-content h3 {
    color: #000000;
    font-size: 18px;
    font-family: 'M PLUS 1 Code', monospace;
    font-weight: 600;
    margin-bottom: 20px;
    text-align: center;
    text-transform: uppercase;
}

.modal-content .stratum-info {
    text-align: center;
}

.modal-content .stratum-line {
    color: #000000;
    font-size: 14px;
    font-family: 'M PLUS 1 Code', monospace;
    font-weight: 500;
    line-height: 1.8;
}

/* Modal Guide Styles */
.modal-content-guide {
    background: #FFFFFF;
    padding: 0;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    max-width: 980px;
    width: 95%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
}

.modal-close-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.2s ease;
    z-index: 10;
}

.modal-close-btn svg {
    stroke: #64748b;
    transition: stroke 0.2s ease;
}

.modal-close-btn:hover {
    background: #f1f5f9;
}

.modal-close-btn:hover svg {
    stroke: #0f172a;
}

.modal-close-btn:active {
    background: #e2e8f0;
    transform: scale(0.95);
}

.guide {
    padding: 24px;
    font-family: 'M PLUS 1 Code', monospace;
    color: #0f172a;
}

.guide__header {
    padding: 18px 18px 6px;
    margin-bottom: 18px;
}

.guide__header h1 {
    margin: 0 0 10px;
    font-size: clamp(26px, 3vw, 36px);
    line-height: 1.1;
    letter-spacing: -0.02em;
    font-family: 'M PLUS 1 Code', monospace;
}

.guide__header p {
    margin: 0;
    font-size: 16px;
    color: #334155;
    font-family: 'M PLUS 1 Code', monospace;
}

.guide__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin: 16px 0;
}

@media (min-width: 860px) {
    .guide__grid {
        grid-template-columns: 1fr 1fr;
    }
}

.guide__card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 18px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.guide__card h2 {
    margin: 0 0 12px;
    font-size: 18px;
    letter-spacing: -0.01em;
    font-family: 'M PLUS 1 Code', monospace;
}

.guide__card ol {
    margin: 0;
    padding-left: 18px;
    color: #0f172a;
    font-family: 'M PLUS 1 Code', monospace;
}

.guide__card li {
    margin: 10px 0;
    line-height: 1.45;
    font-family: 'M PLUS 1 Code', monospace;
}

.guide__card p {
    font-family: 'M PLUS 1 Code', monospace;
}

.guide__card .note {
    display: inline-block;
    margin-top: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    background: #f1f5f9;
    color: #334155;
    font-size: 13px;
    font-family: 'M PLUS 1 Code', monospace;
}

.guide__card .field {
    margin: 10px 0 12px;
}

.guide__card .field__label {
    font-size: 13px;
    color: #475569;
    margin-bottom: 6px;
    font-family: 'M PLUS 1 Code', monospace;
}

.guide__card pre {
    margin: 0;
    padding: 12px 12px;
    background: #0b1220;
    color: #e2e8f0;
    border-radius: 12px;
    overflow-x: auto;
    border: 1px solid rgba(148, 163, 184, 0.25);
}

.guide__card code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 13px;
}

.guide__card .muted {
    margin: 12px 0 10px;
    color: #475569;
    font-size: 14px;
    font-family: 'M PLUS 1 Code', monospace;
}

.guide__card .bullets {
    margin: 12px 0 0;
    padding-left: 18px;
    color: #0f172a;
    font-family: 'M PLUS 1 Code', monospace;
}

.guide__card .bullets li {
    margin: 8px 0;
    font-family: 'M PLUS 1 Code', monospace;
}

.guide__card a {
    color: #0f172a;
    text-decoration: underline;
    text-underline-offset: 3px;
    font-family: 'M PLUS 1 Code', monospace;
}

.guide__card a:hover {
    opacity: 0.85;
}

/* Responsive Design */
/* Tablet large - scale everything to 80% */
@media (max-width: 1100px) and (min-width: 900px) {
    html, body {
        overflow-x: hidden;
        max-width: 100vw;
    }

    body {
        padding: 10px;
    }

    .navbar {
        margin: -10px -10px 0 -10px;
    }

    .stats-box {
        margin-left: -10px;
        margin-right: -10px;
    }

    footer {
        margin-left: -10px;
        margin-right: -10px;
        margin-bottom: -10px;
    }

    .hero-section {
        overflow: hidden;
        height: 200px; /* 250px * 0.8 */
        display: flex;
        align-items: center;
    }

    .hero-wrapper {
        transform: scale(0.8);
        transform-origin: center left;
    }

    .hero-title {
        left: 20px;
        font-size: 30px; /* 38px * 0.8 */
        line-height: 37px; /* 46px * 0.8 */
    }

    .hero-subtitle {
        left: 20px;
        font-size: 13px; /* 16px * 0.8 */
    }
}

/* Tablet small - scale everything to 65% */
@media (max-width: 899px) and (min-width: 769px) {
    html, body {
        overflow-x: hidden;
        max-width: 100vw;
    }

    body {
        padding: 10px;
    }

    .navbar {
        margin: -10px -10px 0 -10px;
    }

    .hero-section {
        overflow: hidden;
        height: 162px; /* 250px * 0.65 */
        display: flex;
        align-items: center;
        margin-left: -10px;
        margin-right: -10px;
    }

    .stats-box {
        margin-left: -10px;
        margin-right: -10px;
    }

    footer {
        margin-left: -10px;
        margin-right: -10px;
        margin-bottom: -10px;
    }

    .hero-wrapper {
        transform: scale(0.65);
        transform-origin: center left;
    }

    .hero-title {
        left: 20px;
        font-size: 25px; /* 38px * 0.65 */
        line-height: 30px; /* 46px * 0.65 */
    }

    .hero-subtitle {
        left: 20px;
        font-size: 10px; /* 16px * 0.65 */
    }
}

/* Mobile breakpoint */
@media (max-width: 768px) {
    body {
        padding: 0;
    }

    .navbar {
        padding: 15px 20px;
        border-radius: 0;
        height: auto;
    }

    .stats-box {
        margin-left: 0px;
        margin-right: 0px;
    }

    footer {
        margin-left: -10px;
        margin-right: -10px;
        margin-bottom: -10px;
    }

    .navbar-container {
        flex-direction: row;
        padding: 0 0px;
        gap: 0;
    }

    .navbar-left {
        flex: 0 0 auto;
        width: auto;
        justify-content: flex-start;
        margin-left: 0;
    }

    .navbar-center {
        flex: 1;
        display: none;
    }

    .navbar-right {
        flex: 0 0 auto;
        width: auto;
        justify-content: flex-end;
    }

    .nav-brand a {
        font-size: 1.2rem;
        justify-content: flex-start;
    }

    .nav-logo {
        height: 32px;
    }

    .pool-badge {
        font-size: 10px;
        padding: 3px 10px;
        height: 24px;
    }

    .nav-stat {
        padding: 5px 10px;
        justify-content: center;
    }

    .nav-stat-label {
        font-size: 0.8rem;
    }

    .nav-links {
        gap: 0.8rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .nav-link {
        padding: 6px 12px;
        font-size: 0.9rem;
    }

    .top-cards-row {
        grid-template-columns: 1fr;
    }

    .lookup-card .input-group {
        flex-direction: column;
    }

    .input-group {
        flex-direction: column;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stat-card.wide {
        grid-column: span 1;
    }

    .tabs {
        flex-direction: column;
        align-items: center;
    }

    .fee-grid {
        flex-direction: column;
    }

    .lookup-section {
        padding: 30px 20px;
    }

    .page-title {
        font-size: 1.4rem;
    }

    .stratum-line {
        font-size: 0.85rem;
    }

    .home-section {
        padding: 20px 15px;
        border-radius: 25px;
    }

    .home-section h3 {
        font-size: 1.1rem;
    }

    .top-card {
        padding: 20px 15px;
        border-radius: 25px;
    }

    .top-card h3 {
        font-size: 1.1rem;
    }

    .stats-section {
        padding: 20px 15px;
        border-radius: 25px;
    }

    .stats-section h2 {
        font-size: 1.2rem;
    }

    /* Hero Card Responsive */
    .hero-card {
        padding: 20px;
    }

    .hero-header {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .hero-title-section {
        flex-direction: column;
        gap: 10px;
    }

    .hero-title-section h2 {
        font-size: 1.3rem;
    }

    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .hero-stat {
        padding: 15px 10px;
    }

    .hero-stat-value {
        font-size: 1.4rem;
    }

    .hero-stat-label {
        font-size: 0.75rem;
    }

    .hero-detail-row {
        flex-direction: column;
        gap: 15px;
    }

    .hero-detail {
        min-width: unset;
    }

    .block-item {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .block-miner {
        grid-column: span 2;
        order: -1;
    }

    .block-hash {
        grid-column: span 2;
        font-size: 0.75rem;
    }

    /* Footer Responsive */
    .footer-links {
        flex-direction: column;
        align-items: center;
    }

    .footer-link {
        width: 100%;
        max-width: 200px;
        justify-content: center;
    }

    /* Hero Section Responsive */
    .hero-section {
        height: auto;
        min-height: 200px;
        padding: 30px 0 30px 0;
        background: #000000 url('/images/ImageHeader.png') no-repeat left top;
        background-size: 100% 160px;
    }

    .hero-wrapper {
        height: auto;
        padding: 0 20px;
    }

    .hero-title {
        position: static;
        transform: none;
        width: 100%;
        font-size: 28px;
        line-height: 36px;
        margin-bottom: 15px;
    }

    .hero-subtitle {
        position: static;
        transform: none;
        margin-bottom: 30px;
        font-size: 14px;
    }

    .stats-box {
        position: static !important;
        width: 100% !important;
        margin-bottom: 20px;
    }

    .stats-box-1,
    .stats-box-2 {
        left: 0 !important;
        right: 0 !important;
        transform: none !important;
    }

    .stats-box-2 {
        margin-top: 40px;
    }

    .stats-header {
        position: static !important;
        top: auto !important;
        margin-bottom: 15px;
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: flex-start !important;
        gap: 8px !important;
        flex-wrap: nowrap !important;
    }

    .info-tooltip {
        position: relative;
        display: inline-flex !important;
        order: 0;
    }

    .year-selector {
        order: 1;
    }

    .plebminer-stats-card {
        position: static !important;
        width: 100% !important;
        display: grid !important;
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
        height: auto !important;
        padding: 20px;
    }

    .plebminer-stat-col {
        max-width: 100%;
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    /* Last Solo Blocks - lado a lado en móvil */
    .solo-block-card {
        position: static !important;
        width: calc(50% - 12px) !important;
        display: inline-block !important;
        vertical-align: top;
        margin-right: 24px;
        margin-bottom: 0;
        padding: 20px 15px !important;
    }

    .solo-block-card:nth-child(2) {
        margin-right: 0;
    }

    .solo-block-card:last-child {
        margin-right: 0;
    }

    .solo-block-1,
    .solo-block-2 {
        left: 0 !important;
        top: auto !important;
    }

    .solo-block-link-icon {
        display: none;
    }

    /* Year selector más pequeño en móvil */
    .year-selector {
        margin-right: 0 !important;
        margin-top: 8px;
    }

    .year-btn {
        padding: 6px 10px !important;
        font-size: 11px !important;
        min-width: 50px;
    }

    /* Reordenar elementos del body en móvil */
    .home-container {
        display: flex;
        flex-direction: column;
        padding: 0 10px;
    }

    .container {
        padding: 0 20px;
    }

    /* Action Bar Responsive */
    .action-bar {
        order: 1;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
        padding: 0;
    }

    /* Reordenar elementos a nivel del action-bar */

    /* Status indicators container - usar display: contents para aplanar jerarquía */
    .status-indicators {
        display: contents;
    }

    /* Mainnet/Uptime - aparece primero */
    .status-indicators-row {
        order: 1;
        display: flex !important;
        flex-direction: row !important;
        gap: 10px;
        width: 100%;
    }

    .status-indicator-box {
        flex: 1;
    }

    /* Worker lookup - aparece segundo */
    .worker-lookup-inline {
        order: 2;
        flex: 1 !important;
        max-width: 100% !important;
    }

    /* Connect miner button - aparece tercero */
    .connect-miner-btn {
        order: 3;
        width: 100%;
    }

    /* Orden de las secciones principales */
    .pool-stats-grid {
        order: 3 !important;
    }

    .home-sections {
        order: 4 !important;
    }

    /* Pool Stats Grid Responsive */
    .pool-stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    /* Stats page wrapper responsive */
    .stats-page-wrapper {
        padding: 20px 20px;
    }

    /* Ensure all main sections have lateral padding */
    .home-sections,
    .leaderboard-section,
    .stats-section,
    .workers-table-section,
    .hashrate-chart-section,
    .chart-section {
        padding-left: 0;
        padding-right: 0;
    }

    /* Tables need to maintain their spacing */
    .leaderboard-table-wrapper,
    .workers-table-wrapper {
        margin: 0;
    }
}

@media (max-width: 380px) {
    .navbar {
        padding: 12px 15px;
        gap: 8px;
        border-radius: 0;
    }

    .nav-brand a {
        font-size: 1rem;
        gap: 6px;
    }

    .nav-logo {
        height: 25px;
    }

    .nav-links {
        gap: 0.5rem;
    }

    .nav-link {
        padding: 5px 10px;
        font-size: 0.8rem;
    }

    .nav-stat-label {
        font-size: 0.75rem;
    }

    .nav-stat-value {
        font-size: 0.9rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .stat-card {
        padding: 15px 12px;
        border-radius: 20px;
    }

    .stat-value {
        font-size: 1.2rem;
    }

    .stat-label {
        font-size: 0.8rem;
    }

    /* Hero and Action Bar for mobile */
    .hero-title {
        font-size: 24px;
        line-height: 32px;
    }

    .hero-subtitle {
        font-size: 13px;
    }

    .pool-stats-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .btn {
        padding: 10px 16px;
        font-size: 0.85rem;
    }

    .estimation-value {
        font-size: 1.6rem;
    }

    .stratum-line {
        font-size: 0.75rem;
        line-height: 1.6;
    }

    .page-title {
        font-size: 1.2rem;
    }

    /* Hero Card Small Screens */
    .hero-stats {
        grid-template-columns: 1fr;
    }

    .hero-stat-value {
        font-size: 1.4rem;
    }

    .hero-icon {
        width: 35px;
        height: 35px;
    }

    .hero-icon svg,
    .hero-icon img {
        width: 20px;
        height: 20px;
    }

    .block-item {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .block-miner,
    .block-hash {
        grid-column: 1;
    }

    .footer-content {
        padding: 20px 15px;
        border-radius: 25px;
    }

    .footer-title {
        font-size: 1rem;
    }

    .footer-powered {
        font-size: 0.75rem;
    }

    .chart-container {
        height: 250px;
        padding: 15px;
    }

    .miner-type-card {
        padding: 10px 15px;
    }

    .miner-type-name {
        font-size: 0.85rem;
    }

    .miner-type-count {
        font-size: 0.8rem;
        padding: 3px 8px;
    }

    /* Hide drag handles on mobile */
    .drag-handle,
    .section-drag-handle {
        display: none;
    }
}

/* ===========================================
   DRAG AND DROP STYLES
   =========================================== */

/* Drag Handle - Disabled */
.drag-handle {
    display: none !important;
}

/* Make cards position relative for drag handle */
.stat-card,
.efficiency-card,
.stats-section {
    position: relative;
}

/* Dragging states */
.sortable-ghost {
    opacity: 0.4;
    background: rgba(255, 147, 28, 0.2) !important;
}

.sortable-chosen {
    box-shadow: 0 0 20px rgba(255, 147, 28, 0.5) !important;
}

.sortable-drag {
    opacity: 1 !important;
}

/* Sortable section styles */
.sortable-sections {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* Section drag handle - Disabled */
.section-drag-handle {
    display: none !important;
}

/* ===========================================
   STRATUM CONNECTION INFO
   =========================================== */

.stratum-info {
    text-align: center;
    margin-bottom: 20px;
}

.stratum-line {
    color: #000000;
    font-size: 14px;
    font-family: 'M PLUS 1 Code', monospace;
    font-weight: 500;
    line-height: 1.8;
}

.stratum-line span {
    color: #000000;
    font-weight: 600;
}

/* ===========================================
   HOME PAGE SECTIONS
   =========================================== */

.home-sections {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.home-section {
    background: #FFFFFF;
    border: 1px solid #AAAAAA;
    border-radius: 5.75px;
    padding: 25px;
    position: relative;
}

.home-section > *:not(.section-drag-handle) {
    position: relative;
    z-index: 1;
}

/* Hero card as home-section - use hero-card styling */
.home-section.hero-card {
    padding: 30px;
}

.home-section h3 {
    color: #000000;
    font-size: 18px;
    font-family: 'M PLUS 1 Code', monospace;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
    text-align: left;
    position: relative;
}

.hashrate-section .chart-header {
    position: relative;
}

.hashrate-section .chart-period-selector {
    position: relative;
    padding-right: 70px;
}

.hashrate-section .chart-period-selector::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    width: 50px;
    height: 25px;
    background-image: url("data:image/svg+xml,%3Csvg width='50' height='25' xmlns='http://www.w3.org/2000/svg'%3E%3Cdefs%3E%3ClinearGradient id='ecgGrad' x1='0%25' y1='0%25' x2='100%25' y2='0%25'%3E%3Cstop offset='0%25' stop-color='%23ECD400' stop-opacity='0.3'/%3E%3Cstop offset='50%25' stop-color='%23ECD400' stop-opacity='1'/%3E%3Cstop offset='100%25' stop-color='%23ECD400' stop-opacity='0.3'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M 0 12.5 L 8 12.5 L 11 4 L 14 21 L 17 12.5 L 25 12.5 L 28 4 L 31 21 L 34 12.5 L 42 12.5 L 45 4 L 48 21' stroke='url(%23ecgGrad)' stroke-width='2.2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    filter: drop-shadow(0 0 3px rgba(236, 212, 0, 0.4));
}

.hashrate-section .chart-period-selector::before {
    content: '';
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #ECD400;
    box-shadow: 0 0 8px rgba(236, 212, 0, 0.8), 0 0 12px rgba(236, 212, 0, 0.4);
    animation: ecg-scanner 2.5s linear infinite;
    z-index: 2;
}

@keyframes ecg-scanner {
    0% {
        right: 60px;
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        right: 10px;
        opacity: 0;
    }
}

.home-section h4 {
    color: #b0b0b0;
    font-size: 1rem;
    margin-bottom: 15px;
}

/* Hashrate Section */
.hashrate-section .chart-container {
    height: 280px;
    background: #FFFFFF;
    border-radius: 5.75px;
    padding: 15px;
}

/* Chart Header with Period Selector */
.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.chart-header h3 {
    margin: 0;
}

.chart-period-selector {
    display: flex;
    gap: 8px;
    background: rgba(0, 0, 0, 0.05);
    padding: 4px;
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.15);
}

.period-btn {
    background: transparent;
    border: none;
    color: rgba(0, 0, 0, 0.6);
    font-family: 'M PLUS 1 Code', monospace;
    font-size: 13px;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.period-btn:hover {
    background: rgba(0, 0, 0, 0.08);
    color: rgba(0, 0, 0, 0.8);
}

.period-btn.active {
    background: var(--primary-yellow);
    color: #000;
}

/* Dark mode adjustments */
body.dark-mode .chart-period-selector {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.08);
}

body.dark-mode .period-btn {
    color: rgba(255, 255, 255, 0.6);
}

body.dark-mode .period-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.8);
}

/* Miner Types Section */
.miner-types-section .miner-types-grid {
    justify-content: center;
}

.no-miners-message {
    text-align: center;
    color: #888;
    padding: 30px;
}

/* Leaderboard Section */
.leaderboard-warning {
    background: rgba(255, 193, 7, 0.1);
    border: 1px solid #AAAAAA;
    border-radius: 5.75px;
    padding: 10px 14px;
    margin-bottom: 15px;
    font-size: 11px;
    font-family: 'M PLUS 1 Code', monospace;
    color: #ffc107;
    text-align: center;
}

.leaderboard-table-wrapper {
    max-height: 520px;
    overflow-y: auto;
    border-radius: 5.75px;
    border: 1px solid #AAAAAA;
}

.leaderboard-table-wrapper::-webkit-scrollbar {
    width: 8px;
}

.leaderboard-table-wrapper::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.leaderboard-table-wrapper::-webkit-scrollbar-thumb {
    background: #AAAAAA;
    border-radius: 4px;
}

.leaderboard-table-wrapper::-webkit-scrollbar-thumb:hover {
    background: #888888;
}

.leaderboard-table {
    width: 100%;
    border-collapse: collapse;
}

.leaderboard-table thead {
    position: sticky;
    top: 0;
    z-index: 1;
}

.leaderboard-table th {
    padding: 12px 10px;
    text-align: left;
    font-size: 11px;
    font-family: 'M PLUS 1 Code', monospace;
    background: #F1F1F1;
    color: #000000;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}


.leaderboard-table td {
    padding: 10px;
    border-bottom: 1px solid #EEEEEE;
    font-family: 'M PLUS 1 Code', monospace;
}

.leaderboard-table tbody tr:hover {
    background: #F9F9F9;
}

.leaderboard-table .loading {
    text-align: center;
    color: #888;
    padding: 30px;
}

.leaderboard-table .rank-cell {
    color: #000000;
    font-weight: 600;
    font-size: 14px;
    width: 50px;
}

.leaderboard-table .status-cell {
    width: 30px;
    text-align: center;
}

.status-indicator {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #AAAAAA;
}

.status-indicator.online {
    background: #00c853;
    box-shadow: 0 0 6px rgba(0, 200, 83, 0.5);
}

.status-indicator.offline {
    background: #AAAAAA;
}

.leaderboard-table .worker-cell {
    color: #000000;
    font-weight: 600;
}

.leaderboard-table .miner-cell {
    color: #666666;
    font-size: 14px;
}

.leaderboard-table .hashrate-cell {
    color: #000000;
    font-size: 14px;
}

.leaderboard-table .diff-cell {
    color: #ECD400;
    font-weight: 600;
}

/* Fee Rates Section */
.fee-rates .fee-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.fee-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 15px;
    text-align: center;
}

.fee-item.highlight {
    background: rgba(255, 147, 28, 0.15);
    border: 2px solid rgba(255, 147, 28, 0.3);
}

.fee-label {
    display: block;
    color: #888;
    font-size: 0.85rem;
    margin-bottom: 8px;
}

.fee-value {
    display: block;
    color: #ff931c;
    font-size: 1.2rem;
    font-weight: 600;
}

@media (max-width: 768px) {
    .fee-rates .fee-grid {
        grid-template-columns: 1fr;
    }

    /* Hide Miner column (3rd) on tablets */
    .leaderboard-table .miner-cell {
        display: none;
    }

    .leaderboard-table th:nth-child(3),
    .leaderboard-table td:nth-child(3) {
        display: none;
    }

    .leaderboard-table th,
    .leaderboard-table td {
        padding: 8px 6px;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    /* Hide Hashrate column (4th) on mobile */
    .leaderboard-table .hashrate-cell {
        display: none;
    }

    .leaderboard-table th:nth-child(4),
    .leaderboard-table td:nth-child(4) {
        display: none;
    }

    .leaderboard-table th,
    .leaderboard-table td {
        padding: 6px 4px;
        font-size: 0.8rem;
    }

    .status-indicator {
        width: 8px;
        height: 8px;
    }

    .leaderboard-table-wrapper {
        max-height: 400px;
    }
}

/* ===========================================
   STATS PAGE STYLES
   =========================================== */

.stats-page-wrapper {
    background: #F1F1F1;
    min-height: 100vh;
    padding: 40px 20px;
}

.stats-header-wrapper {
    max-width: 1200px;
    margin: 0 auto 15px auto;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
    align-items: center;
}

.miner-address-header {
    font-family: 'M PLUS 1 Code', monospace;
    font-size: 21.12px;
    font-weight: 600;
    color: #000000;
    margin: 0;
    text-align: left;
    grid-column: 1 / 5;
}

.btc-address {
    color: #888888;
}

.stats-header-wrapper .status-indicators-row {
    grid-column: 5 / 6;
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: flex-end;
}

.stats-status-row {
    display: none;
}

.status-online {
    background: rgba(0, 255, 0, 0.15);
    border: 2px solid #00ff00;
    animation: pulse-border-green 2s ease-in-out infinite;
}

.status-offline {
    background: rgba(255, 0, 0, 0.15);
    border: 2px solid #ff0000;
    animation: pulse-border-red 2s ease-in-out infinite;
}

.dot-online {
    background: #00ff00;
    animation: pulse-green 2s ease-in-out infinite;
}

.dot-offline {
    background: #ff0000;
    animation: pulse-red 2s ease-in-out infinite;
}

@keyframes pulse-green {
    0%, 100% {
        opacity: 1;
        box-shadow: 0 0 0 0 rgba(0, 255, 0, 0.7);
    }
    50% {
        opacity: 0.8;
        box-shadow: 0 0 0 4px rgba(0, 255, 0, 0);
    }
}

@keyframes pulse-red {
    0%, 100% {
        opacity: 1;
        box-shadow: 0 0 0 0 rgba(255, 0, 0, 0.7);
    }
    50% {
        opacity: 0.8;
        box-shadow: 0 0 0 4px rgba(255, 0, 0, 0);
    }
}

@keyframes pulse-border-green {
    0%, 100% {
        border-color: #00ff00;
        box-shadow: 0 0 0 0 rgba(0, 255, 0, 0.4);
    }
    50% {
        border-color: rgba(0, 255, 0, 0.6);
        box-shadow: 0 0 8px 2px rgba(0, 255, 0, 0.3);
    }
}

@keyframes pulse-border-red {
    0%, 100% {
        border-color: #ff0000;
        box-shadow: 0 0 0 0 rgba(255, 0, 0, 0.4);
    }
    50% {
        border-color: rgba(255, 0, 0, 0.6);
        box-shadow: 0 0 8px 2px rgba(255, 0, 0, 0.3);
    }
}

.efficiency-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-bottom: 30px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.efficiency-grid-5 {
    grid-template-columns: repeat(5, 1fr);
}

.efficiency-card {
    background: #FFFFFF;
    border: 1px solid #AAAAAA;
    border-radius: 5.75px;
    padding: 22.5px 20px 22.5px 30px;
    min-height: 92.5px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    text-align: left;
    transition: all 0.3s ease;
}

.efficiency-card.primary {
    background: #212121;
    border: 1px solid #333333;
}

.efficiency-card.primary .card-value {
    color: #FFFFFF;
}

.efficiency-card.primary .card-label {
    color: #ECD400;
}

.efficiency-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.card-label {
    font-family: 'M PLUS 1 Code', monospace;
    font-size: 13px;
    font-weight: 600;
    color: #000000;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.card-value {
    font-family: 'M PLUS 1 Code', monospace;
    font-size: 24px;
    font-weight: 600;
    color: #ECD400;
    line-height: 1.2;
}

.workers-table-section,
.chart-section {
    max-width: 1200px;
    margin: 30px auto;
    background: #FFFFFF;
    border: 1px solid #AAAAAA;
    border-radius: 5.75px;
    padding: 25px;
}

.workers-table-section h3,
.hashrate-chart-section h3 {
    color: #000000;
    font-size: 18px;
    font-family: 'M PLUS 1 Code', monospace;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
    text-align: left;
    position: relative;
    padding-right: 70px;
}

.hashrate-chart-section h3::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    width: 50px;
    height: 25px;
    background-image: url("data:image/svg+xml,%3Csvg width='50' height='25' xmlns='http://www.w3.org/2000/svg'%3E%3Cdefs%3E%3ClinearGradient id='ecgGrad' x1='0%25' y1='0%25' x2='100%25' y2='0%25'%3E%3Cstop offset='0%25' stop-color='%23ECD400' stop-opacity='0.3'/%3E%3Cstop offset='50%25' stop-color='%23ECD400' stop-opacity='1'/%3E%3Cstop offset='100%25' stop-color='%23ECD400' stop-opacity='0.3'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M 0 12.5 L 8 12.5 L 11 4 L 14 21 L 17 12.5 L 25 12.5 L 28 4 L 31 21 L 34 12.5 L 42 12.5 L 45 4 L 48 21' stroke='url(%23ecgGrad)' stroke-width='2.2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    filter: drop-shadow(0 0 3px rgba(236, 212, 0, 0.4));
}

.hashrate-chart-section h3::before {
    content: '';
    position: absolute;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #ECD400;
    box-shadow: 0 0 8px rgba(236, 212, 0, 0.8), 0 0 12px rgba(236, 212, 0, 0.4);
    animation: ecg-scanner-stats 2.5s linear infinite;
    z-index: 2;
}

@keyframes ecg-scanner-stats {
    0% {
        right: 70px;
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        right: 20px;
        opacity: 0;
    }
}

/* Stats workers table specific styles */
.stats-page-wrapper .leaderboard-table td {
    color: #000000;
    font-size: 14px;
}

.stats-page-wrapper .leaderboard-table .worker-cell {
    color: #000000;
    font-weight: 600;
}

.stats-page-wrapper .leaderboard-table .miner-cell {
    color: #000000;
    font-size: 14px;
    transition: color 0.2s ease;
}

.stats-page-wrapper .leaderboard-table tbody tr:hover .miner-cell {
    color: #ECD400;
}

.stats-page-wrapper .leaderboard-table .hashrate-cell {
    color: #000000;
    font-size: 14px;
}

.stats-page-wrapper .leaderboard-table .diff-cell {
    color: #000000;
    font-size: 14px;
}

.stats-page-wrapper .leaderboard-table .status-cell {
    width: 30px;
    text-align: center;
}

.stats-page-wrapper .status-indicator {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.stats-page-wrapper .status-indicator.active {
    background: #00c853;
    box-shadow: 0 0 6px rgba(0, 200, 83, 0.5);
}

.stats-page-wrapper .status-indicator.inactive {
    background: #ff0000;
    box-shadow: 0 0 6px rgba(255, 0, 0, 0.5);
}

/* Stats action buttons */
.stats-btn-back,
.stats-btn-refresh {
    padding: 12px 24px;
    border-radius: 5.75px;
    font-size: 14px;
    font-family: 'M PLUS 1 Code', monospace;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-decoration: none;
    display: inline-block;
    border: 1px solid #AAAAAA;
}

.stats-btn-back {
    background: #212121;
    color: #F1F1F1;
}

.stats-btn-back:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.stats-btn-refresh {
    background: #ECD400;
    color: #000000;
    border: none;
}

.stats-btn-refresh:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(236, 212, 0, 0.3);
}

/* Responsive for stats page */
@media (max-width: 1200px) {
    .efficiency-grid-5 {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .efficiency-grid,
    .efficiency-grid-5 {
        grid-template-columns: repeat(2, 1fr);
    }

    .miner-address-header {
        font-size: 16px;
        word-break: break-all;
    }

    .stats-header-wrapper {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .status-badge {
        align-self: flex-end;
    }
}

@media (max-width: 480px) {
    .efficiency-grid,
    .efficiency-grid-5 {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   FOOTER STYLES
   ======================================== */

.site-footer {
    background: #212121;
    color: #ffffff;
    margin-top: 80px;
    font-family: 'Mulish', sans-serif;
}

.site-footer-wrap {
    width: 100%;
}

.site-middle-footer-wrap {
    padding: 60px 0 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.site-footer-row-container-inner {
    width: 100%;
}

.site-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
}

.site-footer-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

.site-footer-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Footer Logos */
.footer-logo {
    width: 190px;
    height: auto;
    display: block;
    margin-bottom: 15px;
}

.footer-logo-secondary {
    margin-top: 10px;
}

/* Footer Headings */
.footer-heading {
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 15px 0;
    line-height: 1.5;
}

/* Footer Links */
.footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.footer-links li {
    margin: 0;
}

.footer-links a {
    color: #ffffff;
    text-decoration: none;
    font-size: 18px;
    line-height: 1.3;
    transition: color 0.2s ease;
    display: inline-block;
}

.footer-links a:hover {
    color: #ECD400;
}

/* Bottom Footer */
.site-bottom-footer-wrap {
    padding: 30px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.site-bottom-footer-inner-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

/* Social Links */
.footer-social-wrap {
    display: flex;
    gap: 15px;
    align-items: center;
}

.social-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-button:hover {
    border-color: #ECD400;
    color: #ECD400;
    transform: translateY(-2px);
}

.social-button svg {
    width: 20px;
    height: 20px;
}

/* Copyright */
.footer-copyright {
    text-align: right;
}

.footer-copyright p {
    margin: 0;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

.footer-tech-info {
    margin-bottom: 10px !important;
    font-size: 13px !important;
}

.footer-tech-info a {
    color: #ECD400;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.footer-tech-info a:hover {
    opacity: 0.8;
    text-decoration: underline;
}

/* Footer Responsive */
@media (max-width: 968px) {
    .site-footer-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

@media (max-width: 640px) {
    .site-footer-row {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .site-middle-footer-wrap {
        padding: 40px 0 30px;
    }

    .site-bottom-footer-inner-wrap {
        flex-direction: column;
        text-align: center;
    }

    .footer-logo {
        width: 150px;
    }

    .footer-heading {
        font-size: 16px;
    }

    .footer-links a {
        font-size: 16px;
    }
}

/* ========================================
   HEADER NAVIGATION MENU
   ======================================== */

.navbar-right {
    display: flex;
    align-items: center;
    gap: 30px;
}

.header-navigation {
    display: flex;
    align-items: center;
}

.nav-menu {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 25px;
}

.nav-menu-item {
    position: relative;
}

.nav-menu-item > a:not(.history-badge) {
    color: #ffffff;
    text-decoration: none;
    font-family: 'Mulish', sans-serif;
    font-size: 15px;
    font-weight: 500;
    padding: 8px 0;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: color 0.2s ease;
    cursor: pointer;
}

.nav-menu-item > a:not(.history-badge):hover {
    color: #ECD400;
}

.dropdown-arrow {
    font-size: 12px;
    transition: transform 0.2s ease;
}

/* Dropdown Menu */
.nav-menu-item.has-dropdown {
    position: relative;
}

.nav-menu-item .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #2b2b2b;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    padding: 8px 0;
    margin-top: 8px;
    min-width: 220px;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.nav-menu-item.has-dropdown:hover .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-menu-item.has-dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

.sub-menu li {
    margin: 0;
}

.sub-menu a {
    display: block;
    padding: 10px 20px;
    color: #ffffff;
    text-decoration: none;
    font-family: 'Mulish', sans-serif;
    font-size: 14px;
    transition: background 0.2s ease, color 0.2s ease;
}

.sub-menu a:hover {
    background: rgba(236, 212, 0, 0.1);
    color: #ECD400;
}

/* Dark Mode Toggle Button */
.dark-mode-toggle {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #ffffff;
    transition: all 0.3s ease;
    margin-left: 15px;
}

.dark-mode-toggle:hover {
    border-color: #ECD400;
    color: #ECD400;
    transform: translateY(-2px);
}

.dark-mode-toggle .sun-icon {
    display: none;
}

.dark-mode-toggle .moon-icon {
    display: block;
}

body.dark-mode .dark-mode-toggle .sun-icon {
    display: block;
}

body.dark-mode .dark-mode-toggle .moon-icon {
    display: none;
}

/* History Badge */
.history-badge {
    background: rgba(236, 212, 0, 0.15);
    border: 2px solid #ECD400;
    color: #ECD400;
    padding: 6px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    display: flex !important;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    font-family: 'M PLUS 1 Code', monospace;
    flex-shrink: 0;
}

.history-badge:hover {
    background: #ECD400;
    color: #000;
    transform: translateY(-2px);
}

.badge-icon {
    font-size: 14px;
}

/* Header Icons */
.header-icons {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-icon-link {
    color: #ffffff;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    transition: color 0.2s ease;
    position: relative;
}

.header-icon-link:hover {
    color: #ECD400;
}

.header-icon-link svg {
    width: 24px;
    height: 24px;
}

/* Cart Count Badge */
.cart-count {
    position: absolute;
    top: -2px;
    right: -2px;
    background: #ECD400;
    color: #000000;
    font-size: 11px;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'M PLUS 1 Code', monospace;
}

/* Hamburger Menu Button - Hidden on desktop, visible on mobile */
.hamburger-menu {
    display: none;
    background: transparent;
    border: none;
    width: 30px;
    height: 30px;
    flex-direction: column;
    justify-content: space-around;
    cursor: pointer;
    padding: 0;
}

.hamburger-menu span {
    width: 100%;
    height: 3px;
    background: #ffffff;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.hamburger-menu.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Mobile Menu - Hidden by default on desktop */
.mobile-menu {
    display: none;
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    padding: 20px;
    z-index: 999;
}

.mobile-menu.active {
    display: block;
}

.mobile-nav-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-nav-item {
    margin: 10px 0;
}

.mobile-nav-item a {
    color: #ffffff;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    display: block;
    padding: 10px;
    transition: color 0.2s ease;
}

.mobile-nav-item a:hover {
    color: #ECD400;
}

/* Responsive */
@media (max-width: 968px) {
    .nav-menu {
        gap: 15px;
    }

    .nav-menu-item > a {
        font-size: 14px;
    }

    .navbar-right {
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .header-navigation {
        display: none;
    }

    .hamburger-menu {
        display: flex;
    }

    .navbar-right {
        gap: 15px;
    }
}
