:root {
    --bg: #07131a;
    --surface: #f4f7f2;
    --ink: #10212b;
    --muted: #687b86;
    --accent: #39d98a;
    --accent-deep: #1d9b62;
    --warn: #ff8a3d;
    --danger: #ef5a6f;
    --shadow: 0 18px 40px rgba(4, 10, 14, 0.18);
}

html {
    font-size: 15px;
}

body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(57, 217, 138, 0.18), transparent 24%),
        radial-gradient(circle at top right, rgba(255, 138, 61, 0.18), transparent 22%),
        linear-gradient(135deg, #041015, #0d202b 56%, #132e2a);
    color: var(--ink);
    font-family: "Barlow", sans-serif;
}

body.auth-page {
    color: #eef6f4;
}

.app-shell {
    display: grid;
    grid-template-columns: 290px 1fr;
    min-height: 100vh;
}

.sidebar {
    padding: 2rem 1.5rem;
    background: linear-gradient(180deg, rgba(5, 16, 22, 0.96), rgba(9, 29, 34, 0.92));
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    color: #dce9ea;
    position: sticky;
    top: 0;
    height: 100vh;
}

.brand-mark {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.brand-mark h1,
.topbar h2,
.hero-title {
    margin: 0;
    font-family: "Space Grotesk", sans-serif;
}

.brand-mark span,
.eyebrow {
    color: #8fb4bc;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.74rem;
}

.brand-ball {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--accent), #8af0ba);
    position: relative;
    box-shadow: 0 12px 22px rgba(57, 217, 138, 0.28);
}

.brand-ball::after {
    content: "";
    position: absolute;
    inset: 11px;
    border-radius: 12px;
    border: 2px dashed rgba(7, 19, 26, 0.24);
}

.nav-link {
    color: #dbe7e8;
    border-radius: 16px;
    padding: 0.85rem 1rem;
    font-weight: 600;
}

.nav-link:hover,
.nav-link.active {
    color: #041015;
    background: linear-gradient(135deg, #f7fff9, #b8f2d3);
}

.sidebar-card {
    margin-top: 2rem;
    padding: 1.25rem;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.content {
    padding: 1.5rem 2rem 2rem;
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    color: #f3fbfb;
}

.topbar-actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.user-chip {
    padding: 0.55rem 0.9rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: #d9e7ea;
}

.auth-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1.1fr minmax(380px, 520px);
    gap: 2rem;
    align-items: center;
    padding: 2.5rem;
}

.auth-page-shell {
    min-height: 100vh;
}

.auth-promo {
    padding: 2rem 1rem 2rem 0;
}

.promo-grid {
    display: grid;
    gap: 1rem;
}

.promo-card {
    display: grid;
    gap: 0.35rem;
    padding: 1rem 1.1rem;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 18px 32px rgba(0, 0, 0, 0.14);
}

.promo-card strong {
    font-family: "Space Grotesk", sans-serif;
    font-size: 1rem;
}

.promo-card span {
    color: rgba(238, 246, 244, 0.78);
}

.auth-card {
    width: min(100%, 540px);
    background: rgba(244, 247, 242, 0.96);
    border-radius: 32px;
    padding: 2rem;
    box-shadow: var(--shadow);
}

.auth-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.brand-ball-sm {
    width: 44px;
    height: 44px;
    border-radius: 14px;
}

.brand-ball-sm::after {
    inset: 9px;
    border-radius: 10px;
}

.auth-help {
    padding: 1rem 1.1rem;
    border-radius: 20px;
    background: rgba(16, 33, 43, 0.05);
}

.hero-panel,
.panel,
.metric-card {
    background: rgba(244, 247, 242, 0.96);
    border-radius: 28px;
    box-shadow: var(--shadow);
}

.hero-panel,
.panel,
.metric-card {
    padding: 1.35rem;
}

.hero-grid,
.metrics-grid,
.split-grid {
    display: grid;
    gap: 1rem;
}

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

.metrics-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.split-grid {
    grid-template-columns: 1.3fr 1fr;
}

.metric-card strong {
    display: block;
    font-size: 1.9rem;
    font-family: "Space Grotesk", sans-serif;
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.table > :not(caption) > * > * {
    background: transparent;
    border-color: rgba(16, 33, 43, 0.08);
}

.status-pill {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 0.35rem 0.75rem;
    background: rgba(57, 217, 138, 0.15);
    color: #106a43;
    font-weight: 700;
}

.status-pill.warn {
    background: rgba(255, 138, 61, 0.16);
    color: #ab561c;
}

.status-pill.danger {
    background: rgba(239, 90, 111, 0.14);
    color: #b72f47;
}

.media-thumb {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    object-fit: cover;
    background: #dfe8e1;
    border: 1px solid rgba(16, 33, 43, 0.08);
}

.team-thumb {
    border-radius: 18px;
}

.hero-team-thumb {
    width: 96px;
    height: 96px;
    border-radius: 28px;
}

.color-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.8rem;
    border-radius: 999px;
    background: rgba(16, 33, 43, 0.06);
    color: var(--ink);
    font-weight: 600;
}

.color-dot {
    width: 14px;
    height: 14px;
    border-radius: 999px;
    border: 1px solid rgba(16, 33, 43, 0.12);
}

.actions-bar {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.btn-primary {
    border: none;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--accent), var(--accent-deep));
    box-shadow: 0 10px 20px rgba(57, 217, 138, 0.24);
}

