/* Модальное окно ежедневных наград */
.daily-rewards-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(15, 23, 42, 0.75);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.daily-rewards-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.daily-rewards-modal {
    background-color: #ffffff;
    border-radius: 12px;
    width: 90%;
    max-width: 420px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    transform: scale(0.9);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.daily-rewards-modal-overlay.active .daily-rewards-modal {
    transform: scale(1);
    opacity: 1;
}

.daily-rewards-modal-header {
    padding: 16px 20px;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.daily-rewards-modal-header h2 {
    margin: 0;
    color: #0f172a;
    font-size: 18px;
    font-weight: 600;
}

.daily-rewards-modal-close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s;
}

.daily-rewards-modal-close:hover {
    opacity: 0.7;
}

.daily-rewards-modal-close svg {
    width: 24px;
    height: 24px;
}

.daily-rewards-list-body {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Reward Item (аналогично task-item) */
.reward-item {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 16px;
    transition: all 0.2s ease;
    box-shadow: 0px 1px 2px 0px rgba(0, 0, 0, 0.05);
}

.reward-item:hover {
    transform: translateY(-1px);
    box-shadow: 0px 4px 8px 0px rgba(0, 0, 0, 0.1);
}

.reward-item.claimed {
    opacity: 0.65;
    background-color: #f8fafc;
}

.reward-item.available {
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    border-color: #64748b;
    box-shadow: 0 2px 8px rgba(100, 116, 139, 0.2);
    animation: pulse-glow 2s ease-in-out infinite;
}

/* Специальные стили для особых наград */
.reward-item.available[data-type="special"] {
    background: linear-gradient(135deg, #fae8ff 0%, #f3e8ff 100%);
    border-color: #a855f7;
}

/* Специальные стили для мега наград */
.reward-item.available[data-type="mega"] {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-color: #f59e0b;
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 2px 8px rgba(100, 116, 139, 0.2);
    }
    50% {
        box-shadow: 0 4px 16px rgba(100, 116, 139, 0.4);
    }
}

.reward-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 10px;
}

.reward-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background-color: #f1f5f9;
    border: 1px solid #e2e8f0;
}

