/* ==========================================================================
   🎁 EVENTS-WEB BONUS DROP (СЕКРЕТНЫЙ БОНУС / ДРОП-ИКОНКА)
   ========================================================================== */

/* Плавающий контейнер в правом нижнем углу */
.bonus-drop-widget {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 9999;
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    user-select: none;
    cursor: pointer;
    animation: bonusWidgetEnter 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.bonus-drop-widget.dismissing {
    opacity: 0 !important;
    transform: scale(0.7) translateY(20px) !important;
    pointer-events: none;
}

/* Овальная плашка с текстом слева от иконки */
.bonus-drop-pill {
    background: rgba(20, 20, 26, 0.95);
    border: 1.5px solid var(--bd-accent, #ffd700);
    border-radius: 30px;
    padding: 7px 16px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.6), 0 0 10px var(--bd-accent, rgba(212, 175, 55, 0.35));
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
    max-width: 280px;
    text-align: center;
}

.bonus-drop-widget:hover .bonus-drop-pill {
    border-color: #ffffff;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.7), 0 0 16px var(--bd-accent, #ffd700);
    transform: translateY(-2px);
}

.bonus-drop-pill-text {
    font-family: 'CustomFont', sans-serif;
    color: var(--bd-accent, #ffd700);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.3px;
    text-shadow: 0 0 8px var(--bd-accent, rgba(255, 215, 0, 0.4)), 0 1px 2px rgba(0, 0, 0, 0.8);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: inline-flex;
    align-items: center;
    gap: 2px;
}

/* Поддержка Prime-эмодзи внутри плашки */
.bonus-drop-pill .status-emoji {
    width: 18px;
    height: 18px;
    object-fit: contain;
    vertical-align: -3px;
    margin: 0 3px;
    display: inline-block;
    image-rendering: pixelated;
}

/* Обертка для круглого значка и крестика */
.bonus-drop-icon-wrapper {
    position: relative;
    width: 66px;
    height: 66px;
    flex-shrink: 0;
}

/* Круг со свечением выбранного цвета */
.bonus-drop-circle {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2.5px solid var(--bd-accent, #ffd700);
    background: radial-gradient(circle at 40% 40%, rgba(255, 255, 255, 0.08) 0%, #151518 90%);
    box-shadow: 0 0 18px var(--bd-accent, #ffd700), inset 0 0 10px var(--bd-accent, rgba(255, 215, 0, 0.35));
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    animation: bonusGlowPulse 2.8s ease-in-out infinite;
}

.bonus-drop-widget:hover .bonus-drop-circle {
    transform: scale(1.08);
    border-color: #ffffff;
    box-shadow: 0 0 26px var(--bd-accent, #ffd700), inset 0 0 14px rgba(255, 255, 255, 0.5);
}

/* Внутреннее изображение предмета */
.bonus-drop-img {
    max-width: 44px;
    max-height: 44px;
    object-fit: contain;
    filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.6));
    animation: bonusItemFloat 2.8s ease-in-out infinite;
}

/* Красный крестик в правом верхнем углу круга */
.bonus-drop-close-btn {
    position: absolute;
    top: -2px;
    right: -2px;
    left: auto;
    width: 20px;
    height: 20px;
    background: #e74c3c;
    border: 2px solid #232328;
    border-radius: 50%;
    color: #ffffff;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
    transition: all 0.2s ease;
    z-index: 10;
    padding: 0;
    line-height: 1;
}

.bonus-drop-close-btn:hover {
    background: #ff5252;
    transform: scale(1.2);
    border-color: #ffffff;
}

/* ──────────────────────────────────────────────────────────
   Анимации появления и пульсации
   ────────────────────────────────────────────────────────── */
@keyframes bonusWidgetEnter {
    0% {
        opacity: 0;
        transform: scale(0.5) translateY(40px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes bonusGlowPulse {
    0%, 100% {
        box-shadow: 0 0 14px var(--bd-accent, rgba(255, 215, 0, 0.65)), inset 0 0 8px var(--bd-accent, rgba(255, 215, 0, 0.25));
    }
    50% {
        box-shadow: 0 0 26px var(--bd-accent, rgba(255, 215, 0, 0.9)), inset 0 0 12px var(--bd-accent, rgba(255, 215, 0, 0.45));
    }
}

@keyframes bonusItemFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-3px);
    }
}

/* ──────────────────────────────────────────────────────────
   Праздничное модальное окно получения бонуса
   ────────────────────────────────────────────────────────── */
.bonus-claim-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(8, 8, 12, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    animation: bonusFadeIn 0.3s ease forwards;
}

.bonus-claim-modal-content {
    background: linear-gradient(145deg, #18181f 0%, #121216 100%);
    border: 1.5px solid #d4af37;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.8), 0 0 30px rgba(212, 175, 55, 0.35);
    border-radius: 18px;
    width: 100%;
    max-width: 460px;
    padding: 30px 24px 24px;
    text-align: center;
    position: relative;
    overflow: hidden;
    animation: bonusModalPop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.bonus-claim-ribbon {
    position: absolute;
    top: 14px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(90deg, #d4af37, #f1c40f, #d4af37);
    color: #1a1a1f;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1px;
    padding: 4px 14px;
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.bonus-claim-icon-glow {
    margin: 18px auto 14px;
    display: flex;
    justify-content: center;
}

.bonus-claim-modal-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid var(--bd-accent, #ffd700);
    background: radial-gradient(circle at 40% 40%, rgba(255, 255, 255, 0.08) 0%, #17171c 85%);
    box-shadow: 0 0 25px var(--bd-accent, rgba(255, 215, 0, 0.8)), inset 0 0 15px var(--bd-accent, rgba(255, 215, 0, 0.3));
    display: flex;
    align-items: center;
    justify-content: center;
}

.bonus-claim-modal-img {
    max-width: 52px;
    max-height: 52px;
    object-fit: contain;
    filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.7));
}

.bonus-claim-title {
    font-family: 'CustomFont', sans-serif;
    color: #ffffff;
    font-size: 22px;
    margin: 8px 0 4px;
    font-weight: 700;
}

.bonus-claim-desc {
    color: #a0a0a8;
    font-size: 14px;
    margin: 0 0 8px;
}

.bonus-claim-item-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--bd-accent, rgba(255, 215, 0, 0.4));
    color: var(--bd-accent, #ffd700);
    font-size: 15px;
    font-weight: 700;
    padding: 5px 16px;
    border-radius: 20px;
    margin-bottom: 20px;
    font-family: 'CustomFont', sans-serif;
}

.bonus-claim-code-container {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 14px;
    margin-bottom: 16px;
}

.bonus-claim-code-label {
    display: block;
    color: #888894;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 8px;
}

.bonus-claim-code-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.05);
    border: 1px dashed rgba(255, 215, 0, 0.6);
    border-radius: 8px;
    padding: 10px 14px;
    gap: 10px;
}

.bonus-claim-code-box code {
    font-family: 'Courier New', monospace;
    color: #2ecc71;
    font-size: 17px;
    font-weight: 700;
    letter-spacing: 1px;
    word-break: break-all;
    text-shadow: 0 0 10px rgba(46, 204, 113, 0.4);
}

.bonus-copy-btn {
    background: #ffd700;
    color: #121216;
    border: none;
    border-radius: 6px;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
    flex-shrink: 0;
    font-family: 'CustomFont', sans-serif;
}

.bonus-copy-btn:hover {
    background: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.4);
}

.bonus-copy-btn.copied {
    background: #2ecc71;
    color: #ffffff;
}

.bonus-claim-hint {
    color: #888894;
    font-size: 12px;
    margin: 0 0 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.bonus-claim-hint i {
    color: #ffd700;
}

.bonus-claim-confirm-btn {
    width: 100%;
    background: linear-gradient(135deg, #d4af37 0%, #aa8422 100%);
    color: #ffffff;
    border: none;
    border-radius: 10px;
    padding: 12px 20px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
    font-family: 'CustomFont', sans-serif;
}

.bonus-claim-confirm-btn:hover {
    background: linear-gradient(135deg, #ffd700 0%, #c59b27 100%);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.5);
    transform: translateY(-2px);
}

@keyframes bonusFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes bonusModalPop {
    0% {
        opacity: 0;
        transform: scale(0.85) translateY(20px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Канвас для конфетти */
.bonus-confetti-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 100000;
}

/* Адаптивность для мобильных экранов */
@media (max-width: 600px) {
    .bonus-drop-widget {
        bottom: 18px;
        right: 18px;
        gap: 8px;
    }
    .bonus-drop-pill {
        padding: 6px 12px 6px 10px;
    }
    .bonus-drop-pill-text {
        font-size: 12px;
    }
    .bonus-drop-icon-wrapper {
        width: 56px;
        height: 56px;
    }
    .bonus-drop-img {
        max-width: 36px;
        max-height: 36px;
    }
    .bonus-claim-modal-content {
        padding: 24px 18px 18px;
    }
}
