/* ============================================================
   Lottery Manager Plugin — Styles v3.3
   ============================================================ */

/* ── Palette variables ── */
:root {
    --lm-bg-wrap: #ebefed;
    --lm-bg-q: #dde8e4;
    --lm-correct: #75cfb0;
    --lm-wrong: #e79399;
    --lm-btn: #00b174;
    --lm-btn-dark: #009962;
    --lm-text: #1a2840;
    --lm-radius: 14px;
}

.lm-wrap {
    margin: 30px auto;
    color: var(--lm-text);
    direction: rtl;
}

.lm-rtl {
    direction: rtl;
    text-align: right;
}

/* Legacy header — kept for wheel shortcode compatibility */
.lm-header {
    background: linear-gradient(135deg, #00b174, #009962);
    color: #fff;
    padding: 16px 22px;
    border-radius: 12px 12px 0 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
}

.lm-title {
    margin: 0;
    font-size: 1.3em;
    color: #fff;
}

.lm-header-right {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.lm-score-display,
.lm-token-display,
.lm-progress-display {
    background: rgba(255, 255, 255, 0.18);
    padding: 5px 13px;
    border-radius: 20px;
    font-size: 0.86em;
    font-weight: 600;
    white-space: nowrap;
}

/* ============================================================
   QUIZ — Summary card + Start button
   ============================================================ */

.lm-summary-card {
    background: var(--lm-bg-wrap);
    border-radius: var(--lm-radius);
    padding: 20px 24px;
    display: flex;
    gap: 12px;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 20px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
}

.lm-summary-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    min-width: 80px;
}

.lm-summary-icon {
    font-size: 1.6em;
    line-height: 1;
}

.lm-summary-label {
    font-size: 0.78em;
    color: #666;
}

.lm-summary-val {
    font-size: 1.3em;
    font-weight: 800;
    color: var(--lm-text);
}

/* ============================================================
   Profile widget (lm-pf-*)
   ============================================================ */

.lm-pf-card {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0,0,0,.10);
    overflow: hidden;
    font-family: inherit;
}

.lm-pf-guest {
    padding: 24px;
    text-align: center;
}
.lm-pf-login-trigger {
    background: none !important;
    border: none !important;
    color: inherit !important;
    text-decoration: underline !important;
    cursor: pointer !important;
    font: inherit !important;
    padding: 0 !important;
    display: inline !important;
}

/* ── Header ── */
.lm-pf-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 24px 20px 20px;
    background: linear-gradient(135deg, #00b174 0%, #1a7f37 100%);
    color: #fff;
}

.lm-pf-avatar-wrap {
    position: relative;
    flex-shrink: 0;
}

.lm-pf-avatar {
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(255,255,255,.6);
    display: block;
}

.lm-pf-rank-badge {
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    background: #f59e0b;
    color: #fff;
    font-size: .72em;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 20px;
    white-space: nowrap;
    box-shadow: 0 2px 6px rgba(0,0,0,.18);
}

.lm-pf-header-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.lm-pf-name {
    font-size: 1.15em;
    font-weight: 800;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lm-pf-rank-label {
    font-size: .78em;
    color: rgba(255,255,255,.8);
}

/* ── Score tile ── */
.lm-pf-score-tile {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 20px;
    border-bottom: 1px solid #f1f5f9;
}

.lm-pf-score-icon {
    font-size: 2em;
    line-height: 1;
}

.lm-pf-score-body {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.lm-pf-score-num {
    font-size: 1.8em;
    font-weight: 900;
    color: #00b174;
    line-height: 1;
}

.lm-pf-score-label {
    font-size: .78em;
    color: #94a3b8;
}

/* ── Section ── */
.lm-pf-section {
    padding: 18px 20px;
}

.lm-pf-section-title {
    font-size: .88em;
    font-weight: 700;
    color: #475569;
    margin: 0 0 14px;
    padding-bottom: 8px;
    border-bottom: 2px solid #00b174;
    display: inline-block;
}

.lm-pf-empty {
    font-size: .88em;
    color: #94a3b8;
    text-align: center;
    line-height: 1.7;
    padding: 12px 0;
    margin: 0;
}

/* ── Prize list ── */
.lm-pf-prize-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.lm-pf-prize-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #f8fafc;
    border-radius: 12px;
    padding: 12px 14px;
    transition: background .18s;
}

.lm-pf-prize-item:hover {
    background: #f1f5f9;
}

.lm-pf-prize-icon {
    font-size: 1.5em;
    flex-shrink: 0;
    line-height: 1;
}

.lm-pf-prize-body {
    display: flex;
    flex-direction: column;
    gap: 3px;
    flex: 1;
    min-width: 0;
}

.lm-pf-prize-label {
    font-size: .88em;
    font-weight: 600;
    color: #1e293b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lm-pf-prize-badge {
    font-size: .75em;
    color: #64748b;
    background: #e2e8f0;
    border-radius: 6px;
    padding: 1px 6px;
    display: inline-block;
    width: fit-content;
}

/* ── Voucher prize card (ticket style) ── */
.lm-pf-prize-voucher {
    display: block !important;
    padding: 0 !important;
    background: transparent !important;
}

.lm-pf-voucher-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    overflow: visible;
    width: 100%;
    position: relative;
}

/* Top section: tag + label + date */
.lm-pf-voucher-top {
    padding: 14px 16px 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.lm-pf-voucher-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #f0fdf4;
    color: #15803d;
    font-size: .7em;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 20px;
    width: fit-content;
    margin-bottom: 4px;
    letter-spacing: .02em;
}

