/* =========================================================
   ALQUIFE LUDAOS — V2 DESIGN
========================================================= */

:root {
    --bg: #090b0d;
    --bg-soft: #0f1215;
    --panel: #13171a;
    --panel-hover: #181d21;
    --border: rgba(255, 255, 255, 0.07);
    --text: #f4f5f6;
    --text-soft: #a4abb1;
    --text-muted: #697177;
    --green: #b7f34a;
    --green-dark: #7eae28;
    --red: #ff5c67;
    --orange: #ffb547;
    --sidebar-width: 245px;
}

/* =========================================================
   RESET
========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    background:
        radial-gradient(
            circle at 75% 0%,
            rgba(183, 243, 74, 0.045),
            transparent 30%
        ),
        var(--bg);
    color: var(--text);
    font-family: "Inter", sans-serif;
    -webkit-font-smoothing: antialiased;
}

button,
a {
    font-family: inherit;
}

button {
    border: none;
}

a {
    text-decoration: none;
    color: inherit;
}

/* =========================================================
   SIDEBAR
========================================================= */

.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: var(--sidebar-width);
    height: 100vh;
    padding: 28px 18px;
    background: #0c0f11;
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    z-index: 20;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 10px 35px;
}

.brand-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--green);
    color: #10130b;
    font-size: 20px;
    box-shadow:
        0 0 30px rgba(183, 243, 74, 0.12);
}

.brand h1 {
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 1.5px;
}

.brand span {
    display: block;
    margin-top: 2px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 4px;
    color: var(--green);
}

nav {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.nav-item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 12px 13px;
    border-radius: 10px;
    color: var(--text-soft);
    font-size: 13px;
    font-weight: 500;
    transition:
        background 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.04);
    color: white;
    transform: translateX(2px);
}

.nav-item span {
    width: 20px;
    text-align: center;
    font-size: 15px;
    opacity: 0.8;
}

.nav-item.active {
    background:
        linear-gradient(
            90deg,
            rgba(183, 243, 74, 0.12),
            rgba(183, 243, 74, 0.025)
        );
    color: var(--green);
}

.nav-item.active::before {
    content: "";
    position: absolute;
    left: 0;
    top: 9px;
    bottom: 9px;
    width: 3px;
    border-radius: 0 4px 4px 0;
    background: var(--green);
    box-shadow:
        0 0 12px rgba(183, 243, 74, 0.35);
}

.season-box {
    margin-top: auto;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background:
        linear-gradient(
            135deg,
            rgba(255, 255, 255, 0.035),
            rgba(255, 255, 255, 0.01)
        );
}

.season-box span {
    display: block;
    margin-bottom: 6px;
    font-size: 9px;
    color: var(--text-muted);
    letter-spacing: 1.5px;
}

.season-box strong {
    display: block;
    font-size: 15px;
}

.season-box small {
    display: block;
    margin-top: 5px;
    color: var(--text-muted);
    font-size: 10px;
}

.sidebar-footer {
    padding: 20px 8px 0;
    color: #444a4f;
    font-size: 9px;
    letter-spacing: 1px;
    line-height: 1.7;
}

.sidebar-footer span {
    color: #555d62;
    letter-spacing: 0;
}

/* =========================================================
   MAIN
========================================================= */

.main {
    margin-left: var(--sidebar-width);
    min-height: 100vh;
}

/* =========================================================
   TOPBAR
========================================================= */

.topbar {
    height: 76px;
    padding: 0 42px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.mobile-brand {
    display: none;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.notification {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: var(--panel);
    border: 1px solid var(--border);
    color: var(--text-soft);
    cursor: pointer;
    transition: 0.2s ease;
}

.notification:hover {
    background: var(--panel-hover);
    color: white;
    transform: translateY(-1px);
}

.profile {
    display: flex;
    align-items: center;
    gap: 10px;
}

.profile > div {
    display: flex;
    flex-direction: column;
}

.profile strong {
    font-size: 12px;
}

.profile span {
    margin-top: 2px;
    color: var(--text-muted);
    font-size: 9px;
}

.avatar {
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--green);
    color: #111;
    font-weight: 800;
    font-size: 13px;
}

/* =========================================================
   CONTENT
========================================================= */

.content {
    max-width: 1450px;
    margin: 0 auto;
    padding: 38px 42px 70px;
}

/* =========================================================
   WELCOME
========================================================= */

.welcome {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 28px;
}

.eyebrow {
    display: block;
    margin-bottom: 10px;
    color: var(--green);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1.8px;
}

.welcome h2 {
    font-size: 30px;
    letter-spacing: -1px;
}

.welcome p {
    margin-top: 7px;
    color: var(--text-muted);
    font-size: 12px;
}

.next-match {
    padding: 14px 18px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--panel);
    min-width: 180px;
}

.next-match span {
    display: block;
    margin-bottom: 6px;
    color: var(--text-muted);
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 1.3px;
}

.next-match strong {
    display: block;
    font-size: 15px;
}

.next-match small {
    display: block;
    margin-top: 4px;
    color: var(--green);
    font-size: 10px;
}

/* =========================================================
   STATS
========================================================= */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 13px;
    margin-bottom: 20px;
}

.stat-card {
    position: relative;
    overflow: hidden;
    min-height: 150px;
    padding: 18px;
    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.035),
            rgba(255, 255, 255, 0.012)
        );
    border: 1px solid var(--border);
    border-radius: 14px;
    transition:
        transform 0.25s ease,
        border-color 0.25s ease;
}

.stat-card:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 255, 255, 0.12);
}

.stat-card::after {
    content: "";
    position: absolute;
    width: 90px;
    height: 90px;
    right: -35px;
    bottom: -45px;
    background: rgba(255, 255, 255, 0.025);
    border-radius: 50%;
}

.leader-card {
    background:
        linear-gradient(
            145deg,
            rgba(183, 243, 74, 0.12),
            rgba(183, 243, 74, 0.025)
        );
    border-color: rgba(183, 243, 74, 0.17);
}

