/* ========================================
   MINING DASHBOARD CSS
   Modern, clean design for mining feature
   ======================================== */

/* ========== HEADER & BALANCE ========== */
.mining-balance-header {
    display: flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 12px 24px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.balance-label {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    font-weight: 500;
}

.balance-amount {
    color: #fff;
    font-size: 24px;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.balance-locked {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    font-weight: 500;
}

/* ========== MAIN MINING CARD ========== */
.mining-main-card {
    background: linear-gradient(135deg, rgba(255,255,255,0.05), rgba(0,0,0,0.3));
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.mining-main-card .card-body {
    padding: 2rem;
}

/* ========== USER INFO HEADER ========== */
.user-info-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.user-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 3px solid rgba(102, 126, 234, 0.5);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* ========== MINING ACTION CONTAINER ========== */
.mining-action-container {
    padding: 20px;
}

/* ========== START MINING ========== */
.mining-start-container {
    text-align: center;
    padding: 40px 20px;
}

.mining-coin-icon {
    margin-bottom: 30px;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.mining-cta-text {
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 10px;
}

.mining-cta-subtext {
    color: rgba(255, 255, 255, 0.7);
    font-size: 16px;
    margin-bottom: 30px;
}

.estimated-earnings {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.2), rgba(118, 75, 162, 0.2));
    border: 1px solid rgba(102, 126, 234, 0.3);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 30px;
}

.earnings-label {
    display: block;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    margin-bottom: 8px;
}

.earnings-amount {
    display: block;
    color: #ffd700;
    font-size: 32px;
    font-weight: 700;
    text-shadow: 0 2px 8px rgba(255, 215, 0, 0.3);
}

.mining-start-btn {
    padding: 18px 50px;
    font-size: 20px;
    font-weight: 700;
    border-radius: 50px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.mining-start-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(102, 126, 234, 0.6);
}

.mining-start-btn:active {
    transform: translateY(-1px);
}

/* ========== ACTIVE MINING SESSION ========== */
.mining-active-session {
    text-align: center;
    padding: 40px 20px;
}

.mining-animation {
    position: relative;
    display: inline-block;
    margin-bottom: 30px;
}

.mining-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: rgba(255, 215, 0, 0.3);
    animation: pulse 2s ease-out infinite;
}

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

.mining-status-text {
    font-size: 24px;
    font-weight: 700;
    color: #ffd700;
    margin-bottom: 30px;
    text-shadow: 0 2px 8px rgba(255, 215, 0, 0.3);
}

/* ========== COUNTDOWN TIMER ========== */
.countdown-timer {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-bottom: 30px;
}

.countdown-item {
    background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(0,0,0,0.2));
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 12px;
    padding: 20px;
    min-width: 100px;
    text-align: center;
}

.countdown-value {
    display: block;
    font-size: 36px;
    font-weight: 700;
    color: #fff;
    line-height: 1;
    margin-bottom: 8px;
}

.countdown-label {
    display: block;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.countdown-separator {
    font-size: 36px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.5);
}

.mining-reward-preview {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), rgba(255, 165, 0, 0.2));
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 30px;
    color: #ffd700;
    font-size: 18px;
}

.mining-complete-btn {
    padding: 18px 50px;
    font-size: 20px;
    font-weight: 700;
    border-radius: 50px;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    border: none;
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.4);
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.mining-complete-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(40, 167, 69, 0.6);
}

/* ========== STATS CONTAINER ========== */
.mining-stats-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.stat-card {
    background: linear-gradient(135deg, rgba(255,255,255,0.05), rgba(0,0,0,0.2));
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 16px;
    padding: 24px;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.stat-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.stat-header i {
    font-size: 24px;
}

.stat-header h6 {
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
}

.stat-value {
    font-size: 36px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 10px;
}

.stat-link {
    color: #667eea;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.stat-link:hover {
    color: #764ba2;
    text-decoration: none;
}

/* ========== BOOST LIST ========== */
.boost-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.boost-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 12px 16px;
    transition: all 0.3s ease;
}

.boost-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.boost-icon {
    font-size: 20px;
    margin-right: 10px;
}

.boost-name {
    flex: 1;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

.boost-value {
    color: #28a745;
    font-weight: 700;
    font-size: 16px;
}

/* ========== MINING HISTORY ========== */
.mining-history-card {
    background: linear-gradient(135deg, rgba(255,255,255,0.05), rgba(0,0,0,0.3));
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.mining-history-card .table {
    color: rgba(255, 255, 255, 0.9);
}

.mining-history-card .table thead th {
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.7);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 1px;
}

.mining-history-card .table tbody tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.mining-history-card .table tbody tr:hover {
    background: rgba(255, 255, 255, 0.05);
}

/* ========== BOOST DETAILS PAGE ========== */
.boost-detail-card {
    background: linear-gradient(135deg, rgba(255,255,255,0.05), rgba(0,0,0,0.2));
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 16px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
}

.boost-detail-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.boost-icon-large {
    font-size: 48px;
    margin-bottom: 15px;
}

.boost-tip {
    text-align: center;
    padding: 20px;
}

.boost-tip h6 {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    margin-top: 10px;
}

/* ========== REFERRAL PAGE ========== */
.referral-code-display {
    max-width: 400px;
    margin: 0 auto;
}

.referral-code-display input {
    font-size: 32px;
    font-weight: 700;
    letter-spacing: 4px;
    background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(0,0,0,0.2));
    border: 2px solid rgba(102, 126, 234, 0.5);
    color: #fff;
}

.social-share-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.social-share-buttons .btn {
    padding: 12px 24px;
    font-weight: 600;
}

.referral-step {
    position: relative;
    padding: 20px;
}

.step-number {
    position: absolute;
    top: 0;
    right: 20px;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 18px;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    .mining-balance-header {
        flex-direction: column;
        gap: 5px;
    }
    
    .balance-amount {
        font-size: 20px;
    }
    
    .countdown-item {
        min-width: 80px;
        padding: 15px;
    }
    
    .countdown-value {
        font-size: 28px;
    }
    
    .mining-cta-text {
        font-size: 22px;
    }
    
    .earnings-amount {
        font-size: 24px;
    }
    
    .mining-start-btn,
    .mining-complete-btn {
        padding: 15px 40px;
        font-size: 16px;
    }
}

