﻿/* PÃ¡ginas pÃºblicas tela cheia (Servidor / Download / Rankings / VIP) â€” sem sidebar */
.mu-wrap--wide {
    grid-template-columns: minmax(0, 1fr);
    max-width: none;
    width: 100%;
}

.mu-wrap--wide .mu-sidebar {
    display: none;
}

.mu-main--wide {
    max-width: none;
    min-width: 0;
    width: 100%;
    padding-left: clamp(0.85rem, 3vw, 2rem);
    padding-right: clamp(0.85rem, 3vw, 2rem);
}

.mu-wrap--wide .mu-main--wide {
    grid-column: 1 / -1;
}

/* Largura Ãºnica do conteÃºdo â€” Download / Rankings / VIP / Servidor */
.mu-main--wide > .mu-dl-page,
.mu-main--wide > .mu-rank-page,
.mu-main--wide > .mu-vip-page,
.mu-main--wide > .mu-info-page,
.mu-main--wide > .mu-chars-page,
.mu-main--wide > .mu-user-panel,
.mu-main--wide > .mu-reg-page,
.mu-main--info > .mu-info-page {
    width: 100%;
    max-width: min(1200px, 100%) !important;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
}

/* Suporte lateral, promocoes, tickets, painel admin */

/* Preview guild/char â€” oculto ate o JS abrir */
.mu-preview-modal.preview-information {
    position: fixed;
    inset: 0;
    z-index: 350;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.mu-preview-modal.preview-information[style*="visible"] {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}

.mu-preview-modal__box {
    position: relative;
    width: min(100%, 560px);
    max-height: 90vh;
    overflow: auto;
    padding: 1.1rem 1rem 0.95rem;
    background: linear-gradient(160deg, rgba(10, 20, 38, 0.95), rgba(6, 12, 24, 0.98));
    border: 1px solid rgba(126, 184, 232, 0.26);
    border-radius: 14px;
    box-shadow: 0 24px 46px rgba(0, 0, 0, 0.52);
}

.mu-preview-modal__close {
    position: absolute;
    top: 0.5rem;
    right: 0.6rem;
    border: none;
    background: rgba(0, 0, 0, 0.35);
    color: #fff;
    width: 2rem;
    height: 2rem;
    border-radius: 6px;
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
}

.mu-preview-modal__close:hover {
    background: rgba(180, 60, 60, 0.85);
}

.mu-preview-modal .details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.mu-preview-modal .details > p {
    margin: 0;
    padding: 0.45rem 0.6rem;
    border-radius: 8px;
    border: 1px solid rgba(126, 184, 232, 0.2);
    background: rgba(8, 16, 32, 0.72);
    color: var(--mu-text);
    font-size: 0.8rem;
    line-height: 1.35;
}

.mu-preview-modal .details > p img {
    display: block;
    margin: 0 auto 0.35rem;
    width: 72px;
    height: 72px;
    object-fit: contain;
}

/* Tooltip do modal de preview â€” mesmas regras do baÃº/mercado */
.mu-preview-modal .details > p:first-of-type.mu-tip-bar.mu-tip-ancient,
.mu-preview-modal .details p.mu-tip-bar.mu-tip-ancient {
    padding: 4px 6px;
    background: #3c3cc8;
    color: #e1ce59;
    text-shadow:
        0 0 5px rgba(225, 206, 89, 0.75),
        0 0 10px rgba(200, 170, 60, 0.4),
        0 1px 1px rgba(0, 0, 0, 0.9);
}

.mu-preview-modal .details > p:first-of-type.mu-tip-wing {
    color: #f5f5f5;
    background: transparent;
}

.mu-support-tab {
    position: fixed;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 400;
    display: flex;
    align-items: stretch;
    flex-direction: row;
}

.mu-chrome-side-stack .mu-support-tab {
    position: relative;
    left: auto;
    top: auto;
    transform: none;
    z-index: 2;
}

.mu-support-tab--open {
    z-index: 3;
}

.mu-support-tab__toggle {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    padding: 0.65rem 0.45rem;
    border: 1px solid var(--mu-border);
    border-left: none;
    border-radius: 0 10px 10px 0;
    background: linear-gradient(180deg, rgba(20, 45, 85, 0.95), rgba(8, 18, 38, 0.98));
    color: #b8d4f0;
    cursor: pointer;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.35);
    transition: background 0.2s, color 0.2s;
}

.mu-support-tab__toggle:hover {
    color: #fff;
    background: linear-gradient(180deg, rgba(40, 90, 150, 0.95), rgba(12, 28, 55, 0.98));
}

.mu-support-tab__backdrop {
    display: none; /* legado â€” backdrop unificado em .mu-chrome-side-backdrop */
}

.mu-support-tab__label {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.1rem;
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    line-height: 1;
    text-transform: uppercase;
}

.mu-support-tab__label > span {
    display: block;
}

.mu-support-tab__panel {
    position: relative;
    z-index: 3;
    width: min(92vw, 280px);
    padding: 1rem 1rem 1.1rem;
    background: var(--mu-surface-solid);
    border: 1px solid var(--mu-border);
    border-left: none;
    border-radius: 0 12px 12px 0;
    box-shadow: var(--mu-shadow-lg);
}

.mu-support-tab--open .mu-support-tab__toggle {
    border-radius: 0;
    border-right: none;
    align-self: stretch;
    min-height: 100%;
}

.mu-support-tab__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.mu-support-tab__head strong {
    font-family: var(--mu-font-display);
    font-size: 1rem;
}

