:root {
    --bg: #0f1115;
    --panel: #171a20;
    --panel-2: #1d2128;
    --text: #f4f5f7;
    --muted: #a6adbb;
    --line: #2a3039;
    --accent: #f2c94c;
    --danger: #ff6b6b;
    --success: #6dd6a0;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: var(--bg);
    color: var(--text);
}

a { color: var(--accent); }

.container {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
}

.topbar {
    border-bottom: 1px solid var(--line);
    background: rgba(15, 17, 21, .92);
    position: sticky;
    top: 0;
    backdrop-filter: blur(12px);
    z-index: 10;
}

.topbar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 0;
}

h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 0; font-size: 1.35rem; }
h2 { margin-bottom: 8px; }
h3 { margin-bottom: 8px; }

.eyebrow {
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .12em;
    font-size: .7rem;
    font-weight: 800;
    margin-bottom: 4px;
}

.status {
    color: var(--muted);
    border: 1px solid var(--line);
    padding: 7px 10px;
    border-radius: 999px;
    font-size: .85rem;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 18px;
    margin: 32px 0;
}

.panel, .set-card, .empty-state {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 16px;
}

.panel { padding: 22px; }

.add-form {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
}

input, button {
    font: inherit;
    border-radius: 10px;
    border: 1px solid var(--line);
}

input {
    padding: 12px 14px;
    background: var(--panel-2);
    color: var(--text);
    outline: none;
}

input:focus { border-color: var(--accent); }

button {
    cursor: pointer;
    padding: 12px 16px;
    border-color: transparent;
    background: var(--accent);
    color: #111;
    font-weight: 800;
}

button.secondary {
    background: var(--panel-2);
    color: var(--text);
    border-color: var(--line);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 20px;
    margin: 36px 0 14px;
}

.section-header h2 { margin-bottom: 0; }
.section-header span { color: var(--muted); }

.card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    padding-bottom: 50px;
}

.set-card { overflow: hidden; }

.image-wrap {
    aspect-ratio: 4/3;
    background: white;
    display: grid;
    place-items: center;
    padding: 16px;
}

.image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.image-placeholder { color: #777; }

.set-body { padding: 18px; }

.set-number {
    color: var(--accent);
    font-size: .85rem;
    font-weight: 900;
    margin-bottom: 6px;
}

.meta {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin: 12px 0 16px;
}

.meta span {
    color: var(--muted);
    background: var(--panel-2);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 5px 8px;
    font-size: .8rem;
}

.empty-state {
    padding: 28px;
    color: var(--muted);
}

.messages {
    display: grid;
    gap: 8px;
    margin-top: 18px;
}

.message {
    border: 1px solid var(--line);
    background: var(--panel);
    padding: 12px 14px;
    border-radius: 10px;
}

.message.success { border-color: var(--success); }
.message.error { border-color: var(--danger); }

@media (max-width: 800px) {
    .hero-grid, .card-grid { grid-template-columns: 1fr; }
    .add-form { grid-template-columns: 1fr; }
}
.section-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

.price-box {
    margin: 16px 0;
    padding: 14px;
    background: var(--panel-2);
    border: 1px solid var(--line);
    border-radius: 12px;
}

.current-price {
    display: block;
    margin: 4px 0 8px;
    font-size: 1.55rem;
    color: var(--accent);
}

.price-date {
    margin-bottom: 8px;
    color: var(--muted);
    font-size: .82rem;
}

@media (max-width: 800px) {
    .section-actions {
        align-items: stretch;
        flex-direction: column;
    }
}
.home-prices {
    display: grid;
    gap: 8px;
    margin: 14px 0;
}

.retired-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: fit-content;

    margin-top: 6px;

    padding: 3px 8px;

    border: 1px solid #ff5c5c;
    border-radius: 999px;

    color: #ff5c5c;
    background: rgba(
        255,
        92,
        92,
        0.08
    );

    font-size: 0.68rem;
    font-weight: 800;

    letter-spacing: 0.04em;
}

.price-row {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    color: var(--muted);
    font-size: .88rem;
}

.price-row strong {
    color: var(--text);
    text-align: right;
}

.ppp-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;

    margin: 14px 0;
    padding: 13px 14px;

    background: var(--panel-2);
    border: 1px solid var(--line);
    border-radius: 12px;
}

.ppp-label {
    display: block;
    color: var(--muted);
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    font-weight: 800;
}

.ppp-value {
    display: block;
    margin-top: 3px;
}

.ppp-rating {
    padding: 6px 9px;
    border-radius: 999px;
    font-size: .72rem;
    font-weight: 900;
    white-space: nowrap;
}

.ppp-excelente {
    border: 1px solid #6dd6a0;
}

.ppp-bom {
    border: 1px solid #8fcbff;
}

.ppp-na-media {
    border: 1px solid #f2c94c;
}

.ppp-caro {
    border: 1px solid #ff6b6b;
}
.ppp-source {
    display: block;
    margin-top: 3px;
    color: var(--muted);
    font-size: .72rem;
}
.detail-topbar {
    margin: 28px 0 18px;
}

.set-detail-hero {
    display: grid;
    grid-template-columns:
        minmax(260px, 420px)
        1fr;

    gap: 28px;

    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 18px;

    padding: 24px;
}

.detail-image {
    background: white;
    border-radius: 14px;

    min-height: 320px;

    display: grid;
    place-items: center;

    padding: 24px;
}

.detail-image img {
    width: 100%;
    height: 100%;
    max-height: 390px;

    object-fit: contain;
}

.detail-main {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.detail-title {
    font-size: 2rem;
    margin-bottom: 14px;
}

.detail-section {
    margin: 38px 0;
}

.detail-info-grid {
    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 12px;

    margin-top: 18px;
}

.detail-stat {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 13px;

    padding: 16px;
}

.detail-stat > span {
    display: block;

    color: var(--muted);

    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: .07em;

    margin-bottom: 7px;
}

.detail-stat > strong {
    font-size: 1.08rem;
}

.detail-stat small {
    display: block;

    margin-top: 5px;

    color: var(--muted);
}

.detail-rating {
    display: inline-block;

    margin-top: 10px;

    padding: 5px 8px;

    border: 1px solid var(--line);
    border-radius: 999px;

    font-size: .75rem;
    font-weight: 900;
}

.history-summary {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 12px;

    margin-bottom: 18px;
}

.chart-card {
    height: 380px;

    background: var(--panel);

    border: 1px solid var(--line);
    border-radius: 16px;

    padding: 18px;
}

.external-links {
    display: flex;
    flex-wrap: wrap;

    gap: 10px;
}

.external-links a,
.detail-button {
    display: inline-block;

    padding: 10px 13px;

    background: var(--panel-2);

    border: 1px solid var(--line);
    border-radius: 10px;

    text-decoration: none;
}

.detail-button {
    margin-top: 10px;
}

@media (max-width: 900px) {

    .set-detail-hero {
        grid-template-columns: 1fr;
    }

    .detail-info-grid {
        grid-template-columns:
            repeat(2, 1fr);
    }

    .history-summary {
        grid-template-columns:
            1fr;
    }
}

@media (max-width: 550px) {

    .detail-info-grid {
        grid-template-columns: 1fr;
    }

}
.alert-card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 20px;
}

.alert-form {
    display: grid;
    grid-template-columns:
        1fr 1fr auto;
    gap: 14px;
    align-items: end;
}

.alert-field {
    display: grid;
    gap: 7px;
}

.alert-field label {
    color: var(--muted);
    font-size: .82rem;
    font-weight: 700;
}

.money-input {
    display: flex;
    align-items: center;

    background: var(--panel-2);

    border: 1px solid var(--line);
    border-radius: 10px;

    overflow: hidden;
}

.money-input span {
    padding: 0 11px;
    color: var(--muted);
}

.money-input input {
    width: 100%;
    border: 0;
    border-radius: 0;
}

.alert-help {
    margin: 12px 0 0;
    color: var(--muted);
    font-size: .8rem;
}

@media (max-width: 800px) {
    .alert-form {
        grid-template-columns: 1fr;
    }
}
.alert-summary {
    display: grid;
    grid-template-columns:
        repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 18px;
}

@media (max-width: 800px) {
    .alert-summary {
        grid-template-columns: 1fr;
    }
}

.chart-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}

.chart-range-button {
    background: var(--panel-2);
    color: var(--muted);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 8px 13px;
    cursor: pointer;
    font-weight: 700;
}

.chart-range-button:hover {
    color: var(--text);
}

.chart-range-button.active {
    color: var(--text);
    border-color: var(--accent);
}

.chart-description {
    color: var(--muted);
    font-size: .82rem;
    margin-bottom: 14px;
}
.detail-rating {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    margin-top: 8px;

    padding: 4px 8px;

    border-radius: 999px;
    border: 1px solid;

    font-size: 0.72rem;
    font-weight: 800;
}


/* CARO */
.detail-rating.rating-caro {
    color: #ff6b6b;
    border-color: rgba(255, 107, 107, 0.45);
    background: rgba(255, 107, 107, 0.10);
}


/* NA MÉDIA */
.detail-rating.rating-media {
    color: #f5b942;
    border-color: rgba(245, 185, 66, 0.45);
    background: rgba(245, 185, 66, 0.10);
}


/* BOM */
.detail-rating.rating-bom {
    color: #52d273;
    border-color: rgba(82, 210, 115, 0.45);
    background: rgba(82, 210, 115, 0.10);
}


/* EXCELENTE */
.detail-rating.rating-excelente {
    color: #4da3ff;
    border-color: rgba(77, 163, 255, 0.45);
    background: rgba(77, 163, 255, 0.10);
}

.collection-section {
    margin-top: 24px;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--panel);
}

.collection-section h2 {
    margin: 0 0 6px;
}

.collection-section p {
    margin: 0;
    color: var(--muted);
}

.collection-form {
    display: grid;
    grid-template-columns:
        repeat(
            auto-fit,
            minmax(160px, 1fr)
        );
    gap: 14px;
    margin-top: 20px;
    align-items: end;
}

.collection-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.collection-field label {
    color: var(--muted);
    font-size: 0.8rem;
    font-weight: 700;
}

.collection-field input {
    width: 100%;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid var(--line);
    background: var(--panel-2);
    color: var(--text);
}

.collection-field input:focus {
    outline: none;
    border-color: var(--accent);
}

.collection-notes {
    grid-column: span 2;
}

.collection-open-button {
    border: 1px solid var(--line);
    border-radius: 10px;

    padding: 9px 13px;

    background: var(--panel-2);
    color: var(--text);

    font-weight: 700;
    cursor: pointer;
}

.collection-open-button:hover {
    border-color: var(--accent);
}


.owned-badge {
    width: fit-content;

    margin-top: 8px;

    padding: 4px 8px;

    border: 1px solid rgba(
        82,
        210,
        115,
        0.45
    );

    border-radius: 999px;

    background: rgba(
        82,
        210,
        115,
        0.08
    );

    color: #52d273;

    font-size: 0.72rem;
    font-weight: 800;
}


.home-collection-dialog {
    width: min(
        560px,
        calc(100vw - 30px)
    );

    padding: 0;

    border: 1px solid var(--line);
    border-radius: 18px;

    background: var(--panel);
    color: var(--text);
}


.home-collection-dialog::backdrop {
    background: rgba(
        0,
        0,
        0,
        0.72
    );

    backdrop-filter: blur(3px);
}


.home-collection-dialog form {
    padding: 22px;
}


.home-dialog-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;

    gap: 20px;

    margin-bottom: 20px;
}


.home-dialog-header small {
    color: var(--muted);

    font-size: 0.72rem;
    font-weight: 800;

    text-transform: uppercase;
}


.home-dialog-header h2 {
    margin: 5px 0 0;
}


.home-dialog-close {
    border: 0;
    background: transparent;

    color: var(--muted);

    font-size: 1.8rem;
    cursor: pointer;
}


.home-collection-grid {
    display: grid;

    grid-template-columns:
        repeat(
            2,
            minmax(0, 1fr)
        );

    gap: 14px;
}


.home-collection-field {
    display: flex;
    flex-direction: column;

    gap: 6px;
}


.home-collection-full {
    grid-column: 1 / -1;
}


.home-collection-field label {
    color: var(--muted);

    font-size: 0.8rem;
    font-weight: 700;
}


.home-collection-field input {
    width: 100%;

    padding: 10px 12px;

    border: 1px solid var(--line);
    border-radius: 10px;

    background: var(--panel-2);
    color: var(--text);
}


.home-collection-field input:focus {
    outline: none;
    border-color: var(--accent);
}


.home-dialog-actions {
    display: flex;
    justify-content: flex-end;

    gap: 10px;

    margin-top: 22px;
}


.home-dialog-cancel,
.home-dialog-save {
    padding: 10px 14px;

    border-radius: 10px;

    font-weight: 800;
    cursor: pointer;
}


.home-dialog-cancel {
    border: 1px solid var(--line);

    background: var(--panel-2);
    color: var(--text);
}


.home-dialog-save {
    border: 1px solid var(--accent);

    background: var(--accent);
    color: #111;
}


@media (max-width: 600px) {
    .home-collection-grid {
        grid-template-columns: 1fr;
    }

    .home-collection-full {
        grid-column: auto;
    }
}
.card-link-button,
.card-action-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 9px 13px;

    border: 1px solid var(--line);
    border-radius: 10px;

    background: transparent;
    color: var(--text);

    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

.card-link-button:hover,
.card-action-button:hover {
    border-color: var(--accent);
}

.card-action-danger {
    color: #ff5c5c;
}

.card-action-danger:hover {
    border-color: #ff5c5c;
}
.set-status-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;

    margin-top: 6px;
}
.sets-table .set-table-image {
    width: 54px !important;
    height: 54px !important;

    max-width: 54px !important;
    max-height: 54px !important;

    object-fit: contain;

    display: block;

    border-radius: 8px;
    background: #fff;

    flex-shrink: 0;
}

.set-table-identity {
    display: flex;
    align-items: center;
    gap: 10px;

    min-width: 0;
}
/* Cards mais compactos sem alterar a largura */

.set-card {
    min-height: 0 !important;
    height: auto !important;
}

.set-card .image-wrap {
    height: 230px !important;
    min-height: 230px !important;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;
}

.set-card .image-wrap img {
    width: 100% !important;
    height: 100% !important;

    max-width: 100% !important;
    max-height: 100% !important;

    object-fit: contain !important;

    position: static !important;
}

.set-card .set-body {
    padding: 12px;
}

.set-card h3 {
    margin: 4px 0 6px;
}

.set-card .meta {
    margin: 6px 0;
}

.set-card .home-prices {
    margin-top: 6px;
}

.set-card .price-box {
    margin-top: 8px;
    padding: 10px;
}

.set-card .ppp-box {
    margin-top: 8px;
    padding: 10px;
}

.set-card form {
    margin-top: 10px;
}

/* Imagem ocupa toda a largura do card */

.set-card .image-wrap {
    width: 100% !important;
    max-width: none !important;

    height: 230px !important;
    min-height: 230px !important;

    margin: 0 !important;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;

    background: #fff;
}

.set-card .image-wrap img {
    width: 100% !important;
    height: 100% !important;

    max-width: 100% !important;
    max-height: 100% !important;

    object-fit: contain !important;

    display: block;
    position: static !important;
}

/* ===== LISTA MAIS BONITA / SOFISTICADA ===== */

.sets-table-wrapper {
    width: 100%;

    overflow-x: visible;

    border: 1px solid var(--line);
    border-radius: 18px;

    background: var(--panel);
}

.sets-table {
    width: 100%;

    table-layout: fixed;

    border-collapse: separate;
    border-spacing: 0;
}

.sets-table thead th {
    padding: 12px 10px;

    font-size: 0.70rem;

    white-space: nowrap;
}

.sets-table tbody td {
    padding: 12px 10px;

    font-size: 0.80rem;

    vertical-align: middle;
}

.sets-table tbody tr:last-child td {
    border-bottom: 0;
}

.sets-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.025);
}


/* ===== IMAGEM MAIOR ===== */

.sets-table .set-table-image {
    width: 60px !important;
    height: 60px !important;

    max-width: 60px !important;
    max-height: 60px !important;

    object-fit: contain;

    border-radius: 10px;
    background: #fff;
}

.set-table-identity {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}


/* ===== TEXTO MAIS ORGANIZADO ===== */

.set-table-name {
    min-width: 260px;
}

.set-table-name strong {
    display: block;
    line-height: 1.25;
    margin-bottom: 4px;
}

.set-table-muted {
    display: block;
    margin-top: 3px;

    color: var(--muted);
    font-size: 0.78rem;
    line-height: 1.3;
}

.set-table-price {
    white-space: nowrap;
}

.set-table-ppp {
    white-space: nowrap;
}

.set-table-status,
.set-table-collection {
    white-space: nowrap;
}


/* ===== BADGES DENTRO DA TABELA ===== */

.sets-table .retired-badge,
.sets-table .owned-badge {
    margin-top: 0;
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
}


/* ===== AÇÕES ===== */

.set-table-actions {
    display: flex;
    align-items: center;
    gap: 5px;

    white-space: nowrap;
}

.table-action-button {
    padding: 6px 8px;

    font-size: 0.70rem;
}
.table-action-button:hover {
    border-color: var(--accent);
}

.table-action-danger {
    color: #ff5c5c;
}

.table-action-danger:hover {
    border-color: #ff5c5c;
}


/* ===== MAIS ESPAÇO EM COLUNAS IMPORTANTES ===== */

.sets-table th:nth-child(1),
.sets-table td:nth-child(1) {
    width: 17%;
}

.sets-table th:nth-child(2),
.sets-table td:nth-child(2) {
    width: 17%;
}

.sets-table th:nth-child(3),
.sets-table td:nth-child(3) {
    width: 7%;
}

.sets-table th:nth-child(4),
.sets-table td:nth-child(4) {
    width: 11%;
}

.sets-table th:nth-child(5),
.sets-table td:nth-child(5) {
    width: 10%;
}

.sets-table th:nth-child(6),
.sets-table td:nth-child(6) {
    width: 10%;
}

.sets-table th:nth-child(7),
.sets-table td:nth-child(7) {
    width: 8%;
}

.sets-table th:nth-child(8),
.sets-table td:nth-child(8) {
    width: 7%;
}

.sets-table th:nth-child(9),
.sets-table td:nth-child(9) {
    width: 13%;
}
/* A coluna de ações fica sempre visível */

.sets-table th:last-child,
.sets-table td:last-child {
    background: var(--panel);

    border-left: 1px solid var(--line);

    box-shadow:
        -12px 0 18px -18px
        rgba(0, 0, 0, 0.8);
}

.sets-table th:last-child {
    z-index: 5;
}

.sets-table td:last-child {
    z-index: 3;
}
/* ===== CORREÇÃO DAS AÇÕES NA VISUALIZAÇÃO LISTA ===== */

.sets-table .set-table-actions {
    display: grid;

    grid-template-columns:
        repeat(2, max-content);

    justify-content: center;
    align-items: center;

    gap: 7px 8px;

    white-space: nowrap;
}

.sets-table .table-delete-form {
    grid-column: 1 / -1;

    justify-self: center;

    margin: 0 !important;
    padding: 0 !important;
}
/* Form do botão remover não interfere no layout */
.sets-table .table-delete-form {
    display: inline-flex;

    margin: 0 !important;
    padding: 0 !important;
}


/* Todos os 3 botões ficam iguais */
.sets-table .table-action-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 7px 10px !important;

    border: 1px solid var(--line) !important;
    border-radius: 9px !important;

    background: transparent !important;
    color: var(--text) !important;

    font-size: 0.70rem !important;
    font-weight: 800;

    text-decoration: none !important;
    cursor: pointer;
}

.sets-table .table-action-danger {
    color: #ff5c5c !important;
}

.sets-table .table-action-danger:hover {
    border-color: #ff5c5c !important;
}
.set-table-image-link {
    display: flex;
    text-decoration: none;
}

.set-table-set-link,
.set-table-name-link {
    color: var(--text);
    text-decoration: none;
    font-weight: 800;
}

.set-table-set-link:hover,
.set-table-name-link:hover {
    color: var(--accent);
}

.set-table-image-link:hover .set-table-image {
    transform: scale(1.04);
}

.set-table-image {
    transition: transform 0.15s ease;
}
/* ===== MINHA COLEÇÃO ===== */

.collection-page {
    padding-bottom: 40px;
}

.collection-page-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;

    gap: 20px;

    margin-bottom: 24px;
}

.collection-page-header h1 {
    margin: 4px 0 6px;
}

.collection-page-header p {
    margin: 0;
    color: var(--muted);
}


.collection-summary {
    display: grid;

    grid-template-columns:
        repeat(
            2,
            minmax(0, 180px)
        );

    gap: 12px;

    margin-bottom: 20px;
}

.collection-summary-card {
    padding: 15px;

    border: 1px solid var(--line);
    border-radius: 14px;

    background: var(--panel);
}

.collection-summary-card span {
    display: block;

    margin-bottom: 5px;

    color: var(--muted);

    font-size: 0.75rem;
    font-weight: 700;
}

.collection-summary-card strong {
    font-size: 1.35rem;
}


.collection-table-wrapper {
    overflow: hidden;

    border: 1px solid var(--line);
    border-radius: 18px;

    background: var(--panel);
}

.collection-table {
    width: 100%;

    border-collapse: separate;
    border-spacing: 0;
}

.collection-table th {
    padding: 13px 16px;

    border-bottom: 1px solid var(--line);

    background: rgba(
        255,
        255,
        255,
        0.02
    );

    color: var(--muted);

    font-size: 0.72rem;
    font-weight: 800;

    text-align: left;
    text-transform: uppercase;
}

.collection-table td {
    padding: 14px 16px;

    border-bottom:
        1px solid
        rgba(
            255,
            255,
            255,
            0.05
        );

    vertical-align: middle;

    font-size: 0.84rem;
}

.collection-table tbody tr:last-child td {
    border-bottom: 0;
}

.collection-table tbody tr:hover {
    background: rgba(
        255,
        255,
        255,
        0.025
    );
}


.collection-set-info {
    display: flex;
    align-items: center;

    gap: 12px;

    min-width: 250px;
}

.collection-image-link {
    display: flex;

    width: 64px;
    height: 64px;

    flex-shrink: 0;

    border-radius: 10px;

    background: #fff;

    overflow: hidden;
}

.collection-image-link img {
    width: 100%;
    height: 100%;

    object-fit: contain;
}

.collection-set-name {
    display: block;

    margin-bottom: 4px;

    color: var(--text);

    font-weight: 800;
    text-decoration: none;
}

.collection-set-name:hover {
    color: var(--accent);
}

.collection-set-info small {
    display: block;

    margin-top: 2px;

    color: var(--muted);

    font-size: 0.72rem;
}

.collection-notes-cell {
    max-width: 220px;

    color: var(--muted);
}


.collection-empty {
    padding: 40px 20px;

    border: 1px solid var(--line);
    border-radius: 18px;

    background: var(--panel);

    text-align: center;
}

.collection-empty h2 {
    margin-top: 0;
}

.collection-empty p {
    color: var(--muted);
}


@media (max-width: 800px) {

    .collection-page-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .collection-table-wrapper {
        overflow-x: auto;
    }

    .collection-table {
        min-width: 850px;
    }

}
.header-collection-link {
    color: var(--muted);

    font-size: 0.8rem;
    font-weight: 800;

    text-decoration: none;
}

.header-collection-link:hover {
    color: var(--accent);
}
/* =========================================
   NAVEGAÇÃO PRINCIPAL
   ========================================= */

.topbar {
    position: sticky;
    top: 0;

    z-index: 100;

    border-bottom: 1px solid var(--line);

    background: rgba(
        13,
        15,
        18,
        0.96
    );

    backdrop-filter: blur(12px);
}


.topbar-inner {
    min-height: 72px;

    display: grid;

    grid-template-columns:
        auto
        1fr
        auto;

    align-items: center;

    gap: 32px;
}


/* MARCA */

.app-brand {
    color: var(--text);

    text-decoration: none;

    white-space: nowrap;
}


.app-brand-text {
    display: flex;
    flex-direction: column;
}


.app-brand-name {
    margin-top: 3px;

    font-size: 1.05rem;
    font-weight: 900;
}


.app-brand:hover
.app-brand-name {
    color: var(--accent);
}


/* MENU */

.main-nav {
    display: flex;

    align-items: stretch;
    justify-content: center;

    height: 72px;

    gap: 6px;
}


.main-nav-link {
    position: relative;

    display: flex;
    align-items: center;

    padding: 0 14px;

    color: var(--muted);

    font-size: 0.84rem;
    font-weight: 800;

    text-decoration: none;

    transition:
        color 0.15s ease,
        background 0.15s ease;
}


.main-nav-link:hover {
    color: var(--text);

    background: rgba(
        255,
        255,
        255,
        0.025
    );
}


/* ABA SELECIONADA */

.main-nav-link.active {
    color: var(--text);
}


.main-nav-link.active::after {
    content: "";

    position: absolute;

    left: 14px;
    right: 14px;
    bottom: 0;

    height: 3px;

    border-radius:
        3px
        3px
        0
        0;

    background: var(--accent);
}


/* CONTA */

.topbar-account {
    display: flex;
    justify-content: flex-end;
}


.account-link {
    display: inline-flex;
    align-items: center;

    gap: 8px;

    padding: 9px 12px;

    border: 1px solid var(--line);
    border-radius: 12px;

    color: var(--muted);

    font-size: 0.8rem;
    font-weight: 800;

    text-decoration: none;

    transition:
        border-color 0.15s ease,
        color 0.15s ease;
}


.account-link:hover {
    color: var(--text);
    border-color: var(--accent);
}


.account-link.active {
    color: var(--accent);
    border-color: var(--accent);
}


.account-icon {
    font-size: 0.95rem;
}


/* MOBILE */

@media (max-width: 850px) {

    .topbar-inner {
        grid-template-columns:
            1fr
            auto;

        gap: 12px;

        padding-top: 10px;
        padding-bottom: 10px;
    }


    .main-nav {
        grid-column: 1 / -1;

        order: 3;

        width: 100%;
        height: auto;

        justify-content: flex-start;

        overflow-x: auto;
    }


    .main-nav-link {
        min-height: 44px;

        padding: 0 12px;

        white-space: nowrap;
    }


    .app-brand .eyebrow {
        display: none;
    }

}
/* =========================================
   DASHBOARD / INÍCIO
   ========================================= */

.dashboard {
    padding-bottom: 44px;
}

.dashboard-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;

    gap: 20px;

    margin: 28px 0 22px;
}

.dashboard-header h1 {
    margin: 4px 0 5px;
}

.dashboard-header p {
    margin: 0;

    color: var(--muted);
}

/* RESUMO */

.dashboard-stats {
    display: grid;

    grid-template-columns:
        repeat(
            4,
            minmax(0, 1fr)
        );

    gap: 12px;

    margin-bottom: 18px;
}

.dashboard-stat-card {
    display: flex;
    flex-direction: column;

    padding: 17px;

    border: 1px solid var(--line);
    border-radius: 15px;

    background: var(--panel);

    color: var(--text);
    text-decoration: none;
}

.dashboard-stat-card span {
    color: var(--muted);

    font-size: 0.75rem;
    font-weight: 800;
}

.dashboard-stat-card strong {
    margin-top: 6px;

    font-size: 1.6rem;
}

.dashboard-stat-card small {
    margin-top: 3px;

    color: var(--muted);
}

a.dashboard-stat-card:hover {
    border-color: var(--accent);
}


/* DUAS COLUNAS */

.dashboard-grid {
    display: grid;

    grid-template-columns:
        minmax(0, 1.35fr)
        minmax(320px, 0.65fr);

    gap: 16px;
}


/* PAINÉIS */

.dashboard-panel {
    overflow: hidden;

    border: 1px solid var(--line);
    border-radius: 18px;

    background: var(--panel);
}

.dashboard-panel-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;

    gap: 16px;

    padding: 18px;

    border-bottom: 1px solid var(--line);
}

.dashboard-panel-header h2 {
    margin: 4px 0 0;

    font-size: 1.1rem;
}

.dashboard-panel-header a {
    color: var(--accent);

    font-size: 0.78rem;
    font-weight: 800;

    text-decoration: none;
}


/* ÚLTIMOS PREÇOS */

.dashboard-price-item {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 16px;

    padding: 12px 18px;

    border-bottom:
        1px solid
        rgba(
            255,
            255,
            255,
            0.05
        );

    color: var(--text);
    text-decoration: none;
}

.dashboard-price-item:last-child {
    border-bottom: 0;
}

.dashboard-price-item:hover {
    background: rgba(
        255,
        255,
        255,
        0.025
    );
}

