/* ===== Daily Claim Modal — Gemini Cosmic Neon ===== */
.dc-modal {
    position: fixed;
    inset: 0;
    z-index: 10050;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    pointer-events: none !important;
    opacity: 0;
    visibility: hidden;
    transition: opacity .28s ease, visibility .28s ease;
}
.dc-modal.open {
    pointer-events: auto !important;
    opacity: 1;
    visibility: visible;
}
.dc-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(8, 4, 28, 0.72);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}
.dc-panel {
    position: relative;
    width: 100%;
    max-width: 420px;
    max-height: 90vh;
    background:
        radial-gradient(ellipse 90% 60% at 20% 0%, rgba(168, 85, 247, 0.45) 0%, transparent 55%),
        radial-gradient(ellipse 70% 50% at 90% 20%, rgba(236, 72, 153, 0.3) 0%, transparent 50%),
        radial-gradient(ellipse 60% 40% at 50% 100%, rgba(6, 182, 212, 0.2) 0%, transparent 45%),
        linear-gradient(165deg, #2d0a5e 0%, #1a0a4e 40%, #0f0828 100%);
    border: 1.5px solid rgba(168, 85, 247, 0.4);
    border-radius: 22px 22px 0 0;
    display: flex;
    flex-direction: column;
    transform: translateY(100%);
    transition: transform .32s cubic-bezier(.4, 0, .2, 1);
    overflow: hidden;
    box-shadow: 0 -8px 40px rgba(88, 28, 135, 0.5), 0 0 60px rgba(236, 72, 153, 0.15);
}
.dc-panel::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background-image:
        radial-gradient(2px 2px at 15% 20%, rgba(255,255,255,0.9), transparent),
        radial-gradient(2px 2px at 70% 15%, rgba(253,230,138,0.8), transparent),
        radial-gradient(1.5px 1.5px at 40% 60%, rgba(244,114,182,0.85), transparent),
        radial-gradient(2px 2px at 85% 50%, rgba(165,243,252,0.75), transparent),
        radial-gradient(1px 1px at 25% 80%, rgba(255,255,255,0.6), transparent),
        radial-gradient(2px 2px at 55% 35%, rgba(192,132,252,0.8), transparent);
    animation: dcTwinkle 4s ease-in-out infinite alternate;
    opacity: 0.8;
}
@keyframes dcTwinkle {
    0%   { opacity: 0.45; filter: brightness(0.9); }
    50%  { opacity: 1;    filter: brightness(1.25); }
    100% { opacity: 0.65; filter: brightness(1); }
}
.dc-modal.open .dc-panel {
    transform: translateY(0);
}
@media (min-width: 576px) {
    .dc-modal { align-items: center; }
    .dc-panel {
        border-radius: 20px;
        max-height: 85vh;
        transform: scale(0.94);
        opacity: 0;
    }
    .dc-modal.open .dc-panel {
        transform: scale(1);
        opacity: 1;
    }
}