.mu-support-tab__close {
    border: none;
    background: transparent;
    color: var(--mu-text-muted);
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
}

.mu-support-tab__desc {
    margin: 0 0 0.85rem;
    font-size: 0.85rem;
    color: var(--mu-text-muted);
    line-height: 1.45;
}

.mu-support-tab__links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.mu-support-tab__admin {
    margin: 0.75rem 0 0;
    font-size: 0.8rem;
    text-align: center;
}

.mu-btn--wide {
    width: 100%;
    justify-content: center;
}

/* Promocoes */
.mu-promo {
    position: relative;
    margin-bottom: 1.25rem;
    padding: 1.25rem 1.35rem;
    border-radius: var(--mu-radius);
    border: 1px solid rgba(255, 196, 87, 0.35);
    background: linear-gradient(135deg, rgba(80, 45, 8, 0.55), rgba(12, 28, 55, 0.9));
    overflow: hidden;
}

.mu-promo__glow {
    position: absolute;
    inset: -40% auto auto -20%;
    width: 60%;
    height: 140%;
    background: radial-gradient(circle, rgba(255, 180, 60, 0.25), transparent 70%);
    animation: mu-promo-pulse 4s ease-in-out infinite;
    pointer-events: none;
}

@keyframes mu-promo-pulse {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.08); }
}

.mu-promo__inner {
    position: relative;
    z-index: 1;
}

.mu-promo__badge {
    display: inline-block;
    padding: 0.2rem 0.55rem;
    margin-bottom: 0.5rem;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #1a1200;
    background: linear-gradient(90deg, #ffc857, #ff9f1c);
    border-radius: 4px;
    animation: mu-promo-shine 2.5s ease-in-out infinite;
}

@keyframes mu-promo-shine {
    0%, 100% { filter: brightness(1); }
    50% { filter: brightness(1.15); }
}

.mu-promo__title {
    margin: 0 0 0.35rem;
    font-family: var(--mu-font-display);
    font-size: 1.35rem;
}

.mu-promo__lead {
    margin: 0 0 0.75rem;
    color: var(--mu-text-muted);
    font-size: 0.9rem;
}

.mu-promo__list {
    list-style: none;
    margin: 0 0 1rem;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.mu-promo__list li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.75rem;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 200, 100, 0.2);
    border-radius: 8px;
    font-size: 0.85rem;
}

.mu-promo__list strong {
    color: #ffc857;
    font-size: 1.05rem;
}

.mu-promo__cta {
    box-shadow: 0 0 20px rgba(255, 159, 28, 0.35);
}

/* Tickets */
.mu-page-head {
    margin-bottom: 1.25rem;
}

.mu-page-head__title {
    margin: 0 0 0.35rem;
    font-family: var(--mu-font-display);
    font-size: 1.5rem;
}

.mu-page-head__desc {
    margin: 0;
    color: var(--mu-text-muted);
    font-size: 0.9rem;
}

.mu-page-head__actions {
    margin-top: 0.75rem;
}

.mu-ticket-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mu-ticket-list__item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.65rem 0;
    border-bottom: 1px solid var(--mu-border);
}

.mu-ticket-list__item:last-child {
    border-bottom: none;
}

.mu-ticket-list__item small {
    display: block;
    color: var(--mu-text-dim);
    font-size: 0.8rem;
    margin-top: 0.15rem;
}

.mu-form .mu-field {
    display: block;
    margin-bottom: 1rem;
}

.mu-field__label {
    display: block;
    margin-bottom: 0.35rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--mu-text-muted);
}

.mu-form input[type="text"],
.mu-form input[type="password"],
.mu-form input[type="number"],
.mu-form input[type="file"],
.mu-form select,
.mu-form textarea {
    width: 100%;
    padding: 0.55rem 0.65rem;
    font: inherit;
    color: var(--mu-text);
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid var(--mu-border);
    border-radius: 6px;
}

.mu-field__hint {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.75rem;
    color: var(--mu-text-dim);
}

/* Upload de imagem (botÃ£o Escolher + preview â€” VIP cards, tickets, GM) */
.mu-file-upload__row {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    flex-wrap: wrap;
}

.mu-file-upload__actions {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
    min-width: 160px;
}

.mu-file-upload__input {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.mu-file-upload__trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 150px;
    cursor: pointer;
    margin: 0;
}

.mu-file-upload__hint {
    margin: 0;
    font-size: 0.72rem;
    color: var(--mu-text-muted);
    max-width: 220px;
    line-height: 1.35;
}

.mu-file-upload__preview {
    flex: 1 1 120px;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    min-height: 88px;
    padding: 0.5rem 0.65rem;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid var(--mu-border);
    border-radius: var(--mu-radius);
}

.mu-file-upload__preview-img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    flex-shrink: 0;
}

.mu-file-upload__preview-name {
    font-size: 0.75rem;
    color: var(--mu-text-secondary);
    word-break: break-all;
}

.mu-form .mu-file-upload__input {
    width: 1px;
    height: 1px;
    padding: 0;
}

.mu-field--inline {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.mu-radio-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem 1rem;
}

