﻿/* =========================================================
   QUINIELA SEAPORT AGENCIES MUNDIAL 2026
   STYLE.CSS COMPLETO CORREGIDO FINAL
   ========================================================= */

/* -----------------------------
   VARIABLES
----------------------------- */

:root {
    --seaport-dark: #031024;
    --seaport-dark-2: #061a36;
    --seaport-blue: #0ea5e9;
    --seaport-cyan: #22d3ee;
    --seaport-green: #20c997;
    --seaport-gold: #f8d35c;
    --seaport-white: #ffffff;
    --seaport-muted: rgba(255, 255, 255, 0.72);
    --seaport-card: rgba(5, 18, 42, 0.88);
    --seaport-border: rgba(255, 255, 255, 0.16);
    --seaport-shadow: 0 26px 72px rgba(0, 0, 0, 0.45);
    --radius-lg: 24px;
    --radius-md: 16px;
    --radius-sm: 10px;
}

/* Prediction countdown and score picks */
.countdown-box {
    margin: 14px 0 18px;
    padding: 12px 14px;
    border-radius: 16px;
    background: rgba(239, 246, 255, 0.95);
    border: 1px solid #bfdbfe;
    color: #1e3a8a;
}

.countdown-label {
    display: block;
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 4px;
}

.countdown-value {
    display: block;
    font-size: 1.05rem;
    font-weight: 950;
}

.countdown-box.is-open {
    background: #ecfdf5;
    border-color: #bbf7d0;
    color: #166534;
}

.countdown-box.is-warning {
    background: #fff7ed;
    border-color: #fed7aa;
    color: #9a3412;
}

.countdown-box.is-closed {
    background: #fee2e2;
    border-color: #fecaca;
    color: #991b1b;
}

.match-teams-detailed {
    gap: 16px;
    align-items: stretch;
}

.team-role-badge {
    display: inline-flex;
    align-self: center;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.team-role-badge.home {
    color: #ffffff;
    background: #0b4ea2;
}

.team-role-badge.away {
    color: #0f172a;
    background: #e2e8f0;
}

.official-score {
    min-width: 118px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
}

.official-result-label {
    font-size: 0.72rem;
    font-weight: 900;
    color: #64748b;
    text-transform: uppercase;
}

.prediction-form {
    display: grid;
    gap: 14px;
}

.prediction-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.prediction-buttons label {
    flex: 1 1 96px;
    font-weight: 900;
}

.prediction-buttons label span {
    font-size: 0.8rem;
    font-weight: 700;
}

.predicted-score-box {
    display: grid;
    gap: 10px;
    padding: 14px;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    background: rgba(248, 250, 252, 0.86);
}

.score-input-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 86px;
    gap: 12px;
    align-items: center;
}

.score-input-row label {
    margin: 0;
    font-weight: 800;
    color: #0f172a;
}

.score-input-row .form-control {
    text-align: center;
    font-weight: 950;
}

.official-play-box {
    display: grid;
    gap: 4px;
    margin: 12px 0;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
    background: rgba(248, 250, 252, 0.9);
    color: #0f172a;
}

.official-play-box span {
    font-size: 0.76rem;
    font-weight: 900;
    text-transform: uppercase;
    color: #64748b;
}

.official-play-box.has-official {
    border-color: #bbf7d0;
    background: #ecfdf5;
}

.official-play-box.no-official {
    border-color: #fed7aa;
    background: #fff7ed;
}

/* -----------------------------
   GLOBAL
----------------------------- */

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--seaport-white);
    background-color: var(--seaport-dark);
}

body.worldcup-theme {
    min-height: 100vh;
    background-color: #041126;
    background-image:
        linear-gradient(
            rgba(3, 13, 31, 0.10),
            rgba(3, 13, 31, 0.28)
        ),
        url("../images/hero/seaport-trophy-hero.png");
    background-repeat: no-repeat, no-repeat;
    background-position: center center, center center;
    background-size: cover, 68% auto;
    background-attachment: fixed, fixed;
    color: #ffffff;
}

a {
    text-decoration: none;
}

img {
    max-width: 100%;
}

.text-muted,
.text-secondary {
    color: rgba(255, 255, 255, 0.68) !important;
}

.app-shell {
    min-height: calc(100vh - 150px);
}

/* -----------------------------
   NAVBAR / BRANDING
----------------------------- */

.bg-pro,
.seaport-navbar {
    background: rgba(3, 13, 31, 0.96) !important;
}

.seaport-navbar {
    min-height: 76px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.09);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.seaport-navbar .container {
    display: flex;
    align-items: center;
}

.navbar-brand.brand-wrap {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
    max-width: 620px;
    padding-top: 5px;
    padding-bottom: 5px;
    margin-right: 18px;
}

.brand-logo-box,
.brand-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: auto;
    height: auto;
    padding: 6px 10px !important;
    margin: 0 !important;
    background: rgba(255, 255, 255, 0.96) !important;
    border: 0 !important;
    border-radius: 12px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22) !important;
    flex-shrink: 0;
}

.seaport-logo,
.navbar-brand .brand-logo img,
.brand-logo-img {
    display: block;
    height: 64px;
    width: auto;
    max-width: 250px;
    object-fit: contain;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

.brand-separator,
.brand-divider {
    width: 1px;
    height: 42px;
    background: rgba(255, 255, 255, 0.35);
    display: block;
    flex-shrink: 0;
}

.brand-name,
.brand-title {
    display: block;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -0.25px;
    max-width: 330px;
    white-space: normal;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
}

.seaport-navbar .nav-link {
    color: rgba(255, 255, 255, 0.86) !important;
    font-weight: 800;
    font-size: 0.9rem;
}

.seaport-navbar .nav-link:hover,
.seaport-navbar .nav-link:focus {
    color: #ffffff !important;
}

.seaport-navbar .btn-light {
    color: #061223 !important;
    border: 0;
}

/* -----------------------------
   LANGUAGE SWITCH
----------------------------- */

.lang-switch {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: 8px;
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.lang-switch a {
    color: rgba(255, 255, 255, 0.72);
    font-weight: 900;
    font-size: 0.78rem;
    text-decoration: none;
    line-height: 1;
}

.lang-switch a.active {
    color: #061223;
    background: #ffffff;
    padding: 5px 8px;
    border-radius: 999px;
}

.lang-switch span {
    color: rgba(255, 255, 255, 0.45);
}

/* -----------------------------
   LOGIN / AUTH
----------------------------- */

.seaport-auth-shell {
    min-height: calc(100vh - 150px);
    max-width: 1240px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 430px;
    align-items: center;
    gap: 46px;
    padding: 58px 0;
}

/* Mueve solo el texto para que no tape la copa */
.seaport-auth-copy {
    position: relative;
    z-index: 2;
    max-width: 720px;
    padding-left: 360px;
    padding-top: 10px;
}

/* Oculta logo duplicado del hero */
.auth-brand-logo,
.hero-logo,
.auth-logo-wrap,
.hero-logo-wrap {
    display: none !important;
}

/* Badge */
.seaport-badge,
.seaport-auth-copy .eyebrow,
.hero-badge,
.badge-tournament {
    display: inline-flex;
    width: fit-content;
    padding: 8px 18px;
    margin-bottom: 18px;
    border-radius: 999px;
    background: rgba(248, 211, 92, 0.20);
    border: 1px solid rgba(248, 211, 92, 0.55);
    color: #ffe985;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    text-shadow: none;
}

/* TÃ­tulo */
.seaport-hero-title,
.hero-title {
    max-width: 700px;
    margin: 0 0 14px;
    color: #ffffff;
    font-size: clamp(2.5rem, 4vw, 4.8rem);
    line-height: 0.96;
    font-weight: 950;
    letter-spacing: -1.8px;
    text-shadow: 0 5px 24px rgba(0, 0, 0, 0.70);
}

/* SubtÃ­tulo */
.seaport-hero-subtitle,
.hero-subtitle {
    max-width: 560px;
    color: rgba(255, 255, 255, 0.92);
    font-size: 1.05rem;
    text-shadow: 0 4px 18px rgba(0, 0, 0, 0.62);
}

/* Card login */
.seaport-login-card,
.auth-card,
.login-card,
.register-card,
.card-pro {
    width: 100%;
    max-width: 430px;
    margin-left: 0;
    margin-right: 0;
    padding: 30px !important;
    background: var(--seaport-card) !important;
    border: 1px solid var(--seaport-border) !important;
    border-radius: var(--radius-lg) !important;
    box-shadow: var(--seaport-shadow) !important;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    color: #ffffff;
}

.seaport-login-card h1,
.auth-card h1,
.login-card h1,
.register-card h1 {
    color: #ffffff;
    font-size: 2.15rem;
    font-weight: 950;
    margin-bottom: 6px;
}

/* -----------------------------
   FORMS
----------------------------- */

.form-control,
.form-select {
    background-color: rgba(255, 255, 255, 0.10) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.24) !important;
    border-radius: 12px !important;
    min-height: 44px;
}

.form-control:focus,
.form-select:focus {
    background-color: rgba(255, 255, 255, 0.14) !important;
    border-color: var(--seaport-cyan) !important;
    box-shadow: 0 0 0 0.25rem rgba(34, 211, 238, 0.18) !important;
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.48);
}

.form-label {
    color: rgba(255, 255, 255, 0.90);
    font-weight: 800;
}

/* -----------------------------
   BUTTONS
----------------------------- */

.btn-primary,
.btn-gradient,
.btn-pro,
.auth-card button[type="submit"],
.login-card button[type="submit"],
.register-card button[type="submit"],
.seaport-login-card button[type="submit"] {
    background: linear-gradient(135deg, var(--seaport-green), var(--seaport-blue)) !important;
    border: 0 !important;
    color: #ffffff !important;
    font-weight: 900 !important;
    border-radius: 999px !important;
    min-height: 46px;
    box-shadow: 0 14px 30px rgba(14, 165, 233, 0.25);
}

