﻿:root {
    --bighead-bg: #030303;
    --bighead-surface: #090909;
    --bighead-surface-raised: #111113;
    --bighead-orange: #ff4b12;
    --bighead-orange-light: #ff8a3d;
    --bighead-orange-dark: #b92505;
    --bighead-text: #fff5ec;
    --bighead-muted: #bd8b78;
    --bighead-border: rgba(255, 82, 25, 0.35);
    --bighead-border-soft: rgba(255, 82, 25, 0.18);
    /* Aliases temporários enquanto o CSS legado é migrado por componentes. */
    --portugal-green: var(--bighead-orange);
    --portugal-red: var(--bighead-orange-dark);
    --portugal-gold: var(--bighead-orange-light);
    --portugal-dark: var(--bighead-bg);
    --page-bg: var(--bighead-bg);
    --card-bg: rgba(11, 11, 12, 0.96);
    --card-border: var(--bighead-border-soft);
    --text-primary: var(--bighead-text);
    --text-secondary: var(--bighead-muted);
    --danger: #c62828;
    --success: #047857;
}

/* Base */

html,
body {
    min-height: 100%;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    color: var(--text-primary);
    background: radial-gradient(circle at 75% 5%, rgba(255, 75, 18, 0.10), transparent 30%), radial-gradient(circle at 18% 75%, rgba(255, 75, 18, 0.05), transparent 35%), var(--bighead-bg);
}

h1:focus {
    outline: none;
}

a,
.btn-link {
    color: var(--portugal-green);
}

.content {
    padding-top: 1.5rem;
}

.page,
main {
    background: transparent;
}

code {
    color: #c02d76;
}

/* Navega��o */

.top-row {
    background: rgba(255, 255, 255, 0.72) !important;
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.65);
}

.sidebar {
    background: linear-gradient(180deg, rgba(4, 106, 56, 0.96), rgba(218, 41, 28, 0.95)) !important;
}

.navbar-brand {
    font-weight: 800;
    letter-spacing: 0.2px;
}

.nav-scrollable .nav-link {
    color: rgba(255, 255, 255, 0.86);
    border-radius: 12px;
    margin: 4px 10px;
}

    .nav-scrollable .nav-link:hover,
    .nav-scrollable .nav-link.active {
        background: rgba(255, 255, 255, 0.16);
        color: #ffffff;
    }

.nav-button {
    width: calc(100% - 20px);
    text-align: left;
    border: 0;
    background: transparent;
    color: rgba(255, 255, 255, 0.86);
    border-radius: 12px;
    margin: 4px 10px;
    padding: 0.5rem 1rem;
}

    .nav-button:hover {
        background: rgba(255, 255, 255, 0.16);
        color: #ffffff;
    }

/* Bot�es e formul�rios */

.btn {
    border-radius: 12px;
    font-weight: 700;
    padding: 0.65rem 1rem;
}

.btn-primary {
    color: #fff;
    background: linear-gradient(135deg, var(--portugal-green), var(--portugal-red));
    border: 0;
    box-shadow: 0 8px 18px rgba(4, 106, 56, 0.18);
}

    .btn-primary:hover {
        filter: brightness(0.96);
    }

.btn-outline-primary {
    color: var(--portugal-green);
    border-color: rgba(4, 106, 56, 0.45);
    background: rgba(255, 255, 255, 0.70);
}

    .btn-outline-primary:hover {
        background: var(--portugal-green);
        border-color: var(--portugal-green);
        color: white;
    }

.btn-outline-secondary {
    color: var(--text-primary);
    border-color: rgba(23, 33, 27, 0.18);
    background: rgba(255, 255, 255, 0.70);
}

    .btn-outline-secondary:hover {
        background: var(--text-primary);
        color: white;
    }

.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem rgba(4, 106, 56, 0.32);
}

.form-control {
    border-radius: 12px;
    min-height: 46px;
    border-color: rgba(23, 33, 27, 0.16);
}

    .form-control:focus {
        border-color: var(--portugal-green);
    }

textarea.form-control {
    min-height: 90px;
}

.form-group {
    margin-bottom: 16px;
}

    .form-group label {
        font-size: 13px;
        color: var(--text-secondary);
        font-weight: 700;
        margin-bottom: 6px;
    }

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

/* Login */

.auth-page {
    min-height: 82vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-card {
    width: 100%;
    max-width: 430px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    padding: 30px;
    box-shadow: 0 22px 60px rgba(23, 33, 27, 0.14);
    backdrop-filter: blur(16px);
}

    .auth-card h1 {
        margin: 0;
        font-weight: 900;
        color: var(--portugal-green);
    }

    .auth-card p {
        color: var(--text-secondary);
    }

/* Layout comum */

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 16px;
}

    .page-header h1 {
        margin: 0;
        font-size: 34px;
        font-weight: 900;
        color: var(--portugal-dark);
    }

    .page-header p {
        margin: 4px 0 0;
        color: var(--text-secondary);
    }

.actions-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.cards-list {
    display: grid;
    gap: 14px;
}

.game-card,
.leaderboard-card,
.empty-card,
.admin-card,
.league-card,
.league-form-card {
    background: var(--card-bg);
    border: 1px solid rgba(23, 33, 27, 0.08);
    border-radius: 20px;
    padding: 16px;
    box-shadow: 0 14px 40px rgba(23, 33, 27, 0.10);
    backdrop-filter: blur(14px);
}

.game-card,
.history-card,
.league-card {
    position: relative;
    overflow: hidden;
}

    .game-card::before,
    .history-card::before,
    .league-card::before {
        content: "";
        position: absolute;
        inset: 0;
        height: 5px;
        background: linear-gradient( 90deg, var(--portugal-green) 0%, var(--portugal-green) 42%, var(--portugal-gold) 42%, var(--portugal-gold) 48%, var(--portugal-red) 48%, var(--portugal-red) 100% );
    }

    .history-card::before {
        height: 4px;
    }

.clickable-card {
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

    .clickable-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 18px 40px rgba(23, 33, 27, 0.16);
    }

.status-pill {
    background: rgba(255, 204, 51, 0.22);
    color: #7a5a00;
    border: 1px solid rgba(255, 204, 51, 0.42);
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 800;
}

/* Jogos */

.game-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-secondary);
    font-size: 13px;
    margin-bottom: 12px;
    padding-top: 4px;
}

.teams-row {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 12px;
    align-items: center;
    margin-bottom: 12px;
}

.team-side {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

    .team-side.away {
        justify-content: flex-end;
        text-align: right;
    }

.team-name {
    font-size: 18px;
    font-weight: 900;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.flag-img {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    border-radius: 50%;
    object-fit: cover;
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(23, 33, 27, 0.08);
    box-shadow: 0 8px 18px rgba(23, 33, 27, 0.10);
}

.vs-badge {
    font-size: 12px;
    font-weight: 900;
    color: var(--text-secondary);
    background: rgba(23, 33, 27, 0.06);
    border-radius: 999px;
    padding: 5px 9px;
}

.prediction-info {
    display: grid;
    gap: 4px;
    margin-bottom: 12px;
}

.muted {
    color: var(--text-secondary);
    font-size: 13px;
}

.points-text {
    color: var(--success);
    font-size: 13px;
    font-weight: 800;
}

.pick-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 8px;
}

/* Leaderboard */

.leaderboard-card {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.9rem;
    border-radius: 18px;
}

    .leaderboard-card h3 {
        margin: 0;
        font-size: 1.05rem;
        line-height: 1.2;
    }

    .leaderboard-card p {
        margin: 0.25rem 0 0;
        color: var(--text-secondary);
        font-size: 0.88rem;
    }

.points-box {
    width: 58px;
    height: 58px;
    flex: 0 0 58px;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(4, 106, 56, 0.12), rgba(218, 41, 28, 0.10));
    color: var(--portugal-dark);
}

    .points-box strong {
        font-size: 1.25rem;
        line-height: 1;
    }

    .points-box span {
        font-size: 0.72rem;
        color: var(--text-secondary);
    }

/* Hist�rico de apostas */

.bets-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(340px, 0.9fr);
    gap: 1.5rem;
    align-items: start;
    margin-top: 1rem;
}

.bets-main,
.bets-sidebar {
    min-width: 0;
}

.bets-sidebar-inner {
    position: sticky;
    top: 1rem;
}

.history-section-title {
    margin: 1.25rem 0 0.65rem;
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--portugal-dark);
}

.history-list {
    display: grid;
    gap: 0.75rem;
    max-width: 760px;
}

.bets-sidebar .history-list {
    max-width: none;
}

.history-card {
    background: var(--card-bg);
    border: 1px solid rgba(23, 33, 27, 0.08);
    border-radius: 16px;
    padding: 0.75rem;
    box-shadow: 0 10px 24px rgba(23, 33, 27, 0.08);
    backdrop-filter: blur(12px);
}

.history-card-compact,
.bets-sidebar .history-card {
    padding: 0.65rem;
}

.history-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.55rem;
    padding-top: 0.15rem;
    font-size: 0.82rem;
    color: var(--text-secondary);
}

.history-main {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 52px minmax(0, 1fr);
    align-items: center;
    gap: 0.5rem;
}

.history-team {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    min-width: 0;
    font-weight: 700;
}

    .history-team span {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

.history-team-right {
    justify-content: flex-end;
    text-align: right;
}

.history-score {
    text-align: center;
    font-weight: 800;
    font-size: 0.9rem;
    padding: 0.3rem 0.35rem;
    border-radius: 999px;
    background: rgba(4, 106, 56, 0.08);
    color: var(--portugal-dark);
}

.small-flag {
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
}

.history-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    margin-top: 0.6rem;
    padding-top: 0.55rem;
    border-top: 1px solid rgba(23, 33, 27, 0.08);
    font-size: 0.86rem;
}

    .history-bottom span {
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        color: var(--text-secondary);
    }

    .history-bottom strong {
        color: var(--portugal-green);
        flex: 0 0 auto;
    }

.bets-sidebar .history-main {
    grid-template-columns: minmax(0, 1fr) 46px minmax(0, 1fr);
    gap: 0.35rem;
}

.bets-sidebar .history-team {
    font-size: 0.82rem;
}

.bets-sidebar .small-flag {
    width: 22px;
    height: 22px;
    flex-basis: 22px;
}

.bets-sidebar .history-score {
    font-size: 0.76rem;
    padding: 0.22rem 0.28rem;
}

.bets-sidebar .history-top,
.bets-sidebar .history-bottom {
    font-size: 0.75rem;
}

/* Admin */

.admin-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
    align-items: start;
}

.admin-card {
    padding: 1.25rem;
}

    .admin-card h2 {
        margin: 0 0 0.35rem;
        font-size: 1.25rem;
        font-weight: 900;
        color: var(--portugal-dark);
    }

    .admin-card p {
        margin: 0 0 1rem;
        color: var(--text-secondary);
    }

.admin-card-wide {
    grid-column: 1 / -1;
}

.admin-card-muted {
    opacity: 0.9;
}

.admin-check {
    margin-bottom: 1rem;
}

.admin-placeholder-list {
    display: grid;
    gap: 0.65rem;
}

    .admin-placeholder-list div {
        border-radius: 12px;
        padding: 0.75rem;
        background: rgba(4, 106, 56, 0.06);
        color: var(--text-secondary);
        font-weight: 700;
    }

/* Auditoria */

.audit-list {
    display: grid;
    gap: 0.75rem;
}

.audit-row {
    display: grid;
    grid-template-columns: minmax(180px, 0.8fr) minmax(0, 1.4fr) minmax(130px, 0.5fr);
    gap: 1rem;
    align-items: center;
    padding: 0.85rem;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.65);
    border: 1px solid rgba(23, 33, 27, 0.08);
}

    .audit-row strong {
        display: block;
        color: var(--portugal-dark);
    }

    .audit-row span {
        display: block;
        color: var(--text-secondary);
        font-size: 0.82rem;
    }

.audit-reason {
    color: var(--text-primary);
    font-weight: 600;
}

.audit-meta {
    text-align: right;
}

.points-positive {
    color: var(--success) !important;
}

.points-negative {
    color: var(--danger) !important;
}

/* Ligas */

.league-list {
    display: grid;
    gap: 1rem;
}

.league-card,
.league-form-card {
    padding: 1.25rem;
}

.league-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    padding-top: 0.25rem;
    margin-bottom: 1rem;
}

    .league-card-header h2 {
        margin: 0;
        font-size: 1.35rem;
        font-weight: 900;
        color: var(--portugal-dark);
    }

    .league-card-header p {
        margin: 0.25rem 0 0;
        color: var(--text-secondary);
    }

.league-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
}

    .league-grid > div {
        padding: 0.85rem;
        border-radius: 14px;
        background: rgba(255, 255, 255, 0.62);
        border: 1px solid rgba(23, 33, 27, 0.08);
    }

.league-label {
    display: block;
    margin-bottom: 0.25rem;
    color: var(--text-secondary);
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.league-grid strong {
    display: block;
    color: var(--portugal-dark);
    font-size: 0.95rem;
}

.invite-code {
    display: inline-block !important;
    padding: 0.3rem 0.55rem;
    border-radius: 10px;
    background: rgba(4, 106, 56, 0.10);
    color: var(--portugal-green) !important;
    letter-spacing: 0.08em;
}

.league-form-card {
    max-width: 860px;
}

.league-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.league-detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(320px, 0.6fr);
    gap: 1.25rem;
    align-items: start;
}

.league-members-list {
    display: grid;
    gap: 0.65rem;
}

.league-member-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.65);
    border: 1px solid rgba(23, 33, 27, 0.08);
}

    .league-member-row strong {
        display: block;
        color: var(--portugal-dark);
    }

    .league-member-row span {
        color: var(--text-secondary);
        font-size: 0.82rem;
    }

.league-member-tags {
    display: flex;
    gap: 0.35rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.member-tag {
    border-radius: 999px;
    padding: 0.22rem 0.55rem;
    font-size: 0.72rem;
    font-weight: 800;
    background: rgba(23, 33, 27, 0.08);
    color: var(--text-secondary);
}

.member-tag-active {
    background: rgba(4, 120, 87, 0.12);
    color: var(--success);
}

.member-tag-inactive {
    background: rgba(198, 40, 40, 0.10);
    color: var(--danger);
}

/* Blazor runtime UI */

#blazor-error-ui {
    color-scheme: light only;
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

.blazor-error-boundary {
    background: #b32121;
    padding: 1rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred.";
    }

#app:has(> .bighead-boot-loader) {
    min-height: 100vh;
    display: grid;
    place-items: center;
}