.mu-chat {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.mu-chat__msg {
    padding: 0.85rem 1rem;
    border-radius: var(--mu-radius);
    border: 1px solid var(--mu-border);
    background: rgba(0, 0, 0, 0.25);
}

.mu-chat__msg--staff {
    border-color: rgba(91, 159, 212, 0.45);
    background: rgba(91, 159, 212, 0.12);
}

.mu-chat__head {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
}

.mu-chat__head time {
    color: var(--mu-text-dim);
    font-size: 0.75rem;
}

.mu-chat__body {
    margin: 0;
    white-space: pre-wrap;
    line-height: 1.5;
}

.mu-chat__img img {
    max-width: 100%;
    border-radius: 6px;
}

/* Admin */
.mu-admin-body {
    min-height: 100vh;
}

.mu-admin {
    display: grid;
    grid-template-columns: 220px 1fr;
    min-height: 100vh;
}

.mu-admin__side {
    padding: 1.25rem 1rem;
    background: rgba(4, 12, 28, 0.95);
    border-right: 1px solid var(--mu-border);
}

.mu-admin__brand {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin-bottom: 1.5rem;
    text-decoration: none;
    color: #fff;
    font-weight: 700;
    font-family: var(--mu-font-display);
}

.mu-admin__nav {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.mu-admin__nav a {
    padding: 0.5rem 0.65rem;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.88rem;
    color: var(--mu-text-muted);
}

.mu-admin__nav a:hover,
.mu-admin__nav a.is-active {
    color: #fff;
    background: rgba(91, 159, 212, 0.2);
}

.mu-admin__nav-out {
    margin-top: 0.5rem;
    color: #ffb4b4 !important;
}

.mu-admin__main {
    padding: 1.5rem 1.75rem 2rem;
}

.mu-admin-login {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.mu-panel--narrow {
    width: min(100%, 400px);
}

.mu-stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.mu-stat-card {
    padding: 1rem 1.1rem;
    border: 1px solid var(--mu-border);
    border-radius: var(--mu-radius);
    background: rgba(0, 0, 0, 0.25);
}

.mu-stat-card__label {
    display: block;
    font-size: 0.8rem;
    color: var(--mu-text-muted);
}

.mu-stat-card__value {
    display: block;
    font-size: 1.75rem;
    margin: 0.25rem 0 0.5rem;
    font-family: var(--mu-font-display);
}

.mu-admin-shortcuts {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.mu-admin-modules {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem 1.25rem;
}

.mu-admin-modules__title {
    margin: 0 0 0.5rem;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--mu-text-muted);
}

.mu-admin-modules__list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.mu-admin-modules__link {
    display: block;
    padding: 0.35rem 0;
    font-size: 0.86rem;
    color: var(--mu-accent, #7eb8e8);
    text-decoration: none;
}

.mu-admin-modules__link:hover {
    color: #fff;
    text-decoration: underline;
}

.mu-panel__desc {
    margin: -0.35rem 0 0.85rem;
    font-size: 0.88rem;
    color: var(--mu-text-muted);
}

.mu-user-nav__link--gm {
    color: #c8e4ff;
}

.mu-user-nav__link--gm.mu-user-nav__link--active {
    background: linear-gradient(
        180deg,
        rgba(91, 159, 212, 0.45) 0%,
        rgba(58, 118, 178, 0.35) 100%
    );
}

.mu-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-bottom: 1rem;
}

.mu-tabs__link {
    padding: 0.45rem 0.85rem;
    font-size: 0.85rem;
    text-decoration: none;
    color: var(--mu-text-muted);
    border: 1px solid var(--mu-border);
    border-radius: 6px;
}

.mu-tabs__link.is-active,
.mu-tabs__link:hover {
    color: #fff;
    border-color: rgba(126, 184, 232, 0.45);
    background: rgba(91, 159, 212, 0.15);
}

.mu-admin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
}

.mu-table--hover tbody tr:hover {
    background: rgba(91, 159, 212, 0.08);
}

/* Personagens â€” cards */
.mu-char-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.85rem;
    overflow: visible;
    margin-top: 0.15rem;
}

.mu-char-grid__hint {
    margin: 1rem 0 0;
    font-size: 0.72rem;
    color: var(--mu-text-muted);
    line-height: 1.4;
}

.mu-panel__head-row--chars {
    padding-top: 0.65rem;
    padding-bottom: 0.85rem;
    margin-bottom: 0.65rem;
    align-items: center;
}

.mu-panel__title-wrap {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    min-width: 0;
}

.mu-panel__head-row--chars .mu-panel__title {
    padding: 0;
    font-size: 0.58rem;
    letter-spacing: 0.07em;
    line-height: 1.35;
}

.mu-char-3d-info {
    position: relative;
    flex-shrink: 0;
    padding: 0.35rem;
    margin: -0.35rem;
}

.mu-char-3d-info__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.35rem;
    height: 1.35rem;
    padding: 0;
    border: 1px solid rgba(126, 184, 232, 0.45);
    border-radius: 50%;
    background: rgba(12, 22, 38, 0.85);
    color: rgba(168, 208, 245, 0.95);
    cursor: help;
    transition: border-color 0.2s, background 0.2s, color 0.2s, box-shadow 0.2s;
}

.mu-char-3d-info__btn:hover,
.mu-char-3d-info__btn:focus-visible {
    border-color: rgba(168, 208, 245, 0.75);
    background: rgba(28, 48, 78, 0.95);
    color: #fff;
    box-shadow: 0 0 0 2px rgba(91, 159, 212, 0.25);
    outline: none;
}

.mu-char-3d-info__glyph {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 0.68rem;
    font-weight: 700;
    font-style: italic;
    line-height: 1;
    transform: translateY(-0.5px);
}

.mu-char-3d-info__popover {
    position: absolute;
    left: 0;
    top: calc(100% + 0.45rem);
    z-index: 20;
    width: min(17.5rem, calc(100vw - 2.5rem));
    padding: 0.75rem 0.85rem;
    border: 1px solid rgba(126, 184, 232, 0.28);
    border-radius: var(--mu-radius);
    background: linear-gradient(165deg, rgba(18, 30, 52, 0.98), rgba(8, 14, 26, 0.99));
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
}