.pot-card {
    background:
        linear-gradient(
            145deg,
            rgba(255, 181, 71, 0.09),
            rgba(255, 181, 71, 0.02)
        );
}

.stat-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.stat-top span {
    font-size: 18px;
}

.stat-top small {
    color: var(--text-muted);
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 1px;
}

.stat-value {
    margin-top: 18px;
    font-size: 32px;
    font-weight: 800;
    letter-spacing: -1.5px;
}

.stat-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 7px;
}

.stat-bottom strong {
    font-size: 10px;
    color: var(--text-soft);
}

.stat-bottom span {
    font-size: 9px;
    color: var(--text-muted);
}

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

/* =========================================================
   DASHBOARD GRID
========================================================= */

.dashboard-grid {
    display: grid;
    grid-template-columns:
        minmax(0, 1.6fr)
        minmax(300px, 0.8fr);
    gap: 20px;
    margin-bottom: 20px;
}

/* =========================================================
   PANELS
========================================================= */

.panel {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 15px;
    overflow: hidden;
}

.panel-header {
    padding: 21px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border);
}

.panel-eyebrow {
    display: block;
    margin-bottom: 5px;
    color: var(--text-muted);
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 1.5px;
}

.panel-header h3 {
    font-size: 17px;
    letter-spacing: -0.3px;
}

.view-button {
    padding: 8px 11px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: transparent;
    color: var(--text-muted);
    font-size: 9px;
    cursor: pointer;
    transition: 0.2s ease;
}

.view-button:hover {
    color: white;
    border-color: rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.03);
}

/* =========================================================
   RANKING
========================================================= */

.ranking-title,
.rank-row {
    display: grid;
    grid-template-columns:
        48px
        minmax(160px, 1fr)
        90px
        75px;
    align-items: center;
}

.ranking-title {
    padding: 11px 22px;
    color: var(--text-muted);
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 1px;
    border-bottom: 1px solid var(--border);
}

.rank-row {
    min-height: 57px;
    padding: 7px 22px;
    border-bottom:
        1px solid rgba(255, 255, 255, 0.045);
    transition: background 0.2s ease;
}

.rank-row:hover {
    background: rgba(255, 255, 255, 0.025);
}

.rank-row.last {
    border-bottom: none;
}

.rank-row.leader {
    background:
        linear-gradient(
            90deg,
            rgba(183, 243, 74, 0.065),
            transparent
        );
}

.rank-number {
    color: var(--text-muted);
    font-size: 10px;
    font-weight: 700;
}

.leader .rank-number {
    color: var(--green);
}

.player-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.player-info strong {
    display: block;
    font-size: 11px;
}

.player-info small {
    display: block;
    margin-top: 2px;
    color: var(--green);
    font-size: 8px;
}

.player-avatar,
.mini-avatar {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #22282d;
    color: #c9ced2;
    font-weight: 700;
}

.player-avatar {
    width: 30px;
    height: 30px;
    font-size: 10px;
}

.leader .player-avatar {
    background: var(--green);
    color: #111;
}

.points {
    font-size: 12px;
}

.up,
.down,
.same {
    font-size: 9px;
    font-weight: 700;
}

.up {
    color: var(--green);
}

.down {
    color: var(--red);
}

.same {
    color: var(--text-muted);
}

/* =========================================================
   PAYMENTS
========================================================= */

.payments-panel {
    padding-bottom: 18px;
}

.payment-total {
    color: var(--orange);
    font-size: 20px;
    font-weight: 800;
}

.panel-description {
    padding: 17px 22px 9px;
    color: var(--text-muted);
    font-size: 10px;
}

.payment-list {
    padding: 0 22px;
}

.payments-panel .payment-row {

    min-height: 52px;

    display: flex;

    align-items: center;

    justify-content: space-between;

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

}

.payments-panel .payment-row > strong {

    color: var(--orange);

    font-size: 12px;

}

.payments-panel .payment-player {

    display: flex;

    flex-direction: row;

    align-items: center;

    gap: 9px;

    font-size: 11px;

    font-weight: 500;

}

.payments-panel .mini-avatar {

    width: 27px;

    height: 27px;

    font-size: 9px;

    flex-shrink: 0;

}

.last-payment-row > strong {
    color: var(--red);
}

.pot-summary {
    margin: 18px 22px 0;
    padding: 14px;
    border-radius: 10px;
    background: rgba(183, 243, 74, 0.055);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-soft);
    font-size: 10px;
}

.pot-summary strong {
    color: var(--green);
    font-size: 15px;
}

/* =========================================================
   FIXTURES
========================================================= */

.fixtures-panel {
    padding-bottom: 20px;
}

.fixture-info {
    padding: 20px 22px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.fixture-info > div span {
    display: block;
    color: var(--green);
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 1.3px;
}

.fixture-info > div strong {
    display: block;
    margin-top: 5px;
    font-size: 14px;
}

.countdown {
    text-align: right;
}

.countdown small {
    display: block;
    color: var(--text-muted);
    font-size: 7px;
    letter-spacing: 1px;
}

.countdown strong {
    display: block;
    margin-top: 4px;
    color: var(--green);
    font-size: 15px;
    letter-spacing: 1px;
}

.fixture-list {
    margin: 0 22px;
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
}

.fixture {
    min-height: 49px;
    padding: 0 15px;
    display: grid;
    grid-template-columns:
        60px
        1fr
        35px
        1fr;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid var(--border);
    font-size: 10px;
}

.fixture:last-child {
    border-bottom: none;
}

.fixture > span {
    color: var(--text-muted);
    font-size: 9px;
}

.fixture > strong {
    font-size: 10px;
}

.fixture b {
    color: var(--text-muted);
    font-size: 8px;
    text-align: center;
}

/* =========================================================
   CALENDARIO — CABECERA
========================================================= */

.calendar-page {
    max-width: 1550px;
}

.calendar-heading {
    margin-bottom: 25px;
}

.calendar-heading h2 {
    font-size: 30px;
    letter-spacing: -1px;
}

.calendar-heading p {
    margin-top: 7px;
    color: var(--text-muted);
    font-size: 12px;
}

/* =========================================================
   RESUMEN DEL CALENDARIO
========================================================= */

.calendar-summary {
    display: grid;
    grid-template-columns:
        160px
        160px
        minmax(200px, 1fr);
    gap: 12px;
    margin-bottom: 18px;
}

.calendar-summary-item {
    min-height: 82px;
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 13px;
}

.calendar-summary-item span {
    color: var(--text-muted);
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 1.3px;
}

.calendar-summary-item strong {
    margin-top: 7px;
    color: var(--green);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: -0.3px;
}

/* =========================================================
   CONTROLES DEL CALENDARIO
   DISPOSICIÓN COMPACTA
========================================================= */

.calendar-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-bottom: 14px;
    padding: 9px 12px;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 13px;
}

