/* Rate-limit neon modal — load after styles.css */
.lmh-rate-limit {
    --rl-neon: #d4ff4d;
    --rl-neon-dim: rgba(212, 255, 77, 0.55);
    --rl-panel: rgba(10, 12, 16, 0.97);
    --rl-text: #eef0f2;
    --rl-muted: rgba(255, 255, 255, 0.52);
    position: fixed;
    inset: 0;
    z-index: 12100;
    display: grid;
    place-items: center;
    padding: 20px;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition:
        opacity 0.28s cubic-bezier(0.22, 1, 0.36, 1),
        visibility 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.lmh-rate-limit.is-open {
    pointer-events: auto;
    opacity: 1;
    visibility: visible;
}

.lmh-rate-limit__backdrop {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 50% 32%, rgba(212, 255, 77, 0.1), transparent 48%),
        rgba(4, 5, 8, 0.76);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.lmh-rate-limit__card {
    position: relative;
    z-index: 1;
    width: min(100%, 380px);
    padding: 26px 22px 20px;
    border-radius: 14px;
    border: 1px solid rgba(212, 255, 77, 0.18);
    background:
        radial-gradient(90% 55% at 0% 0%, rgba(212, 255, 77, 0.09), transparent 55%),
        linear-gradient(168deg, rgba(18, 20, 26, 0.98) 0%, var(--rl-panel) 100%);
    box-shadow:
        0 22px 56px rgba(0, 0, 0, 0.55),
        0 0 64px rgba(212, 255, 77, 0.08);
    text-align: center;
    color: var(--rl-text);
    transform: scale(0.94) translateY(12px);
    opacity: 0;
    transition:
        transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
        opacity 0.28s ease;
}

.lmh-rate-limit.is-open .lmh-rate-limit__card {
    transform: none;
    opacity: 1;
}

.lmh-rate-limit__eyebrow {
    margin: 0 0 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-family: "Oxanium", sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--rl-neon);
    text-shadow: 0 0 16px rgba(212, 255, 77, 0.35);
}

.lmh-rate-limit__eyebrow svg {
    width: 14px;
    height: 14px;
}

.lmh-rate-limit__title {
    margin: 0 0 10px;
    font-family: "Bebas Neue", sans-serif;
    font-size: 1.85rem;
    letter-spacing: 0.04em;
    line-height: 1.05;
    color: var(--rl-text);
}

.lmh-rate-limit__body {
    margin: 0 0 16px;
    font-size: 0.9rem;
    line-height: 1.45;
    color: var(--rl-muted);
}

.lmh-rate-limit__body strong {
    color: rgba(238, 242, 246, 0.95);
    font-weight: 700;
}

.lmh-rate-limit__timer {
    margin: 0 auto 18px;
    width: fit-content;
    min-width: 7.5rem;
    padding: 10px 18px;
    border-radius: 10px;
    border: 1px solid rgba(212, 255, 77, 0.22);
    background: rgba(0, 0, 0, 0.35);
    font-family: "Oxanium", sans-serif;
    font-size: 1.65rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--rl-neon);
    text-shadow: 0 0 18px rgba(212, 255, 77, 0.4);
    tabular-nums: true;
    font-variant-numeric: tabular-nums;
}

.lmh-rate-limit__timer-label {
    margin: 0 0 14px;
    font-size: 0.75rem;
    letter-spacing: 0.04em;
    color: var(--rl-muted);
}

.lmh-rate-limit__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 140px;
    padding: 11px 22px;
    border-radius: 10px;
    border: 1px solid rgba(212, 255, 77, 0.35);
    background: linear-gradient(180deg, rgba(212, 255, 77, 0.18), rgba(212, 255, 77, 0.08));
    color: var(--rl-neon);
    font-family: "Oxanium", sans-serif;
    font-size: 0.92rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    cursor: pointer;
    transition:
        border-color 0.15s ease,
        background 0.15s ease,
        color 0.15s ease,
        box-shadow 0.15s ease;
}

.lmh-rate-limit__btn:hover,
.lmh-rate-limit__btn:focus-visible {
    border-color: rgba(212, 255, 77, 0.55);
    background: linear-gradient(180deg, rgba(212, 255, 77, 0.28), rgba(212, 255, 77, 0.12));
    color: #eaff9a;
    box-shadow: 0 0 24px rgba(212, 255, 77, 0.18);
    outline: none;
}

@media (prefers-reduced-motion: reduce) {
    .lmh-rate-limit,
    .lmh-rate-limit__card {
        transition: none;
    }
}
