/* Daily Rewards Premium Styles */

.daily-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 12000;
    display: none;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(8px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.daily-overlay.active {
    display: flex;
    opacity: 1;
}

.daily-card {
    background: #13111a;
    width: 95%;
    max-width: 420px;
    border-radius: 24px;
    padding: 30px 20px;
    border: 1px solid rgba(139, 92, 246, 0.2);
    box-shadow: 0 0 60px rgba(139, 92, 246, 0.15);
    position: relative;
    text-align: center;
    overflow: hidden;
}

/* Background Glow */
.daily-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.daily-header h2 {
    font-size: 2rem;
    margin-bottom: 5px;
    background: linear-gradient(to right, #fff, #a78bfa);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 1px;
    text-shadow: 0 0 20px rgba(167, 139, 250, 0.5);
}

.daily-header p {
    color: #a1a1aa;
    font-size: 0.95rem;
    margin-bottom: 25px;
}

/* Horizontal Scroll Container */
.daily-grid {
    display: flex;
    overflow-x: auto;
    gap: 15px;
    padding: 20px 5px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 20px;
    /* Hide scrollbar */
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.daily-grid::-webkit-scrollbar {
    display: none;
}

.daily-item {
    flex: 0 0 130px;
    /* Fixed width cards */
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 20px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
    scroll-snap-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.daily-item.locked {
    opacity: 0.4;
    filter: grayscale(1);
    transform: scale(0.95);
}

.daily-item.completed {
    background: rgba(34, 197, 94, 0.1);
    border-color: #22c55e;
    opacity: 0.8;
}

/* Active Day Style */
.daily-item.active {
    background: linear-gradient(145deg, #1e1b2e, #2d2644);
    border: 1px solid #8b5cf6;
    transform: scale(1.1);
    z-index: 10;
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.4);
}

.daily-item.active .reward-icon {
    animation: bounceIcon 2s infinite;
    color: #c4b5fd;
    text-shadow: 0 0 15px rgba(139, 92, 246, 0.8);
}

/* Day 7 Special */
.daily-item:nth-child(7) {
    background: linear-gradient(135deg, #4c1d95 0%, #312e81 100%);
    border-color: #a78bfa;
    min-width: 140px;
}

.daily-item:nth-child(7).active {
    box-shadow: 0 0 40px rgba(236, 72, 153, 0.5);
    background: linear-gradient(135deg, #be185d 0%, #db2777 100%);
    border-color: #fbcfe8;
}

.day-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.6);
}

.reward-icon {
    font-size: 2.2rem;
    margin: 5px 0;
    transition: transform 0.3s;
}

.reward-amount {
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.3;
    color: #fff;
    text-align: center;
}

/* Status Icons */
.status-icon {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 20px;
    height: 20px;
    background: #22c55e;
    color: #fff;
    border-radius: 50%;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.daily-item.locked .status-icon {
    background: #3f3f46;
    color: #71717a;
}

/* Claim Button Inside Card */
.claim-btn-inner {
    margin-top: 5px;
    background: #8b5cf6;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 800;
    padding: 6px 16px;
    border-radius: 20px;
    border: none;
    box-shadow: 0 4px 10px rgba(139, 92, 246, 0.4);
    animation: pulseBtn 1.5s infinite;
}

.daily-close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.05);
    border: none;
    color: #fff;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.2s;
    z-index: 20;
}

.daily-close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Animations */
@keyframes bounceIcon {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

@keyframes pulseBtn {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(139, 92, 246, 0.7);
    }

    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 8px rgba(139, 92, 246, 0);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(139, 92, 246, 0);
    }
}

.pulse-anim {
    animation: badgePulse 1.5s infinite;
}

@keyframes badgePulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
    }

    70% {
        transform: scale(1.2);
        box-shadow: 0 0 0 5px rgba(239, 68, 68, 0);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
    }
}