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

@keyframes directorBorder { 0%,100% { border-color: var(--pink); } 50% { border-color: var(--blue); } }
@keyframes eventPulse    { 0%,100% { box-shadow: 0 0 8px rgba(56,189,248,0.2), 0 0 24px rgba(56,189,248,0.1); } 50% { box-shadow: 0 0 18px rgba(56,189,248,0.55), 0 0 48px rgba(56,189,248,0.28); } }
@keyframes cardShine     { to { left: 130%; } }

:root {
  --bg:           #07070f;
  --bg-alt:       #0c0c1a;
  --bg-card:      rgba(255,255,255,0.04);
  --border:       rgba(255,255,255,0.08);
  --border-hover: rgba(255,255,255,0.18);
  --blue:         #38bdf8;
  --blue-dim:     rgba(56,189,248,0.15);
  --blue-glow:    rgba(56,189,248,0.35);
  --pink:         #e879f9;
  --pink-dim:     rgba(232,121,249,0.15);
  --pink-glow:    rgba(232,121,249,0.35);
  --text:         #eef2ff;
  --text-muted:   #a0abb8;
  --text-dim:     #8d95a3;
  --font-display: 'Orbitron', sans-serif;
  --font-body:    'DM Sans', sans-serif;
  --radius:       10px;
  --radius-lg:    16px;
  --nav-h:        72px;
  /* Motion system */
  --t-fast:       0.15s;
  --t-base:       0.25s;
  --t-slow:       0.55s;
  /* Semantic feedback */
  --error:        #f87171;
  --error-dim:    rgba(248,113,113,0.15);
  --success:      #34d399;
  --success-dim:  rgba(52,211,153,0.15);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
select, input, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  background: none;
  border: none;
  outline: none;
}

/* ===== UTILITIES ===== */
.container { max-width: 1260px; margin: 0 auto; padding: 0 24px; }
.text-blue  { color: var(--blue); }
.text-pink  { color: var(--pink); }
.hidden     { display: none !important; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--blue) 0%, #818cf8 100%);
  color: #07070f;
  animation: pulseGlow 3.5s ease-in-out infinite;
}
.btn-primary:hover {
  animation: none;
  transform: translateY(-2px);
  box-shadow: 0 0 32px var(--blue-glow), 0 4px 20px rgba(56,189,248,0.4);
}

.btn-outline {
  border: 1px solid var(--border-hover);
  color: var(--text);
}
.btn-outline:hover {
  border-color: var(--blue);
  color: var(--blue);
  box-shadow: 0 0 16px var(--blue-dim);
}

.btn-ghost {
  color: var(--text-muted);
}
.btn-ghost:hover { color: var(--text); }

.btn-lg { padding: 14px 32px; font-size: 0.78rem; }
.btn-full { width: 100%; }

.btn:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}
.btn:active { transform: scale(0.97); }
.btn:disabled,
.btn[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}

/* ===== NAV ===== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 100;
  transition: background 0.3s, backdrop-filter 0.3s, border-color 0.3s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(7,7,15,0.85);
  backdrop-filter: blur(20px);
  border-bottom-color: var(--border);
}

.nav-inner {
  max-width: 1260px;
  margin: 0 auto;
  padding: 0 16px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.nav-logo img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--border);
}
.nav-logo span {
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--text);
  line-height: 1.3;
  max-width: min(180px, 45vw);
}

/* Mobile-first: nav links hidden, toggle visible */
.nav-links {
  display: none;
  list-style: none;
  gap: 4px;
}
.nav-links a {
  display: block;
  padding: 8px 14px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
}
.nav-links a:hover {
  color: var(--text);
  background: var(--bg-card);
}

/* nav-auth always visible — shows login/logout btn on mobile */
.nav-auth {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  margin-left: auto;
}
.nav-auth #btn-cadastro { display: none; }

.nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-muted);
  border-radius: 2px;
  transition: all 0.2s;
}

/* Mobile open state */
.nav-links.open {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: var(--nav-h); left: 0; right: 0;
  background: rgba(7,7,15,0.97);
  backdrop-filter: blur(20px);
  padding: 24px;
  border-bottom: 1px solid var(--border);
  z-index: 99;
}
.nav-links.open + .nav-auth {
  position: fixed;
  bottom: 64px; left: 0; right: 0;
  padding: 16px 24px;
  background: rgba(7,7,15,0.97);
  border-top: 1px solid var(--border);
  flex-direction: column;
  margin-left: 0;
  z-index: 99;
}
.nav-links.open + .nav-auth #btn-cadastro { display: flex; }

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 52vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* ===== FUNDO GLOBAL FIXO ===== */
.site-bg {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 100vh;
  height: 100svh; /* trava no iOS Safari — impede zoom ao rolar */
  z-index: -1;
  pointer-events: none;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}
