/* =========================
   VARIABLES BASE - GUERRILLA XTREME BRAND
   ========================= */
:root {
    /* Fondos */
    --gx-bg: #000000;
    --gx-bg-grad: radial-gradient(ellipse at top, #1a1a1a 0%, #0a0a0a 40%, #000000 100%);
    --gx-card-bg: rgba(30, 30, 30, 0.98);
    --gx-card-soft: rgba(30, 30, 30, 0.92);
    --gx-bg-dark: #0a0a0a;

    /* Bordes */
    --gx-border: rgba(176, 176, 176, 0.2);
    --gx-border-soft: rgba(176, 176, 176, 0.15);
    --gx-border-strong: rgba(176, 176, 176, 0.35);

    /* Textos */
    --gx-text: #FFFFFF;
    --gx-muted: #B0B0B0;
    --gx-muted-strong: #D4D4D4;

    /* Colores de marca */
    --gx-primary: #E10600;
    --gx-primary-dark: #9E1B1B;
    --gx-primary-glow: rgba(225, 6, 0, 0.4);
    --gx-accent: #E10600;
    --gx-accent-2: #9E1B1B;

    /* Estados */
    --gx-success: #22c55e;
    --gx-danger: #ef4444;
    --gx-warning: #eab308;
    --gx-info: #3b82f6;

    /* Radios y sombras */
    --gx-radius-lg: 16px;
    --gx-radius-md: 10px;
    --gx-radius-sm: 6px;
    --gx-shadow-soft: 0 20px 50px rgba(0, 0, 0, 0.7);
    --gx-shadow-sm: 0 8px 24px rgba(0, 0, 0, 0.5);
    --gx-shadow-glow: 0 0 30px rgba(225, 6, 0, 0.2);
}

/* =========================
   RESET / BASE
   ========================= */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    font-size: 16px;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--gx-text);
    background: var(--gx-bg);
    background-image: url('../img/gx_back.png');
    background-size: cover;
    background-position: center top;
    background-attachment: fixed;
    background-repeat: no-repeat;
    min-height: 100vh;
}

body.admin-body {
    background: var(--gx-bg);
    background-image: url('../img/gx_back.png');
    background-size: cover;
    background-position: center top;
    background-attachment: fixed;
    background-repeat: no-repeat;
    min-height: 100vh;
}

/* Fallback si la imagen no carga */
body:before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gx-bg-grad);
    z-index: -2;
}

body:after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../img/gx_back.png');
    background-size: cover;
    background-position: center top;
    background-attachment: fixed;
    background-repeat: no-repeat;
    z-index: -1;
    opacity: 0.2;
}

/* CONTENEDOR PRINCIPAL */
.overlay {
    min-height: 100vh;
    padding: 24px 16px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.page-container {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
}

/* CARD GENERAL */
.card {
    background: var(--gx-card-bg);
    border-radius: var(--gx-radius-lg);
    border: 1px solid var(--gx-border);
    box-shadow: var(--gx-shadow-soft);
    padding: 18px 20px;
    margin-bottom: 18px;
}

/* HEADER FRONT */
.header-single {
    text-align: center;
    padding: 22px 22px 20px;
}

.logo-row {
    display: flex;
    justify-content: center;
    margin-bottom: 8px;
}

.gx-logo {
    max-width: 180px;
    height: auto;
}

.title-main {
    margin: 4px 0 2px;
    font-family: "Rajdhani", system-ui, sans-serif;
    letter-spacing: 0.11em;
    text-transform: uppercase;
    font-weight: 700;
    font-size: 1.45rem;
    color: #f9fafb;
}

.title-sub {
    margin: 4px 0 0;
    font-size: 0.9rem;
    color: var(--gx-muted);
}

/* TITULOS / TEXTO */
.section-title {
    margin: 0 0 10px;
    font-size: 1.05rem;
    font-weight: 600;
    color: #f9fafb;
}

.section-title-small {
    font-size: 0.95rem;
}

.section-title-centered {
    text-align: center;
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gx-primary);
    margin-bottom: 16px;
    text-shadow: 0 2px 12px var(--gx-primary-glow);
}

.info-text {
    margin: 4px 0;
    font-size: 0.9rem;
    color: var(--gx-muted);
}

a.link {
    color: var(--gx-primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.15s ease;
}

a.link:hover {
    color: #ff3d38;
    text-decoration: underline;
}

/* BOTONES */
.btn-primary,
.reserve-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border-radius: 8px;
    border: none;
    background: linear-gradient(135deg, var(--gx-primary) 0%, var(--gx-primary-dark) 100%);
    color: #FFFFFF;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 4px 15px var(--gx-primary-glow);
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.btn-primary:hover,
.reserve-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--gx-primary-glow);
    background: linear-gradient(135deg, #ff1a14 0%, var(--gx-primary) 100%);
}

.btn-primary:active,
.reserve-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px var(--gx-primary-glow);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 18px;
    border-radius: 8px;
    border: 1px solid var(--gx-border-strong);
    background: rgba(30, 30, 30, 0.95);
    color: var(--gx-muted-strong);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    box-shadow: var(--gx-shadow-sm);
    transition: all 0.2s ease;
}

.btn-secondary:hover {
    background: rgba(50, 50, 50, 0.95);
    border-color: var(--gx-primary);
    color: #FFFFFF;
}

/* ALERTAS */
.alert {
    border-radius: var(--gx-radius-md);
    border: 1px solid rgba(248, 113, 113, 0.9);
    background: rgba(127, 29, 29, 0.65);
    color: #fee2e2;
    padding: 8px 10px;
    font-size: 0.85rem;
    margin: 8px 0 10px;
}

/* FOOTER FRONT */
.footer {
    text-align: center;
    font-size: 0.8rem;
    color: var(--gx-muted);
    margin-top: 6px;
}

/* =========================
   FRONT – LISTA DE RIFAS
   ========================= */
.raffle-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 14px;
    margin-top: 6px;
}

.raffle-item {
    border-radius: 16px;
    border: 1px solid rgba(51, 65, 85, 0.85);
    background: radial-gradient(circle at top left,
            rgba(15, 23, 42, 0.98),
            rgba(15, 23, 42, 0.92));
    padding: 12px 14px;
    box-shadow: var(--gx-shadow-sm);
}

.raffle-title {
    margin: 0 0 4px;
    font-size: 1rem;
    font-weight: 600;
    color: #f9fafb;
}