.dashboard-price-product {
    display: flex;
    align-items: center;

    gap: 11px;

    min-width: 0;
}

.dashboard-mini-image {
    width: 52px;
    height: 52px;

    flex-shrink: 0;

    overflow: hidden;

    border-radius: 9px;

    background: #fff;
}

.dashboard-mini-image img {
    width: 100%;
    height: 100%;

    object-fit: contain;
}

.dashboard-price-product strong {
    display: block;
}

.dashboard-price-product small {
    display: block;

    margin-top: 3px;

    color: var(--muted);
}

.dashboard-price-info {
    min-width: 130px;

    text-align: right;
}

.dashboard-price-info span,
.dashboard-price-info small {
    display: block;

    color: var(--muted);

    font-size: 0.7rem;
}

.dashboard-price-info strong {
    display: block;

    margin: 3px 0;

    color: var(--accent);
}


/* COLEÇÃO RECENTE */

.dashboard-collection-item {
    display: flex;
    align-items: center;

    gap: 12px;

    padding: 12px 18px;

    border-bottom:
        1px solid
        rgba(
            255,
            255,
            255,
            0.05
        );

    color: var(--text);
    text-decoration: none;
}

.dashboard-collection-item:last-child {
    border-bottom: 0;
}

.dashboard-collection-item:hover {
    background: rgba(
        255,
        255,
        255,
        0.025
    );
}

.dashboard-collection-image {
    width: 58px;
    height: 58px;

    flex-shrink: 0;

    overflow: hidden;

    border-radius: 10px;

    background: #fff;
}

.dashboard-collection-image img {
    width: 100%;
    height: 100%;

    object-fit: contain;
}

.dashboard-collection-info strong {
    display: block;
}

.dashboard-collection-info small {
    display: block;

    margin-top: 2px;

    color: var(--muted);
}

.dashboard-collection-info span {
    display: block;

    margin-top: 5px;

    color: var(--accent);

    font-size: 0.75rem;
    font-weight: 800;
}


.dashboard-empty {
    padding: 28px 18px;

    color: var(--muted);
}


/* RESPONSIVO */

@media (max-width: 950px) {

    .dashboard-stats {
        grid-template-columns:
            repeat(
                2,
                minmax(0, 1fr)
            );
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }

}

@media (max-width: 600px) {

    .dashboard-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .dashboard-stats {
        grid-template-columns: 1fr 1fr;
    }

    .dashboard-price-item {
        align-items: flex-start;
    }

}
.collection-actions {
    display: flex;
    align-items: center;
    gap: 7px;

    white-space: nowrap;
}

.collection-actions form {
    margin: 0;
}

.collection-action-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 7px 10px;

    border: 1px solid var(--line);
    border-radius: 9px;

    background: transparent;
    color: var(--text);

    font-size: 0.75rem;
    font-weight: 800;

    cursor: pointer;
}

.collection-action-button:hover {
    border-color: var(--accent);
}

.collection-action-danger {
    color: #ff5c5c;
}

.collection-action-danger:hover {
    border-color: #ff5c5c;
}
/* =========================================
   ESTATÍSTICAS
   ========================================= */

.stats-page {
    padding-bottom: 45px;
}

.stats-header {
    margin: 28px 0 22px;
}

.stats-header h1 {
    margin: 4px 0 5px;
}

.stats-header p {
    margin: 0;
    color: var(--muted);
}


/* RESUMO */

.stats-summary {
    display: grid;

    grid-template-columns:
        repeat(
            4,
            minmax(0, 1fr)
        );

    gap: 12px;

    margin-bottom: 18px;
}

.stats-summary-card {
    min-width: 0;

    padding: 16px;

    border: 1px solid var(--line);
    border-radius: 15px;

    background: var(--panel);
}

.stats-summary-card span {
    display: block;

    color: var(--muted);

    font-size: 0.74rem;
    font-weight: 800;
}

.stats-summary-card strong {
    display: block;

    margin-top: 6px;

    overflow: hidden;

    font-size: 1.35rem;

    text-overflow: ellipsis;
}

.stats-summary-card small {
    display: block;

    margin-top: 4px;

    color: var(--muted);

    font-size: 0.72rem;
}


/* MAIS CARO / MAIS BARATO */

.stats-extremes {
    display: grid;

    grid-template-columns:
        repeat(
            2,
            minmax(0, 1fr)
        );

    gap: 14px;

    margin-bottom: 18px;
}

.stats-extreme-card {
    overflow: hidden;

    border: 1px solid var(--line);
    border-radius: 18px;

    background: var(--panel);
}

.stats-extreme-label {
    padding: 12px 16px;

    border-bottom: 1px solid var(--line);

    color: var(--muted);

    font-size: 0.72rem;
    font-weight: 900;

    letter-spacing: 0.04em;
}

.stats-extreme-content {
    display: flex;
    align-items: center;

    gap: 18px;

    padding: 18px;

    color: var(--text);
    text-decoration: none;
}

.stats-extreme-content:hover {
    background: rgba(
        255,
        255,
        255,
        0.025
    );
}

.stats-extreme-image {
    width: 135px;
    height: 135px;

    flex-shrink: 0;

    overflow: hidden;

    border-radius: 14px;

    background: #fff;
}

.stats-extreme-image img {
    width: 100%;
    height: 100%;

    object-fit: contain;
}

.stats-extreme-info {
    min-width: 0;
}

.stats-extreme-info > span {
    color: var(--muted);

    font-size: 0.75rem;
    font-weight: 800;
}

.stats-extreme-info h2 {
    margin: 5px 0 12px;

    font-size: 1.15rem;
}

.stats-extreme-info strong {
    display: block;

    color: var(--accent);

    font-size: 1.5rem;
}

.stats-extreme-info small {
    display: block;

    margin-top: 5px;

    color: var(--muted);
}

.stats-no-data {
    padding: 28px 18px;

    color: var(--muted);
}


/* TEMAS */

.stats-themes {
    padding: 18px;

    border: 1px solid var(--line);
    border-radius: 18px;

    background: var(--panel);
}

.stats-section-header h2 {
    margin: 4px 0 18px;
}

.stats-theme-list {
    display: flex;
    flex-direction: column;

    gap: 12px;
}

.stats-theme-row {
    display: grid;

    grid-template-columns:
        minmax(130px, 220px)
        1fr
        40px;

    align-items: center;

    gap: 14px;
}

.stats-theme-row > span {
    font-size: 0.82rem;
    font-weight: 800;
}

.stats-theme-line {
    height: 8px;

    overflow: hidden;

    border-radius: 999px;

    background: var(--panel-2);
}

.stats-theme-fill {
    height: 100%;

    border-radius: inherit;

    background: var(--accent);
}

.stats-theme-row > strong {
    text-align: right;
}


/* RESPONSIVO */

@media (max-width: 900px) {

    .stats-summary {
        grid-template-columns:
            repeat(
                2,
                minmax(0, 1fr)
            );
    }

    .stats-extremes {
        grid-template-columns: 1fr;
    }

}

@media (max-width: 550px) {

    .stats-extreme-image {
        width: 100px;
        height: 100px;
    }

    .stats-theme-row {
        grid-template-columns:
            100px
            1fr
            32px;
    }

}
/* =========================================
   LOGIN
   ========================================= */

.login-page {
    min-height: calc(100vh - 120px);

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 40px 0;
}

.login-card {
    width: min(420px, 100%);

    padding: 28px;

    border: 1px solid var(--line);
    border-radius: 20px;

    background: var(--panel);
}

.login-card h1 {
    margin: 5px 0 6px;
}

.login-card p {
    margin: 0 0 22px;

    color: var(--muted);
}

.login-form {
    display: flex;
    flex-direction: column;

    gap: 15px;
}

.login-field {
    display: flex;
    flex-direction: column;

    gap: 6px;
}

.login-field label {
    color: var(--muted);

    font-size: 0.8rem;
    font-weight: 800;
}

.login-field input {
    padding: 11px 12px;

    border: 1px solid var(--line);
    border-radius: 11px;

    background: var(--panel-2);
    color: var(--text);
}

.login-field input:focus {
    outline: none;

    border-color: var(--accent);
}

.login-button {
    margin-top: 5px;

    padding: 11px 14px;

    border: 1px solid var(--accent);
    border-radius: 11px;

    background: var(--accent);
    color: #111;

    font-weight: 900;
    cursor: pointer;
}
.account-page {
    padding-bottom: 40px;
}

.account-page-header {
    margin: 28px 0 22px;
}

.account-page-header h1 {
    margin: 4px 0 5px;
}

.account-page-header p {
    margin: 0;

    color: var(--muted);
}

.account-card {
    max-width: 620px;

    padding: 22px;

    border: 1px solid var(--line);
    border-radius: 18px;

    background: var(--panel);
}

.account-avatar {
    width: 58px;
    height: 58px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 20px;

    border-radius: 50%;

    background: var(--accent);
    color: #111;

    font-size: 1.4rem;
    font-weight: 900;
}

.account-profile {
    display: grid;

    grid-template-columns:
        140px
        1fr;

    gap: 12px 18px;

    margin-bottom: 22px;
}

.account-profile span {
    color: var(--muted);

    font-size: 0.8rem;
    font-weight: 700;
}

.account-logout {
    padding: 9px 12px;

    border: 1px solid #ff5c5c;
    border-radius: 10px;

    background: transparent;
    color: #ff5c5c;

    font-weight: 800;
    cursor: pointer;
}
/* =========================================
   AUTH / LOGIN / REGISTER
   ========================================= */

.auth-body {
    margin: 0;

    min-height: 100vh;

    background:
        #07090d;

    color: #f5f5f5;

    overflow-x: hidden;
}

.auth-layout {
    position: relative;

    z-index: 2;

    min-height: 100vh;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 50px 20px;
}


/* FUNDO */

.auth-background {
    position: fixed;

    inset: 0;

    overflow: hidden;

    pointer-events: none;

    background:
        radial-gradient(
            circle at 50% 20%,
            rgba(255, 215, 0, 0.05),
            transparent 32%
        ),
        linear-gradient(
            145deg,
            #080a0e 0%,
            #0b1018 52%,
            #08090d 100%
        );
}

.auth-glow {
    position: absolute;

    border-radius: 999px;

    filter: blur(100px);

    opacity: 0.25;
}

.auth-glow-yellow {
    width: 420px;
    height: 420px;

    top: -180px;
    left: 20%;

    background: #ffd500;
}

.auth-glow-blue {
    width: 520px;
    height: 520px;

    right: -180px;
    bottom: -180px;

    background: #275cff;

    opacity: 0.17;
}

.auth-grid {
    position: absolute;

    inset: 0;

    opacity: 0.09;

    background-image:
        linear-gradient(
            rgba(255,255,255,.08) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(255,255,255,.08) 1px,
            transparent 1px
        );

    background-size:
        54px 54px;

    mask-image:
        linear-gradient(
            to bottom,
            transparent,
            black 30%,
            black 70%,
            transparent
        );
}


/* CONTAINER */

.auth-wrapper {
    width: min(
        420px,
        100%
    );
}


/* BRAND */

.auth-brand {
    margin-bottom: 26px;

    text-align: center;
}

.auth-brand-icon {
    width: 52px;
    height: 52px;

    display: grid;

    grid-template-columns:
        repeat(2, 1fr);

    gap: 4px;

    margin:
        0 auto
        12px;

    padding: 8px;

    border:
        1px solid
        rgba(255, 213, 0, 0.35);

    border-radius: 15px;

    background:
        rgba(255, 213, 0, 0.08);

    box-shadow:
        0 0 35px
        rgba(255, 213, 0, 0.12);
}

.auth-brand-icon span {
    border-radius: 50%;

    background: #ffd500;

    box-shadow:
        0 0 10px
        rgba(255, 213, 0, 0.45);
}

.auth-brand h1 {
    margin: 0;

    font-size: 1.45rem;
}

.auth-brand p {
    margin-top: 6px;

    color: #717780;

    font-size: 0.63rem;
    font-weight: 800;

    letter-spacing: 0.18em;
}


/* CARD */

.auth-card {
    position: relative;

    padding: 27px;

    border:
        1px solid
        rgba(255,255,255,.09);

    border-radius: 20px;

    background:
        rgba(14,17,23,.82);

    box-shadow:
        0 30px 80px
        rgba(0,0,0,.45);

    backdrop-filter:
        blur(18px);
}

.auth-card::before {
    content: "";

    position: absolute;

    inset: 0;

    border-radius: inherit;

    pointer-events: none;

    background:
        linear-gradient(
            135deg,
            rgba(255,255,255,.04),
            transparent 35%
        );
}

.auth-card-register {
    width: min(
        500px,
        calc(100vw - 40px)
    );

    margin-left: 50%;

    transform:
        translateX(-50%);
}

.auth-card-heading {
    margin-bottom: 23px;
}

.auth-eyebrow {
    color: #ffd500;

    font-size: 0.66rem;
    font-weight: 900;

    letter-spacing: 0.15em;
}

.auth-card-heading h2 {
    margin:
        6px 0
        6px;

    font-size: 1.4rem;
}

.auth-card-heading p {
    margin: 0;

    color: #7e848d;

    font-size: 0.82rem;
    line-height: 1.5;
}


/* FORM */

.auth-form {
    position: relative;

    display: flex;
    flex-direction: column;

    gap: 15px;
}

.auth-field {
    display: flex;
    flex-direction: column;

    gap: 6px;
}

.auth-field label {
    color: #a4a8ae;

    font-size: 0.72rem;
    font-weight: 800;
}

.auth-input {
    min-height: 46px;

    display: flex;
    align-items: center;

    gap: 9px;

    padding:
        0 12px;

    border:
        1px solid
        rgba(255,255,255,.08);

    border-radius: 11px;

    background:
        rgba(255,255,255,.035);

    transition:
        border-color .2s,
        background .2s,
        box-shadow .2s;
}

.auth-input:focus-within {
    border-color:
        rgba(255,213,0,.65);

    background:
        rgba(255,213,0,.035);

    box-shadow:
        0 0 0 3px
        rgba(255,213,0,.05);
}

.auth-input input {
    width: 100%;

    padding:
        12px 0;

    border: 0;
    outline: 0;

    background: transparent;

    color: #f5f5f5;

    font: inherit;

    font-size: .84rem;
}

.auth-input input::placeholder {
    color: #50565e;
}

.auth-input-icon {
    color: #666d76;

    font-size: .65rem;
}

.auth-input-prefix > span {
    color: #ffd500;

    font-weight: 900;
}

.auth-password-toggle {
    padding: 5px;

    border: 0;

    background: transparent;
    color: #6f757e;

    cursor: pointer;
}


/* BOTÃO */

.auth-primary-button {
    min-height: 47px;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 10px;

    margin-top: 4px;

    border: 1px solid #ffd500;
    border-radius: 11px;

    background:
        linear-gradient(
            135deg,
            #ffd500,
            #f2b900
        );

    color: #101010;

    font-weight: 900;

    cursor: pointer;

    box-shadow:
        0 8px 28px
        rgba(255, 213, 0, .12);

    transition:
        transform .2s,
        box-shadow .2s;
}

.auth-primary-button:hover {
    transform:
        translateY(-1px);

    box-shadow:
        0 12px 35px
        rgba(255, 213, 0, .22);
}


/* DIVISOR / REGISTRO */

.auth-divider {
    display: flex;
    align-items: center;

    gap: 12px;

    margin:
        20px 0
        15px;

    color: #4e545b;

    font-size: .7rem;
}

.auth-divider::before,
.auth-divider::after {
    content: "";

    flex: 1;

    height: 1px;

    background:
        rgba(255,255,255,.07);
}

.auth-register {
    display: flex;
    justify-content: center;

    gap: 6px;

    color: #717780;

    font-size: .76rem;
}

.auth-register a {
    color: #ffd500;

    font-weight: 800;
    text-decoration: none;
}

.auth-register a:hover {
    text-decoration: underline;
}


/* FOOTER */

.auth-footer {
    margin-top: 18px;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 7px;

    color: #555b63;

    font-size: .67rem;
}

.auth-status-dot {
    width: 6px;
    height: 6px;

    border-radius: 50%;

    background: #65d783;

    box-shadow:
        0 0 8px #65d783;
}


/* FLASH */

.auth-flashes {
    position: fixed;

    top: 18px;
    left: 50%;

    z-index: 20;

    width: min(
        420px,
        calc(100% - 30px)
    );

    transform:
        translateX(-50%);
}


/* REGISTER */

.auth-register-grid {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 12px;
}


/* MOBILE */

@media (max-width: 560px) {

    .auth-layout {
        padding:
            35px 16px;
    }

    .auth-card {
        padding: 22px;
    }

    .auth-register-grid {
        grid-template-columns:
            1fr;
    }

}

.auth-brand {
    text-align: center;
    margin-bottom: 28px;
}

.auth-brand-logo {
    width: 180px;
    height: 180px;
    object-fit: contain;
    display: block;
    margin: 0 auto 18px;
}

.auth-brand h1 {
    margin: 0;
    font-size: 2rem;
    font-weight: 800;
    color: #f5f7fb;
}

.auth-brand p {
    margin-top: 8px;
    font-size: 0.78rem;
    letter-spacing: 0.18em;
    color: #7d8597;
}
/* =========================================
   FUNDO ANIMADO - SUAVE / PREMIUM
   ========================================= */

.auth-background {
    animation:
        authBackgroundShift
        18s
        ease-in-out
        infinite
        alternate;
}


/* brilho amarelo */

.auth-glow-yellow {
    animation:
        yellowBreathing
        7s
        ease-in-out
        infinite;

    transform-origin: center;
}


/* brilho azul */

.auth-glow-blue {
    animation:
        blueBreathing
        9s
        ease-in-out
        infinite;

    transform-origin: center;
}


/* fundo se desloca bem devagar */

@keyframes authBackgroundShift {

    0% {
        background-position:
            0% 40%;
    }

    100% {
        background-position:
            100% 60%;
    }

}


/* amarelo só cresce e diminui */

@keyframes yellowBreathing {

    0%,
    100% {
        transform:
            scale(0.95);

        opacity: 0.18;
    }

    50% {
        transform:
            scale(1.18);

        opacity: 0.34;
    }

}


/* azul faz o mesmo, fora de sincronia */

@keyframes blueBreathing {

    0%,
    100% {
        transform:
            scale(1.1);

        opacity: 0.12;
    }

    50% {
        transform:
            scale(0.9);

        opacity: 0.25;
    }

}


/* grade quase parada */

.auth-grid {
    animation:
        authGridDrift
        40s
        linear
        infinite;
}

@keyframes authGridDrift {

    from {
        background-position:
            0 0,
            0 0;
    }

    to {
        background-position:
            108px 54px,
            108px 54px;
    }

}
/* =========================================
   PARTÍCULAS LEVES NO FUNDO
   ========================================= */

.auth-particles {
    position: absolute;
    inset: 0;

    overflow: hidden;

    pointer-events: none;
}

.auth-particles span {
    position: absolute;

    width: 6px;
    height: 6px;

    border-radius: 50%;

    background: rgba(255, 255, 255, 0.12);

    box-shadow:
        0 0 10px rgba(255, 255, 255, 0.08);

    animation:
        authParticleFloat linear infinite;
}


/* posições + tamanhos + tempos diferentes */

.auth-particles span:nth-child(1) {
    left: 10%;
    top: 78%;

    width: 4px;
    height: 4px;

    animation-duration: 17s;
    animation-delay: 0s;
}

.auth-particles span:nth-child(2) {
    left: 22%;
    top: 58%;

    width: 7px;
    height: 7px;

    animation-duration: 22s;
    animation-delay: 2s;
}

.auth-particles span:nth-child(3) {
    left: 35%;
    top: 88%;

    width: 5px;
    height: 5px;

    animation-duration: 20s;
    animation-delay: 4s;
}

.auth-particles span:nth-child(4) {
    left: 48%;
    top: 70%;

    width: 3px;
    height: 3px;

    animation-duration: 16s;
    animation-delay: 1s;
}

.auth-particles span:nth-child(5) {
    left: 62%;
    top: 82%;

    width: 6px;
    height: 6px;

    animation-duration: 24s;
    animation-delay: 5s;
}

.auth-particles span:nth-child(6) {
    left: 74%;
    top: 60%;

    width: 4px;
    height: 4px;

    animation-duration: 19s;
    animation-delay: 3s;
}

.auth-particles span:nth-child(7) {
    left: 84%;
    top: 76%;

    width: 8px;
    height: 8px;

    animation-duration: 26s;
    animation-delay: 6s;
}

.auth-particles span:nth-child(8) {
    left: 92%;
    top: 68%;

    width: 5px;
    height: 5px;

    animation-duration: 21s;
    animation-delay: 2.5s;
}

.auth-particles span:nth-child(9) {
    left: 14%;
    top: 42%;

    width: 5px;
    height: 5px;

    animation-duration: 23s;
    animation-delay: 1.5s;
}

.auth-particles span:nth-child(10) {
    left: 28%;
    top: 72%;

    width: 3px;
    height: 3px;

    animation-duration: 18s;
    animation-delay: 4.5s;
}

.auth-particles span:nth-child(11) {
    left: 41%;
    top: 52%;

    width: 6px;
    height: 6px;

    animation-duration: 25s;
    animation-delay: 2s;
}

.auth-particles span:nth-child(12) {
    left: 54%;
    top: 86%;

    width: 4px;
    height: 4px;

    animation-duration: 20s;
    animation-delay: 6s;
}

.auth-particles span:nth-child(13) {
    left: 67%;
    top: 46%;

    width: 7px;
    height: 7px;

    animation-duration: 27s;
    animation-delay: 3.5s;
}

.auth-particles span:nth-child(14) {
    left: 78%;
    top: 88%;

    width: 5px;
    height: 5px;

    animation-duration: 21s;
    animation-delay: 5s;
}

.auth-particles span:nth-child(15) {
    left: 87%;
    top: 38%;

    width: 3px;
    height: 3px;

    animation-duration: 24s;
    animation-delay: 1s;
}

.auth-particles span:nth-child(16) {
    left: 95%;
    top: 54%;

    width: 6px;
    height: 6px;

    animation-duration: 29s;
    animation-delay: 7s;
}


/* movimento bem leve */

@keyframes authParticleFloat {

    0% {
        transform:
            translateY(0)
            translateX(0);
        opacity: 0;
    }

    10% {
        opacity: 0.7;
    }

    50% {
        transform:
            translateY(-35px)
            translateX(8px);
        opacity: 0.22;
    }

    100% {
        transform:
            translateY(-75px)
            translateX(-6px);
        opacity: 0;
    }

}
/* =========================================
   HOME PÚBLICA
   ========================================= */

.landing-layout {
    display: block;

    padding: 0 28px;
}

.landing-page {
    width: min(1180px, 100%);

    margin: 0 auto;

    position: relative;
    z-index: 3;
}


/* NAV */

.landing-nav {
    min-height: 88px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;
}

.landing-logo {
    display: flex;
    align-items: center;

    gap: 11px;

    color: #f6f7fb;

    font-weight: 900;
    text-decoration: none;
}

.landing-logo img {
    width: 42px;
    height: 42px;

    object-fit: contain;
}

.landing-nav-actions {
    display: flex;
    align-items: center;

    gap: 10px;
}

.landing-login,
.landing-register {
    padding: 9px 15px;

    border-radius: 10px;

    font-size: .78rem;
    font-weight: 900;

    text-decoration: none;
}

.landing-login {
    color: #c4c8cf;
}

.landing-login:hover {
    color: #fff;
}

.landing-register {
    border: 1px solid #ffd500;

    background: #ffd500;
    color: #111;
}


/* HERO */

.landing-hero {
    min-height: calc(100vh - 88px);

    display: grid;

    grid-template-columns:
        minmax(0, 1.05fr)
        minmax(380px, .95fr);

    align-items: center;

    gap: 80px;

    padding:
        55px 0
        100px;
}

.landing-badge {
    display: inline-flex;

    padding: 6px 10px;

    border:
        1px solid
        rgba(255, 213, 0, .22);

    border-radius: 999px;

    background:
        rgba(255, 213, 0, .06);

    color: #ffd500;

    font-size: .65rem;
    font-weight: 900;

    letter-spacing: .14em;
}

.landing-hero-content h1 {
    max-width: 700px;

    margin:
        18px 0
        20px;

    font-size:
        clamp(
            3rem,
            6vw,
            5.4rem
        );

    line-height: .98;

    letter-spacing: -.055em;
}

.landing-hero-content h1 span {
    display: block;

    color: #ffd500;
}

.landing-hero-content > p {
    max-width: 590px;

    margin: 0;

    color: #858c97;

    font-size: 1rem;

    line-height: 1.75;
}

.landing-hero-actions {
    display: flex;
    align-items: center;

    gap: 12px;

    margin-top: 30px;
}

.landing-primary {
    min-height: 46px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 12px;

    padding: 0 19px;

    border:
        1px solid
        #ffd500;

    border-radius: 11px;

    background:
        linear-gradient(
            135deg,
            #ffd500,
            #efb800
        );

    color: #111;

    font-size: .8rem;
    font-weight: 900;

    text-decoration: none;

    box-shadow:
        0 10px 35px
        rgba(255, 213, 0, .12);

    transition:
        transform .2s,
        box-shadow .2s;
}

.landing-primary:hover {
    transform:
        translateY(-2px);

    box-shadow:
        0 14px 40px
        rgba(255, 213, 0, .2);
}

.landing-secondary {
    min-height: 46px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 0 18px;

    border:
        1px solid
        rgba(255,255,255,.1);

    border-radius: 11px;

    background:
        rgba(255,255,255,.025);

    color: #b9bec7;

    font-size: .8rem;
    font-weight: 800;

    text-decoration: none;
}

.landing-secondary:hover {
    border-color:
        rgba(255,255,255,.22);

    color: #fff;
}

.landing-mini-features {
    display: flex;
    flex-wrap: wrap;

    gap: 18px;

    margin-top: 25px;

    color: #666d77;

    font-size: .69rem;
    font-weight: 700;
}

.landing-mini-features span {
    display: flex;
    align-items: center;

    gap: 6px;
}

.landing-mini-features b {
    color: #ffd500;
}


/* PREVIEW */

.landing-preview {
    position: relative;

    padding: 21px;

    border:
        1px solid
        rgba(255,255,255,.09);

    border-radius: 22px;

    background:
        rgba(13, 17, 24, .72);

    box-shadow:
        0 35px 100px
        rgba(0,0,0,.48);

    backdrop-filter:
        blur(18px);

    transform:
        perspective(1000px)
        rotateY(-3deg)
        rotateX(1deg);
}

.landing-preview::before {
    content: "";

    position: absolute;

    inset: -1px;

    z-index: -1;

    border-radius: inherit;

    background:
        linear-gradient(
            130deg,
            rgba(255,213,0,.15),
            transparent 25%,
            transparent 75%,
            rgba(45,93,255,.1)
        );
}

.landing-preview-top {
    display: flex;
    justify-content: space-between;

    align-items: center;

    margin-bottom: 18px;
}

.landing-preview-top small {
    display: block;

    color: #626975;

    font-size: .61rem;
    font-weight: 900;

    letter-spacing: .12em;
}

.landing-preview-top strong {
    display: block;

    margin-top: 4px;

    font-size: 1.05rem;
}

.landing-live {
    display: flex;
    align-items: center;

    gap: 6px;

    color: #71d98a;

    font-size: .6rem;
    font-weight: 900;
}

.landing-live i {
    width: 6px;
    height: 6px;

    border-radius: 50%;

    background: #71d98a;

    box-shadow:
        0 0 10px
        rgba(113,217,138,.7);
}

.landing-set-card {
    display: grid;

    grid-template-columns:
        78px
        1fr
        auto;

    align-items: center;

    gap: 16px;

    padding: 14px;

    border:
        1px solid
        rgba(255,255,255,.07);

    border-radius: 14px;

    background:
        rgba(255,255,255,.025);
}

.landing-set-image {
    width: 78px;
    height: 78px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 11px;

    background: #fff;
}

.landing-brick {
    width: 47px;
    height: 35px;

    display: grid;

    grid-template-columns:
        repeat(2, 1fr);

    gap: 4px;

    padding: 7px;

    border-radius: 6px;

    background: #ffd500;
}

.landing-brick span {
    border-radius: 50%;

    background: #e0ac00;

    box-shadow:
        inset 0 2px 2px
        rgba(255,255,255,.35);
}

.landing-set-info small,
.landing-set-price small {
    color: #606773;

    font-size: .57rem;
    font-weight: 900;

    letter-spacing: .08em;
}

