:root {
    --primary-red: #ef4056;
    --gradient-red: #da283e;
    --light-gray: #f5f5f5;
    --text-color: #424750;
    --bg-color: #fafafa;
}

.sb-wheel-main-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    font-family: 'Vazir', Tahoma, sans-serif;
    background-color: var(--bg-color);
    position: relative;
    overflow: hidden;
    min-height: 500px;
}

.sb-wheel-main-container .bg-pattern {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(#ef4056 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: 0.05;
    z-index: 0;
}

.sb-wheel-main-container .header-title {
    color: var(--text-color);
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 60px;
    z-index: 1;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.sb-wheel-main-container .wheel-wrapper {
    position: relative;
    z-index: 1;
}

.sb-wheel-main-container .center-smile svg {
    width: 29px;
    height: 29px;
}

.sb-wheel-main-container .pointer {
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 55px;
    background: linear-gradient(135deg, #ff5a6e, var(--primary-red));
    clip-path: path('M20 0C9 0 0 9 0 20c0 15 20 35 20 35s20-20 20-35c0-11-9-20-20-20zm0 28c-4.4 0-8-3.6-8-8s3.6-8 8-8 8 3.6 8 8-3.6 8-8 8z');
    z-index: 20;
    filter: drop-shadow(0 8px 6px rgba(239, 64, 86, 0.5));
    transform-origin: top center;
}

.sb-wheel-main-container .pointer.bouncing {
    animation: pointerBounce 0.15s infinite alternate;
}

@keyframes pointerBounce {
    0% { transform: translateX(-50%) rotate(0deg); }
    100% { transform: translateX(-50%) rotate(5deg) scaleY(0.95); }
}

.sb-wheel-main-container .wheel-container {
    width: 420px;
    height: 420px;
    border-radius: 50%;
    padding: 10px;
    background: #ffffff;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.1), inset 0 4px 10px rgba(0, 0, 0, 0.05);
    position: relative;
}

.sb-wheel-main-container .wheel {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid #eee;
    position: relative;
    overflow: hidden;
    transition: transform 6s cubic-bezier(0.1, 0.9, 0.2, 1);
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.05);
}

.sb-wheel-main-container .divider {
    position: absolute;
    top: 0;
    left: 50%;
    width: 2px;
    height: 50%;
    background-color: #e0e0e0;
    transform-origin: bottom;
    transform: rotate(calc(var(--i) * var(--slice-angle) + (var(--slice-angle) / 2)));
    z-index: 2;
}

.sb-wheel-main-container .segment {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 120px;
    height: 100%;
    transform-origin: center;
    transform: translate(-50%, -50%) rotate(calc(var(--i) * var(--slice-angle)));
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 25px;
    z-index: 3;
}

.sb-wheel-main-container .segment span {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-color);
    margin-top: 10px;
}

.sb-wheel-main-container .segment.grand-plus span {
    color: #ffffff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.sb-wheel-main-container .icon-emoji {
    font-size: 30px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.sb-wheel-main-container .center-smile {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90px;
    height: 90px;
    background: #ffffff;
    border-radius: 50%;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15), inset 0 2px 5px rgba(255, 255, 255, 0.8);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid #f9f9f9;
}

.sb-wheel-main-container .spin-btn {
    margin-top: 50px;
    padding: 18px 60px;
    font-family: inherit;
    font-size: 20px;
    font-weight: 800;
    color: white;
    background: linear-gradient(135deg, #ff5a6e, var(--primary-red));
    border: none;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 12px 30px rgba(239, 64, 86, 0.4);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 1;
}

.sb-wheel-main-container .spin-btn:hover:not(:disabled) {
    transform: scale(1.08) translateY(-3px);
    box-shadow: 0 20px 40px rgba(239, 64, 86, 0.6);
}

.sb-wheel-main-container .spin-btn:disabled {
    background: #d5d5d5;
    box-shadow: none;
    color: #888;
    cursor: not-allowed;
    transform: scale(1);
}

.sb-wheel-main-container .toast {
    position: absolute;
    bottom: 30px;
    right: -400px;
    width: 320px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 100;
    transition: right 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 2px solid var(--primary-red);
}

.sb-wheel-main-container .toast.show {
    right: 30px;
}

.sb-wheel-main-container .toast-header {
    background: #fff;
    padding: 15px 15px 5px;
    font-weight: 800;
    color: var(--primary-red);
    font-size: 18px;
    text-align: center;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sb-wheel-main-container .toast-body {
    padding: 10px 15px 20px;
    text-align: center;
    font-size: 16px;
    color: var(--text-color);
    font-weight: 600;
}

.sb-wheel-main-container .toast-progress {
    height: 5px;
    background: linear-gradient(to right, #ff5a6e, var(--primary-red));
    width: 100%;
}

.sb-wheel-main-container .toast.show .toast-progress {
    animation: progressTimer 5s linear forwards;
}

@keyframes progressTimer {
    0% { width: 100%; }
    100% { width: 0%; }
}

.confetti {
    position: fixed;
    width: 10px;
    height: 10px;
    background: #f00;

    z-index: 999999;
    animation: fall 3s linear infinite;
    opacity: 0;
}

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

.sb-wheel-main-container .segment.grand-plus span ,
.sb-wheel-main-container .segment.grand-plus .icon-emoji
{
    color: #ffffff !important;
    font-weight: 800 !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}