.lm-pf-voucher-tag svg {
    width: 12px;
    height: 12px;
    flex-shrink: 0;
}

.lm-pf-voucher-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.lm-pf-voucher-info .lm-pf-prize-label {
    font-size: .92em;
    font-weight: 700;
    color: #1e293b;
    white-space: normal;
}

.lm-pf-voucher-info .lm-pf-prize-date {
    font-size: .72em;
    color: #94a3b8;
    white-space: nowrap;
    direction: rtl;
    text-align: right;
}

/* Dashed tear line with notch cutouts */
.lm-pf-voucher-divider {
    position: relative;
    height: 1px;
    border: none;
    border-top: 2px dashed #e2e8f0;
    margin: 0 14px;
}

.lm-pf-voucher-divider::before,
.lm-pf-voucher-divider::after {
    content: '';
    position: absolute;
    top: -9px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.lm-pf-voucher-divider::before { right: -22px; }
.lm-pf-voucher-divider::after  { left: -22px; }

/* Bottom section: code + buttons */
.lm-pf-card .lm-pf-code-section {
    padding: 14px 16px 16px !important;
}

.lm-pf-card .lm-pf-code-label {
    font-size: 11px !important;
    color: #94a3b8 !important;
    font-weight: 700 !important;
    letter-spacing: .07em !important;
    text-transform: uppercase !important;
    display: block !important;
    margin: 0 0 8px !important;
    padding: 0 !important;
    border: none !important;
    background: none !important;
    line-height: 1 !important;
}

.lm-pf-card .lm-pf-code-row {
    display: flex !important;
    align-items: stretch !important;
    gap: 0 !important;
    background: #f8fafc !important;
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 10px !important;
    overflow: hidden !important;
    margin: 0 0 10px !important;
    padding: 0 !important;
    list-style: none !important;
}

.lm-pf-card .lm-pf-code-val {
    font-size: 13px !important;
    font-family: monospace !important;
    font-weight: 700 !important;
    color: #1e293b !important;
    padding: 10px 12px !important;
    letter-spacing: .07em !important;
    flex: 1 !important;
    min-width: 0 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    margin: 0 !important;
    line-height: 1.2 !important;
}

.lm-pf-card .lm-pf-code-sep {
    width: 1px !important;
    background: #e2e8f0 !important;
    flex-shrink: 0 !important;
    align-self: stretch !important;
}

.lm-pf-card .lm-pf-copy-btn {
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;
    padding: 10px 14px !important;
    background: #fff !important;
    color: #334155 !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    font-family: inherit !important;
    cursor: pointer !important;
    transition: background .15s !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
    line-height: 1 !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    margin: 0 !important;
    outline: none !important;
    -webkit-appearance: none !important;
    appearance: none !important;
}

.lm-pf-card .lm-pf-copy-btn:hover { background: #f1f5f9 !important; color: #334155 !important; }
.lm-pf-card .lm-pf-copy-btn:active { opacity: .8 !important; }
.lm-pf-card .lm-pf-copy-btn:focus { outline: none !important; box-shadow: none !important; }
.lm-pf-card .lm-pf-copy-btn.lm-pf-copied { background: #f0fdf4 !important; color: #15803d !important; }

.lm-pf-card .lm-pf-copy-btn svg {
    width: 14px !important;
    height: 14px !important;
    flex-shrink: 0 !important;
    display: inline-block !important;
}

/* "رفتن به وبسایت" full-width button */
.lm-pf-card .lm-pf-use-btn {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 7px !important;
    width: 100% !important;
    padding: 12px 16px !important;
    background: #1a7f37 !important;
    color: #fff !important;
    border: none !important;
    border-radius: 10px !important;
    box-shadow: none !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    font-family: inherit !important;
    text-decoration: none !important;
    text-align: center !important;
    letter-spacing: normal !important;
    text-transform: none !important;
    transition: background .15s !important;
    line-height: 1.3 !important;
    margin: 0 !important;
    box-sizing: border-box !important;
}

.lm-pf-card .lm-pf-use-btn:hover,
.lm-pf-card .lm-pf-use-btn:focus,
.lm-pf-card .lm-pf-use-btn:visited {
    background: #145c28 !important;
    color: #fff !important;
    text-decoration: none !important;
}

.lm-pf-card .lm-pf-use-btn:active { opacity: .88 !important; }

.lm-pf-card .lm-pf-use-btn svg {
    width: 15px !important;
    height: 15px !important;
    flex-shrink: 0 !important;
    display: inline-block !important;
}

.lm-pf-card .lm-pf-use-hint {
    font-size: 11px !important;
    color: #94a3b8 !important;
    text-align: center !important;
    margin: 6px 0 0 !important;
    display: block !important;
    padding: 0 !important;
    background: none !important;
    border: none !important;
    line-height: 1.4 !important;
}

.lm-pf-use-btn svg {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
}

.lm-pf-use-hint {
    font-size: .68em;
    color: #94a3b8;
    text-align: center;
    margin-top: 6px;
    display: block;
}

.lm-pf-prize-date {
    font-size: .75em;
    color: #94a3b8;
    white-space: nowrap;
    flex-shrink: 0;
    text-align: left;
    direction: rtl;
}

/* ── Footer / logout + site link ── */
.lm-pf-footer {
    padding: 0 20px 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.lm-pf-site-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    background: linear-gradient(135deg, #00b174 0%, #1a7f37 100%);
    color: #fff !important;
    border: none;
    border-radius: 12px;
    font-size: .88em;
    font-weight: 600;
    text-decoration: none !important;
    cursor: pointer;
    transition: opacity .18s, transform .12s;
}

.lm-pf-site-btn:hover {
    opacity: .88;
    color: #fff !important;
    text-decoration: none !important;
}

.lm-pf-site-btn svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.lm-pf-logout-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    background: #fff0f0;
    color: #dc2626;
    border: 1.5px solid #fecaca;
    border-radius: 12px;
    font-size: .88em;
    font-weight: 600;
    text-decoration: none !important;
    cursor: pointer;
    transition: background .18s, border-color .18s;
}

.lm-pf-logout-btn:hover {
    background: #fee2e2;
    border-color: #f87171;
    color: #dc2626;
    text-decoration: none !important;
}

.lm-pf-logout-btn svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* ── Mobile responsive ── */
@media (max-width: 480px) {
    .lm-pf-header {
        padding: 18px 14px 16px;
        gap: 12px;
    }

    .lm-pf-name {
        font-size: 1em;
    }

    .lm-pf-score-tile {
        padding: 14px 14px;
        gap: 10px;
    }

    .lm-pf-score-num {
        font-size: 1.5em;
    }

    .lm-pf-section {
        padding: 14px 14px;
    }

    .lm-pf-prize-item {
        padding: 10px 10px;
        gap: 8px;
        flex-wrap: wrap;
    }

    .lm-pf-prize-date {
        width: 100%;
        text-align: right;
        font-size: .7em;
    }

    .lm-pf-prize-label {
        white-space: normal;
        word-break: break-word;
    }

    .lm-pf-card .lm-pf-voucher-top {
        padding: 12px 12px 10px !important;
    }

    .lm-pf-card .lm-pf-code-section {
        padding: 12px 12px 14px !important;
    }

    .lm-pf-card .lm-pf-code-val {
        font-size: 12px !important;
        padding: 9px 10px !important;
    }

    .lm-pf-card .lm-pf-copy-btn {
        font-size: 11px !important;
        padding: 9px 11px !important;
    }

    .lm-pf-card .lm-pf-use-btn {
        font-size: 13px !important;
        padding: 11px 14px !important;
    }

    .lm-pf-footer {
        padding: 0 14px 16px;
        grid-template-columns: 1fr;
    }

    .lm-pf-site-btn,
    .lm-pf-logout-btn {
        font-size: .85em;
        padding: 11px 14px;
    }
}

/* Start / Continue button */
.lm-start-btn {
    display: block;
    width: 100%;
    padding: 16px 24px;
    background: var(--lm-btn);
    color: #fff;
    border: none;
    border-radius: var(--lm-radius);
    font-size: 1.25em;
    font-weight: 800;
    letter-spacing: 1px;
    cursor: pointer;
    text-align: center;
    transition: background 0.18s, transform 0.15s, box-shadow 0.15s;
    box-shadow: 0 4px 18px rgba(0, 177, 116, 0.35);
}

.lm-start-btn:hover:not(:disabled) {
    background: var(--lm-btn-dark);
    transform: translateY(-2px);
    box-shadow: 0 7px 24px rgba(0, 177, 116, 0.45);
}

.lm-start-btn:disabled,
.lm-btn-done {
    background: #aaa;
    box-shadow: none;
    cursor: default;
    opacity: 0.8;
}

/* ============================================================
   QUIZ MODAL / POPUP
   ============================================================ */

/* Overlay */
.lm-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    backdrop-filter: blur(3px);
    direction: rtl;
}

body.lm-modal-open {
    overflow: hidden;
}

/* Modal box */
.lm-modal-box {
    background: var(--lm-bg-wrap);
    border-radius: 20px;
    width: 100%;
    max-width: 560px;
    max-height: 92vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.35);
    animation: lm-modal-in 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes lm-modal-in {
    from {
        transform: scale(0.88) translateY(24px);
        opacity: 0;
    }

    to {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

/* Modal header bar */
.lm-modal-header {
    background: var(--lm-btn);
    color: #fff;
    padding: 12px 16px;
    border-radius: 20px 20px 0 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    position: sticky;
    top: 0;
    z-index: 2;
}

.lm-modal-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9em;
    font-weight: 600;
    flex: 1;
    justify-content: center;
}

.lm-meta-label {
    font-size: 0.8em;
    opacity: 0.75;
    margin-right: 2px;
}

.lm-meta-sep {
    opacity: 0.4;
}

.lm-meta-qnum {
    opacity: 0.95;
}

/* Close button */
.lm-modal-close {
    background: rgba(255, 255, 255, 0.2) !important;
    border: none !important;
    color: #fff !important;
    width: 32px !important;
    height: 32px !important;
    border-radius: 50% !important;
    font-size: 1em !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0;
    padding: 0 !important;
    line-height: 1 !important;
    outline: none !important;
    transition: background 0.15s;
}

.lm-modal-close:hover,
.lm-modal-close:focus {
    background: rgba(255, 255, 255, 0.35) !important;
    color: #fff !important;
    border-color: transparent !important;
}

/* ── Timer strip (between header and body) ── */
.lm-timer-strip {
    background: #1e293b;
    padding: 10px 18px 12px;
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
}

/* Badge: icon + number + label */
.lm-timer-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.08);
    border: 1.5px solid rgba(255, 255, 255, 0.12);
    border-radius: 30px;
    padding: 5px 12px 5px 8px;
    flex-shrink: 0;
    transition: background 0.3s, border-color 0.3s;
}

.lm-timer-icon {
    width: 18px;
    height: 18px;
    color: #94a3b8;
    flex-shrink: 0;
    transition: color 0.3s;
}

.lm-timer-num {
    font-size: 1.1em;
    font-weight: 900;
    color: #fff;
    min-width: 22px;
    text-align: center;
    font-variant-numeric: tabular-nums;
    transition: color 0.3s;
    line-height: 1;
}

.lm-timer-label {
    font-size: 0.7em;
    color: #64748b;
    font-weight: 500;
    letter-spacing: 0.3px;
}

/* Thin progress track */
.lm-timer-track-wrap {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.lm-timer-track-bg {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    height: 6px;
    overflow: hidden;
}

.lm-timer-bar {
    height: 100%;
    width: 100%;
    border-radius: 999px;
    background: #38bdf8;
    transition: width 0.95s linear, background 0.4s;
    box-shadow: 0 0 8px rgba(56, 189, 248, 0.6);
}

/* ── Colour stages ── */
.lm-timer-green .lm-timer-bar {
    background: #38bdf8;
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.55);
}

.lm-timer-green .lm-timer-icon {
    color: #38bdf8;
}

.lm-timer-green .lm-timer-badge {
    border-color: rgba(56, 189, 248, 0.25);
    background: rgba(56, 189, 248, 0.08);
}

.lm-timer-orange .lm-timer-bar {
    background: #fb923c;
    box-shadow: 0 0 10px rgba(251, 146, 60, 0.55);
}

.lm-timer-orange .lm-timer-icon {
    color: #fb923c;
}

.lm-timer-orange .lm-timer-num {
    color: #fb923c;
}

.lm-timer-orange .lm-timer-badge {
    border-color: rgba(251, 146, 60, 0.3);
    background: rgba(251, 146, 60, 0.08);
}

.lm-timer-red .lm-timer-bar {
    background: #f43f5e;
    box-shadow: 0 0 10px rgba(244, 63, 94, 0.6);
    animation: lm-timer-flicker 0.55s ease infinite alternate;
}

.lm-timer-red .lm-timer-icon {
    color: #f43f5e;
}

.lm-timer-red .lm-timer-num {
    color: #f43f5e;
}

.lm-timer-red .lm-timer-badge {
    border-color: rgba(244, 63, 94, 0.4);
    background: rgba(244, 63, 94, 0.1);
    animation: lm-badge-shake 0.55s ease infinite alternate;
}

@keyframes lm-timer-flicker {
    from {
        opacity: 1;
        box-shadow: 0 0 10px rgba(244, 63, 94, 0.7);
    }

    to {
        opacity: 0.7;
        box-shadow: 0 0 4px rgba(244, 63, 94, 0.3);
    }
}

@keyframes lm-badge-shake {
    from {
        transform: scale(1);
    }

    to {
        transform: scale(1.04);
    }
}

/* ── Modal body (question area) ── */
.lm-modal-body {
    padding: 24px 22px 28px;
    flex: 1;
    background: var(--lm-bg-wrap);
}

.lm-body-fade {
    opacity: 0;
    transition: opacity 0.25s ease;
}

/* Question block inside modal */
.lm-question-block {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.lm-question-text {
    font-size: 1.13em;
    font-weight: 700;
    line-height: 1.75;
    color: var(--lm-text);
    margin: 0 0 4px;
    padding: 0;
    background: none !important;
    border: none !important;
    box-shadow: none !important;
}

/* Options */
.lm-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.lm-option-btn,
.lm-option-btn:visited,
.lm-wrap .lm-option-btn {
    display: flex !important;
    align-items: center !important;
    gap: 0 !important;
    background: #fff !important;
    border: 2px solid #c5d9d2 !important;
    border-radius: 11px !important;
    padding: 14px 18px !important;
    font-size: 1em !important;
    font-weight: 600 !important;
    color: var(--lm-text) !important;
    cursor: pointer !important;
    text-align: right !important;
    direction: rtl !important;
    width: 100% !important;
    font-family: inherit !important;
    line-height: 1.5 !important;
    transition: background 0.15s, border-color 0.15s, box-shadow 0.15s !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05) !important;
    outline: none !important;
    /* reset any theme overrides */
    text-decoration: none !important;
    letter-spacing: normal !important;
}

.lm-option-btn:hover:not(:disabled),
.lm-wrap .lm-option-btn:hover:not(:disabled) {
    background: var(--lm-bg-q) !important;
    border-color: var(--lm-btn) !important;
    box-shadow: 0 4px 14px rgba(0, 177, 116, 0.18) !important;
    color: var(--lm-text) !important;
    transform: none !important;
    text-decoration: none !important;
}

.lm-option-btn:focus:not(:disabled) {
    outline: 3px solid rgba(0, 177, 116, 0.4) !important;
    outline-offset: 2px !important;
}

/* Correct answer highlight */
.lm-opt-correct,
.lm-wrap .lm-opt-correct {
    background: var(--lm-correct) !important;
    border-color: #4ab898 !important;
    color: #fff !important;
    box-shadow: 0 4px 14px rgba(117, 207, 176, 0.4) !important;
}

/* Wrong answer highlight */
.lm-opt-wrong,
.lm-wrap .lm-opt-wrong {
    background: var(--lm-wrong) !important;
    border-color: #d4737a !important;
    color: #fff !important;
    box-shadow: 0 4px 14px rgba(231, 147, 153, 0.4) !important;
}

.lm-option-btn:disabled {
    cursor: default;
}

.lm-disabled {
    opacity: 0.75;
}

/* Feedback banner */
.lm-feedback {
    padding: 12px 16px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.97em;
    line-height: 1.5;
    display: none;
    direction: rtl;
}

.lm-fb-correct {
    background: var(--lm-correct);
    color: #fff;
}

.lm-fb-wrong {
    background: var(--lm-wrong);
    color: #fff;
}

.lm-fb-timeout {
    background: #f0a500;
    color: #fff;
}

.lm-fb-icon {
    font-size: 1.2em;
    vertical-align: middle;
    margin-left: 6px;
}

/* Next / Results button */
.lm-next-btn {
    background: var(--lm-btn);
    color: #fff;
    border: none;
    padding: 14px 20px;
    border-radius: 11px;
    font-size: 1em;
    font-weight: 800;
    cursor: pointer;
    width: 100%;
    letter-spacing: 0.5px;
    transition: background 0.18s, transform 0.12s;
    font-family: inherit;
}

.lm-next-btn:hover {
    background: var(--lm-btn-dark);
    transform: translateY(-1px);
}

/* Loading spinner */
.lm-loading-spinner {
    text-align: center;
    padding: 40px 20px;
    color: #777;
}

.lm-spinner {
    width: 42px;
    height: 42px;
    border: 4px solid #c9d8d2;
    border-top-color: var(--lm-btn);
    border-radius: 50%;
    animation: lm-spin 0.8s linear infinite;
    margin: 0 auto 14px;
}

@keyframes lm-spin {
    to {
        transform: rotate(360deg);
    }
}

/* ---- Daily Done (inside modal) ---- */
.lm-daily-done {
    text-align: center;
    padding: 10px 0 10px;
    direction: rtl;
}

.lm-trophy {
    font-size: 3.5em;
    margin-bottom: 10px;
}

.lm-daily-done h3 {
    font-size: 1.4em;
    margin-bottom: 10px;
    color: var(--lm-text);
}

.lm-daily-stats {
    font-size: 1em;
    margin-bottom: 18px;
    color: #444;
}

.lm-daily-review {
    text-align: right;
    display: flex;
    flex-direction: column;
    gap: 9px;
    margin-bottom: 18px;
}

.lm-review-row {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 11px 14px;
    border-radius: 10px;
    background: #fff;
    border-right: 4px solid #ccc;
    direction: rtl;
}

.lm-review-correct {
    background: #e5f8f1;
    border-color: var(--lm-correct);
}

.lm-review-wrong {
    background: #fceaec;
    border-color: var(--lm-wrong);
}

.lm-review-icon {
    font-size: 1.3em;
    flex-shrink: 0;
    line-height: 1.4;
}

.lm-review-q {
    margin: 0 0 4px;
    font-weight: 600;
    font-size: 0.9em;
}

.lm-review-answer {
    margin: 0;
    font-size: 0.85em;
    color: #555;
}

.lm-spin-unlock {
    display: inline-block;
    background: var(--lm-correct);
    color: #fff;
    padding: 10px 18px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.93em;
    margin-bottom: 8px;
}

.lm-spin-locked {
    display: inline-block;
    background: #fff3cd;
    color: #7a5500;
    padding: 10px 18px;
    border-radius: 8px;
    font-size: 0.9em;
    margin-bottom: 8px;
}

.lm-comeback {
    color: #888;
    font-size: 0.88em;
    margin-top: 8px;
}

.lm-total-score {
    font-size: 1.05em;
    font-weight: 700;
    margin-top: 8px;
    color: var(--lm-btn-dark);
}

.lm-notice {
    text-align: center;
    padding: 20px;
    color: #555;
    font-size: 1em;
}

/* Come-back notice on outer card */
.lm-comeback-note {
    text-align: center;
    color: #888;
    font-size: 0.88em;
    margin-top: 10px;
}

/* ============================================================
   PRIZE POPUP (after wheel spin)
   ============================================================ */

.lm-prize-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    backdrop-filter: blur(4px);
    direction: rtl;
}