.landing-set-info strong {
    display: block;

    margin: 4px 0;

    font-size: .84rem;
}

.landing-set-info span {
    color: #737a85;

    font-size: .67rem;
}

.landing-set-price {
    text-align: right;
}

.landing-set-price strong {
    display: block;

    margin-top: 4px;

    color: #ffd500;

    font-size: .95rem;
}

.landing-preview-stats {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 9px;

    margin-top: 10px;
}

.landing-preview-stats div {
    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 12px;

    border:
        1px solid
        rgba(255,255,255,.06);

    border-radius: 11px;

    background:
        rgba(255,255,255,.02);
}

.landing-preview-stats span {
    color: #737a84;

    font-size: .65rem;
}

.landing-preview-stats strong {
    font-size: .9rem;
}


/* FEATURES */

.landing-features {
    padding:
        60px 0
        100px;
}

.landing-section-title {
    max-width: 600px;

    margin-bottom: 30px;
}

.landing-section-title > span,
.landing-bottom-cta > div > span {
    color: #ffd500;

    font-size: .64rem;
    font-weight: 900;

    letter-spacing: .14em;
}

.landing-section-title h2 {
    margin:
        8px 0
        8px;

    font-size: 2rem;
}

.landing-section-title p {
    margin: 0;

    color: #777e89;

    line-height: 1.6;
}

.landing-feature-grid {
    display: grid;

    grid-template-columns:
        repeat(
            4,
            minmax(0, 1fr)
        );

    gap: 13px;
}

.landing-feature-card {
    padding: 20px;

    border:
        1px solid
        rgba(255,255,255,.07);

    border-radius: 15px;

    background:
        rgba(255,255,255,.022);

    transition:
        transform .2s,
        border-color .2s;
}

.landing-feature-card:hover {
    transform:
        translateY(-3px);

    border-color:
        rgba(255,213,0,.25);
}

.landing-feature-icon {
    width: 37px;
    height: 37px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 16px;

    border-radius: 10px;

    background:
        rgba(255,213,0,.08);

    color: #ffd500;

    font-weight: 900;
}

.landing-feature-card h3 {
    margin:
        0 0
        8px;

    font-size: .95rem;
}

.landing-feature-card p {
    margin: 0;

    color: #777e88;

    font-size: .75rem;

    line-height: 1.6;
}


/* CTA */

.landing-bottom-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 25px;

    padding: 30px;

    border:
        1px solid
        rgba(255,213,0,.14);

    border-radius: 20px;

    background:
        linear-gradient(
            120deg,
            rgba(255,213,0,.055),
            rgba(255,255,255,.015)
        );
}

.landing-bottom-cta h2 {
    margin:
        6px 0
        0;

    font-size: 1.5rem;
}


/* FOOTER */

.landing-footer {
    min-height: 100px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    color: #555c66;

    font-size: .72rem;
}

.landing-footer span {
    color: #7e858f;

    font-weight: 800;
}


/* RESPONSIVO */

@media (max-width: 900px) {

    .landing-hero {
        grid-template-columns:
            1fr;

        gap: 55px;
    }

    .landing-preview {
        transform: none;
    }

    .landing-feature-grid {
        grid-template-columns:
            repeat(2, 1fr);
    }

}

@media (max-width: 600px) {

    .landing-layout {
        padding:
            0 17px;
    }

    .landing-nav {
        min-height: 75px;
    }

    .landing-logo span {
        display: none;
    }

    .landing-hero {
        padding-top: 45px;
    }

    .landing-hero-content h1 {
        font-size: 2.9rem;
    }

    .landing-hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .landing-primary,
    .landing-secondary {
        width: 100%;
    }

    .landing-set-card {
        grid-template-columns:
            65px 1fr;
    }

    .landing-set-image {
        width: 65px;
        height: 65px;
    }

    .landing-set-price {
        grid-column:
            2;

        text-align: left;
    }

    .landing-feature-grid {
        grid-template-columns:
            1fr;
    }

    .landing-bottom-cta {
        flex-direction: column;
        align-items: flex-start;
    }

    .landing-footer {
        flex-direction: column;
        justify-content: center;

        gap: 7px;
    }

}

.account-settings-section {
    margin-top: 28px;
    padding-top: 26px;
    padding-bottom: 28px;

    border-top: 1px solid var(--line);
}

.account-settings-heading {
    margin-bottom: 20px;
}

.account-settings-heading h2 {
    margin: 6px 0 7px;
}

.account-settings-heading p {
    max-width: 460px;

    margin: 0;

    color: var(--muted);
    line-height: 1.55;
}

.account-logout {
    margin-top: 8px;
}

/* =========================================
   TELEGRAM / MONITORAMENTO
   ========================================= */

.monitor-telegram-panel {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.monitor-telegram-panel h2 {
    margin: 4px 0 8px;
}

.monitor-telegram-panel p {
    margin: 0;
    color: var(--muted);
}

.monitor-telegram-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 16px;

    margin-top: 28px;
}

.monitor-telegram-status {
    display: flex;
    align-items: center;

    gap: 8px;

    color: var(--muted);

    font-size: 0.78rem;
    font-weight: 800;
}

.monitor-telegram-dot {
    width: 8px;
    height: 8px;

    border-radius: 50%;

    background: #777;
}

.monitor-telegram-connect {
    min-height: 46px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 9px;

    padding: 0 16px;

    border: 1px solid var(--accent);
    border-radius: 10px;

    background: var(--accent);
    color: #111;

    font-weight: 900;
}

.monitor-telegram-dot-connected {
    background: #55d67a;

    box-shadow:
        0 0 10px
        rgba(85, 214, 122, 0.55);
}

.monitor-telegram-ready {
    color: #55d67a;

    font-size: 0.78rem;
    font-weight: 800;
}

.monitor-telegram-bottom form {
    margin: 0;
}

.monitor-telegram-disconnect {
    min-height: 38px;

    padding: 0 8px;

    border: 1px solid #ff6767;
    border-radius: 10px;

    background: transparent;
    color: #ff6767;

    font-weight: 800;

    cursor: pointer;
}

.admin-link-filters {
    display: grid;
    grid-template-columns: 1fr 220px 180px auto;
    gap: 12px;
    align-items: center;
}

.admin-link-filters input,
.admin-link-filters select {
    min-height: 44px;
    padding: 0 14px;

    border: 1px solid var(--line);
    border-radius: 10px;

    background: var(--panel-2);
    color: var(--text);
}

.admin-link-history {
    display: grid;
    gap: 14px;

    margin-top: 18px;
}

.admin-link-history-item {
    padding: 20px;
}

.admin-link-history-main {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}

.admin-link-history-main h3 {
    margin: 4px 0 6px;
}

.admin-link-history-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;

    margin-top: 14px;

    color: var(--muted);
    font-size: .8rem;
}

.admin-link-history-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;

    margin-top: 16px;
}

.admin-link-status {
    display: inline-flex;
    align-items: center;

    padding: 6px 10px;

    border-radius: 999px;

    font-size: .75rem;
    font-weight: 800;
}

.admin-link-status.saved {
    border: 1px solid #31c96b;
    color: #31c96b;
}

.admin-link-status.pending {
    border: 1px solid #f5c542;
    color: #f5c542;
}

@media (max-width: 800px) {

    .admin-link-filters {
        grid-template-columns: 1fr;
    }

    .admin-link-history-main {
        flex-direction: column;
    }
}

.admin-link-summary {
    display: grid;
    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 14px;

    margin-bottom: 18px;
}

.admin-link-summary-card {
    padding: 18px;
}

.admin-link-summary-card strong {
    display: block;

    margin-top: 6px;

    font-size: 1.7rem;
    font-weight: 900;
}

@media (max-width: 800px) {

    .admin-link-summary {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

}

@media (max-width: 500px) {

    .admin-link-summary {
        grid-template-columns: 1fr;
    }

}

.admin-link-delete-form {
    margin: 0;
}

.admin-link-delete-button {
    background: transparent;
    border: 1px solid #e45b5b;
    color: #e45b5b;

    padding: 8px 12px;
    border-radius: 8px;

    cursor: pointer;
}

.admin-link-delete-button:hover {
    background: rgba(228, 91, 91, 0.12);
}
/* ================================
   Footer / legal / account security
   ================================ */

.site-footer {
    margin-top: 48px;
    border-top: 1px solid var(--line);
    background: rgba(15, 17, 21, .72);
}

.site-footer-inner {
    min-height: 96px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 22px 0;
}

.site-footer-inner > div {
    display: grid;
    gap: 5px;
}

.site-footer-inner span {
    color: var(--muted);
    font-size: .82rem;
    max-width: 650px;
}

.site-footer nav {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.site-footer a,
.auth-legal-footer a,
.landing-footer-links a,
.account-legal-links a,
.legal-actions a,
.auth-help-row a,
.auth-legal-note a {
    text-decoration: none;
}

.site-footer a:hover,
.auth-legal-footer a:hover,
.landing-footer-links a:hover,
.account-legal-links a:hover,
.legal-actions a:hover,
.auth-help-row a:hover,
.auth-legal-note a:hover {
    text-decoration: underline;
}

.auth-legal-footer {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 18px 16px 28px;
    color: var(--muted);
    font-size: .8rem;
}

.auth-help-row {
    display: flex;
    justify-content: flex-end;
    margin-top: -4px;
    font-size: .85rem;
}

.auth-legal-note {
    margin: 0;
    color: var(--muted);
    font-size: .78rem;
    line-height: 1.55;
}

.account-security-card,
.account-legal-card {
    margin-top: 18px;
}

.account-password-form {
    display: grid;
    gap: 10px;
    max-width: 520px;
}

.account-password-form label {
    color: var(--muted);
    font-size: .82rem;
    font-weight: 700;
}

.account-password-form input {
    width: 100%;
}

.account-password-form button {
    justify-self: start;
    margin-top: 6px;
}

.account-legal-links {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.legal-page {
    position: relative;
    z-index: 2;
    width: min(860px, calc(100% - 32px));
    margin: 48px auto;
}

.legal-card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: clamp(24px, 5vw, 48px);
    box-shadow: 0 24px 60px rgba(0, 0, 0, .22);
}

.legal-card h1 {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    margin-bottom: 8px;
}

.legal-card h2 {
    margin-top: 28px;
    font-size: 1.05rem;
}

.legal-card p {
    color: var(--muted);
    line-height: 1.7;
}

.legal-updated {
    font-size: .82rem;
}

.legal-actions {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 34px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
}

.landing-footer {
    gap: 18px;
    flex-wrap: wrap;
}

.landing-footer > div:first-child {
    display: grid;
    gap: 3px;
}

.landing-footer-links {
    display: flex;
    gap: 14px;
}

.landing-affiliate-note {
    width: 100%;
    color: var(--muted);
}

@media (max-width: 720px) {
    .site-footer-inner {
        align-items: flex-start;
        flex-direction: column;
    }

    .legal-page {
        margin: 24px auto;
    }
}


/* Termos no cadastro */
.auth-legal-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 4px 0 2px;
    color: var(--muted);
    font-size: .82rem;
    line-height: 1.5;
}

.auth-legal-check input {
    width: 16px;
    height: 16px;
    margin-top: 2px;
    flex: 0 0 auto;
}

.auth-legal-check a {
    color: var(--text);
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* Status da atualização assíncrona do Mercado Livre */
.ml-update-status {
    margin: 0 0 1.25rem;
    padding: 0.9rem 1rem;
    border: 1px solid var(--border, rgba(255, 255, 255, 0.12));
    border-radius: 12px;
    background: var(--card, rgba(255, 255, 255, 0.04));
    color: var(--text, inherit);
    font-size: 0.95rem;
    line-height: 1.45;
}

.ml-update-status-running {
    opacity: 0.92;
}

.ml-update-status-success {
    border-color: rgba(62, 207, 142, 0.45);
}

.ml-update-status-warning {
    border-color: rgba(245, 184, 67, 0.5);
}

.ml-update-status-error {
    border-color: rgba(239, 83, 80, 0.5);
}

/* =========================================
   NOVA HOME / DESCOBERTA
   ========================================= */

.discover-home {
    position: relative;
    isolation: isolate;
    padding: 34px 0 74px;
}

.discover-home::before {
    content: "";
    position: absolute;
    z-index: -3;
    inset: 0 calc(50% - 50vw) auto;
    height: 720px;
    background:
        radial-gradient(circle at 18% 12%, rgba(242, 201, 76, 0.10), transparent 34%),
        radial-gradient(circle at 85% 6%, rgba(68, 92, 170, 0.10), transparent 32%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.015), transparent 70%);
    pointer-events: none;
}

.discover-orb {
    position: absolute;
    z-index: -2;
    border-radius: 999px;
    filter: blur(26px);
    opacity: .32;
    pointer-events: none;
}

.discover-orb-one {
    width: 260px;
    height: 260px;
    top: 44px;
    left: -180px;
    background: rgba(242, 201, 76, .16);
    animation: discover-float 10s ease-in-out infinite;
}

.discover-orb-two {
    width: 220px;
    height: 220px;
    top: 210px;
    right: -130px;
    background: rgba(43, 71, 153, .20);
    animation: discover-float 13s ease-in-out infinite reverse;
}

@keyframes discover-float {
    0%, 100% { transform: translate3d(0, 0, 0); }
    50% { transform: translate3d(0, 22px, 0); }
}

.discover-hero {
    position: relative;
    overflow: visible;
    padding: clamp(32px, 6vw, 62px);
    border: 1px solid rgba(242, 201, 76, .20);
    border-radius: 30px;
    background:
        linear-gradient(145deg, rgba(31, 33, 40, .97), rgba(16, 18, 23, .98)),
        var(--panel);
    box-shadow:
        0 34px 90px rgba(0, 0, 0, .34),
        inset 0 1px rgba(255, 255, 255, .035);
}

.discover-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background:
        radial-gradient(circle at 12% 0%, rgba(242, 201, 76, .11), transparent 33%),
        linear-gradient(120deg, transparent 62%, rgba(242, 201, 76, .025));
    pointer-events: none;
}

.discover-hero-copy,
.global-set-search,
.discover-quick-stats {
    position: relative;
    z-index: 1;
}

.discover-hero-copy {
    max-width: 760px;
}

.discover-kicker {
    color: var(--accent);
    font-size: .69rem;
    font-weight: 900;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.discover-hero h1 {
    max-width: 820px;
    margin: 12px 0 14px;
    font-size: clamp(2.35rem, 6vw, 5.1rem);
    line-height: .97;
    letter-spacing: -.045em;
}

.discover-hero h1 span {
    color: var(--accent);
}

.discover-hero-copy > p {
    max-width: 650px;
    margin-bottom: 0;
    color: #b5bbc7;
    font-size: clamp(.98rem, 2vw, 1.14rem);
    line-height: 1.7;
}

/* Busca global */

.global-set-search {
    width: min(820px, 100%);
    margin-top: 34px;
}

.global-search-shell {
    min-height: 66px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 8px 14px 8px 18px;
    border: 1px solid rgba(242, 201, 76, .30);
    border-radius: 18px;
    background: rgba(7, 9, 13, .82);
    box-shadow:
        0 18px 48px rgba(0, 0, 0, .27),
        inset 0 1px rgba(255, 255, 255, .04);
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.global-set-search:focus-within .global-search-shell {
    border-color: rgba(242, 201, 76, .76);
    box-shadow:
        0 22px 52px rgba(0, 0, 0, .34),
        0 0 0 4px rgba(242, 201, 76, .055);
    transform: translateY(-1px);
}

.global-search-icon {
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    color: var(--accent);
    font-size: 1.7rem;
    line-height: 1;
}

.global-search-shell input {
    width: 100%;
    min-width: 0;
    padding: 12px 2px;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--text);
    font-size: 1rem;
    font-weight: 700;
    box-shadow: none;
}

.global-search-shell input:focus {
    border: 0;
}

.global-search-shell input::placeholder {
    color: #747c8d;
}

.global-search-hint {
    max-width: 210px;
    color: #737b89;
    font-size: .72rem;
    text-align: right;
}

.global-search-results {
    position: absolute;
    z-index: 300;

    top: calc(100% + 10px);
    left: 0;
    right: 0;

    max-height: min(620px, calc(100vh - 170px));

    overflow-x: hidden;
    overflow-y: auto;

    overscroll-behavior: contain;

    border: 1px solid rgba(242, 201, 76, .22);
    border-radius: 18px;

    background: rgba(15, 17, 21, .985);

    box-shadow:
        0 28px 74px rgba(0, 0, 0, .50);

    backdrop-filter: blur(18px);
}

.global-search-results::-webkit-scrollbar {
    width: 7px;
}

.global-search-results::-webkit-scrollbar-track {
    background: transparent;
}

.global-search-results::-webkit-scrollbar-thumb {
    background: rgba(242, 201, 76, .28);
    border-radius: 999px;
}

.global-search-results::-webkit-scrollbar-thumb:hover {
    background: rgba(242, 201, 76, .48);
}

.global-search-result {
    display: grid;
    grid-template-columns: 62px minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 13px;
    min-height: 78px;
    padding: 10px 15px;
    border-bottom: 1px solid rgba(255, 255, 255, .055);
    color: var(--text);
    text-decoration: none;
    transition: background .14s ease, padding-left .14s ease;
}

.global-search-result:last-child {
    border-bottom: 0;
}

.global-search-result:hover,
.global-search-result.active {
    padding-left: 19px;
    background: linear-gradient(90deg, rgba(242, 201, 76, .095), rgba(242, 201, 76, .018));
}

.global-search-thumb {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border-radius: 11px;
    background: #f8f8f5;
}

.global-search-thumb img {
    width: 100%;
    height: 100%;
    padding: 5px;
    object-fit: contain;
}

.global-search-image-placeholder {
    color: #c2a336;
}

.global-search-copy {
    min-width: 0;
}

.global-search-result-title {
    display: block;
    overflow: hidden;
    color: #f7f7f5;
    font-size: .91rem;
    font-weight: 850;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.global-search-result-meta {
    display: block;
    margin-top: 4px;
    overflow: hidden;
    color: #8e96a5;
    font-size: .73rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.global-search-result-meta strong {
    color: var(--accent);
}

.global-search-source {
    padding: 5px 8px;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 999px;
    color: #8991a0;
    font-size: .64rem;
    font-weight: 800;
    white-space: nowrap;
}

.global-search-arrow {
    color: var(--accent);
    font-size: 1.1rem;
}

.global-search-message {
    padding: 20px;
    color: var(--muted);
    font-size: .86rem;
}

.global-search-message.loading::before {
    content: "";
    display: inline-block;
    width: 10px;
    height: 10px;
    margin-right: 9px;
    border: 2px solid rgba(242, 201, 76, .25);
    border-top-color: var(--accent);
    border-radius: 999px;
    animation: discover-spin .75s linear infinite;
}

@keyframes discover-spin {
    to { transform: rotate(360deg); }
}

.discover-quick-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 20px;
}

.discover-stat-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 10px;
    border: 1px solid rgba(255, 255, 255, .07);
    border-radius: 999px;
    background: rgba(255, 255, 255, .025);
    color: #8f97a6;
    font-size: .72rem;
    font-weight: 750;
    text-decoration: none;
}

.discover-stat-pill span {
    color: #fff;
    font-weight: 900;
}

a.discover-stat-pill:hover {
    border-color: rgba(242, 201, 76, .32);
    color: var(--accent);
}

/* Seções da home */

.discover-section {
    margin-top: 52px;
}

.discover-section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 18px;
}

.discover-section-heading h2 {
    margin: 7px 0 6px;
    font-size: clamp(1.45rem, 3vw, 2rem);
    letter-spacing: -.025em;
}

.discover-section-heading p {
    margin: 0;
    color: var(--muted);
    font-size: .88rem;
}

.carousel-controls {
    display: flex;
    gap: 7px;
}

.carousel-control {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, .09);
    border-radius: 12px;
    background: var(--panel);
    color: var(--text);
    font-size: 1rem;
    transition: border-color .15s ease, color .15s ease, transform .15s ease;
}

.carousel-control:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-2px);
}

.theme-carousel-mask {
    position: relative;
}

.theme-carousel-mask::after {
    content: "";
    position: absolute;
    z-index: 2;
    top: 0;
    right: -1px;
    bottom: 0;
    width: 48px;
    background: linear-gradient(90deg, transparent, var(--bg));
    pointer-events: none;
}

.theme-carousel {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    padding: 4px 46px 18px 2px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    overscroll-behavior-inline: contain;
}

.theme-carousel::-webkit-scrollbar {
    display: none;
}

.theme-showcase-card {
    position: relative;
    flex: 0 0 clamp(210px, 24vw, 266px);
    min-height: 305px;
    overflow: hidden;
    scroll-snap-align: start;
    border: 1px solid rgba(255, 255, 255, .075);
    border-radius: 21px;
    color: #fff;
    text-decoration: none;
    isolation: isolate;
    box-shadow: 0 22px 48px rgba(0, 0, 0, .20);
    transform: translateZ(0);
    transition: transform .24s ease, border-color .24s ease, box-shadow .24s ease;
}

.theme-showcase-card:hover {
    transform: translateY(-7px) scale(1.012);
    border-color: rgba(242, 201, 76, .30);
    box-shadow: 0 30px 64px rgba(0, 0, 0, .32);
}