/* =========================================================
   HOY
========================================================= */

.today-button {
    flex-shrink: 0;
    height: 32px;
    padding: 0 12px;
    border: 1px solid rgba(183, 243, 74, 0.22);
    border-radius: 8px;
    background: rgba(183, 243, 74, 0.045);
    color: var(--green);
    font-family: inherit;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.4px;
    cursor: pointer;
    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}

.today-button:hover {
    background: rgba(183, 243, 74, 0.09);
    border-color: rgba(183, 243, 74, 0.4);
    color: white;
    transform: translateY(-1px);
}

/* =========================================================
   NAVEGACIÓN DEL MES
========================================================= */

.calendar-navigation {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex-shrink: 0;
}

.calendar-navigation h3 {
    min-width: 145px;
    margin: 0;
    text-align: center;
    color: var(--text);
    font-size: 16px;
    font-weight: 800;
    text-transform: capitalize;
    letter-spacing: -0.4px;
}

/* =========================================================
   FLECHAS
========================================================= */

.calendar-nav-button {
    width: 30px;
    height: 30px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.025);
    color: var(--text-soft);
    font-family: inherit;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}

.calendar-nav-button:hover {
    background: rgba(183, 243, 74, 0.08);
    border-color: rgba(183, 243, 74, 0.25);
    color: var(--green);
    transform: translateY(-1px);
}

/* =========================================================
   FILTROS
========================================================= */

.calendar-filters {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.calendar-filters select {
    height: 32px;
    min-width: 105px;
    padding: 0 9px;
    border: 1px solid var(--border);
    border-radius: 8px;
    outline: none;
    background: #181d21;
    color: var(--text-soft);
    font-family: inherit;
    font-size: 9px;
    cursor: pointer;
    transition:
        background 0.2s ease,
        border-color 0.2s ease;
}

.calendar-filters select:hover {
    background: #1c2226;
    border-color: rgba(183, 243, 74, 0.3);
}

.calendar-filters select:focus {
    border-color: rgba(183, 243, 74, 0.3);
}

/* =========================================================
   LIMPIAR
========================================================= */

.clear-filters {
    height: 32px;
    padding: 0 10px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: transparent;
    color: var(--text-muted);
    font-family: inherit;
    font-size: 9px;
    cursor: pointer;
    white-space: nowrap;
    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease;
}

.clear-filters:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.12);
    color: var(--text-soft);
}

/* =========================================================
   CALENDARIO
========================================================= */

.calendar-panel {
    overflow: hidden;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 15px;
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    background: rgba(255, 255, 255, 0.018);
    border-bottom: 1px solid var(--border);
}

.calendar-weekdays div {
    padding: 12px;
    text-align: center;
    color: var(--text-muted);
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 1.3px;
    border-right: 1px solid var(--border);
}

.calendar-weekdays div:last-child {
    border-right: none;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
}

.calendar-day {
    position: relative;
    min-height: 165px;
    padding: 11px;
    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.005);
    transition: background 0.2s ease;
}

.calendar-day:hover {
    background: rgba(255, 255, 255, 0.018);
}

.calendar-day:nth-child(7n) {
    border-right: none;
}

.calendar-day:nth-child(7n),
.calendar-day:nth-child(7n - 1) {
    background: rgba(255, 255, 255, 0.012);
}

.empty-day {
    background: rgba(0, 0, 0, 0.08);
    min-height: 165px;
}

.calendar-day-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 32px;
    margin-bottom: 7px;
}

.calendar-day-number {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--text-soft);
    font-size: 11px;
    font-weight: 800;
}

.calendar-day.today {
    background:
        linear-gradient(
            145deg,
            rgba(183, 243, 74, 0.055),
            rgba(183, 243, 74, 0.012)
        );
    box-shadow:
        inset 0 0 0 1px rgba(183, 243, 74, 0.18);
}

.calendar-day.today .calendar-day-number {
    background: var(--green);
    color: #111;
    box-shadow:
        0 0 15px rgba(183, 243, 74, 0.18);
}

.calendar-day-games {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.calendar-game {
    width: 100%;
    min-height: 54px;
    padding: 9px 10px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.025);
    color: var(--text);
    text-align: left;
    font-family: inherit;
    cursor: pointer;
    transition:
        transform 0.18s ease,
        background 0.18s ease,
        border-color 0.18s ease;
}

.calendar-game:hover {
    transform: translateY(-1px);
    background: rgba(183, 243, 74, 0.075);
    border-color: rgba(183, 243, 74, 0.2);
}

.game-time {
    color: var(--green);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.5px;
}

.game-teams {
    width: 100%;
    display: grid;
    grid-template-columns:
        minmax(0, 1fr)
        12px
        minmax(0, 1fr);
    align-items: center;
    gap: 5px;
    font-size: 10px;
}

.game-teams strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 10px;
    font-weight: 700;
}

.game-teams strong:first-child {
    text-align: right;
}

.game-teams > span {
    color: var(--text-muted);
    text-align: center;
    font-size: 8px;
}

.game-past {
    opacity: 0.55;
}

.game-future {
    opacity: 1;
}

/* =========================================================
   PRÓXIMO PARTIDO — PREMIUM V2
========================================================= */

.next-game-card {
    position: relative;
    min-width: 0;
    overflow: hidden;
}

/* BRILLO DECORATIVO */

