/* Frontend styles for Lucky Draw */
.mktld-app {
    max-width: 920px;
    margin: 0 auto;
    padding: 0 20px 20px;
}


.mktld-login {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.mktld-login-card {
    background: #fff;
    padding: 32px;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgb(1 41 0 / 37%);
    width: 100%;
    max-width: 450px;
    text-align: center;
}

.mktld-login-card h3 {
    margin-top: 0;
    color: #151515;
    font-size: 24px
}

#mktld-phone {
    width: 100%;
    padding: 12px 14px;
    border-radius: 8px;
    border: 2px solid #ddd;
    margin-bottom: 24px;
    font-size: 14px;
    line-height: 20px;
    transition: all 0.3s;
    box-sizing: border-box;
    min-height: 42px;
}

#mktld-phone:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

#mktld-phone.mktld-input-error {
    border-color: #ff4444;
    background: #fff5f5;
}

#mktld-phone.mktld-input-error:focus {
    box-shadow: 0 0 0 3px rgba(255, 68, 68, 0.1);
}

#mktld-btn-login {
    text-transform: math-auto;
    font-weight: 400;
    font-size: 16px;
    width: 100%;
    padding: 10px 20px;
    border-radius: 8px;
    background: var(--primary-color);
    color: white;
    border: 0;
    cursor: pointer;
    transition: all 0.3s;
    min-height: initial;
    line-height: initial;
}

#mktld-btn-login:hover {
    transform: translateY(-2px);
}

#mktld-btn-login:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

.mktld-hint {
    font-size: 13px;
    color: #666;
    line-height: 1;
}

.mktld-msg {
    margin-top: 8px;
    min-height: 20px;
}

.mktld-error-msg {
    color: #ff4444;
    display: inline-block;
    padding: 8px 12px;
    background: #fff5f5;
    border-radius: 8px;
    border-left: 3px solid #ff4444;
}

.mktld-already-msg {
    color: #ff9800;
    display: inline-block;
    padding: 8px 12px;
    background: #fff8e1;
    border-radius: 8px;
    border-left: 3px solid #ff9800;
}

.mktld-login-card label {
    font-weight: 400;
    text-align: left;
    font-size: 14px;
    line-height: 20px;
    margin-bottom: 8px;
}

.mktld-wheel {
    display: flex;
    gap: 0;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 20px;
    border-radius: 20px;
}

.mktld-wheel-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

#mktld-wheel-canvas {
    border-radius: 99%;
    background: transparent;
    position: relative;
}

.mktld-wheel-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    background: url('./img/bg2_theme_2.png') no-repeat center center;
    background-size: contain;
    padding: 37px
}

.mktld-wheel-container.theme-theme1 {
    background: url('./img/bg1.png') no-repeat center center;
    background-size: contain;
}

.mktld-wheel-container.theme-theme2 {
    background: url('https://pub-b2eddeeb92ae444d848d347a6b3a9fc5.r2.dev/mktpharma/file/1763449264_691c19b0a5581.png') no-repeat center center;
    background-size: contain;
    padding: 40px
}

.mktld-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.mktld-spin-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100px;
    height: 100px;
    padding: 30px;
    border-radius: 99%;
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 50%, #FF6B35 100%);
    font-size: 1.2vw;
    font-weight: 900;
    color: #fff;
    border: 0;
    box-shadow: 0 8px 24px rgba(255, 165, 0, .6), inset 0 -2px 8px rgba(0, 0, 0, .2);
    cursor: pointer;
    transition: all 0.3s ease;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, .3);
    /*     letter-spacing: 2px; */
    position: relative;
    overflow: hidden;
    /*     animation: pulse 2s infinite; */
}

.theme-theme2 .mktld-spin-btn {
    background: linear-gradient(135deg, #009B38 0%, #FBEF3F 100%);
}

.mktld-spin-btn:before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .4);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

/* .mktld-spin-btn:hover:before {
    width: 300px;
    height: 300px;
} */

.mktld-spin-btn:hover {
    transform: scale(1.05);
    /*     box-shadow: 0 12px 40px rgba(255, 165, 0, .8), inset 0 -2px 8px rgba(0, 0, 0, .3); */
}

.mktld-spin-btn:active {
    transform: translateY(-1px) scale(0.98);
    box-shadow: 0 4px 16px rgba(255, 165, 0, .5);
}

.mktld-spin-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
    animation: none;
}

@keyframes pulse {

    0%,
    100% {
        box-shadow: 0 8px 24px rgba(255, 165, 0, .6), inset 0 -2px 8px rgba(0, 0, 0, .2), 0 0 0 0 rgba(255, 215, 0, .7);
    }

    50% {
        box-shadow: 0 8px 24px rgba(255, 165, 0, .6), inset 0 -2px 8px rgba(0, 0, 0, .2), 0 0 0 15px rgba(255, 215, 0, 0);
    }
}