.mu-char-3d-info__popover::before {
    content: '';
    position: absolute;
    left: 0.45rem;
    top: -6px;
    width: 10px;
    height: 10px;
    border-left: 1px solid rgba(126, 184, 232, 0.28);
    border-top: 1px solid rgba(126, 184, 232, 0.28);
    background: rgba(16, 28, 48, 0.98);
    transform: rotate(45deg);
}

.mu-char-3d-info__lead {
    margin: 0 0 0.45rem;
    font-family: var(--mu-font-display);
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(168, 208, 245, 0.92);
}

.mu-char-3d-info__list {
    margin: 0;
    padding-left: 1rem;
    font-size: 0.74rem;
    line-height: 1.45;
    color: var(--mu-text-secondary);
}

.mu-char-3d-info__list li + li {
    margin-top: 0.35rem;
}

.mu-char-3d-info__list strong {
    color: rgba(200, 228, 255, 0.95);
    font-weight: 600;
}

@media (max-width: 520px) {
    .mu-char-3d-info__popover {
        left: auto;
        right: 0;
    }

    .mu-char-3d-info__popover::before {
        left: auto;
        right: 0.45rem;
    }
}

.mu-char-grid__hint code {
    font-size: 0.68rem;
    color: rgba(126, 184, 232, 0.9);
}

.mu-char-card {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--mu-border);
    border-radius: var(--mu-radius);
    overflow: hidden;
    background: linear-gradient(165deg, rgba(20, 36, 62, 0.95), rgba(8, 14, 28, 0.98));
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
    transition: transform 0.2s, border-color 0.2s;
}

.mu-char-card:hover {
    transform: translateY(-3px);
    border-color: rgba(126, 184, 232, 0.45);
}

.mu-char-card:has(.mu-char-card__portrait--snapshot):hover {
    transform: none;
    border-color: rgba(126, 184, 232, 0.45);
}

.mu-char-card.mu-char-card--portrait-pop {
    overflow: visible;
    z-index: 8;
    position: relative;
}

.mu-char-card.mu-char-card--portrait-pop .mu-char-card__portrait--snapshot {
    overflow: visible;
}

.mu-panel:has(.mu-char-card--portrait-pop) {
    overflow: visible;
}

.mu-char-card__portrait {
    position: relative;
    min-height: 150px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    background: linear-gradient(180deg, rgba(40, 70, 110, 0.5) 0%, rgba(10, 18, 32, 0.9) 100%);
    overflow: hidden;
}

.mu-char-card__portrait img {
    max-height: 140px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    object-position: bottom center;
    filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.5));
}

.mu-char-card__portrait.mu-char-card__portrait--class-art {
    align-items: flex-end;
    justify-content: center;
}

.mu-char-card__portrait.mu-char-card__portrait--class-art .mu-char-card__portrait-img {
    max-height: 156px;
    width: auto;
    max-width: 84%;
    height: auto;
    object-fit: contain;
    object-position: center bottom;
    filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.45));
}

.mu-char-card__portrait.mu-char-card__portrait--snapshot {
    position: relative;
    min-height: 168px;
    padding: 0;
    overflow: hidden;
    background-color: #0a1220;
    background-repeat: no-repeat;
    background-position: center calc(100% + 34px);
    background-size: cover;
    perspective: 720px;
    perspective-origin: 50% 82%;
    transform-style: preserve-3d;
}

.mu-char-portrait-spin {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 14px;
    box-sizing: border-box;
    transform-style: preserve-3d;
    transform-origin: center bottom;
    pointer-events: auto;
    will-change: transform;
}

.mu-char-portrait-spin__sway {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    width: 100%;
    height: 152px;
    transform-style: preserve-3d;
    transform-origin: center bottom;
}

.mu-char-portrait-spin__img {
    display: block;
    max-height: 152px;
    width: auto;
    max-width: 82%;
    height: auto;
    object-fit: contain;
    object-position: center 94%;
    pointer-events: none;
    filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.45));
    background: transparent !important;
    transform-origin: center bottom;
}

.mu-char-card.mu-char-card--portrait-pop .mu-char-portrait-spin__img {
    filter: drop-shadow(0 16px 28px rgba(0, 0, 0, 0.58));
}

.mu-char-card__portrait-img--snapshot {
    max-height: 168px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    object-position: center bottom;
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.45));
}