.next-game-card::after {
    content: "";
    position: absolute;
    right: -45px;
    top: -55px;

    width: 150px;
    height: 150px;

    border-radius: 50%;

    background: rgba(183, 243, 74, 0.035);

    pointer-events: none;
}

/* CONTENIDO */

.next-game-info {
    position: relative;
    z-index: 1;

    margin-top: 14px;

    display: flex;
    flex-direction: column;
    gap: 14px;

    min-width: 0;
}

/* =========================================================
   EQUIPOS
========================================================= */

.next-game-info strong {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 13px;

    margin: 0;

    color: var(--green);

    font-size: 22px;
    line-height: 1.2;
    font-weight: 800;

    letter-spacing: -0.6px;

    white-space: nowrap;
}

.next-game-info strong span {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 30px;
    height: 30px;

    margin: 0;

    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50%;

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

    color: var(--text-muted);

    font-size: 8px;
    font-weight: 700;
    letter-spacing: 0;
}

/* =========================================================
   INFORMACIÓN DEL PARTIDO
========================================================= */

.next-game-info small {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 16px;

    margin: 0;
    padding-top: 12px;

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

    color: var(--text-soft);

    font-size: 11px;
    font-weight: 500;

    line-height: 1.5;

    white-space: nowrap;
}

/* =========================================================
   MEJOR LEGIBILIDAD
========================================================= */

.next-game-info small::first-letter {
    color: var(--green);
}


/* =========================================================
   HOVER
========================================================= */

.next-game-card:hover::after {
    background: rgba(183, 243, 74, 0.055);
}


/* =========================================================
   MÓVIL
========================================================= */

@media (max-width: 760px) {

    .next-game-info {
        gap: 11px;
    }

    .next-game-info strong {
        font-size: 18px;
        gap: 9px;
    }

    .next-game-info strong span {
        width: 26px;
        height: 26px;
        font-size: 7px;
    }

    .next-game-info small {
        justify-content: flex-start;

        flex-wrap: wrap;

        gap: 7px 12px;

        font-size: 10px;

        white-space: normal;
    }
}

/* =========================================================
   ERROR
========================================================= */

.calendar-error {
    grid-column: 1 / -1;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--text-muted);
    text-align: center;
}

.calendar-error strong {
    color: var(--text);
    font-size: 14px;
}

.calendar-error span {
    font-size: 10px;
}

/* =========================================================
   MODAL
========================================================= */

.match-modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.match-modal.hidden {
    display: none;
}

.match-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(5px);
}

.match-modal-card {
    position: relative;
    z-index: 1;
    width: min(500px, 100%);
    padding: 30px;
    background: #151a1e;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 18px;
    box-shadow:
        0 25px 80px rgba(0, 0, 0, 0.45);
    animation: modalIn 0.2s ease;
}

@keyframes modalIn {
    from {
        opacity: 0;
        transform:
            translateY(8px)
            scale(0.98);
    }

    to {
        opacity: 1;
        transform:
            translateY(0)
            scale(1);
    }
}

.close-modal {
    position: absolute;
    top: 13px;
    right: 13px;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-muted);
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
}

.close-modal:hover {
    background: rgba(255, 255, 255, 0.08);
    color: white;
}

.modal-matchday {
    display: block;
    color: var(--green);
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 1.5px;
}

