/* ==========================================================================
   MuExtreme — CSS de fechamento (classes usadas pelas views que NÃO tinham
   nenhuma regra em lugar nenhum, nem no app.css nem no CSS dos plugins).

   Diagnóstico: templates/extreme/tools/parity/orphans.js
   Regras: só tokens do tema; nada aqui redefine componente existente.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. MarketPlace — página de manutenção (plugins/MarketPlace/maintenance.phtml)
   Todas as 8 classes estavam sem estilo: a página saía como texto cru.
   -------------------------------------------------------------------------- */
.bp-mkt-maint-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 1.25rem;
}
.bp-mkt-maint {
    width: min(560px, 100%);
    padding: 2rem 1.75rem;
    text-align: center;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-2);
}
.bp-mkt-maint__icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 1rem;
    display: grid;
    place-items: center;
    border-radius: 50%;
    font-size: 30px;
    color: var(--gold-700);
    background: var(--gold-100);
    border: 1px solid var(--gold-200);
}
.bp-mkt-maint__badge {
    display: inline-block;
    margin-bottom: 0.75rem;
    padding: 4px 12px;
    border-radius: var(--r-pill);
    font-family: var(--font-display);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gold-700);
    background: var(--gold-100);
    border: 1px solid var(--gold-200);
}
.bp-mkt-maint__msg {
    margin: 0 0 1rem;
    font-size: 0.98rem;
    line-height: 1.6;
    color: var(--text-muted);
}
.bp-mkt-maint__module {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0 0 1rem;
    padding: 5px 12px;
    border-radius: var(--r-pill);
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted);
    background: var(--surface-2);
    border: 1px solid var(--line);
}
.bp-mkt-maint__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-top: 0.5rem;
}
.bp-mkt-maint__hint {
    display: block;
    margin-top: 1rem;
    font-size: 12px;
    color: var(--text-dim);
}

/* --------------------------------------------------------------------------
   2. Ficha de personagem (AccountMarket/show + Profile/blocked)
   bp-char-info e bp-char-stat não existiam no CSS.
   -------------------------------------------------------------------------- */
.bp-char-info { display: block; }
.bp-char-info__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 10px 16px;
    margin: 1rem 0;
}
.bp-char-stat {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 9px 12px;
    background: var(--surface-2);
    border: 1px solid var(--line);
    border-radius: var(--r-sm);
}
.bp-char-stat__label {
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-dim);
}
.bp-char-stat__value {
    font-family: var(--font-display);
    font-size: 14.5px;
    font-weight: 700;
    color: var(--text);
    overflow-wrap: anywhere;
}

/* --------------------------------------------------------------------------
   3. Alternador de tipo de ranking (partials/rankings-mode-switch.phtml)
   -------------------------------------------------------------------------- */
.bp-rk-mode {
    display: inline-flex;
    gap: 6px;
    padding: 4px;
    margin-bottom: 1rem;
    background: var(--surface-2);
    border: 1px solid var(--line);
    border-radius: var(--r-pill);
}
.bp-rk-mode__btn {
    padding: 7px 16px;
    border-radius: var(--r-pill);
    font-family: var(--font-display);
    font-size: 12.5px;
    font-weight: 700;
    color: var(--text-muted);
    transition: all var(--t-fast) var(--ease);
}
.bp-rk-mode__btn:hover { color: var(--gold-700); }
.bp-rk-mode__btn.is-active {
    color: #42300a;
    background: linear-gradient(180deg, #f2c759, var(--gold-500));
    box-shadow: var(--glow-brand);
}

/* --------------------------------------------------------------------------
   4. Heros internos (server/info, vip/advantages) — coluna de texto
   -------------------------------------------------------------------------- */
.bp-srv-hero__copy,
.bp-vip-hero__copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.75rem;
    min-width: 0;
}
.bp-srv-hero__copy h2, .bp-vip-hero__copy h2 { margin: 0; }
.bp-srv-hero__copy p, .bp-vip-hero__copy p { margin: 0; color: var(--text-muted); }

/* --------------------------------------------------------------------------
   5. Founder Packs (plugins/FounderPacks)
   -------------------------------------------------------------------------- */
.bp-fp__hero-text,
.bp-fp__hero-side {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    min-width: 0;
}
.bp-fp__detail-body {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    min-width: 0;
}

/* -------------------------------------------------------------------------- 
   6. PIX / comprovante (plugins/Donate)
   -------------------------------------------------------------------------- */
.bp-donate-pix__copy-txt {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: var(--text-dim);
    overflow-wrap: anywhere;
}
.bp-donate-pix__emv {
    display: block;
    padding: 10px 12px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 11.5px;
    line-height: 1.5;
    color: var(--text-muted);
    background: var(--surface-2);
    border: 1px dashed var(--line);
    border-radius: var(--r-sm);
    overflow-wrap: anywhere;
}
.bp-table-wrap { width: 100%; overflow-x: auto; }
.bp-tk-thread { display: flex; flex-direction: column; gap: 0.9rem; }
.bp-tk-msg {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 12px 14px;
    background: var(--surface-2);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
}
.bp-tk-msg__head {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--text-dim);
}

/* --------------------------------------------------------------------------
   7. Wiki (plugins/Wiki) e Enquete (plugins/Poll)
   -------------------------------------------------------------------------- */
.bp-wiki__howto-body {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    min-width: 0;
    color: var(--text-muted);
    line-height: 1.65;
}
.bp-poll-form { display: flex; flex-direction: column; gap: 0.9rem; }
.bp-poll-result__row {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 9px 12px;
    font-size: 13px;
    color: var(--text-muted);
    background: var(--surface-2);
    border: 1px solid var(--line);
    border-radius: var(--r-sm);
}
.bp-poll-result__row.is-winner {
    border-color: var(--gold-300);
    background: linear-gradient(120deg, var(--gold-100), var(--surface-2));
    color: var(--gold-700);
    font-weight: 700;
}

/* --------------------------------------------------------------------------
   8. Linha de evento — selo de aviso (plugins/Events)
   -------------------------------------------------------------------------- */
.bp-ev-row__notify {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 10px;
    border-radius: var(--r-pill);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--gold-700);
    background: var(--gold-100);
    border: 1px solid var(--gold-200);
}

/* --------------------------------------------------------------------------
   9. Responsivo
   -------------------------------------------------------------------------- */
@media (max-width: 820px) {
    .bp-srv-hero__copy, .bp-vip-hero__copy, .bp-fp__hero-text, .bp-fp__hero-side { gap: 0.6rem; }
    .bp-char-info__grid { grid-template-columns: 1fr 1fr; }
    .bp-mkt-maint { padding: 1.5rem 1.15rem; }
}