.dc-header {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 18px;
    border-bottom: 1px solid rgba(168, 85, 247, 0.25);
}
.dc-icon-btn {
    width: 38px;
    height: 38px;
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
    color: #e2e8f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    backdrop-filter: blur(8px);
    box-shadow: 0 0 16px rgba(168, 85, 247, 0.2);
    transition: background 0.2s, box-shadow 0.2s, transform 0.15s;
}
.dc-icon-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 22px rgba(236, 72, 153, 0.35);
    transform: scale(1.06);
}
.dc-title-wrap { flex: 1; text-align: center; }
.dc-title {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 800;
    background: linear-gradient(90deg, #fde68a, #fbbf24, #f472b6, #a78bfa, #22d3ee);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: dcTitleShine 4s linear infinite;
    filter: drop-shadow(0 0 12px rgba(251, 191, 36, 0.45));
}
@keyframes dcTitleShine {
    0%   { background-position: 0% center; }
    100% { background-position: 200% center; }
}
.dc-reset {
    margin: 4px 0 0;
    font-size: 0.78rem;
    color: #c4b5fd;
    font-weight: 600;
}
.dc-reset span { color: #fde68a; }

.dc-body {
    position: relative;
    z-index: 1;
    flex: 1;
    overflow-y: auto;
    padding: 16px;
}
.dc-loading {
    display: flex;
    justify-content: center;
    padding: 40px;
}
.dc-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid rgba(168, 85, 247, 0.25);
    border-top-color: #fbbf24;
    border-radius: 50%;
    animation: dc-spin 0.7s linear infinite;
}
@keyframes dc-spin { to { transform: rotate(360deg); } }

/* Cards */
.dc-card {
    position: relative;
    background: linear-gradient(145deg, rgba(50, 25, 100, 0.55), rgba(25, 12, 55, 0.7));
    border: 1.5px solid rgba(168, 85, 247, 0.45);
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 14px;
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    overflow: hidden;
    animation: dcCardIn 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.dc-list .dc-card:nth-child(1) { animation-delay: 0.05s; border-color: rgba(251, 191, 36, 0.5); box-shadow: 0 0 22px rgba(251, 191, 36, 0.2); }
.dc-list .dc-card:nth-child(2) { animation-delay: 0.1s;  border-color: rgba(249, 115, 22, 0.55); box-shadow: 0 0 22px rgba(249, 115, 22, 0.2); }
.dc-list .dc-card:nth-child(3) { animation-delay: 0.15s; border-color: rgba(34, 211, 238, 0.55); box-shadow: 0 0 22px rgba(34, 211, 238, 0.2); }
.dc-list .dc-card:nth-child(4) { animation-delay: 0.2s;  border-color: rgba(192, 132, 252, 0.55); box-shadow: 0 0 22px rgba(168, 85, 247, 0.25); }
.dc-list .dc-card:nth-child(n+5) { animation-delay: 0.25s; }

@keyframes dcCardIn {
    from { opacity: 0; transform: translateY(14px) scale(0.96); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

.dc-card::before {
    content: '';
    position: absolute;
    top: -40%;
    left: -50%;
    width: 40%;
    height: 180%;
    background: linear-gradient(105deg, transparent, rgba(255,255,255,0.12), transparent);
    transform: rotate(18deg);
    animation: dcCardShine 5s ease-in-out infinite;
    pointer-events: none;
}
@keyframes dcCardShine {
    0%, 40% { left: -50%; opacity: 0; }
    50%     { opacity: 1; }
    60%     { left: 120%; opacity: 0; }
    100%    { left: 120%; opacity: 0; }
}

.dc-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
}
.dc-card-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
}
.dc-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #64748b;
    flex-shrink: 0;
    box-shadow: 0 0 8px rgba(100, 116, 139, 0.5);
}
.dc-dot.done {
    background: #22c55e;
    box-shadow: 0 0 12px rgba(34, 197, 94, 0.7);
    animation: dcDotPulse 1.8s ease-in-out infinite;
}
@keyframes dcDotPulse {
    0%, 100% { box-shadow: 0 0 8px rgba(34, 197, 94, 0.5); }
    50%      { box-shadow: 0 0 16px rgba(34, 197, 94, 0.9); }
}
.dc-card-title {
    font-size: 0.98rem;
    font-weight: 700;
    color: #f8fafc;
    margin: 0;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.15);
}
.dc-card-sub {
    font-size: 0.75rem;
    color: #c4b5fd;
    margin: 2px 0 0;
}
.dc-reward {
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: 800;
    color: #fbbf24;
    font-size: 1rem;
    white-space: nowrap;
    text-shadow: 0 0 12px rgba(251, 191, 36, 0.5);
}
.dc-reward img,
.dc-reward i {
    filter: drop-shadow(0 0 6px rgba(251, 191, 36, 0.6));
}