.bighead-boot-loader {
    width: min(18rem, calc(100vw - 3rem));
    display: grid;
    justify-items: center;
    gap: 0.75rem;
    color: var(--bighead-text);
    text-align: center;
}

.bighead-boot-mark {
    width: 6rem;
    height: 6rem;
    object-fit: contain;
    filter: drop-shadow(0 0 1.25rem rgba(255, 75, 18, 0.42));
    animation: bighead-loading-float 2.4s ease-in-out infinite;
}

.bighead-boot-loader > strong {
    color: var(--bighead-text);
    font-size: 1rem;
    font-weight: 900;
    letter-spacing: 0.22em;
}

.bighead-loading-track {
    width: 100%;
    height: 0.22rem;
    overflow: hidden;
    border: 1px solid var(--bighead-border-soft);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
}

    .bighead-loading-track > span {
        display: block;
        width: var(--blazor-load-percentage, 0%);
        height: 100%;
        border-radius: inherit;
        background: linear-gradient(90deg, var(--bighead-orange-dark), var(--bighead-orange-light));
        box-shadow: 0 0 1rem rgba(255, 75, 18, 0.5);
        transition: width 80ms ease-out;
    }

.loading-progress-text {
    min-height: 1.2rem;
    color: var(--bighead-muted);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

    .loading-progress-text::after {
        content: var(--blazor-load-percentage-text, "A carregar");
    }

.bighead-app-loading {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 2rem;
    color: var(--bighead-text);
    background: radial-gradient(circle at 50% 40%, rgba(255, 75, 18, 0.12), transparent 34%), var(--bighead-bg);
}

.bighead-app-loading-card {
    display: flex;
    align-items: center;
    gap: 1rem;
}

    .bighead-app-loading-card img {
        width: 4rem;
        height: 4rem;
        object-fit: contain;
        filter: drop-shadow(0 0 1rem rgba(255, 75, 18, 0.35));
        animation: bighead-loading-float 2.4s ease-in-out infinite;
    }

    .bighead-app-loading-card div {
        display: grid;
        gap: 0.2rem;
    }

    .bighead-app-loading-card strong {
        font-size: 1rem;
        font-weight: 900;
        letter-spacing: 0.18em;
    }

    .bighead-app-loading-card span {
        color: var(--bighead-muted);
        font-size: 0.9rem;
    }

@keyframes bighead-loading-float {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-0.45rem);
    }
}

@media (prefers-reduced-motion: reduce) {
    .bighead-boot-mark,
    .bighead-app-loading-card img {
        animation: none;
    }
}

/* Responsivo */

@media (max-width: 1100px) {
    .bets-layout,
    .league-detail-layout {
        grid-template-columns: 1fr;
    }

    .bets-sidebar-inner {
        position: static;
    }
}

@media (max-width: 900px) {
    .admin-grid,
    .league-grid,
    .league-form-grid {
        grid-template-columns: 1fr;
    }

    .audit-row {
        grid-template-columns: 1fr;
        gap: 0.4rem;
    }

    .audit-meta {
        text-align: left;
    }

    .league-card-header {
        flex-direction: column;
    }

    .league-member-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .league-member-tags {
        justify-content: flex-start;
    }
}

@media (max-width: 640px) {
    .content {
        padding-left: 0.75rem !important;
        padding-right: 0.75rem !important;
    }

    .page-header {
        flex-direction: column;
        gap: 0.75rem;
        margin-bottom: 1rem;
    }

        .page-header h1 {
            font-size: 1.45rem;
            line-height: 1.15;
        }

        .page-header p {
            font-size: 0.9rem;
        }

    .actions-row {
        margin-bottom: 0.9rem;
    }

    .cards-list {
        gap: 0.75rem;
    }

    .pick-grid,
    .teams-row {
        grid-template-columns: 1fr;
    }

    .teams-row {
        gap: 8px;
    }

    .vs-badge {
        justify-self: center;
    }

    .team-side.away {
        justify-content: flex-start;
        text-align: left;
        flex-direction: row-reverse;
    }

    .team-name {
        font-size: 17px;
    }

    .leaderboard-card {
        padding: 0.75rem;
        gap: 0.7rem;
        border-radius: 16px;
    }

        .leaderboard-card h3 {
            font-size: 0.98rem;
        }

        .leaderboard-card p {
            font-size: 0.8rem;
        }

    .points-box {
        width: 50px;
        height: 50px;
        flex-basis: 50px;
        border-radius: 14px;
    }

        .points-box strong {
            font-size: 1.1rem;
        }

    .history-section-title {
        margin: 1rem 0 0.55rem;
        font-size: 1rem;
    }

    .history-list {
        max-width: none;
        gap: 0.6rem;
    }

    .history-card {
        padding: 0.65rem;
        border-radius: 14px;
    }

    .history-top {
        font-size: 0.76rem;
        margin-bottom: 0.5rem;
    }

    .history-main {
        grid-template-columns: minmax(0, 1fr) 44px minmax(0, 1fr);
        gap: 0.35rem;
    }

    .history-team {
        gap: 0.35rem;
        font-size: 0.84rem;
    }

    .small-flag {
        width: 24px;
        height: 24px;
        flex-basis: 24px;
    }

    .history-score {
        font-size: 0.78rem;
        padding: 0.25rem 0.3rem;
    }

    .history-bottom {
        margin-top: 0.55rem;
        padding-top: 0.5rem;
        font-size: 0.78rem;
    }

    .status-pill {
        padding: 0.22rem 0.45rem;
        font-size: 0.72rem;
    }
}

.invite-input {
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 900;
}

.league-member-management {
    display: grid;
    gap: 0.55rem;
    justify-items: end;
}

.league-member-actions {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.btn-member-action {
    padding: 0.35rem 0.6rem;
    font-size: 0.78rem;
    border-radius: 10px;
}

@media (max-width: 900px) {
    .league-member-management {
        justify-items: start;
    }

    .league-member-actions {
        justify-content: flex-start;
    }
}

.league-manual-points-card {
    margin-top: 1.25rem;
}

.manual-points-form {
    display: grid;
    grid-template-columns: minmax(180px, 0.8fr) minmax(120px, 0.35fr) minmax(240px, 1fr) auto;
    gap: 1rem;
    align-items: end;
}

    .manual-points-form .form-group {
        margin-bottom: 0;
    }

.manual-points-action {
    min-width: 150px;
}

@media (max-width: 1000px) {
    .manual-points-form {
        grid-template-columns: 1fr;
    }

    .manual-points-action {
        min-width: 0;
    }
}

.edit-league-card {
    margin-bottom: 1.25rem;
}

.standings-card {
    background: rgba(2, 20, 24, 0.94);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 20px;
    box-shadow: 0 18px 44px rgba(23, 33, 27, 0.18);
    overflow: hidden;
}

.standings-scroll {
    overflow-x: auto;
}

.standings-table {
    width: 100%;
    border-collapse: collapse;
    color: #f4fbf7;
    min-width: 680px;
}

    .standings-table thead {
        background: rgba(4, 106, 56, 0.30);
        border-bottom: 1px solid rgba(255, 255, 255, 0.10);
    }

    .standings-table th {
        padding: 0.85rem 0.7rem;
        font-size: 0.76rem;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        color: rgba(244, 251, 247, 0.78);
        text-align: left;
        white-space: nowrap;
    }

    .standings-table td {
        padding: 0.75rem 0.7rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.10);
        vertical-align: middle;
    }

.standings-row {
    cursor: pointer;
    transition: background 0.15s ease, transform 0.15s ease;
}

    .standings-row:hover {
        background: rgba(255, 255, 255, 0.06);
    }

.standings-row-first {
    background: rgba(255, 204, 51, 0.09);
}

.standings-row-second,
.standings-row-third {
    background: rgba(255, 255, 255, 0.035);
}

.standings-rank-col {
    width: 56px;
}

.rank-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 28px;
    padding: 0 0.45rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.10);
    color: #ffffff;
    font-weight: 900;
    font-size: 0.85rem;
}

.rank-badge-first {
    background: var(--portugal-gold);
    color: #3c2b00;
}

.rank-badge-second {
    background: rgba(255, 255, 255, 0.78);
    color: var(--portugal-dark);
}

.rank-badge-third {
    background: rgba(218, 41, 28, 0.88);
    color: #ffffff;
}

.standings-player {
    min-width: 220px;
}

    .standings-player strong {
        display: block;
        color: #ffffff;
        font-weight: 900;
    }

    .standings-player span {
        display: block;
        margin-top: 0.15rem;
        color: rgba(244, 251, 247, 0.62);
        font-size: 0.78rem;
    }

.standings-number {
    text-align: center !important;
    font-weight: 800;
    white-space: nowrap;
}

.standings-points-col {
    color: #ffffff;
    font-size: 1rem;
}

    .standings-points-col strong {
        display: inline-flex;
        justify-content: center;
        min-width: 38px;
        padding: 0.25rem 0.45rem;
        border-radius: 10px;
        background: rgba(4, 120, 87, 0.28);
        color: #ffffff;
    }

.standings-legend {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    padding: 0.8rem 1rem;
    background: rgba(255, 255, 255, 0.04);
    color: rgba(244, 251, 247, 0.68);
    font-size: 0.78rem;
}

    .standings-legend strong {
        color: #ffffff;
    }

@media (max-width: 720px) {
    .standings-card {
        background: transparent;
        border: 0;
        box-shadow: none;
        overflow: visible;
    }

    .standings-scroll {
        overflow: visible;
    }

    .standings-table {
        min-width: 0;
        display: block;
        color: var(--text-primary);
    }

        .standings-table thead {
            display: none;
        }

        .standings-table tbody {
            display: grid;
            gap: 0.75rem;
        }

        .standings-table tr {
            display: grid;
            grid-template-columns: auto minmax(0, 1fr);
            gap: 0.55rem 0.75rem;
            padding: 0.85rem;
            background: var(--card-bg);
            border: 1px solid rgba(23, 33, 27, 0.08);
            border-radius: 18px;
            box-shadow: 0 12px 32px rgba(23, 33, 27, 0.10);
        }

        .standings-table td {
            border-bottom: 0;
            padding: 0;
        }

    .standings-rank-col {
        width: auto;
        grid-row: span 4;
    }

    .standings-player {
        min-width: 0;
    }

        .standings-player strong {
            color: var(--portugal-dark);
        }

        .standings-player span {
            color: var(--text-secondary);
        }

    .standings-number {
        display: flex;
        justify-content: space-between;
        align-items: center;
        text-align: left !important;
        color: var(--text-primary);
        font-size: 0.86rem;
    }

        .standings-number::before {
            content: attr(data-label);
            color: var(--text-secondary);
            font-size: 0.75rem;
            font-weight: 900;
            text-transform: uppercase;
        }

    .standings-points-col strong {
        background: rgba(4, 120, 87, 0.12);
        color: var(--success);
    }

    .standings-legend {
        margin-top: 0.75rem;
        border-radius: 16px;
        background: rgba(255, 255, 255, 0.70);
        color: var(--text-secondary);
    }

        .standings-legend strong {
            color: var(--portugal-dark);
        }
}

.standings-form-col {
    min-width: 150px;
    text-align: left;
}

.form-badges {
    display: flex;
    gap: 0.35rem;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: nowrap;
}

.form-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 7px;
    font-size: 0.78rem;
    font-weight: 900;
    color: #ffffff;
}

.form-badge-win {
    background: #00c853;
}

.form-badge-loss {
    background: #ff1f1f;
}

.form-badge-pending {
    background: #ffb300;
    color: #3c2b00;
}

.form-badge-empty {
    background: rgba(255, 255, 255, 0.14);
    color: rgba(244, 251, 247, 0.70);
}

@media (max-width: 720px) {
    .standings-form-col {
        min-width: 0;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

        .standings-form-col::before {
            content: attr(data-label);
            color: var(--text-secondary);
            font-size: 0.75rem;
            font-weight: 900;
            text-transform: uppercase;
        }

    .form-badges {
        justify-content: flex-end;
    }

    .form-badge-empty {
        background: rgba(23, 33, 27, 0.08);
        color: var(--text-secondary);
    }
}

.league-hub-header {
    align-items: flex-start;
}

.league-title-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

    .league-title-row h1 {
        margin: 0;
    }

.league-hub-actions {
    justify-content: flex-end;
    flex-wrap: wrap;
}

.league-hub-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
    gap: 1.25rem;
    margin-bottom: 1.25rem;
}

.league-hub-card {
    background: var(--card-bg);
    border: 1px solid rgba(23, 33, 27, 0.08);
    border-radius: 20px;
    padding: 1.25rem;
    box-shadow: 0 14px 40px rgba(23, 33, 27, 0.10);
    backdrop-filter: blur(14px);
    position: relative;
    overflow: hidden;
}

    .league-hub-card::before {
        content: "";
        position: absolute;
        inset: 0;
        height: 5px;
        background: linear-gradient(90deg, var(--portugal-green), var(--portugal-gold), var(--portugal-red));
    }

.league-hub-card-main {
    grid-row: span 1;
}

.league-hub-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
}

    .league-hub-stats > div {
        padding: 0.85rem;
        border-radius: 14px;
        background: rgba(255, 255, 255, 0.62);
        border: 1px solid rgba(23, 33, 27, 0.08);
    }

    .league-hub-stats strong {
        display: block;
        color: var(--portugal-dark);
        font-size: 1.2rem;
    }

.league-hub-top-list,
.league-hub-games-list,
.league-hub-shortcuts {
    display: grid;
    gap: 0.65rem;
}