.lm-prize-box {
    position: relative;
    background: #fff;
    border-radius: 24px;
    padding: 36px 32px 30px;
    max-width: 440px;
    width: 100%;
    text-align: center;
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.35);
    transform: scale(0.8) translateY(40px);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
}

.lm-prize-box-in {
    transform: scale(1) translateY(0) !important;
    opacity: 1 !important;
}

.lm-prize-close {
    position: absolute;
    top: 14px;
    left: 14px;
    background: #f1f5f9;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 0.9em;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s;
}

.lm-prize-close:hover {
    background: #e2e8f0;
}

/* Wheel image in prize popup — replaces both confetti and old icon */
.lm-prize-wheel-img {
    display: block;
    width: 400px;
    height: 400px;
    margin: -255px auto 0px;
    object-fit: contain;
    animation: lm-wheel-spin-in 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) 0.1s both;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.18));
}

@keyframes lm-wheel-spin-in {
    from {
        transform: rotate(-200deg) scale(0.2);
        opacity: 0;
    }

    to {
        transform: rotate(0deg) scale(1);
        opacity: 1;
    }
}

.lm-prize-headline {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 10px;
    letter-spacing: -0.5px;
}

.lm-prize-body {
    font-size: 1.05em;
    line-height: 1.7;
    color: #334155;
    margin: 0 0 18px;
}