/* Claim buttons */
.dc-claim-btn {
    padding: 8px 18px;
    border-radius: 12px;
    border: none;
    font-size: 0.85rem;
    font-weight: 800;
    cursor: pointer;
    color: #0f172a;
    flex-shrink: 0;
    transition: transform 0.2s, box-shadow 0.2s, filter 0.2s;
    position: relative;
    z-index: 1;
}
.dc-list .dc-card:nth-child(1) .dc-claim-btn {
    background: linear-gradient(135deg, #fde68a, #fbbf24, #f59e0b);
    box-shadow: 0 0 18px rgba(251, 191, 36, 0.45);
}
.dc-list .dc-card:nth-child(2) .dc-claim-btn {
    background: linear-gradient(135deg, #fdba74, #f97316, #ea580c);
    box-shadow: 0 0 18px rgba(249, 115, 22, 0.45);
    color: #fff;
}
.dc-list .dc-card:nth-child(3) .dc-claim-btn {
    background: linear-gradient(135deg, #67e8f9, #22d3ee, #06b6d4);
    box-shadow: 0 0 18px rgba(34, 211, 238, 0.45);
}
.dc-list .dc-card:nth-child(4) .dc-claim-btn {
    background: linear-gradient(135deg, #e9d5ff, #c084fc, #a855f7);
    box-shadow: 0 0 18px rgba(168, 85, 247, 0.5);
    color: #1e1035;
}
.dc-list .dc-card:nth-child(n+5) .dc-claim-btn {
    background: linear-gradient(135deg, #22d3ee, #3b82f6);
    box-shadow: 0 0 16px rgba(59, 130, 246, 0.4);
    color: #fff;
}
.dc-claim-btn:hover:not(:disabled) {
    transform: scale(1.06);
    filter: brightness(1.1);
}
.dc-claim-btn:disabled {
    background: rgba(55, 65, 81, 0.85) !important;
    color: #9ca3af !important;
    cursor: not-allowed;
    box-shadow: none !important;
    transform: none !important;
}
.dc-claim-btn.claimed {
    background: linear-gradient(135deg, #166534, #22c55e) !important;
    color: #dcfce7 !important;
    box-shadow: 0 0 14px rgba(34, 197, 94, 0.4) !important;
}

/* Progress */
.dc-progress-wrap {
    margin-top: 6px;
    position: relative;
    z-index: 1;
}
.dc-progress-bar {
    height: 8px;
    background: rgba(0, 0, 0, 0.35);
    border-radius: 99px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
}
.dc-progress-fill {
    height: 100%;
    border-radius: 99px;
    transition: width 0.5s ease;
    background: linear-gradient(90deg, #a855f7, #ec4899, #22d3ee);
    background-size: 200% 100%;
    animation: dcProgressFlow 2.5s linear infinite;
    box-shadow: 0 0 10px rgba(168, 85, 247, 0.5);
}
.dc-list .dc-card:nth-child(1) .dc-progress-fill {
    background: linear-gradient(90deg, #f59e0b, #fbbf24, #fde68a);
    background-size: 200% 100%;
    box-shadow: 0 0 10px rgba(251, 191, 36, 0.5);
}
.dc-list .dc-card:nth-child(2) .dc-progress-fill {
    background: linear-gradient(90deg, #ea580c, #f97316, #fdba74);
    background-size: 200% 100%;
    box-shadow: 0 0 10px rgba(249, 115, 22, 0.5);
}
.dc-list .dc-card:nth-child(3) .dc-progress-fill {
    background: linear-gradient(90deg, #06b6d4, #22d3ee, #67e8f9);
    background-size: 200% 100%;
    box-shadow: 0 0 10px rgba(34, 211, 238, 0.5);
}
.dc-list .dc-card:nth-child(4) .dc-progress-fill {
    background: linear-gradient(90deg, #7c3aed, #a855f7, #e9d5ff);
    background-size: 200% 100%;
    box-shadow: 0 0 10px rgba(168, 85, 247, 0.5);
}
@keyframes dcProgressFlow {
    0%   { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}
.dc-progress-text {
    font-size: 0.7rem;
    color: #c4b5fd;
    margin-top: 4px;
    text-align: right;
    font-weight: 600;
}