.league-hub-top-row,
.league-hub-game-row {
    width: 100%;
    border: 1px solid rgba(23, 33, 27, 0.08);
    background: rgba(255, 255, 255, 0.65);
    border-radius: 14px;
    padding: 0.75rem;
    text-align: left;
    display: grid;
    gap: 0.35rem;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.league-hub-top-row {
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.75rem;
}

    .league-hub-top-row:hover,
    .league-hub-game-row:hover {
        transform: translateY(-1px);
        box-shadow: 0 10px 24px rgba(23, 33, 27, 0.10);
    }

    .league-hub-top-row strong,
    .league-hub-game-row strong {
        color: var(--portugal-dark);
    }

    .league-hub-top-row small,
    .league-hub-game-row span {
        display: block;
        color: var(--text-secondary);
        font-size: 0.78rem;
    }

@media (max-width: 1100px) {
    .league-hub-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .league-hub-stats {
        grid-template-columns: 1fr;
    }

    .league-hub-top-row {
        grid-template-columns: auto minmax(0, 1fr);
    }

        .league-hub-top-row > strong:last-child {
            grid-column: 2;
        }
}

.competition-picker {
    display: grid;
    gap: 0.65rem;
}

.competition-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.8rem;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.62);
    border: 1px solid rgba(23, 33, 27, 0.08);
    cursor: pointer;
}

    .competition-option input {
        width: 18px;
        height: 18px;
        flex: 0 0 18px;
    }

    .competition-option strong {
        display: block;
        color: var(--portugal-dark);
    }

    .competition-option small {
        display: block;
        color: var(--text-secondary);
        font-size: 0.78rem;
    }

.league-hub-bets-card {
    width: 100%;
    display: block;
    text-align: left;
    border: 0;
    background: transparent;
    padding: 0;
    cursor: pointer;
}

.league-hub-bets-dropdown {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(23, 33, 27, 0.08);
}

.league-hub-bets-card {
    width: 100%;
    display: block;
    text-align: left;
    border: 0;
    background: transparent;
    padding: 0;
    cursor: pointer;
}

.league-hub-bets-dropdown {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(23, 33, 27, 0.08);
}

.history-card-compact {
    padding: 0.85rem;
}


/* Leaderboard de torneio */
.tournament-leaderboard-table {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.tournament-leaderboard-row {
    display: grid;
    grid-template-columns: 4rem minmax(12rem, 1fr) 6rem 6rem 6rem 8rem;
    gap: 0.75rem;
    align-items: center;
    padding: 0.85rem 1rem;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.04);
}

.tournament-leaderboard-row-head {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    opacity: 0.75;
}

.tournament-leaderboard-row-button {
    width: 100%;
    border: 0;
    color: inherit;
    text-align: left;
    cursor: pointer;
}

    .tournament-leaderboard-row-button:hover {
        background: rgba(255, 255, 255, 0.08);
    }

.tournament-leaderboard-row small {
    display: block;
    opacity: 0.7;
}

.tournament-leaderboard-expanded {
    margin-top: -0.25rem;
    margin-bottom: 0.5rem;
    padding: 0.75rem 1rem 1rem 5rem;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.025);
}

.tournament-match-detail-row {
    display: grid;
    grid-template-columns: minmax(8rem, 1fr) 8rem 8rem 8rem;
    gap: 0.75rem;
    padding: 0.55rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

    .tournament-match-detail-row:last-child {
        border-bottom: 0;
    }

@media (max-width: 760px) {
    .tournament-leaderboard-row {
        grid-template-columns: 3rem minmax(10rem, 1fr) 5rem;
    }

        .tournament-leaderboard-row > span:nth-child(4),
        .tournament-leaderboard-row > span:nth-child(5),
        .tournament-leaderboard-row > span:nth-child(6),
        .tournament-leaderboard-row-head > span:nth-child(4),
        .tournament-leaderboard-row-head > span:nth-child(5),
        .tournament-leaderboard-row-head > span:nth-child(6) {
            display: none;
        }

    .tournament-match-detail-row {
        grid-template-columns: 1fr;
    }

    .tournament-leaderboard-expanded {
        padding-left: 1rem;
    }
}

/* Leaderboard de torneio - cards + tabela */
.tournament-standings-card {
    padding: 1.25rem;
}

.tournament-podium {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin: 0.75rem 0 1.25rem;
    align-items: stretch;
}

.tournament-podium-card {
    border: 1px solid rgba(23, 33, 27, 0.10);
    border-radius: 22px;
    padding: 1rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.84), rgba(255, 255, 255, 0.58));
    box-shadow: 0 16px 34px rgba(23, 33, 27, 0.10);
    color: var(--text-primary);
    text-align: center;
    display: grid;
    justify-items: center;
    gap: 0.65rem;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

    .tournament-podium-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 20px 42px rgba(23, 33, 27, 0.15);
    }

.tournament-podium-card-1 {
    border-color: rgba(255, 204, 51, 0.55);
    background: linear-gradient(135deg, rgba(255, 204, 51, 0.22), rgba(255, 255, 255, 0.80));
}

.tournament-podium-card-2 {
    background: linear-gradient(135deg, rgba(4, 106, 56, 0.10), rgba(255, 255, 255, 0.80));
}

.tournament-podium-card-3 {
    background: linear-gradient(135deg, rgba(218, 41, 28, 0.10), rgba(255, 255, 255, 0.80));
}

.tournament-podium-avatar {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--portugal-green), var(--portugal-red));
    color: #ffffff;
    font-weight: 900;
    font-size: 1.25rem;
    box-shadow: 0 12px 24px rgba(23, 33, 27, 0.18);
}

.tournament-podium-card strong {
    display: block;
    color: var(--portugal-dark);
    font-size: 1rem;
}

.tournament-podium-card small {
    display: block;
    color: var(--text-secondary);
    font-size: 0.78rem;
}

.tournament-podium-stats {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
    justify-content: center;
}

    .tournament-podium-stats span {
        border-radius: 999px;
        padding: 0.25rem 0.55rem;
        background: rgba(255, 255, 255, 0.70);
        color: var(--text-secondary);
        font-size: 0.76rem;
        font-weight: 800;
    }

.tournament-standings-table {
    display: grid;
    gap: 0.45rem;
}

.tournament-standings-row {
    display: grid;
    grid-template-columns: 4rem minmax(14rem, 1fr) 6rem 6rem 7rem 6rem 8rem;
    gap: 0.75rem;
    align-items: center;
    padding: 0.75rem 0.9rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.64);
    border: 1px solid rgba(23, 33, 27, 0.08);
}

.tournament-standings-row-head {
    background: rgba(4, 106, 56, 0.08);
    color: var(--text-secondary);
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.tournament-standings-row-button {
    width: 100%;
    color: inherit;
    text-align: left;
    cursor: pointer;
}

    .tournament-standings-row-button:hover {
        background: rgba(4, 106, 56, 0.08);
    }

.tournament-standings-player strong {
    display: block;
    color: var(--portugal-dark);
}

.tournament-standings-player small {
    display: block;
    color: var(--text-secondary);
    font-size: 0.78rem;
}

.tournament-standings-details {
    margin: -0.1rem 0 0.5rem 4.75rem;
    padding: 0.85rem;
    border-radius: 16px;
    background: rgba(4, 106, 56, 0.07);
    border: 1px solid rgba(4, 106, 56, 0.12);
}

.tournament-detail-row {
    display: grid;
    grid-template-columns: minmax(6rem, 0.8fr) minmax(7rem, 1fr) minmax(5rem, 0.8fr) 5rem 5rem 6rem 7rem 5rem 5rem;
    gap: 0.65rem;
    align-items: center;
    padding: 0.55rem 0.65rem;
    border-radius: 12px;
    color: var(--text-primary);
}

    .tournament-detail-row:nth-child(even) {
        background: rgba(255, 255, 255, 0.55);
    }

.tournament-detail-row-head {
    color: var(--text-secondary);
    font-size: 0.72rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    background: rgba(255, 255, 255, 0.42);
}

@media (max-width: 1000px) {
    .tournament-podium {
        grid-template-columns: 1fr;
    }

    .tournament-standings-row {
        grid-template-columns: 3rem minmax(10rem, 1fr) 5rem 5rem;
    }

        .tournament-standings-row > span:nth-child(5),
        .tournament-standings-row > span:nth-child(6),
        .tournament-standings-row > span:nth-child(7),
        .tournament-standings-row-head > span:nth-child(5),
        .tournament-standings-row-head > span:nth-child(6),
        .tournament-standings-row-head > span:nth-child(7) {
            display: none;
        }

    .tournament-standings-details {
        margin-left: 0;
    }

    .tournament-detail-row,
    .tournament-detail-row-head {
        grid-template-columns: 1fr;
    }
}


/* FIX visual leaderboard torneio - override final */
.tournament-standings-card {
    padding: 1.4rem;
}

.tournament-podium,
.tournament-standings-table,
.tournament-standings-details,
.tournament-detail-row {
    box-sizing: border-box;
}

.tournament-podium {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 1rem !important;
    margin: 1rem 0 1.4rem !important;
}

.tournament-podium-card {
    appearance: none;
    -webkit-appearance: none;
    border: 1px solid rgba(23, 33, 27, 0.10) !important;
    border-radius: 24px !important;
    padding: 1.1rem !important;
    min-height: 190px;
    width: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.68)) !important;
    box-shadow: 0 18px 42px rgba(23, 33, 27, 0.12) !important;
    color: var(--text-primary) !important;
    font: inherit !important;
    text-align: center !important;
    display: grid !important;
    justify-items: center !important;
    align-content: center !important;
    gap: 0.65rem !important;
    cursor: pointer;
}

.tournament-podium-card-1 {
    background: linear-gradient(135deg, rgba(255, 204, 51, 0.30), rgba(255, 255, 255, 0.90)) !important;
    border-color: rgba(255, 204, 51, 0.70) !important;
}

.tournament-podium-card-2 {
    background: linear-gradient(135deg, rgba(4, 106, 56, 0.16), rgba(255, 255, 255, 0.88)) !important;
}

.tournament-podium-card-3 {
    background: linear-gradient(135deg, rgba(218, 41, 28, 0.16), rgba(255, 255, 255, 0.88)) !important;
}

.tournament-podium-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 22px 46px rgba(23, 33, 27, 0.16) !important;
}

.tournament-podium-avatar {
    width: 72px !important;
    height: 72px !important;
    border-radius: 999px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: linear-gradient(135deg, var(--portugal-green), var(--portugal-red)) !important;
    color: #ffffff !important;
    font-weight: 900 !important;
    font-size: 1.25rem !important;
    box-shadow: 0 12px 26px rgba(23, 33, 27, 0.20);
}

.tournament-podium-card strong {
    display: block;
    max-width: 100%;
    color: var(--portugal-dark) !important;
    font-size: 1.05rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tournament-podium-card small {
    display: block;
    color: var(--text-secondary) !important;
    font-size: 0.8rem;
}

.tournament-podium-stats {
    display: flex !important;
    flex-wrap: wrap;
    gap: 0.4rem;
    justify-content: center;
}

    .tournament-podium-stats span {
        display: inline-flex;
        border-radius: 999px;
        padding: 0.28rem 0.6rem;
        background: rgba(255, 255, 255, 0.76);
        color: var(--text-secondary);
        font-size: 0.76rem;
        font-weight: 800;
    }

.tournament-standings-table {
    display: grid !important;
    gap: 0.5rem !important;
    width: 100%;
}

.tournament-standings-row {
    display: grid !important;
    grid-template-columns: 4rem minmax(16rem, 1fr) 6rem 6rem 7rem 6rem 8rem !important;
    gap: 0.85rem !important;
    align-items: center !important;
    width: 100% !important;
    padding: 0.82rem 1rem !important;
    border-radius: 16px !important;
    background: rgba(255, 255, 255, 0.72) !important;
    border: 1px solid rgba(23, 33, 27, 0.08) !important;
    box-shadow: 0 8px 20px rgba(23, 33, 27, 0.06);
}

.tournament-standings-row-head {
    background: rgba(4, 106, 56, 0.10) !important;
    color: var(--text-secondary) !important;
    font-size: 0.76rem !important;
    font-weight: 900 !important;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    box-shadow: none;
}

.tournament-standings-row-button {
    appearance: none;
    -webkit-appearance: none;
    font: inherit !important;
    color: inherit !important;
    text-align: left !important;
    cursor: pointer;
}

    .tournament-standings-row-button:hover {
        background: rgba(4, 106, 56, 0.09) !important;
    }

.tournament-standings-player {
    min-width: 0;
}

    .tournament-standings-player strong {
        display: block;
        color: var(--portugal-dark) !important;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .tournament-standings-player small {
        display: block;
        color: var(--text-secondary) !important;
        font-size: 0.78rem;
    }

.tournament-standings-details {
    margin: -0.15rem 0 0.55rem 4.75rem !important;
    padding: 0.85rem !important;
    border-radius: 16px !important;
    background: rgba(4, 106, 56, 0.08) !important;
    border: 1px solid rgba(4, 106, 56, 0.13) !important;
}

.tournament-detail-row {
    display: grid !important;
    grid-template-columns: minmax(6rem, 0.8fr) minmax(7rem, 1fr) minmax(5rem, 0.8fr) 5rem 5rem 6rem 7rem 5rem 5rem !important;
    gap: 0.65rem !important;
    align-items: center !important;
    padding: 0.62rem 0.7rem !important;
    border-radius: 12px !important;
}

    .tournament-detail-row:nth-child(even) {
        background: rgba(255, 255, 255, 0.62) !important;
    }

.tournament-detail-row-head {
    background: rgba(255, 255, 255, 0.48) !important;
    color: var(--text-secondary);
    font-size: 0.72rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

@media (max-width: 1000px) {
    .tournament-podium {
        grid-template-columns: 1fr !important;
    }

    .tournament-standings-row {
        grid-template-columns: 3rem minmax(10rem, 1fr) 5rem 5rem !important;
    }

        .tournament-standings-row > span:nth-child(5),
        .tournament-standings-row > span:nth-child(6),
        .tournament-standings-row > span:nth-child(7),
        .tournament-standings-row-head > span:nth-child(5),
        .tournament-standings-row-head > span:nth-child(6),
        .tournament-standings-row-head > span:nth-child(7) {
            display: none !important;
        }

    .tournament-standings-details {
        margin-left: 0 !important;
    }

    .tournament-detail-row,
    .tournament-detail-row-head {
        grid-template-columns: 1fr !important;
    }
}


/* FIX equipas torneio - ações directas sem select */
.tournament-team-slot-actions-stack {
    align-items: flex-end;
}

    .tournament-team-slot-actions-stack .btn-member-action {
        max-width: 100%;
        white-space: normal;
    }

@media (max-width: 640px) {
    .tournament-team-slot-actions-stack {
        align-items: stretch;
    }
}

/* Torneios - equipas/brackets */
.tournament-teams-header {
    align-items: flex-start;
}

.tournament-teams-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)) !important;
    gap: 1rem !important;
    width: 100%;
}

