   :root {
        --neon-purple: #6a3dff;
        --neon-purple-glow: 0 0 8px rgba(106, 61, 255, 0.6);
        --neon-gold: #ffcc00;
        --neon-gold-glow: 0 0 8px rgba(255, 204, 0, 0.6);
        --bg-gradient: radial-gradient(ellipse at center, #0a0a14 0%, #05020a 80%);
    }
    
    .daily-modal-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.8);
        backdrop-filter: blur(5px);
        z-index: 50;
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 20px;
        overflow-y: auto;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s ease;
    }
    
    .daily-modal-overlay.active {
        opacity: 1;
        pointer-events: auto;
    }
    
.daily-modal-container {
  background: rgb(12 10 20 / 90%);
  border: 1px solid rgba(106, 61, 255, 0.4);
  border-radius: 16px;
  padding: 24px;
  width: 90%;
  max-width: 700px;
  box-shadow:
    0 0 40px rgba(106, 61, 255, 0.2),
    inset 0 0 10px rgba(106, 61, 255, 0.15);
  backdrop-filter: blur(6px);
  max-height: 90vh;
  overflow-y: auto;
  transform: scale(0.95);
  transition: transform 0.3s ease;
}

    
    .daily-modal-overlay.active .daily-modal-container {
        transform: scale(1);
    }
    
    .daily-modal-header {
        display: flex;
        flex-direction: column;
        align-items: center;
        margin-bottom: 20px;
    }
    
    .daily-modal-logo {
        width: 120px;
        height: 80px;
        object-fit: contain;
        margin-bottom: 15px;
    }
    
    .daily-cards-container {
        background: rgb(18 18 18 / 50%);
        border-radius: 12px;
        padding: 20px;
        display: flex;
        justify-content: space-between;
        gap: 10px;
        flex-wrap: wrap;
    }
    
    .daily-reward-card {
        position: relative;
        width: 120px;
        aspect-ratio: 2/3;
        perspective: 1000px;
        cursor: pointer;
        flex-shrink: 0;
        transition: transform 0.2s ease;
    }
    
    .daily-reward-card:hover {
        transform: scale(1.05);
    }
    
    .daily-card-inner {
        position: relative;
        width: 100%;
        height: 100%;
        transition: transform 0.6s;
        transform-style: preserve-3d;
    }
    
    .daily-reward-card.flipped .daily-card-inner {
        transform: rotateY(180deg);
    }
    
    .daily-card-front, .daily-card-back {
        position: absolute;
        width: 100%;
        height: 100%;
        backface-visibility: hidden;
        border-radius: 10px;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    
.daily-card-front {
  background: linear-gradient(135deg, #2a2a40, #1a1a30);
  border: 1px solid rgba(106, 61, 255, 0.3);
  background-image: url('/main/img/daily/cardfinal.png');
  background-size: cover;
  background-position: center;
  box-shadow:
    0 0 12px rgba(106, 61, 255, 0.25),
    0 0 2px rgba(255, 255, 255, 0.1);
  animation: pulseGlow 3s infinite ease-in-out;
}

@keyframes pulseGlow {
  0%, 100% {
    box-shadow:
      0 0 12px rgba(106, 61, 255, 0.25),
      0 0 2px rgba(255, 255, 255, 0.1);
  }
  50% {
    box-shadow:
      0 0 20px rgba(106, 61, 255, 0.4),
      0 0 4px rgba(255, 255, 255, 0.2);
  }
}

    .daily-card-back {
        background: linear-gradient(135deg, #24194f, #4007c9);
        border: 1px solid rgba(106, 61, 255, 0.5);
        transform: rotateY(180deg);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        box-shadow: var(--neon-purple-glow);
    }
    
    .daily-card-back.special {
        border: 1px solid rgba(255, 204, 0, 0.5);
        box-shadow: var(--neon-gold-glow);
        background: linear-gradient(135deg, #4b3b10, #7c5c14, #b38728, #4b3b10);
    }
    
    .daily-card-back.gray {
        background: linear-gradient(135deg, #2a2a35, #1a1a25);
        border: 1px solid rgba(150, 150, 150, 0.5);
        box-shadow: 0 0 15px rgba(150, 150, 150, 0.2);
    }
    
.daily-reward-value {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 0 4px rgba(255, 255, 255, 0.3);
}

.daily-reward-icon {
  font-size: 20px;
  margin-left: 6px;
  color: var(--neon-gold);
  text-shadow: 0 0 6px rgba(255, 204, 0, 0.4);
}

    .daily-special-note {
        font-size: 10px;
        color: rgba(255, 255, 255, 0.6);
        text-align: center;
        max-width: 90%;
        margin-top: 8px;
    }
    
    .daily-next-reward {
        text-align: center;
        margin-top: 20px;
        font-size: 14px;
        color: rgba(255, 255, 255, 0.8);
    }
    
    .daily-next-reward-time {
        font-weight: bold;
        color: var(--neon-purple);
    }
    
    .daily-question-mark {
        font-size: 36px;
        font-weight: bold;
        color: rgba(255, 255, 255, 0.3);
    }
    
@media (max-width: 640px) {
    .daily-modal-container {
        padding: 16px;
    }

    .daily-cards-container {
        flex-direction: column;
        align-items: center;
        padding: 15px;
    }

    .daily-reward-card {
        width: 100px;
        margin-bottom: 10px;
    }

    .daily-reward-value {
        font-size: 18px;
    }

    .daily-special-note {
        font-size: 8px;
    }
}

@media (min-width: 641px) and (max-width: 768px) {
    .daily-cards-container {
        flex-wrap: wrap;
        justify-content: center;
    }

    .daily-reward-card {
        margin: 0 10px 10px;
    }
}

@media (max-height: 1000px) {
    .daily-modal-container {
        margin-top: 70px;
        max-height: 70vh;
        overflow-y: auto;
    }

}
.daily-modal-close {
    position: absolute;
    top: 5px;
    right: 22px;
    font-size: 28px;
    color: #fff;
    cursor: pointer;
    z-index: 10;
    transition: color 0.3s, transform 0.2s;
}

.daily-modal-close:hover {
    color: var(--neon-purple);
}