.raffle-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 0.85rem;
    color: var(--gx-muted);
    margin-bottom: 4px;
}

.raffle-status {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 4px;
}

.raffle-date {
    font-size: 0.8rem;
    color: var(--gx-muted);
}

.raffle-description {
    margin: 2px 0 0;
    font-size: 0.9rem;
    color: var(--gx-muted-strong);
}

/* PILL DE ESTADO */
.status-pill {
    display: inline-block;
    padding: 2px 9px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.status-draft {
    background: rgba(148, 163, 184, 0.3);
    color: #e5e7eb;
}

.status-published {
    background: rgba(22, 163, 74, 0.25);
    color: #bbf7d0;
}

.status-closed {
    background: rgba(234, 179, 8, 0.25);
    color: #facc15;
}

.status-drawn {
    background: rgba(59, 130, 246, 0.25);
    color: #bfdbfe;
}

.status-cancelled {
    background: rgba(248, 113, 113, 0.25);
    color: #fecaca;
}

/* =========================
   FRONT – PREMIOS
   ========================= */
.prizes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 14px;
    margin-top: 10px;
}

.prize-card {
    background: radial-gradient(circle at top,
            rgba(15, 23, 42, 0.98),
            rgba(15, 23, 42, 0.92));
    border-radius: 16px;
    border: 1px solid rgba(148, 163, 184, 0.7);
    box-shadow: var(--gx-shadow-sm);
    padding: 10px 12px 12px;
    text-align: center;
}

.prize-card img {
    max-width: 100%;
    max-height: 500px;
    /* se complementa con resize del servidor */
    width: auto;
    height: auto;
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.8);
    margin-bottom: 6px;
}

.prize-position {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #a5b4fc;
    margin-bottom: 2px;
}

.prize-title {
    margin: 0 0 2px;
    font-size: 1rem;
    font-weight: 600;
    color: #f9fafb;
}

.prize-desc {
    margin: 0;
    font-size: 0.85rem;
    color: #cbd5f5;
}

/* =========================
   ADMIN – LOGIN
   ========================= */
.login-card {
    max-width: 380px;
    width: 100%;
    background: var(--gx-card-bg);
    border-radius: var(--gx-radius-lg);
    border: 1px solid var(--gx-border);
    box-shadow: var(--gx-shadow-soft);
    padding: 18px 20px 20px;
    margin: 60px auto;
}

.login-card h1 {
    margin: 0 0 6px;
    font-size: 1.25rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.login-card p {
    margin: 0 0 14px;
    font-size: 0.9rem;
    color: var(--gx-muted);
}

.login-card label {
    display: block;
    font-size: 0.85rem;
    margin-bottom: 6px;
    color: var(--gx-muted-strong);
}

.login-card input[type="password"],
.login-card input[type="text"],
.login-card input[type="email"] {
    width: 100%;
    padding: 10px 12px;
    border-radius: var(--gx-radius-sm);
    border: 1px solid var(--gx-border-strong);
    background: rgba(20, 20, 20, 0.95);
    color: var(--gx-text);
    font-size: 0.9rem;
    margin-bottom: 14px;
    transition: all 0.2s ease;
}

.login-card input:focus {
    outline: none;
    border-color: var(--gx-primary);
    box-shadow: 0 0 0 3px rgba(225, 6, 0, 0.15);
}

/* =========================
   ADMIN – CARD PRINCIPAL
   ========================= */
.admin-card {
    width: 100%;
    max-width: 1120px;
    margin: 30px auto 10px;
    background: var(--gx-card-bg);
    border-radius: var(--gx-radius-lg);
    border: 1px solid var(--gx-border);
    box-shadow: var(--gx-shadow-soft);
    padding: 20px 22px 22px;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 18px;
    margin-bottom: 16px;
}

.admin-header h1 {
    margin: 0 0 4px;
    font-size: 1.3rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--gx-primary);
}

.admin-header p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--gx-muted);
}

.admin-actions {
    margin-top: 14px;
}

/* GRID DASHBOARD ADMIN */
.admin-dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 14px;
    margin-top: 12px;
}

.admin-tile {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 14px 16px;
    border-radius: var(--gx-radius-md);
    background: rgba(30, 30, 30, 0.95);
    border: 1px solid var(--gx-border);
    box-shadow: var(--gx-shadow-sm);
    text-decoration: none;
    color: var(--gx-text);
    transition: all 0.2s ease;
}

.admin-tile:hover {
    border-color: var(--gx-primary);
    box-shadow: 0 0 25px rgba(225, 6, 0, 0.15);
    transform: translateY(-2px);
}

.admin-tile h2 {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 600;
}

.admin-tile p {
    margin: 0;
    font-size: 0.8rem;
    color: var(--gx-muted);
}

.metric-value {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 6px 0;
    color: var(--gx-primary);
}

.metric-label {
    font-size: 0.75rem;
    color: var(--gx-muted);
    margin-top: 2px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

/* Colores para cards de resumen */
.admin-tile-available {
    border-color: #3b82f6;
    background: radial-gradient(circle at top left,
            rgba(59, 130, 246, 0.15),
            rgba(15, 23, 42, 0.94));
}

.admin-tile-available .metric-value {
    color: #bfdbfe;
}

.admin-tile-reserved {
    border-color: #facc15;
    background: radial-gradient(circle at top left,
            rgba(250, 204, 21, 0.15),
            rgba(15, 23, 42, 0.94));
}

.admin-tile-reserved .metric-value {
    color: #fef9c3;
}

.admin-tile-sold {
    border-color: #ef4444;
    background: radial-gradient(circle at top left,
            rgba(239, 68, 68, 0.15),
            rgba(15, 23, 42, 0.94));
}

.admin-tile-sold .metric-value {
    color: #fecaca;
}

.admin-tile-winner {
    border-color: #4ade80;
    background: radial-gradient(circle at top left,
            rgba(74, 222, 128, 0.15),
            rgba(15, 23, 42, 0.94));
}

.admin-tile-winner .metric-value {
    color: #bbf7d0;
}

.admin-tile-total {
    border-color: var(--gx-border-soft);
    background: radial-gradient(circle at top left,
            rgba(148, 163, 184, 0.1),
            rgba(15, 23, 42, 0.94));
}

.admin-tile-total .metric-value {
    color: var(--gx-muted-strong);
}

/* TARJETAS DE ESTADÍSTICAS */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 12px;
    margin-top: 10px;
}

