/* =========================
   MLP Frontend Checker
========================= */
.mlp-checker-wrap {
    width: 100%;
    padding: 20px 0;
}

.mlp-checker-card {
    max-width: 760px;
    margin: 0 auto;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.06);
    padding: 24px;
}

.mlp-checker-head {
    text-align: center;
    margin-bottom: 20px;
}

.mlp-checker-title {
    margin: 0 0 8px 0;
    font-size: 28px;
    line-height: 1.2;
    color: #111827;
}

.mlp-checker-subtitle {
    margin: 0;
    color: #6b7280;
    font-size: 15px;
}

/* =========================
   Form
========================= */
.mlp-checker-form {
    margin-bottom: 16px;
}

.mlp-checker-form-row {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.mlp-input {
    width: 100%;
    min-height: 46px;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0 14px;
    font-size: 15px;
    color: #111827;
    background: #fff;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.mlp-input:focus {
    border-color: #0C8F4B;
    box-shadow: 0 0 0 3px rgba(12, 143, 75, 0.12);
}

.mlp-checker-form-row .mlp-input {
    flex: 1;
    min-width: 240px;
}

.mlp-btn {
    min-height: 46px;
    border: 0;
    border-radius: 12px;
    padding: 0 18px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.mlp-btn-primary {
    background: #0C8F4B;
    color: #fff;
}

.mlp-btn-primary:hover {
    background: #0a7a40;
}

.mlp-btn-secondary {
    background: #f3f4f6;
    color: #111827;
}

.mlp-btn-secondary:hover {
    background: #e5e7eb;
}

/* =========================
   Alerts
========================= */
.mlp-message-area {
    margin-top: 14px;
}

.mlp-alert {
    padding: 12px 14px;
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.5;
}

.mlp-alert-success {
    background: #dcfce7;
    color: #166534;
}

.mlp-alert-error {
    background: #fee2e2;
    color: #991b1b;
}

.mlp-alert-warning {
    background: #fff7ed;
    color: #9a3412;
}

.mlp-alert-info {
    background: #eff6ff;
    color: #1d4ed8;
}

/* =========================
   Result
========================= */
.mlp-result-card {
    margin-top: 18px;
    border: 1px dashed #d1d5db;
    border-radius: 16px;
    background: #fafafa;
    padding: 18px;
}

.mlp-result-inner {
    width: 100%;
}

/* =========================
   Winner Info Box
========================= */
.mlp-winner-box {
    margin-top: 18px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 18px;
}

.mlp-winner-title {
    margin: 0 0 12px 0;
    font-size: 18px;
    color: #111827;
}

.mlp-winner-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 18px;
    font-size: 14px;
    color: #374151;
}

/* =========================
   Modal
========================= */
.mlp-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(17, 24, 39, 0.55);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 999999;
    padding: 20px;
}

.mlp-modal-backdrop.is-visible {
    display: flex;
}

.mlp-modal {
    width: 100%;
    max-width: 560px;
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.24);
    overflow: hidden;
}

.mlp-modal-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 18px;
    border-bottom: 1px solid #e5e7eb;
}

.mlp-modal-head h3 {
    margin: 0;
    font-size: 20px;
    color: #111827;
}

.mlp-modal-close {
    border: 0;
    background: transparent;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    color: #6b7280;
}

.mlp-modal-body {
    padding: 18px;
}

.mlp-modal-body p {
    margin-top: 0;
    margin-bottom: 14px;
    color: #4b5563;
}

.mlp-redeem-form {
    display: block;
}

.mlp-field {
    margin-bottom: 14px;
}

.mlp-field label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    font-weight: 600;
    color: #111827;
}

.mlp-modal-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 18px;
}

/* =========================
   Responsive
========================= */
@media (max-width: 767px) {
    .mlp-checker-card {
        padding: 18px;
        border-radius: 16px;
    }

    .mlp-checker-title {
        font-size: 24px;
    }

    .mlp-checker-form-row {
        flex-direction: column;
        align-items: stretch;
    }

    .mlp-checker-form-row .mlp-input {
        min-width: 100%;
    }

    .mlp-btn {
        width: 100%;
    }

    .mlp-winner-grid {
        grid-template-columns: 1fr;
    }

    .mlp-modal-actions {
        flex-direction: column;
    }

    .mlp-modal-actions .mlp-btn {
        width: 100%;
    }
}

/* =========================
   Lottery Wheel Spinner
========================= */
.mlp-spinner-overlay {
    position: fixed;
    inset: 0;
    background: rgba(17, 24, 39, 0.85);
    backdrop-filter: blur(4px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mlp-spinner-overlay.is-active {
    display: flex;
    opacity: 1;
}

.mlp-spinner-container {
    text-align: center;
    color: #fff;
    font-family: 'Inter', sans-serif, monospace;
}

.mlp-wheel-wrapper {
    position: relative;
    width: 140px;
    margin: 0 auto 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.mlp-wheel-pointer {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    filter: drop-shadow(0 4px 4px rgba(0,0,0,0.25));
}

.mlp-wheel-border {
    position: relative;
    width: 120px;
    height: 120px;
    background: #4c1d95; /* Deep purple */
    border-radius: 50%;
    padding: 8px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.3), inset 0 2px 4px rgba(255,255,255,0.1);
    z-index: 5;
}

.mlp-wheel-lights {
    position: absolute;
    inset: 3px;
    border-radius: 50%;
    background: repeating-conic-gradient(
        transparent 0deg 12deg,
        #ffffff 12deg 18deg,
        transparent 18deg 30deg
    );
    opacity: 0.8;
}

.mlp-wheel {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: conic-gradient(
        #ef4444 0deg 30deg,    /* Red */
        #f97316 30deg 60deg,   /* Orange */
        #eab308 60deg 90deg,   /* Yellow */
        #22c55e 90deg 120deg,  /* Green */
        #3b82f6 120deg 150deg, /* Blue */
        #a855f7 150deg 180deg, /* Purple */
        #ef4444 180deg 210deg,
        #f97316 210deg 240deg,
        #eab308 240deg 270deg,
        #22c55e 270deg 300deg,
        #3b82f6 300deg 330deg,
        #a855f7 330deg 360deg
    );
    border: 2px solid #2e1065;
    animation: mlp-wheel-spin 0.8s linear infinite;
    z-index: 2;
}

.mlp-wheel-center-outer {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 28px;
    height: 28px;
    background: #581c87;
    border-radius: 50%;
    z-index: 6;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #2e1065;
}

.mlp-wheel-center-inner {
    width: 12px;
    height: 12px;
    background: #3b0764;
    border-radius: 50%;
}

.mlp-wheel-stand {
    width: 16px;
    height: 20px;
    background: #4c1d95;
    margin-top: -5px;
    z-index: 1;
    position: relative;
}

.mlp-wheel-base {
    width: 60px;
    height: 14px;
    background: #4c1d95;
    border-radius: 10px 10px 4px 4px;
    z-index: 1;
    position: relative;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.mlp-spinner-text {
    font-size: 16px;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 600;
    margin-top: 15px;
    animation: mlp-blink 1s infinite alternate;
}

@keyframes mlp-wheel-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes mlp-blink {
    0% { opacity: 0.5; }
    100% { opacity: 1; }
}