.modal-date {
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.modal-date span {
    color: var(--text-soft);
    font-size: 11px;
    text-transform: capitalize;
}

.modal-date strong {
    color: var(--green);
    font-size: 14px;
}

.modal-teams {
    margin-top: 28px;
    display: grid;
    grid-template-columns:
        1fr
        40px
        1fr;
    align-items: center;
    gap: 10px;
}

.modal-teams strong {
    font-size: 18px;
    line-height: 1.2;
}

.modal-teams strong:first-child {
    text-align: right;
}

.modal-teams span {
    color: var(--text-muted);
    text-align: center;
    font-size: 9px;
    font-weight: 800;
}

.modal-location {
    margin-top: 25px;
    padding: 13px;
    display: flex;
    align-items: center;
    gap: 11px;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid var(--border);
    border-radius: 10px;
}

.modal-location > div {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.modal-location > div:first-child {
    font-size: 18px;
}

.modal-location strong {
    font-size: 10px;
}

.modal-location span {
    color: var(--text-muted);
    font-size: 9px;
}

/* =========================================================
   RESPONSIVE — 1100px
========================================================= */

@media (max-width: 1100px) {

    .sidebar {
        width: 210px;
    }

    .main {
        margin-left: 210px;
    }

    .content {
        padding: 30px;
    }

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

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

    .calendar-controls {
        gap: 10px;
    }

    .calendar-navigation h3 {
        min-width: 130px;
    }

    .calendar-day {
        min-height: 145px;
    }

    .calendar-game {
        padding: 8px;
    }

    .game-time {
        font-size: 9px;
    }

    .game-teams strong {
        font-size: 9px;
    }
}

/* =========================================================
   RESPONSIVE — 760px
========================================================= */

@media (max-width: 760px) {

    :root {
        --sidebar-width: 0px;
    }

    .sidebar {
        display: none;
    }

    .main {
        margin-left: 0;
    }

    .topbar {
        height: 65px;
        padding: 0 18px;
        justify-content: space-between;
    }

    .mobile-brand {
        display: block;
        font-size: 11px;
        font-weight: 800;
        letter-spacing: 1px;
    }

    .content {
        padding: 25px 16px 50px;
    }

    .welcome {
        align-items: flex-start;
        flex-direction: column;
        gap: 18px;
    }

    .welcome h2 {
        font-size: 25px;
    }

    .next-match {
        width: 100%;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 9px;
    }

    .stat-card {
        min-height: 135px;
        padding: 15px;
    }

    .stat-value {
        font-size: 27px;
    }

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

    .ranking-title,
    .rank-row {
        grid-template-columns:
            35px
            minmax(100px, 1fr)
            50px
            45px;
        padding-left: 13px;
        padding-right: 13px;
    }

    .player-avatar {
        width: 27px;
        height: 27px;
    }

    .player-info {
        gap: 7px;
    }

    .player-info strong {
        font-size: 10px;
    }

    .fixture {
        grid-template-columns:
            45px
            1fr
            25px
            1fr;
        padding: 0 10px;
    }

    .fixture-info {
        padding: 18px;
    }

    .panel-header {
        padding: 18px;
    }

    .payment-list {
        padding: 0 18px;
    }

    .pot-summary {
        margin-left: 18px;
        margin-right: 18px;
    }

    /* CALENDARIO */

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

    .calendar-summary-item:last-child {
        grid-column: 1 / -1;
    }

    /*
       En móvil los controles pasan a dos filas:
       fila 1 = Hoy + mes
       fila 2 = filtros
    */

    .calendar-controls {
        display: grid;
        grid-template-columns: auto 1fr;
        grid-template-areas:
            "today navigation"
            "filters filters";
        gap: 8px;
        padding: 9px;
    }

    .today-button {
        grid-area: today;
        height: 30px;
        padding: 0 10px;
        font-size: 8px;
    }

    .calendar-navigation {
        grid-area: navigation;
        justify-self: end;
        gap: 4px;
    }

    .calendar-navigation h3 {
        min-width: 105px;
        font-size: 14px;
    }

    .calendar-nav-button {
        width: 28px;
        height: 28px;
        font-size: 17px;
    }

    .calendar-filters {
        grid-area: filters;
        justify-content: flex-end;
        gap: 5px;
        padding-top: 2px;
    }

    .calendar-filters select {
        min-width: 100px;
        height: 30px;
        font-size: 8px;
    }

    .clear-filters {
        height: 30px;
        padding: 0 9px;
        font-size: 8px;
    }

    .calendar-day {
        min-height: 120px;
        padding: 7px;
    }

    .calendar-game {
        padding: 6px;
        min-height: 45px;
        gap: 4px;
    }

    .game-time {
        font-size: 8px;
    }

    .game-teams strong {
        font-size: 8px;
    }

    .calendar-day-number {
        width: 25px;
        height: 25px;
        font-size: 9px;
    }

    .calendar-weekdays div {
        padding: 9px 3px;
        font-size: 7px;
    }
}

/* =========================================================
   RESPONSIVE — 500px
========================================================= */

@media (max-width: 500px) {

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

    .calendar-summary-item:last-child {
        grid-column: auto;
    }

    .calendar-controls {
        grid-template-columns: auto 1fr;
        grid-template-areas:
            "today navigation"
            "filters filters";
        gap: 7px;
        padding: 8px;
    }

    .today-button {
        height: 28px;
        padding: 0 8px;
        font-size: 7px;
    }

    .calendar-navigation {
        gap: 3px;
    }

    .calendar-navigation h3 {
        min-width: 88px;
        font-size: 13px;
    }

    .calendar-nav-button {
        width: 26px;
        height: 26px;
        font-size: 16px;
    }

    .calendar-filters {
        justify-content: stretch;
        gap: 4px;
    }

    .calendar-filters select {
        flex: 1;
        min-width: 0;
        width: auto;
        height: 28px;
        padding: 0 5px;
        font-size: 7px;
    }

    .clear-filters {
        height: 28px;
        padding: 0 7px;
        font-size: 7px;
    }

    .calendar-day {
        min-height: 100px;
        padding: 5px;
    }

    .calendar-game {
        padding: 5px;
        gap: 2px;
    }

    .game-time {
        font-size: 7px;
    }

    .game-teams {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 1px;
    }

    .game-teams strong {
        font-size: 7px;
    }

    .game-teams strong:last-child {
        text-align: left;
    }

    .game-teams > span {
        display: none;
    }

    .modal-teams {
        grid-template-columns:
            1fr
            25px
            1fr;
    }

    .modal-teams strong {
        font-size: 15px;
    }

    .welcome h2 {
        font-size: 23px;
    }
}

/* =========================================================
   RESPONSIVE — 450px
========================================================= */

@media (max-width: 450px) {

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

    .stat-card {
        min-height: 115px;
    }

    .ranking-title {
        font-size: 7px;
    }

    .rank-row {
        min-height: 54px;
    }

    .points {
        font-size: 11px;
    }

    .calendar-navigation h3 {
        min-width: 80px;
        font-size: 12px;
    }

    .calendar-day {
        min-height: 90px;
    }
}

/* =========================================================
   PRÓXIMA JORNADA — PARTIDOS AGRUPADOS POR DÍA
========================================================= */

#next-fixtures {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 0 22px;
}


/* =========================================================
   BLOQUE DE CADA DÍA
========================================================= */

.fixture-day {
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.018);
}


/* =========================================================
   CABECERA DEL DÍA
========================================================= */

.fixture-day-header {
    min-height: 54px;
    padding: 10px 15px;

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

    background:
        linear-gradient(
            90deg,
            rgba(183, 243, 74, 0.055),
            rgba(183, 243, 74, 0.012)
        );

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


.fixture-day-header > div {
    display: flex;
    align-items: baseline;
    gap: 9px;
}


.fixture-day-header span {
    color: var(--green);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1.2px;
}


.fixture-day-header strong {
    color: var(--text);
    font-size: 11px;
    font-weight: 700;
}


.fixture-day-header small {
    color: var(--text-muted);
    font-size: 7px;
    font-weight: 700;
    letter-spacing: 1px;
}


/* =========================================================
   PARTIDOS DEL DÍA
========================================================= */

.fixture-day-games {
    display: flex;
    flex-direction: column;
}


/* =========================================================
   PARTIDO
========================================================= */

.fixture-day .fixture {
    min-height: 52px;
    padding: 0 15px;

    display: grid;
    grid-template-columns:
        60px
        minmax(0, 1fr)
        35px
        minmax(0, 1fr);

    align-items: center;
    gap: 8px;

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

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

    font-size: 10px;

    transition:
        background 0.2s ease;
}


.fixture-day .fixture:last-child {
    border-bottom: none;
}


.fixture-day .fixture:hover {
    background:
        rgba(183, 243, 74, 0.035);
}


/* =========================================================
   HORA
========================================================= */

.fixture-time {
    color: var(--green);
    font-size: 10px;
    font-weight: 800;
}


/* =========================================================
   EQUIPOS
========================================================= */

.fixture-day .fixture strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;

    color: var(--text);
    font-size: 10px;
    font-weight: 600;
}