.lm-prize-detail {
    font-size: 0.88em;
    color: #64748b;
    margin: 6px 0 0;
    display: none;
}

/* Code box */
.lm-prize-code-box {
    background: #d4d9d7;
    border-radius: 24px;
    padding: 14px 18px;
    margin-bottom: 14px;
}

.lm-prize-code-label {
    display: block;
    font-size: 0.8em;
    color: #18352b;
    margin-bottom: 6px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.lm-prize-code {
    font-size: 1.4em;
    font-weight: 900;
    letter-spacing: 3px;
    color: #18352b;
    word-break: break-all;
    margin-bottom: 10px;
    font-family: 'Courier New', monospace;
}

.lm-prize-copy-btn {
    background: #a7b1ae;
    color: #fff;
    border: none;
    padding: 8px 18px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 20px;
    font-weight: 700;
    transition: background 0.15s;
    font-family: inherit;
}

.lm-prize-copy-btn:hover {
    background: #334155;
}

.lm-prize-expiry {
    font-size: 0.82em;
    color: #94a3b8;
    margin: 8px 0 12px;
}

.lm-prize-shop-btn {
    display: inline-block;
    background: var(--lm-btn, #00b174);
    color: #fff !important;
    padding: 11px 22px;
    border-radius: 10px;
    font-weight: 800;
    font-size: 0.97em;
    text-decoration: none !important;
    margin-bottom: 14px;
    transition: background 0.15s, transform 0.12s;
}

.lm-prize-shop-btn:hover {
    background: #009962 !important;
    transform: translateY(-1px);
}

/* OK button */
.lm-prize-ok-btn {
    display: block;
    width: 100%;
    padding: 13px;
    border: none;
    border-radius: 12px;
    font-size: 1em;
    font-weight: 800;
    cursor: pointer;
    margin-top: 6px;
    transition: opacity 0.15s, transform 0.12s;
    font-family: inherit;
}

.lm-prize-ok-btn:hover {
    opacity: 0.88;
    transform: translateY(-1px);
}

/* Colour themes */
.lm-prize-voucher {
    border-top: 6px solid #f59e0b;
}

.lm-prize-voucher .lm-prize-headline {
    color: #00b174;
    ;
}

.lm-prize-voucher .lm-prize-ok-btn {
    background: #f59e0b;
    color: #fff;
    display: none;
}

.lm-prize-points {
    border-top: 6px solid #00b174;
}

.lm-prize-points .lm-prize-headline {
    color: #065f46;
}

.lm-prize-points .lm-prize-ok-btn {
    background: #00b174;
    color: #fff;
}

.lm-prize-double {
    border-top: 6px solid #6366f1;
}

.lm-prize-double .lm-prize-headline {
    color: #3730a3;
}

.lm-prize-double .lm-prize-ok-btn {
    background: #6366f1;
    color: #fff;
}

.lm-prize-none {
    border-top: 6px solid #94a3b8;
}

.lm-prize-none .lm-prize-headline {
    color: #475569;
}

.lm-prize-none .lm-prize-ok-btn {
    background: #94a3b8;
    color: #fff;
}

@media (max-width: 480px) {
    .lm-prize-box {
        padding: 28px 20px 22px;
    }

    .lm-prize-icon {
        font-size: 3em;
    }

    .lm-prize-headline {
        font-size: 1.5em;
    }
}

/* ============================================================
   WHEEL OF FORTUNE
   ============================================================ */

/* ── Wheel: clean centred layout ── */
.lm-wheel-wrap {
    margin: 30px auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 22px;
    direction: rtl;
}

/* Stage holds the canvas + the pointer on top */
.lm-wheel-stage {
    position: relative;
    display: inline-block;
    line-height: 0;
    /* removes gap below canvas */
}

/* SVG pointer arrow above the wheel */
.lm-wheel-pointer-wrap {
    position: absolute;
    top: -28px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    width: 44px;
    height: 54px;
}

.lm-wheel-pointer-svg {
    width: 44px;
    height: 54px;
    display: block;
    filter:
        drop-shadow(0 3px 6px rgba(0, 0, 0, 0.5)) drop-shadow(0 0 10px rgba(239, 71, 111, 0.6));
}

/* SVG wheel container */
.lm-wheel-svg-container {
    display: block;
    width: 520px;
    height: 520px;
    max-width: 100%;
    border-radius: 50%;
    overflow: hidden;
    box-shadow:
        0 18px 60px rgba(0, 0, 0, 0.55),
        0 6px 20px rgba(0, 0, 0, 0.35);
}

.lm-wheel-svg-container canvas {
    display: block;
    width: 100% !important;
    height: 100% !important;
    border-radius: 50%;
}

/* Spin button */
.lm-wheel-spin-btn {
    background: linear-gradient(135deg, #ff6b35, #f7c948) !important;
    color: #fff !important;
    border: none !important;
    padding: 16px 42px !important;
    border-radius: 50px !important;
    font-size: 1.22em !important;
    font-weight: 800 !important;
    cursor: pointer !important;
    transition: transform 0.15s, box-shadow 0.15s !important;
    letter-spacing: 0.3px !important;
    text-decoration: none !important;
    display: inline-block !important;
    line-height: 1.3 !important;
}

.lm-wheel-spin-btn:hover:not(:disabled) {
    transform: translateY(-3px) scale(1.03) !important;
    color: #fff !important;
    text-decoration: none !important;
}

.lm-wheel-spin-btn.lm-btn-full {
    display: block !important;
    width: 100% !important;
}

.lm-wheel-spin-btn .lm-btn-icon {
    display: inline-flex;
    align-items: center;
    margin-left: 6px;
}

.lm-wheel-spin-btn:disabled {
    background: linear-gradient(135deg, #b0bec5, #cfd8dc) !important;
    box-shadow: none !important;
    cursor: default !important;
    opacity: 0.75 !important;
    transform: none !important;
}

/* Chances counter */
.lm-wheel-chances {
    font-size: 1.06em;
    font-weight: 600;
    color: #475569;
    background: #f1f5f9;
    border: 1.5px solid #e2e8f0;
    border-radius: 30px;
    padding: 9px 26px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.lm-wheel-chances-num {
    font-size: 1.35em;
    font-weight: 900;
    color: #00b174;
    min-width: 22px;
    text-align: center;
    display: inline-block;
}

/* Error/result banner */
.lm-wheel-result {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    border-radius: 10px;
    animation: lm-pop 0.35s ease;
    width: 100%;
    box-sizing: border-box;
}

.lm-result-win {
    background: #e6f9f0;
    border: 2px solid #27ae60;
    color: #1a5e3a;
}

.lm-result-none {
    background: #f4f5f7;
    border: 2px solid #bbb;
    color: #555;
}

.lm-result-error {
    background: #fdecea;
    border: 2px solid #e53935;
    color: #7b1a1a;
}

.lm-result-icon {
    font-size: 2em;
    line-height: 1;
}

.lm-result-text {
    font-size: 0.95em;
    line-height: 1.5;
}

@keyframes lm-pop {
    0% {
        transform: scale(0.85);
        opacity: 0;
    }

    60% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Responsive */
@media (max-width: 560px) {
    .lm-wheel-svg-container {
        width: 92vw !important;
        height: 92vw !important;
    }

    .lm-wheel-spin-btn {
        padding: 14px 28px !important;
        font-size: 1.05em !important;
    }
}

/* ============================================================
   LEADERBOARD
   ============================================================ */

.lm-lb-wrap {
    direction: rtl;
}

.lm-lb-list {
    background: #2c4f42;
    border-radius: 24px;
    padding: 12px;
    overflow: hidden;
}

.lm-lb-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 12px;
    border-radius: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    transition: background 0.15s;
}

.lm-lb-row:last-child {
    border-bottom: none;
}

.lm-lb-row:hover {
    background: rgba(255, 255, 255, 0.06);
}

.lm-lb-top3 {
    background: rgba(255, 255, 255, 0.04);
}

.lm-lb-me {
    background: rgba(0, 178, 116, 0.18) !important;
    border-bottom-color: rgba(0, 178, 116, 0.2) !important;
}

.lm-lb-me:hover {
    background: rgba(0, 178, 116, 0.24) !important;
}

.lm-lb-rank {
    width: 36px;
    text-align: center;
    flex-shrink: 0;
}

.lm-lb-medal {
    font-size: 1.5em;
    line-height: 1;
}

.lm-lb-rank-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    font-weight: 700;
    font-size: 0.85em;
    color: #fff;
}

.lm-lb-me .lm-lb-rank-num {
    background: #00b274;
    color: #fff;
}

/* SVG avatar */
.lm-lb-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    flex-shrink: 0;
    display: block;
}

.lm-lb-info {
    flex: 1;
    min-width: 0;
}

.lm-lb-name {
    font-weight: 600;
    font-size: 0.97em;
    color: #e0f0ea;
    display: flex;
    align-items: center;
    gap: 7px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lm-lb-score {
    display: flex;
    align-items: baseline;
    gap: 4px;
    flex-shrink: 0;
}

.lm-lb-pts {
    font-size: 16px;
    font-weight: 800;
    color: #a0c5b6;
}

.lm-lb-pts-label {
    font-size: 16px;
    font-weight: 500;
    color: #a0c5b6;
}

/* شما badge */
.lm-you-badge {
    display: inline-block;
    background: #00b274;
    color: #fff;
    font-size: 0.65em;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 20px;
    vertical-align: middle;
    flex-shrink: 0;
}

/* Separator */
.lm-lb-separator {
    text-align: center;
    padding: 8px;
    color: rgba(255, 255, 255, 0.3);
    font-size: 1em;
    letter-spacing: 4px;
}

@media (max-width: 520px) {
    .lm-lb-row {
        padding: 9px 10px;
        gap: 10px;
    }
}

/* ── Real-time update animations ── */

/* Spin button pulse when it becomes available */
@keyframes lm-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(230, 126, 34, 0.7);
    }

    70% {
        box-shadow: 0 0 0 14px rgba(230, 126, 34, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(230, 126, 34, 0);
    }
}

.lm-btn-pulse {
    animation: lm-pulse 0.9s ease 2;
}

/* Leaderboard list fade during swap */
.lm-lb-updating {
    opacity: 0.4;
    transition: opacity 0.15s ease;
}

#lm-lb-list {
    transition: opacity 0.15s ease;
}

/* Score value flash on update */
@keyframes lm-score-flash {
    0% {
        color: #27ae60;
        transform: scale(1.18);
    }

    100% {
        color: inherit;
        transform: scale(1);
    }
}

.lm-score-flash {
    animation: lm-score-flash 0.5s ease;
}


/* ── Play Gate Widget ──────────────────────────────────────── */
.lm-play-gate {
    direction: rtl;
    font-family: inherit;
}

.lm-pg-btn-wrap {
    text-align: center;
}

.lm-pg-btn {
    display: inline-block;
    padding: 14px 36px;
    background: var(--lm-btn) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 12px !important;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease;
    line-height: 1.4;
    letter-spacing: 0.3px;
}

.lm-pg-btn:hover,
.lm-pg-btn:focus {
    background: var(--lm-btn-dark) !important;
    color: #fff !important;
    outline: none;
}

/* Login form inside quiz-style modal body */
.lm-pg-login-body .gpl-login-wrapper {
    max-width: 100%;
    background: transparent;
}

.lm-pg-login-body .gpl-button--primary {
    background: var(--lm-btn) !important;
    color: #fff !important;
}

.lm-pg-login-body .gpl-button--primary:hover {
    background: var(--lm-btn-dark) !important;
}

/* Wheel highlight pulse after quiz done */
@keyframes lm-pg-wheel-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 177, 116, 0.55);
    }

    70% {
        box-shadow: 0 0 0 22px rgba(0, 177, 116, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(0, 177, 116, 0);
    }
}

