/* Ganadores.io — UI referencias Stake + Apuestas Royal */

:root {
  --g-bg: #0f212e;
  --g-panel: #1a2c38;
  --g-panel2: #213743;
  --g-border: #2f4553;
  --g-text: #fff;
  --g-muted: #b1bad3;
  --g-dim: #8893a2;
  --g-blue: #1475e1;
  --g-blue-lit: #1a8cff;
  --g-orange: #ff6b2c;
  --g-green: #00e701;
  --g-gold: #f0b429;
  --g-purple: #4a2d6e;
  --g-purple-dark: #2e1a47;
  --g-radius: 12px;
  --g-nav-h: 62px;
}

/* ── Scroll: contenedor en <main> (estructura real: #root > .ant-app > layout) ── */
html,
body {
  height: 100%;
  overflow: hidden;
}

#root,
#root > div,
#root > div > div {
  height: 100%;
  max-height: 100dvh;
  min-height: 100dvh;
  overflow: hidden;
}

/* columna central: header + main */
#root > div > div > div:nth-child(2) {
  min-height: 0;
  overflow: hidden;
}

main {
  flex: 1 1 0% !important;
  min-height: 0 !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: contain;
  touch-action: pan-y;
}

.home-page-container {
  height: auto !important;
  overflow: visible !important;
}

@media (max-width: 768px) {
  main {
    padding-bottom: calc(var(--g-nav-h) + 8px + env(safe-area-inset-bottom, 0)) !important;
  }

  #root > div:has(.gd-slip-bar) main {
    padding-bottom: calc(var(--g-nav-h) + 56px + env(safe-area-inset-bottom, 0)) !important;
  }
}

/* ── Layout deportes ── */
.gd-sports-page,
.st-page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 8px  calc(var(--g-nav-h) + 24px);
}

.st-search {
  width: 100%;
  background: var(--g-panel);
  border: 1px solid var(--g-border);
  border-radius: var(--g-radius);
  padding: 12px 14px 12px 40px;
  color: var(--g-text);
  font-size: 14px;
  margin-bottom: 14px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' fill='%238893a2' viewBox='0 0 24 24'%3E%3Cpath d='M15.5 14h-.79l-.28-.27A6.471 6.471 0 0016 9.5 6.5 6.5 0 109.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 12px center;
}

.st-search::placeholder { color: var(--g-dim); }
.st-search:focus { outline: none; border-color: var(--g-blue); }

.st-toggle-row,
.gd-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.st-toggle,
.gd-tab {
  flex: 1;
  padding: 12px 14px;
  border-radius: var(--g-radius);
  cursor: pointer;
  font-weight: 700;
  font-size: 14px;
  border: 1px solid var(--g-border);
  background: var(--g-panel);
  color: var(--g-muted);
  transition: 0.15s;
}

.st-toggle.is-active,
.gd-tab.is-active {
  background: var(--g-panel2);
  border-color: #4a7189;
  color: var(--g-text);
  box-shadow: 0 4px 16px rgba(20, 117, 225, 0.12);
}

.st-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 18px 0 12px;
  color: var(--g-text);
  font-weight: 800;
  font-size: 15px;
}

.st-section-head span.icon { margin-right: 8px; }

/* ── Tarjeta partido destacado (Stake) ── */
.st-featured-card,
.gd-event-card {
  background: linear-gradient(165deg, rgba(33, 55, 67, 0.98), rgba(22, 38, 48, 0.98));
  border: 1px solid rgba(47, 69, 83, 0.8);
  border-radius: 16px;
  padding: 14px;
  margin-bottom: 12px;
  cursor: pointer;
  transition: border-color 0.15s, transform 0.12s;
}

.st-featured-card:hover,
.gd-event-card:hover { border-color: #4a7189; }

.st-card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--g-dim);
}

.st-time-badge {
  background: var(--g-panel);
  padding: 3px 8px;
  border-radius: 6px;
  font-weight: 700;
  color: var(--g-text);
}

.st-bets-count { margin-left: auto; }

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

.st-team-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex: 1;
  min-width: 0;
}