.tournament-team-card {
    background: rgba(255, 255, 255, 0.78) !important;
    border: 1px solid rgba(23, 33, 27, 0.08) !important;
    border-radius: 18px !important;
    padding: 1rem !important;
    box-shadow: 0 12px 28px rgba(23, 33, 27, 0.08) !important;
}

.tournament-team-card-header {
    display: flex !important;
    justify-content: space-between !important;
    gap: 0.75rem !important;
    align-items: flex-start !important;
    margin-bottom: 0.85rem !important;
}

    .tournament-team-card-header strong {
        display: block;
        color: var(--portugal-dark);
        font-size: 1.05rem;
    }

    .tournament-team-card-header span {
        display: block;
        color: var(--text-secondary);
        font-size: 0.8rem;
        margin-top: 0.15rem;
    }

.tournament-team-slots {
    display: grid !important;
    gap: 0.65rem !important;
}

.tournament-team-slot {
    border: 1px solid rgba(23, 33, 27, 0.08) !important;
    border-radius: 15px !important;
    padding: 0.75rem !important;
    display: grid !important;
    gap: 0.65rem !important;
    background: rgba(255, 255, 255, 0.70) !important;
}

.tournament-team-slot-filled {
    border-color: rgba(4, 120, 87, 0.20) !important;
    background: rgba(4, 120, 87, 0.06) !important;
}

.tournament-team-slot-empty {
    border-style: dashed !important;
    background: rgba(255, 255, 255, 0.48) !important;
}

.tournament-team-slot-main {
    display: grid !important;
    grid-template-columns: auto minmax(0, 1fr) !important;
    gap: 0.65rem !important;
    align-items: center !important;
}

.tournament-team-slot-number {
    width: 34px !important;
    height: 34px !important;
    border-radius: 10px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: rgba(4, 106, 56, 0.10) !important;
    color: var(--portugal-green) !important;
    font-size: 0.78rem !important;
    font-weight: 900 !important;
}

.tournament-team-slot-main strong {
    display: block;
    color: var(--portugal-dark);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tournament-team-slot-main span {
    display: block;
    color: var(--text-secondary);
    font-size: 0.78rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tournament-team-slot-actions {
    display: flex !important;
    gap: 0.5rem !important;
    align-items: center !important;
    justify-content: flex-end !important;
    flex-wrap: wrap !important;
}

.tournament-team-slot-actions-stack {
    align-items: flex-end !important;
}

    .tournament-team-slot-actions-stack .btn-member-action {
        max-width: 100%;
        white-space: normal;
    }

.tournament-team-select {
    min-height: 38px;
    max-width: 220px;
    font-size: 0.82rem;
}

@media (max-width: 640px) {
    .tournament-teams-grid {
        grid-template-columns: 1fr !important;
    }

    .tournament-team-slot-actions,
    .tournament-team-slot-actions-stack {
        justify-content: flex-start !important;
        align-items: stretch !important;
    }

    .tournament-team-select {
        max-width: none;
        width: 100%;
    }
}


/* Leaderboard por equipa */
.tournament-team-leaderboard-members {
    display: grid;
    gap: 0.75rem;
}

.tournament-team-member-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.62);
    border: 1px solid rgba(23, 33, 27, 0.08);
}

    .tournament-team-member-card strong {
        display: block;
        color: var(--portugal-dark);
    }

    .tournament-team-member-card span {
        display: block;
        color: var(--text-secondary);
        font-size: 0.8rem;
    }

@media (max-width: 760px) {
    .tournament-team-member-card {
        align-items: flex-start;
        flex-direction: column;
    }
}


/* Perfil de utilizador */
.profile-hero-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 1.25rem;
    padding: 1.4rem;
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.66));
    border: 1px solid rgba(23, 33, 27, 0.08);
    box-shadow: 0 18px 46px rgba(23, 33, 27, 0.12);
}

.profile-hero-main {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 0;
}

.profile-avatar {
    width: 86px;
    height: 86px;
    flex: 0 0 86px;
    border-radius: 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--portugal-green), var(--portugal-red));
    color: #ffffff;
    font-size: 1.65rem;
    font-weight: 900;
    box-shadow: 0 16px 34px rgba(23, 33, 27, 0.20);
    overflow: hidden;
}

.profile-avatar-image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.profile-bio {
    max-width: 680px;
    margin-top: 0.55rem !important;
    color: var(--text-primary) !important;
}

.profile-progress-card {
    margin-bottom: 1.25rem;
}

.profile-progress-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.profile-progress-row-muted {
    margin-top: 0.45rem;
    color: var(--text-secondary);
    font-size: 0.8rem;
}

.profile-progress-track {
    width: 100%;
    height: 14px;
    border-radius: 999px;
    overflow: hidden;
    background: rgba(23, 33, 27, 0.08);
}

.profile-progress-fill {
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--portugal-green), var(--portugal-gold), var(--portugal-red));
    transition: width 0.2s ease;
}

.profile-edit-card {
    margin-bottom: 1.25rem;
    max-width: none;
}

.profile-editor-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

    .profile-editor-heading h1 {
        margin: 0.2rem 0 0.35rem;
    }

    .profile-editor-heading p {
        margin: 0;
    }

.profile-editor-eyebrow {
    color: var(--pte-red);
    font-size: 0.76rem;
    font-weight: 900;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.profile-editor-preview {
    position: relative;
}

.profile-editor-preview-label {
    position: relative;
    z-index: 1;
    display: inline-flex;
    padding: 0.4rem 0.7rem;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    color: var(--pte-muted);
    background: rgba(0, 0, 0, 0.24);
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    white-space: nowrap;
}

.profile-editor-visibility-header {
    margin-top: 1.5rem;
}

.profile-visibility-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
    margin-bottom: 1rem;
}

.profile-toggle {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.75rem;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.62);
    border: 1px solid rgba(23, 33, 27, 0.08);
    font-weight: 700;
    color: var(--portugal-dark);
}

    .profile-toggle input {
        width: 18px;
        height: 18px;
    }

.profile-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.85rem;
}

    .profile-stats-grid > div {
        padding: 0.85rem;
        border-radius: 14px;
        background: rgba(255, 255, 255, 0.62);
        border: 1px solid rgba(23, 33, 27, 0.08);
    }

    .profile-stats-grid strong {
        display: block;
        color: var(--portugal-dark);
        font-size: 1.25rem;
    }

.profile-badges-placeholder {
    display: flex;
    gap: 0.55rem;
    flex-wrap: wrap;
}

.profile-badge-placeholder {
    border-radius: 999px;
    padding: 0.45rem 0.8rem;
    background: rgba(4, 120, 87, 0.12);
    color: var(--success);
    font-size: 0.82rem;
    font-weight: 900;
}

.profile-equipped-title {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0.35rem 0.75rem;
    border: 1px solid rgba(255, 31, 70, 0.5);
    border-radius: 999px;
    color: #ff4968;
    background: rgba(255, 31, 70, 0.12);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.profile-customization-card {
    margin-bottom: 1.25rem;
}

.profile-customization-group + .profile-customization-group {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.profile-customization-group-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.85rem;
}

    .profile-customization-group-header h3 {
        margin: 0 0 0.25rem;
        font-size: 1rem;
    }

    .profile-customization-group-header p {
        margin: 0;
    }

.profile-customization-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.85rem;
}

.profile-customization-item {
    display: grid;
    grid-template-rows: 156px 1fr auto;
    gap: 0.8rem;
    min-width: 0;
    padding: 0.85rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.025);
    transition: border-color 0.15s ease, transform 0.15s ease, background 0.15s ease;
}

    .profile-customization-item:hover {
        transform: translateY(-2px);
        border-color: rgba(255, 31, 70, 0.38);
        background: rgba(255, 255, 255, 0.04);
    }

.profile-customization-item-equipped {
    border-color: rgba(255, 31, 70, 0.72);
    box-shadow: inset 0 0 0 1px rgba(255, 31, 70, 0.2);
}

.profile-customization-preview {
    min-width: 0;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    background: radial-gradient(circle at 50% 15%, rgba(255, 31, 70, 0.14), transparent 55%), #09090b;
}

    .profile-customization-preview img {
        width: 100%;
        height: 100%;
        display: block;
    }

.profile-customization-preview-image img {
    object-fit: cover;
}

.profile-customization-preview-avatar img {
    object-fit: contain;
    object-position: center bottom;
}

.profile-customization-preview-title {
    display: grid;
    place-items: center;
    padding: 1rem;
}

    .profile-customization-preview-title span {
        padding: 0.48rem 0.85rem;
        border: 1px solid rgba(255, 31, 70, 0.58);
        border-radius: 999px;
        color: #ff4968;
        background: rgba(255, 31, 70, 0.12);
        font-size: 0.82rem;
        font-weight: 900;
        letter-spacing: 0.05em;
        text-align: center;
        text-transform: uppercase;
    }

.profile-customization-copy {
    min-width: 0;
}

    .profile-customization-copy strong {
        display: block;
        margin-bottom: 0.3rem;
    }

    .profile-customization-copy p {
        margin: 0;
        font-size: 0.82rem;
    }

@media (max-width: 900px) {
    .profile-hero-card,
    .profile-hero-main,
    .profile-editor-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .profile-visibility-grid,
    .profile-stats-grid {
        grid-template-columns: 1fr;
    }

    .profile-customization-grid {
        grid-template-columns: 1fr;
    }

    .profile-customization-group-header {
        align-items: stretch;
        flex-direction: column;
    }
}


/* Perfil - contas externas de jogos */
.profile-game-accounts-card {
    margin-bottom: 1.25rem;
}

.profile-game-account-form {
    margin-bottom: 1rem;
    padding: 1rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.58);
    border: 1px solid rgba(23, 33, 27, 0.08);
}

.profile-game-account-toggle {
    margin-bottom: 1rem;
}

.profile-game-accounts-list {
    display: grid;
    gap: 0.85rem;
}

.profile-game-account-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 1rem;
    align-items: start;
    padding: 1rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.66);
    border: 1px solid rgba(23, 33, 27, 0.08);
    box-shadow: 0 10px 24px rgba(23, 33, 27, 0.07);
}

.profile-game-account-title {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    flex-wrap: wrap;
    margin-bottom: 0.2rem;
}

    .profile-game-account-title strong {
        color: var(--portugal-dark);
        font-size: 1rem;
    }

.profile-game-account-card p {
    margin: 0 0 0.35rem;
    color: var(--text-secondary);
}

.profile-game-account-card .muted {
    display: block;
    margin-top: 0.2rem;
}

.profile-game-account-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.45rem;
    flex-wrap: wrap;
}

@media (max-width: 760px) {
    .profile-game-account-card {
        grid-template-columns: 1fr;
    }

    .profile-game-account-actions {
        justify-content: flex-start;
    }
}


/* Torneios - identidade externa verificada */
.tournament-player-primary {
    display: block;
    color: var(--portugal-dark);
    font-weight: 900;
}

.tournament-player-secondary {
    display: block;
    color: var(--text-secondary);
    font-size: 0.78rem;
    margin-top: 0.12rem;
}


/* =========================================================
   TESTE VISUAL - Perfil Portugal Team Esports
   Scope: .pte-profile-page
   ========================================================= */

:root {
    --pte-bg: #050506;
    --pte-bg-soft: #0b0b0d;
    --pte-card: rgba(18, 18, 20, 0.96);
    --pte-card-soft: rgba(24, 24, 27, 0.98);
    --pte-border: rgba(255, 255, 255, 0.10);
    --pte-border-strong: rgba(255, 31, 70, 0.70);
    --pte-red: #ff1f46;
    --pte-red-soft: rgba(255, 31, 70, 0.14);
    --pte-text: #f6f7fb;
    --pte-muted: rgba(246, 247, 251, 0.66);
    --pte-muted-2: rgba(246, 247, 251, 0.44);
    --pte-green: #28e65f;
}

/* Faz o tema ocupar a area de conteudo da pagina de perfil */
.pte-profile-page {
    min-height: calc(100vh - 2rem);
    margin: -1.5rem -1.5rem 0 -1.5rem;
    padding: 2rem 2rem 3rem;
    color: var(--pte-text);
    background: linear-gradient(rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.94)), radial-gradient(circle at 15% 0%, rgba(255, 31, 70, 0.18), transparent 34%), radial-gradient(circle at 82% 8%, rgba(255, 31, 70, 0.10), transparent 30%), linear-gradient(180deg, #080809 0%, #030304 100%);
}

/* Header/side do template quando o perfil esta activo */
body:has(.pte-profile-page) .top-row {
    background: rgba(5, 5, 6, 0.94) !important;
    border-bottom: 1px solid rgba(255, 31, 70, 0.42) !important;
    backdrop-filter: blur(14px);
}

body:has(.pte-profile-page) .sidebar {
    background: linear-gradient(180deg, #09090a, #050506) !important;
    border-right: 1px solid rgba(255, 31, 70, 0.28);
}

body:has(.pte-profile-page) .nav-scrollable .nav-link,
body:has(.pte-profile-page) .nav-button {
    color: rgba(246, 247, 251, 0.76);
}

    body:has(.pte-profile-page) .nav-scrollable .nav-link:hover,
    body:has(.pte-profile-page) .nav-scrollable .nav-link.active,
    body:has(.pte-profile-page) .nav-button:hover {
        background: rgba(255, 31, 70, 0.16);
        color: #ffffff;
    }

.pte-profile-page h1,
.pte-profile-page h2,
.pte-profile-page h3,
.pte-profile-page strong {
    color: var(--pte-text) !important;
}

.pte-profile-page p,
.pte-profile-page small,
.pte-profile-page .muted,
.pte-profile-page .profile-bio,
.pte-profile-page .league-card-header p,
.pte-profile-page .profile-progress-row-muted,
.pte-profile-page .profile-game-account-card p,
.pte-profile-page .profile-game-account-card .muted {
    color: var(--pte-muted) !important;
}

/* Cards base */
.pte-profile-page .profile-hero-card,
.pte-profile-page .profile-progress-card,
.pte-profile-page .profile-edit-card,
.pte-profile-page .profile-game-accounts-card,
.pte-profile-page .profile-game-account-form,
.pte-profile-page .profile-game-account-card,
.pte-profile-page .profile-stats-grid > div,
.pte-profile-page .profile-toggle,
.pte-profile-page .league-card,
.pte-profile-page .league-form-card,
.pte-profile-page .empty-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.012)), var(--pte-card) !important;
    border: 1px solid var(--pte-border) !important;
    border-radius: 18px !important;
    box-shadow: none !important;
    color: var(--pte-text) !important;
    backdrop-filter: none !important;
}

    /* Remove a faixa portuguesa antiga nos cards do perfil */
    .pte-profile-page .league-card::before,
    .pte-profile-page .league-form-card::before,
    .pte-profile-page .game-card::before,
    .pte-profile-page .history-card::before {
        display: none !important;
    }

