/* ===================================================
   CS MIX MANAGER — style.css
   =================================================== */

/* ── TOKENS ── */
:root {
  --c-bg:        #09111A;
  --c-surface:   #0D1B2A;
  --c-card:      #0F2337;
  --c-border:    rgba(95, 168, 211, 0.15);
  --c-border-hi: rgba(95, 168, 211, 0.35);

  --c-white:     #FFFFFF;
  --c-petrol:    #0F4C5C;
  --c-blue:      #5FA8D3;
  --c-teal:      #A7D7C5;
  --c-gray-lt:   #F5F7FA;
  --c-gold:      #C9A227;
  --c-ct:        #5FA8D3;
  --c-tr:        #E05A4E;
  --c-text:      #C8D8E8;
  --c-text-dim:  rgba(200, 216, 232, 0.5);

  --radius-sm:   6px;
  --radius-md:   12px;
  --radius-lg:   20px;

  --shadow-card: 0 4px 24px rgba(0,0,0,0.4);
  --shadow-glow: 0 0 32px rgba(95,168,211,0.12);

  --transition: all 0.22s cubic-bezier(0.4,0,0.2,1);
  --font-display: 'Orbitron', sans-serif;
  --font-ui:      'Rajdhani', sans-serif;
  --font-body:    'Inter', sans-serif;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  background: var(--c-bg);
  color: var(--c-text);
  line-height: 1.6;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
input, select, textarea { font-family: inherit; }

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--c-bg); }
::-webkit-scrollbar-thumb { background: var(--c-petrol); border-radius: 3px; }

/* ── CONTAINER ── */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ── HEADER ── */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(9,17,26,0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--c-border);
  transition: var(--transition);
}
.header.scrolled { background: rgba(9,17,26,0.97); }
.header-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  height: 68px; display: flex; align-items: center; justify-content: space-between;
}

/* Logo */
.logo { display: flex; align-items: center; gap: 10px; }
.logo-icon { color: var(--c-blue); font-size: 1.4rem; line-height: 1; }
.logo-text {
  font-family: var(--font-display);
  font-size: 1.3rem; font-weight: 900;
  color: var(--c-white); letter-spacing: 0.04em;
}
.logo-accent { color: var(--c-blue); }

/* Nav */
.nav { display: flex; align-items: center; gap: 4px; }
.nav-link {
  font-family: var(--font-ui);
  font-weight: 600; font-size: 1rem;
  letter-spacing: 0.06em; text-transform: uppercase;
  padding: 8px 16px; border-radius: var(--radius-sm);
  color: var(--c-text-dim);
  transition: var(--transition);
  position: relative;
}
.nav-link::after {
  content: ''; position: absolute; bottom: 4px; left: 50%; right: 50%;
  height: 2px; background: var(--c-blue); border-radius: 1px;
  transition: var(--transition);
}
.nav-link:hover, .nav-link.active { color: var(--c-white); }
.nav-link:hover::after, .nav-link.active::after { left: 16px; right: 16px; }

/* Hamburger */
.menu-toggle {
  display: none; flex-direction: column; gap: 5px;
  padding: 6px; border-radius: var(--radius-sm);
}
.menu-toggle span {
  display: block; width: 22px; height: 2px;
  background: var(--c-text); border-radius: 1px;
  transition: var(--transition);
}
.menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-ui); font-weight: 700;
  font-size: 1rem; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 12px 28px; border-radius: var(--radius-sm);
  transition: var(--transition); cursor: pointer; border: none;
  white-space: nowrap;
}
.btn-primary {
  background: var(--c-blue); color: var(--c-bg);
  box-shadow: 0 0 20px rgba(95,168,211,0.3);
}
.btn-primary:hover {
  background: #79bce0;
  box-shadow: 0 0 32px rgba(95,168,211,0.5);
  transform: translateY(-1px);
}
.btn-ghost {
  background: transparent; color: var(--c-text);
  border: 1px solid var(--c-border-hi);
}
.btn-ghost:hover {
  border-color: var(--c-blue); color: var(--c-blue);
  background: rgba(95,168,211,0.06);
}
.btn-mix {
  flex-direction: column; align-items: center; gap: 4px;
  padding: 20px 60px;
  background: linear-gradient(135deg, var(--c-petrol), var(--c-blue));
  color: var(--c-white);
  box-shadow: 0 0 40px rgba(95,168,211,0.25);
  border-radius: var(--radius-md);
  font-size: 1.2rem;
}
.btn-mix:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 60px rgba(95,168,211,0.4);
}
.btn-mix-icon { font-size: 1.6rem; line-height: 1; }
.btn-mix-sub { font-family: var(--font-body); font-weight: 400; font-size: 0.75rem; letter-spacing: 0.03em; text-transform: none; opacity: 0.7; }

