/* 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: #e0e0e0;
    min-height: 100vh;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    padding: 0;
    position: relative;
}

/* Background */
.background {
    position: fixed;
    width: 100vw;
    height: 100vh;
    top: 0;
    left: 0;
    margin: 0;
    padding: 0;
    background: #F1F1F1;
    overflow: hidden;
    z-index: -1;
}

.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: 80px;
    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 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;
}

.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;
    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;
    gap: 8px;
}

.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: 10px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    line-height: 1.1;
    letter-spacing: 0.2px;
}

.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;
}

/* 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;
}

.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 */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }

    .navbar {
        padding: 15px 20px;
        border-radius: 0;
        height: auto;
    }

    .navbar-container {
        flex-direction: column;
        gap: 15px;
    }

    .navbar-left,
    .navbar-center,
    .navbar-right {
        flex: none;
        width: 100%;
        justify-content: center;
    }

    .nav-brand a {
        font-size: 1.2rem;
        justify-content: center;
    }

    .nav-logo {
        height: 30px;
    }

    .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 150px 0;
        background-image: none !important;
        background-color: #000000;
    }

    .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: 30px;
    }

    .stats-box-1,
    .stats-box-2 {
        left: 0 !important;
        right: 0 !important;
        transform: none !important;
    }

    .stats-box-2 {
        margin-top: 170px;
    }

    .stats-header {
        position: static !important;
        top: auto !important;
        margin-bottom: 15px;
    }

    .plebminer-stats-card {
        position: static !important;
        width: 100% !important;
        flex-direction: column;
        height: auto !important;
        padding: 20px;
    }

    .plebminer-stat-col {
        max-width: 100%;
        width: 100%;
    }

    .solo-block-card {
        position: static !important;
        width: 100% !important;
        margin-bottom: 15px;
    }

    .solo-block-1,
    .solo-block-2 {
        left: 0 !important;
        top: auto !important;
    }

    /* Action Bar Responsive */
    .action-bar {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }

    .worker-lookup-inline {
        flex: 1 !important;
        max-width: 100% !important;
    }

    .status-indicators {
        align-items: stretch;
        width: 100%;
    }

    .status-indicators-row {
        flex-direction: column;
        gap: 10px;
    }

    .status-indicator-box {
        width: 100%;
    }

    .connect-miner-btn {
        width: 100%;
    }

    /* Pool Stats Grid Responsive */
    .pool-stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .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 h3 {
    padding-right: 70px;
}

.hashrate-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-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 2.5s linear infinite;
    z-index: 2;
}

@keyframes ecg-scanner {
    0% {
        right: 70px;
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        right: 20px;
        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;
}

/* 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;
    }
}