.fixture-day .fixture strong:nth-of-type(1) {
    text-align: right;
}


.fixture-day .fixture b {
    color: var(--text-muted);
    text-align: center;
    font-size: 8px;
    font-weight: 700;
}


/* =========================================================
   SIN PARTIDOS
========================================================= */

.fixture-empty {
    margin: 0 22px;
    min-height: 100px;

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

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

    color: var(--text-muted);
    font-size: 10px;
}


/* =========================================================
   MÓVIL
========================================================= */

@media (max-width: 760px) {

    #next-fixtures {
        margin: 0 18px;
        gap: 9px;
    }

    .fixture-day-header {
        padding: 9px 12px;
    }

    .fixture-day-header > div {
        gap: 7px;
    }

    .fixture-day-header span {
        font-size: 8px;
    }

    .fixture-day-header strong {
        font-size: 10px;
    }

    .fixture-day-header small {
        font-size: 6px;
    }

    .fixture-day .fixture {
        min-height: 48px;
        padding: 0 11px;

        grid-template-columns:
            45px
            minmax(0, 1fr)
            25px
            minmax(0, 1fr);

        gap: 6px;
    }

    .fixture-time {
        font-size: 8px;
    }

    .fixture-day .fixture strong {
        font-size: 9px;
    }

    .fixture-day .fixture b {
        font-size: 7px;
    }

}


/* =========================================================
   MÓVIL PEQUEÑO
========================================================= */

@media (max-width: 500px) {

    #next-fixtures {
        margin: 0 12px;
        gap: 8px;
    }

    .fixture-day-header {
        min-height: 48px;
        padding: 8px 10px;
    }

    .fixture-day-header > div {
        flex-direction: column;
        gap: 1px;
    }

    .fixture-day-header span {
        font-size: 7px;
    }

    .fixture-day-header strong {
        font-size: 9px;
    }

    .fixture-day .fixture {
        min-height: 46px;
        padding: 0 9px;

        grid-template-columns:
            38px
            minmax(0, 1fr)
            20px
            minmax(0, 1fr);

        gap: 4px;
    }

    .fixture-time {
        font-size: 8px;
    }

    .fixture-day .fixture strong {
        font-size: 8px;
    }

    .fixture-day .fixture b {
        font-size: 6px;
    }

}

/* =========================================================
   SELECCIÓN DE JUGADOR
========================================================= */

.player-selector {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    background:
        radial-gradient(
            circle at 50% 20%,
            rgba(183, 243, 74, 0.08),
            transparent 35%
        ),
        #090b0d;
    overflow-y: auto;
}

.player-selector.hidden {
    display: none;
}

.player-selector-content {
    width: min(760px, 100%);
    text-align: center;
}

.selector-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 55px;
}

.selector-brand-icon {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: var(--green);
    color: #10130b;
    font-size: 20px;
    box-shadow:
        0 0 35px rgba(183, 243, 74, 0.15);
}

.selector-brand span {
    color: var(--text);
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 2px;
}

.selector-eyebrow {
    margin-bottom: 12px;
    color: var(--green);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 2px;
}

.player-selector h1 {
    color: var(--text);
    font-size: 42px;
    font-weight: 800;
    letter-spacing: -1.5px;
}

.selector-subtitle {
    margin-top: 10px;
    color: var(--text-muted);
    font-size: 12px;
}

.player-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-top: 42px;
}

.player-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 18px 10px;
    border: 1px solid transparent;
    border-radius: 14px;
    background: transparent;
    color: var(--text);
    cursor: pointer;
    transition:
        transform 0.2s ease,
        background 0.2s ease,
        border-color 0.2s ease;
}

.player-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.035);
    border-color: rgba(183, 243, 74, 0.18);
}

.player-card-avatar {
    width: 76px;
    height: 76px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #22282d;
    color: #d9dde0;
    font-size: 23px;
    font-weight: 800;
    border: 2px solid rgba(255, 255, 255, 0.06);
    transition:
        background 0.2s ease,
        color 0.2s ease,
        box-shadow 0.2s ease;
}

.player-card:hover .player-card-avatar {
    background: var(--green);
    color: #111;
    box-shadow:
        0 0 25px rgba(183, 243, 74, 0.16);
}

.player-card-name {
    font-size: 12px;
    font-weight: 700;
}

.player-card-role {
    margin-top: -7px;
    color: var(--text-muted);
    font-size: 8px;
}

/* =========================================================
   MÓVIL — SELECCIÓN
========================================================= */

@media (max-width: 600px) {

    .player-selector {
        padding: 25px 18px;
    }

    .selector-brand {
        margin-bottom: 40px;
    }

    .player-selector h1 {
        font-size: 32px;
    }

    .player-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
        margin-top: 30px;
    }

    .player-card {
        padding: 14px 8px;
    }

    .player-card-avatar {
        width: 65px;
        height: 65px;
        font-size: 20px;
    }

    .player-card-name {
        font-size: 11px;
    }
}
.hidden {
    display: none !important;
}
/* =========================================================
   MENÚ DE CAMBIO DE JUGADOR — DARK V2
========================================================= */

.profile {
    position: relative;
    cursor: pointer;
}

.profile-arrow {
    margin-left: 8px;
    font-size: 12px;
    color: var(--text-muted);
    transition: transform 0.2s ease, color 0.2s ease;
}

.profile.open .profile-arrow {
    transform: rotate(180deg);
    color: var(--green);
}

.player-dropdown {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;

    width: 225px;

    padding: 9px;

    background: #151a1e;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 14px;

    box-shadow:
        0 18px 50px rgba(0, 0, 0, 0.45),
        0 0 30px rgba(0, 0, 0, 0.15);

    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);

    transition:
        opacity 0.2s ease,
        transform 0.2s ease,
        visibility 0.2s ease;

    z-index: 1000;
}