/* ── SECTION COMMONS ── */
.section-eyebrow {
  font-family: var(--font-ui); font-weight: 700;
  font-size: 0.8rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--c-blue); margin-bottom: 12px;
}
.section-title {
  font-family: var(--font-ui); font-weight: 700;
  font-size: clamp(1.8rem, 4vw, 2.8rem); line-height: 1.1;
  color: var(--c-white); margin-bottom: 16px;
}
.section-title.no-margin { margin-bottom: 0; }
.section-subtitle {
  font-size: 1.05rem; color: var(--c-text-dim);
  max-width: 560px; line-height: 1.7;
}

/* ── HERO ── */
.hero {
  min-height: 100vh; display: flex; align-items: center;
  padding: 100px 24px 60px; position: relative; overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(95,168,211,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(95,168,211,0.04) 1px, transparent 1px);
  background-size: 48px 48px;
}
.hero-glow {
  position: absolute; top: 20%; right: 10%;
  width: 600px; height: 600px; border-radius: 50%;
  background: radial-gradient(ellipse, rgba(15,76,92,0.3) 0%, transparent 70%);
  filter: blur(40px);
}
.hero-content {
  position: relative; z-index: 1;
  max-width: 1200px; margin: 0 auto; width: 100%;
  flex: 1;
}
.hero-badge {
  display: inline-block;
  font-family: var(--font-ui); font-weight: 700;
  font-size: 0.75rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--c-teal); border: 1px solid rgba(167,215,197,0.3);
  padding: 6px 16px; border-radius: 100px; margin-bottom: 24px;
  background: rgba(167,215,197,0.06);
}
.hero-title {
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(2.4rem, 6vw, 4.5rem); line-height: 1.05;
  color: var(--c-white); margin-bottom: 20px; letter-spacing: -0.01em;
}
.hero-title-accent {
  background: linear-gradient(90deg, var(--c-blue), var(--c-teal));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-subtitle {
  font-size: 1.1rem; color: var(--c-text-dim);
  max-width: 480px; line-height: 1.7; margin-bottom: 36px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 48px; }
.hero-stats { display: flex; align-items: center; gap: 24px; }
.hero-stat { display: flex; flex-direction: column; }
.stat-num {
  font-family: var(--font-display); font-size: 2rem; font-weight: 700;
  color: var(--c-white); line-height: 1;
}
.stat-label {
  font-family: var(--font-ui); font-size: 0.75rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--c-text-dim); margin-top: 4px;
}
.hero-stat-divider {
  width: 1px; height: 40px; background: var(--c-border);
}
.hero-visual {
  position: absolute; right: 8%; top: 50%; transform: translateY(-50%);
  z-index: 0; width: 340px; height: 340px; display: flex;
  align-items: center; justify-content: center;
}
.hex-ring {
  position: absolute; border-radius: 50%; border: 1px solid;
  animation: spin linear infinite;
}
.hex-ring-1 {
  width: 300px; height: 300px;
  border-color: rgba(95,168,211,0.15);
  animation-duration: 20s;
}
.hex-ring-2 {
  width: 220px; height: 220px;
  border-color: rgba(167,215,197,0.2);
  animation-duration: 14s;
  animation-direction: reverse;
}
.hex-center {
  width: 100px; height: 100px; border-radius: 50%;
  background: linear-gradient(135deg, var(--c-petrol), var(--c-card));
  border: 2px solid var(--c-border-hi);
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem; color: var(--c-blue);
  box-shadow: var(--shadow-glow);
}
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

/* ── SOBRE ── */
.sobre {
  padding: 100px 0; text-align: center;
  border-top: 1px solid var(--c-border);
}
.sobre .section-subtitle { margin: 0 auto 56px; }
.features-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
  text-align: left;
}
.feature-card {
  background: var(--c-card); border: 1px solid var(--c-border);
  border-radius: var(--radius-lg); padding: 36px 28px;
  transition: var(--transition);
}
.feature-card:hover {
  border-color: var(--c-border-hi);
  transform: translateY(-3px);
  box-shadow: var(--shadow-glow);
}
.feature-icon {
  font-size: 1.8rem; color: var(--c-blue);
  margin-bottom: 16px; line-height: 1;
}
.feature-card h3 {
  font-family: var(--font-ui); font-weight: 700; font-size: 1.2rem;
  color: var(--c-white); letter-spacing: 0.04em; margin-bottom: 10px;
}
.feature-card p { font-size: 0.92rem; color: var(--c-text-dim); line-height: 1.7; }

