/* btc_miner.css */
#view-btc-miner {
    padding: 20px;
    color: #0f0;
    font-family: 'Consolas', 'Courier New', monospace;
    background: radial-gradient(circle at center, #0a110a 0%, #000 100%);
    min-height: 100%;
}

.btc-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #0f0;
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.btc-header h1 {
    font-size: 2rem;
    color: #0f0;
    text-transform: uppercase;
    text-shadow: 0 0 10px #0f0;
    margin: 0;
}

.btc-balance-box {
    text-align: right;
}

.btc-amount {
    font-size: 2.5rem;
    font-weight: bold;
    color: #f1c40f;
    text-shadow: 0 0 15px rgba(241, 196, 15, 0.5);
    display: flex;
    align-items: center;
    gap: 10px;
}

.btc-rate {
    font-size: 1rem;
    color: #aaa;
    margin-top: 5px;
}

.btc-dashboard {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
}

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

.btc-visuals {
    background: rgba(0, 20, 0, 0.5);
    border: 1px solid #0f0;
    border-radius: 10px;
    position: relative;
    overflow: hidden;
    min-height: 400px;
    height: auto;
    padding: 20px;
    box-shadow: inset 0 0 50px rgba(0, 255, 0, 0.1);
}

.matrix-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(rgba(0, 255, 0, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 0, 0.1) 1px, transparent 1px);
    background-size: 20px 20px;
    z-index: 0;
    animation: matrixScroll 20s linear infinite;
}

@keyframes matrixScroll {
    from {
        background-position: 0 0;
    }

    to {
        background-position: 0 400px;
    }
}

.server-rack {
    width: 60px;
    height: 220px;
    background: linear-gradient(to bottom, #111, #222);
    border: 2px solid #0f0;
    z-index: 1;
    display: flex;
    flex-direction: column-reverse;
    padding: 5px;
    gap: 2px;
    position: relative;
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.3);
    border-radius: 5px;
}

.server-unit {
    flex-shrink: 0;
    height: 14px;
    background: #000;
    border: 1px solid #0f0;
    border-radius: 2px;
    display: flex;
    align-items: center;
    padding: 0 3px;
    justify-content: space-between;
    box-shadow: inset 0 0 5px rgba(0, 255, 0, 0.2);
}

.unit-label {
    font-size: 6px;
    color: #0f0;
    opacity: 0.5;
}

.server-led {
    width: 6px;
    height: 6px;
    background: #0f0;
    border-radius: 50%;
    box-shadow: 0 0 5px #0f0;
    animation: blink 1s infinite alternate;
}

.server-led.red {
    background: #f00;
    box-shadow: 0 0 8px #f00;
}

.server-led.blue {
    background: #0cf;
    box-shadow: 0 0 8px #0cf;
}

@keyframes blink {
    0% {
        opacity: 0.3;
    }

    100% {
        opacity: 1;
    }
}

.btc-panels {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.btc-panel {
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid #333;
    border-left: 4px solid #0f0;
    border-radius: 8px;
    padding: 15px;
    transition: 0.2s;
}

.btc-panel:hover {
    border-color: #0f0;
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.2);
}

.btc-panel h3 {
    margin: 0 0 10px 0;
    color: #fff;
    font-size: 1.1rem;
    display: flex;
    justify-content: space-between;
}

.btc-panel .level-badge {
    background: #0f0;
    color: black;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: bold;
}

.btc-panel p {
    color: #aaa;
    font-size: 0.9rem;
    margin: 0 0 15px 0;
}

.btc-upgrade-btn {
    width: 100%;
    padding: 10px;
    background: #222;
    color: #0f0;
    border: 1px solid #0f0;
    border-radius: 5px;
    cursor: pointer;
    font-family: inherit;
    font-weight: bold;
    font-size: 1rem;
    transition: 0.2s;
}

.btc-upgrade-btn:hover:not(:disabled) {
    background: #0f0;
    color: #000;
}

.btc-upgrade-btn:disabled {
    border-color: #444;
    color: #666;
    cursor: not-allowed;
}

.btc-exchange {
    margin-top: 20px;
    background: rgba(241, 196, 15, 0.1);
    border: 1px solid #f1c40f;
    border-radius: 10px;
    padding: 20px;
}

.btc-exchange h2 {
    color: #f1c40f;
    margin: 0 0 10px 0;
}

.btc-exchange p {
    color: #ccc;
    margin: 0 0 15px 0;
}

.exchange-buttons {
    display: flex;
    gap: 10px;
}

.exchange-btn {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    background: #f1c40f;
    color: #000;
    transition: 0.2s;
}

.exchange-btn:hover {
    box-shadow: 0 0 15px rgba(241, 196, 15, 0.5);
    transform: scale(1.05);
}

.btc-locked-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 100;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
}

.btc-locked-overlay i {
    font-size: 5rem;
    color: #e74c3c;
    margin-bottom: 20px;
}

.btc-locked-overlay h2 {
    color: white;
    font-size: 2rem;
    margin-bottom: 10px;
}

.btc-locked-overlay p {
    color: #aaa;
    font-size: 1.1rem;
    max-width: 400px;
}

.btc-locked-overlay button {
    margin-top: 20px;
}

.float-text {
    position: absolute;
    color: #f1c40f;
    font-weight: bold;
    pointer-events: none;
    animation: floatUp 2s forwards;
    z-index: 10;
}

@keyframes floatUp {
    0% {
        transform: translateY(0);
        opacity: 1;
    }

    100% {
        transform: translateY(-50px);
        opacity: 0;
    }
}