.lw-wrap {
    position: relative;
    width: 500px;
    height: 500px;
    margin: 0 auto;
}

#lw-wheel {
    display: block;
    margin: 0 auto;
}

.lw-needle {
    position: absolute;
    top: -15px;
    left: 50%;
    width: 80px;
    height: 90px;
    transform: translateX(-50%) rotate(180deg);
    /* transform-origin: 50% 100%; */
    z-index: 30;
    pointer-events: none;
}

.lw-needle svg {
    width: 100%;
    height: 100%;
    display: block;
    filter: drop-shadow(0 5px 7px rgba(0, 0, 0, 0.45));
}

#lw-spin {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: #ff4757;
    color: #fff;
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    line-height: 120px;
    cursor: pointer;
    z-index: 10;
    border: 4px solid transparent;
    background-clip: padding-box;
    overflow: hidden;
    outline: none; /* حذف outline */
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* هاور smooth */
}

#lw-spin::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    border-radius: 50%;
    padding: 4px;
    background: conic-gradient(red, orange, yellow, green, blue, violet, red);
    animation: rotate-border 2s linear infinite;
    z-index: -1;
}

#lw-spin::after {
    content: '';
    position: absolute;
    top: 4px;
    left: 4px;
    width: calc(100% - 8px);
    height: calc(100% - 8px);
    background: #ff4757;
    border-radius: 50%;
    z-index: -1;
}

@keyframes rotate-border {
    0%   { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

#lw-spin:hover {
    transform: translate(-50%, -50%) scale(1.1);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.7);
}
#lw-get-code {
    position: relative;
    display: inline-block;
    padding: 12px 30px;
    font-size: 16px;
    font-weight: bold;
    color: #fff;
    background: linear-gradient(45deg, #ff6a00, #ff4747);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    overflow: hidden;
    z-index: 1;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    outline: none;
}

/* افکت جرقه و glow روی دکمه */
#lw-get-code::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 70%);
    transform: rotate(45deg) scale(0);
    transition: transform 0.5s ease;
    border-radius: 50%;
    z-index: 0;
}

#lw-get-code:hover::before {
    transform: rotate(45deg) scale(1);
}

