/* HASHCORE PREMIUM UI v2.4 
   Professional Enterprise Edition 
*/

:root {
    --primary: #00f2ff;
    --primary-glow: rgba(0, 242, 255, 0.4);
    --bg-dark: #020617;
    --card-bg: #0f172a;
    --card-border: rgba(255, 255, 255, 0.05);
    --text-main: #f8fafc;
    --text-dim: #94a3b8;
    --danger: #ef4444;
    --warning: #fbbf24;
    --success: #10b981;
}

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

body.mining-page {
    background-color: var(--bg-dark);
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: var(--text-main);
    overflow-x: hidden;
    line-height: 1.5;
}

/* Background Effect */
.overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at 50% 0%, rgba(30, 41, 59, 0.5) 0%, rgba(2, 6, 23, 1) 100%);
    pointer-events: none;
    z-index: 0;
}

.main-wrapper {
    position: relative;
    z-index: 1;
    max-width: 480px;
    margin: 0 auto;
    padding: 90px 20px 40px;
}

/* Navigation */
.top-nav {
    position: fixed;
    top: 0; width: 100%;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--card-border);
    z-index: 100;
}

.nav-container {
    max-width: 480px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.back-link { color: var(--text-main); text-decoration: none; font-size: 1.2rem; transition: 0.3s; }
.back-link:hover { color: var(--primary); transform: translateX(-3px); }

.brand-info { text-align: center; }
.brand-name { font-weight: 800; letter-spacing: 2px; font-size: 0.9rem; display: block; }
.node-status { display: block; font-size: 0.6rem; color: var(--text-dim); text-transform: uppercase; margin-top: 2px; }
.accent { color: var(--primary); text-shadow: 0 0 10px var(--primary-glow); }
.user-id { font-size: 0.7rem; color: var(--text-dim); font-family: 'JetBrains Mono'; background: rgba(255,255,255,0.05); padding: 4px 8px; border-radius: 6px; }

/* Cards Styling */
.card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
}

.balance-card {
    text-align: center;
    background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
    border: 1px solid rgba(0, 242, 255, 0.15);
    position: relative;
    overflow: hidden;
}

.balance-card::after {
    content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%;
    background: radial-gradient(circle, rgba(0, 242, 255, 0.05) 0%, transparent 70%);
}

.card-header { font-size: 0.7rem; color: var(--text-dim); letter-spacing: 1.5px; margin-bottom: 10px; font-weight: 700; }
.btc-amount {
    font-family: 'JetBrains Mono', monospace;
    font-size: 2.4rem; font-weight: 700;
    color: var(--text-main); margin: 10px 0;
    text-shadow: 0 0 20px rgba(255,255,255,0.1);
}

.card-footer { display: flex; justify-content: space-between; padding-top: 12px; border-top: 1px solid var(--card-border); align-items: center; }
.market-status { font-size: 0.65rem; color: var(--success); font-weight: 600; }
.market-status i { font-size: 0.5rem; vertical-align: middle; margin-right: 5px; animation: pulse 1s infinite; }
.currency-label { font-size: 0.7rem; font-weight: 800; color: var(--text-dim); }

/* Grid System */
.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 15px; }
.info-card { padding: 18px; }
.card-title { font-size: 0.65rem; font-weight: 800; color: var(--text-dim); margin-bottom: 15px; letter-spacing: 1px; text-transform: uppercase; }

.info-row { display: flex; justify-content: space-between; margin-bottom: 10px; align-items: center; }
.info-row .label { font-size: 0.7rem; color: var(--text-dim); }
.info-row .value { font-size: 0.75rem; font-weight: 700; }