.mu-char-card__class-tag {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    padding: 0.2rem 0.45rem;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    color: #061018;
    background: linear-gradient(90deg, #ffc857, #ff9f1c);
    border-radius: 4px;
}

/* Cores por classe (fallback sem PNG) */
.mu-char-card[data-class-short="dw"] .mu-char-card__portrait,
.mu-char-card[data-class-short="sm"] .mu-char-card__portrait,
.mu-char-card[data-class-short="gm"] .mu-char-card__portrait {
    background: linear-gradient(180deg, rgba(60, 100, 180, 0.55), rgba(12, 20, 40, 0.95));
}

.mu-char-card[data-class-short="dk"] .mu-char-card__portrait,
.mu-char-card[data-class-short="bk"] .mu-char-card__portrait,
.mu-char-card[data-class-short="bm"] .mu-char-card__portrait {
    background: linear-gradient(180deg, rgba(140, 50, 50, 0.55), rgba(20, 10, 12, 0.95));
}

.mu-char-card[data-class-short="fe"] .mu-char-card__portrait,
.mu-char-card[data-class-short="me"] .mu-char-card__portrait,
.mu-char-card[data-class-short="he"] .mu-char-card__portrait {
    background: linear-gradient(180deg, rgba(50, 130, 70, 0.55), rgba(10, 24, 14, 0.95));
}

.mu-char-card[data-class-short="mg"] .mu-char-card__portrait,
.mu-char-card[data-class-short="dm"] .mu-char-card__portrait {
    background: linear-gradient(180deg, rgba(120, 80, 160, 0.55), rgba(18, 12, 28, 0.95));
}

.mu-char-card[data-class-short="dl"] .mu-char-card__portrait,
.mu-char-card[data-class-short="le"] .mu-char-card__portrait {
    background: linear-gradient(180deg, rgba(90, 70, 40, 0.55), rgba(20, 16, 8, 0.95));
}

.mu-char-card[data-class-short="su"] .mu-char-card__portrait,
.mu-char-card[data-class-short="bs"] .mu-char-card__portrait,
.mu-char-card[data-class-short="dim"] .mu-char-card__portrait {
    background: linear-gradient(180deg, rgba(70, 50, 120, 0.55), rgba(14, 10, 24, 0.95));
}

.mu-char-card[data-class-short="rf"] .mu-char-card__portrait,
.mu-char-card[data-class-short="fm"] .mu-char-card__portrait {
    background: linear-gradient(180deg, rgba(160, 90, 40, 0.55), rgba(24, 14, 6, 0.95));
}

.mu-char-card[data-class-short="gl"] .mu-char-card__portrait,
.mu-char-card[data-class-short="ml"] .mu-char-card__portrait {
    background: linear-gradient(180deg, rgba(50, 120, 160, 0.55), rgba(10, 22, 32, 0.95));
}

.mu-char-card[data-class-short="rw"] .mu-char-card__portrait,
.mu-char-card[data-class-short="rs"] .mu-char-card__portrait,
.mu-char-card[data-class-short="gr"] .mu-char-card__portrait {
    background: linear-gradient(180deg, rgba(80, 60, 180, 0.55), rgba(14, 10, 28, 0.95));
}

/* Snapshot: fundo do card (ganha dos gradientes por classe acima) */
.mu-char-card .mu-char-card__portrait.mu-char-card__portrait--snapshot {
    background-color: #0a1220;
    background-image: url('../assets/mu/char-ranking-bg.png');
    background-repeat: no-repeat;
    background-position: center calc(100% + 34px);
    background-size: cover;
}

.mu-char-card__silhouette {
    font-family: var(--mu-font-display);
    font-size: 2.75rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.14);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    line-height: 1;
    padding-bottom: 0.5rem;
}

.mu-char-card__body {
    padding: 0.85rem 0.9rem 1rem;
}

.mu-char-card__name {
    margin: 0 0 0.2rem;
    font-family: var(--mu-font-display);
    font-size: 1rem;
    color: #fff;
    line-height: 1.2;
    word-break: break-word;
}

.mu-char-card__class {
    margin: 0 0 0.65rem;
    font-size: 0.75rem;
    color: var(--mu-text-muted);
}

.mu-char-card__stats {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.mu-char-card__stats li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.78rem;
    color: var(--mu-text-muted);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 0.35rem;
}

.mu-char-card__stats li:first-child {
    border-top: none;
    padding-top: 0;
}

.mu-char-card__stats strong {
    color: #fff;
    font-weight: 600;
}

.mu-char-card__pk--on {
    color: #ff6b6b !important;
}

.mu-char-card__pk--off {
    color: #7dffb0 !important;
}

.mu-char-card--editing {
    border-color: rgba(201, 162, 39, 0.55);
    box-shadow: 0 0 0 1px rgba(201, 162, 39, 0.2);
}

.mu-char-card__view[x-cloak],
.mu-char-card__manage[x-cloak] {
    display: none !important;
}

.mu-char-card__edit-btn {
    margin-top: 0.65rem;
}

.mu-char-card__manage {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    min-height: 100%;
}

.mu-char-card__manage-label {
    margin: 0;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--mu-text-secondary);
}

.mu-char-card__manage-name {
    margin: 0 0 0.25rem;
    font-size: 1.15rem;
    font-weight: 700;
    color: #fff;
    text-align: center;
    padding-bottom: 0.65rem;
    border-bottom: 1px solid var(--mu-border);
}

.mu-char-card__back-btn {
    margin-top: 0.25rem;
}

.mu-char-card__form + .mu-char-card__form {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px dashed var(--mu-border);
}

.mu-char-card__form-hint {
    margin: 0 0 0.5rem;
    font-size: 0.8rem;
    color: var(--mu-text-secondary);
    line-height: 1.4;
}

.mu-char-card__form-hint--error {
    color: #ffb4b4;
    font-weight: 600;
}

.mu-char-card__form-rules {
    margin: 0 0 0.65rem;
    padding-left: 1.1rem;
    font-size: 0.78rem;
    line-height: 1.45;
}

.mu-char-card__form-rules li + li {
    margin-top: 0.2rem;
}

.mu-char-card__form-rules code {
    font-size: 0.92em;
}

.mu-char-card__form .mu-field {
    margin-bottom: 0.5rem;
}

.mu-char-card__form .mu-field input {
    width: 100%;
    padding: 0.45rem 0.6rem;
    border-radius: var(--mu-radius-sm);
    border: 1px solid var(--mu-border);
    background: rgba(0, 0, 0, 0.35);
    color: #fff;
}