/* ── PAINEL SECTION ── */
.painel-section {
  padding: 80px 0 100px;
  border-top: 1px solid var(--c-border);
}
.painel-header {
  display: flex; align-items: flex-end; justify-content: space-between;
  margin-bottom: 40px; flex-wrap: wrap; gap: 16px;
}

/* Team averages */
.team-averages {
  display: flex; align-items: center; justify-content: center;
  gap: 32px; margin-bottom: 36px;
}
.team-avg-card {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 16px 40px; border-radius: var(--radius-md);
  border: 1px solid var(--c-border); background: var(--c-card);
}
.team-avg-card.team-ct { border-color: rgba(95,168,211,0.3); }
.team-avg-card.team-tr { border-color: rgba(224,90,78,0.3); }
.team-avg-label {
  font-family: var(--font-ui); font-weight: 700;
  font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--c-text-dim);
}
.team-avg-value {
  font-family: var(--font-display); font-size: 2rem; font-weight: 700;
  color: var(--c-white);
}
.team-avg-card.team-ct .team-avg-value { color: var(--c-ct); }
.team-avg-card.team-tr .team-avg-value { color: var(--c-tr); }
.team-avg-sub {
  font-size: 0.7rem; color: var(--c-text-dim);
  letter-spacing: 0.08em;
}
.vs-badge {
  font-family: var(--font-display); font-size: 1.2rem; font-weight: 900;
  color: var(--c-gold); opacity: 0.8; letter-spacing: 0.1em;
}

/* Teams wrapper */
.teams-wrapper {
  display: grid; grid-template-columns: 1fr auto 1fr; gap: 0;
  align-items: start;
}

/* Team panel */
.team-panel { background: var(--c-card); border-radius: var(--radius-lg); overflow: hidden; }
.team-ct-panel { border: 1px solid rgba(95,168,211,0.25); }
.team-tr-panel { border: 1px solid rgba(224,90,78,0.25); }
.team-header {
  display: flex; align-items: center; gap: 12px;
  padding: 18px 20px; border-bottom: 1px solid var(--c-border);
}
.team-badge {
  font-family: var(--font-display); font-size: 0.7rem; font-weight: 700;
  padding: 4px 12px; border-radius: 4px; letter-spacing: 0.12em;
}
.ct-badge { background: rgba(95,168,211,0.15); color: var(--c-ct); border: 1px solid rgba(95,168,211,0.3); }
.tr-badge { background: rgba(224,90,78,0.15); color: var(--c-tr); border: 1px solid rgba(224,90,78,0.3); }
.team-name {
  font-family: var(--font-ui); font-weight: 700; font-size: 0.95rem;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--c-text);
}

/* Player slots */
.player-slots { display: flex; flex-direction: column; gap: 0; padding: 8px; }

.player-slot {
  display: grid;
  grid-template-columns: 32px 52px 1fr auto;
  align-items: center; gap: 12px;
  padding: 10px 12px; border-radius: var(--radius-sm);
  margin: 4px 0;
  border: 1px solid transparent;
  background: rgba(255,255,255,0.02);
  transition: var(--transition); position: relative;
  cursor: grab;
}
.player-slot:active { cursor: grabbing; }
.player-slot.drag-over {
  border-color: var(--c-blue) !important;
  background: rgba(95,168,211,0.08) !important;
}
.player-slot.dragging { opacity: 0.4; }

.empty-slot {
  cursor: default;
  grid-template-columns: 32px 1fr;
  border: 1px dashed rgba(255,255,255,0.08);
}
.empty-slot:hover {
  border-color: rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.03);
}

.slot-number {
  font-family: var(--font-display); font-size: 0.75rem; font-weight: 700;
  color: var(--c-text-dim); text-align: center; flex-shrink: 0;
  width: 20px;
}
.slot-hint { font-size: 0.8rem; color: rgba(200,216,232,0.2); font-style: italic; }