.st-team-name {
  color: var(--g-text);
  font-weight: 700;
  font-size: 14px;
  text-align: center;
  line-height: 1.2;
}

.st-vs { color: #5a6573; font-weight: 800; font-size: 12px; flex-shrink: 0; }

.st-trend {
  font-size: 12px;
  color: var(--g-muted);
  margin-bottom: 12px;
  padding: 8px 10px;
  background: rgba(15, 33, 46, 0.6);
  border-radius: 8px;
}

.st-odds-row,
.gd-odds-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.st-odd-pill,
.gd-odd-btn {
  background: var(--g-bg);
  border: 1px solid var(--g-border);
  border-radius: 10px;
  padding: 10px 8px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  min-width: 0;
  transition: 0.12s;
}

.st-odd-pill:hover:not(.is-disabled),
.gd-odd-btn:hover:not(.is-disabled) {
  border-color: var(--g-blue-lit);
  background: rgba(20, 117, 225, 0.12);
}

.st-odd-pill.is-selected,
.gd-odd-btn.is-selected {
  background: var(--g-blue);
  border-color: var(--g-blue-lit);
}

.st-odd-pill.is-selected .st-odd-price,
.gd-odd-btn.is-selected .gd-odd-price { color: #fff; }

.st-odd-label,
.gd-odd-label {
  color: var(--g-muted);
  font-size: 11px;
  font-weight: 600;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.st-odd-price,
.gd-odd-price {
  color: var(--g-blue-lit);
  font-weight: 800;
  font-size: 15px;
}

.gd-odd-btn.is-chip .gd-odd-label { font-size: 13px; font-weight: 800; color: var(--g-blue-lit); }
.gd-odd-btn.is-disabled { opacity: 0.4; cursor: not-allowed; }
.gd-odd-sub { font-size: 10px; color: var(--g-dim); }

.st-league-block { margin-bottom: 20px; }

.st-league-title {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--g-text);
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 10px;
}

/* ── Detalle partido ── */
.st-detail-back {
  background: none;
  border: none;
  color: var(--g-blue-lit);
  font-weight: 700;
  cursor: pointer;
  margin-bottom: 12px;
  padding: 0;
  font-size: 14px;
}

.st-detail-hero {
  background: linear-gradient(180deg, rgba(26, 44, 56, 0.95), rgba(15, 33, 46, 0.9));
  border: 1px solid var(--g-border);
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 14px;
}

.st-detail-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
  overflow-x: auto;
}

.st-detail-tab {
  flex-shrink: 0;
  padding: 10px 14px;
  border-radius: 10px;
  border: none;
  background: var(--g-panel);
  color: var(--g-muted);
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
}

.st-detail-tab.is-active { background: var(--g-panel2); color: var(--g-text); }

.st-accordion {
  border: 1px solid var(--g-border);
  border-radius: var(--g-radius);
  margin-bottom: 8px;
  overflow: hidden;
  background: var(--g-panel);
}

.st-accordion-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  cursor: pointer;
  color: var(--g-text);
  font-weight: 700;
  font-size: 14px;
}

.st-accordion-body { padding: 0 12px 12px; }

.gd-market-block { margin-top: 12px; padding-top: 12px; border-top: 1px solid rgba(47, 69, 83, 0.55); }
.gd-market-block:first-of-type { margin-top: 0; padding-top: 0; border-top: none; }
.gd-market-title { color: var(--g-dim); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 10px; }
.gd-odds-grid-many { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); }
.gd-more-btn {
  width: 100%; margin-top: 12px; padding: 11px; border-radius: 10px;
  border: 1px dashed #4a7189; background: rgba(20, 117, 225, 0.08);
  color: #7eb8ff; font-weight: 700; cursor: pointer;
}