.profile.open .player-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* TÍTULO */

.dropdown-title {
    padding: 8px 10px 10px;

    color: var(--text-muted);
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 1.4px;
}

/* LISTA */

.dropdown-player-list {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

/* JUGADOR */

.dropdown-player {
    width: 100%;

    padding: 8px 9px;

    display: flex;
    align-items: center;
    gap: 10px;

    border: 1px solid transparent;
    border-radius: 10px;

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

    font-family: inherit;
    font-size: 11px;
    font-weight: 600;

    cursor: pointer;
    text-align: left;

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

.dropdown-player:hover {
    background: rgba(183, 243, 74, 0.07);
    border-color: rgba(183, 243, 74, 0.12);
    transform: translateX(2px);
}

/* JUGADOR ACTUAL */

.dropdown-player.selected {
    background: rgba(183, 243, 74, 0.10);
    border-color: rgba(183, 243, 74, 0.18);
    color: var(--green);
}

.dropdown-player.selected::after {
    content: "✓";

    margin-left: auto;

    color: var(--green);
    font-size: 12px;
    font-weight: 800;
}

/* AVATAR */

.dropdown-avatar {
    width: 32px;
    height: 32px;

    flex-shrink: 0;

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

    border-radius: 50%;

    background: #22282d;
    border: 1px solid rgba(255, 255, 255, 0.06);

    color: #c9ced2;

    font-size: 11px;
    font-weight: 800;

    transition:
        background 0.15s ease,
        color 0.15s ease,
        box-shadow 0.15s ease;
}

/* AVATAR AL PASAR POR ENCIMA */

.dropdown-player:hover .dropdown-avatar {
    background: var(--green);
    color: #111;
}

/* AVATAR DEL JUGADOR SELECCIONADO */

.dropdown-player.selected .dropdown-avatar {
    background: var(--green);
    color: #111;

    box-shadow:
        0 0 12px rgba(183, 243, 74, 0.15);
}

/* =========================================================
   TARJETA PUNTOS — AJUSTE ESPECÍFICO
========================================================= */

.points-card .stat-value {
    color: var(--green);
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.points-card .stat-bottom .positive {
    color: var(--text) !important;
    font-size: 22px;
    font-weight: 800;
}
.admin-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 8px 12px;

    border-radius: 8px;

    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);

    color: inherit;
    text-decoration: none;

    font-size: 12px;
    font-weight: 700;

    transition: 0.2s ease;
}

.admin-button:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-1px);
}
/* ==========================================
   BOTE
========================================== */

.pot-summary {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-bottom: 30px;
}


.pot-summary-card {
    background: #0b0d0f;
    border: 1px solid #252a2e;
    border-radius: 14px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}


.pot-summary-label {
    color: #858b91;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 800;
}


.pot-summary-card strong {
    font-size: 24px;
}


.pot-summary-main {
    border-color: #b7f34a;
}


.pot-summary-main strong {
    color: #b7f34a;
}


/* ==========================================
   JORNADA DEL BOTE
========================================== */

.pot-matchday {
    border: 1px solid #252a2e;
    border-radius: 16px;
    margin-bottom: 18px;
    overflow: hidden;
}


.pot-matchday-header {
    padding: 20px;
    background: #101417;

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

    gap: 20px;
}


.pot-matchday-header h3 {
    font-size: 20px;
}


.pot-matchday-total {
    display: flex;
    align-items: baseline;
    gap: 8px;
}


.pot-matchday-total span {
    color: #858b91;
    font-size: 12px;
}


.pot-matchday-total strong {
    color: #b7f34a;
    font-size: 18px;
}


.pot-matchday-total small {
    color: #666d73;
}


/* ==========================================
   PAGOS
========================================== */

.payments-list {
    padding: 0 20px;
}


.payment-row {
    display: grid;

    grid-template-columns:
        minmax(120px, 1.2fr)
        80px
        100px
        130px
        140px
        minmax(130px, 1fr)
        90px
        80px;

    gap: 12px;

    align-items: end;

    padding: 18px 0;

    border-bottom: 1px solid #252a2e;
}


.payment-row:last-child {
    border-bottom: none;
}


.payment-player {
    display: flex;
    flex-direction: column;
    gap: 5px;
}


.payment-player strong {
    font-size: 14px;
}


.payment-player span {
    color: #858b91;
    font-size: 12px;
}


.payment-due {
    display: flex;
    flex-direction: column;
    gap: 5px;
}


.payment-due strong {
    color: #b7f34a;
}


.payment-label,
.payment-paid label,
.payment-method label,
.payment-date label,
.payment-note label {
    color: #666d73;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: .8px;
    font-weight: 800;
}


.payment-amount-input,
.payment-method-select,
.payment-date-input,
.payment-note-input {
    width: 100%;

    padding: 9px 10px;

    border-radius: 8px;

    border: 1px solid #30363b;

    background: #0b0d0f;

    color: white;

    font-family: Inter, Arial, sans-serif;

    outline: none;
}


.payment-amount-input:focus,
.payment-method-select:focus,
.payment-date-input:focus,
.payment-note-input:focus {
    border-color: #b7f34a;
}


.payment-paid,
.payment-method,
.payment-date,
.payment-note {
    display: flex;
    flex-direction: column;
    gap: 6px;
}


.payment-status {
    display: flex;
    justify-content: center;
    align-items: center;
}


.payment-status-badge {
    padding: 6px 9px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 800;
}


.payment-status-badge.paid {
    background: #18200f;
    color: #b7f34a;
}


.payment-status-badge.partial {
    background: #27220e;
    color: #f5c451;
}


.payment-status-badge.pending {
    background: #252a2e;
    color: #858b91;
}


.save-payment-button {
    border: none;

    padding: 9px 10px;

    border-radius: 8px;

    background: #b7f34a;

    color: #111;

    font-size: 11px;

    font-weight: 800;

    cursor: pointer;
}


.save-payment-button:hover {
    opacity: .9;
}


