/* ================================================================
   Masluland — Auth System Styles
   Login, Personal Area, Profile, Trail Cards, Modal
   ================================================================ */

/* ================================================================
   BUG A FIX: Prevent admin bar dashicons from breaking nav SVGs
   Nuclear: kill ALL pseudo-elements on nav buttons/links,
   force SVG display, prevent dashicons font-family leak.
   ================================================================ */
body.admin-bar .ml-nav button::before,
body.admin-bar .ml-nav button::after,
body.admin-bar .ml-nav a::before,
body.admin-bar .ml-nav a::after,
body.admin-bar .ml-nav .ml-nav__search-icon::before,
body.admin-bar .ml-nav .ml-nav__search-icon::after,
body.admin-bar .ml-nav .ml-nav__user-btn::before,
body.admin-bar .ml-nav .ml-nav__user-btn::after,
body.admin-bar .ml-nav .ml-nav__cta::before,
body.admin-bar .ml-nav .ml-nav__cta::after {
    content: none !important;
    display: none !important;
    font-family: inherit !important;
}
body.admin-bar .ml-nav button,
body.admin-bar .ml-nav a {
    font-family: 'Rubik', sans-serif !important;
}
/* Keep every nav svg visible... */
body.admin-bar .ml-nav svg {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}
/* ...but only blank the fill on the STROKE-based icons (search / hamburger).
   The account glyph is fill-based, so excluding it keeps the person icon from
   disappearing for logged-in users. */
body.admin-bar .ml-nav svg:not(.ml-nav__account-svg) {
    fill: none !important;
}
/* Ensure search icon button and user btn don't get dashicons background */
body.admin-bar .ml-nav__search-icon,
body.admin-bar .ml-nav__user-btn {
    background-image: none !important;
    font-family: 'Rubik', sans-serif !important;
}

/* ================================================================
   BUG B FIX: NSL (Nextend Social Login) button centering
   Override NSL's data-align attribute + all its container classes
   ================================================================ */
.nsl-buttons-wrapper {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    width: 100% !important;
    margin-bottom: 28px !important;
}

/* Override NSL data-align attribute — this is what NSL uses to set alignment */
.nsl-container[data-align],
.nsl-container[data-align="left"],
.nsl-container[data-align="right"],
.nsl-container[data-align="center"] {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
}

/* Target all NSL container variants */
.nsl-buttons-wrapper > div,
.nsl-container,
.nsl-container-block,
.nsl-container-inline,
div[class*="nsl-container"] {
    margin-left: auto !important;
    margin-right: auto !important;
    max-width: 320px !important;
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
}