/* Player card */
.player-avatar {
  width: 44px; height: 44px; border-radius: var(--radius-sm);
  background: var(--c-petrol); overflow: hidden; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; border: 1px solid var(--c-border);
}
.player-avatar img { width: 100%; height: 100%; object-fit: cover; }
.player-info { min-width: 0; }
.player-nick {
  font-family: var(--font-ui); font-weight: 700; font-size: 1rem;
  color: var(--c-white); letter-spacing: 0.04em; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis; line-height: 1.2;
}
.player-note {
  font-size: 0.72rem; color: var(--c-text-dim);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  margin-top: 2px;
}
.player-right { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.player-rating {
  font-family: var(--font-display); font-size: 0.95rem; font-weight: 700;
  color: var(--c-white); white-space: nowrap;
}
.player-rating.rating-high { color: var(--c-teal); }
.player-rating.rating-low  { color: var(--c-tr); }
.player-actions { display: flex; gap: 4px; }
.player-btn {
  width: 28px; height: 28px; border-radius: 6px;
  background: rgba(255,255,255,0.05); border: 1px solid var(--c-border);
  color: var(--c-text-dim); font-size: 0.85rem;
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
}
.player-btn:hover { background: rgba(255,255,255,0.1); color: var(--c-white); }
.player-btn.delete:hover { background: rgba(224,90,78,0.15); border-color: var(--c-tr); color: var(--c-tr); }
.player-btn.edit:hover   { background: rgba(95,168,211,0.15); border-color: var(--c-blue); color: var(--c-blue); }

/* Filled slot overrides */
.player-slot:not(.empty-slot) {
  border: 1px solid var(--c-border);
  background: rgba(13,27,42,0.8);
}
.team-ct-panel .player-slot:not(.empty-slot):hover { border-color: rgba(95,168,211,0.35); }
.team-tr-panel .player-slot:not(.empty-slot):hover { border-color: rgba(224,90,78,0.3); }

/* Divider */
.teams-divider {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 12px; padding: 0 20px;
  min-height: 300px;
}
.divider-line { flex: 1; width: 1px; background: var(--c-border); }
.divider-icon {
  font-size: 1.4rem; color: var(--c-gold);
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--c-card); border: 1px solid var(--c-border);
  display: flex; align-items: center; justify-content: center;
}

/* Unassigned */
.unassigned-section {
  margin-top: 24px; padding: 20px;
  border: 1px dashed var(--c-border); border-radius: var(--radius-md);
  background: rgba(255,255,255,0.01);
}
.unassigned-label {
  font-family: var(--font-ui); font-weight: 700; font-size: 0.8rem;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--c-text-dim); margin-bottom: 12px;
}
.unassigned-slots { flex-direction: row; flex-wrap: wrap; padding: 0; }
.unassigned-slots .player-slot { width: calc(50% - 8px); }

/* Mix action */
.mix-action {
  display: flex; justify-content: center;
  margin-top: 40px; padding-top: 40px;
  border-top: 1px solid var(--c-border);
}

/* ── VETO SECTION ── */
.veto-section {
  margin-top: 60px; padding-top: 60px;
  border-top: 1px solid var(--c-border);
  animation: fadeUp 0.4s ease;
}
.veto-header { text-align: center; margin-bottom: 32px; }
.veto-title {
  font-family: var(--font-ui); font-weight: 700; font-size: 1.8rem;
  color: var(--c-white); margin-bottom: 8px;
}
.veto-subtitle { font-size: 0.9rem; color: var(--c-text-dim); }
.veto-status {
  text-align: center; margin-bottom: 32px;
  font-family: var(--font-ui); font-size: 1rem;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  flex-wrap: wrap;
}
.veto-turn-label { color: var(--c-text-dim); letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.8rem; }
.veto-turn-team { font-weight: 700; color: var(--c-white); font-size: 1.1rem; }
.veto-turn-action { color: var(--c-text-dim); font-size: 0.9rem; }

/* Maps grid */
.maps-grid {
  display: grid; grid-template-columns: repeat(7, 1fr); gap: 12px;
}
.map-card {
  background: var(--c-card); border: 1px solid var(--c-border);
  border-radius: var(--radius-md); overflow: hidden;
  cursor: pointer; transition: var(--transition);
  position: relative;
}
.map-card:hover:not(.vetoed):not(.chosen) {
  border-color: var(--c-border-hi);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}