.site-bg-img {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: contain; /* mostra imagem inteira sem cortar */
  object-position: center;
  opacity: 0.28;
  filter: saturate(1.3);
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}
@media (min-width: 600px) {
  .site-bg-img { object-fit: cover; } /* desktop: preenche a tela */
}
.site-bg--dim .site-bg-img { opacity: 0.24; }
@media (min-width: 600px) {
  .site-bg-img { opacity: 0.38; }
  .site-bg--dim .site-bg-img { opacity: 0.28; }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(56,189,248,0.08) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 80%, rgba(232,121,249,0.06) 0%, transparent 60%),
    linear-gradient(to bottom, rgba(7,7,15,0.05) 0%, rgba(7,7,15,0.35) 60%, rgba(7,7,15,0.82) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: calc(var(--nav-h) + 8px) 16px 40px;
  max-width: 800px;
  opacity: 1;
  animation: heroIn 0.9s ease forwards;
}
.hero-content .section-header { margin-bottom: 0; }

@keyframes heroIn {
  from { transform: translateY(24px); }
  to   { transform: translateY(0); }
}

.hero-eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 24px;
  padding: 6px 16px;
  border: 1px solid var(--blue-dim);
  border-radius: 100px;
  background: var(--blue-dim);
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 6.5rem);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 28px;
}
.hero-title-accent {
  color: transparent;
  -webkit-text-stroke: 2px var(--blue);
  text-shadow: 0 0 40px var(--blue-glow);
}

.hero-subtitle {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 40px;
  font-weight: 300;
}

.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 64px;
}

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
}
.hero-stat {
  text-align: center;
  padding: 0 6px;
  flex: 1;
}
.hero-stat-number {
  display: block;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1;
  margin-bottom: 6px;
}
.hero-stat-label {
  font-size: 0.6rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}
.hero-stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}

.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--text-dim);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  animation: pulse 2s ease-in-out infinite;
}
.hero-scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--text-dim), transparent);
}
@keyframes pulse {
  0%, 100% { opacity: 0.5; transform: translateX(-50%) translateY(0); }
  50%       { opacity: 1;   transform: translateX(-50%) translateY(6px); }
}

/* ===== SECTIONS ===== */
.section { padding: 60px 0; background: rgba(7,7,15,0.62); }
.section-alt { background: rgba(10,10,20,0.82); }

.section-header {
  text-align: center;
  margin-bottom: 56px;
}
.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 16px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 16px;
  line-height: 1.1;
}
.section-desc {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 500px;
  margin: 0 auto;
}

/* ===== QUEM SOMOS ===== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: start;
}
.about-text .about-lead {
  font-size: 1.1rem;
  color: var(--text);
  line-height: 1.7;
  margin-bottom: 20px;
  font-weight: 400;
}
.about-text p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 16px;
}
.about-text strong { color: var(--blue); font-weight: 600; }
.about-actions {
  display: flex;
  gap: 12px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.about-pillars {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.pillar-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: border-color 0.2s, transform 0.2s;
  position: relative;
}
@media (hover: hover) {
  .pillar-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-3px);
  }
}
.pillar-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}
.pillar-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  line-height: 0;
}
.icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  line-height: 0;
  vertical-align: middle;
}
.pillar-card h4 {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 0;
}
.pillar-card p {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.6;
}


/* ===== DIRECTORS GRID ===== */
.directors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 8px;
}
.director-card {
  background: var(--bg-card);
  border: 1px solid var(--pink);
  border-radius: 14px;
  padding: 24px;
  animation: directorBorder 4s ease-in-out infinite;
}
.director-role {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.director-name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 12px;
}
.director-card p {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ===== CALENDAR FILTERS ===== */
.calendar-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 40px;
}
.filter-btn {
  padding: 10px 18px;
  min-height: 44px;
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-muted);
  border: 1px solid var(--border);
  background: var(--bg-card);
  transition: all var(--t-base);
}
@media (hover: hover) {
  .filter-btn:hover { border-color: var(--border-hover); color: var(--text); }
}
.filter-btn:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}
.filter-btn.active {
  border-color: var(--blue);
  color: var(--blue);
  background: var(--blue-dim);
}

/* ===== EVENTS GRID ===== */
.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.event-card {
  background: rgba(16, 18, 36, 0.20);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(8px);
  display: flex;
  flex-direction: column;
  animation: eventPulse 3s ease-in-out infinite;
}
.event-card--link { cursor: pointer; }
.event-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--game-color, var(--blue));
  opacity: 0.6;
  transition: opacity var(--t-base);
}
@media (hover: hover) {
  .event-card:hover {
    border-color: var(--game-color, var(--border-hover));
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.5), 0 0 0 1px var(--game-color, transparent);
  }
  .event-card:hover::before { opacity: 1; }
}

.event-card-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.event-game-logo {
  width: 36px;
  height: 36px;
  object-fit: contain;
  flex-shrink: 0;
}
.event-game-logo[data-game="cs2"],
.event-game-logo[data-game="fifa"],
.event-game-logo[data-game="fortnite"],
.event-game-logo[data-game="freefire"],
.event-game-logo[data-game="mlbb"] {
  width: 52px;
  height: 52px;
}

