
/* Màn hình Full HD trở lên (1920px) */
@media screen and (min-width: 1920px) {
  section.lucky-wheel-section {
    min-height: 100vh !important;
  }
}

@media screen and (min-width: 1280px) and (max-width: 2440px) {
  section.lucky-wheel-section {
   min-height: 100vh !important;
  }
}


/* Màn hình 2K trở lên (2560px) */
@media screen and (min-width: 2560px) {
  section.lucky-wheel-section {
    min-height: 1440px;
  }
}


    .lucky-wheel-title img {
    width: 50%;
    display: block;
    margin: 0 auto;
}
    
    /* Form styling */
    .lucky-wheel-form form {
    background: rgba(255, 255, 255, 0.9);
    padding: 20px;
    border-radius: 0px 0px 10px 10px;
    margin-top: 0px;
    text-align: left;
}
    
      .lucky-wheel-form { width: 80%; margin-top: 35px;}  
    .lucky-wheel-form-header { background-color: #46acff; color: #fff !important; border-radius: 10px 10px 0px 0px; padding: 8px 0px; } 
    .lucky-wheel-form-header h3 {
    color: #fff;
    text-transform: uppercase;
    margin: 0px;
}
    
    .lucky-wheel-form .form-group {
        margin-bottom: 5px;
    }
    
.lucky-wheel-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    font-size: 15px;
}
    
.lucky-wheel-form .form-control {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    box-shadow: unset !important;
    font-size: 90%;
}
    
    .lucky-wheel-form .required {
        color: red;
    }
    
    .form-group.submit-group {
    text-align: center;
}
    
    .lucky-wheel-form .btn-submit-lucky {
    background-color: #ff6600;
    color: white;
    border: none;
    padding: 5px 18px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.3s;
    margin: 0px;
}
    
    .lucky-wheel-form .btn-submit-lucky:hover {
        background-color: #e55c00;
    }
    
    /* Styling cho vòng quay */
    .lucky-wheel-container {
        position: relative;
        width: 100%;
        height: 460px;
    }
    
    .lucky-wheel-title img {
        max-width: 100%;
        height: auto;
        margin-bottom: 15px;
    }
    
    .lucky-wheel-base {
        position: absolute;
        top: 80%;
        left: 50%;
        transform: translate(-50%, -50%);
        z-index: 1;
        width: 100%;
        max-width: 660px;
    }
    
    .lucky-wheel-base img {
        width: 100%;
        height: auto;
    }
    
    .lucky-wheel-spinner {
        position: absolute;
        top: 70%;
        left: 50%;
        transform: translate(-50%, -50%);
        z-index: 2;
        width: 90%;
        max-width: 480px;
        transition: transform 3s ease-out;
    }
    
    .lucky-wheel-spinner img {
        width: 100%;
        height: auto;
    }
    
    .lucky-wheel-arrow {
        position: absolute;
        top: 5%;
        left: 50%;
        transform: translateX(-50%);
        z-index: 4;
        width: 60px;
    }
    
    .lucky-wheel-arrow img {
        width: 100%;
        height: auto;
    }
    
    .lucky-wheel-button {
        position: absolute;
        bottom: -30%;
        left: 47%;
        transform: translateX(-50%);
        z-index: 5;
        cursor: pointer;
        width: 198px;
        transition: all 0.2s;
    }
    
    .lucky-wheel-button:hover {
        transform: translateX(-50%) scale(1.05);
    }
    
    .lucky-wheel-button img {
        width: 100%;
        height: auto;
    }
    
    /* Responsive adjustments */
    @media (max-width: 767px) {
        .lucky-wheel-container {
            height: 418px;
            margin-top: 30px; 
   
        }
        
        .lucky-wheel-form-header h3 { font-size: 17px !important; }
.lucky-wheel-form-header { padding: 12px 0px !important }

        
        
        .lucky-wheel-base,
        .lucky-wheel-spinner {
            max-width: 100%;
        }
        
        
		
		.lucky-wheel-base { top: 60% !important; width: 465px !important; max-width: 465px !important; }
		.lucky-wheel-spinner { top: 50%; width: 100%;}
        
        .lucky-wheel-arrow {
            width: 40px;
           top: -3%; 
        }
        
       .lucky-wheel-button {
        width: 168px !important;
        bottom: -11% !important;
        left: 50% !important;
    }
		.lucky-wheel-form {
        width: 100%;
       margin-top: 35px;
        }
		
		.col-lucky-wheel-form {
    padding-bottom: 0px !important;
}
		
		.lucky-wheel-container {
    margin-top: 15px;
}

section.lucky-wheel-section {
    padding-bottom: 80px;
}
		
		
    }
    
    
    
  