.btn-outline-secondary,
.btn-outline-light,
.btn-outline-primary {
    border-radius: 16px;
}

.form-card .form-control,
.form-card .form-select {
    border-radius: 16px;
    border: 1px solid rgba(16, 33, 43, 0.12);
    min-height: 48px;
}

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

.form-card .form-check {
    min-height: 48px;
}

.form-card .form-control:focus,
.form-card .form-select:focus {
    border-color: rgba(57, 217, 138, 0.7);
    box-shadow: 0 0 0 0.2rem rgba(57, 217, 138, 0.16);
}

.label-with-help {
    display: inline-flex;
    align-items: center;
    margin-bottom: 0.35rem;
}

.field-help {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    margin-left: 0.35rem;
    border: 1px solid rgba(16, 33, 43, 0.18);
    border-radius: 999px;
    background: rgba(16, 33, 43, 0.06);
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1;
    cursor: help;
    vertical-align: text-top;
}

.field-help:hover,
.field-help:focus {
    border-color: rgba(57, 217, 138, 0.7);
    background: rgba(57, 217, 138, 0.18);
    color: #106a43;
    outline: none;
}

.select2-container--default .select2-selection--single,
.select2-container--default .select2-selection--multiple {
    min-height: 48px;
    border-radius: 16px;
    border: 1px solid rgba(16, 33, 43, 0.12);
    padding: 0.35rem 0.5rem;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 32px;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 46px;
    right: 8px;
}

.select2-container--default.select2-container--focus .select2-selection--single,
.select2-container--default.select2-container--focus .select2-selection--multiple {
    border-color: rgba(57, 217, 138, 0.7);
    box-shadow: 0 0 0 0.2rem rgba(57, 217, 138, 0.16);
}

.empty-state {
    padding: 2rem;
    text-align: center;
    color: var(--muted);
}

.modal-dialog {
    margin: 1rem auto;
}

.modal-xl,
.modal-lg {
    max-width: min(1140px, calc(100vw - 2rem));
}

.modal-content {
    border: none;
    border-radius: 24px;
    overflow: hidden;
}

.modal-body {
    max-height: calc(100vh - 11rem);
    overflow-y: auto;
}

.modal-footer {
    position: sticky;
    bottom: 0;
    z-index: 1;
    background: rgba(244, 247, 242, 0.98);
    border-top: 1px solid rgba(16, 33, 43, 0.08);
}