.mktld-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .65);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    backdrop-filter: blur(3px);
    overflow: hidden;
}

/* Ngăn scroll khi modal mở */
body.mktld-no-scroll {
    overflow: hidden;
    height: 100vh;
}

.mktld-modal-card {
    background: linear-gradient(180deg, #fff 0%, #f9f9f9 100%);
    width: 90%;
    max-width: 500px;
    border-radius: 20px;
    padding: 0;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .4), 0 0 0 8px rgba(255, 215, 0, .2);
    position: relative;
    overflow: hidden;
    background-clip: padding-box;
}

.mktld-modal-card:before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 20px;
    padding: 4px;
    background: linear-gradient(135deg, #FFD700, #FFA500, #FF6B35);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    pointer-events: none;
    z-index: -1;
}

/* Prize card styling - Winner */
.mktld-win {
    position: relative;
    padding: 20px;
    background: radial-gradient(ellipse at center, rgba(255, 223, 0, 0.15) 0%, transparent 70%);
}

/* Decorative Frame Container */
.mktld-decorative-frame {
    position: relative;
    padding: 0 20px 0;
    animation: slideInScale 0.5s ease-out;
}

@keyframes slideInScale {
    0% {
        opacity: 0;
        transform: translateY(-30px) scale(0.8);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Top Gift Decoration */
.mktld-frame-top-decoration {
    position: relative;
    text-align: center;
    margin-bottom: 15px;
}

.mktld-gift-icon {
    font-size: 50px;
    animation: bounce 2s infinite;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, .2));
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* Congratulations Banner */
.mktld-congratulations-banner {
    background: linear-gradient(135deg, #e53935 0%, #c62828 100%);
    color: white;
    font-weight: 900;
    font-size: 24px;
    padding: 12px 20px;
    text-align: center;
    border-radius: 8px;
    margin: 0 auto 20px;
    max-width: 280px;
    box-shadow: 0 4px 15px rgba(229, 57, 53, 0.4);
    letter-spacing: 2px;
    position: relative;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, .3);
    animation: bounceIn 0.6s ease-out 0.2s both;
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3) rotate(-10deg);
    }

    50% {
        transform: scale(1.1) rotate(2deg);
    }

    70% {
        transform: scale(0.9) rotate(-1deg);
    }

    100% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}

.mktld-congratulations-banner:before,
.mktld-congratulations-banner:after {
    content: '★';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 30px;
    color: #FFD700;
    animation: twinkle 1.5s infinite;
}

.mktld-congratulations-banner:before {
    left: 10px;
}

.mktld-congratulations-banner:after {
    right: 10px;
    animation-delay: 0.75s;
}

@keyframes twinkle {

    0%,
    100% {
        opacity: 1;
        transform: translateY(-50%) scale(1);
    }

    50% {
        opacity: 0.5;
        transform: translateY(-50%) scale(0.8);
    }
}