/* Team card logos */
.team-card-logo {
  width: 32px;
  height: 32px;
  object-fit: contain;
  flex-shrink: 0;
}
.team-card-logo[data-game="Counter Strike 2"],
.team-card-logo[data-game="EA FC 26"],
.team-card-logo[data-game="Free Fire"],
.team-card-logo[data-game="Mobile Legends: Bang Bang"] {
  width: 46px;
  height: 46px;
}
.event-game-tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 4px;
  background: var(--game-dim, var(--blue-dim));
  color: var(--game-color, var(--blue));
}

.event-date {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 12px;
}
.event-date-day {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 1;
  color: var(--text);
}
.event-date-meta {
  display: flex;
  flex-direction: column;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.event-name {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
  line-height: 1.3;
}
.event-location {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}
.event-location span { color: var(--text); }

.event-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.event-prize {
  margin-top: auto;
  padding-top: 14px;
}
.event-prize span {
  display: block;
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .07em;
  margin-bottom: 3px;
}
.event-prize strong {
  color: var(--game-color, var(--text));
  font-size: 1.25rem;
  font-weight: 700;
}
.event-btn {
  font-size: 0.72rem;
  padding: 7px 14px;
  border-radius: 6px;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--blue-dim);
  color: var(--blue);
  border: 1px solid rgba(56,189,248,0.2);
  transition: all 0.2s;
}
.event-btn:hover {
  background: var(--blue);
  color: #07070f;
}

/* ===== NEWS GRID ===== */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}
.news-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
}
.news-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -70%;
  width: 40%;
  height: 100%;
  background: linear-gradient(to right, transparent, rgba(255,255,255,0.06), transparent);
  transform: skewX(-15deg);
  pointer-events: none;
  z-index: 1;
}
@media (hover: hover) {
  .news-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(0,0,0,0.35);
    border-color: var(--blue);
  }
  .news-card:hover::before {
    animation: cardShine 0.55s ease-in-out forwards;
  }
}

.news-thumb {
  height: 180px;
  position: relative;
  overflow: hidden;
}
.news-thumb-bg {
  width: 100%;
  height: 100%;
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.4s;
}
@media (hover: hover) {
  .news-card:hover .news-thumb-bg { transform: scale(1.04); }
}
.news-thumb-icon {
  font-size: 3rem;
  opacity: 0.4;
}

.news-body { padding: 20px 24px 24px; }

.news-cat {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--pink);
  margin-bottom: 10px;
}
.news-title {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.35;
  margin-bottom: 10px;
}
.news-excerpt {
  font-size: 0.83rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 16px;
}
.news-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.news-date {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-dim);
}
.news-link {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--pink);
  letter-spacing: 0.05em;
  transition: opacity 0.2s;
}
.news-link:hover { opacity: 0.7; }

/* ===== FORM ===== */
.form-wrap {
  max-width: 760px;
  margin: 0 auto;
  background: rgba(255,255,255,0.07);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 16px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), 0 4px 32px rgba(0,0,0,0.3);
}

.form-tabs {
  display: flex;
  gap: 0;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 4px;
  margin-bottom: 36px;
}
.form-tab {
  flex: 1;
  padding: 10px;
  border-radius: 7px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: all 0.2s;
}
.form-tab.active {
  background: var(--blue-dim);
  color: var(--blue);
  border: 1px solid rgba(56,189,248,0.25);
}

.form-panel { display: none; }
.form-panel.active { display: block; }

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin-bottom: 0;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}
.form-group label {
  font-size: 0.82rem;
  font-weight: 600;
  color: #ffffff;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: var(--radius);
  color: #ffffff;
  font-size: 0.9rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(255,255,255,0.4); }
.form-group input[type="date"]::-webkit-calendar-picker-indicator { filter: invert(1); opacity: 0.7; cursor: pointer; }
.form-group select { color: #ffffff; }
.form-group select option { background: #0c0c1a; color: #ffffff; }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px var(--blue-dim);
  outline: none;
}
.form-group input:focus-visible,
.form-group select:focus-visible,
.form-group textarea:focus-visible {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px var(--blue-dim);
}
.form-group input:disabled,
.form-group select:disabled,
.form-group textarea:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.form-group input:invalid:not(:placeholder-shown) {
  border-color: var(--error);
  box-shadow: 0 0 0 2px var(--error-dim);
}
.form-group input:valid:not(:placeholder-shown):not([type="password"]):not([type="email"]) {
  border-color: rgba(52,211,153,0.4);
}

.form-section-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-align: center;
  margin-bottom: 20px;
  margin-top: 36px;
}

/* ===== FORM NOTICES ===== */
.form-notices {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-bottom: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
}
.notice-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
}
.notice-num {
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--blue);
  background: var(--blue-dim);
  border: 1px solid rgba(56,189,248,0.2);
  border-radius: 4px;
  padding: 3px 7px;
  flex-shrink: 0;
  letter-spacing: 0.05em;
  margin-top: 1px;
}
.notice-item p {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.55;
}
.form-note {
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-top: -8px;
  margin-bottom: 20px;
  font-style: italic;
}
.logged-in-org-msg {
  text-align: center;
  padding: 32px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text);
  line-height: 1.7;
}