@media (max-width: 992px) {
    .app-shell,
    .hero-grid,
    .split-grid,
    .auth-shell {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: static;
        height: auto;
    }

    .content {
        padding: 1rem;
    }

    .topbar {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .auth-shell {
        padding: 1.25rem;
    }

    .auth-promo {
        padding: 0;
    }

    .modal-xl,
    .modal-lg {
        max-width: calc(100vw - 1rem);
    }

    .modal-body {
        max-height: calc(100vh - 9.5rem);
    }
}

.public-body {
    background: #f4f7fb;
    color: #10212b;
}

.public-topbar {
    background: var(--portal-secondary, #0B1F66);
    color: #fff;
    padding: 0.65rem 0;
}

.public-topbar-inner,
.public-brandbar-inner,
.public-navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.public-top-link,
.public-top-link:hover,
.public-footer a,
.public-footer a:hover {
    color: #fff;
    text-decoration: none;
}

.public-socials {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    font-weight: 700;
}

.public-socials a {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 999px;
    color: #fff;
    text-decoration: none;
}

.public-brandbar {
    background: var(--portal-primary, #003DA5);
    padding: 1rem 0;
}

.public-brand-logo {
    max-height: 72px;
    width: auto;
    object-fit: contain;
}

.public-brand-logo-tournament {
    max-height: 92px;
}

.public-logo-group {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.public-tournament-title-chip {
    display: inline-flex;
    align-items: center;
    min-height: 72px;
    padding: 0.85rem 1.2rem;
    border-radius: 20px;
    background: rgba(255,255,255,0.14);
    color: #fff;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.public-tournament-picker {
    min-width: min(100%, 380px);
    padding: 1rem;
    border-radius: 24px;
    background: rgba(255,255,255,0.12);
    color: #fff;
}

.public-tournament-picker .form-label {
    color: #fff;
    font-weight: 700;
}

.public-tournament-picker .form-select {
    min-height: 46px;
    border-radius: 14px;
}

.public-access-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.public-navbar {
    background: #fff;
    border-bottom: 1px solid rgba(16, 33, 43, 0.08);
}

.public-navbar-inner {
    flex-wrap: wrap;
    justify-content: center;
    padding: 0.85rem 0;
}

.public-nav-link {
    color: var(--portal-secondary, #0B1F66);
    font-weight: 700;
    text-decoration: none;
    padding: 0.8rem 1.2rem;
    border-radius: 16px;
}

.public-nav-link:hover {
    background: rgba(0, 61, 165, 0.08);
}

.public-main {
    min-height: 45vh;
}

.public-hero {
    padding: 2rem;
    border-radius: 32px;
    background:
        linear-gradient(120deg, rgba(0, 61, 165, 0.95), rgba(11, 31, 102, 0.95)),
        linear-gradient(135deg, #003DA5, #0B1F66);
    color: #fff;
    box-shadow: 0 24px 48px rgba(0, 42, 112, 0.22);
}

.public-hero h1 {
    font-family: "Space Grotesk", sans-serif;
    font-size: clamp(2rem, 4vw, 3.2rem);
    margin-bottom: 0.75rem;
}

.public-cards-grid,
.public-team-grid,
.public-document-grid {
    display: grid;
    gap: 1rem;
}

.public-cards-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    margin-top: 1.25rem;
}

.public-card {
    padding: 1.1rem 1.2rem;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 16px 32px rgba(16, 33, 43, 0.08);
}

.public-card span {
    display: block;
    color: #637b8f;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.74rem;
}

.public-card strong {
    display: block;
    margin-top: 0.35rem;
    font-size: 1.35rem;
    color: var(--portal-secondary, #0B1F66);
}

.public-stage-block {
    padding: 1rem 1.1rem;
    border-radius: 22px;
    background: #fff;
    border: 1px solid rgba(16, 33, 43, 0.08);
}

.public-stage-block + .public-stage-block {
    margin-top: 1rem;
}

.public-stage-block h4 {
    margin: 0 0 0.65rem;
    color: var(--portal-secondary, #0B1F66);
    font-family: "Space Grotesk", sans-serif;
    font-size: 1.05rem;
}

.public-document-item,
.public-document-card {
    display: block;
    text-decoration: none;
    color: inherit;
    border-radius: 22px;
    background: #fff;
    border: 1px solid rgba(16, 33, 43, 0.08);
    box-shadow: 0 12px 26px rgba(16, 33, 43, 0.06);
}

.public-document-item {
    padding: 1rem 1.15rem;
}

.public-document-item small {
    display: block;
    margin-top: 0.25rem;
    color: #637b8f;
}

.public-document-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.public-document-card {
    padding: 1.25rem;
}

.public-document-card p,
.public-footer-copy {
    color: #d8e4ff;
}

.public-team-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.public-team-card {
    padding: 1.25rem;
    border-radius: 28px;
    background: #fff;
    box-shadow: 0 16px 34px rgba(16, 33, 43, 0.08);
}

.public-search-input {
    min-height: 48px;
    border-radius: 16px;
    border: 1px solid rgba(16, 33, 43, 0.12);
}

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

.public-team-logo-card {
    display: grid;
    gap: 0.75rem;
    justify-items: center;
    min-height: 220px;
    padding: 1rem;
    border: 1px solid rgba(16, 33, 43, 0.08);
    border-radius: 24px;
    background: #fff;
    color: inherit;
    text-align: center;
    box-shadow: 0 16px 34px rgba(16, 33, 43, 0.08);
}

.public-team-logo-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 40px rgba(16, 33, 43, 0.12);
}

.public-team-logo-frame {
    display: grid;
    place-items: center;
    width: 120px;
    height: 120px;
    border-radius: 26px;
    background: rgba(0, 61, 165, 0.07);
    overflow: hidden;
}

.public-team-logo-frame img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 0.75rem;
}

.public-team-logo-card strong,
.public-team-logo-card small {
    display: block;
}

.public-team-logo-card strong {
    color: var(--portal-secondary, #0B1F66);
    font-size: 1.05rem;
}

.public-team-logo-card small {
    color: #637b8f;
}

.public-player-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
}

.public-player-card {
    display: grid;
    grid-template-columns: 82px minmax(0, 1fr);
    gap: 0.85rem;
    align-items: center;
    padding: 0.9rem;
    border: 1px solid rgba(16, 33, 43, 0.08);
    border-radius: 22px;
    background: #fff;
}

.public-player-card img {
    width: 82px;
    height: 82px;
    border-radius: 20px;
    object-fit: cover;
    background: #e8eef5;
}

.public-player-card strong,
.public-player-card small {
    display: block;
}

.public-player-card strong {
    color: var(--portal-secondary, #0B1F66);
}

.public-player-card small {
    margin-top: 0.15rem;
    color: #637b8f;
}

.public-player-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-top: 0.55rem;
}

.public-player-tags span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0.25rem 0.55rem;
    border-radius: 999px;
    background: rgba(0, 61, 165, 0.08);
    color: var(--portal-secondary, #0B1F66);
    font-size: 0.8rem;
    font-weight: 700;
}

.public-team-modal {
    background: #f4f7fb;
}

.public-footer {
    margin-top: 2rem;
    background: linear-gradient(180deg, var(--portal-primary, #003DA5), var(--portal-secondary, #0B1F66));
    color: #fff;
    padding-top: 2rem;
}

.public-footer-logo {
    max-height: 90px;
    width: auto;
    object-fit: contain;
}

.public-footer-links {
    padding: 0;
    list-style: none;
}

.public-footer-links li {
    padding: 0.65rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.14);
}

.public-footer-bottom {
    margin-top: 1.5rem;
    padding: 1rem 0;
    background: rgba(0,0,0,0.15);
}

.public-btn-accent {
    border: none;
    border-radius: 14px;
    background: var(--portal-accent, #F5C400);
    color: #0B1F66;
    font-weight: 800;
}

.landing-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
    gap: 2rem;
    align-items: center;
    min-height: 420px;
    padding: clamp(2rem, 5vw, 4rem);
    border-radius: 32px;
    background:
        linear-gradient(120deg, rgba(0, 61, 165, 0.94), rgba(11, 31, 102, 0.94)),
        linear-gradient(135deg, var(--portal-primary, #003DA5), var(--portal-secondary, #0B1F66));
    color: #fff;
    box-shadow: 0 24px 48px rgba(0, 42, 112, 0.22);
}

.landing-hero h1 {
    max-width: 820px;
    margin: 0 0 1rem;
    font-family: "Space Grotesk", sans-serif;
    font-size: clamp(2.4rem, 5vw, 4.8rem);
    line-height: 1;
}

.landing-hero p {
    max-width: 720px;
    margin: 0;
    color: rgba(255, 255, 255, 0.84);
    font-size: 1.12rem;
}

.landing-hero-brand {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
    align-items: center;
}

.landing-hero-brand img {
    width: 100%;
    max-height: 180px;
    object-fit: contain;
    padding: 1.25rem;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.16);
}

.landing-tournament-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1rem;
}

.landing-tournament-card {
    display: grid;
    grid-template-columns: 104px minmax(0, 1fr);
    gap: 1rem;
    align-items: center;
    padding: 1rem;
    border-radius: 24px;
    background: #fff;
    color: inherit;
    text-decoration: none;
    border: 1px solid rgba(16, 33, 43, 0.08);
    box-shadow: 0 16px 34px rgba(16, 33, 43, 0.08);
}

.landing-tournament-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 40px rgba(16, 33, 43, 0.12);
}

.landing-tournament-logo {
    display: grid;
    place-items: center;
    width: 104px;
    height: 104px;
    border-radius: 22px;
    background: rgba(0, 61, 165, 0.08);
    overflow: hidden;
}

.landing-tournament-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 0.65rem;
}

.landing-tournament-logo span {
    color: var(--portal-secondary, #0B1F66);
    font-family: "Space Grotesk", sans-serif;
    font-size: 1.9rem;
    font-weight: 800;
}

.landing-tournament-card strong,
.landing-tournament-card small {
    display: block;
}

.landing-tournament-card strong {
    color: var(--portal-secondary, #0B1F66);
    font-size: 1.1rem;
}

.landing-tournament-card small {
    margin-top: 0.25rem;
    color: #637b8f;
}

.credential-preview {
    position: relative;
    max-width: 856px;
    overflow: hidden;
    border-radius: 18px;
    border: 1px solid rgba(15, 23, 42, 0.12);
    background-color: #061b35;
    background-size: cover;
    background-position: center;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.16);
}

.credential-preview-field {
    position: absolute;
    display: flex;
    align-items: center;
    min-height: 18px;
    padding: 2px 4px;
    border: 1px dashed rgba(255, 255, 255, 0.45);
    background: rgba(0, 0, 0, 0.18);
    overflow: hidden;
}

@media (max-width: 992px) {
    .public-topbar-inner,
    .public-brandbar-inner,
    .public-navbar-inner {
        flex-direction: column;
        align-items: stretch;
    }

    .public-logo-group {
        justify-content: center;
    }

    .public-tournament-picker {
        min-width: 100%;
    }

    .landing-hero {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .landing-tournament-card {
        grid-template-columns: 88px minmax(0, 1fr);
    }

    .landing-tournament-logo {
        width: 88px;
        height: 88px;
    }
}

.public-home-body {
    min-height: 100vh;
    background: #edf3fb;
    color: #061a44;
    font-family: "Barlow", Arial, sans-serif;
}

.public-home-container {
    width: min(100% - 2rem, 1200px);
    margin-inline: auto;
}

.public-home-header {
    background: #020b2c;
    color: #fff;
}

.public-home-header-top,
.public-home-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.public-home-header-top {
    min-height: 54px;
    padding-top: 0.5rem;
}

.public-home-institution {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    color: #fff;
    text-decoration: none;
}

.public-home-institution img {
    width: 82px;
    max-width: 28vw;
    height: 24px;
    object-fit: cover;
    object-position: left center;
}

.public-home-institution span {
    color: #fff;
    font-size: 0.95rem;
    line-height: 1.05;
    font-weight: 800;
}

.public-home-socials,
.public-home-footer-socials {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
    font-weight: 700;
}

.public-home-socials a,
.public-home-footer-socials a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
}

.public-home-socials img,
.public-home-footer-socials img {
    width: 18px;
    height: 18px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.public-home-nav {
    min-height: 120px;
    padding-bottom: 1rem;
}

.public-home-brand img {
    width: 300px;
    max-width: 62vw;
    height: auto;
}

.public-home-menu {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    flex: 1;
}

.public-home-menu a {
    position: relative;
    padding: 0.85rem 0;
    color: #fff;
    text-decoration: none;
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 0;
}

.public-home-menu a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0.35rem;
    height: 4px;
    border-radius: 8px;
    background: transparent;
}

.public-home-menu a:hover::after,
.public-home-menu a.is-active::after {
    background: #05aaff;
}

.public-home-login,
.public-home-primary-action,
.public-home-footer-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    min-height: 52px;
    padding: 0.75rem 1.8rem;
    border-radius: 6px;
    background: #0b7cff;
    color: #fff;
    text-decoration: none;
    text-transform: uppercase;
    font-weight: 900;
    border: 0;
}

.public-home-login:hover,
.public-home-primary-action:hover,
.public-home-footer-button:hover {
    color: #fff;
    background: #0798ff;
}

.public-home-main {
    overflow: hidden;
}

.public-home-hero {
    min-height: 590px;
    background: #020b2c var(--public-hero-image, url("../images/public-home/banner-deportsoft.png")) center top / cover no-repeat;
    color: #fff;
}

.public-home-hero-inner {
    min-height: 590px;
    display: flex;
    align-items: center;
}

.public-home-hero-copy {
    width: min(100%, 520px);
    padding-bottom: 3.5rem;
}

.public-home-hero h1 {
    display: grid;
    gap: 0.2rem;
    margin: 0 0 1.25rem;
    color: #fff;
    text-transform: uppercase;
    font-size: 4.55rem;
    line-height: 0.98;
    font-weight: 900;
    letter-spacing: 0;
}

.public-home-hero h1 span:last-child {
    color: #03a8ff;
}

.public-home-hero p {
    max-width: 520px;
    margin: 0 0 2rem;
    color: #fff;
    font-size: 1.35rem;
    line-height: 1.08;
    font-weight: 700;
}

.public-home-primary-action {
    min-width: 230px;
    min-height: 60px;
    font-size: 1.05rem;
}

.public-home-primary-action span,
.public-home-section-header a span,
.public-home-tournament-content strong span {
    font-size: 1.85rem;
    line-height: 0;
}

.public-home-stats {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    margin-top: -70px;
    padding: 1.6rem 2.5rem;
    border-radius: 8px;
    background: #073f90;
    color: #fff;
    box-shadow: 0 22px 38px rgba(3, 19, 55, 0.2);
}

.public-home-stats article {
    display: grid;
    grid-template-columns: 78px minmax(0, 1fr);
    grid-template-rows: auto auto;
    align-items: center;
    column-gap: 1rem;
}

.public-home-stat-icon {
    grid-row: 1 / span 2;
    display: grid;
    place-items: center;
    width: 78px;
    height: 78px;
    border: 3px solid #08aaff;
    border-radius: 999px;
}

.public-home-stat-icon img {
    width: 42px;
    height: 42px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.public-home-stats strong {
    display: block;
    font-size: 2.35rem;
    line-height: 1;
    font-weight: 900;
}

.public-home-stats article > span:last-child {
    display: block;
    margin-top: 0.35rem;
    text-transform: uppercase;
    font-size: 1rem;
    line-height: 1.08;
    font-weight: 700;
}

.public-home-section {
    padding-top: 4.5rem;
}

.public-home-section-header {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 1rem;
    margin-bottom: 1.6rem;
}

.public-home-section-header h2 {
    margin: 0;
    color: #071f50;
    font-size: 2rem;
    line-height: 1;
    font-weight: 900;
}

.public-home-section-header div > span {
    display: block;
    width: 42px;
    height: 4px;
    margin-top: 0.8rem;
    border-radius: 8px;
    background: #09a8ff;
}

.public-home-section-header a {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: #071f50;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 1.05rem;
    font-weight: 900;
}

.public-home-empty {
    padding: 2rem;
    border-radius: 8px;
    background: #fff;
    color: #60708a;
    font-weight: 700;
}

.public-home-tournament-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.65rem;
}

.public-home-tournament-card {
    display: block;
    min-width: 0;
    overflow: hidden;
    border-radius: 8px;
    background: #fff;
    color: inherit;
    text-decoration: none;
    box-shadow: 0 12px 26px rgba(9, 37, 80, 0.08);
}

.public-home-tournament-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 34px rgba(9, 37, 80, 0.14);
}

.public-home-tournament-media {
    position: relative;
    display: grid;
    place-items: center;
    height: 170px;
    overflow: hidden;
    background: #063b88;
}

.public-home-tournament-media > span {
    position: absolute;
    top: 1rem;
    left: 1rem;
    z-index: 2;
    padding: 0.45rem 0.65rem;
    border-radius: 4px;
    background: #079cff;
    color: #fff;
    text-transform: uppercase;
    font-size: 0.8rem;
    line-height: 1;
    font-weight: 900;
}

.public-home-tournament-media > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.public-home-tournament-placeholder {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    padding: 2.4rem;
    background: #073f90;
}

.public-home-tournament-placeholder img {
    width: min(84%, 210px);
    height: auto;
    object-fit: contain;
}

.public-home-tournament-content {
    display: grid;
    gap: 0.7rem;
    padding: 1rem 1rem 1.3rem;
}

.public-home-tournament-content h3 {
    min-height: 3.15rem;
    margin: 0;
    color: #10172a;
    font-size: 1.18rem;
    line-height: 1.08;
    text-transform: uppercase;
    font-weight: 900;
}

.public-home-tournament-content p {
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr);
    align-items: start;
    gap: 0.35rem;
    margin: 0;
    color: #566173;
    font-size: 0.9rem;
    line-height: 1.12;
    font-weight: 600;
}

.public-home-tournament-content p img {
    width: 18px;
    height: 18px;
    object-fit: contain;
}

.public-home-tournament-content strong {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 0.5rem;
    color: #087cff;
    text-transform: uppercase;
    font-size: 1rem;
    font-weight: 900;
}

.public-home-collaborators {
    padding-bottom: 4.5rem;
}

.public-home-logo-strip {
    overflow: hidden;
}

.public-home-logo-strip button {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border: 0;
    border-radius: 999px;
    background: #075bc2;
    color: #fff;
    font-size: 2rem;
    font-weight: 900;
}

.public-home-team-logos {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: center;
    justify-items: center;
    gap: 2rem;
}

.public-home-team-logos img {
    width: min(100%, 210px);
    max-height: 210px;
    object-fit: contain;
}

.public-home-logo-marquee {
    overflow: hidden;
    padding-block: 0.75rem;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
}

.public-home-sponsor-track {
    display: flex;
    width: max-content;
    gap: clamp(2rem, 6vw, 5rem);
    animation: publicSponsorMarquee 34s linear infinite;
}

.public-home-sponsor-track a,
.public-home-sponsor-track span {
    flex: 0 0 clamp(150px, 18vw, 230px);
    display: grid;
    place-items: center;
    min-height: 170px;
    padding: 0.75rem;
    color: #071f50;
    text-align: center;
    text-decoration: none;
}

.public-home-sponsor-track img {
    width: min(100%, 210px);
    max-height: 190px;
    object-fit: contain;
}

.public-home-sponsor-track strong {
    color: #071f50;
    text-transform: uppercase;
    font-size: 1.1rem;
    line-height: 1.05;
    font-weight: 900;
}

@keyframes publicSponsorMarquee {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

.public-home-footer {
    min-height: 320px;
    padding: 2.4rem 0 1.3rem;
    background: #020b2c var(--public-footer-image, url("../images/public-home/footer-players.png")) right bottom / auto 100% no-repeat;
    color: #fff;
}

.public-home-footer-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    min-height: 150px;
}

.public-home-footer-title {
    display: flex;
    align-items: center;
    gap: 1.6rem;
}

.public-home-footer-title > span {
    display: grid;
    place-items: center;
    width: 105px;
    height: 105px;
    border: 3px solid #08aaff;
    border-radius: 999px;
}

.public-home-footer-title img {
    width: 58px;
    height: 58px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.public-home-footer h2 {
    margin: 0 0 0.65rem;
    color: #fff;
    text-transform: uppercase;
    font-size: 2rem;
    line-height: 1.02;
    font-weight: 900;
}

.public-home-footer p {
    max-width: 420px;
    margin: 0;
    color: #fff;
    font-size: 1.05rem;
    line-height: 1.08;
    font-weight: 700;
}

.public-home-footer-button {
    min-width: 260px;
    min-height: 58px;
}

.public-home-footer-bottom {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr) auto;
    gap: 1rem;
    align-items: center;
    margin-top: 1.4rem;
}

.public-home-footer-bottom > img {
    width: 170px;
    height: auto;
}

.public-home-footer-bottom > span {
    text-align: center;
    font-weight: 600;
}

@media (max-width: 1100px) {
    .public-home-nav {
        min-height: auto;
        flex-wrap: wrap;
        padding: 1.25rem 0 1.5rem;
    }

    .public-home-menu {
        order: 3;
        width: 100%;
        flex: 0 0 100%;
        gap: 1.8rem;
    }

    .public-home-tournament-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

@media (max-width: 760px) {
    .public-home-header-top,
    .public-home-nav,
    .public-home-footer-cta,
    .public-home-footer-title {
        align-items: flex-start;
        flex-direction: column;
    }

    .public-home-socials {
        align-self: flex-end;
    }

    .public-home-menu {
        justify-content: flex-start;
        gap: 1rem;
        overflow-x: auto;
        padding-bottom: 0.25rem;
    }

    .public-home-login {
        width: 100%;
    }

    .public-home-hero,
    .public-home-hero-inner {
        min-height: 560px;
    }

    .public-home-hero {
        background-position: 58% top;
    }

    .public-home-hero-copy {
        padding-top: 4rem;
    }

    .public-home-hero h1 {
        font-size: 3rem;
    }

    .public-home-hero p {
        font-size: 1.05rem;
    }

    .public-home-primary-action {
        width: 100%;
    }

    .public-home-stats {
        grid-template-columns: 1fr;
        margin-top: -48px;
        padding: 1.3rem;
    }

    .public-home-section-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .public-home-tournament-grid,
    .public-home-team-logos {
        grid-template-columns: 1fr;
    }

    .public-home-logo-strip button {
        width: 42px;
        height: 42px;
        font-size: 1.5rem;
    }

    .public-home-sponsor-track a,
    .public-home-sponsor-track span {
        flex-basis: 150px;
        min-height: 130px;
    }

    .public-home-footer {
        background-size: auto 62%;
        background-position: right bottom;
    }

    .public-home-footer-button {
        width: 100%;
    }

    .public-home-footer-bottom {
        grid-template-columns: 1fr;
        justify-items: start;
    }

    .public-home-footer-bottom > span {
        text-align: left;
    }
}

.public-portal-body {
    background: #edf3fb;
}

.public-portal-hero {
    background:
        linear-gradient(90deg, rgba(2, 11, 44, 0.98) 0%, rgba(3, 29, 84, 0.9) 44%, rgba(3, 29, 84, 0.32) 100%),
        var(--public-hero-image, url("../images/public-home/banner-deportsoft.png")) center 42% / cover no-repeat;
    color: #fff;
}

.public-portal-hero-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    min-height: 220px;
    padding-block: 2rem;
}

.public-portal-title {
    display: flex;
    align-items: center;
    gap: 1.4rem;
    min-width: 0;
}

.public-portal-title > img {
    width: 92px;
    height: 92px;
    object-fit: contain;
    padding: 0.55rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.95);
}

.public-portal-title span {
    display: block;
    margin-bottom: 0.45rem;
    color: #08aaff;
    text-transform: uppercase;
    font-weight: 900;
}

.public-portal-title h1 {
    max-width: 760px;
    margin: 0;
    color: #fff;
    text-transform: uppercase;
    font-size: 2.7rem;
    line-height: 0.98;
    font-weight: 900;
}

.public-portal-picker {
    width: min(100%, 430px);
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 8px;
    background: rgba(2, 11, 44, 0.62);
    box-shadow: 0 20px 36px rgba(0, 0, 0, 0.16);
}

.public-portal-picker label {
    display: block;
    margin-bottom: 0.45rem;
    color: #fff;
    text-transform: uppercase;
    font-size: 0.78rem;
    font-weight: 900;
}

.public-portal-picker > div {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 74px;
    gap: 0.65rem;
}

.public-portal-picker .form-select {
    min-height: 46px;
    border: 0;
    border-radius: 6px;
    font-weight: 700;
}

.public-portal-picker button {
    border: 0;
    border-radius: 6px;
    background: #0b7cff;
    color: #fff;
    text-transform: uppercase;
    font-weight: 900;
}

.public-portal-tabs {
    position: sticky;
    top: 0;
    z-index: 20;
    background: #073f90;
    box-shadow: 0 14px 28px rgba(4, 20, 57, 0.18);
}

.public-portal-tabs .public-home-container {
    display: flex;
    gap: 0.4rem;
    overflow-x: auto;
    padding-block: 0.65rem;
}

.public-portal-tabs a {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 0.55rem 1rem;
    border-radius: 6px;
    color: #fff;
    text-decoration: none;
    white-space: nowrap;
    text-transform: uppercase;
    font-size: 0.88rem;
    font-weight: 900;
}

.public-portal-tabs a:hover,
.public-portal-tabs a.is-active {
    background: #0b7cff;
}

.public-portal-main {
    min-height: 48vh;
    padding-block: 2.2rem 3.5rem;
}

.public-portal-body .public-hero,
.public-portal-body .panel,
.public-portal-body .public-card,
.public-portal-body .public-stage-block,
.public-portal-body .public-document-item,
.public-portal-body .public-document-card,
.public-portal-body .public-team-logo-card,
.public-portal-body .public-player-card {
    border: 1px solid rgba(6, 26, 68, 0.08);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 14px 30px rgba(6, 26, 68, 0.08);
}

.public-portal-body .public-hero {
    position: relative;
    overflow: hidden;
    padding: 2rem;
    background:
        linear-gradient(100deg, rgba(7, 63, 144, 0.96), rgba(2, 11, 44, 0.95)),
        var(--public-hero-image, url("../images/public-home/banner-deportsoft.png")) center / cover no-repeat;
    color: #fff;
}

.public-portal-body .public-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(8, 170, 255, 0.18) 100%);
    pointer-events: none;
}