.stat-card {
    padding: 12px 14px;
    border-radius: var(--gx-radius-md);
    background: rgba(30, 30, 30, 0.95);
    border: 1px solid var(--gx-border);
    box-shadow: var(--gx-shadow-sm);
    transition: all 0.2s ease;
}

.stat-card:hover {
    border-color: var(--gx-primary);
    box-shadow: 0 0 20px rgba(225, 6, 0, 0.15);
}

.stat-label {
    font-size: 0.8rem;
    color: var(--gx-muted);
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gx-primary);
}

.stat-chip {
    display: inline-block;
    margin-top: 4px;
    padding: 3px 10px;
    border-radius: var(--gx-radius-sm);
    font-size: 0.7rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #FFFFFF;
    background: linear-gradient(135deg, var(--gx-primary), var(--gx-primary-dark));
}

/* =========================
   ADMIN – FORMULARIOS
   ========================= */
.admin-form {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 8px;
}

.admin-form-row {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.admin-form-row label {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--gx-muted-strong);
}

.admin-form-row input[type="text"],
.admin-form-row input[type="number"],
.admin-form-row input[type="email"],
.admin-form-row input[type="password"],
.admin-form-row input[type="date"],
.admin-form-row input[type="datetime-local"],
.admin-form-row textarea,
.admin-form-row select {
    width: 100%;
    padding: 10px 12px;
    border-radius: var(--gx-radius-sm);
    border: 1px solid var(--gx-border-strong);
    background: rgba(20, 20, 20, 0.95);
    color: var(--gx-text);
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.admin-form-row input:focus,
.admin-form-row textarea:focus,
.admin-form-row select:focus {
    outline: none;
    border-color: var(--gx-primary);
    box-shadow: 0 0 0 3px rgba(225, 6, 0, 0.15);
}

.admin-form-row textarea {
    resize: vertical;
    min-height: 80px;
}

.admin-divider {
    border-top: 1px solid var(--gx-border);
    margin: 16px 0 10px;
}

/* TABLAS ADMIN */
.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
    margin-top: 8px;
}

.admin-table th,
.admin-table td {
    border-bottom: 1px solid var(--gx-border);
    padding: 10px 8px;
    text-align: left;
}

.admin-table th {
    background: rgba(30, 30, 30, 0.98);
    font-weight: 600;
    color: var(--gx-muted-strong);
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
}

.admin-table tr:nth-child(even) {
    background: rgba(25, 25, 25, 0.6);
}

.admin-table tr:hover {
    background: rgba(225, 6, 0, 0.08);
}

/* =========================
   ADMIN – PREMIOS (FORM)
   ========================= */
.prize-form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 6px;
}

.prize-form-row {
    display: grid;
    grid-template-columns: minmax(0, 1.8fr) minmax(0, 2.5fr) minmax(0, 0.8fr) minmax(0, 2.2fr);
    gap: 8px;
    align-items: flex-start;
}

.prize-form-row textarea {
    min-height: 48px;
}

.prize-form-row small {
    font-size: 0.75rem;
    color: var(--gx-muted);
}

/* PREMIOS EXISTENTES (ADMIN EDIT) */
.prize-admin-list {
    margin-top: 4px;
    font-size: 0.85rem;
    color: var(--gx-muted);
}

.prize-admin-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 0;
    border-bottom: 1px dashed var(--gx-border-soft);
}

.prize-admin-thumb {
    width: 44px;
    height: 44px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid var(--gx-border-soft);
}

/* =========================
   ADMIN – ESTADO NÚMEROS
   ========================= */
.numbers-grid-admin {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 20px;
    margin-top: 12px;
}

.admin-numbers-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 8px;
}

.admin-numbers-toolbar .info-text {
    margin-bottom: 0;
}

.btn-clear-all {
    font-size: 0.8rem;
    padding: 6px 12px;
}

