/* ==================== Bonus Wheel Styles - Premium Design ==================== */

.bonus-container {
    padding-bottom: 100px;
    min-height: calc(100vh - 60px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    background: var(--bg-primary);
}

.wheel-section {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
}

.wheel-title {
    font-size: 28px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 8px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.wheel-subtitle {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 20px;
    text-align: center;
}

/* Prize Legend */
.prizes-legend {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-bottom: 24px;
    max-width: 340px;
}

.prize-tag {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
}

.prize-tag-icon {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

/* Wheel Container */
.wheel-wrapper {
    position: relative;
    width: 320px;
    height: 320px;
    margin: 0 auto 24px;
}

/* Pointer */
.wheel-pointer {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    width: 0;
    height: 0;
    border-left: 16px solid transparent;
    border-right: 16px solid transparent;
    border-top: 32px solid #fff;
    filter: drop-shadow(0 3px 6px rgba(0,0,0,0.4));
}

/* Main Wheel - чёрно-белый стиль */
.wheel {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    position: relative;
    border: 5px solid #fff;
    box-shadow: 0 0 40px rgba(0,0,0,0.6);
    background: conic-gradient(
        from 0deg,
        #1a1a1a 0deg 45deg,
        #2a2a2a 45deg 90deg,
        #1a1a1a 90deg 135deg,
        #2a2a2a 135deg 180deg,
        #1a1a1a 180deg 225deg,
        #2a2a2a 225deg 270deg,
        #1a1a1a 270deg 315deg,
        #2a2a2a 315deg 360deg
    );
    transition: transform 5s cubic-bezier(0.17, 0.67, 0.12, 0.99);
    overflow: visible;
}

/* Wheel Center */
.wheel::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: #000;
    border-radius: 50%;
    z-index: 15;
    border: 4px solid #fff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.4);
}

/* Icons Container */
.wheel-icons {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.wheel-icon {
    position: absolute;
    width: 60px;
    height: 60px;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
    /* Все иконки стартуют из центра */
    top: 50%;
    left: 50%;
}

/* 8 сегментов по 45°, центрируем иконки (сдвиг -22.5° для центрирования) */
.wheel-icon:nth-child(1) { transform: translate(-50%, -50%) rotate(-22.5deg) translateY(-110px) rotate(22.5deg); }
.wheel-icon:nth-child(2) { transform: translate(-50%, -50%) rotate(22.5deg) translateY(-110px) rotate(-22.5deg); }
.wheel-icon:nth-child(3) { transform: translate(-50%, -50%) rotate(67.5deg) translateY(-110px) rotate(-67.5deg); }
.wheel-icon:nth-child(4) { transform: translate(-50%, -50%) rotate(112.5deg) translateY(-110px) rotate(-112.5deg); }
.wheel-icon:nth-child(5) { transform: translate(-50%, -50%) rotate(157.5deg) translateY(-110px) rotate(-157.5deg); }
.wheel-icon:nth-child(6) { transform: translate(-50%, -50%) rotate(202.5deg) translateY(-110px) rotate(-202.5deg); }
.wheel-icon:nth-child(7) { transform: translate(-50%, -50%) rotate(247.5deg) translateY(-110px) rotate(-247.5deg); }
.wheel-icon:nth-child(8) { transform: translate(-50%, -50%) rotate(292.5deg) translateY(-110px) rotate(-292.5deg); }

/* Spin Button */
.spin-btn {
    margin-top: 10px;
    padding: 18px 60px;
    font-size: 16px;
    font-weight: 700;
    font-family: var(--font-family);
    color: #000;
    background: #fff;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.spin-btn:hover {
    transform: scale(1.03);
    box-shadow: 0 4px 20px rgba(255,255,255,0.3);
}

.spin-btn:active {
    transform: scale(0.98);
}

.spin-btn:disabled {
    background: #333;
    color: #666;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Already Used Section */
.already-used-section {
    width: 100%;
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.already-used-icon {
    font-size: 80px;
    margin-bottom: 20px;
}

.already-used-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.already-used-text {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 30px;
    max-width: 280px;
}

.prize-result-card {
    background: rgba(255,255,255,0.05);
    border-radius: 16px;
    padding: 20px 30px;
    border: 1px solid rgba(255,255,255,0.1);
}

.prize-label {
    font-size: 12px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.prize-name {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
}

/* Prize Modal */
.prize-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.9);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}

.prize-modal.active {
    display: flex;
}

.prize-modal-content {
    background: #1a1a1a;
    border-radius: 24px;
    padding: 40px 30px;
    text-align: center;
    max-width: 340px;
    width: 100%;
    animation: modalAppear 0.4s ease;
    border: 1px solid rgba(255,255,255,0.1);
}

@keyframes modalAppear {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.prize-modal-icon {
    font-size: 60px;
    margin-bottom: 15px;
}

.prize-modal-title {
    font-size: 28px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 5px;
}

.prize-modal-subtitle {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.prize-modal-prize {
    background: rgba(255,255,255,0.05);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 15px;
}

.prize-modal-prize img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-bottom: 15px;
}

.prize-modal-prize .prize-name {
    font-size: 16px;
}

.prize-modal-info {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 25px;
}

.prize-modal-btn {
    width: 100%;
    padding: 16px;
    font-size: 16px;
    font-weight: 700;
    font-family: var(--font-family);
    color: #000;
    background: #fff;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.prize-modal-btn:hover {
    background: #e0e0e0;
}

/* Confetti Animation */
.confetti {
    position: fixed;
    width: 10px;
    height: 10px;
    pointer-events: none;
    z-index: 1001;
    animation: confettiFall 3s linear forwards;
}

@keyframes confettiFall {
    0% {
        transform: translateY(-100vh) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(720deg);
        opacity: 0;
    }
}

/* Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-around;
    padding: 5px 0 15px;
    z-index: 100;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--text-secondary);
    padding: 8px 20px;
    transition: all 0.3s ease;
}

.nav-item.active {
    color: var(--text-primary);
}

.nav-icon {
    font-size: 24px;
    margin-bottom: 4px;
}

.nav-icon-img {
    width: 42px;
    height: 42px;
    object-fit: contain;
    margin-bottom: 4px;
}

.nav-icon-bonus {
    width: 44px;
    height: 44px;
}

.profile-btn-img {
    width: 52px;
    height: 52px;
    object-fit: contain;
}

.nav-label {
    font-size: 12px;
    font-weight: 600;
}

/* Header adjustments for bonus page */
.header-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

/* Coming Soon Section */
.coming-soon-section {
    width: 100%;
    padding: 80px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.coming-soon-icon {
    font-size: 80px;
    margin-bottom: 24px;
}

.coming-soon-title {
    font-size: 32px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.coming-soon-text {
    font-size: 16px;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.coming-soon-text strong {
    color: #fff;
    font-weight: 700;
}

.coming-soon-subtext {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.coming-soon-subtext a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
}

.coming-soon-subtext a:hover {
    text-decoration: underline;
}