.public-portal-body .public-hero-content {
    position: relative;
    z-index: 1;
    max-width: 760px;
}

.public-portal-body .public-hero h1 {
    color: #fff;
    text-transform: uppercase;
    font-size: 2.35rem;
    line-height: 1;
    font-weight: 900;
}

.public-portal-body .public-hero p {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 700;
}

.public-portal-body .eyebrow {
    color: #08aaff;
    font-size: 0.78rem;
    letter-spacing: 0;
    font-weight: 900;
}

.public-portal-body .panel,
.public-portal-body .public-card {
    padding: 1.25rem;
}

.public-portal-body .panel-header {
    gap: 1rem;
    align-items: flex-start;
}

.public-portal-body .panel-header h3 {
    color: #071f50;
    text-transform: uppercase;
    font-size: 1.45rem;
    line-height: 1;
    font-weight: 900;
}

.public-portal-body .public-cards-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.public-portal-body .public-card span {
    color: #60708a;
    letter-spacing: 0;
    font-weight: 900;
}

.public-portal-body .public-card strong {
    color: #071f50;
    font-size: 1.65rem;
    font-weight: 900;
}

.public-portal-body .public-stage-block {
    padding: 1rem;
}

.public-portal-body .public-stage-block h4 {
    color: #071f50;
    text-transform: uppercase;
    font-size: 1rem;
    font-weight: 900;
}

