/* Modern Active Plan & Daily Earnings Design */

/* Active Plan Card - Elegant Design */
#activePlanSection {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(139, 92, 246, 0.05) 100%);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

#activePlanSection::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.1) 0%, transparent 70%);
    animation: rotate-gradient 20s linear infinite;
    pointer-events: none;
}

@keyframes rotate-gradient {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

#activePlanSection:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(99, 102, 241, 0.15);
}

#activePlanSection .card-header {
    position: relative;
    z-index: 1;
}

#activePlanSection .card-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
}

#activePlanContent {
    position: relative;
    z-index: 1;
}

#activePlanContent h3 {
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

#activePlanContent > div > div {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

#activePlanContent > div > div > div {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    padding: 1.25rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

#activePlanContent > div > div > div::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: linear-gradient(180deg, #6366f1 0%, #8b5cf6 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

#activePlanContent > div > div > div:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.2);
}

#activePlanContent > div > div > div:hover::before {
    opacity: 1;
}

/* Daily Earnings Card - Modern Design */
#dailyEarningSection {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.05) 0%, rgba(5, 150, 105, 0.05) 100%);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

#dailyEarningSection::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.1) 0%, transparent 70%);
    animation: pulse-slow 4s ease-in-out infinite;
    pointer-events: none;
}

@keyframes pulse-slow {
    0%, 100% { 
        transform: scale(1);
        opacity: 0.5;
    }
    50% { 
        transform: scale(1.1);
        opacity: 1;
    }
}

#dailyEarningSection:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(16, 185, 129, 0.15);
}

#dailyEarningSection h2 {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    position: relative;
    z-index: 1;
    margin-bottom: 1.5rem;
}

.daily-earnings-box {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    padding: 2rem;
    position: relative;
    z-index: 1;
}

.earnings-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.earnings-info-item {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 10px;
    padding: 1.25rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.earnings-info-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #10b981 0%, #059669 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.earnings-info-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.15);
    border-color: #10b981;
}

.earnings-info-item:hover::before {
    opacity: 1;
}

.earnings-info-item .info-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.earnings-info-item .info-value {
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Claim Button - CLEAN MODERN DESIGN */
.claim-earnings-btn,
#claimEarningsBtn {
    width: 100%;
    max-width: 100%;
    padding: 0.85rem 1.25rem !important;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%) !important;
    color: white !important;
    border: none !important;
    border-radius: 10px !important;
    font-weight: 600 !important;
    font-size: 0.875rem !important;
    cursor: pointer !important;
    transition: all 0.25s ease !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.5rem !important;
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.3) !important;
    position: relative !important;
    overflow: hidden !important;
    white-space: nowrap !important;
}


.claim-earnings-btn:hover:not(:disabled),
#claimEarningsBtn:hover:not(:disabled) {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 28px rgba(99, 102, 241, 0.45) !important;
}

.claim-earnings-btn:active:not(:disabled),
#claimEarningsBtn:active:not(:disabled) {
    transform: translateY(0) !important;
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.35) !important;
}

/* Disabled state */
.claim-earnings-btn:disabled,
#claimEarningsBtn:disabled {
    background: linear-gradient(135deg, #64748b 0%, #475569 100%) !important;
    cursor: not-allowed !important;
    opacity: 0.7 !important;
    box-shadow: 0 2px 8px rgba(71, 85, 105, 0.2) !important;
}

/* Active state (08:00-08:15) - GREEN & VIBRANT */
.claim-earnings-btn.btn-active,
#claimEarningsBtn.btn-active {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    box-shadow: 0 6px 24px rgba(16, 185, 129, 0.5) !important;
    animation: pulse-glow-green 2s ease-in-out infinite !important;
}

@keyframes pulse-glow-green {
    0%, 100% {
        box-shadow: 0 6px 24px rgba(16, 185, 129, 0.5);
    }
    50% {
        box-shadow: 0 8px 32px rgba(16, 185, 129, 0.7), 
                    0 0 30px rgba(16, 185, 129, 0.3);
    }
}

.claim-earnings-btn i,
#claimEarningsBtn i {
    font-size: 0.875rem;
}

.claim-earnings-btn span,
#claimEarningsBtn span {
    font-weight: 600;
    letter-spacing: 0.3px;
}


/* Plan Work Status - SUCCESS MESSAGE */
#planWorkStatus {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.08) 0%, rgba(5, 150, 105, 0.08) 100%);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 10px;
    padding: 0.75rem 1rem;
    text-align: center;
    animation: fade-in 0.3s ease;
}

@keyframes fade-in {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#planWorkStatus div {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    color: #10b981;
    font-weight: 600;
    font-size: 0.8rem;
}

#planWorkStatus i {
    font-size: 0.95rem;
}

/* Claim Window Info */
.claim-window-info {
    margin-top: 1rem;
    padding: 0.75rem;
    background: rgba(59, 130, 246, 0.1);
    border-left: 3px solid #3b82f6;
    border-radius: 6px;
    color: var(--text-secondary);
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.claim-window-info i {
    color: #3b82f6;
}


/* Upgrade Button */
#upgradePlanBtn {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    border: none;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
    transition: all 0.3s ease;
}

#upgradePlanBtn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.4);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .claim-earnings-btn,
    #claimEarningsBtn {
        font-size: 0.75rem !important;
        padding: 0.75rem 1rem !important;
    }
}

@media (max-width: 768px) {
    #activePlanSection,
    #dailyEarningSection {
        padding: 1.25rem;
    }
    
    #activePlanContent h3 {
        font-size: 1.5rem;
    }
    
    .earnings-info-grid {
        grid-template-columns: 1fr;
    }
    
    .claim-earnings-btn,
    #claimEarningsBtn {
        font-size: 0.8rem !important;
        padding: 0.75rem 1rem !important;
    }
    
    #planWorkStatus div {
        font-size: 0.75rem;
    }
}

/* Loading Animation */
@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

.loading-shimmer {
    animation: shimmer 2s infinite linear;
    background: linear-gradient(to right, #f0f0f0 0%, #f8f8f8 20%, #f0f0f0 40%, #f0f0f0 100%);
    background-size: 1000px 100%;
}