.save-payment-button:disabled {
    opacity: .6;
    cursor: wait;
}


.pot-empty-badge {
    padding: 7px 10px;

    border-radius: 20px;

    background: #20252a;

    color: #858b91;

    font-size: 11px;

    font-weight: 800;
}


/* ==========================================
   RESPONSIVE BOTE
========================================== */

@media (max-width: 1100px) {

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


    .payment-row {
        grid-template-columns:
            1.5fr
            80px
            100px
            130px;
    }


    .payment-date,
    .payment-note,
    .payment-status,
    .save-payment-button {
        grid-column: span 1;
    }

}


@media (max-width: 700px) {

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


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


    .payment-row {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }


    .payment-player {
        grid-column: 1 / -1;
    }


    .payment-due {
        grid-column: 1;
    }


    .payment-paid {
        grid-column: 2;
    }


    .payment-method {
        grid-column: 1 / -1;
    }


    .payment-date {
        grid-column: 1 / -1;
    }


    .payment-note {
        grid-column: 1 / -1;
    }


    .payment-status {
        justify-content: flex-start;
    }


    .save-payment-button {
        width: fit-content;
    }

}


@media (max-width: 450px) {

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

}

/* ==========================================
   PARTIDOS · PRÓXIMA JORNADA
   ========================================== */

.fixture {
    display: grid;
    grid-template-columns: 45px minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 8px;
}

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

.fixture-home {
    justify-content: flex-end;
}

.fixture-away {
    justify-content: flex-start;
}

.fixture-team strong {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fixture-team-logo {
    width: 20px;
    height: 20px;
    object-fit: contain;
    flex-shrink: 0;
}

.fixture-vs {
    flex-shrink: 0;
    color: var(--text-muted);
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 0.5px;
}


/* ==========================================
   MÓVIL
   ========================================== */

@media (max-width: 600px) {

    .fixture {
        grid-template-columns: 38px minmax(0, 1fr) auto minmax(0, 1fr);
        gap: 5px;
    }

    .fixture-team {
        gap: 5px;
    }

    .fixture-team-logo {
        width: 18px;
        height: 18px;
    }

    .fixture-team strong {
        font-size: 10px;
    }

    .fixture-vs {
        font-size: 7px;
    }

}

#next-match-countdown {
    display: block;
    margin-top: 7px;
    color: var(--text);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.2px;
}

#next-match-countdown.countdown-warning {
    color: #ff4d4d;
}

#next-match-countdown.countdown-live {
    color: var(--green);
}

/* ==========================================
   CUENTA ATRÁS · PRÓXIMA JORNADA
   ========================================== */

.countdown strong {
    color: var(--text);
}

.countdown strong.countdown-warning {
    color: #ff4d4d !important;
}

.countdown strong.countdown-live {
    color: var(--green) !important;
}
/* ==========================================
   PAGOS · DASHBOARD
   ========================================== */

.payments-panel .payment-row {
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.045);
}

.payments-panel .payment-row > strong {
    color: var(--orange);
    font-size: 13px;
    font-weight: 700;
}

.payments-panel .payment-player {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    font-weight: 600;
}

.payments-panel .mini-avatar {
    width: 31px;
    height: 31px;
    font-size: 10px;
    flex-shrink: 0;
}

.payments-panel .pot-summary {
    margin: 18px 22px 0;
    padding: 15px;
    border-radius: 10px;
    background: rgba(183, 243, 74, 0.055);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-soft);
    font-size: 11px;
}

.payments-panel .pot-summary strong {
    color: var(--green);
    font-size: 16px;
}
/* =========================================================
   MENÚ MÓVIL
========================================================= */

/* ---------------------------------------------------------
   BOTÓN MENÚ
--------------------------------------------------------- */

.mobile-menu-button {
    display: none;
    width: 32px;
    height: 32px;
    padding: 0;

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

    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;

    background: rgba(255, 255, 255, 0.035);
    color: var(--text);

    font-family: inherit;
    font-size: 17px;
    line-height: 1;

    cursor: pointer;

    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}

.mobile-menu-button:hover {
    background: rgba(183, 243, 74, 0.08);
    border-color: rgba(183, 243, 74, 0.18);
    color: var(--green);
}

.mobile-menu-button.open {
    color: var(--green);
}


/* ---------------------------------------------------------
   OVERLAY
--------------------------------------------------------- */

.mobile-menu-overlay {
    position: fixed;
    inset: 0;

    z-index: 9997;

    background: rgba(0, 0, 0, 0.58);

    opacity: 0;
    visibility: hidden;

    transition:
        opacity 0.25s ease,
        visibility 0.25s ease;

    backdrop-filter: blur(2px);
}

.mobile-menu-overlay.mobile-open {
    opacity: 1;
    visibility: visible;
}


/* ---------------------------------------------------------
   MÓVIL
--------------------------------------------------------- */

@media (max-width: 760px) {

    .mobile-brand {
        display: flex;
        align-items: center;
        gap: 9px;
    }


    .mobile-menu-button {
        display: inline-flex;
        flex-shrink: 0;
    }


    /* ---------------------------------------------
       SIDEBAR COMO MENÚ LATERAL
    --------------------------------------------- */

    .sidebar {
        display: flex;

        position: fixed;

        top: 0;
        left: 0;
        bottom: 0;

        width: min(82vw, 310px);

        margin: 0;

        z-index: 9998;

        transform: translateX(-105%);

        transition:
            transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);

        box-shadow:
            18px 0 50px rgba(0, 0, 0, 0.35);
    }


    .sidebar.mobile-open {
        transform: translateX(0);
    }


    /* ---------------------------------------------
       EVITAR SCROLL DEL FONDO
    --------------------------------------------- */

    body.menu-mobile-open {
        overflow: hidden;
    }

}


/* ---------------------------------------------------------
   MÓVIL PEQUEÑO
--------------------------------------------------------- */

@media (max-width: 450px) {

    .mobile-menu-button {
        width: 30px;
        height: 30px;
        font-size: 16px;
    }

    .mobile-brand {
        gap: 7px;
        font-size: 10px;
    }

}