.reward-item.available .reward-icon {
    background: linear-gradient(135deg, #64748b 0%, #475569 100%);
    border-color: #64748b;
    animation: icon-glow 2s ease-in-out infinite;
}

@keyframes icon-glow {
    0%, 100% {
        box-shadow: 0 0 8px rgba(100, 116, 139, 0.3);
    }
    50% {
        box-shadow: 0 0 16px rgba(100, 116, 139, 0.6);
    }
}

.reward-item.available .reward-icon svg {
    color: white;
}

.reward-icon svg {
    width: 22px;
    height: 22px;
    color: #64748b;
}

.reward-info {
    flex: 1;
    min-width: 0;
}

.reward-title {
    color: #0f172a;
    margin: 0 0 4px 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
}

.reward-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 600;
    border: 1.5px solid transparent;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.reward-badge svg {
    flex-shrink: 0;
    width: 11px;
    height: 11px;
}

.reward-badge.amount {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border-color: #059669;
    box-shadow: 0 2px 6px rgba(16, 185, 129, 0.25);
    font-weight: 800;
}

.reward-badge.claimed {
    background-color: #e2e8f0;
    color: #64748b;
    border-color: #cbd5e1;
    font-size: 10px;
    padding: 3px 8px;
    opacity: 0.8;
}

.reward-badge.locked {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    color: white;
    border-color: #7c3aed;
    box-shadow: 0 2px 6px rgba(139, 92, 246, 0.25);
    font-weight: 700;
}

.reward-badge.special-label {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: white;
    border-color: #f59e0b;
    box-shadow: 0 2px 8px rgba(251, 191, 36, 0.35);
    animation: special-shine 2s ease-in-out infinite;
    font-weight: 800;
}

@keyframes special-shine {
    0%, 100% {
        box-shadow: 0 2px 8px rgba(251, 191, 36, 0.35);
    }
    50% {
        box-shadow: 0 4px 16px rgba(251, 191, 36, 0.6);
    }
}

.reward-badge.mega-label {
    background: linear-gradient(135deg, #ec4899 0%, #db2777 100%);
    color: white;
    border-color: #db2777;
    box-shadow: 0 2px 8px rgba(236, 72, 153, 0.35);
    animation: mega-shine 2s ease-in-out infinite;
    font-weight: 800;
}

@keyframes mega-shine {
    0%, 100% {
        box-shadow: 0 2px 8px rgba(236, 72, 153, 0.35);
    }
    50% {
        box-shadow: 0 4px 16px rgba(236, 72, 153, 0.6);
    }
}

.reward-description {
    color: #64748b;
    margin: 0;
    line-height: 1.5;
    font-size: 12px;
    font-weight: 600;
}

/* Reward Footer */
.reward-footer {
    display: flex;
    flex-direction: column;
    margin-top: 12px;
    gap: 8px;
}

.reward-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

.reward-action-btn {
    border: none;
    border-radius: 8px;
    padding: 10px 16px;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.reward-action-btn.claim {
    background: linear-gradient(135deg, #64748b 0%, #475569 100%);
    border: 2px solid #475569;
}

.reward-action-btn.claim:hover {
    background: linear-gradient(135deg, #475569 0%, #334155 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(100, 116, 139, 0.3);
}

.reward-action-btn.watch-ad {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border: 2px solid #059669;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.25);
}

.reward-action-btn.watch-ad:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.35);
}

.reward-item.available .reward-action-btn.watch-ad {
    animation: button-pulse 2s ease-in-out infinite;
}

@keyframes button-pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.02);
    }
}

.reward-action-btn.claimed {
    background-color: #f1f5f9;
    color: #64748b;
    cursor: default;
    border: 2px solid #e2e8f0;
}

.reward-action-btn.claimed:hover {
    background-color: #f1f5f9;
    transform: none;
}

.reward-action-btn:disabled {
    background-color: #f1f5f9;
    color: #94a3b8;
    cursor: not-allowed;
    border: 2px solid #e2e8f0;
}

.reward-action-btn:disabled:hover {
    transform: none;
}

.reward-subscription-note {
    font-size: 10px;
    color: #64748b;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    opacity: 0.8;
    margin-top: 4px;
}

.reward-subscription-note svg {
    width: 12px;
    height: 12px;
    fill: #64748b;
}

.reward-amount-display {
    font-size: 11px;
    color: #94a3b8;
    text-align: center;
    font-weight: 500;
}

/* Empty State */
.rewards-empty {
    padding: 60px 20px;
    text-align: center;
    color: #64748b;
}

.rewards-empty-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    opacity: 0.2;
}

.rewards-empty-icon svg {
    width: 100%;
    height: 100%;
}

.rewards-empty-text {
    margin: 0;
    font-size: 14px;
    font-weight: 500;
}

/* Modal Footer */
.daily-rewards-modal-footer {
    padding: 12px 20px;
    border-top: 1px solid #e2e8f0;
    display: flex;
    justify-content: center;
    flex-shrink: 0;
}

.daily-rewards-close-btn {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 8px 24px;
    cursor: pointer;
    color: #64748b;
    transition: all 0.2s ease;
    font-size: 13px;
    font-weight: 600;
}

.daily-rewards-close-btn:hover {
    background-color: #f8fafc;
    border-color: #cbd5e1;
}

/* Custom Scrollbar */
.daily-rewards-list-body::-webkit-scrollbar {
    width: 6px;
}

.daily-rewards-list-body::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 3px;
}

.daily-rewards-list-body::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

.daily-rewards-list-body::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Touch scroll improvements */
.daily-rewards-list-body {
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
}