.theme-accent-1 { background: linear-gradient(150deg, #17271e, #0d1511); }
.theme-accent-2 { background: linear-gradient(150deg, #1e2237, #10131f); }
.theme-accent-3 { background: linear-gradient(150deg, #30231b, #16110e); }
.theme-accent-4 { background: linear-gradient(150deg, #152632, #0b141a); }
.theme-accent-5 { background: linear-gradient(150deg, #2c202f, #150f17); }
.theme-accent-6 { background: linear-gradient(150deg, #2b291c, #15140e); }

.theme-card-glow {
    position: absolute;
    z-index: -1;
    width: 190px;
    height: 190px;
    right: -70px;
    bottom: -65px;
    border-radius: 999px;
    background: rgba(242, 201, 76, .16);
    filter: blur(2px);
}

.theme-card-copy {
    position: relative;
    z-index: 3;
    padding: 20px;
}

.theme-card-copy > span {
    color: rgba(255, 255, 255, .56);
    font-size: .67rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.theme-card-copy h3 {
    max-width: 190px;
    margin: 7px 0 5px;
    font-size: 1.18rem;
    line-height: 1.08;
}

.theme-card-copy small {
    color: var(--accent);
    font-size: .7rem;
    font-weight: 850;
}

.theme-card-image-wrap {
    position: absolute;
    z-index: 2;
    left: 12px;
    right: 12px;
    bottom: 8px;
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 8px 0;
}

.theme-card-image-wrap::before {
    content: "";
    position: absolute;
    inset: auto 5% 8px;
    height: 50px;
    border-radius: 50%;
    background: rgba(0, 0, 0, .34);
    filter: blur(16px);
}

.theme-card-image-wrap img {
    position: relative;
    z-index: 1;

    height: auto;
    max-height: 100%;

    object-fit: contain;
    object-position: center;

    filter: drop-shadow(
        0 16px 16px rgba(0, 0, 0, .28)
    );
}

.theme-card-image-wrap {
    transition: transform .30s cubic-bezier(.2, .7, .25, 1);
}

.theme-showcase-card:hover .theme-card-image-wrap {
    transform: translateY(-5px);
}

.theme-card-placeholder {
    position: absolute;
    right: 24px;
    bottom: 24px;
    color: rgba(242, 201, 76, .4);
    font-size: 5rem;
}

/* Últimos lançamentos */

.release-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 15px;
}

.release-card {
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .075);
    border-radius: 20px;
    background: linear-gradient(180deg, #181b21, #14171c);
    color: var(--text);
    text-decoration: none;
    box-shadow: 0 18px 45px rgba(0, 0, 0, .16);
    transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}

.release-card:hover {
    transform: translateY(-6px);
    border-color: rgba(242, 201, 76, .28);
    box-shadow: 0 28px 58px rgba(0, 0, 0, .27);
}

.release-image-stage {
    position: relative;
    min-height: 220px;
    display: grid;
    place-items: center;
    overflow: hidden;
    padding: 48px 16px 12px;
    background:
        radial-gradient(circle at 50% 68%, rgba(242, 201, 76, .08), transparent 43%),
        linear-gradient(180deg, #f6f6f1 0%, #e7e7e1 100%);
}

.release-image-stage::after {
    content: "";
    position: absolute;
    left: 22%;
    right: 22%;
    bottom: 20px;
    height: 22px;
    border-radius: 50%;
    background: rgba(0, 0, 0, .12);
    filter: blur(12px);
}

.release-image-stage img {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 175px;
    object-fit: contain;
    filter: drop-shadow(0 13px 12px rgba(0, 0, 0, .15));
    transition: transform .28s cubic-bezier(.2, .7, .2, 1);
}

.release-card:hover .release-image-stage img {
    transform: translateY(-5px) scale(1.045);
}

.release-card-topline {
    position: absolute;
    z-index: 4;
    top: 11px;
    left: 11px;
    right: 11px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
}

.release-date-badge,
.release-status {
    display: inline-flex;
    align-items: center;
    min-height: 25px;
    padding: 5px 8px;
    border-radius: 999px;
    font-size: .61rem;
    font-weight: 900;
    line-height: 1;
    white-space: nowrap;
}

.release-date-badge {
    background: rgba(12, 14, 18, .83);
    color: #f3f3ef;
    backdrop-filter: blur(5px);
}

.release-status-badges {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.release-status.monitoring {
    background: #1d2229;
    color: var(--accent);
}

.release-status.owned {
    background: #183526;
    color: #8de1ae;
}

.release-placeholder {
    position: relative;
    z-index: 2;
    color: #b79a34;
    font-size: 3rem;
}

.release-card-body {
    padding: 16px;
}

.release-set-number {
    color: var(--accent);
    font-size: .69rem;
    font-weight: 900;
    letter-spacing: .04em;
}

.release-card-body h3 {
    display: -webkit-box;
    min-height: 44px;
    margin: 6px 0 9px;
    overflow: hidden;
    font-size: .95rem;
    line-height: 1.35;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.release-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.release-meta span {
    padding: 4px 7px;
    border: 1px solid rgba(255, 255, 255, .07);
    border-radius: 999px;
    color: #858d9b;
    font-size: .64rem;
}

.release-open-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 15px;
    padding-top: 11px;
    border-top: 1px solid rgba(255, 255, 255, .06);
    color: #a9b0bc;
    font-size: .69rem;
    font-weight: 850;
}

.release-open-link span {
    color: var(--accent);
    transition: transform .18s ease;
}

.release-card:hover .release-open-link span {
    transform: translate(2px, -2px);
}

.discover-empty-card {
    padding: 28px;
    border: 1px dashed rgba(255, 255, 255, .11);
    border-radius: 18px;
    background: rgba(255, 255, 255, .018);
    color: var(--muted);
}

/* Página de tema */

.theme-page {
    padding: 32px 0 68px;
}

.theme-page-hero {
    position: relative;
    overflow: hidden;
    margin-bottom: 24px;
    padding: 31px;
    border: 1px solid rgba(242, 201, 76, .16);
    border-radius: 24px;
    background:
        radial-gradient(circle at 88% 20%, rgba(242, 201, 76, .08), transparent 30%),
        linear-gradient(145deg, #1b1e25, #121419);
}

.theme-page-back {
    display: inline-flex;
    margin-bottom: 24px;
    color: #929aa9;
    font-size: .77rem;
    font-weight: 800;
    text-decoration: none;
}

.theme-page-back:hover {
    color: var(--accent);
}

.theme-page-hero h1 {
    margin: 7px 0 7px;
    font-size: clamp(2rem, 5vw, 3.5rem);
    letter-spacing: -.04em;
}

.theme-page-hero > p {
    color: var(--muted);
}

.theme-sort-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 21px;
}

.theme-sort-tabs a {
    padding: 8px 11px;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 999px;
    color: #8f97a5;
    font-size: .71rem;
    font-weight: 850;
    text-decoration: none;
}

.theme-sort-tabs a:hover,
.theme-sort-tabs a.active {
    border-color: rgba(242, 201, 76, .45);
    background: rgba(242, 201, 76, .08);
    color: var(--accent);
}

.theme-set-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 15px;
}

.theme-set-card {
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .075);
    border-radius: 18px;
    background: var(--panel);
    color: var(--text);
    text-decoration: none;
    transition: transform .2s ease, border-color .2s ease;
}

.theme-set-card:hover {
    transform: translateY(-5px);
    border-color: rgba(242, 201, 76, .28);
}

.theme-set-image {
    position: relative;
    min-height: 210px;
    display: grid;
    place-items: center;
    padding: 40px 13px 12px;
    background: #f0f0eb;
}

.theme-set-image img {
    width: 100%;
    height: 170px;
    object-fit: contain;
    transition: transform .22s ease;
}

.theme-set-card:hover .theme-set-image img {
    transform: scale(1.035);
}

.theme-set-badges {
    position: absolute;
    z-index: 3;
    top: 10px;
    right: 10px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.theme-set-body {
    padding: 15px;
}

.theme-set-body h2 {
    min-height: 40px;
    margin: 5px 0 10px;
    font-size: .9rem;
    line-height: 1.35;
}

.theme-pagination {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 16px;
    margin-top: 28px;
    color: var(--muted);
    font-size: .76rem;
}

.theme-pagination a {
    width: fit-content;
    padding: 9px 12px;
    border: 1px solid var(--line);
    border-radius: 10px;
    color: var(--text);
    text-decoration: none;
}

.theme-pagination a:last-child {
    justify-self: end;
}

/* Pequena ponte entre a nova descoberta e a página atual do set. */

.detail-primary-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 3px 0 18px;
}

.detail-primary-actions form {
    margin: 0;
}

.detail-action-button {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 13px;
    border: 1px solid var(--line);
    border-radius: 11px;
    color: var(--text);
    font-size: .76rem;
    font-weight: 900;
    text-decoration: none;
}

button.detail-action-button.primary {
    border-color: var(--accent);
    background: var(--accent);
    color: #12120f;
}

.detail-action-button.secondary {
    background: var(--panel-2);
}

.detail-action-button.tracked {
    border-color: rgba(109, 214, 160, .34);
    background: rgba(109, 214, 160, .07);
    color: var(--success);
}

.detail-action-button:hover {
    border-color: var(--accent);
}

#collection-section {
    scroll-margin-top: 100px;
}

/* Home responsiva */

@media (max-width: 1000px) {
    .release-grid,
    .theme-set-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .discover-home {
        padding-top: 20px;
    }

    .discover-hero {
        padding: 27px 20px;
        border-radius: 22px;
    }

    .discover-hero h1 {
        font-size: clamp(2.25rem, 12vw, 3.7rem);
    }

    .global-search-shell {
        grid-template-columns: auto minmax(0, 1fr);
        min-height: 60px;
        padding-left: 12px;
    }

    .global-search-hint {
        display: none;
    }

    .global-search-result {
        grid-template-columns: 54px minmax(0, 1fr) auto;
        gap: 10px;
        padding: 9px 11px;
    }

    .global-search-thumb {
        width: 50px;
        height: 50px;
    }

    .global-search-source {
        display: none;
    }

    .discover-section-heading {
        align-items: flex-start;
    }

    .theme-showcase-card {
        flex-basis: 220px;
        min-height: 320px;
    }

    .release-grid,
    .theme-set-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .release-image-stage,
    .theme-set-image {
        min-height: 185px;
    }

    .release-image-stage img,
    .theme-set-image img {
        height: 145px;
    }
}

@media (max-width: 480px) {
    .discover-section {
        margin-top: 42px;
    }

    .discover-quick-stats {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .discover-stat-pill:last-child {
        grid-column: 1 / -1;
    }

    .carousel-controls {
        display: none;
    }

    .release-grid,
    .theme-set-grid {
        grid-template-columns: 1fr;
    }

    .release-image-stage,
    .theme-set-image {
        min-height: 245px;
    }

    .release-image-stage img,
    .theme-set-image img {
        height: 195px;
    }

    .theme-page-hero {
        padding: 24px 20px;
    }

    .theme-pagination {
        grid-template-columns: 1fr 1fr;
    }

    .theme-pagination > span:nth-child(2) {
        grid-column: 1 / -1;
        grid-row: 1;
        text-align: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    .discover-orb,
    .global-search-message.loading::before {
        animation: none;
    }

    .theme-showcase-card,
    .release-card,
    .theme-card-image-wrap img,
    .release-image-stage img,
    .theme-set-card,
    .theme-set-image img {
        transition: none;
    }
}

/* =====================================================================
   VISUAL REFRESH V2 · setembro/2026
   Camada final de estilo para a Home, navegação, rodapé e página do set.
   Mantida no fim do arquivo para preservar compatibilidade com telas antigas.
   ===================================================================== */

:root {
    --bg: #090d13;
    --panel: #101620;
    --panel-2: #151d29;
    --text: #f5f7fa;
    --muted: #8e98a8;
    --line: #263244;
    --accent: #f5c518;
    --accent-soft: #ffd95b;
    --success: #5ed69b;
    --danger: #ff7676;
    --surface-glow: rgba(245, 197, 24, .12);
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    background:
        radial-gradient(circle at 85% -10%, rgba(245, 197, 24, .075), transparent 31rem),
        radial-gradient(circle at 5% 20%, rgba(48, 77, 134, .08), transparent 28rem),
        #090d13;
}

.container {
    width: min(1180px, calc(100% - 34px));
}

.app-main {
    position: relative;
}

/* ---------- Header ---------- */

.topbar {
    z-index: 120;
    border-bottom: 1px solid rgba(255, 255, 255, .06);
    background: rgba(8, 12, 18, .86);
    box-shadow: 0 14px 44px rgba(0, 0, 0, .18);
    backdrop-filter: blur(18px) saturate(125%);
}

.topbar-inner {
    min-height: 70px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 26px;
    padding: 0;
}

.app-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: max-content;
    color: var(--text);
    text-decoration: none;
}

.brand-monogram {
    display: grid;
    place-items: center;
    min-width: 42px;
    height: 30px;
    padding: 0 7px;
    border: 1px solid rgba(245, 197, 24, .32);
    border-radius: 9px;
    background:
        linear-gradient(145deg, rgba(245, 197, 24, .19), rgba(245, 197, 24, .04)),
        #10151d;
    color: var(--accent);
    font-size: .76rem;
    font-weight: 950;
    letter-spacing: .055em;
    box-shadow: inset 0 1px rgba(255, 255, 255, .06);
    transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}

.app-brand:hover .brand-monogram {
    transform: translateY(-2px) rotate(-1deg);
    border-color: rgba(245, 197, 24, .62);
    box-shadow: 0 9px 24px rgba(245, 197, 24, .09);
}

.app-brand-text {
    display: grid;
    gap: 1px;
}

.app-brand-name {
    margin: 0;
    color: #f4f5f8;
    font-size: .88rem;
    font-weight: 900;
    letter-spacing: -.02em;
}

.app-brand-subtitle {
    color: #647083;
    font-size: .58rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.main-nav {
    height: 70px;
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 1px;
}

.main-nav-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    padding: 0 13px;
    background: transparent;
    color: #8791a1;
    font-size: .72rem;
    font-weight: 820;
    letter-spacing: .01em;
    text-decoration: none;
    transition: color .2s ease, transform .2s ease;
}

.main-nav-link:hover {
    color: #f5f7fa;
    background: transparent;
    transform: translateY(-1px);
}

.main-nav-link::after {
    content: "";
    position: absolute;
    left: 13px;
    right: 13px;
    bottom: 13px;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--accent), #ffe077);
    box-shadow: 0 0 12px rgba(245, 197, 24, .26);
    transform: scaleX(0);
    transform-origin: left center;
    opacity: 0;
    transition: transform .26s cubic-bezier(.2, .7, .2, 1), opacity .18s ease;
}

.main-nav-link:hover::after,
.main-nav-link.active::after {
    transform: scaleX(1);
    opacity: 1;
}

.main-nav-link.active {
    color: var(--accent-soft);
}

.topbar-account {
    display: flex;
    justify-content: flex-end;
}

.account-link {
    min-width: 142px;
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) auto;
    align-items: center;
    gap: 9px;
    padding: 6px 9px 6px 6px;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 999px;
    background: rgba(17, 23, 33, .86);
    color: var(--text);
    text-decoration: none;
    box-shadow: inset 0 1px rgba(255, 255, 255, .03);
    transition: transform .2s ease, border-color .2s ease, background .2s ease, box-shadow .2s ease;
}

.account-link:hover,
.account-link.active {
    transform: translateY(-1px);
    border-color: rgba(245, 197, 24, .36);
    background: #121a25;
    box-shadow: 0 10px 28px rgba(0, 0, 0, .24);
}

.account-avatar {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(245, 197, 24, .38);
    border-radius: 50%;
    background:
        radial-gradient(circle at 35% 25%, #ffd950, #e0a800 58%, #6d5210 100%);
    color: #0d1117;
    font-size: .77rem;
    font-weight: 950;
    box-shadow: inset 0 1px 3px rgba(255, 255, 255, .32);
}

.account-copy {
    min-width: 0;
    display: grid;
    gap: 1px;
}

.account-copy strong {
    overflow: hidden;
    color: #f3f5f8;
    font-size: .67rem;
    font-weight: 900;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.account-copy small {
    color: #687487;
    font-size: .56rem;
    font-weight: 750;
}

.account-chevron {
    color: #687487;
    font-size: 1rem;
    transition: transform .2s ease, color .2s ease;
}

.account-link:hover .account-chevron {
    color: var(--accent);
    transform: translateX(2px);
}

.topbar-guest-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.guest-link,
.guest-primary {
    padding: 9px 13px;
    border-radius: 10px;
    font-size: .74rem;
    font-weight: 850;
    text-decoration: none;
}

.guest-link {
    color: #a4adba;
}

.guest-primary {
    background: var(--accent);
    color: #10120f;
}

/* ---------- Footer ---------- */

.site-footer {
    position: relative;
    overflow: hidden;
    margin-top: 78px;
    border-top: 1px solid rgba(255, 255, 255, .065);
    background:
        radial-gradient(circle at 12% 20%, rgba(245, 197, 24, .07), transparent 22rem),
        #080c12;
}

.site-footer::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px);
    background-size: 34px 34px;
    mask-image: linear-gradient(to bottom, black, transparent 75%);
}

.site-footer-grid {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 2fr) repeat(2, minmax(120px, .8fr)) minmax(220px, 1.25fr);
    gap: clamp(24px, 4vw, 54px);
    padding: 45px 0 34px;
}

.footer-brand-card {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.footer-brand-image {
    width: 58px;
    height: 58px;
    flex: 0 0 auto;
    object-fit: contain;
    border: 1px solid rgba(245, 197, 24, .18);
    border-radius: 15px;
    background: #10151d;
}

.footer-brand-card strong,
.footer-column > strong {
    color: #f3f5f8;
    font-size: .78rem;
    font-weight: 900;
}

.footer-brand-card p,
.footer-note-card p {
    max-width: 390px;
    margin: 7px 0 0;
    color: #788395;
    font-size: .74rem;
    line-height: 1.7;
}

.footer-column {
    display: grid;
    align-content: start;
    gap: 9px;
}

.footer-column > strong {
    margin-bottom: 4px;
}

.footer-column a {
    width: fit-content;
    color: #7f8a9c;
    font-size: .72rem;
    font-weight: 700;
    text-decoration: none;
    transition: color .18s ease, transform .18s ease;
}

.footer-column a:hover {
    color: var(--accent-soft);
    transform: translateX(2px);
    text-decoration: none;
}

.footer-note-card {
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, .06);
    border-radius: 16px;
    background: rgba(255, 255, 255, .018);
}

.footer-note-kicker {
    color: var(--accent);
    font-size: .58rem;
    font-weight: 950;
    letter-spacing: .14em;
}

.site-footer-bottom {
    position: relative;
    min-height: 62px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border-top: 1px solid rgba(255, 255, 255, .055);
    color: #596577;
    font-size: .64rem;
}

/* ---------- Home ---------- */

.discover-home {
    padding: 28px 0 30px;
}

.discover-home::before {
    height: 850px;
    background:
        radial-gradient(circle at 22% 0%, rgba(245, 197, 24, .09), transparent 34%),
        radial-gradient(circle at 92% 5%, rgba(43, 71, 153, .09), transparent 29%);
}

.discover-hero {
    overflow: hidden;
    padding: clamp(32px, 5vw, 62px);
    border: 1px solid rgba(245, 197, 24, .16);
    border-radius: 28px;
    background:
        radial-gradient(circle at 88% 20%, rgba(245, 197, 24, .095), transparent 24rem),
        linear-gradient(145deg, rgba(15, 21, 30, .985), rgba(8, 12, 18, .99));
    box-shadow:
        0 34px 85px rgba(0, 0, 0, .33),
        inset 0 1px rgba(255, 255, 255, .04);
    animation: lpt-rise-in .55s cubic-bezier(.2, .7, .2, 1) both;
}

.hero-grid-lines {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255,255,255,.022) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.022) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: linear-gradient(115deg, transparent 18%, black 85%);
}

.kicker-dot {
    width: 6px;
    height: 6px;
    display: inline-block;
    margin-right: 6px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 12px rgba(245, 197, 24, .55);
}

.discover-hero h1 {
    max-width: 790px;
    margin: 13px 0 15px;
    font-size: clamp(2.55rem, 6vw, 5rem);
    line-height: .98;
    letter-spacing: -.052em;
}

.discover-hero h1 span {
    display: block;
    color: var(--accent-soft);
}

.discover-hero-copy > p {
    max-width: 680px;
    color: #a4adbb;
}

.global-set-search {
    width: min(860px, 100%);
    margin-top: 30px;
}

.global-search-shell {
    grid-template-columns: auto minmax(0, 1fr) auto;
    min-height: 64px;
    padding: 7px 10px 7px 17px;
    border: 1px solid rgba(245, 197, 24, .24);
    border-radius: 17px;
    background: rgba(5, 9, 14, .88);
    box-shadow: 0 20px 50px rgba(0, 0, 0, .24), inset 0 1px rgba(255, 255, 255, .03);
}

.global-set-search:focus-within .global-search-shell {
    transform: translateY(-1px);
    border-color: rgba(245, 197, 24, .52);
    box-shadow: 0 22px 55px rgba(0, 0, 0, .3), 0 0 0 3px rgba(245, 197, 24, .045);
}

.global-search-icon {
    width: 21px;
    height: 21px;
    display: grid;
    place-items: center;
    color: var(--accent);
}

.global-search-icon svg {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
}

.global-search-shell input {
    min-width: 0;
    padding: 10px 4px;
    border: 0;
    background: transparent;
    color: #f6f7f9;
    font-size: .91rem;
    box-shadow: none;
}

.global-search-shell input:focus {
    border: 0;
}

.global-search-shell input::placeholder {
    color: #5f6a7b;
}

.global-search-provider,
.release-source-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 9px;
    border: 1px solid rgba(255, 255, 255, .065);
    border-radius: 999px;
    background: rgba(255, 255, 255, .025);
    color: #7f8998;
    font-size: .61rem;
    font-weight: 850;
    white-space: nowrap;
}

.provider-pulse,
.release-source-chip > span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 8px rgba(245, 197, 24, .42);
}

.global-search-results {
    top: calc(100% + 10px);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 18px;
    background: rgba(10, 15, 22, .985);
    box-shadow: 0 28px 70px rgba(0, 0, 0, .48);
    backdrop-filter: blur(18px);
}

.global-search-result {
    min-height: 70px;
    transition: background .16s ease, transform .16s ease;
}

.global-search-result:hover,
.global-search-result.active {
    background: rgba(245, 197, 24, .055);
    transform: translateX(2px);
}

.global-search-thumb {
    border-radius: 10px;
    background: #f3f3ef;
}

.global-search-image-placeholder {
    color: #816a13;
    font-size: .62rem;
    font-weight: 950;
}

.global-search-source {
    border-color: rgba(245, 197, 24, .14);
    color: #9c8740;
}

.search-shortcuts {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px;
    margin-top: 12px;
}

.search-shortcuts > span {
    margin-right: 2px;
    color: #596577;
    font-size: .61rem;
    font-weight: 800;
}

.search-shortcuts a {
    padding: 5px 8px;
    border: 1px solid rgba(255, 255, 255, .06);
    border-radius: 999px;
    color: #7e8999;
    font-size: .61rem;
    font-weight: 750;
    text-decoration: none;
    transition: color .16s ease, border-color .16s ease, background .16s ease;
}

.search-shortcuts a:hover {
    border-color: rgba(245, 197, 24, .22);
    background: rgba(245, 197, 24, .045);
    color: var(--accent-soft);
}

.discover-quick-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    max-width: 820px;
    margin-top: 28px;
}

.discover-stat-pill {
    min-height: 72px;
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    padding: 11px 13px;
    border: 1px solid rgba(255, 255, 255, .065);
    border-radius: 15px;
    background: rgba(255, 255, 255, .025);
    color: var(--text);
    text-decoration: none;
    transition: transform .2s ease, border-color .2s ease, background .2s ease;
}

a.discover-stat-pill:hover {
    transform: translateY(-3px);
    border-color: rgba(245, 197, 24, .22);
    background: rgba(245, 197, 24, .038);
}

.stat-icon {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border-radius: 9px;
    background: rgba(245, 197, 24, .08);
    color: var(--accent);
    font-size: .72rem;
}

.stat-copy {
    min-width: 0;
    display: grid;
    gap: 2px;
}

.stat-copy strong {
    color: #f5f6f8;
    font-size: 1.02rem;
    line-height: 1;
}

.stat-copy small {
    overflow: hidden;
    color: #788395;
    font-size: .61rem;
    font-weight: 750;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.stat-arrow {
    color: #566173;
    font-size: .72rem;
}

.discover-section {
    margin-top: 68px;
    scroll-margin-top: 92px;
}

.discover-section-heading {
    margin-bottom: 19px;
}

.discover-section-heading h2 {
    margin: 7px 0 5px;
    font-size: clamp(1.55rem, 3vw, 2.15rem);
    letter-spacing: -.035em;
}

.discover-section-heading p {
    color: #7f8998;
}

.section-side-note {
    padding: 7px 10px;
    border: 1px solid rgba(255, 255, 255, .06);
    border-radius: 999px;
    color: #687386;
    font-size: .62rem;
    font-weight: 750;
}

.theme-showcase-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 13px;
}

.theme-showcase-card {
    position: relative;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 13px;
    border: 1px solid rgba(255, 255, 255, .07);
    border-radius: 20px;
    background: linear-gradient(160deg, #141b26, #0e141d);
    color: var(--text);
    text-decoration: none;
    box-shadow: 0 18px 42px rgba(0, 0, 0, .16);
    transition: transform .28s cubic-bezier(.2, .7, .2, 1), border-color .22s ease, box-shadow .22s ease;
}

.theme-showcase-card:hover {
    transform: translateY(-7px);
    border-color: rgba(245, 197, 24, .25);
    box-shadow: 0 28px 58px rgba(0, 0, 0, .25);
}

.theme-card-index {
    position: absolute;
    z-index: 3;
    top: 16px;
    right: 16px;
    color: rgba(255, 255, 255, .18);
    font-size: .62rem;
    font-weight: 900;
    letter-spacing: .09em;
}

.theme-card-visual {
    position: relative;
    min-height: 164px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border-radius: 14px;
    background:
        radial-gradient(circle at 70% 20%, rgba(245, 197, 24, .12), transparent 44%),
        linear-gradient(145deg, #161f2c, #0b1119);
}

.theme-card-visual::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
    background-size: 22px 22px;
}

.theme-card-visual img {
    position: relative;
    z-index: 1;

    width: auto;
    height: auto;

    max-width: var(--theme-image-width, 92%);
    max-height: var(--theme-image-height, 158px);

    object-fit: contain;
    object-position: center;

    transform: translate(
        var(--theme-image-x, 0px),
        var(--theme-image-y, 0px)
    );

    transition: transform .32s ease;
}

.theme-placeholder-mark {
    position: relative;
    z-index: 1;
    max-width: 85%;
    color: rgba(245, 197, 24, .82);
    font-size: clamp(1.1rem, 2.2vw, 1.8rem);
    font-weight: 950;
    letter-spacing: -.04em;
    text-align: center;
}

.theme-placeholder-copy {
    position: absolute;
    z-index: 2;
    left: 10px;
    bottom: 9px;
    padding: 4px 7px;
    border: 1px solid rgba(255, 255, 255, .06);
    border-radius: 999px;
    background: rgba(7, 10, 15, .5);
    color: #5f6a7a;
    font-size: .52rem;
    font-weight: 750;
}

.theme-card-copy {
    position: relative;
    z-index: 2;
    display: grid;
    align-content: end;
    flex: 1;
    padding: 16px 4px 3px;
}

.theme-card-copy > span {
    color: #6f7a8b;
    font-size: .59rem;
    font-weight: 750;
}

.theme-card-copy h3 {
    margin: 5px 0 12px;
    font-size: 1rem;
    letter-spacing: -.02em;
}

.theme-card-copy small {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, .055);
    color: #858fa0;
    font-size: .63rem;
    font-weight: 800;
}

.theme-card-copy small b {
    color: var(--accent);
    transition: transform .18s ease;
}

.theme-showcase-card:hover .theme-card-copy small b {
    transform: translate(2px, -2px);
}

.release-source-chip.live {
    color: #a08d49;
}

.release-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 13px;
}

.release-card {
    border-radius: 19px;
    background: linear-gradient(180deg, #111823, #0e141d);
}

.release-image-stage {
    min-height: 208px;
    background:
        radial-gradient(circle at 50% 75%, rgba(245, 197, 24, .08), transparent 44%),
        linear-gradient(180deg, #f7f7f2 0%, #e6e7e1 100%);
}

.release-image-stage img {
    height: 160px;
}

.release-card-overline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    color: #697486;
    font-size: .58rem;
    font-weight: 760;
}

.release-card-body h3 {
    min-height: 42px;
}

.discover-empty-card {
    display: grid;
    gap: 6px;
}

.discover-empty-card strong {
    color: #c4cad3;
}

.discover-empty-card span {
    color: #707b8c;
    font-size: .77rem;
}

.discover-cta-strip {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    margin-top: 72px;
    padding: clamp(24px, 4vw, 38px);
    border: 1px solid rgba(245, 197, 24, .15);
    border-radius: 22px;
    background:
        radial-gradient(circle at 88% 35%, rgba(245, 197, 24, .105), transparent 19rem),
        linear-gradient(145deg, #121923, #0b1017);
}

.discover-cta-strip h2 {
    margin: 7px 0 6px;
    font-size: clamp(1.4rem, 3vw, 2.05rem);
    letter-spacing: -.035em;
}

.discover-cta-strip p {
    margin: 0;
    color: #7d8797;
    font-size: .8rem;
}

.discover-cta-button {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding: 12px 14px;
    border-radius: 11px;
    background: var(--accent);
    color: #10120f;
    font-size: .72rem;
    font-weight: 900;
    text-decoration: none;
    transition: transform .2s ease, box-shadow .2s ease;
}

.discover-cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(245, 197, 24, .15);
}

.discover-cta-button span {
    transition: transform .2s ease;
}

.discover-cta-button:hover span {
    transform: translateX(3px);
}

/* ---------- Theme page ---------- */

.theme-page {
    padding-top: 28px;
}

.theme-page-hero {
    border-color: rgba(245, 197, 24, .14);
    background:
        radial-gradient(circle at 86% 16%, rgba(245, 197, 24, .085), transparent 25rem),
        linear-gradient(145deg, #131b26, #0b1017);
    box-shadow: 0 24px 60px rgba(0, 0, 0, .22);
}

.theme-page-kicker {
    color: var(--accent);
    font-size: .62rem;
    font-weight: 900;
    letter-spacing: .14em;
}

.theme-page-hero p {
    margin-bottom: 0;
}

.theme-set-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 13px;
}

.theme-set-card {
    border-radius: 18px;
    background: linear-gradient(180deg, #111823, #0e141d);
}

.theme-set-image {
    min-height: 204px;
    background: linear-gradient(180deg, #f7f7f2, #e9e9e4);
}

.theme-set-placeholder {
    color: #9b7e12;
    font-size: .82rem;
    font-weight: 950;
}

.theme-pagination a {
    transition: transform .18s ease, border-color .18s ease, color .18s ease;
}

.theme-pagination a:hover {
    transform: translateY(-2px);
    border-color: rgba(245, 197, 24, .28);
    color: var(--accent-soft);
}

/* ---------- Set detail ---------- */

.set-page {
    padding: 24px 0 18px;
}

.detail-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 0 0 14px;
    color: #5f6b7d;
    font-size: .66rem;
    font-weight: 800;
}

.detail-topbar a {
    color: #7f8999;
    text-decoration: none;
    transition: color .18s ease, transform .18s ease;
}

.detail-topbar a:hover {
    color: var(--accent-soft);
    transform: translateX(-2px);
}

.set-detail-showcase {
    display: grid;
    grid-template-columns: minmax(250px, .82fr) minmax(0, 1.65fr);
    gap: 20px;
}

.set-product-card,
.set-market-panel,
.set-info-panel,
.modern-form-section,
.set-links-panel {
    border: 1px solid rgba(255, 255, 255, .07);
    border-radius: 21px;
    background: linear-gradient(155deg, #111823, #0d131c);
    box-shadow: 0 20px 55px rgba(0, 0, 0, .19);
}

.set-product-card {
    overflow: hidden;
}

.set-product-image-stage {
    position: relative;
    min-height: 340px;
    display: grid;
    place-items: center;
    padding: 45px 22px 24px;
    background:
        radial-gradient(circle at 50% 76%, rgba(245, 197, 24, .07), transparent 42%),
        linear-gradient(180deg, #f7f7f3, #e5e6e1);
}

.set-product-image-stage::after {
    content: "";
    position: absolute;
    left: 22%;
    right: 22%;
    bottom: 30px;
    height: 24px;
    border-radius: 50%;
    background: rgba(0, 0, 0, .13);
    filter: blur(14px);
}

.set-product-image-stage img {
    position: relative;
    z-index: 2;
    width: 100%;
    max-height: 280px;
    object-fit: contain;
    filter: drop-shadow(0 16px 13px rgba(0, 0, 0, .16));
    transition: transform .3s cubic-bezier(.2, .7, .2, 1);
}

.set-product-card:hover .set-product-image-stage img {
    transform: translateY(-5px) scale(1.02);
}

.set-product-badges {
    position: absolute;
    z-index: 4;
    top: 12px;
    right: 12px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 5px;
}

.set-product-placeholder {
    position: relative;
    z-index: 2;
    color: #957914;
    font-size: 1.2rem;
    font-weight: 950;
}

.set-product-copy {
    padding: 18px;
}

.set-product-copy h1 {
    margin: 6px 0 10px;
    font-size: clamp(1.25rem, 2.3vw, 1.75rem);
    line-height: 1.17;
    letter-spacing: -.035em;
}

.set-product-copy .meta {
    margin: 0;
}

.set-market-panel {
    min-width: 0;
    padding: clamp(21px, 3vw, 30px);
}

.market-panel-head {
    display: block;
}

.market-price-line {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 7px;
}

.market-current-price {
    display: block;
    margin-top: 0;
    color: #f6f7f9;
    font-size: clamp(2rem, 5vw, 3.15rem);
    line-height: 1;
    letter-spacing: -.055em;
}

.market-current-price.is-empty {
    color: #828c9c;
    font-size: clamp(1.7rem, 4vw, 2.6rem);
}

.market-current-source {
    display: block;
    margin-top: 7px;
    color: #747f90;
    font-size: .69rem;
    font-weight: 700;
}

.market-offer-link {
    flex: 0 0 auto;
    padding: 8px 12px;
    border: 1px solid rgba(245, 197, 24, .34);
    border-radius: 10px;
    background: rgba(245, 197, 24, .075);
    color: var(--accent-soft);
    font-size: .64rem;
    font-weight: 850;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    transition: transform .18s ease, background .18s ease, border-color .18s ease;
}

.market-offer-link:hover {
    transform: translateY(-2px);
    border-color: rgba(245, 197, 24, .52);
    background: rgba(245, 197, 24, .12);
}

.detail-primary-actions {
    margin: 18px 0 16px;
}

.detail-action-button {
    min-height: 35px;
    padding: 8px 12px;
    border-radius: 10px;
    font-size: .65rem;
    letter-spacing: .01em;
    transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.detail-action-button:hover {
    transform: translateY(-2px);
}

button.detail-action-button.primary {
    background: var(--accent);
    color: #11130f;
}

.detail-action-button.secondary {
    background: #182130;
}

.market-metrics-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 9px;
}

.market-metric {
    min-width: 0;
    padding: 11px 12px;
    border: 1px solid rgba(255, 255, 255, .07);
    border-radius: 12px;
    background: rgba(255, 255, 255, .022);
}

.market-metric span {
    display: block;
    margin-bottom: 4px;
    color: #687486;
    font-size: .56rem;
    font-weight: 820;
    letter-spacing: .035em;
    text-transform: uppercase;
}

.market-metric strong {
    display: block;
    overflow: hidden;
    color: #dbe0e6;
    font-size: .75rem;
    font-weight: 900;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.market-metrics-grid .market-metric:first-child strong {
    color: var(--success);
}

.market-metrics-grid .market-metric:nth-child(2) strong {
    color: var(--accent-soft);
}

.market-chart-shell {
    margin-top: 13px;
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, .07);
    border-radius: 15px;
    background: rgba(5, 9, 14, .46);
}

.market-chart-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 9px;
}

.market-chart-heading > div:first-child {
    display: grid;
    gap: 2px;
}

.market-chart-heading strong {
    color: #cfd5dd;
    font-size: .68rem;
}

.market-chart-heading .chart-description {
    color: #5e697a;
    font-size: .55rem;
}

.market-chart-heading .chart-controls {
    margin: 0;
    gap: 4px;
}

.market-chart-heading .chart-range-button {
    padding: 5px 8px;
    border-radius: 8px;
    font-size: .55rem;
}

.compact-chart-card {
    height: 190px;
    padding: 4px 2px 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.market-chart-empty {
    min-height: 135px;
    display: grid;
    place-items: center;
    padding: 20px;
    border: 1px dashed rgba(255, 255, 255, .07);
    border-radius: 11px;
    color: #606c7d;
    font-size: .68rem;
    text-align: center;
}

.set-insight-grid {
    display: grid;
    grid-template-columns: 1.15fr .9fr .9fr;
    gap: 14px;
    margin-top: 18px;
}

.set-info-panel,
.modern-form-section,
.set-links-panel {
    margin: 0;
    padding: 20px;
}

.set-info-panel .section-header,
.modern-form-section .section-header,
.set-links-panel .section-header {
    margin: 0 0 14px;
}

.set-info-panel .section-header h2,
.modern-form-section h2,
.set-links-panel h2 {
    font-size: 1.04rem;
    letter-spacing: -.025em;
}

.price-reference-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin: 0;
}

.price-reference-grid .detail-stat {
    padding: 11px;
    border-color: rgba(255, 255, 255, .06);
    border-radius: 11px;
    background: rgba(255, 255, 255, .018);
}

.price-reference-grid .detail-stat > span {
    margin-bottom: 4px;
    color: #687486;
    font-size: .55rem;
}

.price-reference-grid .detail-stat > strong {
    font-size: .78rem;
}

.price-reference-grid .detail-stat a {
    display: inline-block;
    margin-top: 5px;
    font-size: .58rem;
    text-decoration: none;
}

.price-reference-grid .detail-stat .price-offer-link {
    color: var(--accent-soft);
    font-weight: 850;
}

.price-reference-grid .detail-stat .price-offer-link:hover {
    text-decoration: underline;
    text-underline-offset: 2px;
}

.ppp-detail-stack {
    display: grid;
    gap: 9px;
}

.ppp-detail-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 13px;
    border: 1px solid rgba(255, 255, 255, .06);
    border-radius: 12px;
    background: rgba(255, 255, 255, .018);
}

.ppp-detail-row > div {
    display: grid;
    gap: 3px;
}

.ppp-detail-row span:first-child {
    color: #6d7889;
    font-size: .58rem;
    font-weight: 800;
}

.ppp-detail-row strong {
    color: #dce1e7;
    font-size: .77rem;
}

.ppp-detail-row small {
    color: #5d6879;
    font-size: .56rem;
}

.ppp-detail-row .detail-rating {
    flex: 0 0 auto;
    margin: 0;
    font-size: .55rem;
}

.set-status-list {
    display: grid;
    gap: 0;
}

.set-status-list > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, .055);
}

.set-status-list > div:last-child {
    border-bottom: 0;
}

.set-status-list span {
    color: #6d7889;
    font-size: .61rem;
    font-weight: 760;
}

.set-status-list strong {
    color: #c8ced7;
    font-size: .66rem;
    font-weight: 850;
    text-align: right;
}

.modern-form-section {
    margin-top: 18px;
}

.modern-form-section .section-heading {
    margin-bottom: 15px;
}

.modern-form-section .section-heading p,
.alert-modern-header p {
    margin: 5px 0 0;
    color: #717c8d;
    font-size: .72rem;
    line-height: 1.55;
}

.modern-form-section .collection-form {
    grid-template-columns: .7fr 1fr 1fr 1.2fr;
    gap: 9px;
    padding: 0;
    border: 0;
    background: transparent;
}

.modern-form-section .collection-notes {
    grid-column: 1 / -2;
}

.modern-form-section .collection-field label,
.modern-form-section .alert-field label {
    color: #788395;
    font-size: .62rem;
}

.modern-form-section input {
    min-height: 42px;
    border-color: rgba(255, 255, 255, .075);
    background: #111925;
}

.modern-form-section input:focus {
    border-color: rgba(245, 197, 24, .45);
    box-shadow: 0 0 0 3px rgba(245, 197, 24, .045);
}

.modern-form-section .button-primary,
.modern-form-section .alert-form > button {
    min-height: 42px;
    align-self: end;
    border-radius: 10px;
}

.modern-form-section .alert-summary {
    margin: 0 0 10px;
}

.modern-form-section .alert-summary .detail-stat {
    padding: 12px;
    border-color: rgba(255, 255, 255, .06);
    background: rgba(255, 255, 255, .018);
}

.modern-form-section .alert-card {
    padding: 14px;
    border-color: rgba(255, 255, 255, .06);
    background: rgba(255, 255, 255, .015);
}

.set-links-panel {
    margin-top: 18px;
}

.set-links-panel .external-links a {
    border-color: rgba(255, 255, 255, .07);
    background: #151e2a;
    color: #9ba4b1;
    font-size: .64rem;
    font-weight: 800;
    transition: transform .18s ease, border-color .18s ease, color .18s ease;
}

.set-links-panel .external-links a:hover {
    transform: translateY(-2px);
    border-color: rgba(245, 197, 24, .24);
    color: var(--accent-soft);
}

/* ---------- Polimento das páginas internas existentes ---------- */

.hero-grid .panel,
.card-grid .set-card,
.collection-table-wrapper,
.collection-summary-card,
.stats-summary-card,
.stats-extreme-card,
.stats-themes {
    border-color: rgba(255, 255, 255, .07);
    background: linear-gradient(155deg, #111823, #0e141d);
    box-shadow: 0 18px 46px rgba(0, 0, 0, .14);
}

.hero-grid .panel,
.card-grid .set-card,
.collection-summary-card,
.stats-summary-card,
.stats-extreme-card {
    transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}

.hero-grid .panel:hover,
.card-grid .set-card:hover,
.collection-summary-card:hover,
.stats-summary-card:hover,
.stats-extreme-card:hover {
    transform: translateY(-3px);
    border-color: rgba(245, 197, 24, .18);
    box-shadow: 0 24px 50px rgba(0, 0, 0, .2);
}

.collection-page-header h1,
.stats-header h1 {
    letter-spacing: -.035em;
}

.collection-summary,
.stats-summary {
    gap: 12px;
}

.view-switch-button,
.collection-action-button,
.monitor-telegram-connect,
.monitor-telegram-disconnect,
.section-actions button {
    transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.view-switch-button:hover,
.collection-action-button:hover,
.monitor-telegram-connect:hover,
.monitor-telegram-disconnect:hover,
.section-actions button:hover {
    transform: translateY(-2px);
}

/* ---------- Motion / responsive ---------- */

@keyframes lpt-rise-in {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1040px) {
    .topbar-inner {
        gap: 14px;
    }

    .main-nav-link {
        padding: 0 9px;
        font-size: .67rem;
    }

    .main-nav-link::after {
        left: 9px;
        right: 9px;
    }

    .theme-showcase-grid,
    .release-grid,
    .theme-set-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .set-insight-grid {
        grid-template-columns: 1fr 1fr;
    }

    .set-insight-grid > :first-child {
        grid-column: 1 / -1;
    }

    .site-footer-grid {
        grid-template-columns: 1.5fr 1fr 1fr;
    }

    .footer-note-card {
        grid-column: 1 / -1;
    }
}

@media (max-width: 860px) {
    .topbar-inner {
        grid-template-columns: minmax(0, 1fr) auto;
        padding: 9px 0 0;
    }

    .main-nav {
        grid-column: 1 / -1;
        grid-row: 2;
        width: 100%;
        height: 44px;
        justify-content: flex-start;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .main-nav::-webkit-scrollbar {
        display: none;
    }

    .main-nav-link {
        flex: 0 0 auto;
        min-height: 44px;
    }

    .main-nav-link::after {
        bottom: 4px;
    }

    .app-brand-subtitle {
        display: none;
    }

    .set-detail-showcase {
        grid-template-columns: 1fr;
    }

    .set-product-card {
        display: grid;
        grid-template-columns: .85fr 1fr;
    }

    .set-product-image-stage {
        min-height: 280px;
    }

    .set-product-copy {
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .modern-form-section .collection-form {
        grid-template-columns: 1fr 1fr;
    }

    .modern-form-section .collection-notes {
        grid-column: 1 / -1;
    }

    .site-footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .footer-brand-card,
    .footer-note-card {
        grid-column: 1 / -1;
    }
}

@media (max-width: 700px) {
    .container {
        width: min(100% - 24px, 1180px);
    }

    .app-brand-name {
        font-size: .78rem;
    }

    .account-link {
        min-width: 0;
        grid-template-columns: 32px auto;
        padding: 5px 7px 5px 5px;
    }

    .account-avatar {
        width: 32px;
        height: 32px;
    }

    .account-copy,
    .account-chevron {
        display: none;
    }

    .discover-hero {
        padding: 25px 18px;
        border-radius: 21px;
    }

    .discover-hero h1 {
        font-size: clamp(2.25rem, 12vw, 3.45rem);
    }

    .global-search-provider {
        display: none;
    }

    .global-search-shell {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .discover-quick-stats {
        grid-template-columns: 1fr;
    }

    .theme-showcase-grid,
    .release-grid,
    .theme-set-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .theme-showcase-card {
        min-height: 275px;
    }

    .discover-cta-strip {
        align-items: flex-start;
        flex-direction: column;
    }

    .set-product-card {
        display: block;
    }

    .market-panel-head,
    .market-chart-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .market-metrics-grid {
        grid-template-columns: 1fr;
    }

    .set-insight-grid {
        grid-template-columns: 1fr;
    }

    .set-insight-grid > :first-child {
        grid-column: auto;
    }

    .price-reference-grid {
        grid-template-columns: 1fr;
    }

    .modern-form-section .collection-form,
    .modern-form-section .alert-form {
        grid-template-columns: 1fr;
    }

    .modern-form-section .collection-notes {
        grid-column: auto;
    }

    .site-footer-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .footer-brand-card,
    .footer-note-card {
        grid-column: auto;
    }

    .site-footer-bottom {
        align-items: flex-start;
        flex-direction: column;
        justify-content: center;
        padding: 14px 0;
    }
}

@media (max-width: 480px) {
    .brand-monogram {
        min-width: 37px;
        height: 28px;
        font-size: .68rem;
    }

    .app-brand-name {
        font-size: .7rem;
    }

    .theme-showcase-grid,
    .release-grid,
    .theme-set-grid {
        grid-template-columns: 1fr;
    }

    .theme-card-visual {
        min-height: 195px;
    }

    .release-image-stage,
    .theme-set-image {
        min-height: 245px;
    }

    .set-product-image-stage {
        min-height: 300px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .discover-hero {
        animation: none;
    }

    .main-nav-link,
    .main-nav-link::after,
    .account-link,
    .brand-monogram,
    .theme-showcase-card,
    .release-card,
    .set-product-image-stage img,
    .discover-stat-pill,
    .discover-cta-button,
    .hero-grid .panel,
    .card-grid .set-card,
    .collection-summary-card,
    .stats-summary-card,
    .stats-extreme-card {
        transition: none !important;
    }
}

/* =========================================================
   HOME — CARROSSEL DE TEMAS
   ========================================================= */

.theme-carousel-mask {
    position: relative;
    overflow: hidden;
}

.theme-carousel-mask::after {
    content: "";
    position: absolute;
    z-index: 5;
    top: 0;
    right: 0;
    bottom: 14px;
    width: 70px;

    background: linear-gradient(
        90deg,
        transparent,
        var(--bg)
    );

    pointer-events: none;
}

.theme-carousel {
    display: flex;
    gap: 14px;

    overflow-x: auto;
    overflow-y: hidden;

    padding: 5px 60px 20px 2px;

    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;

    scrollbar-width: none;
    overscroll-behavior-inline: contain;
}

.theme-carousel::-webkit-scrollbar {
    display: none;
}

.theme-carousel .theme-showcase-card {
    flex: 0 0 clamp(220px, 24vw, 270px);
    width: auto;
    min-width: 0;

    scroll-snap-align: start;
    scroll-snap-stop: normal;
}


/* Dá aquela sensação de que existem mais cards pro lado */

.theme-carousel .theme-showcase-card:last-child {
    margin-right: 15px;
}


/* SETAS */

.carousel-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.carousel-control {
    width: 42px;
    height: 42px;

    display: grid;
    place-items: center;

    padding: 0;

    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 12px;

    background: rgba(255, 255, 255, .025);

    color: #d8dde6;

    font-size: 1rem;

    cursor: pointer;

    transition:
        color .2s ease,
        border-color .2s ease,
        background .2s ease,
        transform .2s ease;
}

.carousel-control:hover {
    color: var(--accent);

    border-color: rgba(245, 197, 24, .35);

    background: rgba(245, 197, 24, .06);

    transform: translateY(-2px);
}


/* TABLET */

@media (max-width: 860px) {

    .theme-carousel .theme-showcase-card {
        flex-basis: 235px;
    }

}


/* CELULAR */

@media (max-width: 480px) {

    .carousel-controls {
        display: none;
    }

    .theme-carousel-mask::after {
        width: 30px;
    }

    .theme-carousel {
        gap: 11px;

        padding-right: 32px;

        scroll-snap-type: x mandatory;
    }

    .theme-carousel .theme-showcase-card {
        flex-basis: 82%;
        min-height: 285px;
    }

}

.discover-home,
.discover-hero {
    position: relative;
    overflow: visible;
}

.discover-hero {
    z-index: 20;
}

.global-set-search {
    position: relative;
    z-index: 120;
}

.global-search-results {
    z-index: 300;
}

.theme-showcase-section,
.releases-section {
    position: relative;
    z-index: 1;
}

/* MARVEL */
.theme-marvel-super-heroes {
    --theme-image-width: 88%;
    --theme-image-height: 155px;
    --theme-image-x: 0px;
    --theme-image-y: 0px;
}

/* HARRY POTTER */
.theme-harry-potter {
    --theme-image-width: 82%;
    --theme-image-height: 150px;
    --theme-image-x: 0px;
    --theme-image-y: 5px;
}

/* STAR WARS */
.theme-star-wars {
    --theme-image-width: 78%;
    --theme-image-height: 148px;
    --theme-image-x: 0px;
    --theme-image-y: 5px;
}

/* DISNEY */
.theme-disney {
    --theme-image-width: 84%;
    --theme-image-height: 152px;
    --theme-image-x: 0px;
    --theme-image-y: 3px;
}

/* DC */
.theme-dc {
    --theme-image-width: 84%;
    --theme-image-height: 152px;
    --theme-image-x: 0px;
    --theme-image-y: 3px;
}

/* TECHNIC + SPEED CHAMPIONS */
.theme-technic-speed-champions {
    --theme-image-width: 86%;
    --theme-image-height: 154px;
    --theme-image-x: 0px;
    --theme-image-y: 3px;
}

/* ICONS */
.theme-icons {
    --theme-image-width: 80%;
    --theme-image-height: 150px;
    --theme-image-x: 0px;
    --theme-image-y: 5px;
}

/* IDEAS */
.theme-ideas {
    --theme-image-width: 82%;
    --theme-image-height: 150px;
    --theme-image-x: 0px;
    --theme-image-y: 5px;
}

/* EDITIONS */
.theme-editions {
    --theme-image-width: 84%;
    --theme-image-height: 152px;
    --theme-image-x: 0px;
    --theme-image-y: 3px;
}

/* ARCHITECTURE */
.theme-architecture {
    --theme-image-width: 80%;
    --theme-image-height: 148px;
    --theme-image-x: 0px;
    --theme-image-y: 5px;
}

/* FORÇA SCROLL NA BUSCA DA HOME */
.global-search-results {
    position: absolute !important;

    top: calc(100% + 10px) !important;
    left: 0 !important;
    right: 0 !important;

    max-height: calc(100vh - 150px) !important;

    overflow-x: hidden !important;
    overflow-y: scroll !important;

    z-index: 9999 !important;

    overscroll-behavior: contain;
    scrollbar-gutter: stable;
}

.global-search-results::-webkit-scrollbar {
    width: 8px;
}

.global-search-results::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, .02);
}

.global-search-results::-webkit-scrollbar-thumb {
    background: rgba(242, 201, 76, .35);
    border-radius: 999px;
}

.home-highlight-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
}

.home-highlight-tab {
    padding: 10px 16px;

    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 999px;

    background: rgba(255, 255, 255, .025);

    color: #8f97a6;

    font-size: .74rem;
    font-weight: 850;

    cursor: pointer;

    transition:
        background .2s ease,
        border-color .2s ease,
        color .2s ease;
}

.home-highlight-tab:hover {
    color: #fff;
    border-color: rgba(242, 201, 76, .28);
}

.home-highlight-tab.active {
    color: var(--accent);

    border-color: rgba(242, 201, 76, .55);

    background: rgba(242, 201, 76, .08);
}

.release-date-badge.retiring {
    color: #111;
    background: var(--accent);
}
.release-status.retiring {
    color: #111;
    background: var(--accent);
    border-color: var(--accent);
}
.home-highlight-panel-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;

    margin-bottom: 14px;

    color: #858d9c;
    font-size: .76rem;
    font-weight: 700;
}

.section-view-all {
    color: var(--accent);
    font-size: .76rem;
    font-weight: 850;
    text-decoration: none;
    white-space: nowrap;

    transition:
        color .2s ease,
        transform .2s ease;
}

.section-view-all:hover {
    color: #fff;
    transform: translateX(3px);
}

@media (max-width: 600px) {
    .home-highlight-panel-top {
        align-items: flex-start;
        flex-direction: column;
        gap: 7px;
    }
}

/* ABAS DE NOVIDADES DA HOME */

.home-highlight-panel {
    display: none;
}

.home-highlight-panel.active {
    display: block;
}

/* =========================================================
   FILTRO POR TEMA — LANÇAMENTOS / SAINDO DE LINHA
   ========================================================= */

.catalog-page-meta {
    position: relative;
    z-index: 15;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 18px;

    margin-top: 12px;
}

.catalog-page-meta > p {
    margin: 0;

    color: var(--muted);

    font-size: .88rem;
    line-height: 1.55;
}

.catalog-page-meta > p > strong {
    color: #f5f7fa;
    font-weight: 900;
}

.catalog-active-filter {
    display: inline-flex;

    margin-left: 8px;
    padding: 4px 8px;

    border: 1px solid rgba(245, 197, 24, .20);
    border-radius: 999px;

    background: rgba(245, 197, 24, .055);

    color: var(--accent-soft);

    font-size: .67rem;
    font-weight: 850;

    white-space: nowrap;
}

.catalog-filter {
    position: relative;
    flex: 0 0 auto;
}

.catalog-filter-button {
    min-height: 39px;

    display: inline-flex;
    align-items: center;

    gap: 10px;

    padding: 9px 12px;

    border: 1px solid rgba(255, 255, 255, .085);
    border-radius: 11px;

    background: rgba(255, 255, 255, .025);

    color: #c0c7d1;

    font-size: .72rem;
    font-weight: 850;

    cursor: pointer;

    list-style: none;

    transition:
        border-color .18s ease,
        background .18s ease,
        color .18s ease,
        transform .18s ease;
}

.catalog-filter-button::-webkit-details-marker {
    display: none;
}

.catalog-filter-button::marker {
    content: "";
}

.catalog-filter-button:hover,
.catalog-filter[open] .catalog-filter-button {
    border-color: rgba(245, 197, 24, .32);
    background: rgba(245, 197, 24, .055);
    color: var(--accent-soft);
    transform: translateY(-1px);
}

.catalog-filter-chevron {
    color: var(--accent);
    font-size: .82rem;
    transition: transform .18s ease;
}

.catalog-filter[open] .catalog-filter-chevron {
    transform: rotate(180deg);
}

.catalog-filter-menu {
    position: absolute;
    z-index: 100;

    top: calc(100% + 9px);
    right: 0;

    width: min(280px, calc(100vw - 48px));
    max-height: 360px;

    overflow-y: auto;

    padding: 8px;

    border: 1px solid rgba(245, 197, 24, .16);
    border-radius: 14px;

    background: rgba(10, 15, 22, .985);

    box-shadow:
        0 24px 58px rgba(0, 0, 0, .45);

    backdrop-filter: blur(18px);

    scrollbar-width: thin;
    scrollbar-color:
        rgba(245, 197, 24, .28)
        transparent;
}

.catalog-filter-menu-title {
    padding: 7px 9px 8px;

    color: #667285;

    font-size: .58rem;
    font-weight: 900;

    letter-spacing: .10em;
    text-transform: uppercase;
}

.catalog-filter-menu a {
    display: flex;
    align-items: center;

    min-height: 38px;

    padding: 8px 10px;

    border-radius: 9px;

    color: #939dac;

    font-size: .71rem;
    font-weight: 760;

    text-decoration: none;

    transition:
        color .15s ease,
        background .15s ease;
}

.catalog-filter-menu a:hover {
    background: rgba(255, 255, 255, .035);
    color: #f5f7fa;
}

.catalog-filter-menu a.active {
    background: rgba(245, 197, 24, .075);
    color: var(--accent-soft);
}

.catalog-filter-menu a.active::after {
    content: "✓";

    margin-left: auto;

    color: var(--accent);
    font-weight: 950;
}

@media (max-width: 620px) {

    .catalog-page-meta {
        align-items: stretch;
        flex-direction: column;
        gap: 12px;
    }

    .catalog-filter {
        width: 100%;
    }

    .catalog-filter-button {
        width: 100%;
        justify-content: space-between;
    }

    .catalog-filter-menu {
        left: 0;
        right: auto;
        width: 100%;
    }

    .catalog-active-filter {
        margin: 7px 0 0;
    }

}

/* =========================================================
   FILTRO MULTITEMA — BUSCA + CONTAGEM + MULTISSELEÇÃO
   ========================================================= */

.theme-page-hero {
    overflow: visible !important;
    z-index: 20;
}

.catalog-page-meta {
    position: relative;
    z-index: 30;
}

.catalog-result-summary {
    min-width: 0;
}

.catalog-result-summary > p {
    margin: 0;
    color: var(--muted);
    font-size: .88rem;
    line-height: 1.55;
}

.catalog-result-summary > p strong {
    color: #f5f7fa;
    font-weight: 900;
}

.catalog-active-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 9px;
}

.catalog-active-filters span {
    display: inline-flex;
    align-items: center;
    min-height: 25px;
    padding: 4px 8px;
    border: 1px solid rgba(245, 197, 24, .18);
    border-radius: 999px;
    background: rgba(245, 197, 24, .05);
    color: var(--accent-soft);
    font-size: .62rem;
    font-weight: 820;
}

.catalog-filter {
    position: relative;
    z-index: 40;
    flex: 0 0 auto;
}

.catalog-filter-menu {
    z-index: 999;

    width: min(370px, calc(100vw - 48px));
    max-height: none;

    overflow: visible;

    padding: 10px;
}

.catalog-theme-search-wrap {
    min-height: 42px;

    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 8px;

    margin-bottom: 8px;
    padding: 0 10px;

    border: 1px solid rgba(255, 255, 255, .07);
    border-radius: 10px;

    background: #101722;

    color: var(--accent);
}

.catalog-theme-search-wrap > span {
    color: #7b8696;
    font-size: .85rem;
}

.catalog-theme-search {
    width: 100%;
    min-width: 0;

    padding: 10px 0;

    border: 0 !important;
    border-radius: 0;

    background: transparent;

    color: var(--text);

    font-size: .75rem;
    font-weight: 700;

    outline: none;
    box-shadow: none !important;
}

.catalog-theme-search::placeholder {
    color: #657184;
}

.catalog-theme-options {
    max-height: 280px;

    overflow-y: auto;
    overscroll-behavior: contain;

    padding-right: 3px;

    scrollbar-width: thin;
    scrollbar-color:
        rgba(245, 197, 24, .28)
        transparent;
}

.catalog-theme-option {
    min-height: 40px;

    display: grid;
    grid-template-columns:
        20px
        minmax(0, 1fr)
        auto;

    align-items: center;

    gap: 9px;

    padding: 7px 8px;

    border-radius: 9px;

    cursor: pointer;

    transition:
        background .15s ease,
        color .15s ease;
}

.catalog-theme-option:hover {
    background: rgba(255, 255, 255, .035);
}

.catalog-theme-option[hidden] {
    display: none !important;
}

.catalog-theme-option input {
    position: absolute;

    width: 1px;
    height: 1px;

    opacity: 0;
    pointer-events: none;
}

.catalog-theme-check {
    width: 18px;
    height: 18px;

    display: grid;
    place-items: center;

    border: 1px solid rgba(255, 255, 255, .13);
    border-radius: 5px;

    background: rgba(255, 255, 255, .025);

    color: transparent;

    font-size: .62rem;
    font-weight: 950;

    transition:
        border-color .15s ease,
        background .15s ease,
        color .15s ease;
}

.catalog-theme-option input:checked
+ .catalog-theme-check {
    border-color: var(--accent);
    background: var(--accent);
    color: #11140f;
}

.catalog-theme-name {
    overflow: hidden;

    color: #a5aeba;

    font-size: .72rem;
    font-weight: 760;

    text-overflow: ellipsis;
    white-space: nowrap;
}

.catalog-theme-option:has(
    input:checked
) .catalog-theme-name {
    color: #f0f2f5;
}

.catalog-theme-count {
    min-width: 29px;

    padding: 3px 6px;

    border: 1px solid rgba(255, 255, 255, .055);
    border-radius: 999px;

    background: rgba(255, 255, 255, .025);

    color: #6f7a8a;

    font-size: .58rem;
    font-weight: 850;

    text-align: center;
}

.catalog-theme-no-results {
    padding: 20px 10px;

    color: #6f7a8b;

    font-size: .72rem;

    text-align: center;
}

.catalog-filter-actions {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 10px;

    margin-top: 9px;
    padding-top: 9px;

    border-top: 1px solid rgba(255, 255, 255, .055);
}

.catalog-filter-clear {
    width: fit-content;

    color: #7d8797;

    font-size: .68rem;
    font-weight: 800;

    text-decoration: none;
}

.catalog-filter-clear:hover {
    color: #f1f3f6;
}

.catalog-filter-apply {
    min-height: 36px;

    padding: 8px 11px;

    border: 1px solid var(--accent);
    border-radius: 9px;

    background: var(--accent);

    color: #11140f;

    font-size: .68rem;
    font-weight: 900;

    cursor: pointer;
}

.catalog-filter-apply:hover {
    filter: brightness(1.05);
}

.theme-set-grid {
    position: relative;
    z-index: 1;
}

@media (max-width: 620px) {
    .catalog-filter-menu {
        width: 100%;
    }

    .catalog-theme-options {
        max-height: 240px;
    }

    .catalog-filter-actions {
        grid-template-columns: 1fr 1fr;
    }

    .catalog-filter-apply {
        width: 100%;
    }
}

/* =========================================================
   MAIS TEMAS — seleção curada
   ========================================================= */

.theme-heading-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.themes-view-all {
    min-height: 42px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 0 13px;

    border: 1px solid rgba(245, 197, 24, .18);
    border-radius: 11px;

    background: rgba(245, 197, 24, .045);

    color: var(--accent-soft);

    font-size: .69rem;
    font-weight: 850;

    text-decoration: none;
    white-space: nowrap;

    transition:
        transform .18s ease,
        border-color .18s ease,
        background .18s ease;
}

.themes-view-all:hover {
    transform: translateY(-2px);

    border-color: rgba(245, 197, 24, .38);
    background: rgba(245, 197, 24, .075);

    color: #fff;
}

.themes-overview-grid {
    display: grid;

    grid-template-columns:
        repeat(
            4,
            minmax(0, 1fr)
        );

    gap: 14px;
}

.themes-overview-grid
.theme-showcase-card {
    min-width: 0;
    min-height: 290px;
}

.themes-overview-grid
.theme-card-copy h3 {
    margin-top: 0;
}

@media (max-width: 1040px) {

    .themes-overview-grid {
        grid-template-columns:
            repeat(
                3,
                minmax(0, 1fr)
            );
    }

}

@media (max-width: 700px) {

    .discover-section-heading {
        align-items: flex-start;
    }

    .theme-heading-actions {
        align-items: flex-end;
        flex-direction: column-reverse;
    }

    .themes-view-all {
        min-height: 36px;
        padding: 0 10px;
    }

    .themes-overview-grid {
        grid-template-columns:
            repeat(
                2,
                minmax(0, 1fr)
            );
    }

}

@media (max-width: 480px) {

    .theme-heading-actions {
        align-items: stretch;
    }

    .themes-view-all {
        width: 100%;
    }

    .themes-overview-grid {
        grid-template-columns: 1fr;
    }

}

/* CITY */
.theme-city {
    --theme-image-width: 92%;
    --theme-image-height: 155px;
    --theme-image-x: 0px;
    --theme-image-y: 2px;
}

/* MINECRAFT */
.theme-minecraft {
    --theme-image-width: 74%;
    --theme-image-height: 158px;
    --theme-image-x: 0px;
    --theme-image-y: 0px;
}

/* NINJAGO */
.theme-ninjago {
    --theme-image-width: 88%;
    --theme-image-height: 150px;
    --theme-image-x: 0px;
    --theme-image-y: 3px;
}

/* FRIENDS */
.theme-friends {
    --theme-image-width: 90%;
    --theme-image-height: 150px;
    --theme-image-x: 0px;
    --theme-image-y: 4px;
}

/* CREATOR */
.theme-creator {
    --theme-image-width: 78%;
    --theme-image-height: 150px;
    --theme-image-x: 0px;
    --theme-image-y: 3px;
}

/* CLASSIC */
.theme-classic {
    --theme-image-width: 72%;
    --theme-image-height: 145px;
    --theme-image-x: 0px;
    --theme-image-y: 5px;
}

/* SUPER MARIO */
.theme-super-mario {
    --theme-image-width: 83%;
    --theme-image-height: 152px;
    --theme-image-x: 0px;
    --theme-image-y: 2px;
}

/* BRICKHEADZ */
.theme-brickheadz {
    --theme-image-width: 86%;
    --theme-image-height: 150px;
    --theme-image-x: 0px;
    --theme-image-y: 3px;
}

/* JURASSIC WORLD */
.theme-jurassic-world {
    --theme-image-width: 92%;
    --theme-image-height: 145px;
    --theme-image-x: 0px;
    --theme-image-y: 5px;
}

/* FORTNITE */
.theme-fortnite {
    --theme-image-width: 70%;
    --theme-image-height: 158px;
    --theme-image-x: 0px;
    --theme-image-y: 0px;
}

/* DREAMZzz */
.theme-dreamzzz {
    --theme-image-width: 88%;
    --theme-image-height: 145px;
    --theme-image-x: 0px;
    --theme-image-y: 5px;
}

/* BOTANICALS */
.theme-botanicals {
    --theme-image-width: 75%;
    --theme-image-height: 150px;
    --theme-image-x: 0px;
    --theme-image-y: 2px;
}

/* WICKED */
.theme-wicked {
    --theme-image-width: 87%;
    --theme-image-height: 150px;
    --theme-image-x: 0px;
    --theme-image-y: 3px;
}

/* =====================================================================
   INTERNAL EXPERIENCE V3 · setembro/2026
   Monitoramento, coleção, estatísticas, administração, Sobre nós e footer.
   ===================================================================== */

/* ---------- Base para páginas internas ---------- */

.internal-page-hero {
    position: relative;
    overflow: hidden;

    display: flex;
    align-items: flex-end;
    justify-content: space-between;

    gap: 30px;

    margin: 28px 0 22px;
    padding: clamp(24px, 4vw, 36px);

    border: 1px solid rgba(245, 197, 24, .13);
    border-radius: 24px;

    background:
        radial-gradient(circle at 90% 15%, rgba(245, 197, 24, .095), transparent 24rem),
        linear-gradient(145deg, #121a25, #0a1018);

    box-shadow:
        0 26px 65px rgba(0, 0, 0, .23),
        inset 0 1px rgba(255, 255, 255, .035);
}

.internal-page-hero::before {
    content: "";

    position: absolute;
    inset: 0;

    pointer-events: none;

    background-image:
        linear-gradient(rgba(255, 255, 255, .018) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .018) 1px, transparent 1px);

    background-size: 38px 38px;

    mask-image:
        linear-gradient(
            105deg,
            transparent 12%,
            black 85%
        );
}

.internal-page-hero-copy,
.internal-hero-metrics,
.internal-hero-action,
.about-hero-mark {
    position: relative;
    z-index: 1;
}

.internal-page-hero-copy {
    max-width: 720px;
}

.internal-page-kicker {
    color: var(--accent);

    font-size: .62rem;
    font-weight: 950;

    letter-spacing: .15em;
    text-transform: uppercase;
}

.internal-page-hero h1 {
    margin: 8px 0 9px;

    font-size:
        clamp(
            1.9rem,
            4.4vw,
            3.35rem
        );

    line-height: 1.02;
    letter-spacing: -.045em;
}

.internal-page-hero p {
    max-width: 650px;

    margin: 0;

    color: #8792a3;

    font-size: .82rem;
    line-height: 1.65;
}

.internal-hero-metrics {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(125px, 1fr));

    gap: 9px;

    min-width: 310px;
}

.internal-hero-metric {
    min-width: 0;

    padding: 14px;

    border: 1px solid rgba(255, 255, 255, .065);
    border-radius: 13px;

    background: rgba(255, 255, 255, .025);
}

.internal-hero-metric span {
    display: block;

    margin-bottom: 5px;

    color: #677386;

    font-size: .55rem;
    font-weight: 850;

    letter-spacing: .07em;
}

.internal-hero-metric strong {
    display: block;

    overflow: hidden;

    color: #f2f4f7;

    font-size: 1.05rem;
    font-weight: 900;

    text-overflow: ellipsis;
    white-space: nowrap;
}

.internal-hero-action {
    flex: 0 0 auto;

    display: inline-flex;
    align-items: center;

    gap: 14px;

    min-height: 42px;

    padding: 0 14px;

    border: 1px solid rgba(245, 197, 24, .22);
    border-radius: 11px;

    background: rgba(245, 197, 24, .055);

    color: var(--accent-soft);

    font-size: .68rem;
    font-weight: 900;

    text-decoration: none;

    transition:
        transform .18s ease,
        border-color .18s ease,
        background .18s ease;
}

.internal-hero-action:hover {
    transform: translateY(-2px);

    border-color: rgba(245, 197, 24, .44);
    background: rgba(245, 197, 24, .09);

    color: #fff;
}

.internal-hero-action span {
    color: var(--accent);
}

.internal-page-back {
    display: inline-flex;

    margin-bottom: 18px;

    color: #748093;

    font-size: .66rem;
    font-weight: 800;

    text-decoration: none;
}

.internal-page-back:hover {
    color: var(--accent-soft);
}

/* ---------- Monitoramento ---------- */

.page-monitoring .app-main {
    padding-bottom: 20px;
}

.monitoring-page-hero {
    margin-bottom: 16px;
}

.monitoring-setup-grid {
    grid-template-columns:
        minmax(0, 1fr)
        minmax(0, 1fr);

    gap: 13px;

    margin: 0 0 30px;
}

.page-monitoring .monitoring-setup-grid > .panel {
    min-height: 190px;

    padding: 21px;

    border-color: rgba(255, 255, 255, .07);
    border-radius: 18px;

    background:
        linear-gradient(
            150deg,
            #111925,
            #0d141d
        );

    box-shadow:
        0 18px 42px rgba(0, 0, 0, .14);

    transition:
        transform .2s ease,
        border-color .2s ease;
}

.page-monitoring .monitoring-setup-grid > .panel:hover {
    transform: translateY(-3px);
    border-color: rgba(245, 197, 24, .17);
}

.page-monitoring .monitoring-setup-grid h2 {
    margin: 6px 0 6px;

    font-size: 1.12rem;
}

.page-monitoring .monitoring-setup-grid p {
    color: #7b8798;

    font-size: .76rem;
    line-height: 1.55;
}

.page-monitoring .add-form {
    margin-top: 24px;
}

.page-monitoring .add-form input {
    min-height: 44px;

    border-color: rgba(255, 255, 255, .08);

    background: #111a26;
}

.page-monitoring .add-form button,
#update-ml-button {
    min-height: 44px;

    border-radius: 10px;

    background:
        linear-gradient(
            135deg,
            #f5c518,
            #e9b713
        );

    box-shadow:
        0 9px 25px rgba(245, 197, 24, .10);
}

.monitor-telegram-bottom {
    flex-wrap: wrap;
}

.monitoring-list-header {
    align-items: center;

    margin: 0 0 12px;
    padding-top: 2px;
}

.monitoring-list-header h2 {
    margin-top: 4px;

    font-size: 1.3rem;
}

.monitoring-list-header .section-actions {
    flex-direction: row;
}

.monitoring-list-header .section-actions > span {
    color: #697587;

    font-size: .68rem;
    font-weight: 800;
}

.view-toolbar {
    display: flex;
    justify-content: flex-end;

    margin: 0 0 13px;
}

.view-switcher {
    display: inline-flex;

    padding: 3px;

    border: 1px solid rgba(255, 255, 255, .07);
    border-radius: 10px;

    background: #0f1620;
}

.view-switch-button {
    padding: 7px 10px;

    border: 0;
    border-radius: 7px;

    background: transparent;

    color: #6f7a8c;

    font-size: .65rem;
    font-weight: 850;
}

.view-switch-button:hover {
    color: #eef1f5;
}

.view-switch-button.active {
    background: rgba(245, 197, 24, .08);

    color: var(--accent-soft);
}

.page-monitoring .card-grid {
    grid-template-columns:
        repeat(
            3,
            minmax(0, 1fr)
        );

    gap: 13px;

    padding-bottom: 20px;
}

.page-monitoring .set-card {
    overflow: hidden;

    border-color: rgba(255, 255, 255, .07);
    border-radius: 18px;

    background:
        linear-gradient(
            180deg,
            #111823,
            #0d141d
        );

    box-shadow:
        0 18px 44px rgba(0, 0, 0, .16);

    transition:
        transform .2s ease,
        border-color .2s ease,
        box-shadow .2s ease;
}

.page-monitoring .set-card:hover {
    transform: translateY(-4px);

    border-color: rgba(245, 197, 24, .22);

    box-shadow:
        0 26px 54px rgba(0, 0, 0, .23);
}

.page-monitoring .set-card .image-wrap {
    height: 215px !important;
    min-height: 215px !important;

    background:
        linear-gradient(
            180deg,
            #f7f7f3,
            #e6e7e1
        );
}

.page-monitoring .set-card .set-body {
    padding: 15px;
}

.page-monitoring .set-card h3 {
    min-height: 42px;

    margin: 5px 0 8px;

    font-size: .9rem;
    line-height: 1.35;
}

.page-monitoring .set-number {
    color: var(--accent);

    font-size: .64rem;
    font-weight: 900;
}

.page-monitoring .set-card .meta {
    margin: 8px 0 10px;
}

.page-monitoring .set-card .home-prices {
    padding-top: 8px;

    border-top: 1px solid rgba(255, 255, 255, .055);
}

.page-monitoring .set-card .price-box,
.page-monitoring .set-card .ppp-box {
    border-color: rgba(255, 255, 255, .065);

    background: rgba(255, 255, 255, .022);
}

.page-monitoring .set-card form:last-child {
    display: grid;

    grid-template-columns:
        repeat(
            2,
            minmax(0, 1fr)
        );

    gap: 7px;
}

.page-monitoring .set-card form:last-child
.card-action-danger {
    grid-column: 1 / -1;
}

.page-monitoring .card-link-button,
.page-monitoring .card-action-button {
    min-height: 36px;

    padding: 7px 9px;

    font-size: .64rem;
}

.page-monitoring .sets-table-wrapper {
    overflow-x: auto;

    border-color: rgba(255, 255, 255, .07);

    background:
        linear-gradient(
            155deg,
            #111823,
            #0e141d
        );

    box-shadow:
        0 20px 48px rgba(0, 0, 0, .15);
}

.page-monitoring .sets-table {
    min-width: 1080px;
}

.ml-update-status {
    border-color: rgba(255, 255, 255, .07);

    background: #101721;
}

/* ---------- Coleção ---------- */

.collection-page {
    padding-bottom: 20px;
}

.collection-page-hero {
    margin-bottom: 16px;
}

.collection-summary {
    grid-template-columns:
        repeat(
            4,
            minmax(0, 1fr)
        );

    gap: 11px;

    margin-bottom: 28px;
}

.collection-summary-card {
    position: relative;

    overflow: hidden;

    padding: 16px;

    border-color: rgba(255, 255, 255, .07);
    border-radius: 15px;

    background:
        linear-gradient(
            155deg,
            #111923,
            #0d141d
        );

    box-shadow:
        0 16px 38px rgba(0, 0, 0, .13);
}

.collection-summary-card::after {
    content: "";

    position: absolute;

    width: 80px;
    height: 80px;

    top: -52px;
    right: -38px;

    border-radius: 50%;

    background: rgba(245, 197, 24, .12);

    filter: blur(8px);
}

.collection-summary-card span {
    margin-bottom: 7px;

    color: #697587;

    font-size: .61rem;
    font-weight: 850;

    letter-spacing: .035em;
    text-transform: uppercase;
}

.collection-summary-card strong {
    display: block;

    color: #f2f4f7;

    font-size: 1.35rem;
    letter-spacing: -.025em;
}

.collection-summary-card small {
    display: block;

    margin-top: 4px;

    color: #616d7e;

    font-size: .58rem;
}

.collection-content-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;

    gap: 18px;

    margin-bottom: 12px;
}

.collection-content-heading h2 {
    margin: 4px 0 0;

    font-size: 1.18rem;
}

.collection-content-heading > span {
    color: #697587;

    font-size: .66rem;
    font-weight: 800;
}

.collection-table-wrapper {
    border-color: rgba(255, 255, 255, .07);

    background:
        linear-gradient(
            155deg,
            #111823,
            #0d141d
        );

    box-shadow:
        0 20px 50px rgba(0, 0, 0, .16);
}

.collection-table th {
    padding: 12px 14px;

    border-color: rgba(255, 255, 255, .055);

    background: rgba(255, 255, 255, .017);

    color: #687486;

    font-size: .61rem;
}

.collection-table td {
    padding: 13px 14px;

    border-color: rgba(255, 255, 255, .045);

    font-size: .76rem;
}

.collection-image-link {
    width: 58px;
    height: 58px;
}

.collection-set-name {
    font-size: .78rem;
}

.collection-action-button {
    min-height: 33px;

    padding: 6px 9px;

    border-color: rgba(255, 255, 255, .08);

    background: #131c28;

    font-size: .64rem;
}

.collection-empty {
    border-color: rgba(255, 255, 255, .07);

    background:
        linear-gradient(
            145deg,
            #111823,
            #0d141d
        );

    box-shadow:
        0 20px 46px rgba(0, 0, 0, .14);
}

/* ---------- Estatísticas ---------- */

.stats-page {
    padding-bottom: 20px;
}

.stats-page-hero {
    margin-bottom: 16px;
}

.stats-summary {
    grid-template-columns:
        repeat(
            4,
            minmax(0, 1fr)
        );

    gap: 11px;

    margin-bottom: 14px;
}

.stats-summary-card {
    position: relative;

    overflow: hidden;

    min-height: 125px;

    padding: 16px;

    border-color: rgba(255, 255, 255, .07);
    border-radius: 15px;

    background:
        linear-gradient(
            155deg,
            #111923,
            #0d141d
        );

    box-shadow:
        0 16px 38px rgba(0, 0, 0, .13);
}

.stats-summary-card span {
    color: #697587;

    font-size: .6rem;

    letter-spacing: .035em;
    text-transform: uppercase;
}

.stats-summary-card strong {
    margin-top: 9px;

    color: #f4f6f8;

    font-size: 1.42rem;
    letter-spacing: -.035em;
}

.stats-summary-card small {
    margin-top: 5px;

    color: #616d7f;

    font-size: .59rem;
}

.stats-summary-card:nth-child(4) strong,
.stats-summary-card:nth-child(7) strong {
    color: var(--accent-soft);
}

.stats-extremes {
    gap: 12px;

    margin: 26px 0 14px;
}

.stats-extreme-card {
    border-color: rgba(255, 255, 255, .07);

    background:
        linear-gradient(
            155deg,
            #111823,
            #0d141d
        );

    box-shadow:
        0 20px 48px rgba(0, 0, 0, .15);
}

.stats-extreme-label {
    padding: 11px 15px;

    border-color: rgba(255, 255, 255, .055);

    color: #687486;

    font-size: .59rem;
    letter-spacing: .08em;
}

.stats-extreme-content {
    gap: 16px;

    padding: 16px;
}

.stats-extreme-image {
    width: 112px;
    height: 112px;
}

.stats-extreme-info h2 {
    margin: 5px 0 10px;

    font-size: 1rem;
}

.stats-extreme-info strong {
    font-size: 1.25rem;
}

.stats-themes {
    margin-top: 14px;

    border-color: rgba(255, 255, 255, .07);

    background:
        linear-gradient(
            155deg,
            #111823,
            #0d141d
        );

    box-shadow:
        0 20px 48px rgba(0, 0, 0, .15);
}

.stats-theme-list {
    gap: 9px;
}

.stats-theme-row {
    padding: 4px 0;
}

.stats-theme-row > span {
    color: #9ca5b2;

    font-size: .72rem;
}

.stats-theme-line {
    background: #182231;
}

.stats-theme-fill {
    background:
        linear-gradient(
            90deg,
            #c99506,
            var(--accent),
            #ffe47a
        );

    box-shadow:
        0 0 12px rgba(245, 197, 24, .12);
}

/* ---------- Administração ---------- */

.page-admin .app-main {
    padding-bottom: 20px;
}

.admin-page-hero,
.admin-links-hero {
    margin-bottom: 16px;
}

.admin-kpi-grid,
.admin-link-summary {
    display: grid;

    grid-template-columns:
        repeat(
            4,
            minmax(0, 1fr)
        );

    gap: 11px;

    margin-bottom: 16px;
}

.admin-kpi-card,
.admin-link-summary-card {
    min-width: 0;

    padding: 16px;

    border: 1px solid rgba(255, 255, 255, .07);
    border-radius: 15px;

    background:
        linear-gradient(
            155deg,
            #111923,
            #0d141d
        );

    box-shadow:
        0 16px 38px rgba(0, 0, 0, .13);
}

.admin-kpi-card span {
    display: block;

    color: #697587;

    font-size: .6rem;
    font-weight: 850;

    letter-spacing: .04em;
    text-transform: uppercase;
}

.admin-kpi-card strong,
.admin-link-summary-card strong {
    display: block;

    margin-top: 7px;

    color: #f4f6f8;

    font-size: 1.5rem;
}

.admin-kpi-card small {
    display: block;

    margin-top: 4px;

    color: #616d7f;

    font-size: .58rem;
}

.admin-kpi-card:first-child strong,
.admin-link-summary-card:last-child strong {
    color: var(--accent-soft);
}

.admin-workbench,
.admin-filter-panel {
    border-color: rgba(255, 255, 255, .07);

    background:
        linear-gradient(
            155deg,
            #111823,
            #0d141d
        );

    box-shadow:
        0 20px 48px rgba(0, 0, 0, .15);
}

.admin-workbench {
    padding: 22px;
}

.admin-workbench > h2 {
    margin: 5px 0 5px;

    font-size: 1.2rem;
}

.admin-workbench > p {
    max-width: 660px;

    color: #758193;

    font-size: .74rem;
    line-height: 1.55;
}

.admin-affiliate-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 14px;

    margin: 20px 0 10px;

    padding: 10px 12px;

    border: 1px solid rgba(255, 255, 255, .06);
    border-radius: 11px;

    background: rgba(255, 255, 255, .02);

    color: #7c8797;

    font-size: .7rem;
    font-weight: 800;
}