/* Hero */
.pte-profile-page .profile-hero-card {
    position: relative;
    overflow: hidden;
    padding: 1.45rem !important;
    border-color: rgba(255, 31, 70, 0.34) !important;
}

    .pte-profile-page .profile-hero-card::before {
        content: "";
        position: absolute;
        inset: 0;
        height: 3px;
        background: linear-gradient(90deg, transparent, var(--pte-red), transparent);
    }

    .pte-profile-page .profile-hero-card::after {
        content: "";
        position: absolute;
        right: -120px;
        top: -120px;
        width: 280px;
        height: 280px;
        background: radial-gradient(circle, rgba(255, 31, 70, 0.18), transparent 62%);
        pointer-events: none;
    }

    .pte-profile-page .profile-hero-main,
    .pte-profile-page .profile-hero-card > button {
        position: relative;
        z-index: 1;
    }

.pte-profile-page .profile-avatar {
    width: 92px !important;
    height: 92px !important;
    flex-basis: 92px !important;
    border-radius: 14px !important;
    background: linear-gradient(135deg, rgba(255, 31, 70, 0.96), rgba(110, 0, 22, 0.98)) !important;
    border: 1px solid rgba(255, 255, 255, 0.13);
    color: #ffffff !important;
    box-shadow: 0 0 0 6px rgba(255, 31, 70, 0.09), 0 18px 38px rgba(0, 0, 0, 0.45) !important;
    text-transform: uppercase;
}

.pte-profile-page .league-title-row h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    letter-spacing: -0.04em;
    line-height: 1;
}

/* Secções */
.pte-profile-page .league-card-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 0.9rem;
    margin-bottom: 1rem;
}

    .pte-profile-page .league-card-header h2 {
        font-size: 1.25rem;
        text-transform: uppercase;
        letter-spacing: -0.02em;
    }

/* Barra de progresso */
.pte-profile-page .profile-progress-track {
    height: 10px !important;
    background: rgba(255, 255, 255, 0.08) !important;
}

.pte-profile-page .profile-progress-fill {
    background: linear-gradient(90deg, var(--pte-red), #ff4968) !important;
    box-shadow: 0 0 18px rgba(255, 31, 70, 0.45);
}

/* Resumo / stats */
.pte-profile-page .profile-stats-grid {
    gap: 1rem !important;
}

    .pte-profile-page .profile-stats-grid > div {
        min-height: 92px;
        display: grid;
        align-content: center;
        position: relative;
        overflow: hidden;
    }

        .pte-profile-page .profile-stats-grid > div::before {
            content: "";
            position: absolute;
            left: 0;
            top: 18px;
            bottom: 18px;
            width: 3px;
            border-radius: 999px;
            background: var(--pte-red);
        }

    .pte-profile-page .profile-stats-grid strong {
        font-size: 1.65rem !important;
        color: var(--pte-red) !important;
        line-height: 1.05;
    }

    .pte-profile-page .profile-stats-grid span,
    .pte-profile-page .profile-stats-grid small {
        color: var(--pte-muted) !important;
        font-size: 0.78rem;
        font-weight: 800;
        text-transform: uppercase;
        letter-spacing: 0.04em;
    }

/* Contas externas */
.pte-profile-page .profile-game-account-card {
    border-radius: 16px !important;
    transition: border-color 0.15s ease, transform 0.15s ease, background 0.15s ease;
}

    .pte-profile-page .profile-game-account-card:hover {
        transform: translateY(-1px);
        border-color: rgba(255, 31, 70, 0.44) !important;
        background: var(--pte-card-soft) !important;
    }

/* Tags */
.pte-profile-page .status-pill,
.pte-profile-page .member-tag,
.pte-profile-page .profile-badge-placeholder {
    background: rgba(255, 31, 70, 0.12) !important;
    border: 1px solid rgba(255, 31, 70, 0.46) !important;
    color: var(--pte-red) !important;
    border-radius: 999px !important;
    font-weight: 900 !important;
}

/* Forms */
.pte-profile-page .form-group label,
.pte-profile-page label {
    color: var(--pte-muted) !important;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-size: 0.74rem;
}

.pte-profile-page .form-control,
.pte-profile-page .form-select,
.pte-profile-page select,
.pte-profile-page input,
.pte-profile-page textarea {
    background: rgba(0, 0, 0, 0.30) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    color: var(--pte-text) !important;
    border-radius: 10px !important;
}

    .pte-profile-page .form-control:focus,
    .pte-profile-page .form-select:focus,
    .pte-profile-page select:focus,
    .pte-profile-page input:focus,
    .pte-profile-page textarea:focus {
        border-color: rgba(255, 31, 70, 0.82) !important;
        box-shadow: 0 0 0 0.18rem rgba(255, 31, 70, 0.18) !important;
    }

.pte-profile-page option {
    background: #111114;
    color: var(--pte-text);
}

/* Botoes */
.pte-profile-page .btn {
    border-radius: 8px !important;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    font-weight: 900 !important;
}

.pte-profile-page .btn-primary {
    background: var(--pte-red) !important;
    border: 1px solid var(--pte-red) !important;
    color: #ffffff !important;
    box-shadow: none !important;
}

    .pte-profile-page .btn-primary:hover {
        background: #ff3659 !important;
        border-color: #ff3659 !important;
        filter: none !important;
    }

.pte-profile-page .btn-outline-primary,
.pte-profile-page .btn-outline-secondary {
    background: rgba(0, 0, 0, 0.22) !important;
    border: 1px solid rgba(255, 255, 255, 0.16) !important;
    color: var(--pte-text) !important;
}

    .pte-profile-page .btn-outline-primary:hover,
    .pte-profile-page .btn-outline-secondary:hover {
        border-color: var(--pte-red) !important;
        color: #ffffff !important;
        background: rgba(255, 31, 70, 0.14) !important;
    }

@media (max-width: 900px) {
    .pte-profile-page {
        margin: -1rem -0.75rem 0 -0.75rem;
        padding: 1rem;
    }

        .pte-profile-page .profile-hero-card {
            padding: 1.1rem !important;
        }

        .pte-profile-page .profile-avatar {
            width: 76px !important;
            height: 76px !important;
            flex-basis: 76px !important;
        }

        .pte-profile-page .profile-stats-grid > div {
            min-height: 78px;
        }
}


/* =========================================================
   FIX LAYOUT APP - Phase 5B
   Mantém sidebar e conteúdo em duas colunas no desktop.
   Mantém comportamento mobile abaixo de 641px.
   ========================================================= */

@media (min-width: 641px) {
    html,
    body {
        width: 100%;
        min-height: 100%;
        overflow-x: hidden;
    }

    .page {
        display: grid !important;
        grid-template-columns: 250px minmax(0, 1fr) !important;
        align-items: stretch !important;
        width: 100% !important;
        min-height: 100vh !important;
        margin: 0 !important;
        padding: 0 !important;
        background: transparent !important;
    }

    .sidebar {
        grid-column: 1 !important;
        grid-row: 1 !important;
        width: 250px !important;
        min-width: 250px !important;
        max-width: 250px !important;
        height: 100vh !important;
        min-height: 100vh !important;
        position: sticky !important;
        top: 0 !important;
        left: 0 !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        z-index: 20 !important;
    }

    .main-content,
    main {
        grid-column: 2 !important;
        grid-row: 1 !important;
        display: block !important;
        width: 100% !important;
        min-width: 0 !important;
        max-width: none !important;
        min-height: 100vh !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow-x: hidden !important;
        background: transparent !important;
    }

        .main-content > .content,
        main > .content,
        article.content {
            display: block !important;
            width: 100% !important;
            min-width: 0 !important;
            max-width: none !important;
            min-height: 100vh !important;
            margin: 0 !important;
            padding-top: 1.5rem !important;
            padding-left: 1.5rem !important;
            padding-right: 1.5rem !important;
            padding-bottom: 1.5rem !important;
            box-sizing: border-box !important;
        }

    .site-theme-loading .content {
        min-height: 100vh !important;
    }

    .site-theme-pelacamisola,
    .site-theme-bighead {
        background: transparent !important;
    }
}

@media (max-width: 640px) {
    .page {
        display: block !important;
        width: 100% !important;
        min-height: 100vh !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .sidebar {
        width: 100% !important;
        min-width: 0 !important;
        max-width: none !important;
        height: auto !important;
        min-height: auto !important;
        position: relative !important;
        top: auto !important;
        left: auto !important;
        overflow: visible !important;
    }

    .main-content,
    main {
        width: 100% !important;
        min-width: 0 !important;
        min-height: auto !important;
        margin: 0 !important;
        padding: 0 !important;
    }

        .main-content > .content,
        main > .content,
        article.content {
            width: 100% !important;
            margin: 0 !important;
            padding-left: 0.75rem !important;
            padding-right: 0.75rem !important;
            box-sizing: border-box !important;
        }
}

/* Notificacoes */
.notification-list {
    display: grid;
    gap: 0.85rem;
}

.notification-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 1rem;
    align-items: center;
    padding: 1rem;
    border-radius: 18px;
    background: var(--card-bg);
    border: 1px solid rgba(23, 33, 27, 0.08);
    box-shadow: 0 12px 30px rgba(23, 33, 27, 0.08);
}

.notification-card-unread {
    border-color: rgba(4, 106, 56, 0.22);
    background: rgba(255, 255, 255, 0.96);
}

.notification-title-row {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex-wrap: wrap;
    margin-bottom: 0.25rem;
}

    .notification-title-row h2 {
        margin: 0;
        font-size: 1.05rem;
        font-weight: 900;
        color: var(--portugal-dark);
    }

.notification-card p {
    margin: 0.25rem 0 0;
    color: var(--text-primary);
}

.notification-meta {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 0.55rem;
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-weight: 700;
}

.notification-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.notification-empty {
    text-align: center;
}

@media (max-width: 720px) {
    .notification-card {
        grid-template-columns: 1fr;
    }

    .notification-actions {
        justify-content: flex-start;
    }
}


/* Convites directos */
.league-invitation-form {
    display: grid;
    grid-template-columns: minmax(240px, 1fr) auto;
    gap: 1rem;
    align-items: end;
}

    .league-invitation-form .form-group {
        margin-bottom: 0;
    }

.invitation-list {
    display: grid;
    gap: 0.85rem;
}

.invitation-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 1rem;
    align-items: center;
    background: var(--card-bg);
    border: 1px solid rgba(23, 33, 27, 0.08);
    border-radius: 18px;
    padding: 1rem;
    box-shadow: 0 12px 32px rgba(23, 33, 27, 0.09);
}

.invitation-card-pending {
    border-color: rgba(255, 204, 51, 0.45);
}

.invitation-card h2 {
    margin: 0;
    color: var(--portugal-dark);
    font-size: 1.05rem;
    font-weight: 900;
}

.invitation-card p {
    margin: 0.45rem 0;
    color: var(--text-secondary);
}

.invitation-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.invitation-empty {
    text-align: center;
}

@media (max-width: 760px) {
    .league-invitation-form,
    .invitation-card {
        grid-template-columns: 1fr;
    }

    .invitation-actions {
        justify-content: flex-start;
    }
}

/* Wallet / BigCoins acquisition */
.wallet-section-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.coin-package-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
}