/* Prize Frame - Main Border */
.mktld-prize-frame {
    background: url(./img/prizes_bg.jpg) center center / cover no-repeat;
    border: 6px solid;
    border-image: linear-gradient(135deg, #8B4513 0%, #A0522D 50%, #8B4513 100%) 1;
    border-radius: 12px;
    padding: 20px 25px 50px;
    margin: 0 auto;
    max-width: 400px;
    box-shadow: 0 8px 25px rgba(139, 69, 19, 0.3), inset 0 0 30px rgba(255, 215, 0, 0.1), 0 0 0 2px rgba(255, 215, 0, 0.3);
    position: relative;
    overflow: hidden;
}

/* Frame decorative corners */
.mktld-prize-frame:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        linear-gradient(45deg, transparent 48%, #FFD700 48%, #FFD700 52%, transparent 52%),
        linear-gradient(-45deg, transparent 48%, #FFD700 48%, #FFD700 52%, transparent 52%);
    background-size: 30px 30px;
    background-position: top left, top right;
    background-repeat: no-repeat;
    opacity: 0.3;
    pointer-events: none;
}

/* Prize Content Area */
.mktld-prize-content {
    text-align: center;
    position: relative;
    min-height: 300px;
    z-index: 1;
    padding: 40px 0 80px;
    border-radius: 8px;
}

/* Prize Image */
.mktld-prize-img {
    width: 100%;
    max-height: 200px;
    max-width: 200px;
    object-fit: contain;
    margin: 0 0 15px 0;
    filter: drop-shadow(0 6px 15px rgba(0, 0, 0, .15));
    border-radius: 8px;
    animation: zoomInFade 0.8s ease-out 0.6s both;
}

@keyframes zoomInFade {
    0% {
        opacity: 0;
        transform: scale(0.5);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Prize Name */
.mktld-modal-card .mktld-prize-name {
    font-weight: 800;
    font-size: 35px;
    line-height: 1.4;
    color: red;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, .1);
    padding: 10px;
    border-radius: 8px;
    animation: fadeInUp 0.6s ease-out 0.4s both;
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Bottom Ribbon Decoration */
.mktld-frame-ribbon {
    width: 120px;
    height: 6px;
    background: linear-gradient(90deg, #FFD700 0%, #FFA500 50%, #FFD700 100%);
    margin: 20px auto 0;
    border-radius: 3px;
    box-shadow: 0 2px 8px rgba(255, 165, 0, 0.4);
    position: relative;
}

.mktld-frame-ribbon:before,
.mktld-frame-ribbon:after {
    content: '';
    position: absolute;
    top: 50%;
    width: 8px;
    height: 8px;
    background: #FFA500;
    border-radius: 50%;
    transform: translateY(-50%);
    box-shadow: 0 2px 4px rgba(0, 0, 0, .2);
}

.mktld-frame-ribbon:before {
    left: -12px;
}

.mktld-frame-ribbon:after {
    right: -12px;
}

/* Lose card styling */
.mktld-lose {
    padding: 40px 20px 20px;
}

.mktld-lose h2 {
    color: #666;
    font-size: 24px;
    margin: 0 0 10px 0;
}

.mktld-lose p {
    color: #999;
    font-size: 16px;
    margin: 0;
}

#mktld-close-modal {
    padding: 10px 50px;
    border: 0;
    border-radius: 50px;
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: #fff;
    font-weight: 800;
    font-size: 16px;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(255, 165, 0, .5), inset 0 -2px 4px rgba(0, 0, 0, .2);
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    z-index: 1;
    line-height: 1;
    margin: 0 0 30px;
}

#mktld-close-modal:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 30px rgba(255, 165, 0, .7), inset 0 -2px 4px rgba(0, 0, 0, .2);
}

#mktld-close-modal:active {
    transform: translateY(-1px) scale(0.98);
}



@media (max-width:768px) {
    .mktld-wheel {
        flex-direction: column;
        padding: 20px;
    }

    #mktld-wheel-canvas {
        max-width: 100%;
        height: auto;
    }

    .mktld-actions {
        width: 100%;
    }

    .mktld-spin-btn {
        width: 100%;
        padding: 18px 32px;
        font-size: 22px;
        border-radius: 50px;
    }

    /* Responsive prize frame */
    .mktld-congratulations-banner {
        font-size: 20px;
        padding: 10px 15px;
        max-width: 240px;
    }

    .mktld-prize-frame {
        padding: 20px;
        max-width: 100%;
    }

    .mktld-gift-icon {
        font-size: 40px;
    }

    .mktld-modal-card .mktld-prize-name {
        font-size: 18px;
    }
}


@font-face {
    font-family: 'Flaticon';
    src: url('../font/Flaticon.eot');
    src: url('../font/Flaticon.eot?#iefix') format('embedded-opentype'),
        url('../font/Flaticon.woff2') format('woff2'),
        url('../font/Flaticon.woff') format('woff'),
        url('../font/Flaticon.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

.mktld-wheel-container {
    position: relative;
}

.mktld-wheel-container:before {
    color: var(--primary-color);
    text-shadow: -4px 2px 0 rgba(0, 0, 0, .2);
    font-size: 127px !important;
    content: "\f100";
    font-family: "Flaticon";
    font-style: normal;
    margin: 0;
    padding: 0;
    position: absolute;
    top: 50%;
    left: 52.5%;
    transform: translate(-50%, -50%) rotate(270deg);
    transition: all 0.3s ease;
    z-index: 10;
}

/* Theme-specific arrow colors */
.mktld-wheel-container.theme-default:before {
    color: #00712D;
    text-shadow: -4px 2px 0 rgba(0, 113, 45, .3);
}

.mktld-wheel-container.theme-theme1:before {
    color: #ff6600;
    text-shadow: -4px 2px 0 rgb(255 100 0 / 37%), 0 0 20px rgb(255 130 0 / 30%);
}

.mktld-wheel-container.theme-theme2:before {
    color: #2ea701;
    text-shadow: -4px 2px 0 rgb(2 212 0 / 30%),
        0 0 20px rgb(0 212 29 / 20%);
}

/* r3 */
@media screen and (max-width: 549px) {
    .mktld-app {
        max-width: 100%;
        margin: 0 auto;
        padding: 0;
    }

    .mktld-login-card {
        padding: 22px;
        width: 100%;
        max-width: 100%;
    }

    .mktld-login-card h3 {
        font-size: 18px;
    }

    .mktld-wheel {
        padding: 0;
    }

    .mktld-wheel-container.theme-theme2 {
        padding: 25px;
    }

    .mktld-spin-btn {
        width: 50px;
        padding: 10px 15px;
        font-size: 2.5vw;
        border-radius: 99%;
        height: 50px;
    }

    .mktld-wheel-container:before {
        font-size: 60px !important;
    }

    .mktld-wheel-container {
        padding: 22px;
    }





}