.number-admin-badge {
    border-radius: 16px;
    background: var(--gx-card-soft);
    border: 1px solid var(--gx-border-soft);
    padding: 10px 8px;
    text-align: center;
    box-shadow: var(--gx-shadow-sm);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.number-badge-circle {
    width: 52px;
    height: 52px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.04em;
}

.number-badge-num {
    display: block;
}

.number-badge-body {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 0.78rem;
}

.number-badge-label {
    font-weight: 600;
}

.number-badge-name {
    color: var(--gx-muted-strong);
}

.number-badge-phone {
    font-size: 0.76rem;
    color: var(--gx-muted);
}

/* Color por estado (card completa) */
.number-admin-badge.status-available {
    border-color: #3b82f6;
}

.number-admin-badge.status-sold {
    border-color: #f97373;
}

.number-admin-badge.status-reserved {
    border-color: #facc15;
}

.number-admin-badge.status-winner {
    border-color: #4ade80;
}

/* Color por estado (círculo) */
.number-admin-badge.status-available .number-badge-circle {
    background: radial-gradient(circle at top, rgba(37, 99, 235, 0.25), rgba(15, 23, 42, 0.95));
    border: 1px solid #3b82f6;
    color: #bfdbfe;
}

.number-admin-badge.status-sold .number-badge-circle {
    background: radial-gradient(circle at top, rgba(239, 68, 68, 0.25), rgba(15, 23, 42, 0.95));
    border: 1px solid #f97373;
    color: #fecaca;
}

.number-admin-badge.status-reserved .number-badge-circle {
    background: radial-gradient(circle at top, rgba(234, 179, 8, 0.30), rgba(15, 23, 42, 0.95));
    border: 1px solid #facc15;
    color: #fef9c3;
}

.number-admin-badge.status-winner .number-badge-circle {
    background: radial-gradient(circle at top, rgba(34, 197, 94, 0.30), rgba(15, 23, 42, 0.95));
    border: 1px solid #4ade80;
    color: #bbf7d0;
}

.clear-single-form {
    margin-top: 0.25rem;
}

.link-clear-single {
    font-size: 0.7rem;
    border: none;
    background: none;
    padding: 0;
    margin: 0;
    color: var(--gx-danger);
    cursor: pointer;
}

.alert.success {
    border-color: rgba(74, 222, 128, 0.9);
    background: rgba(22, 101, 52, 0.5);
    color: #dcfce7;
}

/* =========================
   FRONT – RESERVAS
   ========================= */
.reserve-header {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.reserve-counters {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.pill {
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid var(--gx-border-soft);
    background: rgba(15, 23, 42, 0.8);
}

.pill-available {
    border-color: #3b82f6;
    color: #bfdbfe;
}

.pill-reserved {
    border-color: #facc15;
    color: #fef08a;
}

.pill-sold {
    border-color: #f87171;
    color: #fecaca;
}

.numbers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
    gap: 8px;
    margin: 10px 0 14px;
}

.num-chip {
    position: relative;
    border-radius: 12px;
    border: 1px solid var(--gx-border-soft);
    padding: 12px 8px 10px;
    background: rgba(15, 23, 42, 0.9);
    color: #e5e7eb;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: transform 0.06s ease, box-shadow 0.08s ease;
    box-shadow: var(--gx-shadow-sm);
}

.num-chip .num-chip-label {
    display: block;
    font-weight: 500;
    font-size: 0.7rem;
    color: var(--gx-muted);
    margin-top: 3px;
}

.num-chip.selected {
    border-color: #4ade80;
    background: radial-gradient(circle at top, rgba(34, 197, 94, 0.25), rgba(15, 23, 42, 0.95));
    box-shadow: 0 0 0 2px rgba(74, 222, 128, 0.5), 0 4px 12px rgba(74, 222, 128, 0.3);
    transform: translateY(-1px);
    color: #bbf7d0;
}

.num-chip:disabled {
    cursor: not-allowed;
    opacity: 0.55;
}

.num-chip.status-available {
    border-color: #3b82f6;
}

.num-chip.status-reserved {
    border-color: #facc15;
}

.num-chip.status-sold {
    border-color: #f87171;
}

.num-chip.status-winner {
    border-color: #4ade80;
}

.reserve-form {
    margin-top: 8px;
    border-top: 1px solid var(--gx-border-soft);
    padding-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.reserve-form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 10px;
}

.reserve-col label {
    display: block;
    margin-bottom: 4px;
    font-size: 0.8rem;
    color: var(--gx-muted-strong);
}

.reserve-col input {
    width: 100%;
    padding: 8px 10px;
    border-radius: 10px;
    border: 1px solid var(--gx-border-soft);
    background: rgba(15, 23, 42, 0.9);
    color: #f3f4f6;
}

.reserve-upload {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
    justify-content: space-between;
}

.reserve-upload input[type="file"] {
    color: var(--gx-muted);
}

.reserve-summary {
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px dashed var(--gx-border-soft);
    background: rgba(15, 23, 42, 0.7);
    font-size: 0.9rem;
    color: var(--gx-muted-strong);
}

.reserve-actions {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* =========================
   RESPONSIVE
   ========================= */
@media (min-width: 768px) {
    .page-container {
        max-width: 1120px;
    }

    .admin-form {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .admin-form-row.full-width {
        grid-column: 1 / -1;
    }

    .admin-header {
        align-items: center;
    }
}

@media (max-width: 768px) {
    body {
        background-attachment: scroll;
    }

    .header-auth-buttons {
        flex-direction: column !important;
        gap: 8px !important;
        align-items: stretch !important;
    }

    .header-auth-buttons>div {
        width: 100%;
        justify-content: center !important;
    }

    #countdown {
        font-size: 1.8rem !important;
        padding: 15px !important;
    }

    .page-container {
        padding: 12px;
    }

    .card {
        padding: 16px;
    }

    .numbers-grid {
        grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
        gap: 8px;
    }

    .num-chip {
        font-size: 0.85rem;
        padding: 8px 4px;
    }

    .admin-numbers-toolbar {
        flex-direction: column;
        gap: 12px;
    }

    .number-admin-badge {
        max-width: 100%;
    }

    .number-badge-email,
    .number-badge-phone {
        font-size: 0.7rem;
        word-break: break-all;
    }
}

@media (max-width: 480px) {
    .card {
        padding: 14px 14px;
    }

    .admin-card {
        padding: 14px 14px 16px;
        margin-top: 20px;
    }
}

/* =========================
   FORMULARIOS DE AUTENTICACIÓN
   ========================= */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 12px;
}

.register-form-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 20px;
}

.register-form-section {
    background: rgba(30, 41, 59, 0.4);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid var(--gx-border-soft);
}

@media (max-width: 768px) {
    .register-form-container {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

.auth-form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 14px;
}

.auth-form-row {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.auth-form-row label {
    font-size: 0.85rem;
    color: var(--gx-muted-strong);
    font-weight: 500;
}

.auth-form-row input {
    width: 100%;
    padding: 10px 12px;
    border-radius: var(--gx-radius-md);
    border: 1px solid var(--gx-border-soft);
    background: rgba(15, 23, 42, 0.9);
    color: var(--gx-text);
    font-size: 0.9rem;
}

.auth-form-row input:focus {
    outline: none;
    border-color: var(--gx-accent);
    box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.2);
}

.auth-form-row small {
    font-size: 0.75rem;
    color: var(--gx-muted);
}

.auth-form-actions {
    margin-top: 8px;
}

/* Header con botones de autenticación */
.header-auth-buttons {
    position: absolute;
    top: 20px;
    right: 20px;
}

@media (max-width: 768px) {
    .header-auth-buttons {
        position: static;
        margin-bottom: 12px;
        display: flex;
        justify-content: center;
    }
}

/* Estilos adicionales para admin_numeros.php */
.number-admin-badge {
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.number-badge-email,
.number-badge-phone {
    max-width: 100%;
    word-break: break-all;
    overflow-wrap: break-word;
}

/* =========================
   RESPONSIVE ADMIN
   ========================= */
@media (max-width: 768px) {

    /* OVERLAY más compacto */
    .overlay {
        padding: 12px 8px;
    }

    .admin-header {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 10px;
        padding: 12px;
    }

    .admin-header h1 {
        font-size: 1.4rem;
        margin: 0;
    }

    .admin-header p {
        font-size: 0.85rem;
        margin: 4px 0 0;
    }

    .admin-header>div:last-child {
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
        width: 100%;
    }

    .admin-header>div:last-child a {
        flex: 1;
        min-width: 120px;
        text-align: center;
        font-size: 0.85rem;
        padding: 8px 12px;
    }

    .admin-card {
        padding: 12px;
        margin: 12px auto;
        max-width: 100%;
    }

    .admin-actions {
        padding: 12px;
        margin-top: 10px;
    }

    .section-title,
    .section-title-small {
        font-size: 1.1rem;
        margin: 0 0 10px;
    }

    .admin-form {
        grid-template-columns: 1fr !important;
    }

    .admin-form-row {
        grid-column: 1 !important;
    }

    .admin-table {
        font-size: 0.8rem;
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .admin-table thead {
        display: none;
    }

    .admin-table tbody {
        display: block;
    }

    .admin-table tr {
        display: block;
        margin-bottom: 12px;
        border: 1px solid var(--gx-border-soft);
        border-radius: 8px;
        padding: 8px;
        background: rgba(15, 23, 42, 0.7);
    }

    .admin-table td {
        display: flex;
        justify-content: space-between;
        padding: 8px 4px;
        border-bottom: 1px solid var(--gx-border-soft);
        text-align: right;
    }

    .admin-table td:last-child {
        border-bottom: none;
    }

    .admin-table td:before {
        content: attr(data-label);
        font-weight: 600;
        text-align: left;
        margin-right: 12px;
        color: var(--gx-muted-strong);
        flex-shrink: 0;
        min-width: 100px;
    }

    .admin-table td:empty:before {
        display: none;
    }

    .admin-dashboard-grid {
        grid-template-columns: 1fr !important;
    }

    .admin-tile {
        padding: 12px;
        min-height: auto;
    }

    .admin-tile h2 {
        font-size: 1.1rem;
        margin: 0 0 6px;
    }

    .admin-tile p {
        font-size: 0.85rem;
        margin: 0;
        line-height: 1.4;
    }

    .stats-grid {
        gap: 10px;
        margin-top: 8px;
    }

    .stat-card {
        padding: 10px;
    }

    .stat-value {
        font-size: 1.3rem;
    }

    .numbers-grid-admin {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)) !important;
        gap: 8px;
    }

    .number-admin-badge {
        padding: 8px;
        font-size: 0.75rem;
    }

    .prize-form-grid {
        grid-template-columns: 1fr !important;
    }

    .prize-form-row {
        grid-template-columns: 1fr !important;
    }

    .raffle-list {
        grid-template-columns: 1fr !important;
    }

    .prizes-grid {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 480px) {

    /* HEADER */
    .admin-header h1 {
        font-size: 1.2rem;
        line-height: 1.3;
    }

    .admin-header p {
        font-size: 0.8rem;
        margin-top: 4px;
    }

    /* TITLES */
    .section-title {
        font-size: 1.1rem;
    }

    .section-title-small {
        font-size: 1rem;
    }

    /* BUTTONS */
    .btn-primary,
    .btn-secondary {
        padding: 10px 14px;
        font-size: 0.85rem;
    }

    /* TABLES */
    .admin-table {
        font-size: 0.8rem;
    }

    .admin-table td {
        word-break: break-word;
        padding: 8px 6px;
        font-size: 0.8rem;
    }

    .admin-table td:before {
        font-size: 0.85rem;
        min-width: 80px;
    }

    /* NUMBERS GRID */
    .numbers-grid-admin {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)) !important;
        gap: 8px;
    }

    .number-admin-badge {
        padding: 8px 6px;
        font-size: 0.7rem;
    }

    .number-badge-circle {
        width: 36px;
        height: 36px;
    }

    .number-badge-num {
        font-size: 0.85rem;
    }

    /* CARDS */
    .admin-card {
        padding: 8px;
        margin: 8px auto;
    }

    .admin-actions {
        padding: 10px 8px;
        margin-top: 8px;
    }

    /* STATS */
    .stats-grid {
        gap: 8px;
    }

    .stat-card {
        padding: 8px 10px;
    }

    .stat-value {
        font-size: 1.2rem;
    }

    .stat-label {
        font-size: 0.75rem;
    }

    /* HEADER */
    .admin-header {
        padding: 10px;
        gap: 8px;
    }

    .admin-header h1 {
        font-size: 1.2rem;
    }

    .admin-header p {
        font-size: 0.8rem;
    }

    /* FORMS */
    .admin-form {
        gap: 10px;
    }

    .admin-form-row label {
        font-size: 0.9rem;
    }

    .admin-form-row input,
    .admin-form-row textarea,
    .admin-form-row select {
        font-size: 0.9rem;
        padding: 10px;
    }

    /* PRIZE FORMS */
    .prize-form-row {
        padding: 10px;
        gap: 10px;
    }

    /* LOGIN */
    .login-card {
        padding: 20px 12px;
        margin: 16px 8px;
    }

    .login-card h1 {
        font-size: 1.5rem;
    }

    /* OVERLAY */
    .overlay {
        padding: 8px 6px;
    }

    /* TILES más compactos */
    .admin-tile {
        padding: 10px;
    }

    .admin-tile h2 {
        font-size: 1rem;
    }

    .admin-tile p {
        font-size: 0.8rem;
    }

    .admin-table td form {
        display: flex;
        flex-direction: column;
        gap: 4px;
    }

    .admin-table td form button {
        width: 100%;
    }

    .admin-dashboard-grid {
        grid-template-columns: 1fr !important;
    }

    .admin-tile {
        padding: 12px;
    }

    .metric-value {
        font-size: 1.5rem !important;
    }

    .prize-admin-list {
        flex-direction: column;
    }

    .prize-admin-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .prize-admin-thumb {
        width: 100%;
        max-width: 200px;
        margin-bottom: 8px;
    }

    /* Form overrides for mobile */
    .admin-form[style*="grid-template-columns:repeat(2"] {
        grid-template-columns: 1fr !important;
    }

    .admin-form[style*="grid-template-columns:1fr 1fr"] {
        grid-template-columns: 1fr !important;
    }

    .admin-form[style*="max-width"] {
        max-width: 100% !important;
    }
}

/* Additional mobile form overrides */
@media (max-width: 768px) {
    form.admin-form[style*="grid-template-columns:repeat(2"] {
        grid-template-columns: 1fr !important;
    }

    form.admin-form[style*="grid-template-columns:1fr 1fr"] {
        grid-template-columns: 1fr !important;
    }

    form.admin-form[style*="max-width:600px"] {
        max-width: 100% !important;
    }
}

/* =========================
   FINANZAS - LISTA CON BARRAS
   ========================= */
.finance-list-view {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 12px;
}

.finance-item-card {
    background: rgba(15, 23, 42, 0.92);
    border: 1px solid var(--gx-border-soft);
    border-radius: var(--gx-radius-md);
    padding: 14px 16px;
    box-shadow: var(--gx-shadow-sm);
}

.finance-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 10px;
}