.gd-event-head { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
.gd-live-pill { background: linear-gradient(135deg, #ff4757, #e63946); color: #fff; font-size: 11px; font-weight: 800; padding: 4px 10px; border-radius: 999px; }
.gd-time-pill { color: #d5deea; font-size: 12px; font-weight: 600; background: rgba(15, 33, 46, 0.8); padding: 4px 10px; border-radius: 8px; }
.gd-league-pill { margin-left: auto; color: var(--g-dim); font-size: 12px; max-width: 55%; text-align: right; }
.gd-teams { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.gd-team { display: flex; flex-direction: column; align-items: center; gap: 8px; flex: 1; }
.gd-team-name { color: var(--g-text); font-weight: 600; font-size: 14px; text-align: center; }
.gd-score { color: var(--g-gold); font-weight: 800; font-size: 18px; }
.gd-vs { color: #5a6573; font-weight: 800; }
.gd-live-badge { background: var(--g-blue); color: #fff; border-radius: 10px; padding: 1px 8px; font-size: 11px; margin-left: 6px; }
.gd-sport-title { color: var(--g-text); font-size: 20px; font-weight: 800; margin: 6px 0 14px; }
.gd-section-title { color: var(--g-text); font-weight: 700; font-size: 15px; margin: 8px 0 12px; display: flex; align-items: center; gap: 8px; }
.gd-live-dot { width: 8px; height: 8px; border-radius: 50%; background: #ff4757; animation: gd-pulse 1.4s ease-in-out infinite; }
@keyframes gd-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.45; } }
.gd-empty { text-align: center; color: var(--g-muted); padding: 56px 24px; background: var(--g-panel2); border-radius: 16px; border: 1px solid var(--g-border); }
.gd-empty-sub { display: block; margin-top: 8px; font-size: 13px; color: var(--g-dim); }
.gd-balance { text-align: right; color: var(--g-muted); margin-bottom: 12px; }
.gd-balance b { color: var(--g-gold); }

/* ── Hipismo (Royal) ── */
.st-horse-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 14px;
  align-items: start;
  max-width: 100%;
}

.st-horse-layout > * {
  min-width: 0;
  max-width: 100%;
}

.st-horse-filters {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}

.st-horse-filters .full { grid-column: 1 / -1; }

.st-filter-btn {
  background: #6b7280;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 12px;
  font-weight: 700;
  text-align: left;
  cursor: default;
}

.st-race-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 70vh;
  overflow-y: auto;
}

.st-race-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  color: #111;
  border: 2px solid var(--g-purple);
  border-radius: 8px;
  padding: 10px 12px;
  cursor: pointer;
  transition: 0.12s;
}

.st-race-item.is-active,
.st-race-item:hover {
  box-shadow: 0 4px 14px rgba(74, 45, 110, 0.35);
  transform: translateY(-1px);
}

.st-race-icon { font-size: 22px; flex-shrink: 0; }

.st-race-info { flex: 1; min-width: 0; }

.st-race-track {
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.st-race-countdown {
  font-size: 11px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 999px;
  color: #fff;
  flex-shrink: 0;
}

.st-race-countdown.urgent { background: #e53935; }
.st-race-countdown.warn { background: #f59e0b; }
.st-race-countdown.ok { background: #22c55e; }

.st-race-panel {
  background: #f3f4f6;
  border-radius: 12px;
  overflow-x: auto;
  overflow-y: visible;
  max-width: 100%;
  border: 2px solid var(--g-purple);
  -webkit-overflow-scrolling: touch;
}

.st-race-panel-head {
  background: linear-gradient(90deg, #5b21b6, #7c3aed);
  color: #fff;
  padding: 12px 16px;
  font-weight: 800;
  font-size: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.st-race-meta-bar {
  background: #d1d5db;
  color: #111;
  padding: 8px 12px;
  font-size: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.st-race-tabs {
  display: flex;
  gap: 6px;
  padding: 10px 12px;
  background: #e5e7eb;
}

.st-race-tab {
  border: none;
  border-radius: 6px;
  padding: 8px 14px;
  font-weight: 800;
  font-size: 12px;
  cursor: pointer;
  color: #fff;
}

.st-race-tab.video { background: #eab308; color: #111; }
.st-race-tab.wps { background: #16a34a; }
.st-race-tab.exo { background: #2563eb; }
.st-race-tab.gac { background: #111; }

.st-wps-table { width: 100%; min-width: 540px; border-collapse: collapse; font-size: 13px; }

.st-wps-table th {
  background: #374151;
  color: #fff;
  padding: 10px 8px;
  text-align: left;
  font-size: 11px;
  text-transform: uppercase;
}

.st-wps-table td {
  padding: 10px 8px;
  border-bottom: 1px solid #d1d5db;
  vertical-align: middle;
  background: #fff;
  color: #111;
}

.st-horse-num {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  font-weight: 900;
  color: #fff;
  font-size: 14px;
}

.st-horse-name { font-weight: 700; }
.st-horse-jockey { font-size: 11px; color: #4b5563; margin-top: 2px; }
.st-horse-ml { font-size: 11px; color: #6b7280; }

.st-wps-btn {
  min-width: 52px;
  padding: 8px 6px;
  border: 1px solid #9ca3af;
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
  font-weight: 800;
  color: var(--g-blue);
  font-size: 13px;
}

.st-wps-btn:hover { border-color: var(--g-blue); background: #eff6ff; }

/* ── Sidebar Stake ── */
.gd-sidebar {
  background: var(--g-panel) !important;
}

.st-mode-toggle {
  display: flex;
  gap: 6px;
  padding: 10px;
  border-bottom: 1px solid var(--g-border);
}

.st-mode-btn {
  flex: 1;
  padding: 10px;
  border: none;
  border-radius: 10px;
  font-weight: 800;
  font-size: 13px;
  cursor: pointer;
  background: var(--g-panel2);
  color: var(--g-muted);
}

.st-mode-btn.is-active.sports {
  background: var(--g-orange);
  color: #fff;
}

.st-mode-btn.is-active.casino {
  background: var(--g-panel2);
  color: var(--g-text);
}

.gd-nav-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 14px;
  background: transparent;
  color: var(--g-muted);
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  text-align: left;
}

.gd-nav-btn.is-active,
.gd-nav-btn:hover {
  background: rgba(15, 33, 46, 0.8);
  color: var(--g-text);
}

.gd-nav-badge {
  margin-left: auto;
  background: var(--g-blue);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 999px;
}

/* ── Talón / Boleta Stake ── */
.gd-slip-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: calc(var(--g-nav-h) + env(safe-area-inset-bottom, 0));
  z-index: 55;
  background: var(--g-panel);
  border-top: 1px solid var(--g-border);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  max-width: 100%;
  box-sizing: border-box;
}

.gd-slip-panel {
  position: fixed;
  right: 0;
  top: 0;
  bottom: 0;
  width: min(380px, 100%);
  max-width: 100%;
  max-height: 100dvh;
  height: 100dvh;
  z-index: 70;
  background: var(--g-bg);
  border-left: 1px solid var(--g-border);
  display: flex;
  flex-direction: column;
  box-shadow: -8px 0 32px rgba(0, 0, 0, 0.4);
  padding-bottom: env(safe-area-inset-bottom, 0);
  box-sizing: border-box;
}

.gd-slip-panel-head {
  display: flex;
  align-items: center;
  padding: 14px 16px;
  border-bottom: 1px solid var(--g-border);
  gap: 10px;
  flex-shrink: 0;
}

.gd-slip-badge {
  background: var(--g-blue);
  color: #fff;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 800;
}

.gd-slip-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 12px 16px;
  -webkit-overflow-scrolling: touch;
}

.gd-slip-item {
  background: var(--g-panel);
  border: 1px solid var(--g-border);
  border-radius: 10px;
  padding: 12px;
  margin-bottom: 10px;
  position: relative;
}

.gd-slip-item-remove {
  position: absolute;
  top: 8px;
  right: 8px;
  background: none;
  border: none;
  color: var(--g-dim);
  cursor: pointer;
  font-size: 16px;
}

.gd-slip-item-match { font-size: 11px; color: var(--g-dim); margin-bottom: 4px; }
.gd-slip-item-pick { font-weight: 700; color: var(--g-text); font-size: 14px; }
.gd-slip-item-odd { color: var(--g-blue-lit); font-weight: 800; font-size: 18px; margin-top: 6px; }

.gd-slip-foot {
  padding: 14px 16px;
  border-top: 1px solid var(--g-border);
  background: var(--g-panel);
  flex-shrink: 0;
}

.gd-slip-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 12px;
}

.gd-btn-clear {
  background: var(--g-panel2);
  border: 1px solid var(--g-border);
  color: var(--g-text);
  border-radius: 10px;
  padding: 14px;
  font-weight: 700;
  cursor: pointer;
}

.gd-btn-place {
  background: var(--g-blue);
  border: none;
  color: #fff;
  border-radius: 10px;
  padding: 14px;
  font-weight: 800;
  cursor: pointer;
}

.gd-btn-place:disabled { opacity: 0.5; cursor: not-allowed; }

.gd-slip-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 65;
}

/* ── Mobile bottom nav ── */
.gd-mobile-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: var(--g-nav-h);
  background: var(--g-panel);
  border-top: 1px solid var(--g-border);
  display: none;
  grid-template-columns: repeat(5, 1fr);
  z-index: 50;
  padding-bottom: env(safe-area-inset-bottom, 0);
}

.gd-mobile-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  background: none;
  border: none;
  color: var(--g-dim);
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
  position: relative;
}

.gd-mobile-nav-item.is-active { color: var(--g-text); }

.gd-mobile-nav-item.is-active::before {
  content: "";
  position: absolute;
  top: 0;
  left: 20%;
  right: 20%;
  height: 3px;
  background: #fff;
  border-radius: 0 0 4px 4px;
}

.gd-mobile-nav-badge {
  position: absolute;
  top: 6px;
  right: calc(50% - 22px);
  background: var(--g-blue);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  min-width: 16px;
  height: 16px;
  border-radius: 999px;
  display: grid;
  place-items: center;
}

@media (max-width: 768px) {
  .gd-mobile-nav { display: grid; }
  .st-horse-layout { grid-template-columns: 1fr; }
  .st-horse-layout .st-race-list:not(.mobile-only) { display: none; }
  .st-race-list.mobile-only { max-height: none; }
  .st-race-panel { display: none; }
  .st-horse-layout.show-race .st-race-list { display: none; }
  .st-horse-layout.show-race .st-race-panel { display: block; width: 100%; }
  .gd-slip-panel {
    width: 100%;
    max-width: 100%;
    left: 0;
    right: 0;
    border-left: none;
  }
  .st-odds-row, .gd-odds-grid { grid-template-columns: repeat(2, 1fr); }
  .gd-league-pill { max-width: 100%; margin-left: 0; text-align: left; width: 100%; }
}

@media (min-width: 769px) {
  .st-horse-layout .st-race-list.mobile-only { display: none; }
  .gd-slip-bar { display: none !important; }
}

/* ── Panel admin ── */
.gd-admin-page {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  min-width: 0;
  overflow-x: hidden;
}

.gd-admin-page .ant-segmented {
  width: 100%;
}

.gd-admin-page .ant-segmented-item-label {
  font-size: 12px;
  padding: 0 6px;
  white-space: nowrap;
}

.gd-admin-page h3.ant-typography {
  font-size: clamp(18px, 4.5vw, 24px) !important;
  word-break: break-word;
}

.gd-admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

@media (min-width: 640px) {
  .gd-admin-stats-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
  }
}

.gd-admin-stat {
  background: var(--g-panel);
  border: 1px solid var(--g-border);
  border-radius: 14px;
  padding: 16px;
}

.gd-admin-stat-label {
  color: var(--g-muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}

.gd-admin-stat-value {
  font-size: clamp(20px, 5vw, 26px);
  font-weight: 800;
  line-height: 1.1;
}

.gd-admin-stat-unit {
  display: block;
  margin-top: 4px;
  color: var(--g-dim);
  font-size: 11px;
  font-weight: 600;
}

.gd-admin-total-card {
  background: linear-gradient(135deg, rgba(20, 117, 225, 0.15), rgba(15, 33, 46, 0.9));
  border: 1px solid rgba(74, 113, 137, 0.6);
  border-radius: 16px;
  padding: 20px;
  text-align: center;
}

.gd-admin-total-label {
  color: var(--g-muted);
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 8px;
}

.gd-admin-total-value {
  font-size: clamp(28px, 7vw, 36px);
  font-weight: 900;
  letter-spacing: -0.02em;
}

.gd-admin-total-hint {
  margin-top: 10px;
  color: var(--g-dim);
  font-size: 12px;
  line-height: 1.4;
}

/* ════════ Hipismo rediseñado (gh-*) ════════ */
.gh-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.gh-race-card {
  background: #1a2c38; border: 1px solid #2f4553; border-radius: 14px; padding: 14px;
  text-align: left; cursor: pointer; transition: border-color .15s, transform .12s; color: #fff;
  display: flex; flex-direction: column; gap: 8px;
}
.gh-race-card:hover { border-color: #f0b429; transform: translateY(-2px); }
.gh-race-top { display: flex; align-items: center; gap: 10px; }
.gh-race-icon { font-size: 20px; }
.gh-race-name { font-weight: 700; font-size: 14px; color: #fff; flex: 1; line-height: 1.2; }
.gh-race-num { color: #b1bad3; font-weight: 600; }
.gh-race-sub { color: #8893a2; font-size: 12px; }
.gh-race-favs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.gh-fav { background: #0f212e; border: 1px solid #2f4553; border-radius: 7px; padding: 4px 8px;
  font-size: 11px; color: #b1bad3; white-space: nowrap; }
.gh-fav b { color: #f0b429; margin-left: 2px; }

.gh-status { font-size: 11px; font-weight: 800; padding: 4px 9px; border-radius: 999px; white-space: nowrap; }
.gh-status.ok { background: #16a34a; color: #fff; }
.gh-status.warn { background: #f59e0b; color: #1a1205; }
.gh-status.urgent { background: #e53935; color: #fff; }
.gh-status.live { background: #1475e1; color: #fff; }
.gh-status.closed { background: #2f4553; color: #8893a2; }

.gh-detail { max-width: 640px; margin: 0 auto; }
.gh-detail-head { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.gh-back { background: #1a2c38; border: 1px solid #2f4553; color: #b1bad3; border-radius: 9px;
  padding: 8px 12px; cursor: pointer; font-weight: 600; font-size: 13px; }
.gh-back:hover { color: #fff; border-color: #f0b429; }
.gh-detail-title { font-weight: 800; font-size: 16px; color: #fff; flex: 1;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gh-detail-meta { color: #8893a2; font-size: 12px; margin-bottom: 14px; }

.gh-horse-grid { display: flex; flex-direction: column; gap: 8px; }
.gh-horse {
  display: flex; align-items: center; gap: 12px; width: 100%;
  background: #1a2c38; border: 1px solid #2f4553; border-radius: 12px; padding: 12px 14px;
  cursor: pointer; transition: border-color .15s, background .15s; text-align: left;
}
.gh-horse:hover:not(:disabled) { border-color: #f0b429; background: #213743; }
.gh-horse:disabled { opacity: .45; cursor: default; }
.gh-horse-num {
  width: 34px; height: 34px; border-radius: 8px; display: grid; place-items: center;
  font-weight: 800; font-size: 15px; flex-shrink: 0;
  box-shadow: 0 0 0 1px rgba(255,255,255,.12);
}
.gh-horse-info { display: flex; flex-direction: column; gap: 1px; min-width: 0; flex: 1; }
.gh-horse-name { color: #fff; font-weight: 700; font-size: 15px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gh-horse-jockey { color: #8893a2; font-size: 12px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gh-horse-odd {
  display: flex; flex-direction: column; align-items: center; gap: 1px; flex-shrink: 0;
  background: #0f212e; border: 1px solid #2f4553; border-radius: 9px; padding: 7px 14px; min-width: 64px;
}
.gh-horse:hover:not(:disabled) .gh-horse-odd { border-color: #f0b429; }
.gh-odd-label { color: #8893a2; font-size: 9px; font-weight: 700; letter-spacing: .04em; }
.gh-odd-val { color: #f0b429; font-weight: 800; font-size: 16px; }
.gh-note { color: #5a6573; font-size: 12px; text-align: center; margin-top: 16px; line-height: 1.5; }

@media (max-width: 600px) {
  .gh-list { grid-template-columns: 1fr; }
  .gh-detail-title { font-size: 15px; }
}
