/* ==========================================================================
   1. POZIȚIONARE CUFĂR (STÂNGA JOS)
   ========================================================================== */
#ac-chest-wrapper {
    position: fixed !important;
    bottom: 30px !important;
    left: 30px !important;
    right: auto !important;
    z-index: 9999999 !important;
    width: 120px !important;
    height: auto !important;
    pointer-events: auto !important;
    display: none;
    /* Afișat de JS după 5 secunde */
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
}

#ac-chest-container {
    position: relative;
    cursor: pointer !important;
    transition: transform 0.3s ease;
}

#ac-chest-img {
    width: 120px !important;
    height: auto !important;
    filter: drop-shadow(5px 10px 20px rgba(0, 0, 0, 0.6));
    display: block !important;
    transition: all 0.3s ease;
}

/* --- Starea LOCK (Cufăr Gri & Mai mic) --- */
.ac-chest-locked #ac-chest-img {
    width: 80px !important;
    /* Micșorăm cufărul la 80px */
    opacity: 0.7;
    filter: grayscale(100%) drop-shadow(0px 5px 10px rgba(0, 0, 0, 0.5)) !important;
}

/* ==========================================================================
   2. STIL TIMER (DOAR CIFRE)
   ========================================================================== */
#ac-chest-timer {
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.85) !important;
    color: #d4af37 !important;
    padding: 2px 10px !important;
    border-radius: 12px !important;
    font-family: 'Courier New', monospace !important;
    font-size: 13px !important;
    font-weight: bold !important;
    border: 1px solid #d4af37 !important;
    white-space: nowrap !important;
    z-index: 100;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

/* ==========================================================================
   3. MODAL PREMIU (OVERLAY & CARD)
   ========================================================================== */
#ac-reward-modal {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(0, 0, 0, 0.95) !important;
    display: none;
    /* Flex via JS */
    justify-content: center;
    align-items: center;
    z-index: 2147483647 !important;
    /* Maxim posibil */
    pointer-events: auto !important;
}

.ac-modal-content {
    background: #111 !important;
    border: 2px solid #d4af37 !important;
    padding: 40px 30px !important;
    border-radius: 20px !important;
    text-align: center !important;
    position: relative !important;
    max-width: 400px;
    width: 85%;
    box-shadow: 0 0 50px rgba(212, 175, 55, 0.4) !important;
    color: #fff !important;
    z-index: 2147483647 !important;
}

/* Reparare: Lumina din spate să nu blocheze click-ul */
.ac-light-effect {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.15) 0%, transparent 60%);
    z-index: 0;
    pointer-events: none !important;
}

#ac-reward-title {
    color: #d4af37 !important;
    font-size: 26px !important;
    font-weight: bold !important;
    margin-bottom: 15px !important;
}

/* ==========================================================================
   4. ZONA CUPON (COPIERE)
   ========================================================================== */
#ac-coupon-box {
    background: #000 !important;
    color: #fff !important;
    padding: 15px !important;
    font-size: 24px !important;
    font-weight: bold !important;
    border: 2px dashed #d4af37 !important;
    margin: 20px 0 !important;
    cursor: copy !important;
    position: relative !important;
    z-index: 2147483647 !important;
    pointer-events: auto !important;
    transition: all 0.2s ease;
}

#ac-coupon-box:hover {
    background: #1a1a1a !important;
    transform: scale(1.03);
}

#ac-copy-status {
    color: #888;
    font-size: 12px;
    display: block;
    margin-top: 5px;
}

#ac-close-modal {
    background: #d4af37 !important;
    color: #000 !important;
    border: none !important;
    padding: 12px 35px !important;
    border-radius: 5px !important;
    cursor: pointer !important;
    font-weight: bold !important;
    text-transform: uppercase !important;
    margin-top: 20px !important;
}

/* ==========================================================================
   5. ANIMAȚII
   ========================================================================== */
.ac-pulse {
    animation: ac-pulse-anim 2s infinite;
}

@keyframes ac-pulse-anim {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.08);
    }
}

.ac-shake {
    animation: ac-shake-anim 0.6s both;
}

@keyframes ac-shake-anim {

    10%,
    90% {
        transform: translate3d(-1px, 0, 0);
    }

    20%,
    80% {
        transform: translate3d(2px, 0, 0);
    }

    30%,
    50%,
    70% {
        transform: translate3d(-4px, 0, 0);
    }

    40%,
    60% {
        transform: translate3d(4px, 0, 0);
    }
}