.finance-item-info {
    flex: 1;
    min-width: 0;
}

.finance-item-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--gx-text);
    margin-bottom: 4px;
}

.finance-item-subtitle {
    font-size: 0.85rem;
    color: var(--gx-muted);
}

.finance-item-amount {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.finance-amount-value {
    font-size: 1.2rem;
    font-weight: 700;
}

.finance-amount-value.positive {
    color: #4ade80;
}

.finance-amount-value.negative {
    color: #f87171;
}

.finance-amount-percentage {
    font-size: 0.85rem;
    color: var(--gx-muted);
}

.finance-progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(15, 23, 42, 0.8);
    border-radius: 999px;
    overflow: hidden;
    margin-top: 8px;
}

.finance-progress-fill {
    height: 100%;
    border-radius: 999px;
    transition: width 0.3s ease;
}

@media (max-width: 768px) {
    .finance-item-header {
        flex-direction: column;
        gap: 8px;
    }

    .finance-item-amount {
        align-items: flex-start;
        width: 100%;
    }

    .finance-item-name {
        font-size: 0.95rem;
    }

    .finance-amount-value {
        font-size: 1.1rem;
    }
}

/* =========================
   MODALES
   ========================= */
/* =========================
   MODALES - ESTILOS BASE
   ========================= */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.95);
    z-index: 99999;
    overflow-y: auto;
    padding: 20px;
    box-sizing: border-box;
}