/* Target NSL button elements */
.nsl-button,
div[class*="nsl-button"],
.nsl-container .nsl-button {
    width: 100% !important;
    max-width: 320px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* Target the actual <a> tag inside NSL buttons */
.nsl-button a,
.nsl-container .nsl-button a {
    width: 100% !important;
    justify-content: center !important;
    text-align: center !important;
}

/* ================================================================
   BUG C FIX: Login support text — max specificity, hardcoded hex
   ================================================================ */
html body .ml-login .ml-login__card .login-support-wrap {
    text-align: center !important;
    margin-top: 24px !important;
    padding: 0 16px !important;
}
html body .ml-login .ml-login__card .login-support-wrap .login-support-line1 {
    font-size: 13px !important;
    font-weight: 500 !important;
    color: #DDB88B !important;
    margin: 0 0 8px 0 !important;
    line-height: 1.5 !important;
    font-family: 'Rubik', sans-serif !important;
}
html body .ml-login .ml-login__card .login-support-wrap .login-support-line2 {
    margin: 0 !important;
}
html body .login-support-wrap .login-support-line2 a,
html body .login-support-wrap .login-support-line2 a:link,
html body .login-support-wrap .login-support-line2 a:visited,
html body .login-support-wrap .login-support-line2 a:hover,
html body .login-support-wrap .login-support-line2 a:active {
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #DDB88B !important;
    text-decoration: underline !important;
    text-underline-offset: 3px !important;
}
html body .login-support-wrap .login-support-line2 a:hover {
    color: #c9a070 !important;
}

/* ================================================================
   LOGIN PAGE
   ================================================================ */

.ml-login {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: calc(var(--nav-h, 58px) + 24px) 24px 40px;
    direction: rtl;
}
.ml-login__card {
    width: 100%;
    max-width: 420px;
    background: var(--dark3, #2c2c2c);
    border: 1px solid var(--dark4, #383838);
    border-radius: var(--radius, 12px);
    padding: 40px 32px;
    text-align: center;
}
.ml-login__logo {
    font-size: 18px;
    font-weight: 400;
    color: var(--muted, #666);
    letter-spacing: 2px;
    margin-bottom: 24px;
    font-family: 'Rubik', sans-serif;
}
.ml-login__logo b { font-weight: 800; color: var(--sand, #DDB88B); }
.ml-login__title {
    font-size: 24px;
    font-weight: 800;
    color: var(--white, #f4f1eb);
    margin: 0 0 10px;
    font-family: 'Rubik', sans-serif;
}
.ml-login__sub {
    font-size: 13px;
    font-weight: 300;
    color: var(--light, #aaa);
    line-height: 1.6;
    margin: 0 0 28px;
    font-family: 'Rubik', sans-serif;
}
/* NSL buttons wrapper margin */
.nsl-buttons-wrapper { margin-bottom: 28px; }

/* ================================================================
   NAV USER BUTTON (logged in)
   ================================================================ */

.ml-nav__user-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(221,184,139,.12);
    border: 1px solid rgba(221,184,139,.25);
    color: var(--sand, #DDB88B);
    transition: background .15s;
    flex-shrink: 0;
}
.ml-nav__user-btn:hover { background: rgba(221,184,139,.2); }
.ml-nav__user-btn svg { display: block; }

/* ================================================================
   AVATAR
   ================================================================ */

.ml-avatar {
    border-radius: 50%;
    object-fit: cover;
    display: block;
}
.ml-avatar--initials {
    border-radius: 50%;
    background: linear-gradient(135deg, var(--sand2, #c9a070), #6a4a20);
    color: var(--dark, #1a1a1a);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-family: 'Rubik', sans-serif;
}

/* ================================================================
   PERSONAL AREA — DASHBOARD
   ================================================================ */

.ml-area {
    max-width: var(--max, 1100px);
    margin: 0 auto;
    padding: calc(var(--nav-h, 58px) + 60px) 24px 80px;
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 32px;
    direction: rtl;
    min-height: 70vh;
}
body.admin-bar .ml-area {
    padding-top: calc(var(--nav-h, 58px) + 60px + 32px);
}
@media screen and (max-width: 782px) {
    body.admin-bar .ml-area {
        padding-top: calc(var(--nav-h, 58px) + 60px + 46px);
    }
}

/* Sidebar */
.ml-area__sidebar {
    background: var(--dark3, #2c2c2c);
    border: 1px solid var(--dark4, #383838);
    border-radius: var(--radius, 12px);
    padding: 28px 20px;
    display: flex;
    flex-direction: column;
    align-self: start;
    position: sticky;
    top: calc(var(--nav-h, 58px) + 16px);
}
.ml-area__user { text-align: center; margin-bottom: 20px; }
.ml-area__user .ml-avatar,
.ml-area__user .ml-avatar--initials { margin: 0 auto 10px; }
.ml-area__name {
    font-size: 16px;
    font-weight: 700;
    color: var(--white, #f4f1eb);
    font-family: 'Rubik', sans-serif;
}
.ml-area__since {
    font-size: 12px;
    color: var(--muted, #666);
    font-family: 'Rubik', sans-serif;
    margin-top: 4px;
}

.ml-area__nav { margin-top: 16px; display: flex; flex-direction: column; gap: 4px; }
.ml-area__nav-item {
    all: unset;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    color: var(--light, #aaa);
    cursor: pointer;
    transition: background .15s, color .15s;
    font-family: 'Rubik', sans-serif;
}
.ml-area__nav-item:hover { background: rgba(255,255,255,.05); color: var(--white, #f4f1eb); }
.ml-area__nav-item.active { background: rgba(221,184,139,.08); color: var(--sand, #DDB88B); }
.ml-area__nav-item svg { flex-shrink: 0; }
.ml-area__sep {
    border: none;
    border-top: 1px solid var(--dark4, #383838);
    margin: 8px 0;
}
.ml-area__logout {
    margin-top: auto;
    padding-top: 16px;
    display: block;
    font-size: 12px;
    color: var(--muted, #666);
    text-decoration: none;
    text-align: center;
    font-family: 'Rubik', sans-serif;
    transition: color .15s;
}
.ml-area__logout:hover { color: #ff453a; }

/* Content area */
.ml-area__content { min-width: 0; }
.ml-area__heading {
    font-size: 20px;
    font-weight: 800;
    color: var(--white, #f4f1eb);
    margin: 0 0 20px;
    font-family: 'Rubik', sans-serif;
}

/* Empty state */
.ml-area__empty {
    text-align: center;
    padding: 48px 24px;
    color: var(--light, #aaa);
    font-size: 14px;
    font-family: 'Rubik', sans-serif;
    line-height: 1.7;
}
.ml-area__empty-text { color: var(--muted, #666); font-size: 14px; text-align: center; padding: 32px 0; }
.ml-area__cta {
    display: inline-block;
    margin-top: 16px;
    padding: 10px 28px;
    background: var(--sand, #DDB88B);
    color: var(--dark, #1a1a1a);
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    font-family: 'Rubik', sans-serif;
    transition: background .15s;
}
.ml-area__cta:hover { background: var(--sand2, #c9a070); }

/* ================================================================
   TRAIL CARD GRID (shared by my-area + profile)
   ================================================================ */

.ml-trail-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.ml-area .ml-trail-card {
    background: var(--dark3, #2c2c2c);
    border: 1px solid var(--dark4, #383838);
    border-radius: var(--radius, 12px);
    overflow: hidden;
    position: relative;
    transition: transform .2s, box-shadow .2s;
}
.ml-area .ml-trail-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,.4); }
.ml-area .ml-trail-card__link { display: block; text-decoration: none; color: inherit; }
.ml-area .ml-trail-card__img {
    height: 140px;
    overflow: hidden;
    position: relative;
    background: var(--dark2, #222);
}
.ml-area .ml-trail-card__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ml-area .ml-trail-card__placeholder {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    font-size: 32px; background: var(--dark2, #222);
}
.ml-area .ml-trail-card__badge {
    position: absolute; top: 8px; right: 8px;
    font-size: 10px; font-weight: 700; padding: 3px 10px;
    border-radius: 20px; letter-spacing: .5px;
    font-family: 'Rubik', sans-serif;
}
.ml-area .ml-trail-card__body { padding: 12px 14px; }
.ml-area .ml-trail-card__title {
    font-size: 14px; font-weight: 700; color: var(--white, #f4f1eb);
    margin-bottom: 4px; line-height: 1.3;
    font-family: 'Rubik', sans-serif;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.ml-area .ml-trail-card__meta {
    font-size: 12px; color: var(--muted, #666);
    font-family: 'Rubik', sans-serif;
}
.ml-area .ml-trail-card__heart {
    all: unset;
    position: absolute;
    top: 8px;
    left: 8px;
    width: 28px; height: 28px;
    border-radius: 50%;
    background: rgba(0,0,0,.5);
    display: flex; align-items: center; justify-content: center;
    font-size: 14px; color: #ff453a;
    cursor: pointer;
    transition: background .15s;
}
.ml-area .ml-trail-card__heart:hover { background: rgba(0,0,0,.7); }

/* ================================================================
   SETTINGS
   ================================================================ */

.ml-settings { display: flex; flex-direction: column; gap: 0; }
.ml-settings__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid var(--dark4, #383838);
    font-family: 'Rubik', sans-serif;
}
.ml-settings__row:last-child { border-bottom: none; }
.ml-settings__label { font-size: 13px; color: var(--light, #aaa); flex-shrink: 0; }
.ml-settings__value { display: flex; align-items: center; gap: 8px; }
.ml-settings__edit-btn {
    all: unset; cursor: pointer; font-size: 14px; opacity: .5;
    transition: opacity .15s;
}
.ml-settings__edit-btn:hover { opacity: 1; }
.ml-settings__input {
    all: unset;
    background: var(--dark2, #222);
    border: 1px solid var(--dark4, #383838);
    border-radius: 6px;
    padding: 6px 10px;
    font-size: 13px;
    color: var(--white, #f4f1eb);
    font-family: 'Rubik', sans-serif;
    width: 160px;
}
.ml-settings__input:focus { border-color: var(--sand, #DDB88B); }
.ml-settings__save-btn, .ml-settings__cancel-btn {
    all: unset; font-size: 12px; cursor: pointer; font-family: 'Rubik', sans-serif;
    padding: 4px 10px; border-radius: 4px;
}
.ml-settings__save-btn { background: var(--sand, #DDB88B); color: var(--dark, #1a1a1a); font-weight: 600; }
.ml-settings__cancel-btn { color: var(--muted, #666); }
.ml-settings__upload-btn {
    font-size: 12px; color: var(--sand, #DDB88B); cursor: pointer;
    font-family: 'Rubik', sans-serif;
}
.ml-settings__upload-btn:hover { text-decoration: underline; }
.ml-settings__provider {
    font-size: 13px; color: var(--white, #f4f1eb); font-weight: 500;
    font-family: 'Rubik', sans-serif;
}
.ml-settings__row--danger { border-bottom: none; padding-top: 24px; }
.ml-settings__danger-btn {
    all: unset;
    font-size: 12px; color: #ff453a; cursor: pointer;
    border: 1px solid rgba(255,69,58,.3);
    padding: 8px 18px; border-radius: 8px;
    font-family: 'Rubik', sans-serif;
    transition: background .15s;
}
.ml-settings__danger-btn:hover { background: rgba(255,69,58,.08); }

/* Toggle switch */
.ml-toggle { position: relative; display: inline-block; width: 44px; height: 24px; }
.ml-toggle input { opacity: 0; width: 0; height: 0; }
.ml-toggle__slider {
    position: absolute; inset: 0; cursor: pointer;
    background: var(--dark4, #383838); border-radius: 24px;
    transition: background .2s;
}
.ml-toggle__slider::before {
    content: ''; position: absolute; height: 18px; width: 18px;
    right: 3px; bottom: 3px; background: var(--white, #f4f1eb);
    border-radius: 50%; transition: transform .2s;
}
.ml-toggle input:checked + .ml-toggle__slider { background: var(--sand, #DDB88B); }
.ml-toggle input:checked + .ml-toggle__slider::before { transform: translateX(-20px); }

/* ================================================================
   MODAL
   ================================================================ */

.ml-modal {
    position: fixed; inset: 0; z-index: 100000;
    display: flex; align-items: center; justify-content: center;
}
.ml-modal__overlay {
    position: absolute; inset: 0;
    background: rgba(0,0,0,.7);
}
.ml-modal__card {
    position: relative;
    background: var(--dark3, #2c2c2c);
    border: 1px solid var(--dark4, #383838);
    border-radius: var(--radius, 12px);
    padding: 32px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    direction: rtl;
    z-index: 1;
}
.ml-modal__title {
    font-size: 20px; font-weight: 800; color: #ff453a;
    margin: 0 0 12px; font-family: 'Rubik', sans-serif;
}
.ml-modal__text {
    font-size: 13px; color: var(--light, #aaa); line-height: 1.7;
    margin: 0 0 24px; font-family: 'Rubik', sans-serif;
}
.ml-modal__actions { display: flex; gap: 12px; justify-content: center; }
.ml-modal__btn {
    all: unset; padding: 10px 24px; border-radius: 8px;
    font-size: 13px; font-weight: 600; cursor: pointer;
    font-family: 'Rubik', sans-serif; transition: background .15s;
}
.ml-modal__btn--danger { background: #ff453a; color: #fff; }
.ml-modal__btn--danger:hover { background: #e03e34; }
.ml-modal__btn--cancel { background: var(--dark4, #383838); color: var(--light, #aaa); }
.ml-modal__btn--cancel:hover { background: rgba(255,255,255,.1); }

/* ================================================================
   PROFILE PAGE
   ================================================================ */

.ml-profile {
    max-width: var(--max, 1100px);
    margin: 0 auto;
    padding: 40px 24px 80px;
    direction: rtl;
}
.ml-profile__header {
    text-align: center;
    margin-bottom: 32px;
}
.ml-profile__header .ml-avatar,
.ml-profile__header .ml-avatar--initials { margin: 0 auto 12px; }
.ml-profile__name {
    font-size: 22px; font-weight: 800; color: var(--white, #f4f1eb);
    margin: 0 0 4px; font-family: 'Rubik', sans-serif;
}
.ml-profile__since {
    font-size: 12px; color: var(--muted, #666);
    font-family: 'Rubik', sans-serif;
}
.ml-profile__tabs {
    display: flex; gap: 8px; justify-content: center; margin-bottom: 24px;
}
.ml-profile__tab {
    all: unset; padding: 8px 20px; border-radius: 20px;
    font-size: 13px; font-weight: 500; cursor: pointer;
    background: rgba(255,255,255,.05); color: var(--light, #aaa);
    border: 1px solid var(--dark4, #383838);
    font-family: 'Rubik', sans-serif;
    transition: all .15s;
}
.ml-profile__tab:hover { background: rgba(255,255,255,.08); }
.ml-profile__tab.active {
    background: rgba(221,184,139,.1);
    border-color: rgba(221,184,139,.3);
    color: var(--sand, #DDB88B);
}
.ml-profile__empty {
    text-align: center; color: var(--muted, #666); font-size: 14px;
    padding: 48px 0; font-family: 'Rubik', sans-serif;
}

/* ================================================================
   RESPONSIVE
   ================================================================ */

@media (max-width: 768px) {
    .ml-area {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .ml-area__sidebar {
        position: static;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        gap: 12px;
        padding: 16px;
    }
    .ml-area__user { text-align: right; display: flex; align-items: center; gap: 10px; margin-bottom: 0; flex: 1; }
    .ml-area__user .ml-avatar,
    .ml-area__user .ml-avatar--initials { margin: 0; }
    .ml-area__nav { flex-direction: row; margin-top: 0; width: 100%; }
    .ml-area__sep { display: none; }
    .ml-area__logout { margin-top: 0; padding-top: 0; }
    .ml-trail-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
    .ml-trail-grid { grid-template-columns: 1fr; }
    .ml-login__card { padding: 28px 20px; }
    .ml-modal__actions { flex-direction: column; }
}

/* ================================================================
   AUTH GATING MODAL
   Reuses .maslu-reg-card / .maslu-reg-* styles injected by masluland-core.
   Only overlay positioning + animation + close button are defined here.
   ================================================================ */

/* Full-screen backdrop — class rule.
   NO display property here — JS controls show/hide exclusively.
   JS sets display:'flex' to show, display:'none' to hide. */
.ml-auth-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.78);
    z-index: 100000;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: ml-overlay-in 0.2s ease;
}

/* ID rule — positioning only, NO display (JS controls it) */
#ml-auth-overlay {
    position: fixed !important;
    inset: 0 !important;
    z-index: 100000 !important;
    align-items: center !important;
    justify-content: center !important;
    background: rgba(0, 0, 0, 0.78) !important;
    padding: 20px !important;
}
@keyframes ml-overlay-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* Modal card — reuses .maslu-reg-card, add animation + scroll cap */
.ml-auth-modal-card {
    position: relative;
    animation: ml-modal-card-in 0.25s cubic-bezier(0.34, 1.3, 0.64, 1);
    max-height: 90vh;
    overflow-y: auto;
}
@keyframes ml-modal-card-in {
    from { opacity: 0; transform: scale(0.92) translateY(8px); }
    to   { opacity: 1; transform: scale(1)    translateY(0);   }
}

/* ================================================================
   ACTION BUTTONS — nuclear !important overrides
   Prevents Elementor/WP default button styles from applying pink background.
   Covers: GPX download, Save/heart, Share.
   ================================================================ */

/* Save / Heart button */
.ml-action-btn--save,
.ml-action-btn--save:link,
.ml-action-btn--save:visited,
.ml-action-btn--save:focus,
.ml-action-btn--save:focus-visible {
    background: rgba(255,255,255,.06) !important;
    background-color: rgba(255,255,255,.06) !important;
    background-image: none !important;
    border: 1px solid rgba(255,255,255,.08) !important;
    color: #f4f1eb !important;
    box-shadow: none !important;
    -webkit-appearance: none !important;
    appearance: none !important;
}
.ml-action-btn--save:hover,
.ml-action-btn--save:active {
    background: rgba(255,255,255,.11) !important;
    background-color: rgba(255,255,255,.11) !important;
    background-image: none !important;
}
.ml-action-btn--save.is-saved,
.ml-action-btn--save.is-saved:link,
.ml-action-btn--save.is-saved:visited,
.ml-action-btn--save.is-saved:focus {
    background: rgba(221,184,139,.12) !important;
    background-color: rgba(221,184,139,.12) !important;
    background-image: none !important;
    border-color: rgba(221,184,139,.4) !important;
    color: #DDB88B !important;
}
.ml-action-btn--save.is-saved:hover,
.ml-action-btn--save.is-saved:active {
    background: rgba(221,184,139,.18) !important;
    background-color: rgba(221,184,139,.18) !important;
    background-image: none !important;
}

/* Share button */
.ml-action-btn--share,
.ml-action-btn--share:link,
.ml-action-btn--share:visited,
.ml-action-btn--share:focus,
.ml-action-btn--share:focus-visible {
    background: rgba(255,255,255,.06) !important;
    background-color: rgba(255,255,255,.06) !important;
    background-image: none !important;
    border: 1px solid rgba(255,255,255,.08) !important;
    color: #f4f1eb !important;
    box-shadow: none !important;
    -webkit-appearance: none !important;
    appearance: none !important;
}
.ml-action-btn--share:hover,
.ml-action-btn--share:active {
    background: rgba(255,255,255,.11) !important;
    background-color: rgba(255,255,255,.11) !important;
    background-image: none !important;
}

/* ================================================================
   GPX BUTTON — nuclear !important override
   ================================================================ */
.ml-action-btn--gpx,
.ml-action-btn--gpx:link,
.ml-action-btn--gpx:visited,
.ml-action-btn--gpx:hover,
.ml-action-btn--gpx:focus,
.ml-action-btn--gpx:active {
    background-color: #2a2a2a !important;
    background-image: none !important;
    background: #2a2a2a !important;
    border: 1px solid #444 !important;
    color: #f4f1eb !important;
    box-shadow: none !important;
}
button.ml-action-btn--gpx {
    -webkit-appearance: none;
    appearance: none;
}

/* ================================================================
   FORGOT PASSWORD MINI-MODAL
   ================================================================ */

/* NO display property — JS controls show/hide exclusively.
   JS sets display:'flex' to show, display:'none' to hide. */
#ml-forgot-overlay {
    position: fixed !important;
    inset: 0 !important;
    background: rgba(0, 0, 0, 0.6) !important;
    z-index: 100001 !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 20px !important;
}

#ml-forgot-modal {
    background: var(--dark3, #2c2c2c);
    border: 1px solid var(--dark4, #383838);
    border-radius: var(--radius, 12px);
    padding: 40px 32px;
    width: 100%;
    max-width: 420px;
    position: relative;
    direction: rtl;
    text-align: right;
}

/* Close button — top-left in RTL layout */
.ml-auth-modal__close {
    position: absolute;
    top: 14px;
    left: 16px;
    background: none;
    border: none;
    color: var(--muted, #666);
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    padding: 4px 6px;
    transition: color 0.15s;
    z-index: 1;
    font-family: sans-serif;
}
.ml-auth-modal__close:hover {
    color: var(--white, #f4f1eb);
}