/* ===== MODAL ===== */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.modal.open { display: flex; }

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(8px);
}
.modal-box {
  position: relative;
  z-index: 1;
  background: #0e0e1f;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  width: 100%;
  max-width: 420px;
  animation: modalIn 0.25s ease both;
}
@keyframes modalIn {
  from { opacity: 0; transform: scale(0.95) translateY(10px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-close {
  position: absolute;
  top: 16px; right: 16px;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.modal-close:hover { color: var(--text); border-color: var(--border-hover); }

.modal-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 24px;
}
.modal-desc {
  font-size: 0.83rem;
  color: var(--text-muted);
  margin-bottom: 24px;
  line-height: 1.6;
}
.modal-desc a { color: var(--blue); }
.modal-form { display: flex; flex-direction: column; gap: 0; }
.modal-switch {
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 16px;
}
.modal-switch a { color: var(--blue); font-weight: 500; }
.form-forgot {
  display: block;
  text-align: right;
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-top: -8px;
  margin-bottom: 20px;
  transition: color 0.2s;
}
.form-forgot:hover { color: var(--blue); }

/* ===== GOOGLE AUTH ===== */
.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 16px 0;
}
.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}
.auth-divider span {
  font-size: 0.72rem;
  color: var(--text-dim);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.btn-google {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 11px 16px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 0.85rem;
  font-weight: 500;
  font-family: var(--font-body);
  cursor: pointer;
  transition: all 0.2s;
  margin-bottom: 4px;
}
.btn-google:hover {
  background: rgba(255,255,255,0.09);
  border-color: var(--border-hover);
}

/* ===== TOAST ===== */
.toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #1a1a2e;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 24px;
  font-size: 0.85rem;
  color: var(--text);
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
  z-index: 1200;
  white-space: nowrap;
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.toast.success { border-color: var(--blue); color: var(--blue); }
.toast.error   { border-color: #f87171; color: #f87171; }

/* ===== FOOTER ===== */
.footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding: 64px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin-bottom: 40px;
}
.footer-logo {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--border);
  margin-bottom: 16px;
}
.footer-brand p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 20px;
}
.footer-socials {
  display: flex;
  gap: 8px;
}
.social-link {
  width: 36px; height: 36px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  color: rgba(255,255,255,0.6);
}
.social-link img,
.social-link svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  transition: color 0.2s, opacity 0.2s;
}
.social-link img {
  object-fit: contain;
  filter: invert(1);
  opacity: 0.7;
}
.social-link:hover {
  border-color: var(--blue);
  background: var(--blue-dim);
  color: var(--blue);
}
.social-link:hover img {
  opacity: 1;
  filter: invert(1);
}

.footer-col h4 {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 20px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col li,
.footer-col li a {
  font-size: 0.83rem;
  color: var(--text-muted);
  transition: color 0.2s;
}
.footer-col li a:hover { color: var(--text); }

/* ===== PARCEIROS ===== */
.partners-strip {
  border-top: 1px solid var(--border);
  padding: 40px 0 36px;
  margin-bottom: 0;
}
.partners-label {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dim);
  text-align: center;
  margin-bottom: 28px;
}
.partners-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}
.partner-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 16px 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.03);
  min-width: 130px;
  text-align: center;
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
  text-decoration: none;
}
.partner-item:hover {
  border-color: var(--blue-glow);
  background: var(--blue-dim);
  transform: translateY(-2px);
}
.partner-name {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.05em;
}
.partner-desc {
  font-size: 0.62rem;
  color: var(--text-dim);
  line-height: 1.3;
  max-width: 120px;
}
.partner-item--logo {
  min-width: clamp(100px, 35vw, 160px);
  padding: 14px 20px;
}
.partner-logo {
  height: 48px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
}
.partner-logo--light-bg {
  background: white;
  border-radius: 6px;
  padding: 6px 10px;
  height: 56px;
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
}
.footer-bottom p {
  font-size: 0.75rem;
  color: var(--text-dim);
}

/* ===== MEMBERS PAGE ===== */
.members-page { min-height: 100vh; padding-top: var(--nav-h); }
.members-header {
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
  padding: 24px 0;
}
.members-profile {
  display: flex;
  align-items: center;
  gap: 24px;
}
.members-avatar {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue-dim), var(--pink-dim));
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--blue);
  flex-shrink: 0;
}
.members-info h2 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 4px;
}
.members-info p { font-size: 0.85rem; color: var(--text-muted); }
.member-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 100px;
  margin-top: 8px;
}
.member-badge.active { background: rgba(52,211,153,0.15); color: #34d399; border: 1px solid rgba(52,211,153,0.3); }
.member-badge.inactive { background: rgba(248,113,113,0.1); color: #f87171; border: 1px solid rgba(248,113,113,0.2); }

.members-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: start;
  padding: 24px 0;
}
.members-sidebar { display: flex; flex-direction: row; flex-wrap: wrap; gap: 8px; }
.sidebar-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: var(--radius);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  border: 1px solid transparent;
  transition: all 0.2s;
}
.sidebar-link:hover { color: var(--text); background: var(--bg-card); }
.sidebar-link.active {
  color: var(--blue);
  background: var(--blue-dim);
  border-color: rgba(56,189,248,0.2);
}