/* Cuando se muestra con display:flex via JavaScript */
.modal-overlay[style*="display: flex"],
.modal-overlay[style*="display:flex"] {
    display: flex !important;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: #1e293b;
    border-radius: 16px;
    padding: 24px;
    max-width: 500px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.6);
    position: relative;
    z-index: 100000;
    margin: auto;
    border: 1px solid rgba(100, 116, 139, 0.3);
}

@media (max-width: 768px) {
    .modal-content {
        max-width: 95%;
        padding: 16px;
    }

    .admin-form {
        grid-template-columns: 1fr !important;
    }

    .arbitration-players {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }

    .arbitration-players>div {
        width: 100% !important;
        max-width: 100% !important;
        margin-bottom: 0 !important;
        box-sizing: border-box;
        padding: 16px !important;
    }

    #modal-arbitration .modal-content {
        width: 95% !important;
        max-width: 900px !important;
        margin: 10px auto !important;
        padding: 20px !important;
    }

    #modal-arbitration .arbitration-players>div>div:first-child {
        flex-direction: column !important;
        text-align: center !important;
        gap: 8px !important;
    }

    #modal-arbitration .arbitration-players>div>div:last-child {
        grid-template-columns: 1fr !important;
    }
}

@media (min-width: 769px) {
    .arbitration-players {
        grid-template-columns: 1fr 1fr !important;
        gap: 20px !important;
    }

    #modal-arbitration .modal-content {
        max-width: 900px !important;
        width: 900px !important;
    }

    #modal-arbitration #arbitration-player-a,
    #modal-arbitration #arbitration-player-b {
        padding: 28px !important;
        width: 370px !important;
    }

    #modal-arbitration .btn-primary {
        padding: 3px 10px !important;
        font-size: 0.7rem !important;
        min-width: auto !important;
        width: auto !important;
    }
}

/* =========================
   MOBILE MENU
   ========================= */
/* Hamburger button - oculto por defecto en desktop */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: 2px solid var(--gx-accent);
    border-radius: 8px;
    padding: 8px;
    color: var(--gx-accent);
    cursor: pointer;
    font-size: 1.2rem;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
}

/* Menu mobile - oculto por defecto */
.mobile-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #1e293b;
    border: 1px solid rgba(100, 116, 139, 0.3);
    border-radius: 12px;
    padding: 16px;
    margin-top: 8px;
    z-index: 1000;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

/* Menu mobile activo */
.mobile-menu.active {
    display: block;
}

/* Desktop menu - visible por defecto */
.desktop-menu {
    display: flex;
    gap: 8px;
    align-items: center;
}

/* MOBILE: Ocultar desktop menu, mostrar hamburger */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex !important;
    }

    .desktop-menu {
        display: none !important;
    }

    .header-auth-buttons {
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
    }
}

/* =========================
   LIGA/TORNEO/ARBITRAJE V3
   ========================= */

/* Section titles para módulos */
.section-title-centered {
    text-align: center;
}

.section-title-small {
    font-size: 1rem;
    margin-bottom: 12px;
}

/* Live indicator animations */
@keyframes live-pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(0.85);
    }
}

.live-indicator,
.live-badge,
.event-live-badge {
    animation: none;
}

.live-indicator .live-dot,
.live-badge .live-dot,
.event-live-badge .live-dot {
    animation: live-pulse 1.5s ease-in-out infinite;
}

/* Referee panel button grid */
.referee-btn-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.referee-btn-grid .btn-full {
    grid-column: span 2;
}

/* Action buttons for arbitration */
.btn-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px 16px;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.btn-action:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
}

.btn-action:active {
    transform: translateY(0);
}

.btn-action:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Specific action button colors */
.btn-spin {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: #fff;
}

.btn-over {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: #fff;
}