.loading-lucky {
                position: fixed;
                top: 0;
                left: 0;
                width: 100%;
                height: 100%;
                background-color: rgba(0, 0, 0, 0.5);
                z-index: 9999;
                display: flex;
                justify-content: center;
                align-items: center;
            }
            .loading-spinner {
                width: 50px;
                height: 50px;
                border: 5px solid #f3f3f3;
                border-top: 5px solid #3498db;
                border-radius: 50%;
                animation: spin 2s linear infinite;
            }
            @keyframes spin {
                0% { transform: rotate(0deg); }
                100% { transform: rotate(360deg); }
            }



.lucky-wheel-form .form-control {
    height: 44px;
    border-radius: 8px;
}

a.lucky_wheel_submit img {
    animation: scale 1.4s ease-in-out infinite alternate;
}


@keyframes scale {
    0% {
        transform: scale(1)
    }

    25% {
        transform: scale(1.08)
    }

    50% {
        transform: scale(1)
    }

    75% {
        transform: scale(1.08)
    }

    to {
        transform: scale(1)
    }
}


button.swal2-confirm.swal2-styled {
    text-transform: inherit;
    padding: 6px 30px;
    background-color: #03A9F4;
}

/*.swal2-html-container img {*/
/*    border: 1px dashed #ddd;*/
/*    border-radius: 10px;*/
/*}*/

.swal2-icon-success .swal2-actions {
    display: none !important;
}



.form-group-note p {
    color: #fb5721;
    font-weight: 500;
    font-size: 90%;
}




/* CSS hiện tại đã có media query cho điện thoại (max-width: 767px) */
/* Bổ sung CSS cho iPad Mini (768px - 834px) */
@media (min-width: 768px) and (max-width: 834px) {
    .lucky-wheel-container {
        height: 440px;
        margin-top: 20px;
    }
    
    .lucky-wheel-base {
        top: 80%;
        width: 90%;
        max-width: 550px;
    }
    
    .lucky-wheel-spinner {
        top: 70%;
        width: 75%;
        max-width: 420px;
    }
    
    .lucky-wheel-arrow {
        width: 50px;
        top: 25%;
    }
    
    .lucky-wheel-button {
        width: 170px;
        bottom: -20%;
    }
    
    .lucky-wheel-form {
        width: 90%;
        margin-top: 30px;
    }
    
    .lucky-wheel-title img {
        width: 60%;
    }
}

/* CSS cho iPad Air và các tablet lớn hơn (835px - 1024px) */
@media (min-width: 835px) and (max-width: 1024px) {
    .lucky-wheel-container {
        height: 450px;
        margin-top: 15px;
    }
    
    .lucky-wheel-base {
        top: 70%;
        width: 85%;
        max-width: 580px;
    }
    
    .lucky-wheel-spinner {
        top: 60%;
        width: 70%;
        max-width: 450px;
    }
    
    .lucky-wheel-arrow {
        width: 55px;
        top: 12%;
    }
    
    .lucky-wheel-button {
        width: 180px;
        bottom: -30%;
    }
    
    .lucky-wheel-form {
        width: 85%;
        margin-top: 30px;
    }
    
    .lucky-wheel-title img {
        width: 55%;
    }
}

/* CSS cho tablet nằm ngang và màn hình lớn hơn (landscape mode) */
@media (min-width: 1025px) and (max-width: 1366px) {
    .lucky-wheel-container {
        height: 455px;
    }
    
    .lucky-wheel-base {
        top: 78%;
        width: 95%;
        max-width: 600px;
    }
    
    .lucky-wheel-spinner {
        top: 68%;
        width: 75%;
        max-width: 470px;
    }
    
    .lucky-wheel-button {
        width: 190px;
        bottom: -35%;
    }
    
    .lucky-wheel-form {
        width: 85%;
    }
}

/* Điều chỉnh layout khi hiển thị ngang (landscape) trên tablet */
@media (max-width: 1024px) and (orientation: landscape) {
    .lucky-wheel-container {
        height: 420px;
    }
    
    .lucky-wheel-base {
        max-width: 500px;
    }
    
    .lucky-wheel-spinner {
        max-width: 400px;
    }
    
    .lucky-wheel-form {
        width: 70%;
    }
    
    .col-lucky-wheel-form {
        padding-bottom: 20px !important;
    }
}