.admin-affiliate-toolbar .secondary {
    min-height: 34px;

    padding: 6px 10px;

    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 8px;

    background: #151e2a;

    color: #aab2bd;

    font-size: .62rem;
}

.admin-affiliate-list {
    display: grid;

    gap: 7px;

    margin-bottom: 20px;
}

.admin-affiliate-item {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 16px;

    padding: 11px 12px;

    border: 1px solid rgba(255, 255, 255, .055);
    border-radius: 11px;

    background: rgba(255, 255, 255, .018);
}

.admin-affiliate-item strong {
    color: #dce1e7;

    font-size: .7rem;
}

.admin-affiliate-id {
    margin-top: 4px;

    color: #657184;

    font-size: .6rem;
    font-weight: 760;
}

.admin-affiliate-item a,
.admin-link-history-actions a {
    color: var(--accent-soft);

    font-size: .64rem;
    font-weight: 850;

    text-decoration: none;
}

.admin-affiliate-batch-form {
    display: grid;

    gap: 9px;

    padding: 16px;

    border: 1px solid rgba(245, 197, 24, .11);
    border-radius: 13px;

    background: rgba(245, 197, 24, .025);
}

.admin-affiliate-batch-form label {
    color: #d8dde4;

    font-size: .7rem;
    font-weight: 850;
}