.btn-burst {
    background: linear-gradient(135deg, #f97316, #ea580c);
    color: #fff;
}

.btn-xtreme {
    background: linear-gradient(135deg, #eab308, #ca8a04);
    color: #1e293b;
}

.btn-strike {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #fff;
}

/* Score displays */
.score-big {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1;
}

.score-medium {
    font-size: 2rem;
    font-weight: 700;
}

.score-small {
    font-size: 1.2rem;
    font-weight: 600;
}

/* Player colors */
.player-a-color,
.player-a .score-big,
.player-a .score-medium {
    color: #60a5fa;
}

.player-b-color,
.player-b .score-big,
.player-b .score-medium {
    color: #c084fc;
}

/* Match cards */
.match-card-compact {
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid var(--gx-border-soft);
    border-radius: 10px;
    padding: 12px;
    margin-bottom: 8px;
}

.match-card-compact.concluded {
    border-color: rgba(74, 222, 128, 0.4);
}

.match-card-compact.in-progress {
    border-color: rgba(250, 204, 21, 0.4);
}

/* Bracket styles */
.bracket-wrap {
    overflow-x: auto;
    padding: 16px 0;
}

.bracket-rounds {
    display: flex;
    gap: 40px;
    min-width: fit-content;
}

.bracket-round-col {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 200px;
}

.bracket-round-header {
    font-weight: 700;
    text-align: center;
    padding: 8px;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 8px;
    color: var(--gx-accent);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.bracket-match-box {
    background: rgba(30, 41, 59, 0.7);
    border: 2px solid var(--gx-border-soft);
    border-radius: 8px;
    overflow: hidden;
}

.bracket-match-box.completed {
    border-color: rgba(74, 222, 128, 0.5);
}

.bracket-player-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    border-bottom: 1px solid var(--gx-border-soft);
}

.bracket-player-row:last-child {
    border-bottom: none;
}

.bracket-player-row.winner {
    background: rgba(74, 222, 128, 0.12);
}

.bracket-player-name {
    font-weight: 600;
    font-size: 0.85rem;
}

.bracket-player-score {
    font-weight: 700;
    font-size: 1rem;
}

/* Xtreme badge */
.xtreme-badge-inline {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    background: rgba(250, 204, 21, 0.15);
    color: #facc15;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Status badges */
.status-programado {
    background: rgba(100, 116, 139, 0.2);
    color: #94a3b8;
}

.status-en_juego {
    background: rgba(250, 204, 21, 0.2);
    color: #facc15;
}

.status-cerrado {
    background: rgba(74, 222, 128, 0.2);
    color: #4ade80;
}

.status-en_curso {
    background: rgba(74, 222, 128, 0.2);
    color: #4ade80;
}

.status-borrador {
    background: rgba(100, 116, 139, 0.2);
    color: #94a3b8;
}

/* Mobile improvements for modules */
@media (max-width: 768px) {

    /* Larger touch targets */
    .btn-action {
        min-height: 48px;
        padding: 14px 18px;
    }

    /* Full width buttons in mobile */
    .referee-btn-grid {
        grid-template-columns: 1fr;
    }

    .referee-btn-grid .btn-full {
        grid-column: span 1;
    }

    /* Score adjustments */
    .score-big {
        font-size: 2.5rem;
    }

    .score-medium {
        font-size: 1.6rem;
    }

    /* Bracket mobile */
    .bracket-rounds {
        flex-direction: column;
        gap: 20px;
    }

    .bracket-round-col {
        min-width: 100%;
    }

    /* Event cards */
    .events-grid {
        grid-template-columns: 1fr !important;
    }

    /* Participants grid */
    .participants-grid {
        grid-template-columns: 1fr !important;
    }
}

/* Fullscreen modal for mobile */
@media (max-width: 768px) {
    .modal-fullscreen-mobile .modal-content {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        max-width: 100%;
        max-height: 100%;
        width: 100%;
        height: 100%;
        border-radius: 0;
        margin: 0;
        display: flex;
        flex-direction: column;
    }

    .modal-fullscreen-mobile .modal-body {
        flex: 1;
        overflow-y: auto;
    }

    .modal-fullscreen-mobile .modal-footer {
        position: sticky;
        bottom: 0;
        background: #1e293b;
        padding: 16px;
        border-top: 1px solid var(--gx-border-soft);
    }
}

/* Info text styling */
.info-text {
    color: var(--gx-muted);
    font-size: 0.9rem;
    line-height: 1.5;
}

.info-text.centered {
    text-align: center;
}

/* Loading states */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--gx-accent);
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.loading-text {
    color: var(--gx-muted);
    font-style: italic;
}

/* Winner highlight */
.winner-highlight {
    background: linear-gradient(135deg, rgba(74, 222, 128, 0.15), rgba(74, 222, 128, 0.05));
    border-color: rgba(74, 222, 128, 0.5) !important;
}

/* BYE match styling */
.bye-match {
    opacity: 0.6;
}

.bye-label {
    font-style: italic;
    color: var(--gx-muted);
}

/* =========================
   TOAST NOTIFICATIONS
   ========================= */
#gx-toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.gx-toast {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: var(--gx-radius-md);
    background: var(--gx-card-bg);
    border: 1px solid var(--gx-border);
    box-shadow: var(--gx-shadow-soft);
    color: var(--gx-text);
    font-size: 0.9rem;
    min-width: 280px;
    max-width: 400px;
    pointer-events: auto;
    transform: translateX(120%);
    opacity: 0;
    transition: transform 0.3s ease-out, opacity 0.3s ease-out;
}

.gx-toast-show {
    transform: translateX(0);
    opacity: 1;
}

.gx-toast-hide {
    transform: translateX(120%);
    opacity: 0;
}

.gx-toast-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
}

.gx-toast-message {
    flex: 1;
}

.gx-toast-close {
    background: none;
    border: none;
    color: var(--gx-muted);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0 4px;
    flex-shrink: 0;
}

.gx-toast-close:hover {
    color: var(--gx-text);
}

/* Toast types */
.gx-toast-success {
    border-color: var(--gx-success);
    background: linear-gradient(135deg, rgba(74, 222, 128, 0.15), var(--gx-card-bg));
}

.gx-toast-success .gx-toast-icon {
    color: var(--gx-success);
}

.gx-toast-error {
    border-color: var(--gx-danger);
    background: linear-gradient(135deg, rgba(248, 113, 113, 0.15), var(--gx-card-bg));
}

.gx-toast-error .gx-toast-icon {
    color: var(--gx-danger);
}

.gx-toast-warning {
    border-color: var(--gx-warning);
    background: linear-gradient(135deg, rgba(250, 204, 21, 0.15), var(--gx-card-bg));
}

.gx-toast-warning .gx-toast-icon {
    color: var(--gx-warning);
}

.gx-toast-info {
    border-color: var(--gx-accent);
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.15), var(--gx-card-bg));
}

.gx-toast-info .gx-toast-icon {
    color: var(--gx-accent);
}

/* =========================
   SKELETON LOADERS
   ========================= */
.skeleton {
    background: linear-gradient(90deg,
            var(--gx-card-soft) 25%,
            rgba(148, 163, 184, 0.1) 50%,
            var(--gx-card-soft) 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s ease-in-out infinite;
    border-radius: var(--gx-radius-md);
}

@keyframes skeleton-shimmer {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

.skeleton-text {
    height: 1em;
    margin: 4px 0;
}

.skeleton-title {
    height: 1.5em;
    width: 60%;
    margin-bottom: 8px;
}

.skeleton-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
}

.skeleton-card {
    height: 120px;
    margin-bottom: 12px;
}

/* =========================
   ALERTS IMPROVED
   ========================= */
.alert-success {
    border-color: rgba(74, 222, 128, 0.7);
    background: rgba(22, 101, 52, 0.5);
    color: #bbf7d0;
}

.alert-warning {
    border-color: rgba(250, 204, 21, 0.7);
    background: rgba(113, 63, 18, 0.5);
    color: #fef9c3;
}

.alert-info {
    border-color: rgba(56, 189, 248, 0.7);
    background: rgba(12, 74, 110, 0.5);
    color: #bae6fd;
}

/* Mobile adjustments for toast */
@media (max-width: 480px) {
    #gx-toast-container {
        left: 10px;
        right: 10px;
        top: 10px;
    }

    .gx-toast {
        min-width: auto;
        max-width: none;
    }
}