.members-content { display: flex; flex-direction: column; gap: 24px; }
.members-card {
  background: rgba(255,255,255,0.07);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px;
  position: relative;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), 0 4px 20px rgba(0,0,0,0.25);
}
.members-card h3 {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue);
  text-shadow: 0 0 18px rgba(56,189,248,0.45);
  margin-bottom: 20px;
}

.stats-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
.stat-box {
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06), 0 2px 12px rgba(0,0,0,0.2);
}
.stat-box-num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--blue);
  line-height: 1;
  margin-bottom: 6px;
}
.stat-box-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

.event-list { display: flex; flex-direction: column; gap: 12px; }
.event-list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.event-list-name { font-weight: 500; font-size: 0.9rem; margin-bottom: 3px; }
.event-list-date { font-size: 0.75rem; color: var(--text-muted); }
.status-pill {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 100px;
}
.status-pill.confirmed  { background: rgba(52,211,153,0.1);  color: #34d399; }
.status-pill.pending    { background: rgba(251,191,36,0.1);  color: #fbbf24; }
.status-pill.eliminated { background: rgba(239,68,68,0.1);   color: #f87171; }

/* ===== RESPONSIVE (mobile-first: min-width) ===== */

/* Large phones / landscape */
@media (min-width: 600px) {
  .nav-inner { padding: 0 24px; }
  .hero-content { padding: calc(var(--nav-h) + 48px) 24px 80px; }
  .hero-stat { padding: 0 28px; flex: unset; }
  .hero-stat-number { font-size: 1.8rem; }
  .hero-stat-label { font-size: 0.75rem; letter-spacing: 0.12em; }
  .hero-subtitle { font-size: 1rem; }
  .about-pillars { grid-template-columns: 1fr 1fr; }
  .form-wrap { padding: 32px 28px; }
  .form-row { grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
  .form-notices { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .footer-bottom { flex-direction: row; align-items: center; text-align: left; justify-content: space-between; }
  .stats-row { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .members-header { padding: 40px 0; }
  .members-card { padding: 24px; }
  .members-grid { padding: 32px 0; }
}

/* Tablet / desktop */
@media (min-width: 900px) {
  .section { padding: 100px 0; }
  .hero-content { padding: calc(var(--nav-h) + 60px) 24px 80px; }
  .hero-stat { padding: 0 40px; }
  .hero-stat-number { font-size: 2rem; }
  .hero-subtitle { font-size: 1.05rem; }
  .about-grid { grid-template-columns: 1fr 1fr; gap: 64px; }
  .form-wrap { padding: 40px; }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 56px; }
  .members-header { padding: 48px 0; }
  .members-card { padding: 28px; }
  .members-grid { grid-template-columns: 260px 1fr; gap: 32px; padding: 40px 0; }
  .members-sidebar { flex-direction: column; }

  /* Desktop nav */
  .nav-inner { gap: 40px; }
  .nav-links { display: flex; flex: 1; }
  .nav-links.open { position: static; flex-direction: row; background: none; backdrop-filter: none; padding: 0; border: none; }
  .nav-links.open + .nav-auth { position: static; padding: 0; background: none; border: none; flex-direction: row; margin-left: 0; }
  .nav-links.open + .nav-auth #btn-cadastro { display: flex; }
  .nav-auth { margin-left: 0; }
  .nav-auth #btn-cadastro { display: inline-flex; }
  .nav-toggle { display: none; }
}

/* ===== ATHLETE REGISTRATION — rules panel, badges, docs ===== */
.rules-panel {
  background: rgba(245,158,11,0.08);
  border: 1px solid rgba(245,158,11,0.3);
  border-radius: 10px;
  padding: 16px 20px;
  margin-bottom: 24px;
}
.rules-panel-title {
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #f59e0b;
  margin-bottom: 10px;
}
.rules-list {
  margin: 0;
  padding-left: 18px;
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.7;
}
.rules-list li { margin-bottom: 4px; }
.rules-list strong { color: var(--text); }

/* ===== DATE DROPDOWNS ===== */
.date-dropdowns { display: flex; gap: 8px; }
.date-select {
  flex: 1;
  padding: 12px 8px;
  background: rgba(255,255,255,0.08);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 0.85rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  cursor: pointer;
}
.date-select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px var(--blue-dim);
  outline: none;
}
.date-select option { background: #0c0c1a; }

/* ===== CHECKBOX FORA DO ES (formulário atleta) ===== */
.check-fora-es {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 0.84rem;
  color: var(--text-muted);
  cursor: pointer;
  margin-top: 2px;
  margin-bottom: 4px;
  user-select: none;
}
.check-fora-es input[type=checkbox] {
  accent-color: var(--pink);
  width: 15px;
  height: 15px;
  cursor: pointer;
  flex-shrink: 0;
}
.check-fora-es:has(input:checked) {
  color: var(--text);
}

.badge-fora-es {
  display: inline-block;
  font-size: 0.65rem;
  background: rgba(249,115,22,0.15);
  color: #f97316;
  border: 1px solid rgba(249,115,22,0.3);
  border-radius: 4px;
  padding: 1px 6px;
  margin-left: 6px;
  vertical-align: middle;
}

.athlete-docs {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.team-card-status {
  font-size: 0.72rem;
  margin-top: 10px;
}
.team-card-status.pending { color: #f59e0b; }
.team-card-status.complete { color: #34d399; }

/* ===== FUNCOES GRID (multi-role checkboxes) ===== */
.funcoes-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 12px;
  padding: 4px 0;
}
@media (min-width: 600px) {
  .funcoes-grid { grid-template-columns: repeat(4, 1fr); }
}
.funcoes-section-label {
  grid-column: 1 / -1;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-top: 10px;
  padding-bottom: 2px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.funcoes-section-label:first-child { margin-top: 0; }
.funcao-check {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.82rem;
  cursor: pointer;
  color: var(--text);
  padding: 6px 8px;
  border-radius: 6px;
  border: 1px solid transparent;
  transition: background 0.15s, border-color 0.15s;
  user-select: none;
}
.funcao-check:hover { background: rgba(255,255,255,0.06); }
.funcao-check input[type=checkbox],
.funcao-check input[type=radio] {
  accent-color: var(--blue);
  width: 15px;
  height: 15px;
  cursor: pointer;
  flex-shrink: 0;
}
.funcao-check:has(input:checked) {
  background: rgba(96,165,250,0.12);
  border-color: rgba(96,165,250,0.35);
}

.badge-modalidade-eafc {
  display: inline-block;
  font-size: 0.62rem;
  background: rgba(99,102,241,0.15);
  color: #818cf8;
  border: 1px solid rgba(99,102,241,0.3);
  border-radius: 4px;
  padding: 1px 5px;
  margin-left: 6px;
  vertical-align: middle;
}

/* ===== ATLETAS LIVRES GRID ===== */
.atletas-livres-filters { margin-bottom: 20px; }
.atletas-livres-grid { display: grid; grid-template-columns: 1fr; gap: 12px; margin-top: 16px; }
@media (min-width: 600px)  { .atletas-livres-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px)  { .atletas-livres-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1260px) { .atletas-livres-grid { grid-template-columns: repeat(4, 1fr); } }

.atleta-livre-card {
  background: rgba(255,255,255,0.07);
  border: 1px solid var(--border);
  border-top: 3px solid var(--game-color, var(--blue));
  border-radius: var(--radius);
  padding: 16px;
  transition: transform 0.15s, border-color 0.2s, box-shadow 0.2s;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.07), 0 4px 16px rgba(0,0,0,0.2);
}
.atleta-livre-card:hover {
  transform: translateY(-2px);
  border-color: var(--game-color, var(--blue));
  box-shadow: 0 0 20px color-mix(in srgb, var(--game-color, var(--blue)) 35%, transparent), 0 6px 24px rgba(0,0,0,0.35);
}
.atleta-livre-game {
  font-size: .65rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .1em; color: var(--game-color, var(--blue)); margin-bottom: 6px;
}
.atleta-livre-name { font-family: var(--font-display); font-size: .85rem; font-weight: 700; margin-bottom: 8px; }
.atleta-livre-nick { color: var(--text-muted); font-size: .8rem; font-weight: 400; font-family: var(--font-body); }
.atleta-livre-funcoes { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 8px; }
.atleta-livre-meta { font-size: .72rem; color: var(--text-muted); }

/* ===== PRÊMIOS GRID ===== */
.premios-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 600px) { .premios-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .premios-grid { grid-template-columns: repeat(3, 1fr); } }

.premio-card {
  background: rgba(255,255,255,0.07);
  border: 1px solid var(--border);
  border-top: 3px solid var(--premio-color, var(--blue));
  border-radius: var(--radius);
  padding: 16px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.07), 0 4px 16px rgba(0,0,0,0.2);
}
.premio-tipo {
  font-size: .65rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .1em; color: var(--text-muted); margin-bottom: 6px;
}
.premio-titulo { font-family: var(--font-display); font-size: .9rem; font-weight: 700; color: var(--blue); margin-bottom: 4px; }
.premio-jogo, .premio-data { font-size: .72rem; color: var(--text-muted); }
.premio-data { margin-top: 2px; }
.premio-desc { font-size: .8rem; margin-top: 8px; line-height: 1.5; }

/* ===== MEUS DADOS INFO ROWS ===== */
.info-rows { display: flex; flex-direction: column; }
.info-row {
  display: flex; align-items: flex-start; gap: 16px;
  padding: 12px 0; border-bottom: 1px solid var(--border); font-size: .88rem;
}
.info-row:last-child { border-bottom: none; }
.info-label {
  min-width: 140px; font-size: .75rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .07em;
  color: var(--text-muted); flex-shrink: 0;
}

/* ===== DOC STATUS BADGES ===== */
.doc-status-badge {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: .72rem; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; padding: 3px 10px; border-radius: 20px;
}
.doc-status-badge.rascunho       { background: rgba(100,100,120,.18); color: var(--text-muted); }
.doc-status-badge.pendente       { background: rgba(100,100,120,.18); color: var(--text-muted); } /* legado */
.doc-status-badge.aguardando     { background: rgba(251,146,60,.15);  color: #fb923c; border: 1px solid rgba(251,146,60,.3); }
.doc-status-badge.aprovado       { background: rgba(52,211,153,.12);  color: #34d399; border: 1px solid rgba(52,211,153,.25); }
.doc-status-badge.rejeitado      { background: rgba(248,113,113,.12); color: #f87171; border: 1px solid rgba(248,113,113,.25); }
.doc-status-badge.precisa-reenvio { background: rgba(192,132,252,.12); color: #c084fc; border: 1px solid rgba(192,132,252,.25); }

/* Header badge (after member name in atleta.html) */
#doc-status-badge { margin-left: 8px; vertical-align: middle; }

/* ===== DOC UPLOAD ITEMS ===== */
.doc-upload-item {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 10px 14px;
  background: rgba(255,255,255,0.07); border: 1px solid var(--border); border-radius: 10px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06), 0 2px 10px rgba(0,0,0,0.18);
}
.doc-upload-item.doc-uploaded { border-color: rgba(52,211,153,.25); }
.doc-upload-item-label { font-size: .85rem; font-weight: 500; flex: 1; }
.doc-check { font-size: 1rem; color: #34d399; flex-shrink: 0; }
.doc-aguardando-notice {
  font-size: .75rem; color: #fb923c;
  background: rgba(251,146,60,.1); border: 1px solid rgba(251,146,60,.2);
  padding: 3px 10px; border-radius: 8px;
}

/* ===== SOLICITAÇÃO CARDS (convites + requests) ===== */
.solicitacao-card {
  background: rgba(255,255,255,0.07);
  border: 1px solid var(--border);
  border-left: 3px solid var(--blue);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: .85rem;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.07), 0 4px 16px rgba(0,0,0,0.2);
}
.solicitacao-card-header {
  font-weight: 600; margin-bottom: 4px;
}
.solicitacao-card-meta {
  font-size: .78rem; color: var(--text-muted); margin-bottom: 10px;
}
.solicitacao-card-actions {
  display: flex; gap: 8px; flex-wrap: wrap;
}

/* ===== CONVIDAR BUTTON (atletas livres cards) ===== */
.atleta-livre-card .invite-btn,
.atleta-livre-card .btn.invite-btn {
  display: block; width: 100%; margin-top: 10px;
  font-size: .8rem; padding: 6px 12px; text-align: center;
}

.menor-badge {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: .72rem; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; padding: 3px 10px; border-radius: 20px;
  background: rgba(251,191,36,.15); color: #fbbf24;
  border: 1px solid rgba(251,191,36,.3);
}

.doc-hint {
  font-size: .82rem; color: var(--text-muted);
  text-align: center; padding: 8px 0;
}

/* ===================================================================
   HULY-STYLE VISUAL EFFECTS
   =================================================================== */

/* ----- Pulse glow keyframe (btn-primary) ----- */
@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 20px var(--blue-glow); }
  50%       { box-shadow: 0 0 44px rgba(56,189,248,0.55), 0 0 80px rgba(56,189,248,0.14); }
}

/* ----- Scroll-triggered animations (desktop only) ----- */
/* On mobile: content always visible — no opacity tricks that cause blank sections
   on slow connections. Scroll animations are a desktop enhancement only. */
.animate-on-scroll {
  transition: opacity 0.65s ease, transform 0.65s ease;
  transition-delay: calc(var(--i, 0) * 80ms);
}
@media (min-width: 900px) {
  .animate-on-scroll.is-observed:not(.is-visible) {
    opacity: 0;
    transform: translateY(26px);
  }
  .animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ----- Hero: floating colour blobs ----- */
.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  will-change: transform;
  z-index: 0;
}
.hero-blob-blue {
  width: 520px;
  height: 520px;
  background: rgba(56, 189, 248, 0.16);
  top: -100px;
  left: 6%;
  animation: blobFloat 9s ease-in-out infinite;
}
.hero-blob-pink {
  width: 400px;
  height: 400px;
  background: rgba(232, 121, 249, 0.12);
  bottom: -60px;
  right: 5%;
  animation: blobFloat 11s ease-in-out infinite reverse;
}
@keyframes blobFloat {
  0%, 100% { transform: translateY(0) scale(1); }
  40%       { transform: translateY(-28px) scale(1.04); }
  70%       { transform: translateY(18px) scale(0.97); }
}
.hero-blob { display: none; }
@media (min-width: 600px) {
  .hero-blob { display: block; }
}

/* ----- Hero: mouse spotlight ----- */
.hero-spotlight {
  --mx: 50%;
  --my: 50%;
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(
    700px circle at var(--mx) var(--my),
    rgba(56, 189, 248, 0.08) 0%,
    transparent 65%
  );
}

/* ----- Hero: gradient title ----- */
.hero-gradient-title {
  background: linear-gradient(135deg, #eef2ff 0%, #b8d4f0 55%, #c4a8f8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.hero-gradient-title .text-blue {
  background: linear-gradient(135deg, var(--blue) 0%, #818cf8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ----- Hero: game ticker ----- */
.hero-ticker-wrap {
  position: absolute;
  bottom: 20px;
  left: 0;
  right: 0;
  height: 50px;
  overflow: hidden;
  z-index: 1;
  display: flex;
  align-items: center;
  mask-image: linear-gradient(to right, transparent 0px, #000 40px, #000 calc(100% - 40px), transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0px, #000 40px, #000 calc(100% - 40px), transparent 100%);
}
.hero-ticker {
  display: flex;
  gap: 56px;
  align-items: center;
  animation: tickerScroll 20s linear infinite;
  white-space: nowrap;
  will-change: transform;
}
.hero-ticker-item {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  user-select: none;
}
.hero-ticker-item img {
  height: 42px;
  width: auto;
  max-width: 80px;
  object-fit: contain;
  opacity: 0.6;
  display: inline-block;
}
.hero-ticker-sep {
  color: rgba(255,255,255,0.15);
  flex-shrink: 0;
  font-size: 1.1rem;
}
@keyframes tickerScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ----- Cards: glass morphism + enhanced hover ----- */
.pillar-card {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06), 0 4px 20px rgba(0,0,0,0.2);
}
@media (hover: hover) {
  .pillar-card:hover {
    box-shadow:
      inset 0 1px 0 rgba(255,255,255,0.1),
      0 12px 40px rgba(0,0,0,0.5),
      0 0 0 1px var(--border-hover);
  }
}
.director-card {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04), 0 2px 12px rgba(0,0,0,0.15);
}
.news-card {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 2px 12px rgba(0,0,0,0.15);
}
@media (hover: hover) {
  .news-card:hover {
    box-shadow: 0 12px 40px rgba(0,0,0,0.45), 0 0 0 1px var(--border-hover);
  }
}

/* ----- Empty state ----- */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 64px 24px;
  text-align: center;
  color: var(--text-muted);
  grid-column: 1 / -1;
}
.empty-state-icon {
  font-size: 2.5rem;
  opacity: 0.4;
}
.empty-state-title {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.empty-state-desc {
  font-size: 0.82rem;
  color: var(--text-dim);
  max-width: 280px;
}

/* ----- Skeleton loading ----- */
@keyframes shimmer {
  0%   { background-position: -400px 0; }
  100% { background-position: 400px 0; }
}
.skeleton {
  background: linear-gradient(
    90deg,
    rgba(255,255,255,0.04) 25%,
    rgba(255,255,255,0.10) 50%,
    rgba(255,255,255,0.04) 75%
  );
  background-size: 800px 100%;
  animation: shimmer 1.4s ease-in-out infinite;
  border-radius: var(--radius);
}

/* ----- prefers-reduced-motion: respeitar preferência do usuário ----- */
@media (prefers-reduced-motion: reduce) {
  .animate-on-scroll {
    transition: none !important;
  }
  .animate-on-scroll.is-observed:not(.is-visible) {
    opacity: 1 !important;
    transform: none !important;
  }
  .hero-content {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
  .hero-blob,
  .skeleton {
    animation: none !important;
  }
  .btn-primary {
    animation: none !important;
    box-shadow: 0 0 20px var(--blue-glow);
  }
  html { scroll-behavior: auto; }
}

/* ============================================================
   BANNER INSTITUCIONAL — ticker horizontal
   ============================================================ */

.banner {
  width: 100%;
  height: 100vh;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  mask-image: linear-gradient(to right, transparent 0px, #000 32px, #000 calc(100% - 32px), transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0px, #000 32px, #000 calc(100% - 32px), transparent 100%);
}

@media (min-width: 600px) {
  .banner {
    mask-image: linear-gradient(to right, transparent 0px, #000 80px, #000 calc(100% - 80px), transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0px, #000 80px, #000 calc(100% - 80px), transparent 100%);
  }
}

.banner-ticker {
  display: flex;
  gap: 16px;
  align-items: center;
  animation: bannerTickerScroll 40s linear infinite;
  will-change: transform;
}

.banner-ticker-item {
  flex-shrink: 0;
  width: 220px;
  height: 75vh;
  border-radius: 10px;
  overflow: hidden;
}

@media (min-width: 600px) {
  .banner-ticker-item { width: 300px; }
}
@media (min-width: 900px) {
  .banner-ticker-item { width: 380px; height: 80vh; }
}

.banner-ticker-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@keyframes bannerTickerScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ===== BOTTOM NAV (mobile only) ===== */
.bottom-nav {
  display: flex;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: rgba(7,7,15,0.98);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--border);
  z-index: 200;
  padding-bottom: env(safe-area-inset-bottom);
}
.bottom-nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 9px 4px 7px;
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-top: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
  -webkit-tap-highlight-color: transparent;
}
.bottom-nav-item:hover,
.bottom-nav-item:active { color: var(--text); }
.bottom-nav-item.active {
  color: var(--blue);
  border-top-color: var(--blue);
}
body { padding-bottom: 64px; }

@media (min-width: 900px) {
  .bottom-nav { display: none; }
  body { padding-bottom: 0; }
}