.coin-package-card {
    border: 1px solid rgba(23, 33, 27, 0.12);
    border-radius: 16px;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.85);
    box-shadow: 0 10px 24px rgba(23, 33, 27, 0.08);
}

    .coin-package-card div {
        display: flex;
        flex-direction: column;
        gap: 0.25rem;
        margin-bottom: 0.75rem;
    }

    .coin-package-card strong {
        font-size: 1.05rem;
    }

    .coin-package-card span {
        color: var(--portugal-dark, #102a1f);
        font-weight: 800;
    }

    .coin-package-card p {
        margin-bottom: 0.9rem;
        color: rgba(23, 33, 27, 0.72);
        font-weight: 700;
    }

.wallet-row-actions {
    display: inline-flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.wallet-admin-panel {
    border-style: dashed;
}

/* =========================================================
   Phase 9A - Tema visual global BigHead
   Scope: .site-theme-bighead / .site-vertical-bighead
   ========================================================= */

:root {
    --pubg-bg: #050506;
    --pubg-bg-soft: #0d0d10;
    --pubg-card: rgba(18, 18, 21, 0.96);
    --pubg-card-soft: rgba(25, 25, 30, 0.96);
    --pubg-border: rgba(255, 255, 255, 0.11);
    --pubg-border-red: rgba(255, 31, 70, 0.46);
    --pubg-red: #ff1f46;
    --pubg-orange: #ff7a1c;
    --pubg-gold: #ffcc33;
    --pubg-text: #f6f7fb;
    --pubg-muted: rgba(246, 247, 251, 0.66);
    --pubg-muted-soft: rgba(246, 247, 251, 0.44);
}

body:has(.site-theme-bighead) {
    color: var(--pubg-text);
    background: radial-gradient(circle at 18% 0%, rgba(255, 31, 70, 0.18), transparent 34%), radial-gradient(circle at 86% 10%, rgba(255, 122, 28, 0.10), transparent 30%), linear-gradient(180deg, #080809 0%, #030304 100%) !important;
}

.site-theme-bighead {
    --page-bg: var(--pubg-bg);
    --card-bg: var(--pubg-card);
    --card-border: var(--pubg-border);
    --text-primary: var(--pubg-text);
    --text-secondary: var(--pubg-muted);
    --portugal-green: var(--pubg-red);
    --portugal-red: var(--pubg-orange);
    --portugal-gold: var(--pubg-gold);
    --portugal-dark: var(--pubg-text);
    color: var(--pubg-text);
}

    .site-theme-bighead a,
    .site-theme-bighead .btn-link {
        color: var(--pubg-red);
    }

    .site-theme-bighead .page-header h1,
    .site-theme-bighead .league-card-header h2,
    .site-theme-bighead .league-grid strong,
    .site-theme-bighead .league-member-row strong,
    .site-theme-bighead .admin-card h2,
    .site-theme-bighead .notification-title-row h2,
    .site-theme-bighead .invitation-card h2,
    .site-theme-bighead .tournament-player-primary,
    .site-theme-bighead .tournament-standings-player strong,
    .site-theme-bighead .tournament-podium-card strong,
    .site-theme-bighead .tournament-team-card-header strong,
    .site-theme-bighead .tournament-team-slot-main strong,
    .site-theme-bighead .profile-game-account-title strong {
        color: var(--pubg-text) !important;
    }

    .site-theme-bighead .page-header p,
    .site-theme-bighead .muted,
    .site-theme-bighead .league-card-header p,
    .site-theme-bighead .league-label,
    .site-theme-bighead .league-member-row span,
    .site-theme-bighead .notification-meta,
    .site-theme-bighead .invitation-card p,
    .site-theme-bighead .tournament-player-secondary,
    .site-theme-bighead .tournament-standings-player small,
    .site-theme-bighead .tournament-podium-card small,
    .site-theme-bighead .tournament-team-card-header span,
    .site-theme-bighead .tournament-team-slot-main span,
    .site-theme-bighead .profile-game-account-card p,
    .site-theme-bighead .profile-game-account-card .muted {
        color: var(--pubg-muted) !important;
    }

    .site-theme-bighead .btn {
        border-radius: 9px;
        font-weight: 900;
    }

    .site-theme-bighead .btn-primary {
        background: linear-gradient(135deg, var(--pubg-red), #9d1028) !important;
        border: 1px solid rgba(255, 31, 70, 0.80) !important;
        color: #ffffff !important;
        box-shadow: 0 14px 30px rgba(255, 31, 70, 0.16) !important;
    }

        .site-theme-bighead .btn-primary:hover {
            filter: none;
            background: linear-gradient(135deg, #ff3659, #b81331) !important;
            border-color: rgba(255, 31, 70, 0.96) !important;
        }

    .site-theme-bighead .btn-outline-primary,
    .site-theme-bighead .btn-outline-secondary {
        background: rgba(18, 18, 21, 0.72) !important;
        border: 1px solid rgba(255, 255, 255, 0.16) !important;
        color: var(--pubg-text) !important;
    }

        .site-theme-bighead .btn-outline-primary:hover,
        .site-theme-bighead .btn-outline-secondary:hover {
            background: rgba(255, 31, 70, 0.14) !important;
            border-color: rgba(255, 31, 70, 0.60) !important;
            color: #ffffff !important;
        }

    .site-theme-bighead .form-control,
    .site-theme-bighead .form-select,
    .site-theme-bighead select,
    .site-theme-bighead input,
    .site-theme-bighead textarea {
        background: rgba(0, 0, 0, 0.32) !important;
        border-color: rgba(255, 255, 255, 0.13) !important;
        color: var(--pubg-text) !important;
    }

        .site-theme-bighead .form-control:focus,
        .site-theme-bighead .form-select:focus,
        .site-theme-bighead select:focus,
        .site-theme-bighead input:focus,
        .site-theme-bighead textarea:focus {
            border-color: rgba(255, 31, 70, 0.82) !important;
            box-shadow: 0 0 0 0.18rem rgba(255, 31, 70, 0.18) !important;
        }

    .site-theme-bighead option {
        background: #111114;
        color: var(--pubg-text);
    }

    .site-theme-bighead .game-card,
    .site-theme-bighead .leaderboard-card,
    .site-theme-bighead .empty-card,
    .site-theme-bighead .admin-card,
    .site-theme-bighead .league-card,
    .site-theme-bighead .league-form-card,
    .site-theme-bighead .league-hub-card,
    .site-theme-bighead .history-card,
    .site-theme-bighead .notification-card,
    .site-theme-bighead .invitation-card,
    .site-theme-bighead .coin-package-card,
    .site-theme-bighead .tournament-standings-card,
    .site-theme-bighead .tournament-team-card,
    .site-theme-bighead .profile-hero-card,
    .site-theme-bighead .profile-progress-card,
    .site-theme-bighead .profile-edit-card,
    .site-theme-bighead .profile-game-accounts-card,
    .site-theme-bighead .profile-game-account-form,
    .site-theme-bighead .profile-game-account-card {
        background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.012)), var(--pubg-card) !important;
        border: 1px solid var(--pubg-border) !important;
        color: var(--pubg-text) !important;
        box-shadow: none !important;
        backdrop-filter: none !important;
    }

        .site-theme-bighead .league-card::before,
        .site-theme-bighead .game-card::before,
        .site-theme-bighead .history-card::before,
        .site-theme-bighead .league-hub-card::before,
        .site-theme-bighead .vertical-home-card::before {
            background: linear-gradient(90deg, transparent, var(--pubg-red), transparent) !important;
        }

    .site-theme-bighead .league-grid > div,
    .site-theme-bighead .league-hub-stats > div,
    .site-theme-bighead .league-member-row,
    .site-theme-bighead .competition-option,
    .site-theme-bighead .audit-row,
    .site-theme-bighead .profile-stats-grid > div,
    .site-theme-bighead .profile-toggle,
    .site-theme-bighead .tournament-team-slot,
    .site-theme-bighead .tournament-standings-row,
    .site-theme-bighead .tournament-detail-row:nth-child(even),
    .site-theme-bighead .profile-game-account-card,
    .site-theme-bighead .profile-game-account-form {
        background: rgba(255, 255, 255, 0.045) !important;
        border-color: rgba(255, 255, 255, 0.10) !important;
        color: var(--pubg-text) !important;
    }

    .site-theme-bighead .status-pill,
    .site-theme-bighead .member-tag,
    .site-theme-bighead .invite-code,
    .site-theme-bighead .profile-badge-placeholder {
        background: rgba(255, 31, 70, 0.12) !important;
        border: 1px solid rgba(255, 31, 70, 0.44) !important;
        color: var(--pubg-red) !important;
    }

    .site-theme-bighead .alert-warning {
        background: rgba(255, 204, 51, 0.10);
        border-color: rgba(255, 204, 51, 0.30);
        color: #ffe8a3;
    }

    .site-theme-bighead .alert-danger {
        background: rgba(255, 31, 70, 0.12);
        border-color: rgba(255, 31, 70, 0.32);
        color: #ffc9d2;
    }

    /* Auth pages */
    .site-theme-bighead .auth-page,
    .auth-page.auth-page-bighead {
        min-height: calc(100vh - 3rem);
        margin: -1.5rem -1.5rem 0 -1.5rem;
        padding: 2rem;
        background: radial-gradient(circle at 20% 0%, rgba(255, 31, 70, 0.20), transparent 34%), radial-gradient(circle at 84% 12%, rgba(255, 122, 28, 0.10), transparent 32%), linear-gradient(180deg, #080809 0%, #030304 100%);
    }

    .site-theme-bighead .auth-card,
    .auth-page-bighead .auth-card {
        max-width: 460px;
        background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.018)), rgba(18, 18, 21, 0.97) !important;
        border: 1px solid rgba(255, 31, 70, 0.34) !important;
        border-radius: 18px;
        color: var(--pubg-text);
        box-shadow: 0 24px 80px rgba(0, 0, 0, 0.48) !important;
    }

.auth-kicker {
    display: inline-flex;
    margin-bottom: 0.75rem;
    border-radius: 999px;
    padding: 0.32rem 0.7rem;
    font-size: 0.72rem;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.auth-page-pelacamisola .auth-kicker {
    color: var(--portugal-green);
    background: rgba(4, 106, 56, 0.10);
    border: 1px solid rgba(4, 106, 56, 0.24);
}

.site-theme-bighead .auth-kicker,
.auth-page-bighead .auth-kicker {
    color: var(--pubg-red);
    background: rgba(255, 31, 70, 0.12);
    border: 1px solid rgba(255, 31, 70, 0.40);
}

.site-theme-bighead .auth-card h1,
.auth-page-bighead .auth-card h1 {
    color: var(--pubg-text) !important;
    font-size: clamp(2rem, 4vw, 2.75rem);
    letter-spacing: -0.05em;
    line-height: 1;
}

.site-theme-bighead .auth-card p,
.auth-page-bighead .auth-card p {
    color: var(--pubg-muted) !important;
}

.site-theme-bighead .auth-card label,
.auth-page-bighead .auth-card label {
    color: var(--pubg-muted) !important;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-size: 0.74rem;
}

@media (max-width: 640px) {
    .site-theme-bighead .auth-page,
    .auth-page.auth-page-bighead {
        margin: -1rem -0.75rem 0 -0.75rem;
        padding: 1rem;
    }
}

/* My Tournaments */
.my-tournaments-actions-header {
    flex-wrap: wrap;
}

.my-tournaments-section {
    display: grid;
    gap: 0.9rem;
    margin-top: 1.2rem;
}

.my-tournaments-section-header {
    margin-bottom: 0;
}

.my-tournaments-grid {
    display: grid;
    gap: 1rem;
}

.my-tournament-card {
    position: relative;
}

.my-tournament-grid-details {
    margin-top: 0.75rem;
}

.my-tournament-card-actions {
    margin: 1rem 0 0;
    justify-content: flex-start;
}

.my-tournament-card-active {
    border-color: rgba(0, 208, 132, 0.64) !important;
    animation: myTournamentActivePulse 2.2s ease-in-out infinite;
}

    .my-tournament-card-active::before {
        background: linear-gradient(90deg, transparent, #00d084, transparent) !important;
    }

.my-tournament-status-active {
    background: rgba(0, 208, 132, 0.12) !important;
    border-color: rgba(0, 208, 132, 0.48) !important;
    color: #00d084 !important;
}

@keyframes myTournamentActivePulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(0, 208, 132, 0.00), 0 0 0 1px rgba(0, 208, 132, 0.18) !important;
    }

    50% {
        box-shadow: 0 0 0 4px rgba(0, 208, 132, 0.10), 0 0 28px rgba(0, 208, 132, 0.18) !important;
    }
}

.site-theme-bighead .my-tournament-card-active {
    border-color: rgba(0, 208, 132, 0.74) !important;
}

    .site-theme-bighead .my-tournament-card-active::before {
        background: linear-gradient(90deg, transparent, #00d084, transparent) !important;
    }

@media (max-width: 640px) {
    .my-tournament-card-actions {
        align-items: stretch;
    }

        .my-tournament-card-actions .btn {
            width: 100%;
        }
}

/* FIX My Tournaments active card pulse - stronger visible green ring */
.my-tournament-card-active {
    position: relative !important;
    isolation: isolate;
    border-color: rgba(0, 208, 132, 0.86) !important;
    box-shadow: 0 0 0 1px rgba(0, 208, 132, 0.22), 0 14px 40px rgba(0, 0, 0, 0.18) !important;
    animation: none !important;
}

    .my-tournament-card-active::after {
        content: "";
        position: absolute;
        inset: 0;
        z-index: 1;
        pointer-events: none;
        border-radius: inherit;
        border: 2px solid rgba(0, 208, 132, 0.92);
        box-shadow: 0 0 0 0 rgba(0, 208, 132, 0.00), 0 0 18px rgba(0, 208, 132, 0.20);
        opacity: 0.58;
        animation: myTournamentGreenRingPulse 1.45s ease-in-out infinite;
    }

    .my-tournament-card-active > * {
        position: relative;
        z-index: 2;
    }

@keyframes myTournamentGreenRingPulse {
    0%, 100% {
        opacity: 0.48;
        box-shadow: 0 0 0 0 rgba(0, 208, 132, 0.00), 0 0 14px rgba(0, 208, 132, 0.14);
    }

    50% {
        opacity: 1;
        box-shadow: 0 0 0 7px rgba(0, 208, 132, 0.16), 0 0 34px rgba(0, 208, 132, 0.38);
    }
}

.site-theme-bighead .my-tournament-card-active,
.site-vertical-bighead .my-tournament-card-active {
    border-color: rgba(0, 255, 140, 0.90) !important;
}

    .site-theme-bighead .my-tournament-card-active::after,
    .site-vertical-bighead .my-tournament-card-active::after {
        border-color: rgba(0, 255, 140, 0.95);
        animation: myTournamentGreenRingPulse 1.45s ease-in-out infinite;
    }

/* Tiers */
.tier-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 0.35rem 0.75rem;
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.02em;
    background: rgba(23, 33, 27, 0.08);
    color: var(--text-primary);
    border: 1px solid rgba(23, 33, 27, 0.10);
}

.tier-badge-free {
    background: rgba(23, 33, 27, 0.08);
    color: var(--text-secondary);
}

.tier-badge-tier-1 {
    background: rgba(4, 106, 56, 0.12);
    color: var(--portugal-green);
}

.tier-badge-tier-2 {
    background: rgba(255, 204, 51, 0.24);
    color: #7a5a00;
}

.tier-badge-tier-3 {
    background: rgba(218, 41, 28, 0.12);
    color: var(--portugal-red);
}

.tier-badge-premium-organizer {
    background: linear-gradient(135deg, rgba(255, 204, 51, 0.32), rgba(4, 106, 56, 0.18));
    color: var(--portugal-dark);
    border-color: rgba(255, 204, 51, 0.48);
}

.tier-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
    align-items: stretch;
}

.tier-current-card,
.tier-profile-card {
    margin-bottom: 1rem;
}

.tier-plan-card {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.tier-plan-card-current {
    border-color: rgba(255, 204, 51, 0.60);
    box-shadow: 0 18px 46px rgba(255, 204, 51, 0.16);
}

.tier-benefits-grid,
.tier-benefits-list {
    display: grid;
    gap: 0.75rem;
}

.tier-benefits-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

    .tier-benefits-grid > div,
    .tier-benefits-list > div {
        padding: 0.85rem;
        border-radius: 14px;
        background: rgba(255, 255, 255, 0.62);
        border: 1px solid rgba(23, 33, 27, 0.08);
    }

    .tier-benefits-grid strong,
    .tier-benefits-list strong {
        display: block;
        color: var(--portugal-dark);
        font-size: 0.95rem;
    }

@media (max-width: 900px) {
    .tier-benefits-grid {
        grid-template-columns: 1fr;
    }
}

/* Tickets */
.ticket-balance-panel {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
    margin-top: 1rem;
}

    .ticket-balance-panel > div {
        padding: 0.95rem;
        border-radius: 16px;
        background: rgba(255, 255, 255, 0.62);
        border: 1px solid rgba(23, 33, 27, 0.08);
    }

    .ticket-balance-panel strong {
        display: block;
        color: var(--portugal-dark);
        font-size: 1.35rem;
        line-height: 1.1;
    }

    .ticket-balance-panel small {
        display: block;
        margin-top: 0.25rem;
        color: var(--text-secondary);
        font-size: 0.78rem;
        font-weight: 700;
    }

.site-theme-bighead .ticket-balance-panel > div,
.pte-profile-page .ticket-balance-panel > div {
    background: rgba(255, 255, 255, 0.045) !important;
    border-color: rgba(255, 255, 255, 0.10) !important;
}

.site-theme-bighead .ticket-balance-panel strong,
.pte-profile-page .ticket-balance-panel strong {
    color: var(--pubg-red, #ff1f46) !important;
}

.site-theme-bighead .ticket-balance-panel small,
.pte-profile-page .ticket-balance-panel small {
    color: var(--pubg-muted, rgba(246, 247, 251, 0.66)) !important;
}

@media (max-width: 900px) {
    .ticket-balance-panel {
        grid-template-columns: 1fr;
    }
}

/* Tier UX locks - tournament creation */
.tier-lock-panel {
    display: grid;
    gap: 0.9rem;
    margin: 1rem 0;
    padding: 1rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.70);
    border: 1px solid rgba(23, 33, 27, 0.08);
}

.tier-lock-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.tier-lock-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.75rem;
}

    .tier-lock-grid > div {
        padding: 0.8rem;
        border-radius: 14px;
        background: rgba(255, 255, 255, 0.66);
        border: 1px solid rgba(23, 33, 27, 0.08);
    }

    .tier-lock-grid strong {
        display: block;
        color: var(--portugal-dark);
        font-size: 0.95rem;
    }

    .tier-lock-grid small {
        display: block;
        margin-top: 0.2rem;
        color: var(--text-secondary);
        font-size: 0.78rem;
    }

.tier-locked-option {
    opacity: 0.74;
    border-style: dashed !important;
}

.tier-lock-warning {
    background: rgba(255, 204, 51, 0.18) !important;
    border-color: rgba(255, 204, 51, 0.42) !important;
    color: #7a5a00 !important;
}

.site-theme-bighead .tier-lock-panel,
.site-theme-bighead .tier-lock-grid > div {
    background: rgba(255, 255, 255, 0.045) !important;
    border-color: rgba(255, 255, 255, 0.10) !important;
}

.site-theme-bighead .tier-lock-grid strong {
    color: var(--pubg-text) !important;
}

.site-theme-bighead .tier-lock-grid small {
    color: var(--pubg-muted) !important;
}

.site-theme-bighead .tier-locked-option {
    border-color: rgba(255, 31, 70, 0.36) !important;
}

@media (max-width: 1100px) {
    .tier-lock-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .tier-lock-header,
    .tier-lock-grid {
        grid-template-columns: 1fr;
    }
}

/* Official / Custom tournament scope */
.official-scope-panel {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(23, 33, 27, 0.08);
}

.official-scope-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.official-scope-option {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.75rem;
    align-items: flex-start;
    padding: 0.85rem;
    border-radius: 16px;
    border: 1px solid rgba(23, 33, 27, 0.10);
    background: rgba(255, 255, 255, 0.66);
    cursor: pointer;
}

    .official-scope-option input {
        margin-top: 0.2rem;
    }

    .official-scope-option strong {
        display: block;
        color: var(--portugal-dark);
    }

    .official-scope-option small {
        display: block;
        margin-top: 0.2rem;
        color: var(--text-secondary);
        font-size: 0.78rem;
    }

.official-scope-option-selected {
    border-color: rgba(4, 106, 56, 0.36);
    background: rgba(4, 106, 56, 0.08);
}

.tournament-scope-badge {
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.tournament-scope-official {
    background: rgba(255, 204, 51, 0.24);
    color: #6f5200;
    border-color: rgba(255, 204, 51, 0.48);
}

.tournament-scope-custom {
    background: rgba(4, 106, 56, 0.10);
    color: var(--portugal-green);
    border-color: rgba(4, 106, 56, 0.22);
}

@media (max-width: 760px) {
    .official-scope-options {
        grid-template-columns: 1fr;
    }
}


/* PUBG ranking scope */
.pubg-ranking-scope-panel {
    display: grid;
    gap: 0.45rem;
    margin-bottom: 1rem;
    padding: 0.9rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.62);
    border: 1px solid rgba(23, 33, 27, 0.08);
}

.pubg-ranking-scope-tabs {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.pubg-ranking-scope-panel small {
    color: var(--text-secondary);
    font-weight: 700;
}

/* Official events */
.official-events-header {
    align-items: flex-start;
}

.official-events-grid {
    display: grid;
    gap: 1rem;
}

.official-event-card {
    display: grid;
    gap: 1rem;
}

.official-event-title-row {
    display: flex;
    gap: 0.65rem;
    align-items: center;
    flex-wrap: wrap;
}

    .official-event-title-row h2 {
        margin: 0;
    }

.official-event-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 0.25rem 0.65rem;
    font-size: 0.76rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.official-event-status-draft {
    background: rgba(23, 33, 27, 0.08);
    color: var(--text-secondary);
}

.official-event-status-active {
    background: rgba(4, 120, 87, 0.14);
    color: var(--success);
}

.official-event-status-finished {
    background: rgba(255, 204, 51, 0.20);
    color: #7a5a00;
}

.official-event-status-cancelled {
    background: rgba(198, 40, 40, 0.12);
    color: var(--danger);
}

.official-event-meta-grid {
    margin-top: 0;
}

.official-event-text-block {
    padding: 0.85rem;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.62);
    border: 1px solid rgba(23, 33, 27, 0.08);
}

    .official-event-text-block p {
        margin: 0.25rem 0 0;
        color: var(--text-primary);
    }

.official-event-card-actions,
.official-event-form-actions {
    flex-wrap: wrap;
    margin-bottom: 0;
}

.official-event-form-card {
    margin-bottom: 1.25rem;
}

/* Official events - event ranking */
.official-event-ranking-panel {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 18px;
    background: rgba(4, 106, 56, 0.06);
    border: 1px solid rgba(4, 106, 56, 0.12);
}

.official-event-ranking-header {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: flex-start;
    margin-bottom: 0.8rem;
}

    .official-event-ranking-header h3 {
        margin: 0;
        color: var(--portugal-dark);
        font-size: 1.05rem;
        font-weight: 900;
    }

    .official-event-ranking-header p {
        margin: 0.25rem 0 0;
        color: var(--text-secondary);
        font-size: 0.86rem;
    }

.official-event-ranking-empty {
    margin: 0;
    box-shadow: none;
}

.official-event-ranking-table {
    display: grid;
    gap: 0.45rem;
}

.official-event-ranking-row {
    display: grid;
    grid-template-columns: 3rem minmax(14rem, 1fr) 6rem 5rem 5rem 6rem 7rem;
    gap: 0.75rem;
    align-items: center;
    padding: 0.75rem 0.85rem;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.70);
    border: 1px solid rgba(23, 33, 27, 0.08);
}