.public-portal-sponsors .public-home-logo-marquee {
    border-radius: 8px;
    background: #f7faff;
}

.public-fixture-matchday.is-current {
    border-color: rgba(8, 170, 255, 0.7) !important;
    background: linear-gradient(180deg, #ffffff 0%, #f3f9ff 100%);
}

.public-fixture-current-badge {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    background: #0b7cff;
    color: #fff;
    text-transform: uppercase;
    font-size: 0.72rem;
    line-height: 1;
    font-weight: 900;
}

.public-portal-body .table {
    margin-bottom: 0;
}

.public-portal-body .table thead th {
    border-bottom: 0;
    background: #073f90;
    color: #fff;
    text-transform: uppercase;
    font-size: 0.78rem;
    font-weight: 900;
}

.public-portal-body .table tbody td {
    color: #23304a;
    font-weight: 600;
}

.public-portal-body .table tbody tr:hover td {
    background: rgba(11, 124, 255, 0.05);
}

.public-portal-body .btn-primary,
.public-portal-body .btn-outline-primary {
    min-height: 40px;
    border-radius: 6px;
    text-transform: uppercase;
    font-weight: 900;
}

.public-portal-body .btn-primary {
    background: #0b7cff;
    box-shadow: none;
}

.public-portal-body .btn-outline-primary {
    border-color: #0b7cff;
    color: #0b7cff;
}

.public-portal-body .btn-outline-primary:hover {
    background: #0b7cff;
    color: #fff;
}

.public-portal-body .empty-state {
    border: 1px dashed rgba(6, 26, 68, 0.18);
    border-radius: 8px;
    background: #f7faff;
    color: #60708a;
    font-weight: 700;
}

.public-portal-body .public-search-input {
    border-radius: 6px;
    border-color: rgba(6, 26, 68, 0.14);
}

.public-portal-body .public-document-grid,
.public-portal-body .public-team-logo-grid,
.public-portal-body .public-player-card-grid {
    gap: 1.2rem;
}

.public-portal-body .public-document-card {
    padding: 1.25rem;
}

.public-portal-body .public-document-card strong,
.public-portal-body .public-document-item strong {
    display: block;
    color: #071f50;
    font-size: 1.05rem;
    font-weight: 900;
}

.public-portal-body .public-document-card p {
    color: #60708a;
    font-weight: 600;
}

.public-portal-body .public-team-logo-card {
    min-height: 230px;
    border: 0;
}

.public-portal-body .public-team-logo-frame {
    border-radius: 8px;
    background: #f1f6ff;
}

.public-portal-body .public-team-logo-card strong,
.public-portal-body .public-player-card strong {
    color: #071f50;
    font-weight: 900;
}

.public-portal-body .public-player-card {
    grid-template-columns: 86px minmax(0, 1fr);
}

.public-portal-body .public-player-card img {
    border-radius: 8px;
}

.public-portal-body .public-player-tags span {
    border-radius: 6px;
    background: rgba(11, 124, 255, 0.1);
    color: #073f90;
}

.public-portal-body .modal-content.public-team-modal {
    border: 0;
    border-radius: 8px;
    background: #edf3fb;
}

.public-portal-footer {
    margin-top: 0;
}

@media (max-width: 1100px) {
    .public-portal-hero-inner {
        align-items: stretch;
        flex-direction: column;
    }

    .public-portal-picker {
        width: 100%;
    }

    .public-portal-body .public-cards-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .public-portal-title {
        align-items: flex-start;
        flex-direction: column;
    }

    .public-portal-title h1 {
        font-size: 2rem;
    }

    .public-portal-picker > div {
        grid-template-columns: 1fr;
    }

    .public-portal-picker button {
        min-height: 44px;
    }

    .public-portal-body .public-cards-grid {
        grid-template-columns: 1fr;
    }

    .public-portal-body .split-grid {
        grid-template-columns: 1fr;
    }
}

.public-home-brand-text {
    font-family: "Barlow", sans-serif;
    font-size: 1.6rem;
    font-weight: 900;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #fff;
    white-space: nowrap;
}

.public-home-footer-bottom .public-home-brand-text {
    font-size: 1.2rem;
}

/* Bloques informativos del footer público (descripción, contacto, enlaces, legales) */
.public-home-footer-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    padding-top: 2.5rem;
    padding-bottom: 1.5rem;
    color: rgba(255, 255, 255, 0.85);
}

.public-home-footer-info h4 {
    color: var(--portal-accent, #F5C400);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0.75rem;
}

.public-home-footer-info ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.public-home-footer-info a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
}

.public-home-footer-info a:hover {
    color: var(--portal-accent, #F5C400);
}

.public-home-footer-info li img {
    height: 16px;
    margin-right: 0.35rem;
    vertical-align: -2px;
}

.public-home-footer-legal {
    display: flex;
    gap: 1.5rem;
    padding-bottom: 1rem;
    font-size: 0.85rem;
}

.public-home-footer-legal a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
}

.public-home-footer-legal a:hover {
    color: var(--portal-accent, #F5C400);
}
