/* ===================================================================
   RUN CIRCUIT HUB — Design System & CSS Premium
   Google Fonts: Inter (sans) + importação dinâmica
   =================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

/* ===================== 1. DESIGN TOKENS ===================== */
:root {
  --cor: #e8590c;
  --cor-dark: #c44a09;
  --cor-light: #fff3ee;
  --txt: #111827;
  --txt-suave: #6b7280;
  --fundo: #f8f9fb;
  --fundo-card: #ffffff;
  --borda: #e5e7eb;
  --borda-forte: #d1d5db;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.08), 0 2px 6px rgba(0,0,0,0.04);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.12), 0 4px 12px rgba(0,0,0,0.06);
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 18px;
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===================== 2. BASE RESET ===================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--txt);
  background: var(--fundo);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--cor); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--cor-dark); text-decoration: none; }

img { max-width: 100%; height: auto; display: block; }

/* ===================== 3. LAYOUT ===================== */
.container { max-width: 1060px; margin: 0 auto; padding: 24px 20px 80px; }

/* ===================== 4. HEADER / TOPO ===================== */
.topo {
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--borda);
  padding: 14px 24px;
  box-shadow: var(--shadow-sm);
}

.marca { display: flex; align-items: center; gap: 10px; }
.marca img { height: 44px; object-fit: contain; }
.marca strong { font-size: 1.25rem; font-weight: 800; color: var(--txt); letter-spacing: -0.02em; }

.topo nav {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
}

.topo nav a {
  color: var(--txt);
  font-weight: 500;
  font-size: 0.9rem;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  transition: background var(--transition), color var(--transition);
}
.topo nav a:hover { background: var(--fundo); color: var(--cor); }

/* ===================== 5. HERO SLIDER ===================== */
.hero-slider-container {
  position: relative;
  overflow: hidden;
  width: 100%;
  min-height: 480px;
}

.hero-slider {
  display: flex;
  width: 100%;
  height: 100%;
}

.hero-slide {
  min-width: 100%;
  min-height: 480px;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  animation: heroFade 0.8s ease-in-out;
}

@keyframes heroFade {
  from { opacity: 0; transform: scale(1.04); }
  to { opacity: 1; transform: scale(1); }
}

.hero-slide-content {
  max-width: 600px;
  padding: 60px 60px;
  color: #fff;
}

.hero-badge {
  display: inline-block;
  background: var(--cor);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 5px 14px;
  border-radius: 50px;
  margin-bottom: 16px;
}

.hero-title {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 14px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.35);
}

.hero-subtitle {
  font-size: 1.1rem;
  opacity: 0.9;
  margin-bottom: 28px;
  text-shadow: 0 1px 6px rgba(0,0,0,0.3);
}

.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.hero-btn {
  font-size: 1rem !important;
  padding: 14px 28px !important;
  background: var(--cor) !important;
  box-shadow: 0 4px 20px rgba(232,89,12,0.45);
  border-radius: var(--radius) !important;
  transition: transform var(--transition), box-shadow var(--transition) !important;
}
.hero-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(232,89,12,0.55);
  filter: none !important;
}

/* Hero padrão (sem banners) */
.hero-padrao {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 40%, var(--cor-dark) 100%);
  min-height: 420px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero-padrao::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-padrao-content {
  max-width: 700px;
  margin: 0 auto;
  padding: 60px 24px;
  text-align: center;
  color: #fff;
  position: relative;
}

.hero-padrao-content h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
  line-height: 1.1;
}

.hero-slogan {
  font-size: 1.15rem;
  opacity: 0.85;
  max-width: 500px;
  margin: 0 auto;
}

/* ===================== 6. SEÇÃO CABEÇALHO ===================== */
.secao-cabecalho {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--borda);
  margin-bottom: 4px;
}

/* ===================== 7. WIDGET DE BUSCA DE FOTOS ===================== */
.widget-busca-fotos {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  padding: 40px 24px;
  margin: 0 -20px;
}

.busca-fotos-card {
  max-width: 860px;
  margin: 0 auto;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-lg);
  padding: 32px 36px;
  backdrop-filter: blur(8px);
}

.busca-fotos-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 24px;
  color: #fff;
}

