/* /media/hd/lotería/data/pb_public/styles.css */
:root {
  --primary: #1a237e;
  --primary-light: #3949ab;
  --accent: #00e676;
  --accent-dark: #00c853;
  --success: #2e7d32;
  --danger: #c62828;
  --warning: #fbc02d;

  /* Tonos base oscurecidos (Gris Pizarra) */
  --text: #1e293b;
  --text-muted: #475569;
  --glass-bg: rgba(226, 232, 240, 0.9);
  --glass-border: rgba(148, 163, 184, 0.6);
  --glass-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
  --header-h: 60px;
  --nav-h: 66px;
}
[data-theme="dark"] {
  --primary: #7986cb;
  --primary-light: #9fa8da;
  --accent: #00ff88;
  --accent-dark: #fdd835;
  --success: #66bb6a;
  --danger: #ef5350;
  --warning: #fdd835;
  --text: #e8eaf6;
  --text-muted: #9fa8bd;
  --glass-bg: rgba(30, 34, 60, 0.72);
  --glass-border: rgba(120, 134, 200, 0.18);
  --glass-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}
[data-theme="dark"] body {
  background:
    radial-gradient(circle at 0% 0%, rgba(0, 255, 136, 0.08), transparent 45%),
    radial-gradient(circle at 100% 100%, rgba(121, 134, 203, 0.12), transparent 45%),
    linear-gradient(135deg, #0f1226 0%, #1a1d35 100%);
  color: var(--text);
}
[data-theme="dark"] .apuesta-desc { color: #b8bcd4; }
[data-theme="dark"] .anuncio-cuerpo { color: #d6d9ec; }
[data-theme="dark"] .aviso-pago {
  background: linear-gradient(135deg, rgba(251, 192, 45, 0.15), rgba(0, 230, 118, 0.12));
  color: #fdd835;
}
[data-theme="dark"] .field input,
[data-theme="dark"] .field select,
[data-theme="dark"] .field textarea {
  background: rgba(20, 24, 45, 0.7);
  border-color: rgba(120, 134, 200, 0.25);
  color: var(--text);
}
[data-theme="dark"] .field input:focus,
[data-theme="dark"] .field select:focus,
[data-theme="dark"] .field textarea:focus {
  background: rgba(20, 24, 45, 0.95);
}
[data-theme="dark"] .modal-content {
  background: rgba(24, 28, 50, 0.96);
}
[data-theme="dark"] nav.bottom-nav {
  background: rgba(20, 24, 45, 0.92);
  border-top-color: rgba(120, 134, 200, 0.15);
}
[data-theme="dark"] .theme-toggle {
  background: rgba(255,255,255,0.12);
}
[data-theme="dark"] .login-card {
  background: rgba(24, 28, 50, 0.82);
}
[data-theme="dark"] .tabs {
  background: rgba(20, 24, 45, 0.6);
}
[data-theme="dark"] .tabs button.active {
  background: rgba(121, 134, 203, 0.25);
}
[data-theme="dark"] .filtros-bar input {
  background: rgba(20, 24, 45, 0.7);
  border-color: rgba(120, 134, 200, 0.25);
  color: var(--text);
}
[data-theme="dark"] .filtro-btn {
  background: rgba(20, 24, 45, 0.7);
  border-color: rgba(120, 134, 200, 0.25);
  color: var(--text);
}
[data-theme="dark"] .jornada-item {
  background: rgba(20, 24, 45, 0.5);
  color: var(--text);
}
[data-theme="dark"] .jornada-item.selected {
  background: rgba(121, 134, 203, 0.25);
  color: var(--primary-light);
}

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; max-width: 100%; overflow-x: hidden; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 0% 0%, rgba(0, 230, 118, 0.05), transparent 45%),
    radial-gradient(circle at 100% 100%, rgba(57, 73, 171, 0.05), transparent 45%),
    linear-gradient(135deg, #94a3b8 0%, #64748b 100%);
  background-attachment: fixed;
  overscroll-behavior-y: none;
  -webkit-font-smoothing: antialiased;
  min-height: 100dvh;
}
.hidden { display: none !important; }

/* LOGIN / REGISTRO */
.login-wrap { min-height: 100dvh; display: flex; align-items: center; justify-content: center; padding: 1rem; }
.login-card {
  background: var(--glass-bg);
  backdrop-filter: blur(20px) saturate(120%);
  -webkit-backdrop-filter: blur(20px) saturate(120%);
  border: 1px solid var(--glass-border);
  border-radius: 20px; padding: 2rem 1.5rem;
  width: 100%; max-width: 400px; box-shadow: var(--glass-shadow);
}
.login-card h1 { font-size: 1.35rem; color: var(--primary); text-align: center; letter-spacing: -0.5px; line-height: 1.25; }
.login-card .sub { text-align: center; color: var(--text-muted); font-size: 0.9rem; margin: 0.25rem 0 1.5rem; }
.field { margin-bottom: 1rem; }
.field label { display: block; font-size: 0.85rem; color: var(--text-muted); margin-bottom: 0.35rem; font-weight: 600; }
.field input, .field select, .field textarea {
  width: 100%; padding: 0.85rem 1rem;
  border: 1px solid rgba(148, 163, 184, 0.5);
  border-radius: 12px; font-size: 16px; font-family: inherit;
  background: rgba(203, 213, 225, 0.5);
  color: var(--text);
  transition: all 0.15s;
}
.field textarea { resize: vertical; min-height: 90px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent); background: #e2e8f0;
  box-shadow: 0 0 0 3px rgba(0, 230, 118, 0.15);
}
.field input:disabled, .field select:disabled, .field textarea:disabled {
  opacity: 0.5; cursor: not-allowed;
}
.btn {
  width: 100%; padding: 0.9rem; color: #fff;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  border: none; border-radius: 12px; font-size: 1rem; font-weight: 600;
  cursor: pointer; font-family: inherit;
  box-shadow: 0 4px 14px rgba(26, 35, 126, 0.25);
  transition: transform 0.1s, box-shadow 0.1s;
}
.btn:active { transform: scale(0.98); }
.btn:disabled { background: #95a5a6; box-shadow: none; }
.btn-accent {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  box-shadow: 0 4px 14px rgba(0, 200, 83, 0.3);
}
.btn-secondary {
  background: none; color: var(--primary); border: none;
  padding: 0.75rem; font-size: 0.9rem; cursor: pointer;
  font-family: inherit; width: 100%; text-align: center; font-weight: 600;
}
.error { color: var(--danger); font-size: 0.9rem; margin-top: 0.75rem; text-align: center; }
.info { color: var(--text-muted); font-size: 0.9rem; margin-top: 0.75rem; text-align: center; }
.success-box {
  background: rgba(46, 125, 50, 0.15); color: var(--success);
  padding: 1rem; border-radius: 12px; font-size: 0.9rem;
  text-align: center; margin-top: 1rem; border: 1px solid rgba(46, 125, 50, 0.3);
}

/* APP */
.app { display: none; min-height: 100dvh; padding-bottom: calc(var(--nav-h) + env(safe-area-inset-bottom)); }
.app.active { display: block; }
.app.pending nav.bottom-nav { display: none; }
.app.pending { padding-bottom: 0; }

header.app-header {
  position: sticky; top: 0; z-index: 10;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: #fff;
  min-height: var(--header-h);
  padding: 0 1rem; padding-top: env(safe-area-inset-top);
  display: flex; align-items: center; justify-content: space-between;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.4);
}
header.app-header h1.header-title {
  display: flex; align-items: center; gap: 8px; font-size: 1.35rem; line-height: 1.15; max-width: 80%;
}
header.app-header h1.header-title::before { content: none; }
.header-clover { font-size: 1.6rem; }
.header-text { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.header-text > span:first-child { font-weight: 800; letter-spacing: -0.5px; color: #ffffff; text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5); }
.header-subtitle {
  font-size: 0.85rem; font-weight: 800; color: #ffd54f;
  letter-spacing: 0.4px; margin-top: 1px; text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}
.logout-btn {
  background: rgba(255,255,255,0.15); color: #fff;
  border: 1.5px solid rgba(255,255,255,0.3);
  padding: 0.5rem 0.9rem; border-radius: 10px; font-size: 0.85rem;
  cursor: pointer; font-family: inherit; font-weight: 700;
  letter-spacing: 0.2px; box-shadow: 0 2px 8px rgba(0,0,0,0.10);
}
.logout-btn:active { background: rgba(255,255,255,0.3); transform: scale(0.97); }

main { padding: 1rem; max-width: 720px; margin: 0 auto; width: 100%; box-sizing: border-box; }
.page { display: none; }
.page.active { display: block; }

.card {
  background: var(--glass-bg);
  backdrop-filter: blur(16px) saturate(120%);
  -webkit-backdrop-filter: blur(16px) saturate(120%);
  border: 1px solid var(--glass-border);
  border-radius: 16px; padding: 1.1rem;
  box-shadow: var(--glass-shadow);
  margin-bottom: 0.85rem;
  max-width: 100%;
  box-sizing: border-box;
}
.card-title {
  font-size: 0.72rem; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.8px;
  font-weight: 700; margin-bottom: 0.4rem;
}
.card-value { font-size: 1.5rem; font-weight: 700; color: var(--primary); }

.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; margin-bottom: 0.85rem; }

/* CAJA: resumen en una línea */
.card.caja-resumen { padding: 0.7rem 0.55rem; }
.caja-linea { display: flex; align-items: stretch; justify-content: space-between; gap: 4px; width: 100%; }
.caja-bloque {
  flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 0.55rem 0.2rem; background: rgba(148, 163, 184, 0.15);
  border: 1px solid rgba(148, 163, 184, 0.25); border-radius: 12px; gap: 3px;
}
.caja-lbl {
  font-size: 0.72rem; font-weight: 800; letter-spacing: 0.4px;
  text-transform: uppercase; color: var(--primary);
  line-height: 1.1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; text-align: center;
}
.caja-val { font-size: 0.82rem; font-weight: 800; color: var(--text); line-height: 1.1; white-space: nowrap; }
.caja-op {
  flex: 0 0 auto; display: flex; align-items: center; justify-content: center;
  font-size: 1.35rem; font-weight: 900; padding: 0 1px; min-width: 14px; line-height: 1; color: var(--text-muted);
}
.caja-linea > .caja-op:nth-child(2) { color: #ef4444; }
.caja-linea > .caja-op:nth-child(4) { color: #22c55e; }
.caja-linea > .caja-op:nth-child(6) { color: #64748b; }
.caja-linea > .caja-bloque:last-child.saldo-positivo .caja-lbl,
.caja-linea > .caja-bloque:last-child.saldo-positivo .caja-val { color: #22c55e; }
.caja-linea > .caja-bloque:last-child.saldo-negativo .caja-lbl,
.caja-linea > .caja-bloque:last-child.saldo-negativo .caja-val { color: #ef4444; }
[data-theme="dark"] .caja-linea > .caja-op:nth-child(2) { color: #f87171; }
[data-theme="dark"] .caja-linea > .caja-op:nth-child(4) { color: #4ade80; }
[data-theme="dark"] .caja-linea > .caja-bloque:last-child.saldo-positivo .caja-lbl,
[data-theme="dark"] .caja-linea > .caja-bloque:last-child.saldo-positivo .caja-val { color: #4ade80; }
[data-theme="dark"] .caja-linea > .caja-bloque:last-child.saldo-negativo .caja-lbl,
[data-theme="dark"] .caja-linea > .caja-bloque:last-child.saldo-negativo .caja-val { color: #f87171; }
@media (max-width: 400px) {
  .card.caja-resumen { padding: 0.6rem 0.45rem; }
  .caja-lbl { font-size: 0.62rem; letter-spacing: 0.2px; }
  .caja-val { font-size: 0.72rem; }
  .caja-op { font-size: 1.15rem; min-width: 12px; }
  .caja-bloque { padding: 0.45rem 0.15rem; }
}

/* SALDO CARD */
.saldo-card {
  background: linear-gradient(135deg, rgba(26, 35, 126, 0.95) 0%, rgba(57, 73, 171, 0.95) 100%);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  color: #fff; border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.4);
  position: relative; overflow: hidden;
}
.saldo-card::after { content: "✨"; position: absolute; bottom: -20px; right: -10px; font-size: 6rem; opacity: 0.10; pointer-events: none; transform: rotate(-15deg); }
.saldo-card::before { content: "✨"; position: absolute; top: 8px; left: 8px; font-size: 2rem; opacity: 0.08; pointer-events: none; }
.saldo-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; position: relative; z-index: 1; }
.saldo-card .card-title { color: rgba(255, 255, 255, 0.7); }
.saldo-grande {
  font-size: 2.4rem; font-weight: 800; color: var(--accent);
  letter-spacing: -1px; line-height: 1; text-shadow: 0 2px 12px rgba(0, 230, 118, 0.4);
}
.saldo-socios { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.saldo-socios-num { font-size: 2rem; font-weight: 800; color: #fff; line-height: 1; letter-spacing: -1px; }
.saldo-socios-lbl { font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.8px; color: rgba(255, 255, 255, 0.65); font-weight: 600; }
.saldo-desglose {
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0.5rem;
  margin-top: 0.85rem; padding-top: 0.85rem; border-top: 1px solid rgba(255, 255, 255, 0.15); position: relative; z-index: 1;
}
.saldo-desglose > div { display: flex; flex-direction: column; gap: 2px; }
.saldo-desglose > div:nth-child(1) { align-items: flex-start; text-align: left; }
.saldo-desglose > div:nth-child(2) { align-items: center; text-align: center; }
.saldo-desglose > div:nth-child(3) { align-items: flex-end; text-align: right; }
.saldo-desglose .label { font-size: 0.68rem; color: rgba(255, 255, 255, 0.65); text-transform: uppercase; letter-spacing: 0.5px; font-weight: 500; }
.saldo-desglose .value { font-size: 1rem; font-weight: 700; color: #fff; }
.saldo-desglose .value.positivo { color: #7ee787; }
.saldo-desglose .value.negativo { color: #ff8a8a; }

.section-header { display: flex; justify-content: space-between; align-items: center; margin: 1.25rem 0 0.6rem; }
.section-title { font-size: 1rem; font-weight: 700; color: var(--primary); display: flex; align-items: center; gap: 6px; }
.sub-title { font-size: 0.9rem; font-weight: 700; color: var(--primary); margin: 1.25rem 0 0.5rem; }

.aviso-pago {
  background: linear-gradient(135deg, rgba(251, 192, 45, 0.2), rgba(0, 230, 118, 0.15));
  border-left: 4px solid var(--warning);
  padding: 1rem; border-radius: 12px; margin-bottom: 1rem;
  color: #6d5600; font-size: 0.9rem; font-weight: 600;
  max-width: 100%; box-sizing: border-box;
}

/* WELCOME BAR */
.welcome-bar { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; margin-bottom: 1rem; max-width: 100%; box-sizing: border-box; }
.welcome-hola { font-size: 0.95rem; color: var(--text-muted); font-weight: 500; }
.welcome-nombre {
  font-size: 1.15rem; font-weight: 800; letter-spacing: -0.3px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent-dark) 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  color: var(--primary); text-shadow: 0 1px 2px rgba(0, 230, 118, 0.15);
}
[data-theme="dark"] .welcome-nombre {
  background: linear-gradient(135deg, var(--accent) 0%, #7ee787 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}

/* TABS */
.tabs {
  display: flex; background: rgba(148, 163, 184, 0.2);
  border-radius: 12px; padding: 4px; margin-bottom: 0.75rem;
  border: 1px solid rgba(148, 163, 184, 0.3);
}
.tabs button {
  flex: 1; background: none; border: none; padding: 0.6rem 0.5rem;
  border-radius: 9px; font-family: inherit; font-size: 0.8rem;
  font-weight: 600; color: var(--text-muted); cursor: pointer;
  transition: all 0.15s;
}
.tabs button.active {
  background: rgba(26, 35, 126, 0.15); color: var(--primary);
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* FILTROS BAR */
.filtros-bar { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; margin-bottom: 0.75rem; }
.filtros-bar input {
  width: 100%; padding: 0.65rem 0.8rem;
  border: 1px solid rgba(148, 163, 184, 0.4); border-radius: 10px;
  font-size: 14px; font-family: inherit; background: rgba(203, 213, 225, 0.5); color: var(--text);
}
.filtros-bar input:focus { outline: none; border-color: var(--accent); }
.filtros-bar .full { grid-column: 1 / -1; }

/* BOTÓN CUSTOM JORNADA */
.filtro-btn {
  width: 100%; padding: 0.65rem 0.9rem;
  border: 1px solid rgba(148, 163, 184, 0.4); border-radius: 10px;
  font-size: 14px; font-family: inherit; background: rgba(203, 213, 225, 0.5);
  color: var(--text); display: flex; justify-content: space-between; align-items: center;
  gap: 0.4rem; cursor: pointer; text-align: left;
}
.filtro-btn:active { transform: scale(0.99); }
.filtro-btn span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; min-width: 0; }
.filtro-btn svg { width: 14px; height: 14px; flex-shrink: 0; opacity: 0.6; }

/* LISTA DE JORNADAS EN MODAL */
.jornada-lista { max-height: 50vh; overflow-y: auto; display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: 1rem; }
.jornada-item {
  padding: 0.85rem 1rem; background: rgba(203, 213, 225, 0.6);
  border: 1px solid rgba(148, 163, 184, 0.3); border-radius: 12px;
  cursor: pointer; display: flex; justify-content: space-between; align-items: center;
  gap: 0.5rem; font-size: 0.9rem; font-weight: 500; color: var(--text);
  font-family: inherit; text-align: left; transition: all 0.15s;
}
.jornada-item:active { transform: scale(0.99); }
.jornada-item.selected {
  background: rgba(26, 35, 126, 0.15); border-color: rgba(26, 35, 126, 0.3);
  color: var(--primary); font-weight: 700;
}
.jornada-item .check { color: var(--accent-dark); font-weight: 800; font-size: 1rem; }

/* TABLON DE ANUNCIOS */
.anuncio {
  background: var(--glass-bg);
  backdrop-filter: blur(16px) saturate(120%);
  -webkit-backdrop-filter: blur(16px) saturate(120%);
  border: 1px solid var(--glass-border);
  border-radius: 16px; padding: 1.1rem;
  box-shadow: var(--glass-shadow); margin-bottom: 0.65rem; position: relative;
  /* FIX DESBORDAMIENTO HORIZONTAL */
  max-width: 100%;
  box-sizing: border-box;
  overflow-x: hidden;
}
.anuncio.pinned { border-left: 4px solid var(--accent); }
.anuncio-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 0.5rem; margin-bottom: 0.4rem; }
.anuncio-titulo { font-weight: 700; font-size: 0.98rem; color: var(--primary); display: flex; align-items: center; gap: 6px; }
.anuncio-titulo .pin { color: var(--accent); font-size: 0.85rem; }
.anuncio-acciones { display: flex; gap: 4px; flex-shrink: 0; }
.anuncio-acciones button {
  background: rgba(26, 35, 126, 0.1); border: none;
  color: var(--primary); width: 28px; height: 28px;
  border-radius: 8px; cursor: pointer; font-size: 0.85rem;
  display: flex; align-items: center; justify-content: center;
}
.anuncio-acciones button.danger { color: var(--danger); background: rgba(198, 40, 40, 0.1); }

/* FIX DESBORDAMIENTO EN EL TEXTO */
.anuncio-cuerpo { 
  font-size: 0.9rem; color: #334155; line-height: 1.5; 
  white-space: pre-wrap; 
  word-break: break-word; 
  overflow-wrap: break-word; 
  width: 100%; 
  max-width: 100%; 
  box-sizing: border-box; 
}

.anuncio-meta { font-size: 0.72rem; color: var(--text-muted); margin-top: 0.6rem; display: flex; gap: 8px; align-items: center; }
.anuncio-meta::before { content: "✍️"; }

/* APUESTAS */
.apuesta {
  background: var(--glass-bg);
  backdrop-filter: blur(16px) saturate(120%);
  -webkit-backdrop-filter: blur(16px) saturate(120%);
  border: 1px solid var(--glass-border);
  border-radius: 16px; padding: 1rem;
  box-shadow: var(--glass-shadow); margin-bottom: 0.75rem;
  border-left: 4px solid var(--accent);
  max-width: 100%;
  box-sizing: border-box;
  overflow-x: hidden;
}
.apuesta-top { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 0.75rem; }
.apuesta-top .apuesta-logo-mini { flex: 0 0 auto; }
.apuesta-top .apuesta-titulo-texto {
  flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column;
  gap: 4px; justify-content: center;
}
.apuesta-top .apuesta-juego { font-weight: 700; color: var(--primary); font-size: 1rem; }
.apuesta-top .apuesta-fecha-destacada { align-self: flex-start; margin-top: 0; }
.apuesta-top .apuesta-importes { flex: 0 0 auto; margin-left: auto; }

.apuesta-bottom { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin-bottom: 0.75rem; }
.apuesta-bottom .apuesta-fotos { flex: 1 1 auto; min-width: 0; margin: 0; }
.apuesta-pills {
  flex: 0 0 auto; display: flex; flex-wrap: wrap; gap: 8px;
  margin-left: auto; align-items: center; justify-content: flex-end;
}
.apuesta-bottom:empty, .apuesta-bottom > *:only-child.apuesta-pills { margin-left: auto; }

.apuesta-logo-mini {
  width: 60px; height: 60px; display: flex; align-items: center; justify-content: center;
  background: rgba(203, 213, 225, 0.6); border: 1px solid var(--glass-border);
  border-radius: 12px; padding: 5px; overflow: hidden;
}
.apuesta-logo-mini img { max-width: 100%; max-height: 100%; object-fit: contain; display: block; }
.apuesta-logo-mini .placeholder { font-size: 1.8rem; opacity: 0.55; }
[data-theme="dark"] .apuesta-logo-mini { background: rgba(255, 255, 255, 0.95); }

.apuesta-importes { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex-shrink: 0; }
.apuesta-importes .cifra { display: flex; align-items: baseline; gap: 4px; white-space: nowrap; }
.apuesta-importes .cifra .lbl { font-size: 0.68rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; font-weight: 600; }
.apuesta-importes .cifra .val {
  font-weight: 800; font-size: 1.05rem; letter-spacing: -0.3px;
  background: rgba(255, 235, 59, 0.55); padding: 0 5px; border-radius: 4px; display: inline-block;
}
.apuesta-importes .cifra.jugado .val { color: var(--primary); }
.apuesta-importes .cifra.premio .val { color: var(--success); }
[data-theme="dark"] .apuesta-importes .cifra .val { background: rgba(255, 235, 59, 0.35); }
[data-theme="dark"] .apuesta-importes .cifra.jugado .val { color: var(--primary-light); }
[data-theme="dark"] .apuesta-importes .cifra.premio .val { color: var(--success); }

.apuesta-actions { display: flex; gap: 0.5rem; margin-top: 0.75rem; }
.apuesta-actions button {
  flex: 1; padding: 0.55rem 0.9rem; border-radius: 10px; border: none;
  font-size: 0.82rem; cursor: pointer; font-family: inherit; font-weight: 600;
}
.apuesta-actions .btn-edit { background: var(--primary); color: #fff; box-shadow: 0 2px 8px rgba(26, 35, 126, 0.25); }
.apuesta-actions .btn-edit:active { transform: scale(0.98); box-shadow: 0 1px 4px rgba(26, 35, 126, 0.3); }
.apuesta-actions .btn-delete { background: rgba(198, 40, 40, 0.15); color: var(--danger); }
.apuesta-actions .btn-icon { flex: 0 0 auto; padding: 0.55rem 0.7rem; font-size: 0.95rem; }
.apuesta-actions .btn-result { background: var(--accent); color: #fff; box-shadow: 0 2px 8px rgba(0, 200, 83, 0.3); }
.apuesta-actions .btn-result:active { transform: scale(0.98); box-shadow: 0 1px 4px rgba(0, 200, 83, 0.4); }

.apuesta-fecha-destacada {
  display: inline-block; margin-top: 0.35rem; padding: 0.28rem 0.7rem;
  background: linear-gradient(135deg, #00e676 0%, #00c853 100%);
  color: #fff; font-weight: 800; font-size: 0.78rem;
  border-radius: 999px; letter-spacing: 0.3px; box-shadow: 0 2px 8px rgba(0, 200, 83, 0.35);
}

/* Píldoras-icono con fondo fosforito */
.pill-icono { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; font-size: 1.15rem; line-height: 1; font-weight: 900; user-select: none; }
.pill-premio-icono { background: #00e676; border: 2px solid #00ff88; box-shadow: 0 0 14px rgba(0, 230, 118, 0.95), 0 0 6px rgba(0, 230, 118, 0.85), inset 0 0 4px rgba(255, 255, 255, 0.6); text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15); }
.pill-ajustada-icono { background: #ffeb3b; border: 2px solid #ffff00; box-shadow: 0 0 14px rgba(255, 235, 59, 0.98), 0 0 6px rgba(255, 235, 59, 0.85), inset 0 0 4px rgba(255, 255, 255, 0.7); text-shadow: 0 1px 2px rgba(0, 0, 0, 0.12); }
[data-theme="dark"] .pill-premio-icono { background: #00ff88; border-color: #7dffb8; }
[data-theme="dark"] .pill-ajustada-icono { background: #ffee58; border-color: #ffff8d; }

.badge { display: inline-block; padding: 0.22rem 0.65rem; border-radius: 999px; font-size: 0.72rem; font-weight: 600; }
.badge-jugada { background: rgba(41, 128, 185, 0.15); color: #2980b9; }
.badge-pendiente { background: rgba(251, 192, 45, 0.15); color: #8a6d00; }
.badge-premio { background: rgba(46, 125, 50, 0.15); color: var(--success); }
.badge-sin { background: rgba(127, 140, 141, 0.15); color: #64748b; }
.badge-verificado { background: rgba(46, 125, 50, 0.15); color: var(--success); }
.badge-no-verificado { background: rgba(251, 192, 45, 0.15); color: #8a6d00; }
.badge-baja { background: rgba(198, 40, 40, 0.15); color: var(--danger); }
.badge-editable { background: rgba(0, 230, 118, 0.18); color: var(--accent-dark); font-weight: 700; }
[data-theme="dark"] .badge-editable { background: rgba(0, 255, 136, 0.2); color: var(--accent); }

.apuesta-fotos { display: flex; gap: 0.5rem; margin-top: 0.75rem; overflow-x: auto; padding-bottom: 0.25rem; }
.apuesta-fotos img { width: 84px; height: 84px; object-fit: cover; border-radius: 10px; border: 1px solid var(--glass-border); cursor: pointer; flex-shrink: 0; }
.apuesta-editada { font-size: 0.72rem; color: var(--text-muted); margin-top: 0.6rem; padding: 0.35rem 0.6rem; background: rgba(0, 230, 118, 0.1); border-left: 3px solid var(--accent); border-radius: 6px; line-height: 1.4; }
.apuesta-editada strong { color: var(--primary); font-weight: 700; }
[data-theme="dark"] .apuesta-editada { background: rgba(0, 255, 136, 0.12); }
[data-theme="dark"] .apuesta-editada strong { color: var(--primary-light); }

.empty { text-align: center; padding: 1.75rem 1rem; color: var(--text-muted); font-size: 0.9rem; }

/* LISTAS */
.list-item {
  background: var(--glass-bg);
  backdrop-filter: blur(16px) saturate(120%);
  -webkit-backdrop-filter: blur(16px) saturate(120%);
  border: 1px solid var(--glass-border);
  border-radius: 14px; padding: 0.85rem 1rem;
  box-shadow: var(--glass-shadow); margin-bottom: 0.5rem;
  display: flex; justify-content: space-between; align-items: center; gap: 0.75rem;
  max-width: 100%; box-sizing: border-box;
}
.list-item.ingreso { border-left: 4px solid var(--success); }
.list-item.gasto { border-left: 4px solid var(--danger); }
.list-item.premio { border-left: 4px solid var(--accent); }
.list-item-info { flex: 1; min-width: 0; }
.list-item-title { font-weight: 600; font-size: 0.95rem; color: var(--primary); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list-item-sub { font-size: 0.8rem; color: var(--text-muted); margin-top: 0.15rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list-item-amount { font-weight: 700; font-size: 1rem; white-space: nowrap; }
.list-item-amount.ingreso { color: var(--success); }
.list-item-amount.gasto { color: var(--danger); }
.list-item-amount.premio { color: var(--accent-dark); }

/* SOCIOS */
.socio-card {
  background: var(--glass-bg); backdrop-filter: blur(16px) saturate(120%);
  -webkit-backdrop-filter: blur(16px) saturate(120%);
  border: 1px solid var(--glass-border); border-radius: 14px; padding: 0.85rem 1rem;
  box-shadow: var(--glass-shadow); margin-bottom: 0.5rem;
  display: flex; flex-direction: column; gap: 0.6rem;
  max-width: 100%; box-sizing: border-box;
}
.socio-card.pendiente { border-left: 4px solid var(--warning); }
.socio-card.activo { border-left: 4px solid var(--success); }
.socio-card.baja { border-left: 4px solid var(--danger); }
.socio-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 0.5rem; }
.socio-nombre { font-weight: 700; font-size: 0.95rem; color: var(--primary); }
.socio-username { font-size: 0.8rem; color: var(--text-muted); margin-top: 0.1rem; }
.socio-badges { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.socio-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.btn-small { padding: 0.55rem 0.9rem; border-radius: 10px; border: none; font-size: 0.85rem; cursor: pointer; font-family: inherit; font-weight: 600; flex: 1; min-width: 100px; }
.btn-small:active { transform: scale(0.98); }
.btn-aprobar { background: var(--success); color: #fff; }
.btn-baja { background: var(--danger); color: #fff; }
.btn-reactivar { background: var(--primary-light); color: #fff; }

/* MODAL */
.modal {
  position: fixed; inset: 0; background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  z-index: 95; display: none; align-items: flex-start; justify-content: center;
  padding: 1rem; overflow-y: auto;
}
.modal.active { display: flex; }
.modal-content {
  background: rgba(226, 232, 240, 0.98);
  backdrop-filter: blur(20px) saturate(120%);
  -webkit-backdrop-filter: blur(20px) saturate(120%);
  border: 1px solid var(--glass-border); border-radius: 20px; padding: 1.5rem;
  width: 100%; max-width: 500px; margin: auto;
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.4);
}
.modal-content h3 { font-size: 1.15rem; color: var(--primary); margin-bottom: 1rem; text-align: center; font-weight: 700; }

/* FOTOS */
.fotos-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5rem; margin-top: 0.5rem; }
.foto-thumb {
  position: relative; aspect-ratio: 1;
  background: rgba(148, 163, 184, 0.2); border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; border: 1px solid var(--glass-border);
}
.foto-thumb img { width: 100%; height: 100%; object-fit: cover; }
.foto-thumb .remove {
  position: absolute; top: 4px; right: 4px;
  background: rgba(15, 23, 42, 0.7); color: #fff; border: none;
  width: 24px; height: 24px; border-radius: 50%;
  font-size: 14px; cursor: pointer; line-height: 1;
}
.foto-add {
  aspect-ratio: 1; border: 2px dashed rgba(148, 163, 184, 0.6); border-radius: 12px;
  background: none; cursor: pointer; color: var(--text-muted);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-size: 0.75rem; gap: 4px; font-family: inherit;
}
.foto-add svg { width: 24px; height: 24px; }
.foto-add:active { background: rgba(148, 163, 184, 0.2); }

/* FIX CONTENCIÓN SCROLL BOX */
.scroll-box {
  max-height: 340px; overflow-y: auto; padding-right: 4px;
  scrollbar-width: thin; scrollbar-color: rgba(26, 35, 126, 0.25) transparent;
  overflow-x: hidden; 
  max-width: 100%;
}
.scroll-box::-webkit-scrollbar { width: 6px; }
.scroll-box::-webkit-scrollbar-thumb { background: rgba(26, 35, 126, 0.25); border-radius: 3px; }
[data-theme="dark"] .scroll-box { scrollbar-color: rgba(159, 168, 218, 0.3) transparent; }
[data-theme="dark"] .scroll-box::-webkit-scrollbar-thumb { background: rgba(159, 168, 218, 0.3); }

/* RESUMEN DE APUESTAS */
.apuestas-resumen { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0.5rem; }
.apuestas-resumen > div {
  text-align: center; padding: 0.75rem 0.4rem;
  background: rgba(148, 163, 184, 0.15); border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.25);
}
[data-theme="dark"] .apuestas-resumen > div { background: rgba(121, 134, 203, 0.1); border-color: rgba(121, 134, 203, 0.15); }
.apuestas-resumen .num { font-size: 1.4rem; font-weight: 800; color: var(--primary); line-height: 1.1; }
.apuestas-resumen .num.verde { color: var(--success); }
.apuestas-resumen .num.rojo { color: var(--danger); }
.apuestas-resumen .num.naranja { color: var(--warning); }
.apuestas-resumen .lbl { font-size: 0.7rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; font-weight: 600; margin-top: 0.15rem; }
.apuestas-resumen > div.clickable { cursor: pointer; transition: all 0.15s; position: relative; }
.apuestas-resumen > div.clickable::after { content: ""; position: absolute; inset: 0; border-radius: 12px; border: 2px solid transparent; transition: border-color 0.15s; pointer-events: none; }
.apuestas-resumen > div.clickable:hover::after { border-color: var(--warning); }
.apuestas-resumen > div.clickable:active { transform: scale(0.97); }

/* BOTTOM NAV */
nav.bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 20;
  background: rgba(226, 232, 240, 0.95);
  backdrop-filter: blur(20px) saturate(120%);
  -webkit-backdrop-filter: blur(20px) saturate(120%);
  border-top: 1px solid var(--glass-border);
  display: flex; justify-content: space-around; align-items: center;
  height: calc(var(--nav-h) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  box-shadow: 0 -4px 20px rgba(15, 23, 42, 0.1);
}
nav.bottom-nav button {
  flex: 1; background: none; border: none; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 3px; padding: 0.5rem 0.25rem; font-family: inherit;
  color: var(--text-muted); font-size: 0.68rem; min-height: 48px;
  font-weight: 500; transition: color 0.15s; position: relative;
}
nav.bottom-nav button svg { width: 22px; height: 22px; transition: transform 0.15s; }
nav.bottom-nav button.active { color: var(--primary); font-weight: 800; }
nav.bottom-nav button.active::before { content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 32px; height: 3px; background: var(--accent); border-radius: 0 0 3px 3px; }
nav.bottom-nav button.active svg { color: #00e676; filter: drop-shadow(0 0 6px rgba(0, 230, 118, 0.85)); transform: scale(1.15); }
[data-theme="dark"] nav.bottom-nav button.active svg { color: #00ff88; filter: drop-shadow(0 0 8px rgba(0, 255, 136, 0.9)); }

/* LIGHTBOX */
.lightbox { position: fixed; inset: 0; background: rgba(0,0,0,0.94); z-index: 100; display: none; align-items: center; justify-content: center; padding: 1rem; }
.lightbox.active { display: flex; }
.lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; }

/* TOAST */
.toast {
  position: fixed; bottom: calc(var(--nav-h) + 20px); left: 50%; transform: translateX(-50%); z-index: 90;
  background: rgba(26, 35, 126, 0.95); backdrop-filter: blur(12px); color: #fff; padding: 0.75rem 1.25rem;
  border-radius: 12px; font-size: 0.9rem; font-weight: 500; box-shadow: 0 8px 24px rgba(15, 23, 42, 0.4);
  opacity: 0; transition: opacity 0.2s; pointer-events: none; max-width: 90%;
}
.toast.visible { opacity: 1; }
.toast.error { background: rgba(198, 40, 40, 0.95); box-shadow: 0 8px 24px rgba(198, 40, 40, 0.4); }
.toast.success { background: rgba(46, 125, 50, 0.95); box-shadow: 0 8px 24px rgba(46, 125, 50, 0.4); }

/* MODAL NUEVO CURSO */
#nc-confirmacion { text-transform: uppercase; font-weight: 700; letter-spacing: 2px; text-align: center; }
#nc-ejecutar:disabled { background: #94a3b8 !important; box-shadow: none !important; cursor: not-allowed; }

/* ADMIN - BOTONES */
.admin-botones { display: grid; grid-template-columns: 1fr 1fr; gap: 0.65rem; margin-bottom: 1.5rem; }
.admin-botones-izq { display: flex; flex-direction: column; gap: 0.5rem; }
.admin-btn-peq { flex: 1; padding: 0.7rem 0.85rem; font-size: 0.82rem; font-weight: 600; }
.admin-btn-grande {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 0.4rem; font-size: 1.05rem; font-weight: 700; height: 100%; min-height: 160px;
  letter-spacing: 0.3px; background: linear-gradient(135deg, #2e7d32 0%, #388e3c 100%);
  color: #fff; border: none; border-radius: 12px; cursor: pointer; font-family: inherit;
  box-shadow: 0 4px 14px rgba(46, 125, 50, 0.35); transition: transform 0.1s, box-shadow 0.1s;
}
.admin-btn-grande:active { transform: scale(0.98); box-shadow: 0 2px 8px rgba(46, 125, 50, 0.4); }

/* ADMIN - SECCIONES */
.admin-section { margin-bottom: 1.5rem; }
.admin-section-title {
  font-size: 0.9rem; font-weight: 700; color: var(--primary); margin-bottom: 0.6rem;
  padding-bottom: 0.4rem; border-bottom: 2px solid rgba(26, 35, 126, 0.15);
  display: flex; align-items: center; gap: 8px;
}
.admin-section-title::before { content: ""; display: inline-block; width: 4px; height: 14px; background: var(--accent); border-radius: 2px; }
[data-theme="dark"] .admin-section-title { border-bottom-color: rgba(121, 134, 203, 0.2); }

/* ADMIN - SOCIO EN UNA LÍNEA */
.socio-linea {
  background: var(--glass-bg); backdrop-filter: blur(16px) saturate(120%);
  -webkit-backdrop-filter: blur(16px) saturate(120%);
  border: 1px solid var(--glass-border); border-radius: 12px; padding: 0.65rem 0.85rem;
  box-shadow: var(--glass-shadow); margin-bottom: 0.4rem;
  display: flex; align-items: center; gap: 0.6rem;
  max-width: 100%; box-sizing: border-box;
}
.socio-linea.pendiente { border-left: 4px solid var(--warning); }
.socio-linea.activo { border-left: 4px solid var(--success); }
.socio-linea.baja { border-left: 4px solid var(--danger); }
.socio-linea .acciones-compactas { display: flex; gap: 0.35rem; flex-shrink: 0; order: 1; }
.socio-linea .info-compacta { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; order: 2; }
.socio-linea .nombre-compacto { font-weight: 600; font-size: 0.92rem; color: var(--primary); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.socio-linea .meta-compacta { font-size: 0.72rem; color: var(--text-muted); display: flex; justify-content: space-between; align-items: center; gap: 6px; }
.socio-linea .meta-username { flex: 0 1 auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.socio-linea .meta-badges { display: flex; gap: 4px; flex-shrink: 0; }
.btn-mini { padding: 0.42rem 0.7rem; font-size: 0.75rem; font-weight: 600; border: none; border-radius: 8px; cursor: pointer; font-family: inherit; transition: transform 0.1s; }
.btn-mini:active { transform: scale(0.96); }
.btn-mini:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-mini.btn-aprobar { background: var(--success); color: #fff; }
.btn-mini.btn-baja { background: rgba(198, 40, 40, 0.15); color: var(--danger); font-size: 0.9rem; padding: 0.42rem 0.55rem; }
.btn-mini.btn-reactivar { background: var(--primary-light); color: #fff; }

/* TÍTULO CON NÚMERO DESTACADO */
.apuestas-titulo { display: flex; align-items: baseline; gap: 8px; margin-bottom: 0.75rem; padding-bottom: 0.5rem; border-bottom: 1px solid rgba(148, 163, 184, 0.3); }
[data-theme="dark"] .apuestas-titulo { border-bottom-color: rgba(121, 134, 203, 0.15); }
.apuestas-titulo-num { font-size: 1.7rem; font-weight: 800; color: var(--primary); letter-spacing: -0.5px; line-height: 1; }
.apuestas-titulo-texto { font-size: 0.78rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.8px; font-weight: 600; }

/* ADJUNTOS EN LA TERTULIA */
.anuncio-adjuntos { display: flex; gap: 0.5rem; margin-top: 0.75rem; overflow-x: auto; padding-bottom: 0.25rem; }
.anuncio-adjuntos img { width: 110px; height: 110px; object-fit: cover; border-radius: 10px; border: 1px solid var(--glass-border); cursor: pointer; flex-shrink: 0; }
.anuncio-adjuntos video { width: 180px; max-height: 96px; border-radius: 10px; border: 1px solid var(--glass-border); flex-shrink: 0; background: #000; }
.anuncio-adjuntos .adjunto-doc {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 4px; min-width: 110px; min-height: 110px; padding: 0.6rem 0.9rem;
  background: rgba(148, 163, 184, 0.2); border: 1px solid var(--glass-border);
  border-radius: 10px; cursor: pointer; text-decoration: none; color: var(--primary);
  flex-shrink: 0; font-size: 0.72rem; font-weight: 600; text-align: center; word-break: break-word;
}
.anuncio-adjuntos .adjunto-doc .icon { font-size: 2rem; line-height: 1; }
.anuncio-adjuntos .adjunto-doc:hover { background: rgba(148, 163, 184, 0.4); }
[data-theme="dark"] .anuncio-adjuntos .adjunto-doc { background: rgba(121, 134, 203, 0.12); color: var(--primary-light); }

.foto-thumb video { width: 100%; height: 100%; object-fit: cover; }
.foto-thumb .doc-icon { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; font-size: 2.5rem; background: rgba(148, 163, 184, 0.2); color: var(--primary); }
.adjunto-doc {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 4px; width: 84px; height: 84px; padding: 0.5rem;
  background: rgba(148, 163, 184, 0.2); border: 1px solid var(--glass-border);
  border-radius: 10px; cursor: pointer; font-family: inherit; color: var(--primary);
  flex-shrink: 0; transition: background 0.15s, transform 0.1s;
}
.adjunto-doc:active { transform: scale(0.97); }
.adjunto-doc:hover { background: rgba(148, 163, 184, 0.4); }
.adjunto-doc .icon { font-size: 2.2rem; line-height: 1; }
.adjunto-doc .etiqueta { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; }
[data-theme="dark"] .adjunto-doc { background: rgba(121, 134, 203, 0.12); color: var(--primary-light); }

/* VISOR MODAL */
.visor-modal { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.94); z-index: 200; display: none; align-items: center; justify-content: center; padding: 1rem; }
.visor-modal.active { display: flex; }
.visor-contenido { max-width: 100%; max-height: 100%; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
.visor-contenido img, .visor-contenido video { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 8px; }
.visor-contenido iframe { width: 100%; height: 100%; border: none; border-radius: 8px; background: #fff; }
.visor-cerrar {
  position: fixed; top: calc(env(safe-area-inset-top) + 1rem); right: 1rem;
  width: 44px; height: 44px; border-radius: 50%; background: rgba(255, 255, 255, 0.2);
  color: #fff; border: none; font-size: 1.4rem; cursor: pointer; z-index: 201;
  display: flex; align-items: center; justify-content: center; font-family: inherit;
}
.visor-cerrar:active { background: rgba(255, 255, 255, 0.4); }

/* AQUÍ ESTÁ EL ARREGLO DEL COLOR DE LOS TÍTULOS */
.page-title {
  color: #047857 !important;
  text-shadow: none;
  font-size: 1.5rem !important;
}
[data-theme="dark"] .page-title {
  color: #00ff88 !important;
  text-shadow: 0 0 10px rgba(0, 255, 136, 0.55);
  font-size: 1.5rem !important;
}

#push-toggle.activo { color: #00e676; text-shadow: 0 0 8px rgba(0, 230, 118, 0.6); }

.push-eventos { display: flex; flex-direction: column; gap: 0.6rem; margin-bottom: 1.25rem; }
.push-evento-row {
  display: flex; align-items: center; gap: 0.75rem; padding: 0.75rem 0.9rem;
  border-radius: 12px; background: rgba(148, 163, 184, 0.2);
  font-size: 0.9rem; cursor: pointer; user-select: none;
  max-width: 100%; box-sizing: border-box;
}
.push-evento-row input[type="checkbox"] { width: 20px; height: 20px; accent-color: #1a237e; cursor: pointer; flex: none; }

#verificar-screen .login-card { padding: 2rem 1.5rem; }
#verificar-screen h2 { margin: 0 0 0.75rem; }

#eliminar-socio-confirmacion { text-transform: uppercase; font-weight: 700; letter-spacing: 2px; text-align: center; }
#eliminar-socio-ejecutar:disabled { background: #94a3b8 !important; box-shadow: none !important; cursor: not-allowed; }

.btn-accent { color: #1a237e; }
.apuesta-actions .btn-result { color: #1a237e; }
.admin-btn-peq[style*="linear-gradient"] { color: #1a237e; }

.field-password { position: relative; display: block; }
.field-password input { padding-right: 46px; }
.toggle-pass {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  background: none; border: none; padding: 6px 8px; cursor: pointer;
  font-size: 1.1rem; line-height: 1; opacity: 0.55;
  transition: opacity 0.15s; border-radius: 8px; font-family: inherit;
}
.toggle-pass:hover, .toggle-pass:focus { opacity: 1; }
.toggle-pass:active { transform: translateY(-50%) scale(0.92); }
.toggle-pass.activo { opacity: 1; filter: drop-shadow(0 0 4px rgba(0, 230, 118, 0.5)); }

.saldo-por-socio {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 0.85rem; padding-top: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15); position: relative; z-index: 1;
}
.saldo-por-socio .label { font-size: 0.78rem; color: rgba(255, 255, 255, 0.78); font-weight: 600; letter-spacing: 0.3px; }
.saldo-por-socio .value { font-size: 1.15rem; font-weight: 800; color: #7ee787; letter-spacing: -0.3px; text-shadow: 0 1px 6px rgba(126, 231, 135, 0.35); }

#baja-modal label input[type="checkbox"] { cursor: pointer; flex: none; }
#baja-modal input[type="checkbox"]:checked ~ span { color: #00c853; }

.menu-wrapper { position: relative; }
.menu-btn {
  background: rgba(255,255,255,0.18); color: #fff;
  border: 1.5px solid rgba(255,255,255,0.35); width: 40px; height: 40px;
  border-radius: 10px; font-size: 1.25rem; cursor: pointer; font-family: inherit; line-height: 1;
  display: flex; align-items: center; justify-content: center; transition: background 0.15s;
}
.menu-btn:active { background: rgba(255,255,255,0.32); }
.menu-btn[aria-expanded="true"] { background: rgba(255,255,255,0.32); border-color: rgba(255,255,255,0.55); }
.menu-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  padding: 0.5rem 0;
  z-index: 100;
  min-width: 240px;
  display: none;
}
.menu-dropdown.open { display: block; }
.menu-item {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 0.75rem 0.9rem; background: none; border: none; border-radius: 10px;
  color: var(--text); font-family: inherit; font-size: 0.9rem; font-weight: 500;
  cursor: pointer; text-align: left; transition: background 0.15s;
}
.menu-item:hover, .menu-item:active { background: rgba(148, 163, 184, 0.2); }
.menu-item .menu-icon { flex: none; width: 24px; text-align: center; font-size: 1.05rem; }
.menu-item .menu-label { flex: 1; white-space: nowrap; }
.menu-item.danger { color: var(--danger); }
.menu-item.danger:hover { background: rgba(198, 40, 40, 0.08); }
.menu-item#push-toggle.activo .menu-icon { color: #00e676; text-shadow: 0 0 8px rgba(0, 230, 118, 0.6); }
[data-theme="dark"] .menu-dropdown { background: rgba(24, 28, 50, 0.98); }
[data-theme="dark"] .menu-item:hover { background: rgba(121, 134, 203, 0.15); }

@media (max-width: 360px) {
  .menu-dropdown { min-width: 180px; }
  .menu-item { font-size: 0.85rem; padding: 0.65rem 0.8rem; }
  .caja-val { font-size: 0.75rem; }
  .caja-lbl { font-size: 0.55rem; }
  .field-row { grid-template-columns: 1fr; }
}

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.admin-tab-panel { margin-top: 0.5rem; }
.admin-tab-panel.hidden { display: none; }

.pill-espera-icono {
  background: rgba(148, 163, 184, 0.3);
  border: 2px solid rgba(148, 163, 184, 0.5);
  color: var(--text-muted);
  box-shadow: none;
}

.pill-action-icono {
  background: var(--accent);
  border: 2px solid var(--accent-dark);
  color: #1a237e;
  box-shadow: 0 0 10px rgba(0, 230, 118, 0.8);
  cursor: pointer;
  padding: 0;
  transition: transform 0.1s;
}
.pill-action-icono:active { transform: scale(0.9); }
[data-theme="dark"] .pill-action-icono { background: #00ff88; border-color: #7dffb8; color: #0f1226; }

.apuesta-meta-fila { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 0.35rem; }
.apuesta-meta-fila .apuesta-fecha-destacada { margin-top: 0; }
.apuesta-meta-fila .badge { padding: 0.28rem 0.6rem; font-size: 0.7rem; font-weight: 700; border-radius: 999px; white-space: nowrap; }
.apuesta-meta-fila .pill-icono { margin: 0; }

.apuesta-header-nuevo { display: grid; grid-template-columns: 1fr auto; align-items: start; gap: 1rem; margin-bottom: 0.5rem; }
.apuesta-juego { font-weight: 800; color: var(--primary); font-size: 1.1rem; line-height: 1.2; flex: 1 1 auto; word-break: break-word; }
.apuesta-cabecera-derecha { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex: 0 0 auto; }
.cab-fecha { background: linear-gradient(135deg, #00e676 0%, #00c853 100%); color: #fff; font-weight: 800; font-size: 0.78rem; padding: 0.25rem 0.65rem; border-radius: 999px; box-shadow: 0 2px 6px rgba(0, 200, 83, 0.3); white-space: nowrap; }
.cab-importes { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; width: 100%; }
.cab-importe { display: flex; justify-content: space-between; align-items: center; width: 100%; gap: 12px; font-size: 0.75rem; }
.cab-importe .lbl { color: var(--text-muted); text-transform: uppercase; font-weight: 700; letter-spacing: 0.5px; font-size: 0.65rem; }
.cab-importe .val { font-weight: 800; color: var(--primary); font-size: 0.9rem; }
.cab-importe.premio .val { color: var(--success); }

.apuesta-subheader { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 1rem; margin-bottom: 0.75rem; }
.apuesta-iconos-estado { display: flex; gap: 8px; align-items: center; justify-content: center; width: 100%; }

.pill-pendiente-icono { background: rgba(251, 192, 45, 0.2); border: 2px solid rgba(251, 192, 45, 0.5); }
[data-theme="dark"] .pill-pendiente-icono { background: rgba(251, 192, 45, 0.15); }
.pill-sinpremio-icono { background: rgba(198, 40, 40, 0.15); border: 2px solid rgba(198, 40, 40, 0.4); color: #c62828; }
[data-theme="dark"] .pill-sinpremio-icono { background: rgba(239, 83, 80, 0.15); border-color: rgba(239, 83, 80, 0.4); color: #ef5350; }

.apuesta-logo-wrap { display: flex; justify-content: center; align-items: flex-start; }
.cab-importe.premio-con .val { color: var(--success); }
.cab-importe.premio-sin .val { color: var(--danger); }
.cab-importe .lbl { white-space: nowrap; }

.apuesta-col-logo { display: flex; align-items: center; justify-content: center; }
.apuesta-col-titulo { display: flex; align-items: center; justify-content: center; text-align: center; padding: 0 4px; }
.apuesta-col-info { display: flex; flex-direction: column; justify-content: space-between; gap: 4px; }

.info-fila-superior { display: flex; justify-content: space-between; align-items: center; gap: 6px; width: 100%; }
.info-iconos { display: flex; gap: 4px; align-items: center; }
.info-fecha { background: linear-gradient(135deg, #00e676 0%, #00c853 100%); color: #fff; font-weight: 800; font-size: 0.72rem; padding: 0.22rem 0.5rem; border-radius: 999px; white-space: nowrap; box-shadow: 0 2px 4px rgba(0, 200, 83, 0.3); }

.info-fila-importe { display: flex; justify-content: space-between; align-items: center; width: 100%; font-size: 0.75rem; }
.info-fila-importe .lbl { color: var(--text-muted); text-transform: uppercase; font-weight: 700; letter-spacing: 0.3px; font-size: 0.65rem; white-space: nowrap; }
.info-fila-importe .val { font-weight: 800; color: var(--primary); font-size: 0.85rem; }
.info-fila-importe.premio-con .val { color: var(--success); }
.info-fila-importe.premio-sin .val { color: var(--danger); }

.apuesta-header-nuevo { display: grid; grid-template-columns: 60px 1fr auto; gap: 12px; align-items: stretch; margin-bottom: 0.75rem; }
.apuesta-col-titulo { padding: 0 8px; }
.apuesta-col-info { display: flex; flex-direction: column; justify-content: space-between; align-items: flex-end; gap: 4px; }
.info-fila-superior { justify-content: flex-end; }
.info-fila-importe { justify-content: flex-end; align-items: baseline; gap: 8px; white-space: nowrap; }

.card, .modal-content, .list-item, .admin-item, .push-evento-row,
.caja-item, .apuesta-item, .config-box, .stat-box, .anuncio-card {
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5), 0 2px 6px rgba(0, 0, 0, 0.3) !important;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.card:hover, .list-item:hover, .admin-item:hover, .anuncio-card:hover {
  border-color: rgba(255, 255, 255, 0.3) !important;
  transform: translateY(-1px);
}

#admin-tabs button {
  background: transparent !important;
  color: var(--text-muted) !important;
  box-shadow: none !important;
  border: none !important;
  transition: all 0.2s ease;
}

/* ============================================================
   COLOR MORADO PARA PESTAÑAS DE ADMIN Y TEXTO BOTON PDF
   ============================================================ */
#admin-tabs button.active {
  background: #4f46e5 !important;
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.4) !important;
  transform: translateY(-1px);
}

#admin-tabs button:not(.active):hover {
  color: var(--text) !important;
  background: rgba(255,255,255,0.05) !important;
}

.letras-container { display: flex; flex-wrap: wrap; gap: 5px; max-height: 96px; overflow-y: auto; margin-bottom: 15px; padding-bottom: 5px; }
.letra-pill { background: var(--bg-card); color: var(--text-muted); border: 1px solid var(--border); border-radius: 20px; padding: 5px 12px; font-weight: 600; font-size: 0.85rem; cursor: pointer; transition: all 0.2s ease; min-width: 36px; text-align: center; }
.letra-pill:hover { border-color: var(--primary); color: var(--text); }
.letra-pill.active { background: var(--primary); color: #fff; border-color: var(--primary); box-shadow: 0 2px 6px rgba(16, 185, 129, 0.3); }
.letra-resaltada { color: #10b981 !important; font-weight: 900 !important; font-size: 1.1em; }

/* === INICIO fijo sin scroll de página (solo scroll interno en la lista de mensajes) === */

.caja-resumen .caja-bloque { padding: 0.8rem !important; }
.caja-resumen .caja-val { font-size: 1.2rem !important; }
body.modo-socio #btn-exportar { display: none !important; }

/* --- SELECTOR DE JUEGOS CUSTOM --- */
.fake-select {
  display: flex; align-items: center; gap: 10px; padding: 0.75rem;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 12px; cursor: pointer; font-size: 0.95rem;
  color: var(--text); transition: border-color 0.2s;
}
.fake-select:hover { border-color: var(--primary); }
.fake-select span { flex: 1; text-align: left; }

.juego-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 10px; max-height: 60vh; overflow-y: auto; padding: 5px; }
.juego-item { background: var(--bg-card); border: 2px solid transparent; border-radius: 12px; padding: 10px; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 8px; transition: all 0.2s; }
.juego-item:hover { border-color: var(--primary); transform: translateY(-2px); }
.juego-item.active { border-color: var(--primary); background: rgba(16, 185, 129, 0.1); }
.juego-item img { width: 50px; height: 50px; object-fit: contain; }
.juego-item span { font-size: 0.75rem; font-weight: 600; text-align: center; line-height: 1.2; }

/* --- DESPLEGABLE CUSTOM (Estilo App) --- */
.custom-dropdown { position: relative; width: 100%; }
.dropdown-trigger {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.75rem; background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 12px; cursor: pointer; font-size: 0.95rem; color: var(--text);
  transition: border-color 0.2s;
}
.dropdown-trigger:hover { border-color: var(--primary); }
.dropdown-trigger .arrow { font-size: 0.7rem; color: var(--text-muted); transition: transform 0.2s; }
.custom-dropdown.open .arrow { transform: rotate(180deg); }

.dropdown-options {
  position: absolute; top: 100%; left: 0; right: 0;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 12px; margin-top: 4px; max-height: 200px; overflow-y: auto;
  z-index: 1000; box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

.dropdown-item {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px;
  cursor: pointer; font-size: 0.9rem; border-bottom: 1px solid rgba(255,255,255,0.05);
  transition: background 0.2s;
}
.dropdown-item:last-child { border-bottom: none; }
.dropdown-item:hover { background: rgba(16, 185, 129, 0.1); color: var(--primary); }
.dropdown-item img { width: 24px; height: 24px; object-fit: contain; }

/* --- EVITAR LAYOUT SHIFT EN INICIO --- */

/* === LAYOUT FIJO PARA INICIO (Mobile First) === */
body:has(#page-inicio.active) { overflow: hidden; height: 100dvh; }
body:has(#page-inicio.active) #app { height: 100dvh; display: flex; flex-direction: column; }
body:has(#page-inicio.active) main {
  flex: 1 1 0; min-height: 0; overflow: hidden; display: flex; flex-direction: column;
}
body:has(#page-inicio.active) #page-inicio.active {
  display: flex; flex-direction: column; flex: 1 1 0; min-height: 0; height: 100%;
}

/* FIX DESBORDAMIENTO ESTRUCTURA INICIO */
body:has(#page-inicio.active) #page-inicio.active > .card,
body:has(#page-inicio.active) #page-inicio.active > .welcome-bar,
body:has(#page-inicio.active) #page-inicio.active > .section-header,
body:has(#page-inicio.active) #page-inicio.active > .aviso-pago,
body:has(#page-inicio.active) #anuncios-list {
  width: 100%;
  max-width: 100%; /* PROTECCIÓN X */
  box-sizing: border-box;
}

body:has(#page-inicio.active) #anuncios-list {
  flex: 1 1 0;
  min-height: 0;
  width: 100%;
  max-width: 100%; /* PROTECCIÓN X */
  max-height: none !important;
  overflow-y: auto;
  overflow-x: hidden; /* PROTECCIÓN X */
  box-sizing: border-box;
  -webkit-overflow-scrolling: touch;
}

#exp-mes-select { display: none !important; }

/* === TARJETA APUESTA PREMIADA (ORO VIP) === */
.card.apuesta-premiada {
  background: linear-gradient(145deg, rgba(254, 243, 199, 0.94) 0%, rgba(253, 230, 138, 0.86) 55%, rgba(245, 158, 11, 0.30) 100%) !important;
  border: 1.5px solid rgba(217, 119, 6, 0.8) !important;
  box-shadow: 0 8px 22px rgba(217, 119, 6, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.75) !important;
}
[data-theme="dark"] .card.apuesta-premiada {
  background: linear-gradient(145deg, rgba(120, 53, 15, 0.68) 0%, rgba(30, 34, 60, 0.90) 58%, rgba(161, 98, 7, 0.38) 100%) !important;
  border: 1.5px solid rgba(251, 191, 36, 0.68) !important;
  box-shadow: 0 8px 24px rgba(245, 158, 11, 0.24), inset 0 1px 0 rgba(253, 224, 71, 0.22) !important;
}
.card.apuesta-premiada:hover {
  border-color: rgba(251, 191, 36, 0.95) !important;
  transform: translateY(-2px);
}
.estado-oro { color: #b45309 !important; font-weight: 800; font-size: 0.75rem; }
.premio-oro { color: #92400e !important; font-weight: 800; }
[data-theme="dark"] .estado-oro { color: #fbbf24 !important; }
[data-theme="dark"] .premio-oro { color: #fde047 !important; }



/* === PANTALLA ESTADÍSTICAS === */
.est-bloque-tabs {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
  padding: 4px;
  margin-bottom: 0.65rem;
  background: rgba(20, 24, 45, 0.75);
  border: 1px solid rgba(120, 134, 200, 0.22);
  border-radius: 14px;
}
.est-bloque-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-width: 0;
  background: transparent;
  color: var(--text-muted);
  border: none;
  border-radius: 10px;
  padding: 0.45rem 0.15rem;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1.1;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s ease;
}
.est-bloque-tab .tab-ico { font-size: 1.05rem; line-height: 1; }
.est-bloque-tab .tab-txt { white-space: nowrap; letter-spacing: -0.2px; }
.est-bloque-tab.active {
  background: linear-gradient(135deg, #1a237e 0%, #3949ab 100%);
  color: #ffffff;
  box-shadow: 0 3px 10px rgba(26, 35, 126, 0.45);
}

.est-filtros {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 6px;
  margin-bottom: 0.75rem;
}

.est-kpi-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
}
.est-kpi {
  background: var(--glass-bg);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 16px;
  padding: 0.9rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 6px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.35);
}
.est-kpi-lbl {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  font-weight: 700;
}
.est-kpi-val {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1.15;
}
.est-kpi-sub {
  font-size: 0.73rem;
  color: var(--text-muted);
  line-height: 1.3;
}

.juego-stat-card {
  background: var(--glass-bg);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 16px;
  padding: 0.85rem;
  margin-bottom: 0.65rem;
  box-shadow: 0 6px 16px rgba(0,0,0,0.35);
}
.juego-stat-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 0.6rem;
}
.juego-stat-logo {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.95);
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.juego-stat-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.juego-stat-info { flex: 1; min-width: 0; }
.juego-stat-nombre { font-weight: 800; font-size: 0.98rem; color: var(--primary-light); }
.juego-stat-meta { font-size: 0.74rem; color: var(--text-muted); margin-top: 2px; }
.juego-stat-balance { text-align: right; font-weight: 800; font-size: 0.95rem; white-space: nowrap; }
.juego-stat-nums {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  background: rgba(15, 18, 38, 0.45);
  border-radius: 10px;
  padding: 0.5rem;
  text-align: center;
  margin-bottom: 0.55rem;
}
.juego-stat-nums .n-lbl { font-size: 0.62rem; text-transform: uppercase; color: var(--text-muted); font-weight: 700; }
.juego-stat-nums .n-val { font-size: 0.85rem; font-weight: 800; margin-top: 2px; }
.barra-retorno-wrap { width: 100%; height: 7px; background: rgba(255,255,255,0.1); border-radius: 999px; overflow: hidden; }
.barra-retorno-fill { height: 100%; border-radius: 999px; transition: width 0.4s ease; }

.chart-card-head { display: flex; justify-content: space-between; align-items: center; gap: 6px; margin-bottom: 4px; }
.chart-card-title { font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-muted); font-weight: 800; }
.chart-meses {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 4px;
  height: 102px;
  padding: 6px 2px 3px;
  border-bottom: 1px solid rgba(255,255,255,0.15);
}
.chart-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  justify-content: flex-end;
  cursor: pointer;
  padding: 3px 1px;
  border-radius: 8px;
  transition: background 0.15s;
}
.chart-col.selected { background: rgba(251, 191, 36, 0.14); }
.chart-bars { display: flex; align-items: flex-end; gap: 2px; height: 74px; width: 100%; justify-content: center; }
.bar-inv { width: 10px; background: rgba(121, 134, 203, 0.82); border-radius: 4px 4px 0 0; min-height: 3px; }
.bar-pre { width: 10px; background: linear-gradient(180deg, #fde047 0%, #f59e0b 100%); border-radius: 4px 4px 0 0; min-height: 2px; box-shadow: 0 0 8px rgba(251, 191, 36, 0.4); }
.chart-mes-lbl { font-size: 0.65rem; font-weight: 700; color: var(--text-muted); margin-top: 4px; text-transform: uppercase; }
.chart-col.selected .chart-mes-lbl { color: #fde047; }
.chart-leyenda { display: flex; justify-content: center; gap: 14px; font-size: 0.7rem; color: var(--text-muted); }
.dot-saldo, .dot-inv, .dot-pre { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 4px; }
.dot-saldo { background: #00ff88; }
.dot-inv { background: rgba(121, 134, 203, 0.85); }
.dot-pre { background: #fbbf24; }
.evo-svg-wrap { width: 100%; padding-top: 2px; margin-bottom: 4px; }

.top-premio-row { display: flex; align-items: center; gap: 10px; padding: 0.7rem 0.8rem; border-radius: 14px; margin-bottom: 0.55rem; }
.top-rank {
  width: 26px; height: 26px; border-radius: 50%;
  background: rgba(251, 191, 36, 0.2); border: 1px solid rgba(251, 191, 36, 0.6);
  color: #fde047; font-size: 0.78rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}

@media (max-width: 380px) {
  nav.bottom-nav button { font-size: 0.64rem; padding-left: 2px; padding-right: 2px; }
}