.official-event-ranking-row-head {
    background: rgba(4, 106, 56, 0.10);
    color: var(--text-secondary);
    font-size: 0.75rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.official-event-rank {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 28px;
    border-radius: 9px;
    background: rgba(4, 106, 56, 0.12);
    color: var(--portugal-green);
    font-weight: 900;
}

.official-event-ranking-player {
    min-width: 0;
}

    .official-event-ranking-player strong {
        display: block;
        color: var(--portugal-dark);
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .official-event-ranking-player small {
        display: block;
        margin-top: 0.15rem;
        color: var(--text-secondary);
        font-size: 0.78rem;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

@media (max-width: 900px) {
    .official-event-ranking-row {
        grid-template-columns: 3rem minmax(10rem, 1fr) 5rem 5rem;
    }

        .official-event-ranking-row > span:nth-child(5),
        .official-event-ranking-row > span:nth-child(6),
        .official-event-ranking-row > span:nth-child(7),
        .official-event-ranking-row-head > span:nth-child(5),
        .official-event-ranking-row-head > span:nth-child(6),
        .official-event-ranking-row-head > span:nth-child(7) {
            display: none;
        }
}

@media (max-width: 640px) {
    .official-event-ranking-row {
        grid-template-columns: 2.6rem minmax(0, 1fr);
    }

        .official-event-ranking-row > span:nth-child(3),
        .official-event-ranking-row > span:nth-child(4),
        .official-event-ranking-row-head > span:nth-child(3),
        .official-event-ranking-row-head > span:nth-child(4) {
            display: none;
        }
}

/* Official Events - winners and prize positions */
.official-event-finalized-note {
    margin: 0.75rem 0;
    padding: 0.75rem 0.9rem;
    border-radius: 14px;
    background: rgba(4, 120, 87, 0.10);
    border: 1px solid rgba(4, 120, 87, 0.18);
    color: var(--success);
    font-size: 0.86rem;
    font-weight: 800;
}

    .official-event-finalized-note span {
        color: var(--text-secondary);
        font-weight: 700;
    }

.official-event-prize-panel,
.official-event-winners-panel {
    margin-top: 1rem;
}

.official-event-prize-form {
    display: grid;
    gap: 0.75rem;
}

.official-event-prize-row {
    display: grid;
    grid-template-columns: 90px minmax(160px, 0.5fr) minmax(220px, 1fr) auto;
    gap: 0.75rem;
    align-items: end;
    padding: 0.85rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.62);
    border: 1px solid rgba(23, 33, 27, 0.08);
}

    .official-event-prize-row .form-group {
        margin-bottom: 0;
    }

.official-event-prize-description-field {
    min-width: 0;
}

.official-event-winners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.85rem;
}

.official-event-winner-card {
    display: grid;
    gap: 0.45rem;
    padding: 1rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(23, 33, 27, 0.08);
    box-shadow: 0 10px 24px rgba(23, 33, 27, 0.08);
}

    .official-event-winner-card strong {
        display: block;
        color: var(--portugal-dark);
        font-size: 1rem;
    }

    .official-event-winner-card small {
        display: block;
        color: var(--text-secondary);
        font-size: 0.78rem;
    }

.official-event-winner-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

    .official-event-winner-stats span {
        border-radius: 999px;
        padding: 0.25rem 0.55rem;
        background: rgba(4, 106, 56, 0.10);
        color: var(--portugal-green);
        font-size: 0.76rem;
        font-weight: 800;
    }

.official-event-winner-prize {
    margin-top: 0.35rem;
    padding-top: 0.65rem;
    border-top: 1px solid rgba(23, 33, 27, 0.08);
}

    .official-event-winner-prize p {
        margin: 0.2rem 0 0;
        color: var(--text-secondary);
        font-size: 0.82rem;
    }

@media (max-width: 900px) {
    .official-event-prize-row {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   Estatísticas avançadas PUBG
   Identidade à esquerda, visual ao centro e dados à direita.
   ========================================================= */
.advanced-stats-page {
    display: grid;
    gap: 1rem;
}

.advanced-stats-header {
    align-items: center;
}

.advanced-stats-shell {
    display: grid;
    grid-template-columns: minmax(230px, 0.78fr) minmax(380px, 1.42fr) minmax(310px, 1fr);
    gap: 1rem;
    align-items: stretch;
}

.advanced-stats-panel {
    min-width: 0;
    border-radius: 20px;
    padding: 1rem;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.012)), var(--pubg-card, rgba(18, 18, 21, 0.96));
    border: 1px solid var(--pubg-border, rgba(255, 255, 255, 0.11));
    color: var(--pubg-text, #f6f7fb);
}

.advanced-stats-identity {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
}

.advanced-avatar-stage {
    position: relative;
    display: grid;
    place-items: center;
    width: min(100%, 300px);
    aspect-ratio: 2 / 3;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 18px;
    background: radial-gradient(circle at 50% 34%, rgba(255, 31, 70, 0.18), transparent 38%), linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018));
    border: 1px solid rgba(255, 255, 255, 0.11);
}

    .advanced-avatar-stage::after {
        content: "";
        position: absolute;
        left: 10%;
        right: 10%;
        bottom: 4%;
        height: 10%;
        border-radius: 50%;
        background: radial-gradient(ellipse, rgba(0, 0, 0, 0.56), transparent 70%);
        pointer-events: none;
    }

.advanced-avatar-image {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center bottom;
}

.advanced-avatar-placeholder {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 0.55rem;
    width: 72%;
    height: 84%;
    border-radius: 48% 48% 18% 18%;
    background: linear-gradient(180deg, rgba(255, 31, 70, 0.40), rgba(69, 7, 20, 0.82));
    box-shadow: 0 22px 44px rgba(0, 0, 0, 0.36);
}

    .advanced-avatar-placeholder span {
        color: #ffffff;
        font-size: clamp(2rem, 6vw, 4rem);
        font-weight: 950;
        letter-spacing: -0.05em;
    }

    .advanced-avatar-placeholder small {
        color: rgba(255, 255, 255, 0.54);
        font-size: 0.72rem;
        font-weight: 800;
    }

.advanced-identity-copy {
    display: grid;
    justify-items: start;
    gap: 0.35rem;
}

