/* ===== FILE GIAO DIỆN PHÙ HỢP CƠ CHẾ NÚT BẤM AUTO XOAY ===== */

#lw-floating-trigger-wrapper {
    position: relative;
    font-family: 'Inter', 'Segoe UI', sans-serif;
}

/* Nút kích hoạt dạng tròn tự xoay tròn */
.lw-floating-wheel-btn {
    position: fixed;
    bottom: 120px;
    right: 25px;
    width: 85px;
    height: 85px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #ffdf00, #d4a017);
    box-shadow: 0 10px 30px rgba(0,0,0,0.4), 0 0 0 4px rgba(255,215,0,0.2);
    border: 3px solid #fff;
    cursor: pointer;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
form#lwCheckinForm {
    display: flex;
   
    flex-wrap: wrap;
    gap: 2%;
}
.lw-form-group {
    width: 49%;
}
.lw-floating-wheel-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 15px 40px rgba(241,196,15,0.6), 0 0 0 6px rgba(255,215,0,0.3);
}

/* Animation tự động quay tròn vô tận như bạn mong muốn */
.lw-mini-wheel-rotator {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: lwAlwaysRotate 12s linear infinite; /* Tự động xoay đều liên tục */
}

@keyframes lwAlwaysRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.lw-floating-wheel-btn img.lw-custom-center-icon {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
}

.lw-floating-wheel-btn .lw-default-icon {
    font-size: 34px;
}

/* ===== LAYOUT CORE CHO VÒNG QUAY BÊN TRONG POPUP ===== */
.lw-wheel-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px 0;
    
    background-size: contain;
    background-position: 50% 50%;
  
    width: 400px;
    height: 400px;
    background-repeat: no-repeat;
    position: relative;
   
}

.lw-wheel-wrapper {
    position: relative;
    
    width: 340px;
    height: 340px;
 
}

.lw-wheel {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
   /* box-shadow: 0 0 0 8px rgba(255,215,0,0.15), 0 15px 45px rgba(0,0,0,0.6);
    border: 4px solid #f1c40f;*/
    background: #111;
}

.lw-segment {
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 50%;
    transform-origin: 0% 100%;
    overflow: hidden;
}

.lw-segment-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 45%;
    height: 65%;
    transform-origin: 50% 50%;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 30px;
}

.lw-segment-text {
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0,0,0,0.9);
    white-space: nowrap;
    transform: rotate(90deg);
}

.lw-pointer {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    filter: drop-shadow(0 4px 10px rgba(241,196,15,0.5));
}

.lw-center-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #ffffff, #d4a017);
    border: 2px solid #fff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
    z-index: 15;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 14px;
    font-weight: 800;
    color: #111;
}

/* ===== POPUP OVERLAY SYSTEM ===== */
.lw-popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(11, 14, 26, 0.85);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999999;
    padding: 20px;
}
span#lwSubmitText {
    white-space: normal;
}
.lw-popup-box {
    /*background: linear-gradient(145deg, #1a1f2f, #0f1320);*/
    background: #fff;
    border-radius: 28px;
    padding: 35px 30px;
   
    width: 40%;
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 30px 70px rgba(0,0,0,0.7);
   position: absolute;
    top: 50%;
    transform: translateY(-50%);
    max-height: 92vh;
    overflow-y: hidden;
    overflow-x: hidden;
}

.lw-close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255,255,255,0.05);
    border: none;
    color: rgba(255,255,255,0.5);
    font-size: 22px;
    cursor: pointer;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lw-popup-box h2 {  font-size: 22px; font-weight: 700; margin-top:0; margin-bottom: 15px; text-align: center;}
.lw-popup-box .lw-header h1 { font-size: 24px; color: #f1c40f; margin: 0; text-align: center; font-weight: 800;}
.lw-sub {  font-size: 13px; margin-bottom: 24px; text-align: center; }
.lw-popup-box:has(#lw-popup-step-wheel:not([style*="display: none"])) {
    background: none !important;
        box-shadow: none;
    border: none;
}
/* FORM COMPONENTS */
.lw-form-group { margin-bottom: 16px; }
.lw-form-group label { display: block;  font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.lw-form-group input, .lw-form-group select {
    width: 100%; padding: 12px 14px; background: rgba(255,255,255,0.04);
    border: 1px solid rgba(0,0,0,0.1); border-radius: 12px; font-size: 14px; outline: none;
}
.lw-form-group input:focus, .lw-form-group select:focus { border-color: #f39c12; background: rgba(255,255,255,0.08); }
.lw-form-group select option { background: #1a1f2f; color: #fff; }
.lw-btn-submit
{
    grid-column: 1 / -1;
}
.lw-btn-submit, .lw-btn-spin {
    width: 100%; padding: 15px; border: none; border-radius: 14px;
    background: linear-gradient(135deg, #f9d976, #f39c12); color: #0b0e1a;
    font-size: 16px; font-weight: 700; cursor: pointer; transition: all 0.2s;
}
.lw-btn-submit:hover, .lw-btn-spin:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(243,156,18,0.3); }

/* TOAST & RESULT */
.lw-result-box { text-align: center; }
.lw-prize-display { font-size: 42px; font-weight: 800; background: linear-gradient(135deg, #f9d976, #f39c12); -webkit-background-clip: text; -webkit-text-fill-color: transparent; margin: 10px 0; }
.lw-prize-label {  font-size: 15px; }
.lw-thank-msg {  font-size: 15px; margin-bottom: 20px; }
.lw-btn-done { padding: 12px 40px; border: none; border-radius: 20px;     background: linear-gradient(135deg, #f9d976, #f39c12);  cursor: pointer; color: #000;}

.lw-toast {
    position: fixed; bottom: 40px; left: 50%; transform: translateX(-50%) translateY(20px);
    background: #1a1f2f; color: #fff; padding: 12px 24px; border-radius: 12px;
    font-size: 14px; opacity: 0; transition: all 0.3s; z-index: 9999999; pointer-events: none;
}
div#lwCenterSpin:hover {
    box-shadow: 0 4px 15px #d4a017;
}
.lw-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.lw-toast.success { border-color: rgba(46,213,115,0.3); background: #1a2f24; }
.lw-toast.error { border-color: rgba(255,71,87,0.3); background: #2f1a1a; }
@media (max-width: 1115px) {
    .lw-wheel-container
    {
        width: 350px;
        height: 350px;
    }
    .lw-wheel-wrapper {
        width: 300px;
        height: 300px;
    }
}
@media (max-width: 997px) {
    .lw-wheel-container
    {
        width: 300px;
        height: 300px;
    }
    .lw-wheel-wrapper {
        width: 255px;
        height: 255px;
    }
}
@media (max-width: 871px) {
    .lw-wheel-container
    {
        width: 250px;
        height: 250px;
    }
    .lw-wheel-wrapper {
        width: 212px;
    height: 212px;
    }
}
@media (max-width: 756px) {
    .lw-popup-step-wheel{
        margin-left: -31px;
    }
}
@media (max-width: 530px) {
    .lw-popup-step-wheel{
        margin-left:0;
    }
    .lw-wheel-container
    {
        margin: auto;
        width: 300px;
    height: 300px;
    }
.lw-popup-box {
    width: 85%;
    left: 50%;
    top: 59%;
    transform: translate(-50%, -50%);
           padding: 20px;
}
.lw-wheel-wrapper {

     width: 255px;
    height: 255px;
}
}