.lm-pg-wheel-highlight {
    animation: lm-pg-wheel-pulse 1.1s ease 3;
    border-radius: 16px;
}

/* ── Wheel guest overlay ───────────────────────────────────── */
.lm-wheel-stage {
    position: relative;
}

.lm-wheel-guest-overlay {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: rgba(10, 20, 15, 0.55);
    backdrop-filter: blur(3px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 4;
}

.lm-wheel-guest-box {
    text-align: center;
    padding: 20px 24px;
    background: rgba(0, 177, 116, 0.18);
    border: 1.5px solid rgba(0, 177, 116, 0.45);
    border-radius: 16px;
    color: #fff;
    max-width: 72%;
    backdrop-filter: blur(6px);
}

.lm-wheel-guest-icon {
    display: block;
    font-size: 2.2rem;
    margin-bottom: 8px;
    line-height: 1;
}

.lm-wheel-guest-msg {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.5;
    color: #d4f5e9;
}

/* ── Login form inside play-gate modal — polished inputs ────── */
.lm-pg-login-body {
    --gpl-input-bg: #1a2e24;
    --gpl-input-border: #2d5040;
    --gpl-input-focus: #00b174;
    --gpl-input-text: #e0f0ea;
    --gpl-label-color: #a0c5b6;
    background: #0c1f1b;
    border-radius: 0 0 20px 20px;
}

.lm-pg-login-body .gpl-login-wrapper {
    max-width: 100%;
    background: transparent;
}

.lm-pg-login-body .gpl-label {
    color: var(--gpl-label-color);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 6px;
}

.lm-pg-login-body .gpl-input {
    background: var(--gpl-input-bg) !important;
    border: 1.5px solid var(--gpl-input-border) !important;
    border-radius: 10px !important;
    color: var(--gpl-input-text) !important;
    padding: 0.75rem 1rem !important;
    font-size: 1rem !important;
    font-family: inherit !important;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none !important;
}

.lm-pg-login-body .gpl-input:focus {
    border-color: var(--gpl-input-focus) !important;
    box-shadow: 0 0 0 3px rgba(0, 177, 116, 0.2) !important;
    outline: none !important;
}

.lm-pg-login-body .gpl-input::placeholder {
    color: rgba(160, 197, 182, 0.45) !important;
}

.lm-pg-login-body .gpl-input--otp-digit {
    background: var(--gpl-input-bg) !important;
    border: 1.5px solid var(--gpl-input-border) !important;
    border-radius: 10px !important;
    color: var(--gpl-input-text) !important;
    font-size: 1.25rem !important;
    font-weight: 700 !important;
    min-height: 3rem !important;
}

.lm-pg-login-body .gpl-input--otp-digit:focus {
    border-color: var(--gpl-input-focus) !important;
    box-shadow: 0 0 0 3px rgba(0, 177, 116, 0.2) !important;
}

.lm-pg-login-body .gpl-button--primary {
    background: #00b174 !important;
    color: #fff !important;
    border-radius: 10px !important;
    padding: 0.8rem 1rem !important;
    font-size: 1rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.3px;
    border: none !important;
    transition: background 0.2s, transform 0.1s;
}

.lm-pg-login-body .gpl-button--primary:hover,
.lm-pg-login-body .gpl-button--primary:focus {
    background: #009962 !important;
    color: #fff !important;
    transform: translateY(-1px);
}

.lm-pg-login-body .gpl-login-message.is-error {
    background: rgba(239, 71, 111, 0.15);
    color: #ffa0b8;
    border-radius: 8px;
}

.lm-pg-login-body .gpl-login-message.is-success {
    background: rgba(0, 177, 116, 0.15);
    color: #7fffd4;
    border-radius: 8px;
}

.lm-pg-login-body .gpl-otp-meta-link {
    color: #7ecfb0 !important;
    background: none !important;
    border: none !important;
    cursor: pointer !important;
    font-size: 0.8rem !important;
    padding: 0 !important;
    text-decoration: underline !important;
}

.lm-pg-login-body .gpl-otp-meta-link:disabled {
    opacity: 0.45 !important;
    cursor: default !important;
    text-decoration: none !important;
}

.lm-pg-login-body .gpl-field {
    margin-bottom: 1rem;
}

/* OTP digit boxes — full-width row, equal boxes */
.lm-pg-login-body .gpl-otp-inputs {
    display: flex !important;
    flex-direction: row !important;
    justify-content: stretch !important;
    gap: 10px !important;
    direction: ltr !important;
    margin: 8px 0 !important;
    width: 100% !important;
}

.lm-pg-login-body .gpl-input--otp-digit {
    flex: 1 1 0 !important;
    width: 0 !important;
    min-width: 0 !important;
    max-width: 100% !important;
    height: 3.6rem !important;
    min-height: unset !important;
    text-align: center !important;
    font-size: 1.6rem !important;
    font-weight: 700 !important;
    padding: 0 !important;
    border-radius: 12px !important;
    box-sizing: border-box !important;
}

/* Resend + edit buttons row */
.lm-pg-login-body .gpl-otp-step-meta {
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin: 10px 0 16px !important;
    direction: rtl !important;
    gap: 8px !important;
}

.gpl-login-message.gpl-login-message--error {
  color: #da0101;
  margin-bottom: 8px;
}

.gpl-login-message.gpl-login-message----success {
  color: #029c3e;
  margin-bottom: 8px;
}