/* ============================================================
   POLLA MUNDIALISTA 2026 - ESTILOS PRINCIPALES
   ============================================================ */

:root {
    --primary:   #1a6b3a;
    --primary-d: #145530;
    --primary-l: #e8f5ee;
    --accent:    #f5a623;
    --accent-d:  #d4881a;
    --danger:    #e74c3c;
    --success:   #27ae60;
    --warning:   #f39c12;
    --info:      #3498db;
    --dark:      #1a1a2e;
    --gray1:     #f7f8fa;
    --gray2:     #e8eaed;
    --gray3:     #9aa0a6;
    --gray4:     #5f6368;
    --text:      #202124;
    --white:     #ffffff;
    --radius:    10px;
    --shadow:    0 2px 12px rgba(0,0,0,.10);
    --shadow-md: 0 4px 24px rgba(0,0,0,.14);
    --transition: .2s ease;
}

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

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: var(--gray1);
    color: var(--text);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---- NAVBAR ---- */
.navbar {
    background: var(--primary);
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
    box-shadow: 0 2px 8px rgba(0,0,0,.25);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.navbar-logo { font-size: 1.5rem; }

.navbar-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--white);
    letter-spacing: .3px;
}

.navbar-menu {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    color: rgba(255,255,255,.85);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: .92rem;
    font-weight: 500;
    transition: background var(--transition);
    text-decoration: none;
}

.nav-link:hover, .nav-link.active {
    background: rgba(255,255,255,.18);
    color: var(--white);
    text-decoration: none;
}

.nav-user {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 8px;
    padding-left: 12px;
    border-left: 1px solid rgba(255,255,255,.25);
}

.nav-username {
    color: rgba(255,255,255,.9);
    font-size: .88rem;
}

/* ---- CONTAINER ---- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 28px 20px 48px;
    flex: 1;
}

/* ---- BOTONES ---- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 18px;
    border-radius: var(--radius);
    font-size: .9rem;
    font-weight: 600;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all var(--transition);
    text-decoration: none;
    line-height: 1;
}

.btn:hover { text-decoration: none; transform: translateY(-1px); box-shadow: var(--shadow); }
.btn:active { transform: translateY(0); }

.btn-primary   { background: var(--primary); color: var(--white); }
.btn-primary:hover { background: var(--primary-d); color: var(--white); }

.btn-accent    { background: var(--accent); color: var(--white); }
.btn-accent:hover { background: var(--accent-d); }

.btn-danger    { background: var(--danger); color: var(--white); }
.btn-danger:hover { background: #c0392b; }

.btn-success   { background: var(--success); color: var(--white); }
.btn-success:hover { background: #219a52; }

.btn-outline   { background: transparent; border-color: rgba(255,255,255,.6); color: var(--white); }
.btn-outline:hover { background: rgba(255,255,255,.15); }

.btn-outline-dark { background: transparent; border-color: var(--gray3); color: var(--gray4); }
.btn-outline-dark:hover { border-color: var(--primary); color: var(--primary); }

.btn-sm  { padding: 6px 12px; font-size: .82rem; }
.btn-lg  { padding: 12px 26px; font-size: 1rem; }
.btn-block { width: 100%; justify-content: center; }

/* ---- CARDS ---- */
.card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 24px;
    margin-bottom: 20px;
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 2px solid var(--gray2);
}

.card-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ---- FORMULARIOS ---- */
.form-group { margin-bottom: 18px; }

.form-label {
    display: block;
    font-size: .88rem;
    font-weight: 600;
    color: var(--gray4);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: .5px;
}

.form-control {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid var(--gray2);
    border-radius: 8px;
    font-size: .95rem;
    color: var(--text);
    background: var(--white);
    transition: border-color var(--transition), box-shadow var(--transition);
    outline: none;
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(26,107,58,.12);
}