.admin-affiliate-help {
    margin: 0;

    color: #697587;

    font-size: .66rem;
}

.admin-affiliate-batch-form textarea {
    width: 100%;

    resize: vertical;

    padding: 11px 12px;

    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 10px;

    background: #0e1621;
    color: #eef1f4;

    font: inherit;
    font-size: .7rem;
    line-height: 1.5;
}

.admin-affiliate-batch-form textarea:focus {
    outline: none;

    border-color: rgba(245, 197, 24, .38);
}

.admin-affiliate-batch-form button {
    justify-self: start;

    min-height: 38px;

    padding: 8px 12px;

    font-size: .66rem;
}

.admin-link-summary-card {
    padding: 15px !important;
}

.admin-link-summary-card .eyebrow {
    font-size: .56rem;
}

.admin-filter-panel {
    padding: 14px;
}

.admin-link-filters {
    grid-template-columns:
        minmax(220px, 1fr)
        minmax(170px, 220px)
        minmax(150px, 180px)
        auto;
}

.admin-link-filters input,
.admin-link-filters select {
    min-height: 40px;

    border-color: rgba(255, 255, 255, .07);

    background: #101823;

    font-size: .68rem;
}

.admin-link-filters button {
    min-height: 40px;

    padding: 0 13px;

    font-size: .66rem;
}

.admin-link-history {
    gap: 10px;
}

.admin-link-history-item {
    padding: 16px;

    border-color: rgba(255, 255, 255, .07);

    background:
        linear-gradient(
            155deg,
            #111823,
            #0d141d
        );

    box-shadow:
        0 16px 38px rgba(0, 0, 0, .12);
}

.admin-link-history-main h3 {
    margin: 5px 0 6px;

    font-size: .86rem;
}

.admin-link-history-meta {
    gap: 12px;

    margin-top: 11px;

    color: #667284;

    font-size: .64rem;
}

.admin-link-history-actions {
    gap: 10px;

    margin-top: 12px;
}

.admin-link-delete-button {
    padding: 6px 9px;

    font-size: .62rem;
}

/* ---------- Sobre nós ---------- */

.about-page {
    padding-bottom: 28px;
}

.about-hero {
    align-items: center;
}

.about-hero-mark {
    width: 112px;
    height: 112px;

    flex: 0 0 auto;

    display: grid;
    place-items: center;

    border: 1px solid rgba(245, 197, 24, .25);
    border-radius: 25px;

    background:
        linear-gradient(
            145deg,
            rgba(245, 197, 24, .16),
            rgba(245, 197, 24, .035)
        );

    color: var(--accent);

    font-size: 1.55rem;
    font-weight: 950;

    letter-spacing: .06em;

    box-shadow:
        inset 0 1px rgba(255, 255, 255, .05),
        0 18px 45px rgba(0, 0, 0, .18);
}

.about-layout {
    display: grid;

    grid-template-columns:
        minmax(0, 1.65fr)
        minmax(250px, .7fr);

    gap: 13px;
}

.about-main-card,
.about-side-card {
    padding: clamp(22px, 3vw, 30px);

    border: 1px solid rgba(255, 255, 255, .07);
    border-radius: 19px;

    background:
        linear-gradient(
            155deg,
            #111823,
            #0d141d
        );

    box-shadow:
        0 20px 48px rgba(0, 0, 0, .14);
}

.about-main-card h2,
.about-side-card h2,
.about-section-heading h2 {
    margin: 7px 0 9px;

    letter-spacing: -.03em;
}

.about-main-card > p,
.about-side-card > p,
.about-section-heading p {
    color: #788496;

    font-size: .76rem;
    line-height: 1.7;
}

.about-flow-grid {
    display: grid;

    grid-template-columns:
        repeat(
            3,
            minmax(0, 1fr)
        );

    gap: 9px;

    margin-top: 22px;
}

.about-flow-grid > div {
    padding: 14px;

    border: 1px solid rgba(255, 255, 255, .055);
    border-radius: 12px;

    background: rgba(255, 255, 255, .018);
}

.about-flow-grid span {
    display: block;

    margin-bottom: 17px;

    color: var(--accent);

    font-size: .58rem;
    font-weight: 900;
}

.about-flow-grid strong {
    display: block;

    color: #e7eaee;

    font-size: .75rem;
}

.about-flow-grid p {
    margin: 6px 0 0;

    color: #687486;

    font-size: .65rem;
    line-height: 1.55;
}

.about-side-card {
    align-self: stretch;

    background:
        radial-gradient(
            circle at 90% 0%,
            rgba(245, 197, 24, .08),
            transparent 15rem
        ),
        linear-gradient(
            155deg,
            #111823,
            #0d141d
        );
}

.about-side-card h2 {
    margin-top: 9px;

    font-size: 1.1rem;
}

.about-contact {
    display: grid;

    gap: 5px;

    margin-top: 24px;
    padding-top: 17px;

    border-top: 1px solid rgba(255, 255, 255, .055);
}

.about-contact strong {
    color: #dce1e7;

    font-size: .68rem;
}

.about-contact a {
    width: fit-content;

    color: var(--accent-soft);

    font-size: .7rem;
    text-decoration: none;
}

.about-sources {
    margin-top: 40px;
}

.about-section-heading {
    margin-bottom: 14px;
}

.about-source-grid {
    display: grid;

    grid-template-columns:
        repeat(
            3,
            minmax(0, 1fr)
        );

    gap: 10px;
}

.about-source-card {
    min-height: 160px;

    padding: 17px;

    border: 1px solid rgba(255, 255, 255, .065);
    border-radius: 15px;

    background:
        linear-gradient(
            155deg,
            #111823,
            #0d141d
        );

    transition:
        transform .2s ease,
        border-color .2s ease;
}

.about-source-card:hover {
    transform: translateY(-3px);

    border-color: rgba(245, 197, 24, .18);
}

.about-source-card > span {
    color: #6a7586;

    font-size: .54rem;
    font-weight: 900;

    letter-spacing: .09em;
}

.about-source-card h3 {
    margin: 8px 0 8px;

    color: #eff2f5;

    font-size: .9rem;
}

.about-source-card p {
    margin: 0;

    color: #707c8d;

    font-size: .66rem;
    line-height: 1.6;
}

/* ---------- Footer atualizado ---------- */

.site-footer-grid {
    grid-template-columns:
        minmax(0, 1.65fr)
        minmax(115px, .62fr)
        minmax(115px, .68fr)
        minmax(190px, .9fr)
        minmax(220px, 1.1fr);

    gap: clamp(20px, 3vw, 38px);
}

.footer-contact-column {
    align-content: start;
}

.footer-contact-email {
    max-width: 100%;

    overflow-wrap: anywhere;

    color: #9aa4b2 !important;

    font-size: .71rem !important;
    font-weight: 700 !important;

    text-decoration: none !important;
}

.footer-contact-email:hover {
    color: var(--accent-soft) !important;
}

.landing-footer-contact {
    display: grid;

    gap: 3px;

    color: #555c66;

    font-size: .68rem;
}

.landing-footer-contact strong {
    color: #7e858f;

    font-size: .63rem;
}

.landing-footer-contact a {
    color: #7e858f;

    text-decoration: none;
}

.landing-footer-contact a:hover {
    color: #ffd500;
}

/* ---------- Responsivo ---------- */

@media (max-width: 1100px) {

    .site-footer-grid {
        grid-template-columns:
            1.5fr
            repeat(3, 1fr);
    }

    .footer-note-card {
        grid-column: 1 / -1;
    }

}