/* Painel do usuÃ¡rio â€” abas coladas ao conteÃºdo */
.mu-main--user {
    gap: 0.75rem;
}

.mu-user-shell {
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(91, 159, 212, 0.14);
    border-radius: var(--mu-radius);
    background:
        linear-gradient(165deg, rgba(22, 32, 52, 0.55) 0%, rgba(10, 16, 28, 0.88) 100%);
    box-shadow:
        var(--mu-shadow),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
    overflow: clip;
}

.mu-user-shell .mu-user-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 0.25rem;
    margin: 0;
    padding: 0.5rem 0.65rem 0;
    border-bottom: 1px solid rgba(91, 159, 212, 0.12);
    background: rgba(0, 0, 0, 0.22);
}

.mu-user-nav__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 0.8rem 0.55rem;
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    text-align: center;
    color: var(--mu-text-muted);
    border: 1px solid transparent;
    border-bottom: none;
    border-radius: 6px 6px 0 0;
    background: transparent;
    transition: color 0.15s, background 0.15s, border-color 0.15s;
}

.mu-user-nav__link:hover {
    color: #fff;
    background: rgba(91, 159, 212, 0.12);
}

.mu-user-nav__link--active {
    color: #fff;
    border-color: rgba(126, 184, 232, 0.65);
    background: linear-gradient(
        180deg,
        rgba(91, 159, 212, 0.42) 0%,
        rgba(58, 118, 178, 0.32) 100%
    );
    box-shadow:
        inset 0 1px 0 rgba(180, 220, 255, 0.35),
        0 0 0 1px rgba(91, 159, 212, 0.15);
}

.mu-panel--account .mu-btn--logout {
    margin-top: 0.5rem;
    color: #ffb4b4;
    background: rgba(80, 20, 20, 0.35);
    border: 1px solid rgba(255, 100, 100, 0.55);
}

.mu-panel--account .mu-btn--logout:hover {
    color: #ffd0d0;
    background: rgba(120, 40, 40, 0.45);
    border-color: rgba(255, 130, 130, 0.75);
}

.mu-user-nav__short {
    display: none;
}

.mu-user-shell__content {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 0.85rem 1.25rem 1rem;
    min-width: 0;
    overflow: visible;
}