.btn-primary:hover,
.btn-gradient:hover,
.btn-pro:hover {
    filter: brightness(1.07);
    color: #ffffff;
}

.btn-outline-light {
    border-color: rgba(255, 255, 255, 0.35);
    color: #ffffff;
    font-weight: 800;
    border-radius: 999px;
}

.btn-outline-light:hover {
    background: #ffffff;
    color: #061223;
}

/* -----------------------------
   CARDS / GENERAL CONTENT
----------------------------- */

.card,
.worldcup-card,
.stat-card,
.group-card,
.ranking-card,
.match-card {
    background: rgba(5, 18, 42, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-md);
    color: #ffffff;
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
}

.card-header {
    background: rgba(255, 255, 255, 0.06);
    border-bottom: 1px solid rgba(255, 255, 255, 0.10);
    color: #ffffff;
    font-weight: 900;
}

.card-body {
    color: #ffffff;
}

.worldcup-card,
.worldcup-glass {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.stat-card {
    padding: 22px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stat-card:hover,
.worldcup-card:hover,
.match-card:hover,
.group-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.34);
}

/* -----------------------------
   TABLES
----------------------------- */

.table {
    color: #ffffff;
}

.table > :not(caption) > * > * {
    background-color: transparent;
    color: #ffffff;
    border-bottom-color: rgba(255, 255, 255, 0.10);
}

.table thead th {
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    border-bottom-color: rgba(255, 255, 255, 0.18);
}

.table-responsive {
    border-radius: var(--radius-md);
}

/* -----------------------------
   BADGES
----------------------------- */

.badge {
    font-weight: 800;
    border-radius: 999px;
}

.badge.bg-success,
.status-active {
    background: rgba(32, 201, 151, 0.18) !important;
    color: #6ff3ca !important;
    border: 1px solid rgba(32, 201, 151, 0.35);
}

.badge.bg-danger,
.status-inactive {
    background: rgba(239, 68, 68, 0.18) !important;
    color: #ff9f9f !important;
    border: 1px solid rgba(239, 68, 68, 0.35);
}

.badge.bg-warning {
    background: rgba(248, 211, 92, 0.18) !important;
    color: #ffe985 !important;
    border: 1px solid rgba(248, 211, 92, 0.35);
}

.badge.bg-info {
    background: rgba(34, 211, 238, 0.18) !important;
    color: #8df3ff !important;
    border: 1px solid rgba(34, 211, 238, 0.35);
}

/* -----------------------------
   MATCH / PREDICTION
----------------------------- */

.match-card {
    padding: 20px;
    overflow: hidden;
}

.team-logo,
.worldcup-team-logo {
    width: 58px;
    height: 58px;
    object-fit: contain;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    padding: 7px;
}

.vs,
.worldcup-vs {
    font-weight: 950;
    font-size: 1.25rem;
    color: var(--seaport-gold);
}

.prediction-btn,
.worldcup-prediction-btn {
    min-width: 64px;
    min-height: 48px;
    border-radius: 14px;
    font-weight: 950;
    border: 1px solid rgba(255, 255, 255, 0.20);
    color: #ffffff;
    background: rgba(255, 255, 255, 0.10);
    transition: all 0.18s ease;
}

.prediction-btn:hover,
.worldcup-prediction-btn:hover {
    background: rgba(34, 211, 238, 0.20);
    border-color: rgba(34, 211, 238, 0.50);
}

.prediction-btn.active,
.worldcup-prediction-btn.active,
.btn-check:checked + .prediction-btn,
.btn-check:checked + .worldcup-prediction-btn {
    background: linear-gradient(135deg, var(--seaport-green), var(--seaport-blue));
    border-color: transparent;
    color: #ffffff;
    box-shadow: 0 12px 28px rgba(14, 165, 233, 0.35);
}

/* -----------------------------
   USERS / GROUPS / RANKING
----------------------------- */

.user-avatar,
.avatar,
.ranking-avatar {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    object-fit: cover;
    background: rgba(255, 255, 255, 0.12);
    border: 2px solid rgba(255, 255, 255, 0.18);
}

.group-card {
    padding: 18px;
}

.group-card .group-title {
    color: #ffffff;
    font-weight: 950;
}

.ranking-position {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 950;
    background: rgba(255, 255, 255, 0.12);
}

.rank-1,
.position-1 {
    background: rgba(248, 211, 92, 0.22);
    border-color: rgba(248, 211, 92, 0.45);
}

.rank-2,
.position-2 {
    background: rgba(226, 232, 240, 0.18);
    border-color: rgba(226, 232, 240, 0.40);
}

.rank-3,
.position-3 {
    background: rgba(180, 83, 9, 0.22);
    border-color: rgba(180, 83, 9, 0.45);
}

/* -----------------------------
   ALERTS
----------------------------- */

.alert {
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.20);
}

.alert-success {
    color: #c9ffe9;
    background: rgba(32, 201, 151, 0.16);
}

.alert-danger {
    color: #ffd0d0;
    background: rgba(239, 68, 68, 0.16);
}

.alert-warning {
    color: #fff1b8;
    background: rgba(248, 211, 92, 0.16);
}

.alert-info {
    color: #c4f8ff;
    background: rgba(34, 211, 238, 0.16);
}

/* -----------------------------
   FOOTER
----------------------------- */

