.roulette-page {
    min-height: 100vh;
    background: linear-gradient(135deg, #0f0f1e 0%, #1a1a2e 100%);
    padding-top: 80px;
}

.roulette-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Шапка профиля */
.profile-header {
    background: linear-gradient(135deg, #6c5ce7 0%, #a29bfe 100%);
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 10px 40px rgba(108, 92, 231, 0.3);
}

.profile-info {
    display: flex;
    align-items: center;
    gap: 25px;
}

.profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: 800;
    color: #fff;
    border: 4px solid rgba(255, 255, 255, 0.3);
    overflow: hidden;
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.profile-details h1 {
    font-size: 36px;
    font-weight: 800;
    color: #fff;
    margin: 0 0 8px 0;
}

.profile-meta {
    display: flex;
    gap: 20px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 16px;
}

.profile-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.user-balance-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 20px 30px;
    text-align: center;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.balance-label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 8px;
    font-weight: 600;
}

.balance-amount {
    font-size: 32px;
    font-weight: 800;
    color: #fff;
}

.roulette-header {
    text-align: center;
    margin-bottom: 50px;
}

.roulette-header h1 {
    font-size: 48px;
    font-weight: 900;
    color: #fff;
    margin-bottom: 10px;
}

.roulette-header p {
    font-size: 18px;
    color: #b8b8d1;
}

.roulette-wrapper {
    position: relative;
    margin-bottom: 60px;
}

.roulette-track-container {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
}

.roulette-track-container::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 100px;
    z-index: 10;
    pointer-events: none;
    background: linear-gradient(to right, rgba(15, 15, 30, 1), transparent);
}

.roulette-track-container::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0;
    width: 100px;
    z-index: 10;
    pointer-events: none;
    background: linear-gradient(to left, rgba(15, 15, 30, 1), transparent);
}

.roulette-arrow {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 100%;
    background: linear-gradient(180deg, #6c5ce7 0%, #5b4bc4 100%);
    z-index: 100;
    box-shadow: 0 0 10px rgba(108, 92, 231, 0.5);
}

.roulette-track {
    display: flex;
    gap: 10px;
    padding: 20px;
    transition: transform 4s cubic-bezier(0.17, 0.67, 0.12, 0.99);
}

.roulette-item {
    min-width: 150px;
    height: 160px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 15px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s;
}

.roulette-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #6c5ce7, #a29bfe);
}

.roulette-item-image {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-bottom: 10px;
}

.roulette-item-name {
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    text-align: center;
    margin-bottom: 5px;
}

.roulette-item-count {
    font-size: 12px;
    color: #a29bfe;
    font-weight: 600;
}

.roulette-wrapper {
    position: relative;
    margin-bottom: 60px;
    text-align: center;
}

.spin-button-wrapper {
    position: relative;
    display: inline-block;
    margin: 30px auto 0;
}

.spin-badge {
    position: absolute;
    top: -12px;
    right: -12px;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 1px;
    transition: all 0.3s;
    animation: badgePulse 2s ease-in-out infinite;
    z-index: 10;
    pointer-events: none;
}

.spin-badge-free {
    color: #00b894;
}

.spin-badge-paid {
    color: #fdcb6e;
}

.spin-button {
    display: block;
    padding: 18px 50px;
    background: linear-gradient(135deg, #6c5ce7, #a29bfe);
    border: none;
    border-radius: 12px;
    color: #fff;
    font-size: 20px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(108, 92, 231, 0.3);
    letter-spacing: 2px;
}

.spin-button:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(108, 92, 231, 0.4);
}

.spin-button-wrapper:hover .spin-badge {
    transform: scale(1.2) rotate(5deg);
    animation: none;
}

.spin-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

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

.prizes-section {
    margin-top: 60px;
}

.prizes-section h2 {
    font-size: 32px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 10px;
    text-align: center;
}

.prizes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 180px));
    gap: 20px;
    margin-top: 30px;
    justify-content: center;
}

/* Dashboard card стиль как в профиле */
.dashboard-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 25px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
    height: 240px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.dashboard-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    border-color: rgba(108, 92, 231, 0.5);
}

.dashboard-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #6c5ce7, #a29bfe);
}

.prize-card {
    text-align: center;
}

.prize-image {
    width: 70px;
    height: 70px;
    object-fit: contain;
    margin: 0 auto 12px;
    border-radius: 10px;
}

.prize-type {
    font-size: 11px;
    color: #b8b8d1;
    margin-bottom: 8px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.prize-name {
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.prize-count {
    font-size: 16px;
    color: #a29bfe;
    font-weight: 700;
}

.prize-chance {
    font-size: 14px;
    color: #00b894;
    font-weight: 700;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.possible-prize {
    position: relative;
}

.possible-prize::before {
    background: linear-gradient(90deg, #00b894, #00cec9);
}

/* Модальное окно выигрыша */
.win-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

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

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

.win-modal-content {
    background: linear-gradient(135deg, #1a1a2e 0%, #0f0f1e 100%);
    border-radius: 20px;
    padding: 50px 60px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    border: 2px solid rgba(108, 92, 231, 0.3);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
    animation: modalSlideUp 0.4s ease;
    position: relative;
}

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

.win-modal-title {
    font-size: 36px;
    font-weight: 900;
    color: #fff;
    margin-bottom: 40px;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.win-prize-display {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(108, 92, 231, 0.2);
    border-radius: 15px;
    padding: 40px 30px;
    margin-bottom: 40px;
}

.win-prize-image {
    width: 120px;
    height: 120px;
    object-fit: contain;
    margin: 0 auto 20px;
}

.win-prize-name {
    font-size: 24px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.win-prize-count {
    font-size: 20px;
    color: #a29bfe;
    font-weight: 700;
}

.win-close-btn {
    padding: 14px 50px;
    background: linear-gradient(135deg, #6c5ce7, #a29bfe);
    border: none;
    border-radius: 12px;
    color: #fff;
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(108, 92, 231, 0.3);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.win-close-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(108, 92, 231, 0.5);
}

/* Адаптив */
@media (max-width: 768px) {
    .roulette-header h1 {
        font-size: 32px;
    }
    
    .profile-header {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .profile-info {
        flex-direction: column;
    }
    
    .roulette-track-container {
        height: 150px;
    }
    
    .roulette-item {
        min-width: 120px;
        height: 130px;
    }
    
    .prizes-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
    
    .balance-amount {
        font-size: 24px;
    }
}