@media (max-width: 980px) {

    .page-monitoring .card-grid {
        grid-template-columns:
            repeat(
                2,
                minmax(0, 1fr)
            );
    }

    .collection-summary,
    .stats-summary,
    .admin-kpi-grid,
    .admin-link-summary {
        grid-template-columns:
            repeat(
                2,
                minmax(0, 1fr)
            );
    }

    .about-layout {
        grid-template-columns: 1fr;
    }

}

@media (max-width: 760px) {

    .internal-page-hero {
        align-items: flex-start;
        flex-direction: column;

        padding: 24px 19px;
        border-radius: 20px;
    }

    .internal-hero-metrics {
        width: 100%;
        min-width: 0;
    }

    .internal-hero-action {
        width: 100%;

        justify-content: space-between;
    }

    .monitoring-setup-grid {
        grid-template-columns: 1fr;
    }

    .monitoring-list-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .monitoring-list-header .section-actions {
        width: 100%;

        align-items: stretch;
        flex-direction: column;
    }

    .monitoring-list-header .section-actions form,
    #update-ml-button {
        width: 100%;
    }

    .collection-table-wrapper {
        overflow-x: auto;
    }

    .collection-table {
        min-width: 940px;
    }

    .stats-extremes {
        grid-template-columns: 1fr;
    }

    .admin-link-filters {
        grid-template-columns: 1fr;
    }

    .about-flow-grid,
    .about-source-grid {
        grid-template-columns: 1fr 1fr;
    }

    .site-footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .footer-brand-card,
    .footer-note-card {
        grid-column: 1 / -1;
    }

}

@media (max-width: 560px) {

    .internal-hero-metrics {
        grid-template-columns: 1fr;
    }

    .page-monitoring .card-grid,
    .collection-summary,
    .stats-summary,
    .admin-kpi-grid,
    .admin-link-summary {
        grid-template-columns: 1fr;
    }

    .page-monitoring .set-card form:last-child {
        grid-template-columns: 1fr;
    }

    .page-monitoring .set-card form:last-child
    .card-action-danger {
        grid-column: auto;
    }

    .collection-content-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .stats-extreme-content {
        align-items: flex-start;
    }

    .stats-extreme-image {
        width: 90px;
        height: 90px;
    }

    .admin-affiliate-item {
        align-items: flex-start;
        flex-direction: column;
    }

    .about-hero-mark {
        width: 86px;
        height: 86px;

        border-radius: 20px;
    }

    .about-flow-grid,
    .about-source-grid {
        grid-template-columns: 1fr;
    }

    .site-footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-brand-card,
    .footer-note-card {
        grid-column: auto;
    }

}

/* =====================================================================
   INTERNAL EXPERIENCE V4
   Ajustes de usabilidade: topo limpo, busca na coleção e paginação.
   ===================================================================== */

/* Topos de Monitoramento e Estatísticas ficam apenas com texto. */

.monitoring-page-hero,
.stats-page-hero {
    display: block;
}

.monitoring-page-hero
.internal-page-hero-copy,
.stats-page-hero
.internal-page-hero-copy {
    max-width: 780px;
}

/* Grade/lista agora são links porque cada modo tem uma paginação própria. */

.view-switch-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    text-decoration: none;
}

.monitoring-pagination {
    margin-bottom: 34px;
}

/* Busca rápida da coleção. */

.collection-page-hero {
    overflow: visible;

    align-items: center;

    z-index: 40;
}

.collection-page-hero::before {
    border-radius: inherit;
}

.collection-quick-search {
    position: relative;
    z-index: 80;

    width: min(
        430px,
        42vw
    );

    flex: 0 0 auto;
}

.collection-global-search {
    width: 100%;
}

.collection-global-search
.global-search-shell {
    min-height: 48px;

    border-radius: 13px;

    background: rgba(
        12,
        18,
        27,
        .94
    );
}

.collection-global-search
.global-search-shell input {
    min-width: 0;

    font-size: .75rem;
}

.collection-global-search
.global-search-provider {
    flex: 0 0 auto;
}

.collection-search-results {
    max-height: min(
        430px,
        calc(100vh - 170px)
    ) !important;

    overflow-y: auto !important;
    overscroll-behavior: contain;

    scrollbar-gutter: stable;
}

.collection-quick-search > small {
    display: block;

    margin-top: 7px;
    padding-left: 4px;

    color: #687486;

    font-size: .58rem;
    font-weight: 700;
}

.collection-search-result {
    width: 100%;

    border: 0;

    font: inherit;
    text-align: left;

    cursor: pointer;
}

.collection-search-add {
    flex: 0 0 auto;

    padding: 6px 8px;

    border: 1px solid
        rgba(245, 197, 24, .18);

    border-radius: 8px;

    background:
        rgba(245, 197, 24, .055);

    color: var(--accent-soft);

    font-size: .58rem;
    font-weight: 900;

    white-space: nowrap;
}

.collection-search-result:hover
.collection-search-add,
.collection-search-result.active
.collection-search-add {
    border-color:
        rgba(245, 197, 24, .35);

    background:
        rgba(245, 197, 24, .09);
}

/* Status antigo de atualização não cria espaço quando está oculto. */

.ml-update-status[hidden] {
    display: none !important;
}

@media (max-width: 900px) {

    .collection-page-hero {
        align-items: flex-start;
        flex-direction: column;
    }

    .collection-quick-search {
        width: 100%;
    }

}

@media (max-width: 560px) {

    .collection-global-search
    .global-search-provider {
        display: none;
    }

    .collection-search-add {
        padding: 5px 7px;

        font-size: .54rem;
    }

    .monitoring-pagination {
        grid-template-columns:
            1fr
            auto
            1fr;

        gap: 8px;
    }

    .monitoring-pagination > span:nth-child(2) {
        font-size: .64rem;
        text-align: center;
    }

}

/* =====================================================================
   COLLECTION SEARCH RESULT FIX
   Evita que os resultados herdem o amarelo do button global.
   ===================================================================== */

.collection-search-result {
    background: transparent !important;
    color: var(--text) !important;
}

.collection-search-result:hover,
.collection-search-result.active {
    background: rgba(245, 197, 24, .055) !important;
    color: var(--text) !important;
}

/* =====================================================================
   PRICE DATABASE V5
   Banco global de histórico de preços + controles administrativos.
   ===================================================================== */

.admin-hero-actions {
    position: relative;
    z-index: 1;

    display: flex;
    align-items: center;
    flex-wrap: wrap;

    gap: 9px;
}

.admin-price-bank-preview {
    display: grid;
    grid-template-columns:
        minmax(0, 1fr)
        minmax(120px, 160px)
        auto;

    align-items: center;
    gap: 22px;

    margin-bottom: 16px;
    padding: 20px 22px;

    border: 1px solid rgba(245, 197, 24, .12);
    border-radius: 17px;

    background:
        radial-gradient(circle at 80% 0%, rgba(245, 197, 24, .07), transparent 17rem),
        linear-gradient(155deg, #111923, #0d141d);

    box-shadow: 0 18px 42px rgba(0, 0, 0, .13);
}

.admin-price-bank-preview h2 {
    margin: 5px 0 5px;
    font-size: 1.15rem;
}

.admin-price-bank-preview p {
    max-width: 620px;
    margin: 0;

    color: #758193;
    font-size: .72rem;
    line-height: 1.55;
}

.admin-price-bank-preview-metric {
    padding: 13px;

    border: 1px solid rgba(255, 255, 255, .06);
    border-radius: 12px;

    background: rgba(255, 255, 255, .02);
}

.admin-price-bank-preview-metric span,
.price-bank-target-price span {
    display: block;

    color: #697587;
    font-size: .55rem;
    font-weight: 900;
    letter-spacing: .07em;
}

.admin-price-bank-preview-metric strong {
    display: block;
    margin-top: 5px;

    color: var(--accent-soft);
    font-size: 1.35rem;
}

.admin-price-bank-preview-metric small {
    display: block;
    margin-top: 2px;

    color: #606c7d;
    font-size: .58rem;
}

/* Página do banco de preços */

.price-database-hero {
    overflow: visible;
}

.price-database-update-button {
    border: 0;
    cursor: pointer;
}

.price-bank-summary {
    margin-bottom: 13px;
}

.price-bank-rules {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 9px;

    margin-bottom: 17px;
}

.price-bank-rules > div {
    display: grid;
    gap: 4px;

    padding: 12px 14px;

    border: 1px solid rgba(255, 255, 255, .055);
    border-radius: 12px;

    background: rgba(255, 255, 255, .018);
}

.price-bank-rules strong {
    color: #dce1e7;
    font-size: .68rem;
}

.price-bank-rules span {
    color: #687486;
    font-size: .61rem;
    line-height: 1.45;
}

.price-bank-add-grid {
    display: grid;
    grid-template-columns:
        minmax(0, 1fr)
        minmax(0, 1fr)
        minmax(0, 1.15fr);

    gap: 11px;
    margin-bottom: 34px;
}

.price-bank-add-card {
    margin: 0;
    padding: 17px;

    border-color: rgba(255, 255, 255, .07);
    border-radius: 15px;

    background: linear-gradient(155deg, #111923, #0d141d);
}

.price-bank-add-card h2 {
    margin: 5px 0 5px;
    font-size: .94rem;
}

.price-bank-add-card > p {
    min-height: 34px;
    margin: 0 0 13px;

    color: #707c8d;
    font-size: .64rem;
    line-height: 1.5;
}

.price-bank-add-form {
    display: grid;
    grid-template-columns: 1fr;
    gap: 7px;
}

.price-bank-add-form input,
.price-bank-add-form select,
.price-bank-filters input,
.price-bank-filters select {
    width: 100%;
    min-width: 0;
    min-height: 40px;

    padding: 0 10px;

    border: 1px solid rgba(255, 255, 255, .075);
    border-radius: 9px;

    background: #101823;
    color: #e9edf2;

    font: inherit;
    font-size: .67rem;
}

.price-bank-add-form button,
.price-bank-auto-actions button,
.price-bank-filters button {
    min-height: 39px;
    padding: 0 11px;

    border-radius: 9px;

    font-size: .65rem;
    font-weight: 900;
}

.price-bank-auto-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 7px;
}

.price-bank-auto-actions form,
.price-bank-auto-actions button {
    width: 100%;
}

.price-bank-list-heading {
    align-items: flex-end;
}

.price-bank-list-heading > span {
    color: #697587;
    font-size: .65rem;
    font-weight: 800;
}

.price-bank-filters {
    display: grid;
    grid-template-columns:
        minmax(240px, 1fr)
        180px
        auto
        auto;

    align-items: center;
    gap: 8px;

    margin-bottom: 11px;
    padding: 11px;

    border-color: rgba(255, 255, 255, .07);
    background: linear-gradient(155deg, #111823, #0d141d);
}

.price-bank-filters a {
    color: #8792a3;
    font-size: .63rem;
    font-weight: 800;
    text-decoration: none;
}

.price-bank-target-list {
    display: grid;
    gap: 8px;
}

.price-bank-target-row {
    display: grid;
    grid-template-columns:
        72px
        minmax(0, 1fr)
        135px
        auto;

    align-items: center;
    gap: 13px;

    padding: 11px;

    border: 1px solid rgba(255, 255, 255, .065);
    border-radius: 13px;

    background: linear-gradient(155deg, #111923, #0d141d);

    transition:
        border-color .18s ease,
        transform .18s ease;
}

.price-bank-target-row:hover {
    transform: translateY(-2px);
    border-color: rgba(245, 197, 24, .16);
}

.price-bank-target-row.is-paused {
    opacity: .62;
}

.price-bank-target-image {
    width: 72px;
    height: 72px;

    display: grid;
    place-items: center;

    overflow: hidden;

    border-radius: 10px;
    background: #eef0eb;

    text-decoration: none;
}

.price-bank-target-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.price-bank-target-image span {
    color: #111722;
    font-size: .65rem;
    font-weight: 950;
}

.price-bank-target-copy {
    min-width: 0;
}

.price-bank-target-kicker {
    margin-bottom: 3px;

    color: var(--accent);
    font-size: .58rem;
    font-weight: 900;
}

.price-bank-target-copy > a {
    display: block;

    overflow: hidden;

    color: #ecf0f4;
    font-size: .76rem;
    font-weight: 850;

    text-decoration: none;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.price-bank-target-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 12px;

    margin-top: 6px;

    color: #667284;
    font-size: .58rem;
}

.price-bank-target-price strong {
    display: block;
    margin-top: 5px;

    color: #eff2f5;
    font-size: .79rem;
}

.price-bank-target-actions {
    display: flex;
    gap: 6px;
}

.price-bank-target-actions button {
    min-height: 34px;
    padding: 6px 9px;

    border-radius: 8px;

    font-size: .6rem;
    font-weight: 850;
}

.price-bank-target-actions .secondary {
    border: 1px solid rgba(255, 255, 255, .08);
    background: #151e2a;
    color: #aeb6c1;
}

.price-bank-target-actions .danger {
    border: 1px solid rgba(255, 97, 97, .15);
    background: rgba(255, 97, 97, .045);
    color: #d78b8b;
}

.price-bank-pagination {
    margin-top: 15px;
}

.price-bank-empty {
    margin-top: 10px;
}

/* Botão secreto do ADM na página individual do set. */

.detail-action-button.price-bank,
.detail-action-button.price-bank-active {
    border-color: rgba(245, 197, 24, .22);
    background: rgba(245, 197, 24, .055);
    color: var(--accent-soft);
}

.detail-action-button.price-bank:hover,
.detail-action-button.price-bank-active:hover {
    border-color: rgba(245, 197, 24, .4);
    background: rgba(245, 197, 24, .09);
}

@media (max-width: 980px) {

    .admin-price-bank-preview {
        grid-template-columns: 1fr 160px;
    }

    .admin-price-bank-preview > .internal-hero-action {
        grid-column: 1 / -1;
        justify-self: start;
    }

    .price-bank-add-grid {
        grid-template-columns: 1fr 1fr;
    }

    .price-bank-auto-card {
        grid-column: 1 / -1;
    }

    .price-bank-target-row {
        grid-template-columns:
            66px
            minmax(0, 1fr)
            auto;
    }

    .price-bank-target-image {
        width: 66px;
        height: 66px;
    }

    .price-bank-target-price {
        text-align: right;
    }

    .price-bank-target-actions {
        grid-column: 2 / -1;
    }

}

@media (max-width: 760px) {

    .admin-hero-actions {
        width: 100%;
        align-items: stretch;
        flex-direction: column;
    }

    .admin-hero-actions .internal-hero-action {
        width: 100%;
        justify-content: space-between;
    }

    .price-bank-rules,
    .price-bank-add-grid {
        grid-template-columns: 1fr;
    }

    .price-bank-auto-card {
        grid-column: auto;
    }

    .price-bank-filters {
        grid-template-columns: 1fr;
    }

    .price-bank-target-row {
        grid-template-columns: 58px minmax(0, 1fr);
    }

    .price-bank-target-image {
        width: 58px;
        height: 58px;
    }

    .price-bank-target-price,
    .price-bank-target-actions {
        grid-column: 2;
        text-align: left;
    }

}

@media (max-width: 560px) {

    .admin-price-bank-preview {
        grid-template-columns: 1fr;
    }

    .admin-price-bank-preview > .internal-hero-action {
        grid-column: auto;
        width: 100%;
    }

    .price-bank-auto-actions {
        grid-template-columns: 1fr;
    }

    .price-bank-target-actions {
        flex-wrap: wrap;
    }

}

/* =====================================================================
   AFFILIATE BATCHES V5.1
   Gerador de links do Mercado Livre em lotes de 10.
   ===================================================================== */

.admin-affiliate-pagination {
    display: grid;
    grid-template-columns:
        minmax(0, 1fr)
        auto
        minmax(0, 1fr);

    align-items: center;
    gap: 10px;

    margin: 12px 0 18px;
    padding: 9px 11px;

    border: 1px solid rgba(255, 255, 255, .06);
    border-radius: 10px;

    background: rgba(255, 255, 255, .018);
}

.admin-affiliate-pagination > span {
    color: #6f7b8d;

    font-size: .62rem;
    font-weight: 800;

    text-align: center;
}

.admin-affiliate-pagination a {
    width: fit-content;

    color: #9ba5b2;

    font-size: .63rem;
    font-weight: 850;

    text-decoration: none;
}

.admin-affiliate-pagination a:last-child {
    justify-self: end;
}

.admin-affiliate-pagination a:hover {
    color: var(--accent-soft);
}

@media (max-width: 560px) {

    .admin-affiliate-pagination {
        grid-template-columns:
            1fr
            auto
            1fr;

        gap: 6px;
    }

    .admin-affiliate-pagination a,
    .admin-affiliate-pagination > span {
        font-size: .56rem;
    }

}

/* =====================================================================
   AFFILIATE EXCLUDE V5.2
   Exclusão persistente de anúncios que não podem ser recomendados.
   ===================================================================== */

.admin-affiliate-item-actions {
    display: flex;
    align-items: center;
    gap: 10px;

    flex: 0 0 auto;
}

.admin-affiliate-item-actions form {
    margin: 0;
}

.admin-affiliate-exclude-button {
    min-height: 31px;

    padding: 6px 9px;

    border: 1px solid rgba(255, 95, 95, .18);
    border-radius: 8px;

    background: rgba(255, 95, 95, .045) !important;
    color: #d99393 !important;

    font-size: .6rem;
    font-weight: 850;

    box-shadow: none !important;
}

.admin-affiliate-exclude-button:hover {
    border-color: rgba(255, 95, 95, .36);

    background: rgba(255, 95, 95, .08) !important;
    color: #f1b0b0 !important;
}

@media (max-width: 560px) {

    .admin-affiliate-item-actions {
        width: 100%;

        justify-content: space-between;
    }

}

/* =====================================================================
   V5.3 · fontes BR + logo + cards de tema minimalistas
   ===================================================================== */

/* ---------- Marca ---------- */

.brand-logo-frame {
    width: 40px;
    height: 40px;

    flex: 0 0 40px;

    display: grid;
    place-items: center;

    overflow: hidden;

    border: 1px solid rgba(245, 197, 24, .22);
    border-radius: 11px;

    background:
        linear-gradient(
            145deg,
            rgba(245, 197, 24, .08),
            rgba(255, 255, 255, .015)
        ),
        #0f151e;

    box-shadow:
        inset 0 1px rgba(255, 255, 255, .055),
        0 8px 22px rgba(0, 0, 0, .16);

    transition:
        transform .2s ease,
        border-color .2s ease,
        background .2s ease;
}

.brand-logo-image {
    width: 36px;
    height: 36px;

    object-fit: contain;

    filter:
        drop-shadow(
            0 3px 8px
            rgba(0, 0, 0, .28)
        );
}

.app-brand:hover
.brand-logo-frame {
    transform: translateY(-2px);

    border-color:
        rgba(245, 197, 24, .48);

    background:
        linear-gradient(
            145deg,
            rgba(245, 197, 24, .11),
            rgba(255, 255, 255, .02)
        ),
        #101720;
}

.about-hero-mark {
    width: 132px;
    height: 132px;

    padding: 8px;

    overflow: hidden;

    background:
        linear-gradient(
            145deg,
            rgba(245, 197, 24, .075),
            rgba(255, 255, 255, .015)
        ),
        #0e151f;
}

.about-hero-logo {
    width: 100%;
    height: 100%;

    object-fit: contain;

    filter:
        drop-shadow(
            0 12px 24px
            rgba(0, 0, 0, .26)
        );
}


/* ---------- Cards de tema ---------- */

/*
   Mantém a composição minimalista e troca a bolona amarela
   por uma assinatura dourada fina e discreta.
*/

.theme-showcase-card {
    border-color:
        rgba(255, 255, 255, .075);

    background:
        linear-gradient(
            160deg,
            #131a24 0%,
            #0d131c 100%
        );

    box-shadow:
        0 16px 38px
        rgba(0, 0, 0, .17);
}

.theme-showcase-card:hover {
    border-color:
        rgba(245, 197, 24, .22);

    box-shadow:
        0 24px 48px
        rgba(0, 0, 0, .24);
}

.theme-card-glow {
    z-index: 4;

    top: 0;
    right: 20px;
    bottom: auto;
    left: 20px;

    width: auto;
    height: 1px;

    border-radius: 0;

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(245, 197, 24, .34),
            transparent
        );

    filter: none;

    opacity: .48;

    transition:
        opacity .22s ease,
        transform .22s ease;
}

.theme-showcase-card:hover
.theme-card-glow {
    opacity: .95;
    transform: scaleX(1.04);
}

.theme-card-visual {
    border:
        1px solid
        rgba(255, 255, 255, .045);

    background:
        linear-gradient(
            145deg,
            #151e29,
            #0b1119
        );

    box-shadow:
        inset 0 1px
        rgba(255, 255, 255, .025);
}

.theme-card-visual::before {
    opacity: .55;

    background-image:
        linear-gradient(
            rgba(255, 255, 255, .018)
            1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(255, 255, 255, .018)
            1px,
            transparent 1px
        );

    mask-image:
        linear-gradient(
            145deg,
            black,
            rgba(0, 0, 0, .28)
        );
}

.theme-card-index {
    color:
        rgba(255, 255, 255, .15);
}

.theme-card-copy small {
    border-top-color:
        rgba(255, 255, 255, .045);
}


/* ---------- Banco global · 3 referências ---------- */

.price-bank-target-row {
    grid-template-columns:
        72px
        minmax(0, 1fr)
        minmax(300px, 340px)
        auto;
}

.price-bank-target-prices {
    display: grid;

    grid-template-columns:
        repeat(
            3,
            minmax(0, 1fr)
        );

    gap: 6px;
}

.price-bank-target-price {
    min-width: 0;

    padding: 8px 9px;

    border:
        1px solid
        rgba(255, 255, 255, .05);

    border-radius: 9px;

    background:
        rgba(255, 255, 255, .018);
}

.price-bank-target-price strong {
    overflow: hidden;

    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 1120px) {

    .price-bank-target-row {
        grid-template-columns:
            72px
            minmax(0, 1fr)
            auto;
    }

    .price-bank-target-prices {
        grid-column:
            2 / -1;

        width: 100%;
    }

}

@media (max-width: 700px) {

    .about-hero-mark {
        width: 104px;
        height: 104px;
    }

    .price-bank-target-prices {
        grid-column: 1 / -1;

        grid-template-columns: 1fr;
    }

}

@media (max-width: 560px) {

    .brand-logo-frame {
        width: 36px;
        height: 36px;

        flex-basis: 36px;
    }

    .brand-logo-image {
        width: 32px;
        height: 32px;
    }

}

/* =====================================================================
   V5.4 · multitema no banco + excluir todos
   ===================================================================== */

.price-bank-hero-actions {
    position: relative;
    z-index: 2;

    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;

    gap: 8px;
}

.price-bank-hero-actions form {
    margin: 0;
}

.price-bank-remove-all-button {
    min-height: 42px;

    padding: 0 13px;

    border:
        1px solid
        rgba(255, 95, 95, .18);

    border-radius: 11px;

    background:
        rgba(255, 95, 95, .045)
        !important;

    color:
        #d99a9a
        !important;

    font-size: .66rem;
    font-weight: 900;

    box-shadow: none !important;
}

.price-bank-remove-all-button:hover {
    border-color:
        rgba(255, 95, 95, .38);

    background:
        rgba(255, 95, 95, .085)
        !important;

    color:
        #f0b2b2
        !important;
}

.price-bank-theme-card {
    overflow: visible;
    position: relative;
    z-index: 25;
}

.price-bank-theme-form {
    overflow: visible;
}

.price-bank-theme-selector {
    width: 100%;
    z-index: 80;
}

.price-bank-theme-selector
.catalog-filter-button {
    width: 100%;

    display: flex;
    align-items: center;
    justify-content: space-between;

    min-height: 43px;

    border:
        1px solid
        rgba(255, 255, 255, .075);

    background: #101823;

    color: #c3cad3;
}

.price-bank-theme-selector
.catalog-filter-menu {
    top: calc(100% + 7px);
    right: auto;
    left: 0;

    width: 100%;
    min-width: 320px;

    z-index: 2000;
}

.price-bank-theme-tools {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 8px;

    margin: 0 0 7px;
}

.price-bank-theme-tools button {
    min-height: 30px;

    padding: 5px 8px;

    border:
        1px solid
        rgba(255, 255, 255, .065);

    border-radius: 7px;

    background:
        rgba(255, 255, 255, .022)
        !important;

    color:
        #8994a4
        !important;

    font-size: .58rem;
    font-weight: 850;

    box-shadow: none !important;
}

.price-bank-theme-tools button:hover {
    border-color:
        rgba(245, 197, 24, .2);

    color:
        var(--accent-soft)
        !important;
}

.price-bank-all-current-form {
    margin-top: 8px;
}

.price-bank-all-current-form
.secondary {
    width: 100%;

    min-height: 38px;

    border:
        1px solid
        rgba(245, 197, 24, .13);

    border-radius: 9px;

    background:
        rgba(245, 197, 24, .035)
        !important;

    color:
        #b6a66b
        !important;

    font-size: .63rem;
    font-weight: 850;

    box-shadow: none !important;
}

.price-bank-all-current-form
.secondary:hover {
    border-color:
        rgba(245, 197, 24, .28);

    background:
        rgba(245, 197, 24, .065)
        !important;

    color:
        var(--accent-soft)
        !important;
}

@media (max-width: 760px) {

    .price-bank-hero-actions {
        width: 100%;

        justify-content: stretch;
    }

    .price-bank-hero-actions form {
        flex: 1 1 200px;
    }

    .price-bank-hero-actions button {
        width: 100%;
    }

    .price-bank-theme-selector
    .catalog-filter-menu {
        min-width: 0;
    }

}

/* =====================================================================
   V5.4.1 · relevância do banco global
   ===================================================================== */

.price-bank-cleanup-button {
    min-height: 42px;

    padding: 0 13px;

    border:
        1px solid
        rgba(245, 197, 24, .16);

    border-radius: 11px;

    background:
        rgba(245, 197, 24, .04)
        !important;

    color:
        #b9aa70
        !important;

    font-size: .66rem;
    font-weight: 900;

    box-shadow: none !important;
}

.price-bank-cleanup-button:hover {
    border-color:
        rgba(245, 197, 24, .34);

    background:
        rgba(245, 197, 24, .075)
        !important;

    color:
        var(--accent-soft)
        !important;
}

.price-bank-filter-note {
    display: grid;
    gap: 3px;

    margin: -2px 0 2px;
    padding: 9px 10px;

    border:
        1px solid
        rgba(255, 255, 255, .055);

    border-radius: 9px;

    background:
        rgba(255, 255, 255, .018);
}

.price-bank-filter-note strong {
    color: #aeb7c3;

    font-size: .59rem;
    font-weight: 900;

    letter-spacing: .035em;
    text-transform: uppercase;
}

.price-bank-filter-note span {
    color: #657184;

    font-size: .59rem;
    line-height: 1.45;
}

/* =====================================================================
   V5.5 · banco atual LEGO BR + lifecycle + aviso de oferta
   ===================================================================== */

/* ---------- Busca global ---------- */

.global-search-offer-hint {
    display: block;

    margin-top: 4px;

    color: #a89450;

    font-size: .57rem;
    font-weight: 800;

    line-height: 1.3;
}

.global-search-result:hover
.global-search-offer-hint,
.global-search-result.active
.global-search-offer-hint {
    color: var(--accent-soft);
}


/* ---------- Lifecycle do set ---------- */

.set-lifecycle-badge {
    position: relative;

    display: inline-flex;
    align-items: center;

    min-height: 25px;

    padding: 5px 9px;

    border: 1px solid transparent;
    border-radius: 999px;

    font-size: .56rem;
    font-weight: 950;

    letter-spacing: .055em;

    cursor: help;
    outline: none;
}

.set-lifecycle-badge.retired {
    border-color:
        rgba(255, 112, 112, .24);

    background:
        rgba(255, 112, 112, .075);

    color: #efa1a1;
}

.set-lifecycle-badge.retiring-soon {
    border-color:
        rgba(245, 197, 24, .28);

    background:
        rgba(245, 197, 24, .07);

    color: var(--accent-soft);
}

.set-lifecycle-tooltip {
    position: absolute;
    z-index: 90;

    top: calc(100% + 8px);
    left: 0;

    width: min(
        270px,
        72vw
    );

    padding: 9px 10px;

    border:
        1px solid
        rgba(255, 255, 255, .09);

    border-radius: 9px;

    background: #101721;

    color: #a9b2bf;

    font-size: .61rem;
    font-weight: 650;

    line-height: 1.5;
    letter-spacing: 0;

    box-shadow:
        0 14px 34px
        rgba(0, 0, 0, .32);

    opacity: 0;
    visibility: hidden;

    transform: translateY(-4px);

    pointer-events: none;

    transition:
        opacity .15s ease,
        transform .15s ease,
        visibility .15s ease;
}

.set-lifecycle-badge:hover
.set-lifecycle-tooltip,
.set-lifecycle-badge:focus
.set-lifecycle-tooltip,
.set-lifecycle-badge:focus-visible
.set-lifecycle-tooltip {
    opacity: 1;
    visibility: visible;

    transform: translateY(0);
}


/* ---------- Sem oferta atual ---------- */

.market-monitor-hint {
    display: flex;
    align-items: flex-start;

    gap: 10px;

    margin: 13px 0 0;
    padding: 11px 12px;

    border:
        1px solid
        rgba(245, 197, 24, .12);

    border-radius: 11px;

    background:
        rgba(245, 197, 24, .025);
}

.market-monitor-hint-icon {
    width: 24px;
    height: 24px;

    flex: 0 0 24px;

    display: grid;
    place-items: center;

    border-radius: 7px;

    background:
        rgba(245, 197, 24, .075);

    color: var(--accent);

    font-size: .75rem;
    font-weight: 900;
}

.market-monitor-hint strong {
    display: block;

    color: #dce1e7;

    font-size: .68rem;
}

.market-monitor-hint p {
    margin: 3px 0 0;

    color: #778395;

    font-size: .63rem;
    line-height: 1.5;
}


/* ---------- Banco de preços ---------- */

.price-bank-filter-note span {
    max-width: 650px;
}

/* =====================================================================
   V5.5.1 · retired monitorável + tooltip corrigido
   ===================================================================== */

/*
   Os badges ficam alinhados no canto direito da imagem.
   Abrir o tooltip com right:0 mantém o conteúdo dentro do card e evita
   que o overflow:hidden corte metade da explicação.
*/
.set-product-badges
.set-lifecycle-tooltip {
    right: 0;
    left: auto;

    width: min(
        290px,
        calc(100vw - 54px)
    );

    text-align: left;
}

@media (max-width: 560px) {

    .set-product-badges
    .set-lifecycle-tooltip {
        width: min(
            245px,
            calc(100vw - 48px)
        );
    }

}

/* =====================================================================
   V5.5.2 · ações em massa de afiliado
   ===================================================================== */

.admin-affiliate-toolbar-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;

    gap: 7px;
}

.admin-affiliate-toolbar-actions form {
    margin: 0;
}

.admin-affiliate-exclude-all-button {
    min-height: 34px;

    padding: 6px 10px;

    border:
        1px solid
        rgba(255, 95, 95, .2);

    border-radius: 8px;

    background:
        rgba(255, 95, 95, .05)
        !important;

    color:
        #da9999
        !important;

    font-size: .62rem;
    font-weight: 850;

    box-shadow: none !important;
}

.admin-affiliate-exclude-all-button:hover {
    border-color:
        rgba(255, 95, 95, .4);

    background:
        rgba(255, 95, 95, .09)
        !important;

    color:
        #f0b0b0
        !important;
}

@media (max-width: 650px) {

    .admin-affiliate-toolbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .admin-affiliate-toolbar-actions {
        width: 100%;
    }

    .admin-affiliate-toolbar-actions > button,
    .admin-affiliate-toolbar-actions form {
        flex: 1 1 180px;
    }

    .admin-affiliate-toolbar-actions form button {
        width: 100%;
    }

}

/* =====================================================================
   Monitor automático · saúde do GitHub Actions
   ===================================================================== */

.admin-monitor-health {
    margin-bottom: 16px;
    padding: 20px 22px;

    border: 1px solid rgba(255, 255, 255, .065);
    border-radius: 17px;

    background:
        linear-gradient(
            155deg,
            rgba(17, 25, 35, .98),
            rgba(13, 20, 29, .98)
        );

    box-shadow:
        0 18px 42px
        rgba(0, 0, 0, .13);
}

.admin-monitor-health-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}