/* Điều chỉnh đặc biệt cho iPad Mini nằm ngang */
@media (min-width: 768px) and (max-width: 834px) and (orientation: landscape) {
    .lucky-wheel-container {
        height: 400px;
    }
    
    .lucky-wheel-base {
        top: 65%;
    }
    
    .lucky-wheel-spinner {
        top: 55%;
    }
    
    .lucky-wheel-button {
        bottom: -15%;
    }
}



.loading-lucky {
                position: fixed;
                top: 0;
                left: 0;
                width: 100%;
                height: 100%;
                background-color: rgba(0, 0, 0, 0.5);
                z-index: 9999;
                display: flex;
                justify-content: center;
                align-items: center;
            }
            .loading-spinner {
                width: 50px;
                height: 50px;
                border: 5px solid #f3f3f3;
                border-top: 5px solid #3498db;
                border-radius: 50%;
                animation: spin 2s linear infinite;
            }
            @keyframes spin {
                0% { transform: rotate(0deg); }
                100% { transform: rotate(360deg); }
            }
            
            
            /* Custom Modal Styles */
.modal-lucky {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.7);
}

.modal-lucky-content {
    position: relative;
    background-color: #fff;
    margin: 5% auto;
    padding: 0;
    border-radius: 10px;
    width: 80%;
    max-width: 500px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    animation: modalFadeIn 0.3s;
}

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

.modal-lucky-header {
    padding: 15px;
    background-color: #f8bb00;
    color: white;
    border-radius: 10px 10px 0 0;
    text-align: center;
    position: relative;
}

.modal-lucky-title {
    margin: 0;
    font-size: 24px;
    font-weight: bold;
}

.modal-lucky-close {
    position: absolute;
    right: 15px;
    top: 10px;
    color: white;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.modal-lucky-body {
    padding: 20px;
    text-align: center;
}

#modal-lucky-image {
    margin: 15px auto;
    display: block;
}

#modal-lucky-info {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    resize: none;
}

.modal-lucky-btn {
    background-color: #f8bb00;
    color: white;
    padding: 4px 20px;
    margin-top: 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: background-color 0.3s;
    text-transform: inherit;
}

.modal-lucky-btn:hover {
    background-color: #e5a800;
}

/* Make sure toastr appears above our modal */
.toast-top-right {
    z-index: 10000 !important;
}


.modal-lucky-title {
    color: #fff;
}

p#modal-lucky-reward {
    font-weight: 600;
    text-transform: capitalize;
    color: #ff6b00;
}

img#modal-lucky-image {
    width: 228px !important;
}

textarea#modal-lucky-info {
    height: 72px !important;
    max-height: 72px !important;
    min-height: 72px !important;
    box-shadow: unset;
        font-size: 16px !important;
}

p#modal-lucky-info-text {
    text-align: left;
    color: #ff6b00;
     font-size: 14px !important;
}



/* ===== Wheel Success Modal ===== */
.wheel-success-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    animation: fadeIn 0.25s ease-in;
}

.wheel-success-content {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    padding: 30px 25px;
    text-align: center;
    width: 90%;
    max-width: 580px;
    animation: scaleUp 0.3s ease-in-out;
}

.wheel-success-icon {
    display: flex;
    justify-content: center;
    margin-bottom: 16px;
}

.checkmark {
    width: 80px;
    height: 80px;
    stroke-width: 3;
    stroke: #4caf50;
    stroke-miterlimit: 10;
}