.mu-user-shell__content .mu-form {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.mu-user-shell__content .mu-form .mu-field {
    padding-left: 0.35rem;
    padding-right: 0.35rem;
    box-sizing: border-box;
}

.mu-user-shell__content .mu-form input[type="text"],
.mu-user-shell__content .mu-form input[type="password"],
.mu-user-shell__content .mu-form input[type="number"],
.mu-user-shell__content .mu-form select,
.mu-user-shell__content .mu-form textarea {
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.mu-user-shell__content .mu-file-upload,
.mu-user-shell__content .mu-file-upload__row {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.mu-user-shell__content .mu-file-upload__row {
    flex-direction: column;
    align-items: stretch;
    gap: 0.65rem;
}

.mu-user-shell__content .mu-file-upload__actions {
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.mu-user-shell__content .mu-file-upload__preview {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.mu-user-shell__content .mu-file-upload__preview-name {
    max-width: 100%;
    overflow-wrap: anywhere;
}

.mu-user-shell__content .mu-save-btn {
    width: calc(100% - 0.7rem);
    max-width: calc(100% - 0.7rem);
    margin-left: 0.35rem;
    margin-right: 0.35rem;
    box-sizing: border-box;
}

.mu-user-shell__content > .mu-alert {
    margin: 0;
}

.mu-user-shell .mu-panel {
    border: none;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
    overflow: visible;
}

.mu-user-shell .mu-panel::before {
    display: none;
}

.mu-user-shell .mu-panel + .mu-panel,
.mu-user-shell .mu-account-page__view + .mu-account-page__edit {
    border-top: 1px solid rgba(91, 159, 212, 0.1);
    padding-top: 0.75rem;
    margin-top: 0.15rem;
}

.mu-user-shell .mu-page-head {
    margin: 0;
    padding: 0 0.35rem;
    box-sizing: border-box;
}

.mu-user-shell .mu-page-head--row .mu-btn--ghost[href*="user/info"] {
    display: none;
}

.mu-user-shell .mu-panel__title,
.mu-user-shell .mu-panel__head-row {
    padding-left: 0.35rem;
    padding-right: 0.35rem;
    padding-top: 0;
}

.mu-user-shell .mu-panel__body {
    padding: 0 0.35rem 0;
}

.mu-main > .mu-user-shell {
    animation: mu-fade-in 0.45s ease both;
}

.mu-panel__head-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem 0.75rem;
    padding: 0.65rem 1rem 0;
}

.mu-panel__head-row .mu-panel__title {
    margin: 0;
}

.mu-panel--account-info .mu-panel__head-row + .mu-panel__body {
    padding-top: 0.5rem;
}

.mu-panel--account-edit .mu-panel__body {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.mu-account-edit__intro {
    margin: 0;
    font-size: 0.82rem;
    line-height: 1.5;
    color: var(--mu-text-secondary);
}

.mu-account-edit__picker {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.45rem;
}

@media (min-width: 480px) {
    .mu-account-edit__picker {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    }
}

.mu-btn--outline {
    color: var(--mu-text);
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(126, 184, 232, 0.55);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.mu-btn--outline:hover {
    color: #fff;
    background: rgba(91, 159, 212, 0.12);
    border-color: rgba(126, 184, 232, 0.85);
}

.mu-panel--account-edit .mu-panel__head-row .mu-btn--outline {
    flex-shrink: 0;
}

.mu-account-edit__pick {
    min-height: 2.65rem;
    padding: 0.55rem 0.75rem;
    font-family: var(--mu-font);
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--mu-text);
    text-align: center;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--mu-border);
    border-radius: var(--mu-radius-sm);
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.mu-account-edit__pick:hover {
    color: #fff;
    border-color: rgba(126, 184, 232, 0.45);
    background: rgba(91, 159, 212, 0.18);
}

.mu-account-edit__form {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.mu-account-edit__field-title {
    margin: 0 0 0.15rem;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--mu-text-dim);
}

.mu-account-edit__hint {
    margin: 0 0 0.5rem;
    font-size: 0.82rem;
    line-height: 1.4;
    color: var(--mu-text-muted);
}

.mu-text-muted {
    color: var(--mu-text-muted);
}

.mu-account-edit__actions,
.mu-confirm-modal__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    width: 100%;
    margin-top: 0.75rem;
}

.mu-account-edit__actions {
    margin-top: 0.25rem;
}

.mu-account-edit__actions > *,
.mu-confirm-modal__actions > * {
    width: 100%;
    min-width: 0;
    justify-self: stretch;
}

.mu-account-edit__actions .mu-btn,
.mu-confirm-modal__actions .mu-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.45rem;
}

.mu-confirm-modal {
    position: fixed;
    inset: 0;
    z-index: 460;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.mu-confirm-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(2, 8, 20, 0.75);
    backdrop-filter: blur(4px);
}

.mu-confirm-modal__dialog {
    position: relative;
    z-index: 1;
    width: min(100%, 400px);
}

.mu-panel--confirm .mu-panel__title {
    font-size: 1rem;
}

.mu-confirm-modal__text {
    margin: 0 0 0.75rem;
    font-size: 0.85rem;
    line-height: 1.5;
    color: var(--mu-text-secondary);
}


.mu-account-page .mu-panel,
.mu-account-page .mu-alert {
    opacity: 1;
    transform: none;
}

/* Minha conta: visivel sem depender do Alpine (x-show quebrava a pagina) */
.mu-account-page__view {
    display: block;
}

.mu-account-page__edit {
    display: none;
}

.mu-account-page--editing .mu-account-page__view {
    display: none;
}

.mu-account-page--editing .mu-account-page__edit {
    display: block;
}

.mu-account-edit__error {
    margin: 0;
    padding: 0.5rem 0.65rem;
    font-size: 0.82rem;
    line-height: 1.45;
    color: #ffb4b4;
    background: rgba(180, 40, 40, 0.2);
    border: 1px solid rgba(220, 80, 80, 0.45);
    border-radius: var(--mu-radius-sm);
}

.mu-account-edit__form .mu-confirm-modal[x-cloak] {
    display: none !important;
}

@media (max-width: 768px) {
    .mu-user-shell .mu-user-nav {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0.3rem;
        padding: 0.45rem;
        align-items: stretch;
    }

    .mu-user-shell .mu-user-nav__link {
        width: 100%;
        min-height: 2.5rem;
        padding: 0.4rem 0.25rem;
        font-size: 0.68rem;
        border: 1px solid var(--mu-border);
        border-radius: 6px;
    }

    .mu-user-shell .mu-user-nav__link--active {
        border-color: rgba(126, 184, 232, 0.7);
        background: linear-gradient(
            180deg,
            rgba(91, 159, 212, 0.48) 0%,
            rgba(58, 118, 178, 0.38) 100%
        );
        box-shadow: inset 0 1px 0 rgba(180, 220, 255, 0.3);
    }

    .mu-user-nav__long {
        display: none;
    }

    .mu-user-nav__short {
        display: inline;
    }
}

@media (max-width: 768px) {
    /* 5 abas: 3 iguais em cima + 2 iguais embaixo (grade 6 colunas) */
    .mu-market-nav {
        display: grid;
        grid-template-columns: repeat(6, minmax(0, 1fr));
        gap: 0.3rem;
        padding: 0.35rem;
    }

    .mu-market-nav__link {
        grid-column: span 2;
        display: inline-flex;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        justify-content: center;
        align-content: center;
        gap: 0.2rem;
        width: 100%;
        min-height: 2.55rem;
        padding: 0.42rem 0.25rem;
        font-size: 0.67rem;
        line-height: 1.2;
        text-align: center;
        box-sizing: border-box;
    }

    .mu-market-nav__link:nth-child(4),
    .mu-market-nav__link:nth-child(5) {
        grid-column: span 3;
    }

    .mu-market-nav__link .mu-notif-tab-badge {
        margin: 0 0 0 0.1rem;
        flex-shrink: 0;
        font-size: 0.58rem;
        min-width: 1.1rem;
        height: 1.1rem;
        line-height: 1.1rem;
        padding: 0 0.2rem;
        vertical-align: middle;
    }
}

.mu-market-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-bottom: 1rem;
    padding: 0.35rem;
    border: 1px solid var(--mu-border);
    border-radius: var(--mu-radius-sm);
    background: rgba(0, 0, 0, 0.25);
}

.mu-market-nav__link {
    padding: 0.4rem 0.85rem;
    border-radius: var(--mu-radius-sm);
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--mu-text-secondary);
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
}

.mu-market-nav__link:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
}

.mu-market-nav__link--active {
    color: #fff;
    background: rgba(201, 162, 39, 0.22);
    border: 1px solid rgba(201, 162, 39, 0.35);
}

.mu-market-nav__link .mu-notif-tab-badge {
    margin-left: 0.35rem;
    vertical-align: middle;
}