/* NEW: Contract Progress Widget */
.contract-widget {
    background: linear-gradient(145deg, #0f172a, #1e293b);
    border: 1px solid rgba(0, 242, 255, 0.2);
}

.progress-mini {
    height: 6px; background: #020617;
    border-radius: 10px; margin: 12px 0; overflow: hidden;
}

.progress-fill {
    height: 100%; background: var(--primary);
    box-shadow: 0 0 10px var(--primary);
    transition: width 0.5s ease;
}

/* Mining Status Card */
.mining-status-card { background: #020617; border: 1px solid rgba(255,255,255,0.03); }
.status-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; }
.rig-indicator { font-size: 0.7rem; font-weight: 700; display: flex; align-items: center; gap: 8px; color: var(--text-dim); }
.rig-indicator.is-running { color: var(--warning); }
.pulse-dot { width: 10px; height: 10px; background: #334155; border-radius: 50%; }
.is-running .pulse-dot { background: var(--primary); box-shadow: 0 0 10px var(--primary); animation: pulse 1.5s infinite; }
.timer { font-family: 'JetBrains Mono'; font-size: 0.9rem; color: var(--primary); font-weight: 700; }

.loader-container { height: 12px; background: #1e293b; border-radius: 6px; overflow: hidden; position: relative; }
.loader-fill { height: 100%; background: var(--primary); width: 0%; transition: width 1s linear; position: relative; }
.anim-glow { box-shadow: 0 0 20px var(--primary); animation: glow 2s infinite ease-in-out; }

/* Terminal Console */
.terminal-container { background: #000; border-radius: 15px; padding: 15px; border: 1px solid #1e293b; margin-bottom: 20px; box-shadow: inset 0 0 20px rgba(0,0,0,0.5); }
.terminal-head { font-size: 0.6rem; color: #475569; border-bottom: 1px solid #1e293b; padding-bottom: 8px; margin-bottom: 10px; text-transform: uppercase; font-weight: 700; letter-spacing: 1px; }
.terminal-body { font-family: 'JetBrains Mono', monospace; font-size: 0.68rem; color: #10b981; height: 110px; overflow-y: auto; scrollbar-width: none; line-height: 1.6; }
.terminal-body::-webkit-scrollbar { display: none; }

/* Buttons */
.action-btn {
    width: 100%; padding: 22px; border-radius: 18px; border: none;
    background: linear-gradient(135deg, var(--primary) 0%, #0081ff 100%);
    color: #020617; font-weight: 800; font-size: 0.95rem; letter-spacing: 1px;
    cursor: pointer; transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 25px var(--primary-glow);
    display: flex; align-items: center; justify-content: center; gap: 10px;
}

.action-btn:hover:not(:disabled) { transform: translateY(-3px); box-shadow: 0 15px 30px var(--primary-glow); }
.action-btn:active { transform: scale(0.96); }

.btn-disabled { filter: grayscale(1); opacity: 0.4; cursor: not-allowed; box-shadow: none !important; transform: none !important; }

/* NEW: Renew Button (Yellow Theme) */
.btn-renew {
    background: linear-gradient(135deg, #fbbf24 0%, #d97706 100%) !important;
    color: #020617 !important;
    box-shadow: 0 10px 25px rgba(251, 191, 36, 0.4) !important;
    opacity: 1 !important; filter: none !important;
}

/* UPDATE: Status Info Box (Untuk pesan limit terpenuhi / hari Minggu) */
.status-info-box {
    width: 100%;
    padding: 22px;
    background: rgba(244, 63, 94, 0.05);
    border: 1px dashed rgba(239, 68, 68, 0.3);
    border-radius: 18px;
    text-align: center;
    color: var(--danger);
    font-weight: 700;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Helpers */
.text-warning { color: var(--warning); }
.text-danger { color: var(--danger); font-weight: 800; }
.mt-2 { margin-top: 10px; }

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

@keyframes glow {
    0%, 100% { filter: brightness(1); }
    50% { filter: brightness(1.6); box-shadow: 0 0 25px var(--primary); }
}

/* Mobile Responsive Adjustments */
@media (max-width: 380px) {
    .btc-amount { font-size: 2rem; }
    .main-wrapper { padding-top: 80px; }
    .info-grid { grid-template-columns: 1fr; }
}


/* --- Bagian Saldo Utama --- */
.btc-amount-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px; /* Jarak antara angka dan icon */
    margin: 10px 0;
}

.btc-amount {
    font-family: 'JetBrains Mono', monospace;
    font-size: 2.4rem; 
    font-weight: 700;
    color: var(--text-main);
    text-shadow: 0 0 20px rgba(255,255,255,0.1);
    line-height: 1;
}

.btc-icon-inline {
    width: 32px; /* Ukuran icon menyesuaikan tinggi angka */
    height: 32px;
    filter: drop-shadow(0 0 8px var(--primary-glow));
    animation: btc-glow 3s infinite ease-in-out;
}

/* Efek Napas/Glow pada Icon */
@keyframes btc-glow {
    0%, 100% { 
        filter: drop-shadow(0 0 5px var(--primary-glow)) brightness(1);
        transform: scale(1);
    }
    50% { 
        filter: drop-shadow(0 0 15px var(--primary)) brightness(1.2);
        transform: scale(1.05);
    }
}

/* Responsif untuk layar kecil */
@media (max-width: 380px) {
    .btc-amount { font-size: 1.8rem; }
    .btc-icon-inline { width: 24px; height: 24px; }
    .btc-amount-wrapper { gap: 8px; }
}

