/* ==========================================================================
   LMH Account modals v2 — neon settings + profile edit
   Load after styles.css / lmh-neon-ui.css
   ========================================================================== */

.lmh-account-v2 {
    --acc-panel: var(--neon-panel, rgba(12, 14, 18, 0.96));
    --acc-border: rgba(212, 255, 77, 0.16);
    --acc-border-hot: rgba(212, 255, 77, 0.32);
    --acc-glow: rgba(212, 255, 77, 0.12);
    --acc-text: #eef0f2;
    --acc-muted: rgba(255, 255, 255, 0.45);
    --acc-danger: #ff6b4a;
}

.lmh-account-v2 .lmh-modal-backdrop {
    background: rgba(4, 5, 8, 0.72);
    backdrop-filter: blur(14px);
}

/* Shared frame / close */
.lmh-account-v2.lmh-settings-modal .lmh-settings-modal__frame,
.lmh-account-v2.lmh-profile-edit-modal .lmh-profile-edit-modal__frame {
    align-items: stretch;
}

.lmh-account-v2 .lmh-settings-modal__close,
.lmh-account-v2 .lmh-profile-edit-modal__close {
    position: absolute;
    top: 10px;
    right: 10px;
    margin: 0;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: 1px solid rgba(212, 255, 77, 0.14);
    background: rgba(0, 0, 0, 0.45);
    color: rgba(255, 255, 255, 0.65);
    font-size: 1.1rem;
    line-height: 1;
    box-shadow: none;
    backdrop-filter: none;
    z-index: 3;
    transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.lmh-account-v2 .lmh-settings-modal__close:hover,
.lmh-account-v2 .lmh-profile-edit-modal__close:hover,
.lmh-account-v2 .lmh-settings-modal__close:focus-visible,
.lmh-account-v2 .lmh-profile-edit-modal__close:focus-visible {
    border-color: rgba(212, 255, 77, 0.35);
    color: var(--neon-accent, #d4ff4d);
    background: rgba(212, 255, 77, 0.08);
    outline: none;
}

/* Dialog shells */
.lmh-account-v2 .lmh-settings-modal__dialog,
.lmh-account-v2 .lmh-profile-edit-modal__dialog {
    position: relative;
    padding: 18px 16px 14px;
    border-radius: 12px;
    border: 1px solid var(--acc-border);
    background:
        radial-gradient(90% 60% at 0% 0%, rgba(212, 255, 77, 0.07), transparent 55%),
        var(--acc-panel);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.45);
    color: var(--acc-text);
    font-family: inherit;
}

.lmh-account-v2.lmh-settings-modal .lmh-settings-modal__frame {
    width: min(420px, 100%);
}

.lmh-account-v2.lmh-profile-edit-modal .lmh-profile-edit-modal__frame {
    width: min(640px, 100%);
}

/* Heads */
.lmh-account-v2 .lmh-settings-modal__head,
.lmh-account-v2 .lmh-profile-edit-modal__head {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 0 0 14px;
    padding: 0 28px 12px 0;
    border-bottom: 1px solid rgba(212, 255, 77, 0.1);
}

.lmh-account-v2 .lmh-account-v2__head-copy {
    min-width: 0;
    flex: 1;
}

.lmh-account-v2 .lmh-settings-modal__head .lmh-neon-dot,
.lmh-account-v2 .lmh-profile-edit-modal__head .lmh-neon-dot {
    flex: 0 0 auto;
    width: 6px;
    height: 6px;
    margin-top: 6px;
    border-radius: 50%;
    background: var(--neon-accent, #d4ff4d);
    box-shadow: 0 0 8px var(--neon-glow, rgba(212, 255, 77, 0.48));
}

.lmh-account-v2 .lmh-settings-modal__eyebrow,
.lmh-account-v2 .lmh-profile-edit-modal__eyebrow {
    margin: 0 0 2px;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--neon-accent-dim, #8bc34a);
    line-height: 1;
}

.lmh-account-v2 .lmh-settings-modal__title,
.lmh-account-v2 .lmh-profile-edit-modal__title {
    margin: 0;
    font-family: var(--lmh-display, "Bebas Neue", sans-serif);
    font-size: 1.45rem;
    font-weight: 400;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #f0f2f4;
    line-height: 1;
}

.lmh-account-v2 .lmh-settings-modal__lead,
.lmh-account-v2 .lmh-profile-edit-modal__lead {
    margin: 6px 0 0;
    font-size: 0.75rem;
    line-height: 1.35;
    color: var(--acc-muted);
}

/* ========== Settings sections ========== */
.lmh-account-v2 .lmh-settings-card {
    display: block;
    margin: 0 0 10px;
    padding: 12px;
    border-radius: 10px;
    border: 1px solid rgba(212, 255, 77, 0.1);
    background: rgba(0, 0, 0, 0.28);
    box-shadow: none;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.15s ease, background 0.15s ease;
    animation: none !important;
    transform: none !important;
}

.lmh-account-v2 .lmh-settings-card--profile {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.lmh-account-v2 .lmh-settings-card--profile:hover,
.lmh-account-v2 .lmh-settings-card--profile:focus-visible {
    border-color: var(--acc-border-hot);
    background: rgba(212, 255, 77, 0.05);
    outline: none;
}

.lmh-account-v2 .lmh-settings-card--telegram {
    border-color: rgba(212, 255, 77, 0.12);
}

.lmh-account-v2 .lmh-settings-card--telegram.is-linked {
    border-color: rgba(212, 255, 77, 0.28);
    background: rgba(212, 255, 77, 0.04);
}

.lmh-account-v2 .lmh-settings-card--danger {
    border-color: rgba(255, 107, 74, 0.22);
    background: rgba(255, 107, 74, 0.04);
}

.lmh-account-v2 .lmh-settings-card__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
}

.lmh-account-v2 .lmh-settings-card__brand {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    min-width: 0;
}

.lmh-account-v2 .lmh-settings-card__icon {
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    border: 1px solid rgba(212, 255, 77, 0.16);
    background: rgba(0, 0, 0, 0.4);
    color: var(--neon-accent, #d4ff4d);
    font-size: 0.85rem;
}

.lmh-account-v2 .lmh-settings-card__icon--telegram {
    color: #7dd3fc;
    border-color: rgba(125, 211, 252, 0.28);
}

.lmh-account-v2 .lmh-settings-card__icon--danger {
    color: var(--acc-danger);
    border-color: rgba(255, 107, 74, 0.35);
    background: rgba(255, 107, 74, 0.08);
}

.lmh-account-v2 .lmh-settings-card__title {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 700;
    color: #eef0f2;
    line-height: 1.2;
}

.lmh-account-v2 .lmh-settings-card__caption {
    margin: 2px 0 0;
    font-size: 0.7rem;
    color: var(--acc-muted);
    line-height: 1.3;
}

.lmh-account-v2 .lmh-settings-card__text {
    margin: 0 0 8px;
    font-size: 0.78rem;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.55);
}

.lmh-account-v2 .lmh-settings-card__body {
    flex: 1;
    min-width: 0;
}

.lmh-account-v2 .lmh-settings-card__chevron {
    flex: 0 0 auto;
    color: var(--neon-accent, #d4ff4d);
    opacity: 0.7;
    font-size: 1rem;
    transition: transform 0.15s ease, opacity 0.15s ease;
}

.lmh-account-v2 .lmh-settings-card--profile:hover .lmh-settings-card__chevron {
    transform: translateX(2px);
    opacity: 1;
}

.lmh-account-v2 .lmh-settings-badge {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    height: 22px;
    padding: 0 8px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(0, 0, 0, 0.35);
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.lmh-account-v2 .lmh-settings-badge.is-success {
    border-color: rgba(212, 255, 77, 0.4);
    background: rgba(212, 255, 77, 0.12);
    color: var(--neon-accent, #d4ff4d);
}

.lmh-account-v2 .lmh-settings-badge.is-muted {
    border-color: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.4);
}

.lmh-account-v2 .lmh-settings-steps {
    margin: 0 0 10px;
    padding: 0 0 0 1.15rem;
    font-size: 0.74rem;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.5);
}

.lmh-account-v2 .lmh-settings-steps li + li {
    margin-top: 4px;
}

.lmh-account-v2 .lmh-settings-steps li::marker {
    color: var(--neon-accent, #d4ff4d);
}

.lmh-account-v2 .lmh-settings-code {
    margin: 0 0 10px;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px dashed rgba(212, 255, 77, 0.28);
    background: rgba(0, 0, 0, 0.35);
}

.lmh-account-v2 .lmh-settings-code__label {
    display: block;
    margin: 0 0 4px;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--neon-accent-dim, #8bc34a);
}

.lmh-account-v2 .lmh-settings-code__value {
    display: block;
    font-family: var(--lmh-display, "Bebas Neue", sans-serif);
    font-size: 1.6rem;
    letter-spacing: 0.18em;
    color: var(--neon-accent, #d4ff4d);
    line-height: 1.1;
}

.lmh-account-v2 .lmh-settings-code__hint {
    margin: 6px 0 0;
    font-size: 0.72rem;
    color: var(--acc-muted);
}

.lmh-account-v2 .lmh-settings-code__hint a {
    color: var(--neon-accent, #d4ff4d);
    text-decoration: none;
}

.lmh-account-v2 .lmh-settings-code__hint a:hover {
    text-decoration: underline;
}

.lmh-account-v2 .lmh-settings-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
}

.lmh-account-v2 .lmh-settings-btn,
.lmh-account-v2 .lmh-btn-primary.lmh-settings-btn {
    height: 34px;
    padding: 0 14px;
    border-radius: 8px;
    border: 1px solid rgba(212, 255, 77, 0.28);
    background: rgba(212, 255, 77, 0.12);
    color: var(--neon-accent, #d4ff4d);
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.lmh-account-v2 .lmh-settings-btn:hover,
.lmh-account-v2 .lmh-btn-primary.lmh-settings-btn:hover {
    border-color: rgba(212, 255, 77, 0.45);
    background: rgba(212, 255, 77, 0.18);
}

.lmh-account-v2 .lmh-settings-btn--ghost {
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(0, 0, 0, 0.3);
    color: rgba(255, 255, 255, 0.7);
}

.lmh-account-v2 .lmh-settings-btn--ghost:hover {
    border-color: rgba(212, 255, 77, 0.28);
    color: #eef0f2;
    background: rgba(212, 255, 77, 0.06);
}

.lmh-account-v2 .lmh-settings-btn--danger {
    border-color: rgba(255, 107, 74, 0.4);
    background: rgba(255, 107, 74, 0.12);
    color: #ffb4a2;
}

.lmh-account-v2 .lmh-settings-btn--danger:hover {
    border-color: rgba(255, 107, 74, 0.55);
    background: rgba(255, 107, 74, 0.2);
    color: #ffd0c4;
}

.lmh-account-v2 .lmh-settings-btn--wide {
    width: 100%;
}

.lmh-account-v2 .lmh-settings-status {
    margin: 8px 0 0;
    min-height: 1.1em;
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.5);
}

.lmh-account-v2 .lmh-settings-status--danger {
    color: #ffb4a2;
}

.lmh-account-v2 .lmh-settings-card--danger .lmh-label {
    display: block;
    margin: 0 0 6px;
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.55);
}

.lmh-account-v2 .lmh-settings-card--danger .lmh-input {
    width: 100%;
    height: 36px;
    margin: 0 0 10px;
    padding: 0 10px;
    border-radius: 8px;
    border: 1px solid rgba(255, 107, 74, 0.28);
    background: rgba(0, 0, 0, 0.4);
    color: #eef0f2;
    font-size: 0.85rem;
    outline: none;
}

.lmh-account-v2 .lmh-settings-card--danger .lmh-input:focus {
    border-color: rgba(255, 107, 74, 0.5);
    box-shadow: 0 0 0 1px rgba(255, 107, 74, 0.15);
}

.lmh-account-v2 .lmh-settings-modal__footer {
    margin-top: 4px;
    padding-top: 4px;
}

/* ========== Profile edit ========== */
.lmh-account-v2 .lmh-profile-edit-form {
    gap: 12px;
}

.lmh-account-v2 .lmh-profile-edit-form__banner {
    padding: 12px;
    border-radius: 10px;
    border: 1px solid rgba(212, 255, 77, 0.1);
    background: rgba(0, 0, 0, 0.28);
    box-shadow: none;
}

.lmh-account-v2 .lmh-profile-edit-form__banner-head {
    margin-bottom: 10px;
}

.lmh-account-v2 .lmh-profile-edit-form__banner-label,
.lmh-account-v2 .lmh-profile-edit-form .b2-label {
    margin: 0 0 6px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--neon-accent-dim, #8bc34a);
}

.lmh-account-v2 .lmh-profile-edit-form .user-settings-banner-preview-label {
    color: var(--neon-accent, #d4ff4d);
    background: rgba(0, 0, 0, 0.45);
    border-color: rgba(212, 255, 77, 0.22);
    text-shadow: none;
}

.lmh-account-v2 .lmh-profile-edit-form__body {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 14px;
    align-items: start;
    padding: 12px;
    border-radius: 10px;
    border: 1px solid rgba(212, 255, 77, 0.1);
    background: rgba(0, 0, 0, 0.28);
}

.lmh-account-v2 .lmh-profile-edit-form__aside {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.lmh-account-v2 .lmh-profile-edit-form .user-settings-avatar-preview {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    border: 1px solid rgba(212, 255, 77, 0.28);
    background: rgba(0, 0, 0, 0.45);
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.35);
    color: var(--neon-accent, #d4ff4d);
    font-weight: 700;
}

.lmh-account-v2 .lmh-profile-edit-form .user-settings-avatar-actions,
.lmh-account-v2 .lmh-profile-edit-form .user-settings-banner-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
}

.lmh-account-v2 .lmh-profile-edit-form .lmh-btn-secondary,
.lmh-account-v2 .lmh-profile-edit-form .user-settings-avatar-upload {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 0 10px;
    border-radius: 7px;
    border: 1px solid rgba(212, 255, 77, 0.18);
    background: rgba(0, 0, 0, 0.35);
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.72rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.lmh-account-v2 .lmh-profile-edit-form .lmh-btn-secondary:hover,
.lmh-account-v2 .lmh-profile-edit-form .user-settings-avatar-upload:hover {
    border-color: rgba(212, 255, 77, 0.4);
    color: var(--neon-accent, #d4ff4d);
    background: rgba(212, 255, 77, 0.08);
}

.lmh-account-v2 .lmh-profile-edit-form .b2-input,
.lmh-account-v2 .lmh-profile-edit-form .user-settings-status-input {
    width: 100%;
    margin: 0 0 8px;
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid rgba(212, 255, 77, 0.14);
    background: rgba(0, 0, 0, 0.4);
    color: #eef0f2;
    font-size: 0.85rem;
    font-family: inherit;
    outline: none;
    resize: vertical;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.lmh-account-v2 .lmh-profile-edit-form .b2-input:focus,
.lmh-account-v2 .lmh-profile-edit-form .user-settings-status-input:focus {
    border-color: rgba(212, 255, 77, 0.4);
    box-shadow: 0 0 0 1px rgba(212, 255, 77, 0.1);
}

.lmh-account-v2 .lmh-profile-edit-form .b2-modal-hint,
.lmh-account-v2 .lmh-profile-edit-form .user-settings-nickname-hint {
    margin: -4px 0 10px;
    font-size: 0.68rem;
    color: var(--acc-muted);
}

.lmh-account-v2 .lmh-profile-edit-form .user-settings-telegram-visibility {
    margin-top: 4px;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid rgba(212, 255, 77, 0.1);
    background: rgba(0, 0, 0, 0.25);
}

.lmh-account-v2 .lmh-profile-edit-form .user-settings-telegram-visibility__label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 0.8rem;
    color: #eef0f2;
    cursor: pointer;
}

.lmh-account-v2 .lmh-profile-edit-form .user-settings-telegram-visibility__label input {
    margin-top: 2px;
    accent-color: var(--neon-accent, #d4ff4d);
}

.lmh-account-v2 .lmh-profile-edit-form .user-settings-telegram-visibility__hint {
    margin: 6px 0 0;
}

.lmh-account-v2 .lmh-profile-edit-form .b2-form-error {
    margin: 0;
    min-height: 1.1em;
    font-size: 0.75rem;
    color: #ffb4a2;
}

.lmh-account-v2 .lmh-profile-edit-form__actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 2px;
    padding-top: 4px;
}

.lmh-account-v2 .lmh-profile-edit-form__actions .lmh-btn-primary {
    height: 34px;
    padding: 0 16px;
    border-radius: 8px;
    border: 1px solid rgba(212, 255, 77, 0.35);
    background: rgba(212, 255, 77, 0.14);
    color: var(--neon-accent, #d4ff4d);
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
}

.lmh-account-v2 .lmh-profile-edit-form__actions .lmh-btn-primary:hover {
    background: rgba(212, 255, 77, 0.22);
}

.lmh-account-v2 .lmh-profile-edit-form__actions .lmh-btn-secondary {
    height: 34px;
    padding: 0 14px;
}

@media (max-width: 560px) {
    .lmh-account-v2 .lmh-profile-edit-form__body {
        grid-template-columns: 1fr;
        justify-items: center;
    }

    .lmh-account-v2 .lmh-profile-edit-form__main {
        width: 100%;
    }

    .lmh-account-v2 .lmh-profile-edit-form__actions {
        flex-direction: column-reverse;
    }

    .lmh-account-v2 .lmh-profile-edit-form__actions .lmh-btn-primary,
    .lmh-account-v2 .lmh-profile-edit-form__actions .lmh-btn-secondary {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .lmh-account-v2 .lmh-settings-card,
    .lmh-account-v2 .lmh-settings-btn,
    .lmh-account-v2 .lmh-profile-edit-form .lmh-btn-secondary {
        transition: none;
    }
}

/* ========== Banner previews v2 (profile hero + friends card) ========== */
.lmh-banner-preview-v2 .user-settings-banner-preview-shell {
    border-radius: 10px;
    overflow: hidden;
}

.lmh-banner-preview-hero {
    position: relative;
    width: 100%;
    max-width: 100%;
    aspect-ratio: auto;
    min-height: 0;
    margin: 0;
    padding: 0;
    border-radius: 10px;
    border: 1px solid rgba(212, 255, 77, 0.14);
    background: #08090c;
    overflow: hidden;
    isolation: isolate;
}

.lmh-banner-preview-hero.has-banner {
    border-color: rgba(212, 255, 77, 0.28);
}

.lmh-banner-preview-hero__banner {
    position: relative;
    height: 72px;
    overflow: hidden;
    background: #060708;
}

.lmh-banner-preview-hero__banner .user-profile-hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: linear-gradient(120deg, #1a2030, #0a0c10);
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat;
}

.lmh-banner-preview-hero__banner .user-profile-hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(180deg, transparent 40%, rgba(8, 9, 12, 0.92) 100%);
    pointer-events: none;
}

.lmh-banner-preview-hero__identity {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: -28px;
    padding: 0 10px 10px;
}

.lmh-banner-preview-hero .user-settings-banner-preview-avatar {
    width: 56px;
    height: 56px;
    aspect-ratio: 1;
    flex-shrink: 0;
    border-radius: 9999px;
    border: 2px solid #08090c;
    box-shadow:
        0 0 0 1px rgba(212, 255, 77, 0.45),
        0 4px 14px rgba(0, 0, 0, 0.45);
    background: rgba(10, 14, 18, 0.95);
    color: var(--neon-accent, #d4ff4d);
    font-size: 1.15rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lmh-banner-preview-hero .user-settings-banner-preview-main {
    flex: 1;
    min-width: 0;
    padding-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.lmh-banner-preview-hero .user-settings-banner-preview-name {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.02em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-shadow: none;
}

.lmh-banner-preview-hero .user-settings-banner-preview-status {
    margin: 0;
    font-size: 0.72rem;
    line-height: 1.3;
    color: rgba(255, 255, 255, 0.5);
}

.lmh-banner-preview-hero .user-settings-banner-preview-status.is-empty {
    opacity: 0.45;
}

.lmh-banner-preview-level {
    flex: 0 1 auto;
    margin: 28px 0 0;
    max-width: 46%;
    min-width: 0;
}

.lmh-banner-preview-level .lmh-profile-level__panel {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.lmh-banner-preview-level .lmh-pts-level--profile {
    --lmh-level-size: 28px;
    flex: 0 0 auto;
}

.lmh-banner-preview-level .lmh-profile-level__body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.lmh-banner-preview-level .lmh-pts-bar--profile .lmh-pts-bar__track {
    height: 5px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

.lmh-banner-preview-level .lmh-pts-bar--profile .lmh-pts-bar__fill {
    display: block;
    width: var(--lmh-pts-fill, 45%);
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #8bc34a, #d4ff4d);
    box-shadow: 0 0 8px rgba(212, 255, 77, 0.35);
}

.lmh-banner-preview-level .lmh-profile-level__stats {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}

.lmh-banner-preview-level .lmh-profile-level__meta-item {
    font-size: 0.62rem;
    color: rgba(255, 255, 255, 0.45);
}

.lmh-banner-preview-level .lmh-profile-level__pts-chip {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 1px 6px;
    border-radius: 999px;
    border: 1px solid rgba(212, 255, 77, 0.28);
    background: rgba(212, 255, 77, 0.08);
    color: var(--neon-accent, #d4ff4d);
    font-size: 0.62rem;
}

/* Friends list card preview */
.lmh-banner-preview-friends-card {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    min-height: 64px;
    margin: 0;
    border-radius: 10px;
    border: 1px solid rgba(212, 255, 77, 0.12);
    background: rgba(0, 0, 0, 0.32);
    transform: none !important;
    animation: none !important;
}

.lmh-banner-preview-friends-card.has-banner {
    border-color: rgba(212, 255, 77, 0.22);
}

.lmh-banner-preview-friends-card .friends-user-card__banner-bg,
.lmh-banner-preview-friends-card .friends-user-card__banner-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.lmh-banner-preview-friends-card .friends-user-card__banner-bg {
    z-index: 0;
    background-size: cover !important;
    background-position: center !important;
}

.lmh-banner-preview-friends-card .friends-user-card__banner-overlay {
    z-index: 1;
    background: linear-gradient(90deg, rgba(8, 9, 12, 0.82), rgba(8, 9, 12, 0.45) 55%, rgba(8, 9, 12, 0.7));
}

.lmh-banner-preview-friends-card .friends-user-card__surface {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(140px, 1fr) auto auto;
    grid-template-areas: "identity pts side";
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    min-height: 64px;
    box-sizing: border-box;
}

.lmh-banner-preview-friends-card .friends-user-identity {
    grid-area: identity;
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.lmh-banner-preview-friends-card .friends-user-avatar {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    border-radius: 9999px;
    border: 1px solid rgba(212, 255, 77, 0.22);
    background: rgba(10, 14, 18, 0.9);
    color: #eef0f2;
    font-size: 0.8rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.lmh-banner-preview-friends-card .friends-user-main {
    min-width: 0;
}

.lmh-banner-preview-friends-card .friends-user-name-row {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

.lmh-banner-preview-friends-card .friends-user-rank {
    flex: 0 0 auto;
    padding: 1px 5px;
    border-radius: 4px;
    border: 1px solid rgba(212, 255, 77, 0.4);
    background: rgba(212, 255, 77, 0.12);
    font-family: var(--lmh-display, "Bebas Neue", sans-serif);
    font-size: 0.7rem;
    letter-spacing: 0.04em;
    color: var(--neon-accent, #d4ff4d);
}

.lmh-banner-preview-friends-card .friends-user-name {
    font-size: 0.82rem;
    font-weight: 700;
    color: #eef0f2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lmh-banner-preview-friends-card .friends-user-status {
    display: block;
    margin-top: 1px;
    font-size: 0.66rem;
    color: rgba(255, 255, 255, 0.42);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lmh-banner-preview-friends-card .friends-user-status.is-empty {
    opacity: 0.45;
}

.lmh-banner-preview-friends-card .friends-user-pts-col {
    grid-area: pts;
    display: flex;
    align-items: center;
    pointer-events: none;
}

.lmh-banner-preview-friends-card .friends-user-pts {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 0;
    border: none;
    background: transparent;
}

.lmh-banner-preview-friends-card .lmh-pts-level--friends {
    --lmh-level-size: 28px;
    background: transparent;
    box-shadow: none;
}

.lmh-banner-preview-friends-card .friends-user-pts-value {
    font-family: var(--lmh-display, "Bebas Neue", sans-serif);
    font-size: 0.78rem;
    letter-spacing: 0.03em;
    color: var(--neon-accent, #d4ff4d);
    white-space: nowrap;
}

.lmh-banner-preview-friends-card .friends-user-side {
    grid-area: side;
    display: flex;
    align-items: center;
    gap: 6px;
    justify-self: end;
    pointer-events: none;
}

.lmh-banner-preview-friends-card .friends-watched-counter {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    padding: 4px 6px;
    border-radius: 6px;
    border: 1px solid rgba(212, 255, 77, 0.12);
    background: rgba(0, 0, 0, 0.35);
    font-size: 0.68rem;
    color: rgba(255, 255, 255, 0.7);
    font-variant-numeric: tabular-nums;
}

.lmh-banner-preview-friends-card .friends-user-favorites {
    display: inline-flex;
    gap: 4px;
}

.lmh-banner-preview-friends-card .friends-favorite-slot {
    width: 28px;
    height: 38px;
    border-radius: 4px;
    border: 1px dashed rgba(212, 255, 77, 0.18);
    background: rgba(0, 0, 0, 0.35);
}

@media (max-width: 560px) {
    .lmh-banner-preview-friends-card .friends-user-card__surface {
        grid-template-columns: 1fr auto;
        grid-template-areas:
            "identity side"
            "pts pts";
    }

    .lmh-banner-preview-friends-card .friends-user-pts-col {
        padding-left: 44px;
    }

    .lmh-banner-preview-friends-card .friends-favorite-slot:nth-child(3) {
        display: none;
    }
}