.mu-panel--account-tools {
    margin-top: 1rem;
    margin-bottom: 0;
}

.mu-panel__body--tight {
    padding-top: 0.5rem;
}

.mu-account-tools__status {
    margin: 0 0 0.35rem;
}

.mu-account-tools__status--on {
    color: #ff9a6b;
}

.mu-account-tools__status--off {
    color: #7dffb0;
}

.mu-account-tools__desc {
    margin: 0 0 0.75rem;
    font-size: 0.88rem;
    color: var(--mu-text-secondary);
    line-height: 1.45;
}

.mu-account-tools__form {
    margin: 0;
    width: 100%;
    max-width: 22rem;
    display: flex;
    justify-content: center;
}

.mu-panel--account-tools .mu-panel__title {
    text-align: center;
}

.mu-panel--account-tools .mu-panel__body--tight {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.mu-account-tools__status,
.mu-account-tools__desc {
    width: 100%;
    max-width: 22rem;
}

.mu-account-tools__form .mu-btn {
    width: 100%;
    justify-content: center;
    text-align: center;
}

.mu-alert--info {
    background: rgba(100, 160, 255, 0.12);
    border: 1px solid rgba(100, 160, 255, 0.35);
    color: #c8dcff;
}

.mu-alert--success {
    background: rgba(72, 187, 120, 0.14);
    border: 1px solid rgba(72, 187, 120, 0.45);
    color: #d4ffe4;
}

.mu-alert--error {
    background: rgba(220, 80, 80, 0.14);
    border: 1px solid rgba(220, 80, 80, 0.45);
    color: #ffd4d4;
}

@media (max-width: 480px) {
    .mu-char-grid {
        grid-template-columns: 1fr;
    }
}

/* Lista legada */
.mu-char-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.mu-char-list__item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 0.75rem;
    border: 1px solid var(--mu-border);
    border-radius: var(--mu-radius);
    background: rgba(0, 0, 0, 0.2);
}

.mu-char-list__avatar {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    object-fit: cover;
    border: 1px solid var(--mu-border);
    flex-shrink: 0;
}

.mu-char-list__avatar--empty {
    display: block;
    background: linear-gradient(145deg, rgba(40, 60, 90, 0.6), rgba(20, 30, 50, 0.8));
}

.mu-char-list__info {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    min-width: 0;
}

.mu-char-list__info strong {
    color: #fff;
    font-size: 0.92rem;
}

.mu-char-list__info span {
    font-size: 0.78rem;
    color: var(--mu-text-muted);
}

@media (max-width: 900px) {
    .mu-support-tab__toggle {
        min-width: 44px;
        min-height: 44px;
        touch-action: manipulation;
    }
}

@media (max-width: 768px) {
    .mu-admin {
        grid-template-columns: 1fr;
    }

    .mu-admin__side {
        border-right: none;
        border-bottom: 1px solid var(--mu-border);
    }

    .mu-support-tab__label {
        display: none;
    }
}

.mu-support-tab--ai .mu-support-tab__panel--wide {
    width: min(94vw, 380px);
    display: flex;
    flex-direction: column;
    max-height: min(86vh, 640px);
}

.mu-support-tab__tabs {
    display: flex;
    gap: 0.35rem;
    margin-bottom: 0.75rem;
}

.mu-support-tab__tab {
    flex: 1;
    padding: 0.45rem 0.55rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    color: var(--mu-text-muted);
    font: inherit;
    font-size: 0.82rem;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.mu-support-tab__tab.is-active {
    color: #fff;
    border-color: rgba(120, 190, 255, 0.45);
    background: rgba(50, 110, 200, 0.25);
}

.mu-support-ai {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    min-height: 0;
    flex: 1;
}

.mu-support-ai__log {
    flex: 1;
    min-height: 180px;
    max-height: 320px;
    overflow: auto;
    padding: 0.65rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(0, 0, 0, 0.22);
    scrollbar-width: thin;
}

.mu-support-ai__placeholder,
.mu-support-ai__typing {
    margin: 0;
    font-size: 0.82rem;
    color: var(--mu-text-muted);
    line-height: 1.45;
}

.mu-support-ai__msg {
    margin-bottom: 0.55rem;
    padding: 0.55rem 0.65rem;
    border-radius: 10px;
    font-size: 0.84rem;
    line-height: 1.45;
}

.mu-support-ai__msg--user {
    margin-left: 1rem;
    background: rgba(70, 130, 220, 0.22);
    border: 1px solid rgba(120, 180, 255, 0.25);
}

.mu-support-ai__msg--assistant {
    margin-right: 0.5rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.mu-support-ai__msg p {
    margin: 0;
    white-space: pre-wrap;
}

.mu-support-ai__sources {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-top: 0.45rem;
}

.mu-support-ai__sources .mu-link {
    font-size: 0.75rem;
}

.mu-support-ai__error {
    margin: 0;
    font-size: 0.82rem;
    color: #ff8a8a;
}

.mu-support-ai__composer {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.45rem;
    align-items: end;
}

.mu-support-ai__composer textarea {
    width: 100%;
    min-height: 56px;
    resize: vertical;
    padding: 0.55rem 0.65rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.03);
    color: inherit;
    font: inherit;
    font-size: 0.84rem;
    line-height: 1.4;
}

.mu-support-ai__composer textarea:focus {
    outline: none;
    border-color: rgba(120, 190, 255, 0.45);
}

.mu-support-ai__docs {
    font-size: 0.82rem;
    text-align: center;
}