.map-thumbnail {
  height: 90px; display: flex; align-items: center; justify-content: center;
  font-size: 2rem; position: relative; overflow: hidden;
}
.map-card:nth-child(1) .map-thumbnail { background: linear-gradient(135deg,#1a2a3a,#2d4a5a); }
.map-card:nth-child(2) .map-thumbnail { background: linear-gradient(135deg,#2a1a1a,#4a2d2d); }
.map-card:nth-child(3) .map-thumbnail { background: linear-gradient(135deg,#1a2a1a,#2d4a2d); }
.map-card:nth-child(4) .map-thumbnail { background: linear-gradient(135deg,#2a2a1a,#4a4a2d); }
.map-card:nth-child(5) .map-thumbnail { background: linear-gradient(135deg,#1a1a2a,#2d2d4a); }
.map-card:nth-child(6) .map-thumbnail { background: linear-gradient(135deg,#2a1a2a,#4a2d4a); }
.map-card:nth-child(7) .map-thumbnail { background: linear-gradient(135deg,#1a2a2a,#2d4a4a); }
.map-name {
  font-family: var(--font-ui); font-weight: 700; font-size: 0.85rem;
  letter-spacing: 0.06em; text-transform: uppercase;
  padding: 10px; text-align: center; color: var(--c-text);
}
.map-status-overlay {
  position: absolute; inset: 0; display: flex;
  flex-direction: column; align-items: center; justify-content: center;
  gap: 4px; opacity: 0; transition: var(--transition);
}

/* Vetoed */
.map-card.vetoed {
  opacity: 0.4; cursor: not-allowed;
  filter: grayscale(0.7);
}
.map-card.vetoed::after {
  content: 'VETADO'; position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.15em; color: var(--c-tr);
  background: rgba(224,90,78,0.15);
  border: 1px solid rgba(224,90,78,0.3);
  border-radius: var(--radius-md);
}
.map-veto-by {
  position: absolute; bottom: 6px; left: 50%; transform: translateX(-50%);
  font-size: 0.65rem; color: var(--c-text-dim); white-space: nowrap;
  z-index: 2;
}

/* Chosen */
.map-card.chosen {
  border-color: var(--c-gold) !important;
  box-shadow: 0 0 32px rgba(201,162,39,0.3);
  cursor: default;
}
.map-card.chosen .map-name { color: var(--c-gold); }

/* Veto result */
.veto-result {
  text-align: center; margin-top: 32px; padding: 40px;
  background: var(--c-card); border-radius: var(--radius-lg);
  border: 1px solid rgba(201,162,39,0.3);
  animation: fadeUp 0.4s ease;
}
.result-label {
  font-family: var(--font-ui); font-size: 0.8rem; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--c-gold); margin-bottom: 12px;
}
.result-map {
  font-family: var(--font-display); font-size: 3rem; font-weight: 900;
  color: var(--c-white); letter-spacing: 0.04em; margin-bottom: 24px;
}

/* ── CONTATO ── */
.contato {
  padding: 100px 0; text-align: center;
  border-top: 1px solid var(--c-border);
}
.contato-inner { display: flex; flex-direction: column; align-items: center; }
.contato .section-subtitle { margin-bottom: 40px; }
.contato-links { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }
.contato-link {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-ui); font-weight: 700;
  font-size: 1rem; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 14px 28px; border-radius: var(--radius-sm);
  border: 1px solid var(--c-border); color: var(--c-text);
  transition: var(--transition);
}
.contato-link:hover {
  border-color: var(--c-blue); color: var(--c-blue);
  background: rgba(95,168,211,0.06); transform: translateY(-2px);
}
.contato-icon { font-size: 1.1rem; color: var(--c-blue); }

/* ── FOOTER ── */
.footer {
  padding: 28px 0; border-top: 1px solid var(--c-border);
}
.footer-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  flex-wrap: wrap;
}
.footer-copy { font-size: 0.82rem; color: var(--c-text-dim); }

/* ── MODAL ── */
.modal-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,0.75); backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center; padding: 24px;
  opacity: 0; pointer-events: none; transition: opacity 0.25s ease;
}
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal {
  background: var(--c-surface); border: 1px solid var(--c-border-hi);
  border-radius: var(--radius-lg); width: 100%; max-width: 480px;
  box-shadow: 0 24px 80px rgba(0,0,0,0.6);
  transform: translateY(20px) scale(0.97);
  transition: transform 0.25s ease;
}
.modal-overlay.open .modal { transform: translateY(0) scale(1); }
.modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 24px 28px; border-bottom: 1px solid var(--c-border);
}
.modal-title {
  font-family: var(--font-ui); font-weight: 700; font-size: 1.2rem;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--c-white);
}
.modal-close {
  width: 32px; height: 32px; border-radius: 8px;
  background: rgba(255,255,255,0.05); color: var(--c-text-dim);
  font-size: 0.9rem; display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
}
.modal-close:hover { background: rgba(255,255,255,0.1); color: var(--c-white); }
.modal-body { padding: 24px 28px; display: flex; flex-direction: column; gap: 18px; }
.modal-footer {
  padding: 20px 28px; border-top: 1px solid var(--c-border);
  display: flex; justify-content: flex-end; gap: 12px;
}

/* Avatar upload */
.avatar-upload-area {
  display: flex; align-items: center; gap: 20px;
  padding: 16px; border-radius: var(--radius-md);
  background: rgba(255,255,255,0.02); border: 1px dashed var(--c-border);
  cursor: pointer; transition: var(--transition);
}
.avatar-upload-area:hover { border-color: var(--c-border-hi); background: rgba(255,255,255,0.04); }
.avatar-preview {
  width: 64px; height: 64px; border-radius: var(--radius-sm);
  background: var(--c-card); border: 1px solid var(--c-border);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem; overflow: hidden; flex-shrink: 0;
}
.avatar-preview img { width: 100%; height: 100%; object-fit: cover; }
.avatar-upload-hint {
  font-size: 0.85rem; color: var(--c-text-dim); line-height: 1.5;
}

/* Form */
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-label {
  font-family: var(--font-ui); font-weight: 600; font-size: 0.8rem;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--c-text-dim);
}
.form-input {
  background: var(--c-card); border: 1px solid var(--c-border);
  border-radius: var(--radius-sm); padding: 11px 14px;
  color: var(--c-white); font-size: 0.95rem;
  transition: var(--transition); outline: none; width: 100%;
}
.form-input:focus { border-color: var(--c-blue); box-shadow: 0 0 0 2px rgba(95,168,211,0.15); }
.form-input::placeholder { color: var(--c-text-dim); }
.form-select option { background: var(--c-card); }

/* ── TOAST ── */
.toast {
  position: fixed; bottom: 28px; right: 28px; z-index: 300;
  font-family: var(--font-ui); font-weight: 600; font-size: 0.9rem;
  letter-spacing: 0.04em; padding: 14px 22px;
  background: var(--c-card); border: 1px solid var(--c-border-hi);
  border-radius: var(--radius-md); color: var(--c-white);
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
  opacity: 0; transform: translateY(12px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none; max-width: 300px;
}
.toast.show { opacity: 1; transform: translateY(0); }
.toast.success { border-color: rgba(167,215,197,0.4); }
.toast.error   { border-color: rgba(224,90,78,0.4); }

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp 0.5s ease both; }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .maps-grid { grid-template-columns: repeat(4, 1fr); }
  .hero-visual { display: none; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .nav { display: none; flex-direction: column; gap: 0;
    position: absolute; top: 68px; left: 0; right: 0;
    background: rgba(9,17,26,0.97); padding: 12px 0;
    border-bottom: 1px solid var(--c-border);
  }
  .nav.open { display: flex; }
  .nav-link { padding: 14px 24px; border-radius: 0; width: 100%; }
  .nav-link::after { display: none; }
  .menu-toggle { display: flex; }
  .header { position: sticky; }

  .teams-wrapper { grid-template-columns: 1fr; }
  .teams-divider { flex-direction: row; min-height: auto; padding: 12px 0; }
  .divider-line { height: 1px; width: auto; flex: 1; }

  .maps-grid { grid-template-columns: repeat(3, 1fr); }
  .features-grid { grid-template-columns: 1fr; }
  .team-averages { gap: 16px; }
  .team-avg-card { padding: 12px 20px; }
  .hero { padding-top: 84px; }
  .hero-stats { gap: 16px; }
  .painel-header { flex-direction: column; align-items: flex-start; }
  .unassigned-slots .player-slot { width: 100%; }
}
@media (max-width: 480px) {
  .maps-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-title { font-size: 2rem; }
  .modal { margin: 0 8px; }
  .modal-body { padding: 20px 18px; }
  .modal-footer { padding: 16px 18px; }
  .btn-mix { padding: 16px 36px; }
}

/* Drag placeholder */
.drag-placeholder {
  height: 70px;
  border: 2px dashed var(--c-blue);
  border-radius: var(--radius-sm);
  background: rgba(95,168,211,0.05);
  margin: 4px 0;
}