.admin-monitor-health-heading h2 {
    margin: 5px 0;
    font-size: 1.15rem;
}

.admin-monitor-health-heading p {
    max-width: 620px;
    margin: 0;

    color: #758193;
    font-size: .72rem;
    line-height: 1.55;
}

.admin-monitor-health-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;

    flex: 0 0 auto;

    padding: 7px 10px;

    border: 1px solid rgba(255, 255, 255, .075);
    border-radius: 999px;

    background: rgba(255, 255, 255, .025);

    color: #9aa5b5;
    font-size: .62rem;
    font-weight: 900;
    letter-spacing: .035em;
}

.admin-monitor-health-dot {
    width: 7px;
    height: 7px;

    border-radius: 999px;

    background: #8a94a4;

    box-shadow:
        0 0 0 4px
        rgba(138, 148, 164, .08);
}

.admin-monitor-health--ok {
    border-color: rgba(77, 203, 134, .13);
}

.admin-monitor-health--ok
.admin-monitor-health-dot {
    background: #4dcb86;

    box-shadow:
        0 0 0 4px
        rgba(77, 203, 134, .09);
}

.admin-monitor-health--running {
    border-color: rgba(245, 197, 24, .15);
}

.admin-monitor-health--running
.admin-monitor-health-dot {
    background: var(--accent-soft);

    box-shadow:
        0 0 0 4px
        rgba(245, 197, 24, .09);
}

.admin-monitor-health--warning,
.admin-monitor-health--delayed {
    border-color: rgba(242, 169, 59, .16);
}

.admin-monitor-health--warning
.admin-monitor-health-dot,
.admin-monitor-health--delayed
.admin-monitor-health-dot {
    background: #f2a93b;

    box-shadow:
        0 0 0 4px
        rgba(242, 169, 59, .09);
}

.admin-monitor-health--failed {
    border-color: rgba(233, 94, 94, .17);
}

.admin-monitor-health--failed
.admin-monitor-health-dot {
    background: #e95e5e;

    box-shadow:
        0 0 0 4px
        rgba(233, 94, 94, .09);
}

.admin-monitor-health-grid {
    display: grid;
    grid-template-columns:
        repeat(6, minmax(0, 1fr));

    gap: 8px;

    margin-top: 17px;
}

.admin-monitor-health-grid > div {
    min-width: 0;
    padding: 11px 12px;

    border: 1px solid rgba(255, 255, 255, .055);
    border-radius: 11px;

    background: rgba(255, 255, 255, .018);
}

.admin-monitor-health-grid span {
    display: block;

    color: #667284;
    font-size: .51rem;
    font-weight: 900;
    letter-spacing: .065em;
}

.admin-monitor-health-grid strong {
    display: block;

    overflow: hidden;

    margin-top: 5px;

    color: #d7deea;
    font-size: .78rem;
    font-weight: 850;

    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-monitor-health-note {
    display: block;

    margin-top: 11px;

    color: #566273;
    font-size: .58rem;
    line-height: 1.5;
}

@media (max-width: 900px) {

    .admin-monitor-health-grid {
        grid-template-columns:
            repeat(3, minmax(0, 1fr));
    }

}

@media (max-width: 560px) {

    .admin-monitor-health-heading {
        flex-direction: column;
    }

    .admin-monitor-health-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

}



/* =====================================================================
   Ajuda contextual · PPP + status de oferta no Mercado Livre
   ===================================================================== */

.section-title-with-help,
.price-status-help-row {
    display: flex;
    align-items: center;
    gap: 6px;
}

.price-status-help-row {
    min-width: 0;
}

.price-status-help-row > strong {
    color: #f0f2f5;
    font-size: .78rem;
    line-height: 1.25;
}

.info-help {
    position: relative;
    z-index: 20;

    display: inline-grid;
    place-items: center;

    width: 16px;
    height: 16px;
    flex: 0 0 16px;

    border: 1px solid rgba(245, 197, 24, .28);
    border-radius: 999px;

    background: rgba(245, 197, 24, .055);
    color: var(--accent-soft);

    font-size: .57rem;
    font-weight: 950;
    line-height: 1;

    cursor: help;
    outline: none;
}

.info-help-title {
    transform: translateY(1px);
}

.info-help-tooltip {
    position: absolute;
    z-index: 120;

    top: calc(100% + 8px);
    left: 50%;

    width: min(280px, 72vw);
    padding: 9px 10px;

    border: 1px solid rgba(255, 255, 255, .09);
    border-radius: 9px;

    background: #101721;
    color: #a9b2bf;

    font-size: .61rem;
    font-weight: 650;
    line-height: 1.5;
    letter-spacing: 0;
    text-align: left;

    box-shadow: 0 14px 34px rgba(0, 0, 0, .32);

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transform: translate(-50%, -4px);

    transition:
        opacity .15s ease,
        transform .15s ease,
        visibility .15s ease;
}

.info-help:hover .info-help-tooltip,
.info-help:focus .info-help-tooltip,
.info-help:focus-visible .info-help-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
}

/* O status do ML fica na coluna esquerda do card; abrir para a esquerda
   evita que o tooltip invada demais o card vizinho. */
.info-help-card .info-help-tooltip {
    left: 0;
    transform: translate(0, -4px);
}

.info-help-card:hover .info-help-tooltip,
.info-help-card:focus .info-help-tooltip,
.info-help-card:focus-visible .info-help-tooltip {
    transform: translate(0, 0);
}

@media (max-width: 560px) {
    .info-help-tooltip {
        width: min(245px, calc(100vw - 48px));
    }
}


/* =====================================================================
   Atualização manual de preço · página individual do set
   ===================================================================== */

.price-reference-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.set-price-refresh-form {
    flex: 0 0 auto;
    margin: 0;
}

.set-price-refresh-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;

    min-height: 31px;
    padding: 7px 10px;

    border: 1px solid rgba(245, 197, 24, .28);
    border-radius: 9px;

    background: rgba(245, 197, 24, .055);
    color: var(--accent-soft);

    font: inherit;
    font-size: .61rem;
    font-weight: 850;
    line-height: 1;

    cursor: pointer;

    transition:
        transform .16s ease,
        background .16s ease,
        border-color .16s ease,
        opacity .16s ease;
}

.set-price-refresh-button:hover:not(:disabled) {
    transform: translateY(-1px);
    border-color: rgba(245, 197, 24, .46);
    background: rgba(245, 197, 24, .1);
}

.set-price-refresh-button:disabled {
    cursor: default;
    opacity: .52;
}

.set-price-refresh-button > span:first-child {
    font-size: .82rem;
    line-height: 1;
}

@media (max-width: 560px) {
    .price-reference-header {
        align-items: flex-start;
    }

    .set-price-refresh-button {
        padding-inline: 9px;
        font-size: .58rem;
    }
}

/* =====================================================================
   Melhor preço BR / fontes futuras / sincronização de catálogo
   ===================================================================== */

.international-price-panel {
    margin-top: 18px;
}

.international-price-panel .section-header p {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: .74rem;
}

.international-price-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.catalog-sync-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin: 18px 0;
    padding: 22px;
}

.catalog-sync-copy {
    min-width: 0;
}

.catalog-sync-title-row {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-top: 4px;
}

.catalog-sync-title-row h2 {
    margin: 0;
}

.catalog-sync-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #8b95a7;
    box-shadow: 0 0 0 4px rgba(139, 149, 167, .08);
}

.catalog-sync-ok .catalog-sync-dot {
    background: #58d68d;
    box-shadow: 0 0 0 4px rgba(88, 214, 141, .08);
}

.catalog-sync-running .catalog-sync-dot {
    background: var(--accent-soft);
    box-shadow: 0 0 0 4px rgba(245, 197, 24, .08);
}

.catalog-sync-warning .catalog-sync-dot,
.catalog-sync-failed .catalog-sync-dot {
    background: #ff6b6b;
    box-shadow: 0 0 0 4px rgba(255, 107, 107, .08);
}

.catalog-sync-card p {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: .72rem;
}

.catalog-sync-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    margin-top: 13px;
    color: #8791a2;
    font-size: .64rem;
}

.catalog-sync-card form {
    flex: 0 0 auto;
    margin: 0;
}

.catalog-sync-card button:disabled {
    cursor: default;
    opacity: .55;
}

.price-bank-target-price small {
    display: block;
    margin-top: 3px;
    color: var(--muted);
    font-size: .58rem;
}

@media (max-width: 820px) {
    .international-price-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .catalog-sync-card {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 560px) {
    .international-price-grid {
        grid-template-columns: 1fr;
    }
}


/* =====================================================================
   Banco de preços · sets novos
   ===================================================================== */

.catalog-sync-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 9px;
    flex: 0 0 auto;
}

.catalog-sync-actions form {
    margin: 0;
}

.catalog-sync-new-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 34px;
    padding: 8px 11px;

    border: 1px solid rgba(245, 197, 24, .26);
    border-radius: 9px;

    background: rgba(245, 197, 24, .055);
    color: var(--accent-soft);

    font-size: .62rem;
    font-weight: 850;
    text-decoration: none;

    transition:
        transform .16s ease,
        border-color .16s ease,
        background .16s ease;
}

.catalog-sync-new-link:hover {
    transform: translateY(-1px);
    border-color: rgba(245, 197, 24, .46);
    background: rgba(245, 197, 24, .1);
}

.price-bank-new-badge {
    display: inline-flex;
    align-items: center;

    margin-left: 6px;
    padding: 2px 5px;

    border: 1px solid rgba(245, 197, 24, .25);
    border-radius: 999px;

    background: rgba(245, 197, 24, .07);
    color: var(--accent-soft);

    font-size: .48rem;
    font-weight: 950;
    letter-spacing: .06em;
    vertical-align: 1px;
}

@media (max-width: 720px) {
    .catalog-sync-actions {
        width: 100%;
        justify-content: flex-start;
    }
}


/* ---------- Afiliados: histórico organizado por set ---------- */

.admin-link-summary-five {
    grid-template-columns:
        repeat(
            5,
            minmax(0, 1fr)
        );
}

.admin-link-summary-card-link {
    color: inherit;
    text-decoration: none;

    transition:
        transform .16s ease,
        border-color .16s ease,
        background .16s ease;
}

.admin-link-summary-card-link:hover {
    transform: translateY(-1px);
    border-color: rgba(245, 197, 24, .22);

    background:
        linear-gradient(
            155deg,
            #141e2a,
            #0e1620
        );
}

.admin-link-filters-expanded {
    grid-template-columns:
        minmax(220px, 1.35fr)
        minmax(145px, .8fr)
        minmax(145px, .75fr)
        minmax(160px, .82fr)
        minmax(170px, .88fr)
        auto;
}

.admin-link-result-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;

    margin: 13px 2px 10px;

    color: #6f7b8d;
    font-size: .66rem;
    font-weight: 760;
}

.admin-link-result-bar a {
    color: var(--accent-soft);
    font-weight: 850;
    text-decoration: none;
}

.admin-link-set-list {
    display: grid;
    gap: 11px;
}

.admin-link-set-card {
    padding: 16px;

    border-color: rgba(255, 255, 255, .07);

    background:
        linear-gradient(
            155deg,
            #111823,
            #0d141d
        );

    box-shadow:
        0 16px 38px rgba(0, 0, 0, .12);
}

.admin-link-set-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}

.admin-link-set-title {
    min-width: 0;
}

.admin-link-set-title h3 {
    margin: 5px 0 0;
    font-size: .9rem;
    line-height: 1.35;
}

.admin-link-set-title h3 a {
    color: #edf0f3;
    text-decoration: none;
}

.admin-link-set-title h3 a:hover {
    color: var(--accent-soft);
}

.admin-link-set-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 7px 14px;

    margin-top: 8px;

    color: #667284;
    font-size: .62rem;
}

.admin-link-set-badges {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 7px;

    flex: 0 0 auto;
}

.admin-link-count-badge {
    display: inline-flex;
    align-items: center;

    min-height: 27px;
    padding: 5px 8px;

    border: 1px solid rgba(245, 197, 24, .15);
    border-radius: 999px;

    background: rgba(245, 197, 24, .055);

    color: var(--accent-soft);
    font-size: .6rem;
    font-weight: 880;
}

.admin-link-status.mixed {
    border-color: rgba(105, 168, 255, .16);
    background: rgba(105, 168, 255, .065);
    color: #9dc5ff;
}

.admin-link-listings {
    margin-top: 13px;
    border-top: 1px solid rgba(255, 255, 255, .055);
}

.admin-link-listings > summary {
    width: fit-content;
    padding-top: 11px;

    cursor: pointer;

    color: #8c97a6;
    font-size: .63rem;
    font-weight: 820;

    list-style-position: inside;
}

.admin-link-listings[open] > summary {
    color: var(--accent-soft);
}

.admin-link-listings-body {
    display: grid;
    gap: 6px;
    margin-top: 9px;
}

.admin-link-listing-row {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        auto
        auto;

    align-items: center;
    gap: 12px;

    padding: 10px 11px;

    border: 1px solid rgba(255, 255, 255, .045);
    border-radius: 10px;

    background: rgba(255, 255, 255, .016);
}

.admin-link-listing-copy {
    min-width: 0;
}

.admin-link-listing-copy .admin-affiliate-id {
    margin-top: 0;
    overflow-wrap: anywhere;
}

.admin-link-listing-dates {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 12px;

    margin-top: 5px;

    color: #5f6b7c;
    font-size: .58rem;
}

.admin-link-listing-status {
    white-space: nowrap;
}

.admin-link-listing-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 7px;
}

.admin-link-listing-actions a {
    color: var(--accent-soft);
    font-size: .61rem;
    font-weight: 850;
    text-decoration: none;
}

.admin-link-listing-actions form {
    margin: 0;
}

.admin-link-empty {
    padding: 20px;
}

.admin-link-empty p {
    margin: 0;
    color: #758193;
    font-size: .72rem;
}

@media (max-width: 1120px) {

    .admin-link-summary-five {
        grid-template-columns:
            repeat(
                3,
                minmax(0, 1fr)
            );
    }

    .admin-link-filters-expanded {
        grid-template-columns:
            repeat(
                2,
                minmax(0, 1fr)
            );
    }

    .admin-link-filters-expanded input {
        grid-column: 1 / -1;
    }
}

@media (max-width: 760px) {

    .admin-link-summary-five {
        grid-template-columns:
            repeat(
                2,
                minmax(0, 1fr)
            );
    }

    .admin-link-filters-expanded {
        grid-template-columns: 1fr;
    }

    .admin-link-filters-expanded input {
        grid-column: auto;
    }

    .admin-link-set-head {
        flex-direction: column;
    }

    .admin-link-set-badges {
        justify-content: flex-start;
    }

    .admin-link-listing-row {
        grid-template-columns: 1fr;
    }

    .admin-link-listing-actions {
        justify-content: flex-start;
    }

    .admin-link-result-bar {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 460px) {

    .admin-link-summary-five {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   ADMIN ANALYTICS
   ========================================================= */

.page-admin-analytics .app-main {
    padding-bottom: 56px;
}

.analytics-hero {
    margin-bottom: 22px;
}

.analytics-section {
    margin: 28px 0;
}

.analytics-section-heading,
.analytics-card-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 14px;
}

.analytics-section-heading h2,
.analytics-card-heading h3 {
    margin-bottom: 0;
}

.analytics-section-heading small,
.analytics-card-heading small {
    color: var(--muted);
}

.analytics-kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 14px;
}

.analytics-kpi-card {
    min-height: 132px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.analytics-kpi-card > span {
    color: var(--muted);
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.analytics-kpi-card strong {
    display: block;
    margin: 7px 0 2px;
    font-size: 2rem;
    line-height: 1;
}

.analytics-kpi-card small {
    color: #818a9a;
}

.analytics-kpi-card-accent {
    border-color: rgba(242, 201, 76, .45);
    background:
        linear-gradient(135deg, rgba(242, 201, 76, .08), transparent 55%),
        var(--panel);
}

.analytics-kpi-card-online {
    border-color: rgba(109, 214, 160, .4);
}

.analytics-kpi-card-online strong {
    color: var(--success);
}

.analytics-chart-card {
    padding-bottom: 18px;
}

.analytics-chart-card .analytics-card-heading strong {
    color: var(--accent);
    font-size: 1.45rem;
}

.analytics-bar-chart {
    height: 245px;
    display: grid;
    grid-template-columns: repeat(30, minmax(5px, 1fr));
    align-items: end;
    gap: 5px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
}

.analytics-bar-column {
    min-width: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: stretch;
    gap: 7px;
}

.analytics-bar {
    min-height: 3px;
    border-radius: 5px 5px 2px 2px;
    background: linear-gradient(to top, rgba(242, 201, 76, .45), var(--accent));
    box-shadow: 0 0 18px rgba(242, 201, 76, .08);
}

.analytics-bar-column span {
    min-height: 15px;
    color: #6f7888;
    font-size: .56rem;
    text-align: center;
    white-space: nowrap;
}

.analytics-users-card {
    overflow: hidden;
}

.analytics-table-wrap {
    overflow-x: auto;
    margin: 0 -4px;
}

.analytics-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 800px;
}

.analytics-table th,
.analytics-table td {
    padding: 12px 10px;
    border-top: 1px solid var(--line);
    text-align: left;
    vertical-align: middle;
}

.analytics-table th {
    color: #7f8998;
    font-size: .64rem;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.analytics-table td {
    color: #c8ced8;
    font-size: .76rem;
}

.analytics-table td:first-child strong,
.analytics-table td:first-child small {
    display: block;
}

.analytics-table td:first-child small {
    margin-top: 2px;
    color: #7f8998;
}

.analytics-admin-badge {
    display: inline-flex;
    margin-top: 5px;
    padding: 2px 6px;
    border: 1px solid rgba(242, 201, 76, .35);
    border-radius: 999px;
    color: var(--accent);
    font-size: .55rem;
    font-weight: 900;
}

.analytics-status {
    display: inline-flex;
    align-items: center;
    padding: 5px 8px;
    border-radius: 999px;
    border: 1px solid var(--line);
    font-size: .62rem;
    font-weight: 850;
    white-space: nowrap;
}

.analytics-status-online {
    color: var(--success);
    border-color: rgba(109, 214, 160, .35);
    background: rgba(109, 214, 160, .07);
}

.analytics-status-active {
    color: var(--accent);
    border-color: rgba(242, 201, 76, .3);
    background: rgba(242, 201, 76, .06);
}

.analytics-status-inactive {
    color: #7f8998;
}

.analytics-path-cell {
    max-width: 240px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.analytics-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 18px;
}

.analytics-pagination a {
    text-decoration: none;
    font-weight: 800;
    font-size: .75rem;
}

.analytics-pagination span {
    color: var(--muted);
    font-size: .72rem;
}

.analytics-split-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.analytics-list-card {
    min-width: 0;
}

.analytics-ranking {
    display: grid;
    gap: 7px;
}

.analytics-ranking-row {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    padding: 9px 10px;
    border: 1px solid var(--line);
    border-radius: 10px;
    color: var(--text);
    text-decoration: none;
    background: rgba(255, 255, 255, .012);
}

.analytics-ranking-row:hover {
    border-color: rgba(242, 201, 76, .35);
}

.analytics-ranking-row-static:hover {
    border-color: var(--line);
}

.analytics-ranking-index {
    color: #697384;
    font-size: .65rem;
    font-weight: 900;
    text-align: center;
}

.analytics-ranking-row span:nth-child(2) {
    min-width: 0;
}

.analytics-ranking-row strong,
.analytics-ranking-row small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.analytics-ranking-row strong {
    font-size: .74rem;
}

.analytics-ranking-row small {
    margin-top: 2px;
    color: #7f8998;
    font-size: .65rem;
}

.analytics-ranking-row b {
    color: var(--accent);
    font-size: .8rem;
}

.analytics-empty {
    margin: 0;
    padding: 14px 4px;
    color: #7f8998;
    font-size: .74rem;
}

@media (max-width: 920px) {
    .analytics-kpi-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .analytics-split-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 620px) {
    .analytics-section-heading,
    .analytics-card-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 6px;
    }

    .analytics-kpi-grid {
        grid-template-columns: 1fr;
    }

    .analytics-bar-chart {
        gap: 2px;
        height: 210px;
    }

    .analytics-bar-column span {
        font-size: .5rem;
    }
}

/* =========================================
   PROFILE AVATAR + AUTH FEEDBACK (V2)
   ========================================= */

.topbar-account .account-avatar {
    overflow: hidden;
    flex: 0 0 auto;
}

.topbar-account .account-avatar-image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
}

.account-profile-card {
    max-width: 760px;
}

.account-profile-visual {
    display: grid;
    grid-template-columns: 116px minmax(0, 1fr);
    align-items: center;
    gap: 22px;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--line);
}

.account-page-avatar {
    width: 112px;
    height: 112px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border: 2px solid rgba(245, 197, 24, .56);
    border-radius: 50%;
    background:
        radial-gradient(circle at 35% 25%, #ffd950, #e0a800 58%, #6d5210 100%);
    color: #0d1117;
    font-size: 2rem;
    font-weight: 950;
    box-shadow:
        0 14px 34px rgba(0, 0, 0, .28),
        inset 0 1px 3px rgba(255, 255, 255, .28);
}

.account-page-avatar-image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
}

.account-avatar-copy {
    min-width: 0;
}

.account-avatar-copy > strong {
    display: block;
    margin-bottom: 4px;
    color: var(--text);
    font-size: 1rem;
}

.account-avatar-copy > p {
    margin: 0 0 14px;
    color: var(--muted);
    font-size: .78rem;
}

.account-avatar-form {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 9px;
}

.account-avatar-input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    clip-path: inset(50%);
}

.account-avatar-picker,
.account-avatar-save,
.account-avatar-remove {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 13px;
    border-radius: 10px;
    font-size: .76rem;
    font-weight: 850;
    cursor: pointer;
    transition:
        transform .16s ease,
        border-color .16s ease,
        background .16s ease,
        opacity .16s ease;
}

.account-avatar-picker {
    border: 1px solid rgba(245, 197, 24, .42);
    background: rgba(245, 197, 24, .08);
    color: var(--accent-soft, #ffe077);
}

.account-avatar-picker:hover {
    transform: translateY(-1px);
    border-color: var(--accent);
    background: rgba(245, 197, 24, .13);
}

.account-avatar-save {
    border: 1px solid var(--accent);
    background: var(--accent);
    color: #111;
}

.account-avatar-save:disabled {
    opacity: .42;
    cursor: not-allowed;
    transform: none;
}

.account-avatar-remove-form {
    margin-top: 9px;
}

.account-avatar-remove {
    border: 1px solid rgba(255, 92, 92, .38);
    background: transparent;
    color: #ff8a8a;
}

.account-avatar-remove:hover {
    border-color: #ff5c5c;
    background: rgba(255, 92, 92, .07);
}

.auth-inline-flashes {
    display: grid;
    gap: 8px;
    margin: -2px 0 18px;
}

.auth-inline-flash {
    display: grid;
    grid-template-columns: 26px minmax(0, 1fr);
    align-items: center;
    gap: 9px;
    padding: 11px 12px;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 11px;
    background: rgba(13, 18, 25, .82);
    color: #dce2ea;
    font-size: .78rem;
    font-weight: 700;
    line-height: 1.35;
}

.auth-inline-flash-icon {
    width: 25px;
    height: 25px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    font-size: .75rem;
    font-weight: 950;
}

.auth-inline-flash-error {
    border-color: rgba(255, 92, 92, .34);
    background: linear-gradient(135deg, rgba(87, 25, 31, .24), rgba(13, 18, 25, .9));
}

.auth-inline-flash-error .auth-inline-flash-icon {
    background: rgba(255, 92, 92, .14);
    color: #ff8a8a;
}

.auth-inline-flash-success {
    border-color: rgba(101, 215, 131, .3);
    background: linear-gradient(135deg, rgba(30, 84, 48, .2), rgba(13, 18, 25, .9));
}

.auth-inline-flash-success .auth-inline-flash-icon {
    background: rgba(101, 215, 131, .13);
    color: #7de09a;
}

@media (max-width: 620px) {
    .account-profile-visual {
        grid-template-columns: 1fr;
        justify-items: start;
    }

    .account-page-avatar {
        width: 94px;
        height: 94px;
        font-size: 1.65rem;
    }

    .account-avatar-form {
        width: 100%;
    }

    .account-avatar-picker,
    .account-avatar-save {
        flex: 1 1 140px;
    }
}

@media (max-width: 620px) {
    .account-profile {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .account-profile strong {
        margin-bottom: 10px;
        overflow-wrap: anywhere;
    }
}