.advanced-identity-kicker {
    color: var(--pubg-red, #ff1f46);
    font-size: 0.72rem;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.advanced-identity-copy h2 {
    max-width: 100%;
    margin: 0;
    color: var(--pubg-text, #f6f7fb);
    font-size: clamp(1.35rem, 2vw, 1.9rem);
    font-weight: 950;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.advanced-identity-copy p {
    margin: 0 0 0.35rem;
    color: var(--pubg-muted, rgba(246, 247, 251, 0.66));
    font-size: 0.84rem;
}

.advanced-avatar-customize {
    width: 100%;
    margin-top: auto;
}

.advanced-stats-visual {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.advanced-stats-tabs {
    display: flex;
    gap: 0.45rem;
    max-width: 100%;
    padding-bottom: 0.25rem;
    overflow-x: auto;
    scrollbar-width: thin;
}

.advanced-stats-tab {
    appearance: none;
    flex: 0 0 auto;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 9px;
    padding: 0.55rem 0.8rem;
    background: rgba(255, 255, 255, 0.035);
    color: var(--pubg-muted, rgba(246, 247, 251, 0.66));
    font: inherit;
    font-size: 0.78rem;
    font-weight: 900;
    cursor: pointer;
    transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

    .advanced-stats-tab:hover {
        border-color: rgba(255, 31, 70, 0.48);
        color: #ffffff;
    }

.advanced-stats-tab-active {
    background: rgba(255, 31, 70, 0.15);
    border-color: rgba(255, 31, 70, 0.72);
    color: #ffffff;
}

.advanced-visual-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

    .advanced-visual-heading h2 {
        margin: 0.15rem 0 0;
        color: var(--pubg-text, #f6f7fb);
        font-size: 1.25rem;
        font-weight: 950;
    }

.advanced-sample-pill {
    flex: 0 0 auto;
    border-radius: 999px;
    padding: 0.35rem 0.65rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.10);
    color: var(--pubg-muted, rgba(246, 247, 251, 0.66));
    font-size: 0.74rem;
    font-weight: 800;
}

.advanced-stats-data {
    display: grid;
    align-content: start;
    gap: 1.1rem;
}

.advanced-data-section {
    display: grid;
    gap: 0.7rem;
}

.advanced-records-section {
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.09);
}

.advanced-data-heading {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 0.7rem;
}

    .advanced-data-heading h2 {
        margin: 0;
        color: var(--pubg-text, #f6f7fb);
        font-size: 0.98rem;
        font-weight: 950;
        text-transform: uppercase;
        letter-spacing: 0.035em;
    }

    .advanced-data-heading span {
        color: var(--pubg-red, #ff1f46);
        font-size: 0.74rem;
        font-weight: 850;
    }

.advanced-data-list {
    display: grid;
}

.advanced-data-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    min-height: 34px;
    padding: 0.42rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.065);
}

    .advanced-data-row:last-child {
        border-bottom: 0;
    }

    .advanced-data-row span {
        color: var(--pubg-muted, rgba(246, 247, 251, 0.66));
        font-size: 0.78rem;
        font-weight: 750;
    }

    .advanced-data-row strong {
        max-width: 58%;
        color: var(--pubg-text, #f6f7fb) !important;
        font-size: 0.84rem;
        font-weight: 950;
        text-align: right;
        overflow-wrap: anywhere;
    }

.site-theme-bighead .advanced-stats-panel {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.012)), var(--pubg-card) !important;
    border-color: var(--pubg-border) !important;
}

@media (max-width: 1180px) {
    .advanced-stats-shell {
        grid-template-columns: minmax(230px, 0.72fr) minmax(0, 1.28fr);
    }

    .advanced-stats-data {
        grid-column: 1 / -1;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .advanced-records-section {
        padding-top: 0;
        padding-left: 1rem;
        border-top: 0;
        border-left: 1px solid rgba(255, 255, 255, 0.09);
    }
}

@media (max-width: 720px) {
    .advanced-stats-shell {
        grid-template-columns: 1fr;
    }

    .advanced-stats-data {
        grid-column: auto;
        grid-template-columns: 1fr;
    }

    .advanced-records-section {
        padding-top: 1rem;
        padding-left: 0;
        border-top: 1px solid rgba(255, 255, 255, 0.09);
        border-left: 0;
    }

    .advanced-avatar-stage {
        width: min(100%, 220px);
    }

    .advanced-visual-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.55rem;
    }

    .advanced-sample-pill {
        align-self: flex-start;
    }
}

/* =========================================================
   Estatísticas avançadas PUBG - acabamento visual v2
   ========================================================= */
.advanced-stats-visual {
    overflow: hidden;
}

.advanced-stats-tabs {
    padding: 0.05rem 0 0.45rem;
}

.advanced-visual-heading {
    min-width: 0;
    padding-bottom: 0.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

    .advanced-visual-heading > div {
        min-width: 0;
    }

    .advanced-visual-heading h2 {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

.advanced-data-heading {
    display: grid;
    justify-items: start;
    align-items: start;
    gap: 0.35rem;
}

    .advanced-data-heading h2 {
        max-width: 100%;
        line-height: 1.15;
        overflow-wrap: anywhere;
    }

.advanced-data-scope {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    border-radius: 999px;
    padding: 0.22rem 0.55rem;
    background: rgba(255, 31, 70, 0.11);
    border: 1px solid rgba(255, 31, 70, 0.30);
    color: var(--pubg-red, #ff1f46) !important;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.advanced-data-row {
    min-width: 0;
}

    .advanced-data-row span {
        min-width: 0;
        line-height: 1.3;
    }

    .advanced-data-row strong {
        flex: 0 0 auto;
        min-width: 3.7rem;
        max-width: 48%;
        padding: 0.18rem 0.42rem;
        border-radius: 7px;
        background: rgba(255, 255, 255, 0.04);
        color: #ffffff !important;
        line-height: 1.25;
    }

/* O texto SVG é criado por RenderTreeBuilder e não recebe o atributo do CSS isolation. */
.performance-chart-svg .performance-chart-label {
    fill: rgba(246, 247, 251, 0.78) !important;
    color: rgba(246, 247, 251, 0.78) !important;
    font-family: inherit;
    font-size: 11px !important;
    font-weight: 800 !important;
    letter-spacing: 0.02em;
    paint-order: stroke;
    stroke: rgba(8, 8, 10, 0.82);
    stroke-width: 2px;
    stroke-linejoin: round;
}

.performance-chart-svg {
    max-width: 100%;
}

.performance-chart-legend > div {
    min-width: 0;
}

.performance-chart-legend span {
    min-width: 0;
}

@media (max-width: 1180px) {
    .advanced-data-heading {
        grid-template-columns: minmax(0, 1fr) auto;
        justify-items: stretch;
        align-items: center;
    }

    .advanced-data-scope {
        justify-self: end;
    }
}

@media (max-width: 720px) {
    .advanced-data-heading {
        grid-template-columns: 1fr;
        justify-items: start;
    }

    .advanced-data-scope {
        justify-self: start;
    }

    .performance-chart-svg .performance-chart-label {
        font-size: 10px !important;
    }
}

/* =========================================================
   Loja e tickets privados
   ========================================================= */
.store-page {
    display: grid;
    gap: 1.25rem;
}

.store-hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    overflow: hidden;
    border-radius: 24px;
    padding: 1.4rem;
    background: radial-gradient(circle at 85% 20%, rgba(255, 31, 70, 0.20), transparent 34%), linear-gradient(135deg, rgba(23, 23, 27, 0.98), rgba(8, 8, 10, 0.98));
    border: 1px solid rgba(255, 255, 255, 0.11);
    color: #f6f7fb;
}

    .store-hero h1 {
        margin: 0.25rem 0 0.4rem;
        font-size: clamp(2rem, 4vw, 3.25rem);
        font-weight: 950;
        letter-spacing: -0.045em;
    }

    .store-hero p {
        max-width: 680px;
        margin: 0;
        color: rgba(246, 247, 251, 0.68);
    }

.store-eyebrow,
.store-section-kicker {
    color: #ff1f46;
    font-size: 0.72rem;
    font-weight: 950;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.store-balance-card {
    appearance: none;
    display: grid;
    flex: 0 0 auto;
    min-width: 180px;
    gap: 0.18rem;
    border: 1px solid rgba(255, 217, 90, 0.36);
    border-radius: 18px;
    padding: 0.85rem 1rem;
    background: rgba(255, 217, 90, 0.08);
    color: #ffffff;
    text-align: left;
    cursor: pointer;
}

    .store-balance-card:hover {
        background: rgba(255, 217, 90, 0.14);
        border-color: rgba(255, 217, 90, 0.58);
    }

    .store-balance-card span,
    .store-balance-card small {
        color: rgba(255, 255, 255, 0.62);
        font-size: 0.72rem;
        font-weight: 800;
    }

    .store-balance-card strong {
        color: #ffd95a;
        font-size: 1.45rem;
        font-weight: 950;
    }

.store-section {
    display: grid;
    gap: 1rem;
    border-radius: 22px;
    padding: 1.1rem;
    background: rgba(18, 18, 21, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.09);
}

.store-section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
}

    .store-section-heading h2 {
        margin: 0.18rem 0 0.25rem;
        color: #f6f7fb;
        font-size: 1.45rem;
        font-weight: 950;
    }

    .store-section-heading p {
        margin: 0;
        color: rgba(246, 247, 251, 0.62);
        font-size: 0.86rem;
    }

.store-ticket-owned-summary {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
}

    .store-ticket-owned-summary > span {
        display: inline-flex;
        align-items: center;
        gap: 0.35rem;
        border-radius: 999px;
        padding: 0.38rem 0.65rem;
        background: rgba(255, 255, 255, 0.045);
        border: 1px solid rgba(255, 255, 255, 0.09);
        color: #ffffff;
    }

    .store-ticket-owned-summary img {
        width: 34px;
        height: 24px;
        object-fit: contain;
    }

.store-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.9rem;
}

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

.store-product-card {
    min-width: 0;
    display: grid;
    grid-template-rows: 180px minmax(112px, 1fr) auto;
    overflow: hidden;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.018));
    border: 1px solid rgba(255, 255, 255, 0.10);
    color: #f6f7fb;
}

.store-product-owned {
    border-color: rgba(70, 211, 130, 0.38);
}

.store-product-preview,
.store-ticket-art {
    position: relative;
    display: grid;
    place-items: center;
    overflow: hidden;
    background: radial-gradient(circle at 50% 35%, rgba(255, 31, 70, 0.17), transparent 48%), rgba(0, 0, 0, 0.18);
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

    .store-product-preview img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

.store-product-preview-image img {
    padding: 1.35rem;
}

.store-product-preview-avatar img {
    object-position: center bottom;
    padding: 0.55rem 1rem 0;
}

.store-product-preview-title span {
    max-width: 88%;
    border-radius: 999px;
    padding: 0.55rem 0.9rem;
    background: linear-gradient(135deg, rgba(255, 31, 70, 0.24), rgba(255, 122, 28, 0.14));
    border: 1px solid rgba(255, 31, 70, 0.42);
    color: #ffffff;
    font-size: 0.92rem;
    font-weight: 950;
    text-align: center;
}

.store-ticket-art {
    min-height: 180px;
}

    .store-ticket-art img {
        width: min(62%, 220px);
        max-height: 118px;
        object-fit: contain;
        filter: drop-shadow(0 18px 24px rgba(0, 0, 0, 0.36));
    }

    .store-ticket-art span {
        position: absolute;
        right: 0.85rem;
        bottom: 0.75rem;
        border-radius: 999px;
        padding: 0.28rem 0.55rem;
        background: rgba(0, 0, 0, 0.54);
        color: #ffffff;
        font-size: 0.76rem;
        font-weight: 950;
    }

.store-product-copy {
    min-width: 0;
    padding: 0.9rem 0.9rem 0.55rem;
}

    .store-product-copy h3 {
        margin: 0.2rem 0 0.35rem;
        color: #ffffff;
        font-size: 1rem;
        font-weight: 950;
    }

    .store-product-copy p {
        margin: 0;
        color: rgba(246, 247, 251, 0.60);
        font-size: 0.8rem;
        line-height: 1.45;
    }

.store-product-type {
    color: #ff6a82;
    font-size: 0.68rem;
    font-weight: 950;
    letter-spacing: 0.055em;
    text-transform: uppercase;
}

.store-product-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.8rem 0.9rem 0.9rem;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
}

    .store-product-footer > strong {
        color: #ffd95a;
        font-size: 0.88rem;
        font-weight: 950;
    }

    .store-product-footer .btn {
        min-width: 110px;
        padding: 0.52rem 0.72rem;
        font-size: 0.78rem;
    }

.store-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.4rem;
}

.store-filter {
    appearance: none;
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 999px;
    padding: 0.42rem 0.68rem;
    background: rgba(255, 255, 255, 0.035);
    color: rgba(246, 247, 251, 0.68);
    font: inherit;
    font-size: 0.74rem;
    font-weight: 850;
    cursor: pointer;
}

    .store-filter:hover,
    .store-filter-active {
        background: rgba(255, 31, 70, 0.15);
        border-color: rgba(255, 31, 70, 0.48);
        color: #ffffff;
    }

.profile-tickets-card {
    scroll-margin-top: 1rem;
}

.profile-ticket-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.8rem;
}

.profile-ticket-card {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    border-radius: 16px;
    padding: 0.9rem;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.09);
}

    .profile-ticket-card img {
        width: 76px;
        height: 54px;
        object-fit: contain;
        flex: 0 0 auto;
    }

    .profile-ticket-card > div {
        display: grid;
        min-width: 0;
        gap: 0.15rem;
    }

    .profile-ticket-card span,
    .profile-ticket-card small {
        color: var(--text-secondary);
        font-size: 0.76rem;
    }

    .profile-ticket-card strong {
        color: var(--portugal-dark);
        font-size: 1.45rem;
        font-weight: 950;
    }

.site-theme-bighead .profile-ticket-card span,
.site-theme-bighead .profile-ticket-card small {
    color: rgba(246, 247, 251, 0.62);
}

.site-theme-bighead .profile-ticket-card strong {
    color: #ffffff;
}

@media (max-width: 1050px) {
    .store-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .store-hero,
    .store-section-heading {
        align-items: stretch;
        flex-direction: column;
    }

    .store-balance-card {
        width: 100%;
    }

    .store-grid,
    .store-ticket-grid,
    .profile-ticket-grid {
        grid-template-columns: 1fr;
    }

    .store-filters {
        justify-content: flex-start;
    }
}