.checkmark__circle {
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    stroke-width: 3;
    stroke-miterlimit: 10;
    stroke: #4caf50;
    fill: none;
    animation: stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.checkmark__check {
    transform-origin: 50% 50%;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    animation: stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.6s forwards;
}

.wheel-success-content h2 {
    color: #333;
    font-size: 18px;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.wheel-reward {
    font-size: 20px;
    color: #4caf50;
    font-weight: 600;
    margin-bottom: 24px;
}

.wheel-ok-btn {
    background: #4caf50;
    color: #fff;
    border: none;
    padding: 4px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 15px;
    transition: background 0.2s ease;
    margin-top: 15px;
}

.wheel-ok-btn:hover {
    background: #43a047;
}

p.wheel-reward strong {
    display: block;
}

/* ===== Animations ===== */
@keyframes fadeIn {
    from {opacity: 0;}
    to {opacity: 1;}
}

@keyframes scaleUp {
    from {transform: scale(0.85); opacity: 0;}
    to {transform: scale(1); opacity: 1;}
}

@keyframes stroke {
    100% {stroke-dashoffset: 0;}
}




.wheel-reward-box .reward-title {
    text-align: center;
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 10px;
}

.wheel-reward-box .reward-details {
    font-size: 14px;
    line-height: 1.6;
}

.wheel-reward-box .label {
    font-weight: 500;
    color: #555;
}

.wheel-reward-box .value {
    font-weight: 600;
    color: #000;
}

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





.wheel-reward-box .reward-title {
    margin: 0 0 20px 0;
    font-size: 20px;
    font-weight: 600;
    color: #222;
    text-align: center;
    line-height: 1.3;
}

.wheel-reward-box .reward-details {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.wheel-reward-box .reward-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f9fafb;
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 4px 12px;
    transition: background 0.25s ease, border-color 0.25s ease;
}

.wheel-reward-box .reward-item:hover {
    background: #f1f3f5;
    border-color: #ddd;
}

.wheel-reward-box .reward-item .label {
    font-size: 14px;
    color: #555;
    font-weight: 500;
    min-width: 95px;
    flex-shrink: 0;
}

.wheel-reward-box .value-wrapper {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex: 1;
    min-width: 0;
}

.wheel-reward-box .value {
    font-size: 14px;
    color: #222;
    font-weight: 600;
    font-family: 'Courier New', monospace;
    word-break: break-word;
    overflow-wrap: break-word;
}

.wheel-reward-box .copy-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    min-width: 32px;
    padding: 0;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
    color: #666;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.wheel-reward-box .copy-btn:hover {
    background: #f3f4f6;
    border-color: #4CAF50;
    color: #4CAF50;
}

.wheel-reward-box .copy-btn:active {
    transform: scale(0.95);
}

.wheel-reward-box .copy-btn.copied {
    background: #4CAF50;
    border-color: #4CAF50;
    color: #fff;
}

.wheel-reward-box .copy-btn svg {
    display: block;
}

/* ==============================
   📱 Responsive Design
   ============================== */

/* Tablet */
@media (max-width: 768px) {
    .wheel-reward-box {
        padding: 16px;
        margin: 10px;
    }
    
    .wheel-reward-box .reward-title {
        font-size: 18px;
        margin-bottom: 16px;
    }
    
    .wheel-reward-box .reward-item .label {
        min-width: 85px;
        font-size: 13.5px;
    }
    
    .wheel-reward-box .value {
        font-size: 13.5px;
    }
}

/* Mobile */
@media (max-width: 480px) {
    .wheel-reward-box {
        padding: 4px;
        margin: 4px;
    }
    
    .wheel-reward-box .reward-title {
        font-size: 17px;
        margin-bottom: 14px;
    }
    
    .wheel-reward-box .reward-details {
        gap: 10px;
    }
    
    .wheel-reward-box .reward-item {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        padding: 4px;
    }
    
    .wheel-reward-box .reward-item .label {
        font-size: 13px;
        min-width: unset;
    }
    
    .wheel-reward-box .value-wrapper {
        justify-content: space-between;
        width: 100%;
    }
    
    .wheel-reward-box .value {
        font-size: 13px;
        flex: 1;
        min-width: 0;
    }
    
    .wheel-reward-box .copy-btn {
        width: 36px;
        height: 36px;
        min-width: 36px;
    }
    
    .wheel-reward-box .copy-btn svg {
        width: 18px;
        height: 18px;
    }
}

/* Very small mobile */
@media (max-width: 360px) {
    .wheel-reward-box {
        padding: 2px;
        margin: 3px;
    }
    
    .wheel-reward-box .reward-title {
        font-size: 16px;
        margin-bottom: 12px;
    }
    
    .wheel-reward-box .reward-details {
        gap: 8px;
    }
    
    .wheel-reward-box .reward-item {
        padding: 10px;
    }
    
    .wheel-reward-box .reward-item .label {
        font-size: 12px;
    }
    
    .wheel-reward-box .value {
        font-size: 12px;
    }
}


.wheel-reward-box-tb span {
    color: #000 !important;
}