/* =========================
   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%;
    }
}