.busca-fotos-icone {
  font-size: 3rem;
  width: 72px;
  height: 72px;
  background: var(--cor);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 8px 24px rgba(232,89,12,0.4);
}

.busca-fotos-header h2 { color: #fff; }
.busca-fotos-header .dica { color: rgba(255,255,255,0.7); }

.busca-fotos-form {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: flex-end;
}

.busca-fotos-form label {
  color: rgba(255,255,255,0.8) !important;
  font-size: 0.82rem;
  font-weight: 600;
}

.busca-fotos-form select,
.busca-fotos-form input {
  background: rgba(255,255,255,0.1) !important;
  border: 1px solid rgba(255,255,255,0.2) !important;
  color: #fff !important;
  border-radius: var(--radius-sm);
}

.busca-fotos-form select option { background: #1e293b; color: #fff; }
.busca-fotos-form input::placeholder { color: rgba(255,255,255,0.4); }

/* ===================== 8. CARDS DE CORRIDA ===================== */
.grade {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.cartao {
  background: var(--fundo-card);
  border: 1px solid var(--borda);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), transform var(--transition);
}

.cartao:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.cartao.estreito { max-width: 440px; margin: 28px auto; }

.card-corrida { padding: 0; overflow: hidden; }
.card-corpo { padding: 18px; }

.banner {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

.banner-placeholder {
  width: 100%;
  height: 180px;
  background: linear-gradient(135deg, #1a1a2e 0%, var(--cor-dark) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  font-weight: 700;
  color: rgba(255,255,255,0.8);
  letter-spacing: -0.02em;
}

.banner-topo { height: 240px; border-radius: var(--radius); margin-bottom: 16px; }

/* ===================== 9. ETIQUETAS / BADGES ===================== */
.etiqueta {
  display: inline-block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 50px;
  background: var(--fundo);
  color: var(--txt-suave);
}

.etiqueta-aberta, .etiqueta-confirmada { background: #d1fae5; color: #065f46; }
.etiqueta-encerrada, .etiqueta-cancelada { background: #fee2e2; color: #991b1b; }
.etiqueta-aguardando, .etiqueta-em_breve { background: #fef3c7; color: #92400e; }
.etiqueta-rascunho { background: #f3f4f6; color: #374151; }

/* Badge de plataforma (Fotos) */
.badge-plataforma {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(0,0,0,0.75);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 50px;
  backdrop-filter: blur(4px);
}

/* ===================== 10. BOTÕES ===================== */
.btn {
  display: inline-block;
  background: var(--cor);
  color: #fff;
  border: 0;
  border-radius: var(--radius-sm);
  padding: 11px 20px;
  font-size: 0.92rem;
  font-weight: 600;
  font-family: var(--font);
  cursor: pointer;
  text-align: center;
  transition: filter var(--transition), transform var(--transition), box-shadow var(--transition);
  line-height: 1.4;
}

.btn:hover {
  filter: brightness(0.93);
  transform: translateY(-1px);
  color: #fff;
  text-decoration: none;
}

.btn:active { transform: translateY(0); filter: brightness(0.88); }

.btn-sm { padding: 7px 12px; font-size: 0.83rem; }
.btn-grande { width: 100%; padding: 15px; font-size: 1rem; margin-top: 12px; }
.btn-perigo { background: #dc2626; }
.btn-perigo:hover { background: #b91c1c; filter: none; }
.btn-outline { background: transparent; border: 2px solid var(--cor); color: var(--cor); }
.btn-outline:hover { background: var(--cor); color: #fff; }

/* ===================== 11. FORMULÁRIOS ===================== */
label {
  display: block;
  margin: 12px 0;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--txt);
}

input, select, textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--borda-forte);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-family: var(--font);
  background: #fff;
  color: var(--txt);
  margin-top: 5px;
  transition: border-color var(--transition), box-shadow var(--transition);
  appearance: none;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--cor);
  box-shadow: 0 0 0 3px rgba(232,89,12,0.15);
}

.linha { display: flex; gap: 14px; flex-wrap: wrap; align-items: flex-end; }
.linha > label { flex: 1 1 200px; }

.checkbox { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
.checkbox input { width: auto; margin-top: 3px; flex-shrink: 0; }

fieldset { border: 1.5px solid var(--borda); border-radius: var(--radius); padding: 16px; margin: 18px 0; }
legend { padding: 0 8px; font-weight: 700; font-size: 0.9rem; }

/* ===================== 12. ALERTAS ===================== */
.alerta {
  background: var(--cor-light);
  border-left: 4px solid var(--cor);
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
  font-size: 0.9rem;
  animation: fadeIn 0.3s ease;
}

.alerta-ok { background: #f0fdf4; border-color: #16a34a; }
.alerta-erro { background: #fef2f2; border-color: #dc2626; }

@keyframes fadeIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* ===================== 13. TIPOGRAFIA UTILITÁRIA ===================== */
.dica { color: var(--txt-suave); font-size: 0.85rem; }
.numero, .valor { font-size: 1.1rem; font-weight: 700; color: var(--txt); }
.numero-grande { font-size: 1.5rem; font-weight: 800; color: var(--cor); }

/* ===================== 14. TABELAS ===================== */
.tabela {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid var(--borda);
  border-radius: var(--radius);
  overflow: hidden;
  font-size: 0.875rem;
  box-shadow: var(--shadow-sm);
}

.tabela th, .tabela td {
  padding: 11px 14px;
  border-bottom: 1px solid var(--borda);
  text-align: left;
  vertical-align: top;
}

.tabela th {
  background: #f8fafc;
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--txt-suave);
}

.tabela tr:last-child td { border-bottom: 0; }
.tabela tr:hover td { background: #fafafa; }

/* ===================== 15. AÇÕES ===================== */
.acoes { display: flex; gap: 8px; flex-wrap: wrap; }
.acoes form { margin: 0; }

/* ===================== 16. LISTAS ===================== */
.lista-info { list-style: none; padding: 0; }
.lista-info li { padding: 8px 0; border-bottom: 1px solid var(--borda); }
.lista-opcoes { padding-left: 20px; }
.termos { margin: 16px 0; background: #fafafa; border: 1.5px solid var(--borda); border-radius: var(--radius); padding: 14px; max-height: 300px; overflow: auto; }

/* ===================== 17. GALERIAS DE FOTOS ===================== */
.card-galeria { padding: 0; overflow: hidden; position: relative; }

.galeria-capa-wrap { position: relative; }

.galeria-capa {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.card-galeria:hover .galeria-capa { transform: scale(1.04); }

.galeria-capa-vazia {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: rgba(255,255,255,0.6);
  font-weight: 600;
}

/* ===================== 18. DIFERENCIAIS ===================== */
.secao-diferenciais {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 60px;
  padding: 48px 0;
  border-top: 2px solid var(--borda);
}

.diferencial-card {
  text-align: center;
  padding: 28px 20px;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--borda);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), transform var(--transition);
}

.diferencial-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }

.diferencial-icone {
  font-size: 2.8rem;
  width: 72px;
  height: 72px;
  background: var(--cor-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  border: 2px solid rgba(232,89,12,0.2);
}

.diferencial-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.diferencial-card p { font-size: 0.88rem; color: var(--txt-suave); line-height: 1.5; }

/* ===================== 19. PATROCINADORES ===================== */
.patrocinadores-grade {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 24px;
  padding: 20px 0;
}

.patrocinador-item {
  background: #fff;
  border: 1px solid var(--borda);
  border-radius: var(--radius);
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: box-shadow var(--transition), transform var(--transition);
  min-width: 120px;
}

.patrocinador-item:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }

.patrocinador-logo {
  max-height: 54px;
  max-width: 160px;
  object-fit: contain;
  filter: grayscale(40%);
  opacity: 0.8;
  transition: filter var(--transition), opacity var(--transition);
}

.patrocinador-item:hover .patrocinador-logo { filter: grayscale(0); opacity: 1; }

/* ===================== 20. FOOTER RICO ===================== */
.rodape {
  background: #111827;
  color: rgba(255,255,255,0.65);
  padding: 48px 24px 28px;
  margin-top: 80px;
}

.rodape-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  max-width: 1060px;
  margin: 0 auto 36px;
}

.rodape-marca img { height: 40px; margin-bottom: 12px; }
.rodape-marca strong { display: block; color: #fff; font-size: 1.1rem; font-weight: 800; margin-bottom: 8px; }
.rodape-marca p { font-size: 0.875rem; line-height: 1.6; }

.rodape h4 { color: #fff; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.1em; font-weight: 700; margin-bottom: 14px; }

.rodape-links { list-style: none; }
.rodape-links li { margin-bottom: 8px; }
.rodape-links a { color: rgba(255,255,255,0.6); font-size: 0.875rem; transition: color var(--transition); }
.rodape-links a:hover { color: var(--cor); }

.rodape-social { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.rodape-social a {
  width: 38px; height: 38px;
  background: rgba(255,255,255,0.08);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  transition: background var(--transition);
}
.rodape-social a:hover { background: var(--cor); }

.rodape-bottom {
  max-width: 1060px;
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.8rem;
}

.rodape-bottom a { color: var(--cor); }

/* Footer simples (fallback) */
.rodape-simples {
  border-top: 1px solid var(--borda);
  background: #fff;
  padding: 20px 24px;
  color: var(--txt-suave);
  font-size: 0.85rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

/* ===================== 21. PAINEL ADMIN — WORDPRESS STYLE ===================== */
.wp-admin-body {
  margin: 0;
  background: #f0f2f5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Admin Bar (Top) */
.wp-admin-bar {
  position: sticky;
  top: 0;
  z-index: 2000;
  height: 48px;
  background: #111827;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  flex-shrink: 0;
}

.wp-bar-left, .wp-bar-right { display: flex; align-items: center; gap: 8px; }

.wp-bar-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 6px 10px;
  border-radius: 6px;
  transition: background var(--transition);
}
.wp-bar-brand:hover { background: rgba(255,255,255,0.1); color: #fff; }

.wp-bar-link {
  color: rgba(255,255,255,0.65);
  font-size: 0.82rem;
  padding: 6px 10px;
  border-radius: 6px;
  transition: background var(--transition), color var(--transition);
}
.wp-bar-link:hover { background: rgba(255,255,255,0.08); color: #fff; }

.wp-bar-user { color: rgba(255,255,255,0.65); font-size: 0.82rem; }
.wp-bar-user strong { color: #fff; }

.wp-bar-logout {
  color: rgba(255,255,255,0.55);
  font-size: 0.82rem;
  padding: 6px 10px;
  border-radius: 6px;
  transition: background var(--transition), color var(--transition);
}
.wp-bar-logout:hover { background: #dc2626; color: #fff; }

/* Admin Wrapper */
.wp-admin-wrapper {
  display: flex;
  flex: 1;
  min-height: calc(100vh - 48px);
}

/* Sidebar */
.wp-sidebar {
  width: 248px;
  background: #1e2433;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  border-right: 1px solid rgba(255,255,255,0.06);
  overflow-y: auto;
  position: sticky;
  top: 48px;
  height: calc(100vh - 48px);
}

.wp-sidebar-header {
  padding: 20px 18px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  text-align: center;
}

.wp-logo-img { max-height: 44px; max-width: 160px; object-fit: contain; margin: 0 auto; }
.wp-logo-txt { color: #fff; font-weight: 800; font-size: 1rem; }

/* Sidebar Menu */
.wp-menu { padding: 12px 0 20px; }

.wp-menu-heading {
  color: rgba(255,255,255,0.3);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 14px 18px 6px;
}

.wp-menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,0.65);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 10px 18px;
  border-left: 3px solid transparent;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 1px 8px 1px 0;
}

.wp-menu-item:hover {
  background: rgba(255,255,255,0.07);
  color: #fff;
  text-decoration: none;
}

.wp-menu-item.ativo {
  background: rgba(232,89,12,0.18);
  color: var(--cor);
  border-left-color: var(--cor);
  font-weight: 600;
}

.wp-icon { font-size: 1.1rem; width: 22px; text-align: center; flex-shrink: 0; }

/* Admin Main Content */
.wp-main-content {
  flex: 1;
  padding: 28px 32px;
  overflow-x: auto;
  background: #f0f2f5;
}

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

.wp-page-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--txt);
  letter-spacing: -0.02em;
  margin: 0;
}

/* Admin Cards / Resumo */
.cards-resumo {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}

.cards-resumo .cartao {
  background: #fff;
  border: 1px solid var(--borda);
  border-radius: var(--radius);
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition);
  border-top: 4px solid var(--cor);
}

.cards-resumo .cartao:nth-child(2) { border-top-color: #f59e0b; }
.cards-resumo .cartao:nth-child(3) { border-top-color: #10b981; }
.cards-resumo .cartao:nth-child(4) { border-top-color: #3b82f6; }

.cards-resumo span { font-size: 0.8rem; font-weight: 600; color: var(--txt-suave); text-transform: uppercase; letter-spacing: 0.05em; }
.cards-resumo strong { font-size: 1.8rem; font-weight: 800; color: var(--txt); line-height: 1; }

/* ===================== 22. PWA INSTALL ===================== */
.pwa-banner {
  position: fixed;
  bottom: 16px;
  left: 16px;
  right: 16px;
  max-width: 540px;
  margin: 0 auto;
  background: #18181b;
  color: #fff;
  border-radius: 16px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.35);
  z-index: 9999;
  animation: pwaSlideUp 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.pwa-banner-info { display: flex; align-items: center; gap: 14px; }
.pwa-banner-icon { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; flex-shrink: 0; }
.pwa-banner-title { font-weight: 700; font-size: 0.9rem; line-height: 1.2; }
.pwa-banner-desc { font-size: 0.78rem; color: #a1a1aa; margin-top: 3px; }
.pwa-banner-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.pwa-btn-install { background: var(--cor); color: #fff; border: 0; border-radius: 8px; padding: 9px 16px; font-weight: 700; font-size: 0.85rem; cursor: pointer; white-space: nowrap; }
.pwa-btn-install:hover { filter: brightness(1.1); }
.pwa-btn-close { background: transparent; border: 0; color: #71717a; font-size: 1.4rem; cursor: pointer; padding: 4px; line-height: 1; }
.pwa-btn-close:hover { color: #fff; }

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

.pwa-modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 10000;
  backdrop-filter: blur(4px);
}

.pwa-modal {
  background: #fff;
  border-radius: 20px;
  max-width: 440px;
  width: 100%;
  padding: 28px;
  position: relative;
  color: var(--txt);
  box-shadow: var(--shadow-lg);
}

.pwa-modal h3 { margin: 0 0 10px; font-size: 1.2rem; font-weight: 800; }
.pwa-modal ol { margin: 16px 0; padding-left: 22px; font-size: 0.95rem; line-height: 1.7; }
.pwa-modal ol li { margin-bottom: 10px; }
.pwa-modal-close { position: absolute; top: 16px; right: 18px; font-size: 1.5rem; background: none; border: none; cursor: pointer; color: var(--txt-suave); }

/* ===================== 23. BOTÃO FOTOS DO ATLETA ===================== */
.btn-fotos-atleta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #0f172a, #1e3a5f);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 9px 16px;
  border-radius: var(--radius-sm);
  border: 0;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn-fotos-atleta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(15,23,42,0.3);
  color: #fff;
  text-decoration: none;
}

.btn-fotos-atleta .badge-num {
  background: var(--cor);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 50px;
}

/* ===================== 24. RESPONSIVO ===================== */
@media (max-width: 900px) {
  .rodape-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .wp-admin-wrapper { flex-direction: column; }
  .wp-sidebar { width: 100%; height: auto; position: static; flex-direction: row; overflow-x: auto; }
  .wp-sidebar { display: block; }
  .wp-main-content { padding: 18px 16px; }
  .wp-admin-bar { padding: 0 12px; }
  .hero-slide-content { padding: 40px 24px; }
  .busca-fotos-card { padding: 22px 20px; }
  .busca-fotos-header { flex-direction: column; align-items: flex-start; gap: 12px; }
  .widget-busca-fotos { margin: 0 -16px; }
  .banner { height: 150px; }
  .tabela { display: block; overflow-x: auto; }
  .grade { grid-template-columns: 1fr; }
  .secao-cabecalho { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 600px) {
  .topo { padding: 10px 14px; }
  .topo nav { gap: 4px; }
  .topo nav a { padding: 5px 8px; font-size: 0.82rem; }
  .rodape-grid { grid-template-columns: 1fr; gap: 24px; }
  .secao-diferenciais { grid-template-columns: 1fr 1fr; }
  .cards-resumo { grid-template-columns: repeat(2, 1fr); }
  .hero-slide-content { padding: 30px 16px; }
  .pwa-banner { left: 8px; right: 8px; }
}
