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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #1a1a2e;
    color: #e0e0e0;
    line-height: 1.5;
    min-height: 100vh;
}

a {
    color: #4fc3f7;
    text-decoration: none;
}

a:hover {
    color: #81d4fa;
    text-decoration: underline;
}

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

header {
    background: #0f0f1a;
    border-bottom: 1px solid #2a2a4a;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

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

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

img.logo-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    object-fit: contain;
}

.logo h1 {
    font-size: 24px;
    font-weight: 600;
    color: #fff;
}

.logo span {
    color: #f7931a;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

nav a {
    color: #a0a0a0;
    font-weight: 500;
    padding: 8px 0;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
}

nav a:hover,
nav a.active {
    color: #fff;
    border-bottom-color: #f7931a;
    text-decoration: none;
}

main {
    padding: 30px 0;
}

.page-title {
    margin-bottom: 30px;
}

.page-title h2 {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 8px;
}

.page-title p {
    color: #888;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: #16162a;
    border: 1px solid #2a2a4a;
    border-radius: 8px;
    padding: 20px;
}

.stat-card .label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #888;
    margin-bottom: 8px;
}

.stat-card .value {
    font-size: 24px;
    font-weight: 600;
    color: #fff;
}

.stat-card .value.hashrate {
    color: #4caf50;
}

.stat-card .value.miners {
    color: #2196f3;
}

.stat-card .value.blocks {
    color: #f7931a;
}

.panel {
    background: #16162a;
    border: 1px solid #2a2a4a;
    border-radius: 8px;
    margin-bottom: 30px;
}

.panel-header {
    padding: 15px 20px;
    border-bottom: 1px solid #2a2a4a;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.panel-header h3 {
    font-size: 16px;
    font-weight: 600;
}

.panel-body {
    padding: 20px;
}

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

th, td {
    text-align: left;
    padding: 12px 15px;
    border-bottom: 1px solid #2a2a4a;
}

th {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #888;
    font-weight: 600;
}

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

tr:hover {
    background: #1e1e38;
}

.hash {
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 13px;
    color: #4fc3f7;
}

.hash-short {
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: inline-block;
}

.status {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.status.confirmed {
    background: rgba(76, 175, 80, 0.2);
    color: #4caf50;
}

.status.pending {
    background: rgba(255, 193, 7, 0.2);
    color: #ffc107;
}

.status.orphan {
    background: rgba(244, 67, 54, 0.2);
    color: #f44336;
}

.connect-box {
    background: #0f0f1a;
    border: 1px solid #2a2a4a;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
}

.connect-box h3 {
    margin-bottom: 15px;
    font-size: 16px;
}

.connect-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.connect-item {
    background: #16162a;
    border-radius: 6px;
    padding: 15px;
}

.connect-item .label {
    font-size: 12px;
    color: #888;
    margin-bottom: 8px;
}

.connect-item code {
    display: block;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 14px;
    color: #4caf50;
    background: #0a0a14;
    padding: 10px;
    border-radius: 4px;
    word-break: break-all;
}

.miner-search {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
}

.miner-search input {
    flex: 1;
    background: #0f0f1a;
    border: 1px solid #2a2a4a;
    border-radius: 6px;
    padding: 12px 16px;
    color: #fff;
    font-size: 14px;
}

.miner-search input::placeholder {
    color: #666;
}

.miner-search input:focus {
    outline: none;
    border-color: #4fc3f7;
}

.miner-search button {
    background: #f7931a;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 12px 24px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.miner-search button:hover {
    background: #e8850f;
}

.worker-list {
    display: grid;
    gap: 15px;
}

.worker-item {
    background: #0f0f1a;
    border: 1px solid #2a2a4a;
    border-radius: 6px;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.worker-name {
    font-weight: 600;
    color: #fff;
}

.worker-stats {
    display: flex;
    gap: 30px;
}

.worker-stats span {
    color: #888;
}

.worker-stats .value {
    color: #4caf50;
    font-weight: 600;
}

footer {
    background: #0f0f1a;
    border-top: 1px solid #2a2a4a;
    padding: 30px 0;
    margin-top: auto;
}

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

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    color: #888;
    font-size: 14px;
}

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

.copyright {
    color: #666;
    font-size: 13px;
}

.loading {
    text-align: center;
    padding: 40px;
    color: #888;
}

.loading::after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #2a2a4a;
    border-top-color: #4fc3f7;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 10px;
    vertical-align: middle;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.error-msg {
    background: rgba(244, 67, 54, 0.1);
    border: 1px solid #f44336;
    color: #f44336;
    padding: 15px;
    border-radius: 6px;
    text-align: center;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-top: 20px;
}

.pagination button {
    background: #16162a;
    border: 1px solid #2a2a4a;
    color: #fff;
    padding: 8px 14px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
}

.pagination button:hover:not(:disabled) {
    background: #2a2a4a;
}

.pagination button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination button.active {
    background: #f7931a;
    border-color: #f7931a;
}

.pool-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #2a2a4a;
}

.info-item:last-child {
    border-bottom: none;
}

.info-item .label {
    color: #888;
}

.info-item .value {
    font-weight: 600;
}

.payment-timer-box {
    background: linear-gradient(135deg, #16162a 0%, #1e1e38 100%);
    border: 1px solid #2a2a4a;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 30px;
    text-align: center;
}

.timer-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #888;
    margin-bottom: 10px;
}

.timer-value {
    font-size: 42px;
    font-weight: 700;
    color: #f7931a;
    font-family: 'Consolas', 'Monaco', monospace;
    letter-spacing: 2px;
}

.timer-note {
    font-size: 13px;
    color: #666;
    margin-top: 10px;
}

.hidden {
    display: none !important;
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 15px;
    }

    nav ul {
        gap: 15px;
    }

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

    .footer-content {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .hash-short {
        max-width: 80px;
    }

    table {
        font-size: 13px;
    }

    th, td {
        padding: 10px 8px;
    }
}