.form-control.error { border-color: var(--danger); }
.form-hint { font-size: .8rem; color: var(--gray3); margin-top: 4px; }

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* ---- ALERTAS ---- */
.alert {
    padding: 12px 18px;
    border-radius: 8px;
    font-size: .93rem;
    margin-bottom: 18px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.alert-success { background: #d4edda; color: #155724; border-left: 4px solid var(--success); }
.alert-error   { background: #f8d7da; color: #721c24; border-left: 4px solid var(--danger); }
.alert-info    { background: #d1ecf1; color: #0c5460; border-left: 4px solid var(--info); }
.alert-warning { background: #fff3cd; color: #856404; border-left: 4px solid var(--warning); }

/* ---- TABLAS ---- */
.table-wrapper { overflow-x: auto; }

table {
    width: 100%;
    border-collapse: collapse;
    font-size: .92rem;
}

thead th {
    background: var(--primary);
    color: var(--white);
    padding: 12px 14px;
    text-align: left;
    font-weight: 600;
    font-size: .85rem;
    text-transform: uppercase;
    letter-spacing: .5px;
    white-space: nowrap;
}

thead th:first-child { border-radius: 8px 0 0 0; }
thead th:last-child  { border-radius: 0 8px 0 0; }

tbody tr { border-bottom: 1px solid var(--gray2); transition: background var(--transition); }
tbody tr:hover { background: var(--primary-l); }
tbody td { padding: 11px 14px; vertical-align: middle; }

tfoot td { padding: 10px 14px; font-size: .85rem; color: var(--gray4); }

/* ---- BADGES ---- */
.badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 50px;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .3px;
    text-transform: uppercase;
}

.badge-success   { background: #d4edda; color: #155724; }
.badge-danger    { background: #f8d7da; color: #721c24; }
.badge-warning   { background: #fff3cd; color: #856404; }
.badge-info      { background: #d1ecf1; color: #0c5460; }
.badge-secondary { background: var(--gray2); color: var(--gray4); }
.badge-primary   { background: var(--primary-l); color: var(--primary); }

/* ---- PARTIDO STATUS ---- */
.status-abierto  { color: var(--success); font-weight: 700; }
.status-cerrado  { color: var(--danger); font-weight: 700; }
.status-jugando  { color: var(--warning); font-weight: 700; }

.tiempo-restante {
    font-size: .82rem;
    color: var(--warning);
    font-weight: 600;
}

/* ---- PARTIDO CARD ---- */
.partido-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 16px 20px;
    margin-bottom: 14px;
    border-left: 5px solid var(--gray2);
    transition: box-shadow var(--transition), border-color var(--transition);
}

.partido-card.abierto { border-left-color: var(--success); }
.partido-card.cerrado { border-left-color: var(--danger); }
.partido-card.jugando { border-left-color: var(--warning); }

.partido-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    gap: 12px;
}

.partido-equipos {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 1.05rem;
    font-weight: 700;
    flex: 1;
}

.partido-vs {
    background: var(--gray2);
    border-radius: 50px;
    padding: 2px 10px;
    font-size: .82rem;
    color: var(--gray4);
    font-weight: 600;
}

.partido-info {
    font-size: .83rem;
    color: var(--gray3);
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.partido-pronostico {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--gray2);
}

.opciones-resultado {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.opcion-btn {
    flex: 1;
    min-width: 100px;
    padding: 10px 14px;
    border: 2px solid var(--gray2);
    border-radius: 8px;
    background: var(--white);
    cursor: pointer;
    font-size: .9rem;
    font-weight: 600;
    text-align: center;
    transition: all var(--transition);
    color: var(--text);
}

.opcion-btn:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-l); }
.opcion-btn.selected { border-color: var(--primary); background: var(--primary); color: var(--white); }
.opcion-btn.correcto { border-color: var(--success); background: var(--success); color: var(--white); }
.opcion-btn.incorrecto { border-color: var(--danger); background: #f8d7da; color: var(--danger); }
.opcion-btn:disabled { cursor: not-allowed; opacity: .6; }

/* ---- RANKING ---- */
.ranking-table tbody tr:nth-child(1) td { background: #fff9e6; font-weight: 700; }
.ranking-table tbody tr:nth-child(2) td { background: #f5f5f5; }
.ranking-table tbody tr:nth-child(3) td { background: #fdf1e6; }

.pos-medal { font-size: 1.2rem; }

.points-badge {
    background: var(--primary);
    color: var(--white);
    border-radius: 50px;
    padding: 4px 12px;
    font-weight: 700;
    font-size: .92rem;
}

/* ---- MODAL ---- */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.55);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-overlay.open { display: flex; }

.modal {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    width: 100%;
    max-width: 540px;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideUp .25s ease;
}

@keyframes slideUp {
    from { transform: translateY(30px); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}

.modal-header {
    padding: 20px 24px 14px;
    border-bottom: 2px solid var(--gray2);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-title { font-size: 1.1rem; font-weight: 700; color: var(--dark); }

.modal-close {
    background: none;
    border: none;
    font-size: 1.4rem;
    cursor: pointer;
    color: var(--gray3);
    line-height: 1;
    padding: 4px;
    border-radius: 4px;
    transition: color var(--transition);
}

.modal-close:hover { color: var(--danger); }

.modal-body { padding: 20px 24px; }
.modal-footer { padding: 14px 24px 20px; display: flex; gap: 10px; justify-content: flex-end; border-top: 1px solid var(--gray2); }

/* ---- SEARCH & PAGINATION ---- */
.table-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
    gap: 12px;
    flex-wrap: wrap;
}

.search-input {
    padding: 8px 14px;
    border: 2px solid var(--gray2);
    border-radius: 8px;
    font-size: .9rem;
    outline: none;
    transition: border-color var(--transition);
    min-width: 220px;
}

.search-input:focus { border-color: var(--primary); }

.pagination {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 14px;
    flex-wrap: wrap;
}

.page-btn {
    padding: 6px 12px;
    border: 2px solid var(--gray2);
    border-radius: 6px;
    background: var(--white);
    cursor: pointer;
    font-size: .88rem;
    font-weight: 600;
    color: var(--gray4);
    transition: all var(--transition);
}

.page-btn:hover, .page-btn.active { border-color: var(--primary); color: var(--primary); background: var(--primary-l); }
.page-btn:disabled { opacity: .4; cursor: not-allowed; }
.page-info { font-size: .85rem; color: var(--gray3); margin-left: 6px; }

/* ---- LOGIN / REGISTRO ---- */
.auth-wrapper {
    min-height: calc(100vh - 60px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px 16px;
}

.auth-card {
    background: var(--white);
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    padding: 36px 32px;
    width: 100%;
    max-width: 440px;
}

.auth-logo {
    text-align: center;
    margin-bottom: 10px;
    font-size: 2.5rem;
}

.auth-title {
    text-align: center;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 4px;
}

.auth-subtitle {
    text-align: center;
    color: var(--gray3);
    font-size: .9rem;
    margin-bottom: 24px;
}

/* ---- PAGE TITLE ---- */
.page-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* ---- STATS GRID ---- */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.stat-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 14px;
    border-left: 4px solid var(--primary);
}

.stat-card.accent  { border-left-color: var(--accent); }
.stat-card.danger  { border-left-color: var(--danger); }
.stat-card.info    { border-left-color: var(--info); }

.stat-icon { font-size: 1.8rem; }

.stat-body {}
.stat-value { font-size: 1.7rem; font-weight: 800; color: var(--dark); line-height: 1; }
.stat-label { font-size: .82rem; color: var(--gray3); margin-top: 2px; font-weight: 600; text-transform: uppercase; }

/* ---- TABS ---- */
.tabs { display: flex; gap: 6px; margin-bottom: 20px; flex-wrap: wrap; }

.tab-btn {
    padding: 8px 18px;
    border: 2px solid var(--gray2);
    border-radius: 8px;
    background: var(--white);
    cursor: pointer;
    font-size: .9rem;
    font-weight: 600;
    color: var(--gray4);
    transition: all var(--transition);
}

.tab-btn:hover { border-color: var(--primary); color: var(--primary); }
.tab-btn.active { border-color: var(--primary); background: var(--primary); color: var(--white); }

.tab-content { display: none; }
.tab-content.active { display: block; }

/* ---- FOOTER ---- */
.footer {
    background: var(--dark);
    color: rgba(255,255,255,.6);
    padding: 14px 24px;
    font-size: .85rem;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ---- TOP 4 SELECTOR ---- */
.top4-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-top: 16px;
}

.top4-item {
    background: var(--gray1);
    border-radius: var(--radius);
    padding: 18px;
    text-align: center;
    border: 2px solid var(--gray2);
}

.top4-position {
    font-size: 1.8rem;
    margin-bottom: 6px;
}

.top4-label {
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 4px;
    color: var(--dark);
}

.top4-pts { font-size: .82rem; color: var(--gray3); margin-bottom: 12px; }

/* ---- EMPTY STATE ---- */
.empty-state {
    text-align: center;
    padding: 48px 24px;
    color: var(--gray3);
}

.empty-state-icon { font-size: 3rem; margin-bottom: 12px; }
.empty-state-text { font-size: 1rem; }

/* ---- RESULT INPUT ---- */
.result-input-group {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.05rem;
}

.result-number {
    width: 60px;
    text-align: center;
    padding: 8px;
    font-size: 1.1rem;
    font-weight: 700;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
    .navbar-title { display: none; }
    .form-row { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .navbar-menu { gap: 4px; }
    .nav-username { display: none; }
}

@media (max-width: 480px) {
    .container { padding: 16px 12px 40px; }
    .auth-card { padding: 24px 18px; }
    .card { padding: 16px; }
    .stats-grid { grid-template-columns: 1fr; }
    .opciones-resultado { flex-direction: column; }
}

/* ---- UTILS ---- */
.text-center { text-align: center; }
.text-right  { text-align: right; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mb-0 { margin-bottom: 0; }
.d-flex { display: flex; }
.align-center { align-items: center; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 16px; }
.flex-wrap { flex-wrap: wrap; }
.justify-between { justify-content: space-between; }
.w-100 { width: 100%; }
.hidden { display: none; }

/* ============================================================
   MEJORAS v2 — Banderas, ranking mejorado, admin grid, etc.
   ============================================================ */

/* ---- EQUIPO CON BANDERA ---- */
.equipo-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}

/* ---- BOTÓN DE PRONÓSTICO MEJORADO ---- */
.opcion-btn-pais {
    flex: 1;
    min-width: 140px;
    padding: 12px 16px;
    border: 2px solid var(--gray2);
    border-radius: 10px;
    background: var(--white);
    cursor: pointer;
    font-size: .9rem;
    font-weight: 600;
    text-align: center;
    transition: all var(--transition);
    color: var(--text);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    position: relative;
}

.opcion-btn-pais:hover {
    border-color: var(--primary);
    background: var(--primary-l);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.opcion-btn-pais.selected {
    border-color: var(--primary);
    background: var(--primary);
    color: var(--white);
    box-shadow: 0 4px 16px rgba(26,107,58,.3);
}

.opcion-btn-pais.correcto {
    border-color: var(--success);
    background: var(--success);
    color: var(--white);
}

.opcion-btn-pais.incorrecto {
    border-color: var(--danger);
    background: #f8d7da;
    color: var(--danger);
}

.opcion-btn-pais:disabled {
    cursor: not-allowed;
    opacity: .65;
    transform: none !important;
}

.btn-pais-bandera { font-size: 2rem; line-height: 1; }
.btn-pais-copa    { font-size: 1rem; opacity: .7; }
.btn-pais-nombre  { font-size: .88rem; font-weight: 700; }
.btn-pais-pts     { font-size: .75rem; opacity: .75; margin-top: 2px; }

/* ---- EMPATE BOTÓN ---- */
.opcion-btn-empate {
    flex: 0 0 120px;
    min-width: 100px;
    padding: 12px 10px;
    border: 2px solid var(--gray2);
    border-radius: 10px;
    background: var(--white);
    cursor: pointer;
    font-size: .88rem;
    font-weight: 600;
    text-align: center;
    transition: all var(--transition);
    color: var(--text);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.opcion-btn-empate:hover { border-color: var(--accent); background: #fff8ec; }
.opcion-btn-empate.selected { border-color: var(--accent); background: var(--accent); color: #fff; }
.opcion-btn-empate.correcto { border-color: var(--success); background: var(--success); color: #fff; }
.opcion-btn-empate.incorrecto { border-color: var(--danger); background: #f8d7da; color: var(--danger); }
.opcion-btn-empate:disabled { cursor: not-allowed; opacity: .65; }

/* ---- RANKING MEJORADO ---- */
.ranking-top3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.ranking-podio-card {
    border-radius: var(--radius);
    padding: 20px 16px;
    text-align: center;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

.ranking-podio-card.gold   { background: linear-gradient(135deg,#fff9e6,#fff3c6); border: 2px solid #FFD700; }
.ranking-podio-card.silver { background: linear-gradient(135deg,#f5f5f5,#e8e8e8); border: 2px solid #C0C0C0; }
.ranking-podio-card.bronze { background: linear-gradient(135deg,#fdf3e7,#f8e6cc); border: 2px solid #CD7F32; }

.podio-medal  { font-size: 2.5rem; margin-bottom: 6px; }
.podio-nombre { font-weight: 800; font-size: 1rem; color: var(--dark); margin-bottom: 4px; }
.podio-puntos { font-size: 1.5rem; font-weight: 900; color: var(--primary); }
.podio-label  { font-size: .78rem; color: var(--gray3); text-transform: uppercase; letter-spacing: .5px; }
.podio-desglose { font-size: .78rem; color: var(--gray4); margin-top: 4px; }
.podio-premio { font-size: .85rem; font-weight: 700; color: var(--accent-d); margin-top: 6px; }

/* ---- EYE PASSWORD ---- */
.input-with-eye {
    position: relative;
}

.input-with-eye .form-control {
    padding-right: 42px;
}

.eye-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: var(--gray3);
    font-size: 1.1rem;
    padding: 4px;
    line-height: 1;
    transition: color var(--transition);
}

.eye-btn:hover { color: var(--primary); }

/* ---- PASSWORD STRENGTH ---- */
.password-strength {
    height: 4px;
    border-radius: 4px;
    background: var(--gray2);
    margin-top: 6px;
    overflow: hidden;
}

.password-strength-bar {
    height: 100%;
    border-radius: 4px;
    transition: width .3s ease, background .3s ease;
    width: 0;
}

/* ---- ADMIN GRID MEJORADO ---- */
.admin-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 28px;
}

.admin-card-link {
    background: var(--white);
    border-radius: var(--radius);
    padding: 24px 20px;
    text-align: center;
    text-decoration: none;
    display: block;
    box-shadow: var(--shadow);
    border-top: 4px solid var(--primary);
    transition: box-shadow var(--transition), transform var(--transition);
}

.admin-card-link:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
    text-decoration: none;
}

.admin-card-icon  { font-size: 2.4rem; margin-bottom: 10px; }
.admin-card-title { font-weight: 800; font-size: .98rem; color: var(--dark); }
.admin-card-desc  { font-size: .82rem; color: var(--gray3); margin-top: 4px; }

/* ---- EXCEL IMPORT ---- */
.dropzone {
    border: 3px dashed var(--gray2);
    border-radius: var(--radius);
    padding: 36px 24px;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition);
    background: var(--gray1);
}

.dropzone:hover, .dropzone.dragover {
    border-color: var(--primary);
    background: var(--primary-l);
}

.dropzone-icon { font-size: 2.5rem; margin-bottom: 10px; }
.dropzone-text { font-size: .95rem; color: var(--gray4); font-weight: 600; }
.dropzone-hint { font-size: .82rem; color: var(--gray3); margin-top: 4px; }

/* ---- PREVIEW TABLE IMPORT ---- */
#preview-table-wrapper {
    max-height: 320px;
    overflow-y: auto;
    border: 1px solid var(--gray2);
    border-radius: 8px;
}

/* ---- RESPONSIVE MEJORAS ---- */
@media (max-width: 900px) {
    .admin-grid { grid-template-columns: repeat(2, 1fr); }
    .ranking-top3 { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
    .admin-grid { grid-template-columns: 1fr 1fr; }
    .opcion-btn-pais { min-width: 100px; padding: 10px 8px; }
    .btn-pais-bandera { font-size: 1.5rem; }
}

/* ---- BANDERAS EN BOTONES DE PRONÓSTICO ---- */
.btn-pais-bandera img {
    width: 40px !important;
    height: 30px !important;
    border-radius: 4px;
    object-fit: cover;
    display: block;
    margin: 0 auto;
}

.btn-pais-bandera {
    display: block;
    text-align: center;
    margin-bottom: 2px;
    min-height: 32px;
    line-height: 1;
}

/* Banderas en tablas y texto */
.equipo-badge img {
    border-radius: 3px;
    vertical-align: middle;
    margin-right: 4px;
}

/* ---- PÓDIUM MEJORADO (empates) ---- */
.ranking-podio-card.gold   { background: linear-gradient(135deg,#fff9e6,#fff3c6); border: 2px solid #FFD700; }
.ranking-podio-card.silver { background: linear-gradient(135deg,#f5f5f5,#e8e8e8); border: 2px solid #C0C0C0; }
.ranking-podio-card.bronze { background: linear-gradient(135deg,#fdf3e7,#f8e6cc); border: 2px solid #CD7F32; }

@media (max-width: 600px) {
    .ranking-podio-card > div > div { flex-direction: column; }
}