/* =========================
   STANDINGS TABLE (Liga Interna)
   ========================= */
.standings-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 6px;
    font-size: 0.9rem;
    margin-top: 8px;
}

.standings-table thead tr {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.95), rgba(15, 23, 42, 0.98));
}

.standings-table th {
    padding: 12px 10px;
    text-align: left;
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--gx-muted-strong);
    border-bottom: 2px solid var(--gx-accent);
}

.standings-table tbody tr {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.7), rgba(15, 23, 42, 0.85));
    border-radius: 12px;
    transition: all 0.15s ease-out;
}

.standings-table tbody tr:hover {
    background: linear-gradient(135deg, rgba(30, 64, 175, 0.2), rgba(15, 23, 42, 0.9));
}

.standings-table td {
    padding: 14px 10px;
    border-top: 1px solid transparent;
    border-bottom: 1px solid transparent;
}

.standings-table td:first-child {
    border-left: 3px solid transparent;
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
}

.standings-table td:last-child {
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
}

/* Podium - 1st place (Gold) */
.standings-table tbody tr.pos-1 {
    background: linear-gradient(135deg, rgba(250, 204, 21, 0.2), rgba(15, 23, 42, 0.9));
    border: 1px solid rgba(250, 204, 21, 0.4);
}

.standings-table tbody tr.pos-1 td:first-child {
    border-left: 4px solid #facc15;
}

.standings-table tbody tr.pos-1 .pos-badge {
    background: linear-gradient(135deg, #facc15, #f59e0b);
    color: #1c1917;
    box-shadow: 0 0 12px rgba(250, 204, 21, 0.5);
}

/* Podium - 2nd place (Silver) */
.standings-table tbody tr.pos-2 {
    background: linear-gradient(135deg, rgba(148, 163, 184, 0.2), rgba(15, 23, 42, 0.9));
    border: 1px solid rgba(148, 163, 184, 0.4);
}

.standings-table tbody tr.pos-2 td:first-child {
    border-left: 4px solid #94a3b8;
}

.standings-table tbody tr.pos-2 .pos-badge {
    background: linear-gradient(135deg, #cbd5e1, #94a3b8);
    color: #1e293b;
    box-shadow: 0 0 10px rgba(148, 163, 184, 0.5);
}

/* Podium - 3rd place (Bronze) */
.standings-table tbody tr.pos-3 {
    background: linear-gradient(135deg, rgba(194, 130, 98, 0.2), rgba(15, 23, 42, 0.9));
    border: 1px solid rgba(194, 130, 98, 0.4);
}

.standings-table tbody tr.pos-3 td:first-child {
    border-left: 4px solid #c28262;
}

.standings-table tbody tr.pos-3 .pos-badge {
    background: linear-gradient(135deg, #d4a27a, #c28262);
    color: #1c1917;
    box-shadow: 0 0 10px rgba(194, 130, 98, 0.5);
}

/* Position badge */
.pos-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-weight: 700;
    font-size: 0.9rem;
    background: rgba(15, 23, 42, 0.8);
    border: 2px solid var(--gx-border-soft);
    color: var(--gx-muted-strong);
}

/* Player info cell */
.standings-player {
    display: flex;
    align-items: center;
    gap: 12px;
}

.standings-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--gx-border-soft);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.standings-name {
    font-weight: 600;
    font-size: 0.95rem;
    color: #f9fafb;
}

.standings-blader {
    font-size: 0.8rem;
    color: #a5b4fc;
}

/* Stats cells */
.standings-points {
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--gx-accent);
    text-shadow: 0 0 8px rgba(56, 189, 248, 0.3);
}

.standings-xtreme {
    color: #facc15;
    font-weight: 600;
    font-size: 0.9rem;
}

.standings-wl {
    color: var(--gx-muted-strong);
    font-size: 0.9rem;
}

.standings-wl-win {
    color: #4ade80;
    font-weight: 600;
}

.standings-wl-loss {
    color: #f87171;
    font-weight: 600;
}

/* =========================
   NAVBAR COMPONENT
   ========================= */
.gx-navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 12px 16px;
    background: rgba(15, 23, 42, 0.85);
    border-radius: 14px;
    border: 1px solid var(--gx-border-soft);
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.gx-navbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.gx-navbar-brand img {
    height: 40px;
    width: auto;
}

.gx-navbar-brand-text {
    font-weight: 700;
    font-size: 1rem;
    color: var(--gx-accent);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.gx-navbar-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.gx-navbar-nav a {
    padding: 8px 14px;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    color: var(--gx-muted-strong);
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid var(--gx-border-soft);
    transition: all 0.12s ease-out;
}

.gx-navbar-nav a:hover {
    background: rgba(30, 64, 175, 0.2);
    border-color: var(--gx-accent);
    color: var(--gx-accent);
}

.gx-navbar-nav a.active {
    background: linear-gradient(135deg, var(--gx-accent), #0ea5e9);
    color: #0b1120;
    border-color: transparent;
    font-weight: 600;
}

.gx-navbar-user {
    display: flex;
    align-items: center;
    gap: 10px;
}

.gx-navbar-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--gx-border-soft);
}

.gx-navbar-username {
    font-size: 0.9rem;
    color: var(--gx-muted-strong);
    font-weight: 500;
}

/* Mobile navbar toggle */
@media (max-width: 768px) {
    .gx-navbar {
        flex-direction: column;
        align-items: stretch;
    }

    .gx-navbar-brand {
        justify-content: center;
        margin-bottom: 10px;
    }

    .gx-navbar-nav {
        justify-content: center;
    }

    .gx-navbar-user {
        justify-content: center;
        margin-top: 10px;
    }
}

/* Default avatar placeholder */
.standings-avatar-placeholder {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--gx-accent), #0ea5e9);
    color: #0b1120;
    font-weight: 700;
    font-size: 1rem;
    border: 2px solid var(--gx-border-soft);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}