/* Модальное окно выигрыша подарка */
.gift-win-modal {
    z-index: 10001;
    animation: fadeIn 0.3s ease;
}

.gift-win-content {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border: 2px solid #22c55e;
    border-radius: 20px;
    padding: 0;
    max-width: 450px;
    width: 95%;
    margin: 20px;
    box-shadow: 0 0 50px rgba(34, 197, 94, 0.5);
    display: flex;
    flex-direction: column;
    animation: giftModalSlideUp 0.4s ease;
}

@keyframes giftModalSlideUp {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.gift-win-header {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    padding: 22px 20px 45px;
    text-align: center;
    position: relative;
    overflow: hidden;
    border-radius: 18px 18px 0 0;
}

.gift-win-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.3) 50%, transparent 70%);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.gift-win-title {
    font-size: 28px;
    font-weight: bold;
    color: #ffffff;
    margin-bottom: 5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 1;
}

.gift-win-subtitle {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    position: relative;
    z-index: 1;
}

.gift-section {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    flex-grow: 1;
}

.gift-win-image-container {
    width: 150px;
    height: 150px;
    background: rgba(34, 197, 94, 0.15);
    border: 3px solid #22c55e;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.4);
    animation: giftFloat 3s ease-in-out infinite;
}

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

.gift-win-image {
    width: 140px;
    height: 140px;
    object-fit: contain;
    filter: drop-shadow(0 5px 10px rgba(0, 0, 0, 0.3));
    animation: giftPulse 2s ease-in-out infinite;
}

@keyframes giftPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.gift-win-name {
    font-size: 22px;
    font-weight: bold;
    color: #ffffff;
    text-align: center;
    text-shadow: 0 2px 8px rgba(255, 255, 255, 0.3);
    padding: 0;
    margin: 0;
}

.gift-win-details {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    padding: 0;
}

.gift-win-detail {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.detail-label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
}

.detail-value {
    font-size: 16px;
    font-weight: bold;
    color: #22c55e;
    display: flex;
    align-items: center;
    gap: 5px;
}

.detail-value svg {
    width: 16px;
    height: 16px;
}

.gift-win-footer {
    width: 100%;
    height: 58px;
    padding: 0;
    margin: 0;
    flex-shrink: 0;
}

.gift-win-close-btn {
    width: calc(100% + 4px);
    height: 58px;
    padding: 0;
    margin: 0 -2px -2px -2px;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    border: none;
    border-radius: 0 0 18px 18px;
    font-size: 28px;
    font-weight: bold;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: none;
    letter-spacing: 0px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gift-win-close-btn:hover {
    background: linear-gradient(135deg, #16a34a, #22c55e);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(34, 197, 94, 0.5);
}

.gift-win-close-btn:active {
    transform: translateY(0);
}

/* Адаптивность */
@media (max-width: 480px) {
    .gift-win-content {
        max-width: 95%;
    }
    
    .gift-win-title {
        font-size: 24px;
    }
    
    .gift-win-image-container {
        width: 120px;
        height: 120px;
    }
    
    .gift-win-image {
        width: 90px;
        height: 90px;
    }
    
    .gift-win-name {
        font-size: 18px;
    }
}