.site-footer {
    padding: 16px 0;
    color: rgba(255, 255, 255, 0.78);
    background: rgba(3, 13, 31, 0.88);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.site-footer .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.site-footer span {
    font-weight: 900;
}

.site-footer small {
    color: rgba(255, 255, 255, 0.62);
}

/* -----------------------------
   UTILITIES
----------------------------- */

.glass,
.bg-glass {
    background: rgba(5, 18, 42, 0.78) !important;
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.rounded-pro {
    border-radius: var(--radius-lg);
}

.shadow-pro {
    box-shadow: var(--seaport-shadow);
}

.text-gold {
    color: var(--seaport-gold) !important;
}

.text-cyan {
    color: var(--seaport-cyan) !important;
}

/* -----------------------------
   RESPONSIVE
----------------------------- */

@media (max-width: 1200px) {
    .seaport-auth-copy {
        padding-left: 300px;
    }
}

@media (max-width: 991px) {
    body.worldcup-theme {
        background-position: center center, center center;
        background-size: cover, 70% auto;
        background-attachment: scroll, scroll;
    }

    .seaport-navbar {
        min-height: 70px;
    }

    .navbar-brand.brand-wrap {
        max-width: 78%;
        gap: 9px;
        margin-right: 8px;
    }

    .seaport-logo,
    .navbar-brand .brand-logo img,
    .brand-logo-img {
        height: 48px;
        max-width: 190px;
    }

    .brand-separator,
    .brand-divider {
        height: 34px;
    }

    .brand-name,
    .brand-title {
        font-size: 0.84rem;
        max-width: 190px;
    }

    .navbar-collapse {
        padding-top: 14px;
        padding-bottom: 10px;
    }

    .lang-switch {
        width: fit-content;
        margin-top: 8px;
        margin-left: 0;
    }

    .seaport-auth-shell {
        max-width: 100%;
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 42px 0;
    }

    .seaport-auth-copy {
        padding-left: 0;
        padding-top: 0;
        max-width: 100%;
    }

    .seaport-login-card,
    .auth-card,
    .login-card,
    .register-card,
    .card-pro {
        max-width: 100%;
        margin-left: 0;
    }

    .seaport-hero-title,
    .hero-title {
        font-size: clamp(2.2rem, 9vw, 4rem);
    }
}

@media (max-width: 767px) {
    .app-shell {
        padding-left: 14px;
        padding-right: 14px;
    }

    .site-footer .container {
        flex-direction: column;
        align-items: flex-start;
    }

    .match-card {
        padding: 16px;
    }

    .team-logo,
    .worldcup-team-logo {
        width: 50px;
        height: 50px;
    }

    .prediction-btn,
    .worldcup-prediction-btn {
        min-width: 58px;
        min-height: 46px;
    }
}

@media (max-width: 575px) {
    .seaport-navbar {
        min-height: 64px;
    }

    .navbar-brand.brand-wrap {
        max-width: 75%;
        gap: 7px;
    }

    .seaport-logo,
    .navbar-brand .brand-logo img,
    .brand-logo-img {
        height: 40px;
        max-width: 155px;
    }

    .brand-separator,
    .brand-divider {
        height: 28px;
    }

    .brand-name,
    .brand-title {
        font-size: 0.74rem;
        max-width: 140px;
        line-height: 1.02;
    }

    .seaport-hero-title,
    .hero-title {
        font-size: 2.25rem;
    }

    .seaport-login-card,
    .auth-card,
    .login-card,
    .register-card,
    .card-pro {
        padding: 22px !important;
        border-radius: 18px !important;
    }

    .seaport-badge,
    .hero-badge,
    .badge-tournament {
        font-size: 0.75rem;
        padding: 7px 12px;
    }
}
/* =========================================================
   FONDO MAS CLARO
   ========================================================= */

body.worldcup-theme {
    min-height: 100vh;
    background-color: #061a36;
    background-image:
        linear-gradient(
            rgba(3, 13, 31, 0.03),
            rgba(3, 13, 31, 0.18)
        ),
        url("../images/hero/seaport-trophy-hero.png") !important;
    background-repeat: no-repeat, no-repeat;
    background-position: center center, center center;
    background-size: cover, 70% auto;
    background-attachment: fixed, fixed;
    color: #ffffff;
}

/* Si hay capas oscuras encima, las aclaramos */
body.worldcup-theme::before,
.worldcup-theme::before,
.worldcup-bg::before,
.auth-page::before,
.login-page::before,
.register-page::before,
.auth-hero::before,
.login-hero::before,
.register-hero::before,
.worldcup-hero::before,
.hero-section::before {
    background: rgba(3, 13, 31, 0.05) !important;
}

/* El login sigue legible aunque el fondo sea claro */
.seaport-login-card,
.auth-card,
.login-card,
.register-card,
.card-pro {
    background: rgba(5, 18, 42, 0.86) !important;
}

/* Texto mÃ¡s fuerte para que se lea sobre fondo claro */
.seaport-hero-title,
.hero-title {
    text-shadow: 0 6px 24px rgba(0, 0, 0, 0.78);
}

.seaport-hero-subtitle,
.hero-subtitle {
    text-shadow: 0 4px 18px rgba(0, 0, 0, 0.72);
}
/* =========================================================
   PANTALLA COMPLETA LOGIN / AUTH
   ========================================================= */

/* PÃ¡gina completa */
html,
body {
    min-height: 100%;
}

/* El fondo ocupa toda la pantalla */
body.worldcup-theme {
    min-height: 100vh;
    background-color: #041126;
    background-image:
        linear-gradient(
            rgba(3, 13, 31, 0.04),
            rgba(3, 13, 31, 0.18)
        ),
        url("../images/hero/seaport-trophy-hero.png");
    background-repeat: no-repeat, no-repeat;
    background-position: center center, center center;
    background-size: cover, 70% auto;
    background-attachment: fixed, fixed;
}

/* El main ocupa el alto disponible entre navbar y footer */
main.app-shell {
    min-height: calc(100vh - 132px);
    display: block;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

main.app-shell-auth {
    display: flex;
    align-items: center;
}

main.app-shell-content {
    padding-top: 30px !important;
    padding-bottom: 42px !important;
}

.auth-main-wrap,
.app-content-wrap {
    width: 100%;
}

.auth-main-wrap {
    max-width: 1320px;
    margin: 0 auto;
    padding-left: 16px;
    padding-right: 16px;
}

.app-content-wrap {
    position: relative;
    z-index: 1;
}

.page-title {
    margin-bottom: 22px;
    text-shadow: 0 5px 22px rgba(0, 0, 0, 0.48);
}

.page-title h1 {
    margin-bottom: 8px;
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 950;
}

.page-title p {
    max-width: 720px;
    color: rgba(255, 255, 255, 0.84);
}

.pool-card {
    height: 100%;
    padding: 22px;
    background: rgba(5, 18, 42, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: var(--radius-md);
    color: #ffffff;
    box-shadow: 0 20px 56px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.pool-card h2 {
    font-size: 1.55rem;
    font-weight: 900;
    line-height: 1.15;
}

.pool-card p,
.pool-card small {
    color: rgba(255, 255, 255, 0.78);
}

.pool-card .d-flex.gap-2 {
    flex-wrap: wrap;
}

.team-flag {
    display: inline-flex;
    min-width: 2.2rem;
    font-size: 1.35rem;
    line-height: 1;
}

.prediction-help {
    margin-top: 14px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.88rem;
    text-align: center;
}

.btn-outline-dark {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.08);
}

.btn-outline-dark:hover,
.btn-outline-dark:focus {
    color: #031024;
    border-color: rgba(255, 255, 255, 0.78);
    background: rgba(255, 255, 255, 0.92);
}

main.app-shell {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

/* El login usa todo el ancho del container y se centra verticalmente */
.seaport-auth-shell {
    width: 100%;
    min-height: calc(100vh - 132px);
    display: grid;
    grid-template-columns: minmax(0, 1fr) 430px;
    align-items: center;
    gap: 46px;
    padding-top: 24px;
    padding-bottom: 24px;
}

/* Texto separado de la copa */
.seaport-auth-copy {
    padding-left: 360px;
}

/* Card estable */
.seaport-login-card,
.auth-card,
.login-card,
.register-card,
.card-pro {
    align-self: center;
}

/* Footer mÃ¡s compacto para que no robe altura */
.site-footer {
    padding: 10px 0;
}

/* Responsive */
@media (max-width: 991px) {
    body.worldcup-theme {
        background-position: center center, center center;
        background-size: cover, 70% auto;
        background-attachment: scroll, scroll;
    }

    main.app-shell-auth {
        min-height: calc(100vh - 124px);
        align-items: stretch;
        padding-top: 20px !important;
        padding-bottom: 20px !important;
    }

    main.app-shell-content {
        padding-top: 22px !important;
        padding-bottom: 32px !important;
    }

    .seaport-auth-shell {
        min-height: auto;
        grid-template-columns: 1fr;
        gap: 30px;
        padding-top: 30px;
        padding-bottom: 30px;
    }

    .seaport-auth-copy {
        padding-left: 0;
    }
}
/* =========================================================
   SIDEBAR MENU ADMIN / USER
   ========================================================= */

body.has-sidebar {
    background-color: #041126;
    background-image:
        linear-gradient(
            rgba(3, 13, 31, 0.16),
            rgba(3, 13, 31, 0.46)
        ),
        url("../images/hero/seaport-trophy-hero.png");
    background-repeat: no-repeat, no-repeat;
    background-position: center center, center center;
    background-size: cover, cover;
    background-attachment: fixed, fixed;
}

.app-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 270px;
    height: 100vh;
    z-index: 1040;
    flex-direction: column;
    padding: 20px 16px;
    background: rgba(3, 13, 31, 0.96);
    border-right: 1px solid rgba(255, 255, 255, 0.10);
    box-shadow: 16px 0 50px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 18px;
    margin-bottom: 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.sidebar-brand strong {
    color: #ffffff;
    font-size: 0.95rem;
    line-height: 1.1;
    font-weight: 900;
}

.sidebar-logo {
    width: 86px;
    height: auto;
    object-fit: contain;
    background: #ffffff;
    border-radius: 8px;
    padding: 5px 8px;
    flex-shrink: 0;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 7px;
    overflow-y: auto;
    padding-right: 4px;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    min-height: 42px;
    padding: 10px 13px;
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.82);
    font-weight: 800;
    text-decoration: none;
    transition: all 0.18s ease;
}

.sidebar-nav a:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.10);
    transform: translateX(2px);
}

.sidebar-bottom {
    margin-top: auto;
    padding-top: 18px;
}

.sidebar-lang {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    margin-bottom: 14px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.10);
}

.sidebar-lang a {
    color: rgba(255, 255, 255, 0.75);
    font-weight: 900;
    text-decoration: none;
    font-size: 0.82rem;
}

.sidebar-lang a.active {
    color: #061223;
    background: #ffffff;
    padding: 5px 9px;
    border-radius: 999px;
}

.sidebar-lang span {
    color: rgba(255, 255, 255, 0.45);
}

.app-content {
    min-height: 100vh;
    margin-left: 270px;
    padding: 28px;
}

.content-inner {
    width: 100%;
    max-width: 1320px;
    margin: 0 auto;
}

.sidebar-toggle {
    position: fixed;
    top: 14px;
    left: 14px;
    z-index: 1055;
    border: 0;
    border-radius: 999px;
    padding: 10px 16px;
    background: #ffffff;
    color: #061223;
    font-weight: 900;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

.mobile-sidebar {
    background: rgba(3, 13, 31, 0.98);
    color: #ffffff;
}

.mobile-sidebar .offcanvas-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

/* Ajustar tablas y paneles dentro del contenido */
.app-content .panel,
.app-content .card,
.app-content .worldcup-card {
    background: rgba(5, 18, 42, 0.84);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 20px;
    box-shadow: 0 20px 54px rgba(0, 0, 0, 0.28);
}

/* Responsive */
@media (max-width: 991px) {
    .app-content {
        margin-left: 0;
        padding: 72px 16px 22px;
    }

    .content-inner {
        max-width: 100%;
    }
}

@media (max-width: 575px) {
    .sidebar-logo {
        width: 74px;
    }

    .sidebar-brand strong {
        font-size: 0.84rem;
    }

    .app-content {
        padding-left: 12px;
        padding-right: 12px;
    }
}

/* =========================================================
   CORPORATE LIGHT THEME
   ========================================================= */

:root {
    --corp-bg: #f4f7fb;
    --corp-sidebar: #031024;
    --corp-card: #ffffff;
    --corp-text: #0f172a;
    --corp-muted: #64748b;
    --corp-primary: #0b4ea2;
    --corp-cyan: #0ea5e9;
    --corp-green: #20c997;
    --corp-border: #e2e8f0;
    --corp-shadow: 0 18px 46px rgba(15, 23, 42, 0.08);
}

body,
body.worldcup-theme,
body.has-sidebar {
    color: var(--corp-text) !important;
    background-color: var(--corp-bg) !important;
    background-image: none !important;
    background-attachment: scroll !important;
}

body.auth-layout.worldcup-theme {
    background-image:
        linear-gradient(90deg, rgba(3, 16, 36, 0.08), rgba(244, 247, 251, 0.10) 42%, rgba(244, 247, 251, 0.24)),
        linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(15, 23, 42, 0.08)),
        url("../images/backgrounds/worldcup-2026-pro.png") !important;
    background-repeat: no-repeat, no-repeat, no-repeat !important;
    background-position: left center, left center, left center !important;
    background-size: cover, cover, cover !important;
    background-attachment: fixed, fixed, fixed !important;
}

body.worldcup-theme::before,
.worldcup-theme::before,
.worldcup-bg::before,
.auth-page::before,
.login-page::before,
.register-page::before,
.auth-hero::before,
.login-hero::before,
.register-hero::before,
.worldcup-hero::before,
.hero-section::before {
    background: transparent !important;
}

.app-content {
    background: var(--corp-bg) !important;
    color: var(--corp-text) !important;
}

.content-inner {
    color: var(--corp-text) !important;
}

.app-sidebar,
.mobile-sidebar {
    background: var(--corp-sidebar) !important;
    border-right: 1px solid rgba(255, 255, 255, 0.10) !important;
    box-shadow: 14px 0 34px rgba(15, 23, 42, 0.18) !important;
}

.sidebar-logo {
    width: 108px;
    background: #ffffff !important;
    border-radius: 10px;
    padding: 7px 10px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

.sidebar-brand {
    border-bottom-color: rgba(255, 255, 255, 0.12) !important;
}

.sidebar-brand strong,
.sidebar-nav a,
.sidebar-lang a,
.sidebar-lang span {
    color: rgba(255, 255, 255, 0.86);
}

.sidebar-nav a:hover,
.sidebar-nav a:focus {
    color: #ffffff !important;
    background: rgba(14, 165, 233, 0.18) !important;
}

.panel,
.card,
.card-pro,
.worldcup-card,
.stat-card,
.group-card,
.ranking-card,
.match-card,
.pool-card,
.app-content .panel,
.app-content .card,
.app-content .worldcup-card {
    color: var(--corp-text) !important;
    background: var(--corp-card) !important;
    border: 1px solid var(--corp-border) !important;
    border-radius: 16px !important;
    box-shadow: var(--corp-shadow) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

.card-header {
    color: var(--corp-text) !important;
    background: #f8fafc !important;
    border-bottom: 1px solid var(--corp-border) !important;
}

.card-body,
.panel,
.pool-card p,
.pool-card small,
.match-card,
.group-card .group-title,
.prediction-help {
    color: var(--corp-text) !important;
}

.text-muted,
.text-secondary,
.page-title p,
.pool-card p,
.pool-card small,
.prediction-help {
    color: var(--corp-muted) !important;
}

.page-title {
    text-shadow: none !important;
}

.page-title h1,
.panel h1,
.panel h2,
.card h1,
.card h2,
.pool-card h2,
.seaport-login-card h1,
.auth-card h1,
.login-card h1,
.register-card h1 {
    color: var(--corp-text) !important;
}

.table {
    color: var(--corp-text) !important;
}

.table > :not(caption) > * > * {
    color: var(--corp-text) !important;
    background-color: transparent !important;
    border-bottom-color: var(--corp-border) !important;
}

.table thead th {
    color: var(--corp-muted) !important;
    border-bottom-color: var(--corp-border) !important;
}

.form-label {
    color: var(--corp-text) !important;
    font-weight: 800;
}

.form-control,
.form-select {
    color: var(--corp-text) !important;
    background-color: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    box-shadow: none !important;
}

.form-control:focus,
.form-select:focus {
    color: var(--corp-text) !important;
    background-color: #ffffff !important;
    border-color: var(--corp-cyan) !important;
    box-shadow: 0 0 0 0.2rem rgba(14, 165, 233, 0.16) !important;
}

.form-control::placeholder {
    color: #94a3b8 !important;
}

.btn-pro,
.btn-gradient,
.auth-card button[type="submit"],
.login-card button[type="submit"],
.register-card button[type="submit"],
.seaport-login-card button[type="submit"] {
    color: #ffffff !important;
    background: linear-gradient(135deg, var(--corp-primary), var(--corp-cyan)) !important;
    border: 0 !important;
    box-shadow: 0 12px 26px rgba(11, 78, 162, 0.22) !important;
}

.btn-pro:hover,
.btn-gradient:hover {
    color: #ffffff !important;
    filter: brightness(1.06);
}

.btn-outline-dark,
.btn-outline-primary,
.btn-outline-success {
    color: var(--corp-primary) !important;
    background: #ffffff !important;
    border-color: #bfdbfe !important;
}

.btn-outline-dark:hover,
.btn-outline-dark:focus,
.btn-outline-primary:hover,
.btn-outline-primary:focus,
.btn-outline-success:hover,
.btn-outline-success:focus {
    color: #ffffff !important;
    background: var(--corp-primary) !important;
    border-color: var(--corp-primary) !important;
}

.badge.text-bg-secondary {
    color: #334155 !important;
    background: #e2e8f0 !important;
}

.badge.text-bg-info {
    color: #075985 !important;
    background: #e0f2fe !important;
}

.badge.text-bg-success {
    color: #065f46 !important;
    background: #d1fae5 !important;
}

.pick-badge,
.worldcup-vs,
.vs {
    color: var(--corp-primary) !important;
    background: #e0f2fe !important;
}

.team-side strong,
.match-date {
    color: var(--corp-text) !important;
}

.seaport-login-card,
.auth-card,
.login-card,
.register-card {
    color: #ffffff !important;
    background: rgba(4, 18, 44, 0.84) !important;
    border: 1px solid rgba(255, 255, 255, 0.18) !important;
    border-radius: 24px !important;
    box-shadow: 0 22px 60px rgba(15, 23, 42, 0.24) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
}

body.auth-layout .auth-card .form-label,
body.auth-layout .seaport-login-card .form-label,
body.auth-layout .login-card .form-label,
body.auth-layout .register-card .form-label,
body.auth-layout .auth-card h1,
body.auth-layout .seaport-login-card h1,
body.auth-layout .login-card h1,
body.auth-layout .register-card h1 {
    color: #ffffff !important;
}

body.auth-layout .auth-card .text-muted,
body.auth-layout .seaport-login-card .text-muted,
body.auth-layout .login-card .text-muted,
body.auth-layout .register-card .text-muted {
    color: rgba(255, 255, 255, 0.74) !important;
}

body.auth-layout .auth-card .form-control,
body.auth-layout .seaport-login-card .form-control,
body.auth-layout .login-card .form-control,
body.auth-layout .register-card .form-control,
body.auth-layout .auth-card .form-select,
body.auth-layout .seaport-login-card .form-select,
body.auth-layout .login-card .form-select,
body.auth-layout .register-card .form-select {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.14) !important;
    border: 1px solid rgba(255, 255, 255, 0.22) !important;
}

body.auth-layout .auth-card .form-control:focus,
body.auth-layout .seaport-login-card .form-control:focus,
body.auth-layout .login-card .form-control:focus,
body.auth-layout .register-card .form-control:focus,
body.auth-layout .auth-card .form-select:focus,
body.auth-layout .seaport-login-card .form-select:focus,
body.auth-layout .login-card .form-select:focus,
body.auth-layout .register-card .form-select:focus {
    background: rgba(255, 255, 255, 0.18) !important;
    border-color: rgba(14, 165, 233, 0.86) !important;
    box-shadow: 0 0 0 0.22rem rgba(14, 165, 233, 0.18) !important;
}

body.auth-layout .auth-card .form-control::placeholder,
body.auth-layout .seaport-login-card .form-control::placeholder,
body.auth-layout .login-card .form-control::placeholder,
body.auth-layout .register-card .form-control::placeholder {
    color: rgba(255, 255, 255, 0.72) !important;
}

.seaport-auth-copy,
.seaport-hero-title,
.hero-title,
.seaport-hero-subtitle,
.hero-subtitle {
    color: var(--corp-text) !important;
    text-shadow: none !important;
}

.seaport-hero-subtitle,
.hero-subtitle {
    color: var(--corp-muted) !important;
}

.seaport-badge,
.eyebrow {
    color: var(--corp-primary) !important;
    background: #e0f2fe !important;
    border-color: #bae6fd !important;
}

.site-footer {
    color: var(--corp-muted) !important;
    background: transparent !important;
}

.site-footer span {
    color: var(--corp-text) !important;
}

body.auth-layout .seaport-auth-shell {
    min-height: calc(100vh - 120px) !important;
    align-items: center !important;
    grid-template-columns: minmax(0, 1fr) 430px !important;
    gap: 48px !important;
}

body.auth-layout .seaport-auth-copy {
    max-width: 560px;
    padding-left: 0 !important;
}

body.auth-layout .seaport-hero-title,
body.auth-layout .hero-title {
    color: #ffffff !important;
    text-shadow: 0 4px 18px rgba(0, 0, 0, 0.42) !important;
}

body.auth-layout .seaport-hero-subtitle,
body.auth-layout .hero-subtitle {
    color: rgba(255, 255, 255, 0.86) !important;
    text-shadow: 0 3px 14px rgba(0, 0, 0, 0.36) !important;
}

body.auth-layout .seaport-badge,
body.auth-layout .eyebrow {
    color: #ffffff !important;
    background: rgba(4, 18, 44, 0.42) !important;
    border-color: rgba(255, 255, 255, 0.30) !important;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

@media (max-width: 575px) {
    .sidebar-logo {
        width: 92px;
    }
}

@media (max-width: 991px) {
    body.auth-layout.worldcup-theme {
        background-position: center center, center center, center center !important;
        background-attachment: scroll, scroll, scroll !important;
    }

    body.auth-layout .seaport-auth-shell {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
    }
}

@media (max-width: 575px) {
    body.auth-layout.worldcup-theme {
        background-image:
            linear-gradient(180deg, rgba(3, 16, 36, 0.16), rgba(244, 247, 251, 0.36)),
            url("../images/backgrounds/worldcup-2026-pro.png") !important;
        background-position: center center, center center !important;
        background-size: cover, cover !important;
    }

    body.auth-layout .seaport-auth-copy {
        display: none;
    }
}
/* =========================================================
   DISEÑO INTERNO TIPO ADMINLTE FOOTBALL
   Sidebar oscuro + fondo deportivo en contenido
   Imagen: public/assets/images/backgrounds/adminlte.png
   ========================================================= */

body.has-sidebar {
    background: #f4f7fb !important;
    color: #0f172a !important;
}

/* Sidebar izquierdo fijo */
.app-sidebar {
    background: linear-gradient(180deg, #031024 0%, #061a36 100%) !important;
    border-right: 1px solid rgba(255, 255, 255, 0.10) !important;
    box-shadow: 18px 0 50px rgba(3, 16, 36, 0.25) !important;
}

/* Logo dentro del sidebar */
.sidebar-logo {
    background: #ffffff !important;
    border-radius: 10px !important;
    padding: 6px 8px !important;
}

.sidebar-brand strong {
    color: #ffffff !important;
    font-weight: 900 !important;
    line-height: 1.05 !important;
}

/* Links del sidebar */
.sidebar-nav a {
    color: rgba(255, 255, 255, 0.86) !important;
    border-radius: 12px !important;
    font-weight: 800 !important;
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
    background: linear-gradient(135deg, #0646b8, #0b4ea2) !important;
    color: #ffffff !important;
}

/* Área derecha con la imagen adminlte */
.app-content {
    min-height: 100vh;
    margin-left: 270px;
    padding: 40px 44px !important;

    background:
        linear-gradient(
            rgba(248, 251, 255, 0.46),
            rgba(248, 251, 255, 0.70)
        ),
        url("../images/backgrounds/adminlte.png") center center / cover no-repeat fixed !important;
}

/* Contenedor interno */
.content-inner {
    position: relative;
    z-index: 2;
    max-width: 1320px !important;
    margin: 0 auto !important;
}

/* Títulos */
.page-title {
    margin-bottom: 24px !important;
}

.page-title h1,
.app-content h1 {
    color: #071b3a !important;
    font-size: clamp(2.2rem, 4vw, 4rem) !important;
    font-weight: 950 !important;
    letter-spacing: -1.5px !important;
    text-shadow: none !important;
}

.app-content h2,
.app-content h3,
.app-content h4 {
    color: #0f172a !important;
    font-weight: 900 !important;
}

/* Subtítulos y texto */
.app-content p,
.app-content .text-muted,
.app-content small {
    color: #475569 !important;
}

/* Línea decorativa debajo de títulos */
.page-title::after {
    content: "";
    display: block;
    width: 54px;
    height: 3px;
    margin-top: 14px;
    border-radius: 999px;
    background: linear-gradient(135deg, #0b4ea2, #0ea5e9);
}

/* Tarjetas tipo AdminLTE */
.app-content .panel,
.app-content .card,
.app-content .pool-card,
.app-content .worldcup-card,
.app-content .match-card,
.app-content .group-card,
.app-content .ranking-card,
.app-content .stat-card {
    background: rgba(255, 255, 255, 0.92) !important;
    color: #0f172a !important;
    border: 1px solid rgba(226, 232, 240, 0.88) !important;
    border-radius: 18px !important;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.10) !important;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

/* Tarjeta de quiniela */
.pool-card {
    max-width: 520px;
    padding: 28px !important;
}

/* Badges */
.app-content .badge {
    border-radius: 999px !important;
    padding: 7px 12px !important;
    font-weight: 900 !important;
}

.app-content .text-bg-success,
.app-content .text-bg-info {
    background: #dcfce7 !important;
    color: #15803d !important;
}

/* Botones principales */
.app-content .btn-pro,
.app-content .btn-primary,
.app-content .btn-success {
    background: linear-gradient(135deg, #0646b8, #0ea5e9) !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 12px !important;
    font-weight: 900 !important;
    box-shadow: 0 12px 28px rgba(14, 86, 200, 0.22) !important;
}

/* Botones secundarios */
.app-content .btn-outline-primary,
.app-content .btn-outline-dark,
.app-content .btn-outline-success {
    background: rgba(255, 255, 255, 0.90) !important;
    color: #0646b8 !important;
    border: 1px solid #c7d7f7 !important;
    border-radius: 12px !important;
    font-weight: 800 !important;
}

.app-content .btn-outline-primary:hover,
.app-content .btn-outline-dark:hover,
.app-content .btn-outline-success:hover {
    background: #0646b8 !important;
    color: #ffffff !important;
}

/* Formularios */
.app-content .form-control,
.app-content .form-select {
    background: #ffffff !important;
    color: #0f172a !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 12px !important;
}

.app-content .form-control:focus,
.app-content .form-select:focus {
    border-color: #0ea5e9 !important;
    box-shadow: 0 0 0 0.22rem rgba(14, 165, 233, 0.16) !important;
}

.app-content .form-label {
    color: #0f172a !important;
    font-weight: 800 !important;
}

/* Tablas claras */
.app-content .table {
    color: #0f172a !important;
}

.app-content .table thead th {
    color: #475569 !important;
    background: rgba(248, 250, 252, 0.96) !important;
    border-bottom: 1px solid #e2e8f0 !important;
    font-weight: 900 !important;
}

.app-content .table tbody td {
    color: #0f172a !important;
    border-bottom: 1px solid #e2e8f0 !important;
}

/* Bloque informativo como "Sobre la quiniela" si existe */
.info-card,
.about-card,
.help-card {
    background: rgba(255, 255, 255, 0.70) !important;
    border: 1px solid rgba(226, 232, 240, 0.95) !important;
    border-radius: 16px !important;
    box-shadow: 0 14px 36px rgba(15, 23, 42, 0.08) !important;
}

/* Idioma y logout del sidebar */
.sidebar-lang {
    background: rgba(255, 255, 255, 0.10) !important;
}

.sidebar-lang a {
    color: rgba(255, 255, 255, 0.78) !important;
}

.sidebar-lang a.active {
    color: #031024 !important;
    background: #ffffff !important;
}

/* Responsive */
@media (max-width: 991px) {
    .app-content {
        margin-left: 0 !important;
        padding: 76px 18px 24px !important;

        background:
            linear-gradient(
                rgba(248, 251, 255, 0.64),
                rgba(248, 251, 255, 0.86)
            ),
            url("../images/backgrounds/adminlte.png") center center / cover no-repeat scroll !important;
    }

    .content-inner {
        max-width: 100% !important;
    }

    .page-title h1,
    .app-content h1 {
        font-size: 2.2rem !important;
    }

    .pool-card {
        max-width: 100%;
    }
}

@media (max-width: 575px) {
    .app-content {
        padding-left: 14px !important;
        padding-right: 14px !important;
    }

    .page-title h1,
    .app-content h1 {
        font-size: 1.9rem !important;
    }
}

/* =========================================================
   ADMINLTE 4 REAL LAYOUT OVERRIDES
   ========================================================= */

body.adminlte-layout {
    color: #0f172a !important;
    background: #f4f7fb !important;
}

body.adminlte-layout .app-wrapper {
    min-height: 100vh;
}

body.adminlte-layout .app-header {
    min-height: 58px;
    border-bottom: 1px solid #e2e8f0;
    box-shadow: 0 6px 22px rgba(15, 23, 42, 0.05);
    z-index: 1031;
}

body.adminlte-layout .adminlte-sidebar-toggle {
    color: #0f172a !important;
    text-decoration: none;
}

body.adminlte-layout .adminlte-sidebar-toggle .navbar-toggler-icon {
    filter: invert(1);
    opacity: 0.78;
}

body.adminlte-layout .app-sidebar {
    background: #031024 !important;
    background-image: linear-gradient(180deg, #031024 0%, #061a36 100%) !important;
    border-right: 1px solid rgba(255, 255, 255, 0.10) !important;
    box-shadow: 16px 0 46px rgba(15, 23, 42, 0.18) !important;
}

body.adminlte-layout .sidebar-brand {
    min-height: 82px;
    padding: 14px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12) !important;
}

body.adminlte-layout .brand-link {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #ffffff !important;
    text-decoration: none;
    min-width: 0;
}

body.adminlte-layout .sidebar-logo,
body.adminlte-layout .brand-image {
    width: 96px !important;
    max-height: none !important;
    height: auto !important;
    object-fit: contain;
    background: #ffffff !important;
    border-radius: 10px !important;
    padding: 7px 9px !important;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18) !important;
    margin: 0 !important;
}

body.adminlte-layout .brand-text {
    color: #ffffff !important;
    font-size: 0.9rem;
    line-height: 1.08;
    white-space: normal;
}

body.adminlte-layout .sidebar-wrapper {
    padding: 12px 10px;
}

body.adminlte-layout .sidebar-menu .nav-link {
    min-height: 42px;
    color: rgba(255, 255, 255, 0.82) !important;
    border-radius: 10px;
    font-weight: 800;
}

body.adminlte-layout .sidebar-menu .nav-link p {
    margin: 0;
}

body.adminlte-layout .sidebar-menu .nav-link:hover,
body.adminlte-layout .sidebar-menu .nav-link.active {
    color: #ffffff !important;
    background: linear-gradient(135deg, #0b4ea2, #0ea5e9) !important;
}

body.adminlte-layout .adminlte-menu-dot {
    width: 9px;
    height: 9px;
    border-radius: 999px;
    background: currentColor;
    opacity: 0.82;
    margin-right: 10px;
}

body.adminlte-layout .app-main,
body.adminlte-layout .app-content {
    background:
        linear-gradient(rgba(248, 251, 255, 0.45), rgba(248, 251, 255, 0.72)),
        url("../images/backgrounds/adminlte.png") center center / cover no-repeat fixed !important;
}

body.adminlte-layout .app-main {
    min-height: 100vh;
}

body.adminlte-layout .app-content-header {
    padding: 24px 28px 6px;
    color: #071b3a;
    background: transparent !important;
}

body.adminlte-layout .app-content-header h1 {
    color: #071b3a !important;
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    font-weight: 950;
    letter-spacing: 0;
}

body.adminlte-layout .app-content {
    min-height: calc(100vh - 92px);
    margin-left: 0 !important;
    padding: 18px 28px 34px !important;
}

body.adminlte-layout .content-inner {
    max-width: none !important;
}

body.adminlte-layout .page-title {
    margin-bottom: 20px !important;
    text-shadow: none !important;
}

body.adminlte-layout .page-title h1 {
    color: #0f172a !important;
    font-size: clamp(1.75rem, 2.6vw, 2.6rem) !important;
    font-weight: 950 !important;
    letter-spacing: 0 !important;
}

body.adminlte-layout .page-title p {
    color: #64748b !important;
}

body.adminlte-layout .page-title::after {
    display: none !important;
}

body.adminlte-layout .panel,
body.adminlte-layout .card,
body.adminlte-layout .pool-card,
body.adminlte-layout .match-card,
body.adminlte-layout .group-card,
body.adminlte-layout .ranking-card,
body.adminlte-layout .stat-card,
body.adminlte-layout .worldcup-card {
    background: rgba(255, 255, 255, 0.94) !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 16px !important;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08) !important;
    color: #0f172a !important;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

body.adminlte-layout .panel h1,
body.adminlte-layout .panel h2,
body.adminlte-layout .panel h3,
body.adminlte-layout .card h1,
body.adminlte-layout .card h2,
body.adminlte-layout .card h3,
body.adminlte-layout .pool-card h2,
body.adminlte-layout .match-card strong,
body.adminlte-layout .team-side strong {
    color: #0f172a !important;
}

body.adminlte-layout .text-muted,
body.adminlte-layout .text-secondary,
body.adminlte-layout .pool-card p,
body.adminlte-layout .pool-card small,
body.adminlte-layout .prediction-help {
    color: #64748b !important;
}

body.adminlte-layout .table {
    color: #0f172a !important;
}

body.adminlte-layout .table > :not(caption) > * > * {
    color: #0f172a !important;
    background-color: transparent !important;
    border-bottom-color: #e2e8f0 !important;
}

body.adminlte-layout .table thead th {
    color: #64748b !important;
    background: rgba(248, 250, 252, 0.95) !important;
    border-bottom-color: #e2e8f0 !important;
}

body.adminlte-layout .form-label {
    color: #0f172a !important;
    font-weight: 800;
}

body.adminlte-layout .form-control,
body.adminlte-layout .form-select {
    color: #0f172a !important;
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 10px !important;
}

body.adminlte-layout .form-control:focus,
body.adminlte-layout .form-select:focus {
    border-color: #0ea5e9 !important;
    box-shadow: 0 0 0 0.2rem rgba(14, 165, 233, 0.16) !important;
}

body.adminlte-layout .btn-pro,
body.adminlte-layout .btn-primary,
body.adminlte-layout .btn-success {
    color: #ffffff !important;
    background: linear-gradient(135deg, #0b4ea2, #0ea5e9) !important;
    border: 0 !important;
    border-radius: 10px !important;
    font-weight: 900 !important;
    box-shadow: 0 10px 24px rgba(11, 78, 162, 0.18) !important;
}

body.adminlte-layout .btn-outline-dark,
body.adminlte-layout .btn-outline-primary,
body.adminlte-layout .btn-outline-success {
    color: #0b4ea2 !important;
    background: rgba(255, 255, 255, 0.92) !important;
    border: 1px solid #bfdbfe !important;
    border-radius: 10px !important;
    font-weight: 800 !important;
}

body.adminlte-layout .btn-outline-dark:hover,
body.adminlte-layout .btn-outline-primary:hover,
body.adminlte-layout .btn-outline-success:hover {
    color: #ffffff !important;
    background: #0b4ea2 !important;
    border-color: #0b4ea2 !important;
}

body.adminlte-layout .adminlte-lang-switch {
    margin: 0;
    background: #f8fafc;
    border-color: #e2e8f0;
}

body.adminlte-layout .adminlte-lang-switch a {
    color: #64748b;
}

body.adminlte-layout .adminlte-lang-switch a.active {
    color: #ffffff;
    background: #0b4ea2;
}

@media (max-width: 991px) {
    body.adminlte-layout .app-content-header {
        padding: 20px 16px 4px;
    }

    body.adminlte-layout .app-content {
        padding: 14px 16px 26px !important;
        background:
            linear-gradient(rgba(248, 251, 255, 0.64), rgba(248, 251, 255, 0.86)),
            url("../images/backgrounds/adminlte.png") center center / cover no-repeat scroll !important;
    }
}
/* =========================================================
   VISTA TIPO ADMINLTE FOOTBALL
   ========================================================= */

.adminlte-body {
    margin: 0;
    min-height: 100vh;
    background: #f4f7fb;
    color: #0f172a;
}

.adminlte-wrapper {
    min-height: 100vh;
    display: flex;
}

.adminlte-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: 270px;
    min-height: 100vh;
    z-index: 1040;
    display: flex;
    flex-direction: column;
    padding: 22px 16px;
    background:
        radial-gradient(circle at top left, rgba(14, 165, 233, 0.16), transparent 36%),
        linear-gradient(180deg, #031024 0%, #061a36 100%);
    box-shadow: 18px 0 50px rgba(3, 16, 36, 0.28);
}

.adminlte-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.adminlte-logo {
    width: 90px;
    max-height: 70px;
    object-fit: contain;
    background: #ffffff;
    border-radius: 12px;
    padding: 7px;
}

.adminlte-brand-text {
    color: #ffffff;
    font-weight: 950;
    font-size: 0.92rem;
    line-height: 1.08;
}

.adminlte-nav {
    display: flex;
    flex-direction: column;
    gap: 6px;
    overflow-y: auto;
    padding-right: 3px;
}

.adminlte-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 42px;
    padding: 10px 13px;
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.86);
    font-weight: 800;
    font-size: 0.94rem;
    text-decoration: none;
    transition: 0.18s ease;
}

.adminlte-nav a span {
    width: 22px;
    text-align: center;
    opacity: 0.95;
}

.adminlte-nav a:hover {
    color: #ffffff;
    background: linear-gradient(135deg, #0646b8, #0b4ea2);
    transform: translateX(2px);
}

.adminlte-sidebar-bottom {
    margin-top: auto;
    padding-top: 18px;
}

.adminlte-lang {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    margin-bottom: 14px;
    padding: 7px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.10);
}

.adminlte-lang a {
    color: rgba(255, 255, 255, 0.78);
    font-weight: 900;
    text-decoration: none;
    font-size: 0.82rem;
}

.adminlte-lang a.active {
    color: #031024;
    background: #ffffff;
    padding: 5px 9px;
    border-radius: 999px;
}

.adminlte-lang span {
    color: rgba(255, 255, 255, 0.45);
}

.adminlte-logout {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    width: 100%;
    min-height: 44px;
    padding: 10px 14px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.92);
    color: #031024;
    font-weight: 900;
    text-decoration: none;
}

.adminlte-logout:hover {
    background: #ffffff;
    color: #031024;
}

.adminlte-main {
    width: 100%;
    min-height: 100vh;
    margin-left: 270px;
    background:
        linear-gradient(
            rgba(248, 251, 255, 0.44),
            rgba(248, 251, 255, 0.74)
        ),
        url("../images/backgrounds/adminlte.png") center center / cover no-repeat fixed;
}

.adminlte-topbar {
    height: 74px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 0 42px;
}

.adminlte-userbox {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    flex: 0 0 auto;
    margin-left: auto;
    color: #071b3a;
    white-space: nowrap;
}

.adminlte-user-toggle {
    display: inline-flex !important;
    align-items: center;
    flex-direction: row !important;
    gap: 12px;
    min-width: max-content;
    min-height: 46px;
    padding: 8px 10px;
    color: #071b3a;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(226, 232, 240, 0.92);
    border-radius: 12px;
    font: inherit;
    cursor: pointer;
    white-space: nowrap;
}

.adminlte-user-toggle:hover,
.adminlte-user-toggle:focus {
    background: rgba(11, 78, 162, 0.08);
    outline: none;
}

.adminlte-user-menu {
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 12px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.14);
}

.adminlte-bell {
    font-size: 1.1rem;
    flex: 0 0 auto;
}

.adminlte-avatar {
    width: 38px;
    height: 38px;
    border-radius: 999px;
    background: #071b3a;
    color: #ffffff;
    display: grid;
    place-items: center;
    flex: 0 0 38px;
}

.adminlte-user-toggle strong {
    display: inline-block;
    max-width: 220px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.adminlte-content {
    max-width: 1320px;
    padding: 10px 44px 48px;
}

/* Titulos */
.adminlte-content .page-title {
    margin-bottom: 24px;
}

.adminlte-content .page-title h1,
.adminlte-content h1 {
    color: #071b3a !important;
    font-size: clamp(2.2rem, 4vw, 4rem);
    font-weight: 950;
    letter-spacing: -1.5px;
    text-shadow: none !important;
}

.adminlte-content h2,
.adminlte-content h3,
.adminlte-content h4 {
    color: #0f172a !important;
    font-weight: 900;
}

.adminlte-content p,
.adminlte-content .text-muted,
.adminlte-content small {
    color: #475569 !important;
}

.adminlte-content .page-title::after {
    content: "";
    display: block;
    width: 54px;
    height: 3px;
    margin-top: 14px;
    border-radius: 999px;
    background: linear-gradient(135deg, #0b4ea2, #0ea5e9);
}

/* Tarjetas */
.adminlte-content .panel,
.adminlte-content .card,
.adminlte-content .pool-card,
.adminlte-content .worldcup-card,
.adminlte-content .match-card,
.adminlte-content .group-card,
.adminlte-content .ranking-card,
.adminlte-content .stat-card {
    background: rgba(255, 255, 255, 0.92) !important;
    color: #0f172a !important;
    border: 1px solid rgba(226, 232, 240, 0.88) !important;
    border-radius: 18px !important;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.10) !important;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.adminlte-content .pool-card {
    max-width: 520px;
    padding: 28px !important;
}

/* Botones */
.adminlte-content .btn-pro,
.adminlte-content .btn-primary,
.adminlte-content .btn-success {
    background: linear-gradient(135deg, #0646b8, #0ea5e9) !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 12px !important;
    font-weight: 900 !important;
    box-shadow: 0 12px 28px rgba(14, 86, 200, 0.22) !important;
}

.adminlte-content .btn-outline-primary,
.adminlte-content .btn-outline-dark,
.adminlte-content .btn-outline-success {
    background: rgba(255, 255, 255, 0.90) !important;
    color: #0646b8 !important;
    border: 1px solid #c7d7f7 !important;
    border-radius: 12px !important;
    font-weight: 800 !important;
}

.adminlte-content .btn-outline-primary:hover,
.adminlte-content .btn-outline-dark:hover,
.adminlte-content .btn-outline-success:hover {
    background: #0646b8 !important;
    color: #ffffff !important;
}

/* Formularios */
.adminlte-content .form-control,
.adminlte-content .form-select {
    background: #ffffff !important;
    color: #0f172a !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 12px !important;
}

.adminlte-content .form-control:focus,
.adminlte-content .form-select:focus {
    border-color: #0ea5e9 !important;
    box-shadow: 0 0 0 0.22rem rgba(14, 165, 233, 0.16) !important;
}

.adminlte-content .form-label {
    color: #0f172a !important;
    font-weight: 800 !important;
}

/* Tablas */
.adminlte-content .table {
    color: #0f172a !important;
}

.adminlte-content .table thead th {
    color: #475569 !important;
    background: rgba(248, 250, 252, 0.96) !important;
    border-bottom: 1px solid #e2e8f0 !important;
    font-weight: 900 !important;
}

.adminlte-content .table tbody td {
    color: #0f172a !important;
    border-bottom: 1px solid #e2e8f0 !important;
}

/* Badges */
.adminlte-content .badge {
    border-radius: 999px !important;
    padding: 7px 12px !important;
    font-weight: 900 !important;
}

.adminlte-content .text-bg-success,
.adminlte-content .text-bg-info {
    background: #dcfce7 !important;
    color: #15803d !important;
}

/* Movil */
.adminlte-mobile-toggle {
    position: fixed;
    top: 14px;
    left: 14px;
    z-index: 1060;
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #0646b8;
    color: #ffffff;
    font-weight: 900;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.24);
}

.adminlte-mobile-sidebar {
    background:
        radial-gradient(circle at top left, rgba(14, 165, 233, 0.16), transparent 36%),
        linear-gradient(180deg, #031024 0%, #061a36 100%);
    color: #ffffff;
}

.adminlte-mobile-sidebar .offcanvas-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

@media (max-width: 991px) {
    .adminlte-main {
        margin-left: 0;
        background:
            linear-gradient(
                rgba(248, 251, 255, 0.64),
                rgba(248, 251, 255, 0.86)
            ),
            url("../images/backgrounds/adminlte.png") center center / cover no-repeat scroll;
    }

    .adminlte-topbar {
        padding: 0 18px 0 72px;
    }

    .adminlte-content {
        padding: 12px 18px 32px;
    }

    .adminlte-content .page-title h1,
    .adminlte-content h1 {
        font-size: 2.2rem;
    }

    .adminlte-content .pool-card {
        max-width: 100%;
    }
}

@media (max-width: 575px) {
    .adminlte-content {
        padding-left: 14px;
        padding-right: 14px;
    }

    .adminlte-content .page-title h1,
    .adminlte-content h1 {
        font-size: 1.9rem;
    }

    .adminlte-userbox strong {
        display: none;
    }
}
/* =========================================================
   ALERTAS MODERNAS DEL SISTEMA
   ========================================================= */

.alert-modern {
    position: relative;
    display: flex !important;
    align-items: flex-start;
    gap: 14px;
    width: 100%;
    border: 0 !important;
    border-radius: 18px !important;
    padding: 18px 54px 18px 20px !important;
    margin-bottom: 22px !important;
    overflow: hidden;
    box-shadow: 0 16px 38px rgba(15, 23, 42, 0.18) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

.alert-modern::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 7px;
}

.alert-modern-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    line-height: 1;
    margin-top: 1px;
}

.alert-modern-content {
    flex: 1;
    min-width: 0;
}

.alert-modern-title {
    font-size: 18px;
    line-height: 1.1;
    font-weight: 900;
    margin-bottom: 6px;
}

.alert-modern-text {
    font-size: 15px;
    line-height: 1.45;
    font-weight: 600;
}

.alert-modern-close {
    position: absolute;
    top: 18px;
    right: 18px;
    opacity: 0.65;
}

.alert-modern-close:hover {
    opacity: 1;
}

/* Error / Danger */
.alert-modern.alert-danger {
    background: #fee2e2 !important;
    color: #7f1d1d !important;
    border: 1px solid #fecaca !important;
}

.alert-modern.alert-danger::before {
    background: #ef4444;
}

.alert-modern.alert-danger .alert-modern-icon {
    background: rgba(239, 68, 68, 0.14);
    color: #dc2626;
}

/* Success */
.alert-modern.alert-success {
    background: linear-gradient(
        135deg,
        rgba(240, 253, 244, 0.96),
        rgba(220, 252, 231, 0.96)
    ) !important;
    color: #166534 !important;
}

.alert-modern.alert-success::before {
    background: #22c55e;
}

.alert-modern.alert-success .alert-modern-icon {
    background: rgba(34, 197, 94, 0.14);
    color: #16a34a;
}

/* Warning */
.alert-modern.alert-warning {
    background: linear-gradient(
        135deg,
        rgba(255, 251, 235, 0.96),
        rgba(254, 243, 199, 0.96)
    ) !important;
    color: #92400e !important;
}

.alert-modern.alert-warning::before {
    background: #f59e0b;
}

.alert-modern.alert-warning .alert-modern-icon {
    background: rgba(245, 158, 11, 0.14);
    color: #d97706;
}

/* Info */
.alert-modern.alert-info {
    background: linear-gradient(
        135deg,
        rgba(239, 246, 255, 0.96),
        rgba(219, 234, 254, 0.96)
    ) !important;
    color: #1d4ed8 !important;
}

.alert-modern.alert-info::before {
    background: #3b82f6;
}

.alert-modern.alert-info .alert-modern-icon {
    background: rgba(59, 130, 246, 0.14);
    color: #2563eb;
}

/* Para que las alertas se vean bien sobre el fondo AdminLTE */
.adminlte-content .alert-modern,
.app-content .alert-modern {
    max-width: 100%;
}

/* Responsive */
@media (max-width: 768px) {
    .alert-modern {
        gap: 12px;
        padding: 16px 48px 16px 16px !important;
        border-radius: 15px !important;
    }

    .alert-modern-icon {
        width: 42px;
        height: 42px;
        min-width: 42px;
        border-radius: 14px;
        font-size: 20px;
    }

    .alert-modern-title {
        font-size: 16px;
    }

    .alert-modern-text {
        font-size: 14px;
    }

    .alert-modern-close {
        top: 16px;
        right: 14px;
    }
}
.alert-modern.alert-danger .alert-modern-title {
    color: #7f1d1d !important;
    font-weight: 950 !important;
}

.alert-modern.alert-danger .alert-modern-text {
    color: #991b1b !important;
    font-weight: 800 !important;
}
/* =========================================================
   CONTADOR REGRESIVO LOGIN / QUINIELAS
   ========================================================= */

.hero-countdown {
    max-width: 430px;
    margin-top: 22px;
    padding: 16px 18px;
    border-radius: 18px;
    background: rgba(4, 18, 44, 0.76);
    border: 1px solid rgba(255, 255, 255, 0.24);
    color: #ffffff;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.24);
}

.hero-countdown .countdown-label {
    display: block;
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: rgba(255, 255, 255, 0.82);
    margin-bottom: 4px;
}

.hero-countdown .countdown-value {
    display: block;
    font-size: 1.45rem;
    line-height: 1.15;
    font-weight: 950;
    color: #ffffff;
}

.hero-countdown small {
    display: block;
    margin-top: 5px;
    color: rgba(255, 255, 255, 0.78);
    font-weight: 700;
}

.hero-countdown.is-open {
    background: rgba(4, 18, 44, 0.78);
    border-color: rgba(14, 165, 233, 0.45);
}

.hero-countdown.is-warning {
    background: rgba(146, 64, 14, 0.84);
    border-color: rgba(251, 191, 36, 0.55);
}

.hero-countdown.is-closed {
    background: rgba(127, 29, 29, 0.84);
    border-color: rgba(248, 113, 113, 0.55);
}

/* Contador dentro de tarjetas internas */
.countdown-box:not(.hero-countdown) {
    margin: 14px 0 18px;
    padding: 12px 14px;
    border-radius: 16px;
    background: #ecfdf5;
    border: 1px solid #bbf7d0;
    color: #166534;
}

.countdown-box:not(.hero-countdown) .countdown-label {
    display: block;
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 4px;
}

.countdown-box:not(.hero-countdown) .countdown-value {
    display: block;
    font-size: 1.05rem;
    font-weight: 950;
}

.countdown-box:not(.hero-countdown).is-open {
    background: #ecfdf5;
    border-color: #bbf7d0;
    color: #166534;
}

.countdown-box:not(.hero-countdown).is-warning {
    background: #fff7ed;
    border-color: #fed7aa;
    color: #9a3412;
}

.countdown-box:not(.hero-countdown).is-closed {
    background: #fee2e2;
    border-color: #fecaca;
    color: #991b1b;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-countdown {
        max-width: 100%;
        padding: 14px 16px;
        border-radius: 16px;
    }

    .hero-countdown .countdown-value {
        font-size: 1.2rem;
    }

    .countdown-box:not(.hero-countdown) {
        padding: 11px 13px;
        border-radius: 14px;
    }
}

/* =========================================================
   TARJETA LIMPIA DE PRONOSTICO: EQUIPO - VS - EQUIPO
   Version limpia: sin Local/Casa, sin Visitante/Invitado,
   sin fila 1/Empate/2, sin texto de ayuda y sin muñeco/avatar.
   ========================================================= */

.clean-match-card {
    background: rgba(255, 255, 255, 0.94) !important;
    border: 1px solid rgba(226, 232, 240, 0.95) !important;
    border-radius: 22px !important;
    padding: 24px !important;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.10) !important;
    margin-bottom: 22px !important;
}

.match-card,
.team-prediction-card {
    scroll-margin-top: 100px;
}

.clean-match-date {
    font-weight: 800;
    color: #0f172a !important;
    margin-bottom: 18px;
}

.clean-versus-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 150px minmax(0, 1fr);
    gap: 26px;
    align-items: stretch;
    margin: 18px 0;
}

.clean-team {
    background: rgba(248, 250, 252, 0.92);
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.clean-home {
    text-align: left;
}

.clean-away {
    text-align: right;
}

.clean-team-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}

.clean-team-header-away {
    justify-content: flex-end;
}

.clean-team-logo,
.team-logo {
    display: none !important;
}

.clean-team-name {
    font-size: 1.35rem;
    font-weight: 950;
    color: #0f172a !important;
    line-height: 1.15;
}

.clean-goals-label {
    display: block;
    font-size: 0.82rem;
    font-weight: 950;
    color: #475569 !important;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.clean-score-input {
    width: 120px;
    height: 54px;
    font-size: 1.35rem;
    font-weight: 950;
    text-align: center;
}

.clean-away .clean-score-input {
    margin-left: auto;
}

.clean-center {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.clean-vs {
    font-size: 2.1rem;
    font-weight: 950;
    color: #0b2341 !important;
    margin-bottom: 16px;
    background: transparent !important;
}

.clean-draw-indicator {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 120px;
    padding: 12px 16px;
    border-radius: 14px;
    background: #ffffff;
    color: #0b4ea2;
    border: 1px solid #bfdbfe;
    font-weight: 950;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.clean-draw-indicator.is-selected {
    background: linear-gradient(135deg, #0b4ea2, #0ea5e9);
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 14px 30px rgba(14, 86, 200, 0.22);
}

.clean-auto-result {
    margin-top: 10px;
    font-size: 0.82rem;
    font-weight: 900;
    color: #475569 !important;
    min-height: 20px;
}

.official-result-clean {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
    padding: 10px 14px;
    border-radius: 14px;
    background: #e0f2fe;
    color: #075985;
}

.official-result-clean span {
    font-weight: 900;
    text-transform: uppercase;
    font-size: 0.75rem;
}

.official-result-clean strong {
    font-size: 1.35rem;
    font-weight: 950;
    color: #075985 !important;
}

.clean-save-button {
    margin-top: 18px;
}

/* Limpieza defensiva: si queda HTML viejo, no se muestra. */
.clean-match-card .prediction-help,
.clean-match-card .clean-prediction-help,
.clean-match-card .prediction-buttons,
.clean-match-card .clean-prediction-buttons,
.clean-match-card .team-role-badge,
.clean-match-card .match-teams-detailed,
.clean-match-card .predicted-score-box {
    display: none !important;
}

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

    .clean-home,
    .clean-away {
        text-align: left;
    }

    .clean-team-header-away {
        justify-content: flex-start;
    }

    .clean-away .clean-score-input {
        margin-left: 0;
    }

    .clean-vs {
        margin-top: 4px;
    }
}
/* Títulos internos más compactos */
.app-content .page-title h1,
.adminlte-content .page-title h1,
.app-content h1,
.adminlte-content h1 {
    font-size: clamp(1.9rem, 3vw, 3rem) !important;
    line-height: 1.08 !important;
    letter-spacing: -0.8px !important;
}
/* =========================================================
   ALERTAS VISIBLES SOBRE FONDO DEPORTIVO
   ========================================================= */

.app-content .alert,
.adminlte-content .alert {
    border-radius: 16px !important;
    padding: 16px 18px !important;
    font-weight: 850 !important;
    border: 1px solid transparent !important;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.12) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

.app-content .alert-warning,
.adminlte-content .alert-warning {
    background: #fef3c7 !important;
    color: #78350f !important;
    border-color: #fbbf24 !important;
}

.app-content .alert-warning *,
.adminlte-content .alert-warning * {
    color: #78350f !important;
}

.app-content .alert-info,
.adminlte-content .alert-info {
    background: #dbeafe !important;
    color: #1e3a8a !important;
    border-color: #93c5fd !important;
}

.app-content .alert-success,
.adminlte-content .alert-success {
    background: #dcfce7 !important;
    color: #14532d !important;
    border-color: #86efac !important;
}

.app-content .alert-danger,
.adminlte-content .alert-danger {
    background: #fee2e2 !important;
    color: #7f1d1d !important;
    border-color: #fca5a5 !important;
}
/* =========================================================
   RANKING POR GRUPO / EQUIPO
   ========================================================= */

.ranking-table th {
    white-space: nowrap;
    font-weight: 950;
    text-transform: uppercase;
    font-size: 0.82rem;
    color: #334155;
}

.ranking-table td {
    vertical-align: middle;
    font-weight: 700;
}

.ranking-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 34px;
    padding: 0 10px;
    border-radius: 999px;
    font-weight: 950;
    border: 1px solid transparent;
}

.ranking-pill-exact {
    background: #dcfce7;
    color: #166534;
    border-color: #86efac;
}

.ranking-pill-winner {
    background: #dbeafe;
    color: #1d4ed8;
    border-color: #93c5fd;
}

.ranking-pill-draw {
    background: #fef3c7;
    color: #92400e;
    border-color: #fbbf24;
}

.ranking-pill-wrong {
    background: #fee2e2;
    color: #991b1b;
    border-color: #fca5a5;
}

.ranking-total {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 54px;
    height: 38px;
    padding: 0 14px;
    border-radius: 999px;
    background: linear-gradient(135deg, #0b4ea2, #0ea5e9);
    color: #ffffff;
    font-weight: 950;
    box-shadow: 0 10px 22px rgba(14, 86, 200, 0.22);
}

.ranking-gold {
    background: rgba(254, 243, 199, 0.55);
}

.ranking-silver {
    background: rgba(226, 232, 240, 0.55);
}

.ranking-bronze {
    background: rgba(255, 237, 213, 0.60);
}

.ranking-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    padding: 14px 16px;
    color: #334155;
    font-weight: 800;
}

.ranking-legend span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.pool-flag-img {
    display: inline-block !important;
    width: 24px !important;
    height: 18px !important;
    object-fit: cover !important;
    border-radius: 2px !important;
    vertical-align: -2px !important;
    margin-right: 6px !important;
    box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.10) !important;
}
/* Dashboard admin - tarjetas clickeables */
.stat-card-link {
    display: block;
    color: inherit !important;
    text-decoration: none !important;
}

.stat-card-link:hover {
    color: inherit !important;
    text-decoration: none !important;
}

.stat-card-link .stat-card {
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.stat-card-link .stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 35px rgba(0, 91, 187, 0.18);
    border-color: rgba(0, 123, 255, 0.35);
}
.available-members-table {
    min-width: 620px;
}

.available-members-table th,
.available-members-table td {
    vertical-align: middle;
}

.available-members-table th:last-child,
.available-members-table td:last-child {
    width: 140px;
    min-width: 140px;
    white-space: nowrap;
}

.available-members-table .action-cell {
    text-align: right;
}

.available-members-table .add-member-btn {
    min-width: 100px;
}
/* Ranking - integrantes desplegables */
.ranking-team-details {
    display: block;
}

.ranking-team-details summary {
    list-style: none;
    cursor: pointer;
    display: inline-flex;
    flex-direction: column;
    gap: 2px;
}

.ranking-team-details summary::-webkit-details-marker {
    display: none;
}

.ranking-team-details summary strong {
    color: #001f4e;
    font-weight: 900;
}

.ranking-team-details summary:hover strong {
    color: #007bff;
    text-decoration: underline;
}

.ranking-click-help {
    font-size: 11px;
    font-weight: 600;
    color: #64748b;
}

.ranking-members-box {
    margin-top: 8px;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(15, 35, 70, 0.12);
    border-radius: 12px;
    max-width: 380px;
}

.ranking-member-item {
    font-size: 13px;
    font-weight: 600;
    color: #334155;
    padding: 3px 0;
}

.ranking-member-item::before {
    content: "👤 ";
}

.ranking-pill,
.ranking-total-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    font-weight: 900;
}

.ranking-pill-green {
    background: #d1fae5;
    color: #047857;
    border: 1px solid #6ee7b7;
}

.ranking-pill-blue {
    background: #dbeafe;
    color: #1d4ed8;
    border: 1px solid #93c5fd;
}

.ranking-pill-yellow {
    background: #fef3c7;
    color: #b45309;
    border: 1px solid #fbbf24;
}

.ranking-pill-red {
    background: #fee2e2;
    color: #b91c1c;
    border: 1px solid #fca5a5;
}

.ranking-total-pill {
    background: linear-gradient(135deg, #0067d8, #00a4e4);
    color: #ffffff;
}
