@import url('https://fonts.googleapis.com/css2?family=Syne:wght@600;700;800&family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
  --fg-void: #070908;
  --fg-carbon: #0c100e;
  --fg-panel: #121816;
  --fg-panel-2: #171d1a;
  --fg-elev: #1c2420;
  --fg-lime: #c8ff00;
  --fg-lime-hot: #e6ff66;
  --fg-lime-dim: rgba(200, 255, 0, 0.14);
  --fg-mint: #3dff9a;
  --fg-ink: #f4f7f2;
  --fg-mute: #8a9a90;
  --fg-line: rgba(200, 255, 0, 0.1);
  --fg-line-soft: rgba(255, 255, 255, 0.06);
  --fg-warn: #ff9f1a;
  --fg-danger: #ff4d4d;
  --fg-radius: 16px;
  --font-display: 'Syne', system-ui, sans-serif;
  --font-body: 'Manrope', system-ui, sans-serif;
  --glow-lime: 0 0 28px rgba(200, 255, 0, 0.35);
  --glow-soft: 0 20px 60px rgba(0, 0, 0, 0.45);
  --pitch-stripe: repeating-linear-gradient(
    90deg,
    transparent 0 36px,
    rgba(200, 255, 0, 0.025) 36px 37px
  );
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-body);
  color: var(--fg-ink);
  background:
    radial-gradient(900px 480px at 85% -10%, rgba(200, 255, 0, 0.12), transparent 55%),
    radial-gradient(700px 420px at 0% 100%, rgba(61, 255, 154, 0.08), transparent 50%),
    var(--pitch-stripe),
    linear-gradient(165deg, var(--fg-void) 0%, var(--fg-carbon) 48%, #0a120e 100%);
  background-attachment: fixed;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--fg-lime); text-decoration: none; }
a:hover { color: var(--fg-lime-hot); }

/* —— App layout (sidebar) —— */
body.fg-app {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 100vh;
}
.fg-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.fg-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1.15rem 0.75rem 1rem;
  background: linear-gradient(180deg, #0e1411 0%, #0a0e0c 100%);
  border-right: 1px solid var(--fg-line-soft);
  z-index: 40;
  overflow-x: hidden;
  overflow-y: auto;
}
.fg-sidebar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem;
  padding-bottom: 0.35rem;
  overflow: visible;
  min-width: 0;
}
.fg-sidebar .fg-brand {
  padding: 0.3rem 0.35rem 0.3rem 0.25rem;
  font-size: 1.02rem;
  color: #fff;
  text-decoration: none;
  min-width: 0;
  flex: 1;
  gap: 0.4rem;
  overflow: visible;
}
.fg-sidebar .fg-brand .fg-logo {
  width: 1.45rem;
  height: 1.45rem;
}
.fg-sidebar .fg-wordmark {
  letter-spacing: -0.04em;
  padding-right: 0.2em; /* itálico não corta o N */
  overflow: visible;
}
.fg-sidebar .fg-brand:hover { color: var(--fg-lime); text-decoration: none; }
.fg-sidebar-close { display: none !important; }
.fg-nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(3px);
  z-index: 35;
}
.fg-icon-btn {
  appearance: none;
  border: 1px solid var(--fg-line-soft);
  background: var(--fg-elev);
  color: var(--fg-ink);
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 12px;
  display: inline-grid;
  place-items: center;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}
.fg-icon-btn:hover {
  border-color: rgba(200, 255, 0, 0.35);
  color: var(--fg-lime);
}
.fg-menu-toggle {
  display: none;
  gap: 4px;
  grid-auto-rows: min-content;
  align-content: center;
  justify-items: center;
}
.fg-menu-toggle span {
  display: block;
  width: 1.05rem;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}
.fg-topbar-lead {
  display: none;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
}
.fg-brand-mobile {
  display: none;
  font-size: 1.15rem;
  color: #fff;
}
.fg-brand-mobile:hover { color: var(--fg-lime); text-decoration: none; }

.fg-side-nav {
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
}
.fg-nav-group {
  margin: 0.65rem 0 0.2rem;
  padding: 0 0.7rem;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-mute);
}
.fg-side-link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  width: 100%;
  box-sizing: border-box;
  padding: 0.62rem 0.7rem;
  border-radius: 11px;
  color: #d5ddd7;
  font-weight: 650;
  font-size: 0.9rem;
  text-decoration: none;
  min-width: 0;
  transition: background .18s ease, color .18s ease, box-shadow .18s ease;
}
.fg-side-link:hover {
  background: rgba(255,255,255,0.04);
  color: #fff;
  text-decoration: none;
}
.fg-side-link.is-active {
  background: linear-gradient(110deg, var(--fg-lime), #a8e600);
  color: #0a1008;
  font-weight: 800;
  box-shadow: 0 0 16px rgba(200, 255, 0, 0.22);
}
.fg-side-link .ico {
  width: 1.1rem;
  flex-shrink: 0;
  text-align: center;
  opacity: 0.85;
  font-size: 0.9rem;
}
.fg-badge-novo {
  margin-left: auto;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 0.18rem 0.4rem;
  border-radius: 6px;
  border: 1px solid rgba(255, 159, 26, 0.65);
  color: var(--fg-warn);
  background: rgba(255, 159, 26, 0.1);
  box-shadow: 0 0 12px rgba(255, 159, 26, 0.25);
}

.fg-side-foot {
  margin-top: auto;
  padding: 0.85rem 0.65rem 0.35rem;
  border-top: 1px solid var(--fg-line-soft);
}
.fg-user-card {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.55rem;
  border-radius: 12px;
  background: rgba(255,255,255,0.03);
}
.fg-avatar {
  width: 2.4rem; height: 2.4rem;
  border-radius: 50%;
  display: grid; place-items: center;
  font-weight: 800;
  font-size: 0.85rem;
  color: #0a1008;
  background: linear-gradient(135deg, var(--fg-lime), var(--fg-mint));
  box-shadow: var(--glow-lime);
}
.fg-user-card strong { display: block; font-size: 0.88rem; }
.fg-user-card span { font-size: 0.72rem; color: var(--fg-mute); }

/* —— Topbar —— */
.fg-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 0.85rem 1.25rem;
  border-bottom: 1px solid var(--fg-line-soft);
  background: rgba(7, 9, 8, 0.72);
  backdrop-filter: blur(14px);
  position: sticky;
  top: 0;
  z-index: 20;
}
.fg-bal-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.fg-bal {
  min-width: 140px;
  padding: 0.55rem 0.8rem;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.015));
  border: 1px solid var(--fg-line-soft);
}
.fg-bal small {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--fg-mute);
  margin-bottom: 0.15rem;
}
.fg-bal strong {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--fg-lime);
  font-weight: 800;
  letter-spacing: -0.02em;
}
.fg-top-actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.fg-devbar {
  padding: 0.35rem 1.25rem;
  font-size: 0.75rem;
  color: var(--fg-mute);
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--fg-line-soft);
}
.fg-devbar input {
  font: inherit;
  color: var(--fg-ink);
  background: var(--fg-panel);
  border: 1px solid var(--fg-line-soft);
  border-radius: 8px;
  padding: 0.3rem 0.5rem;
  min-width: 220px;
}

/* Brand — FUTGREEN (FUT branco · GREEN lime) */
.fg-brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  color: var(--fg-ink);
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
}
.fg-logo {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 8px;
  display: block;
  flex-shrink: 0;
  box-shadow: var(--glow-lime);
  object-fit: cover;
}
.fg-wordmark {
  font-style: italic;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.03em;
  line-height: 1;
  display: inline-flex;
  white-space: nowrap;
}
.fg-wm-lead { color: #fff; }
.fg-wm-accent { color: var(--fg-lime); }
.fg-brand-mark {
  /* fallback se img não carregar */
  width: 1.75rem; height: 1.75rem; border-radius: 8px;
  background: linear-gradient(135deg, var(--fg-lime), var(--fg-mint));
  box-shadow: var(--glow-lime);
  flex-shrink: 0;
}
.fg-avatar-brand {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: var(--glow-lime);
  border: 1px solid rgba(200, 255, 0, 0.35);
}

/* Buttons */
.fg-btn {
  appearance: none; border: 0; cursor: pointer;
  font-family: var(--font-body); font-weight: 800;
  padding: 0.72rem 1.1rem; border-radius: 12px;
  background: linear-gradient(110deg, var(--fg-lime), #b6f000 55%, var(--fg-mint));
  color: #0a1008;
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
  box-shadow: var(--glow-lime);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.fg-btn:hover {
  transform: translateY(-2px) scale(1.01);
  filter: brightness(1.05);
  text-decoration: none;
  color: #0a1008;
}
.fg-btn.secondary {
  background: transparent;
  color: var(--fg-ink);
  border: 1px solid rgba(200, 255, 0, 0.35);
  box-shadow: none;
}
.fg-btn.secondary:hover { background: var(--fg-lime-dim); color: var(--fg-lime); }
.fg-btn.ghost {
  background: var(--fg-elev);
  color: var(--fg-ink);
  border: 1px solid var(--fg-line-soft);
  box-shadow: none;
}
.fg-btn.ghost:hover { border-color: rgba(200,255,0,0.35); color: var(--fg-lime); }
.fg-btn.danger { background: var(--fg-danger); color: #fff; box-shadow: 0 0 20px rgba(255,77,77,0.35); }
.fg-btn.warn { background: var(--fg-warn); color: #1a1000; box-shadow: 0 0 20px rgba(255,159,26,0.35); }
.fg-btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none; filter: none; }

.fg-betbra-btn {
  gap: 0.45rem;
  border-color: rgba(0, 166, 81, 0.45) !important;
}
.fg-betbra-btn .fg-betbra-mark {
  width: 1.4rem;
  height: 1.4rem;
  flex-shrink: 0;
  display: block;
}
.fg-betbra-btn:hover {
  border-color: rgba(255, 204, 41, 0.65) !important;
  color: #ffcc29 !important;
}
.fg-betbra-logo-plate {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 10px;
  background: rgba(0, 166, 81, 0.1);
  border: 1px solid rgba(0, 166, 81, 0.35);
}
.fg-betbra-logo-plate .fg-betbra-mark {
  width: 2rem;
  height: 2rem;
}

.fg-main { width: min(1180px, calc(100% - 2rem)); margin: 0 auto; padding: 1.35rem 0 3rem; flex: 1; }

/* Hero / page titles */
.fg-page-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.55rem);
  font-weight: 800;
  font-style: italic;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  margin: 0 0 1rem;
  background: linear-gradient(100deg, #fff 20%, var(--fg-lime) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.fg-cta-row { display: flex; flex-wrap: wrap; gap: 0.7rem; }

/* —— Landing pública —— */
body.fg-landing {
  display: block;
  min-height: 100vh;
  background: #050807;
  overflow-x: hidden;
}
.fg-landing-nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem clamp(1rem, 3vw, 2.2rem);
  background: linear-gradient(180deg, rgba(5, 8, 7, 0.72), transparent);
}
.fg-landing-nav .fg-brand { color: #fff; }
.fg-landing-nav-actions { display: flex; gap: 0.55rem; flex-wrap: wrap; }
.fg-landing-hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  align-items: end;
  padding: clamp(5.5rem, 12vh, 7rem) clamp(1.1rem, 4vw, 3rem) clamp(2.2rem, 6vh, 3.5rem);
}
.fg-landing-media {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
}
.fg-landing-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  display: block;
  transform: scale(1.06);
  animation: fg-ken 28s ease-in-out infinite alternate;
}
@keyframes fg-ken {
  from { transform: scale(1.06) translate3d(0, 0, 0); }
  to { transform: scale(1.12) translate3d(-1.5%, -1%, 0); }
}
.fg-landing-veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(5, 8, 7, 0.35) 0%, rgba(5, 8, 7, 0.18) 35%, rgba(5, 8, 7, 0.78) 72%, rgba(5, 8, 7, 0.94) 100%),
    radial-gradient(70% 55% at 70% 40%, rgba(200, 255, 0, 0.1), transparent 60%),
    radial-gradient(50% 40% at 15% 80%, rgba(61, 255, 154, 0.08), transparent 55%);
}
.fg-landing-copy {
  position: relative;
  z-index: 2;
  width: min(720px, 100%);
}
.fg-landing-brand {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-style: italic;
  font-size: clamp(2.6rem, 8.5vw, 5rem);
  letter-spacing: -0.04em;
  text-transform: uppercase;
  line-height: 0.92;
  display: flex;
  white-space: nowrap;
}
.fg-landing-brand .fg-wm-lead { color: #fff; }
.fg-landing-brand .fg-wm-accent {
  color: var(--fg-lime);
  text-shadow: 0 0 40px rgba(200, 255, 0, 0.35);
}
.fg-landing-copy h1 {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-style: italic;
  font-size: clamp(1.2rem, 2.6vw, 1.7rem);
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  max-width: 22ch;
  color: #fff;
}
.fg-landing-lead {
  margin: 0 0 1.45rem;
  max-width: 42ch;
  color: rgba(244, 247, 242, 0.82);
  font-size: clamp(0.98rem, 1.6vw, 1.12rem);
  line-height: 1.55;
  font-weight: 500;
}
.fg-landing .fg-cta-row .fg-btn {
  min-width: 9.5rem;
  justify-content: center;
  padding: 0.85rem 1.25rem;
}
.fg-landing .fg-btn.secondary {
  background: rgba(12, 16, 14, 0.45);
  backdrop-filter: blur(8px);
  border-color: rgba(255, 255, 255, 0.22);
  color: #fff;
}
.fg-landing .fg-btn.secondary:hover {
  border-color: rgba(200, 255, 0, 0.5);
  color: var(--fg-lime);
  background: rgba(12, 16, 14, 0.65);
}
.anim-in {
  opacity: 0;
  transform: translateY(18px);
  animation: fg-rise 0.85s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.anim-delay-1 { animation-delay: 0.12s; }
.anim-delay-2 { animation-delay: 0.24s; }
.anim-delay-3 { animation-delay: 0.36s; }
@keyframes fg-rise {
  to { opacity: 1; transform: translateY(0); }
}

/* —— Auth (entrar / cadastro) —— */
body.fg-auth {
  display: grid;
  place-items: center;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 1.25rem;
  position: relative;
  overflow: hidden;
}
.fg-auth-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.fg-auth-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.35) saturate(0.9);
}
.fg-auth-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(600px 320px at 80% 10%, rgba(200, 255, 0, 0.12), transparent 55%),
    linear-gradient(165deg, rgba(5, 8, 7, 0.72), rgba(5, 8, 7, 0.9));
}
.fg-auth-card {
  position: relative;
  z-index: 1;
  width: min(420px, 100%);
  padding: 1.6rem 1.35rem 1.4rem;
  border-radius: 18px;
  border: 1px solid rgba(200, 255, 0, 0.16);
  background: linear-gradient(165deg, rgba(18, 24, 22, 0.92), rgba(10, 14, 12, 0.95));
  box-shadow: var(--glow-soft), 0 0 0 1px rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(14px);
  animation: fg-rise 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.fg-auth-card .fg-brand { margin-bottom: 1.1rem; }
.fg-auth-card h1 {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-style: italic;
  text-transform: uppercase;
  font-size: 1.55rem;
  letter-spacing: 0.03em;
}
.fg-auth-sub {
  margin: 0 0 1.15rem;
  color: var(--fg-mute);
  font-size: 0.92rem;
  line-height: 1.45;
}
.fg-auth-card .fg-btn { width: 100%; justify-content: center; margin-top: 0.35rem; }
.fg-auth-foot {
  margin: 1.1rem 0 0;
  text-align: center;
  font-size: 0.9rem;
  color: var(--fg-mute);
}

/* Sections & cards */
.fg-section { margin: 1.6rem 0; }
.fg-section h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-style: italic;
  text-transform: uppercase;
  margin: 0 0 0.35rem;
  color: #fff;
  letter-spacing: -0.02em;
}
.fg-section > .lead { color: var(--fg-mute); margin: 0 0 1.1rem; }

.fg-grid { display: grid; gap: 0.9rem; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }

.fg-card,
.fg-match,
.mdz-card {
  position: relative;
  padding: 1.15rem 1.15rem 1.2rem;
  border-radius: var(--fg-radius);
  background:
    linear-gradient(165deg, rgba(255,255,255,0.045), rgba(255,255,255,0.015));
  border: 1px solid var(--fg-line-soft);
  box-shadow: var(--glow-soft);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
  overflow: hidden;
}
.fg-card::before,
.fg-match::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--fg-lime), transparent);
  opacity: 0.55;
}
.fg-card:hover,
.fg-match:hover {
  transform: translateY(-3px);
  border-color: rgba(200, 255, 0, 0.28);
  box-shadow: var(--glow-soft), 0 0 0 1px rgba(200,255,0,0.08);
}
a.fg-match { color: inherit; text-decoration: none; display: block; }
a.fg-match:hover { color: inherit; }

.fg-match-teams {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0.6rem;
  align-items: center;
  margin-bottom: 0.85rem;
}
.fg-team { display: flex; flex-direction: column; align-items: center; gap: 0.35rem; text-align: center; }
.fg-team-avatar {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: var(--avatar-size, 48px);
  height: var(--avatar-size, 48px);
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--fg-elev);
  border: 1px solid var(--fg-line);
  overflow: hidden;
}
.fg-team-avatar .fg-team-logo,
.fg-team-avatar .fg-logo-fallback {
  grid-area: 1 / 1;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 50%;
  margin: 0;
}
.fg-team-avatar .fg-team-logo {
  position: relative;
  z-index: 1;
  object-fit: contain;
  object-position: center;
  padding: 12%;
  background: var(--fg-elev);
}
.fg-team-avatar .fg-logo-fallback {
  display: grid;
  place-items: center;
  font-weight: 800;
  color: var(--fg-lime);
  font-size: calc(var(--avatar-size, 48px) * 0.28);
  line-height: 1;
}
.fg-team-avatar:has(.fg-team-logo) .fg-logo-fallback {
  visibility: hidden;
}
.fg-team-pair {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}
.fg-team-mini {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-width: 0;
}
.fg-team-mini strong {
  font-size: 0.88rem;
  white-space: nowrap;
}
.fg-team > span { font-weight: 700; font-size: 0.92rem; }
.fg-vs {
  color: var(--fg-lime);
  font-size: 0.75rem;
  font-weight: 800;
  font-family: var(--font-display);
  font-style: italic;
}
.fg-meta { font-size: 0.82rem; color: var(--fg-mute); margin-bottom: 0.8rem; }

.fg-form { display: grid; gap: 0.55rem; }
.fg-form label { font-size: 0.78rem; font-weight: 700; color: var(--fg-mute); display: grid; gap: 0.25rem; }
.fg-form input, .fg-form select, .fg-form textarea {
  font: inherit; padding: 0.6rem 0.7rem;
  border: 1px solid var(--fg-line-soft); border-radius: 10px;
  background: var(--fg-void); color: var(--fg-ink);
}
.fg-form input:focus, .fg-form select:focus {
  outline: none;
  border-color: rgba(200,255,0,0.45);
  box-shadow: 0 0 0 3px rgba(200,255,0,0.12);
}

.fg-banner {
  padding: 0.75rem 1rem;
  background: rgba(255, 159, 26, 0.12);
  border-bottom: 1px solid rgba(255, 159, 26, 0.35);
  color: #ffd59a;
  font-weight: 600;
  font-size: 0.9rem;
  grid-column: 1 / -1;
}
body.fg-app .fg-banner { grid-column: 1 / -1; }

.fg-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.fg-table th, .fg-table td {
  text-align: left; padding: 0.7rem 0.45rem;
  border-bottom: 1px solid var(--fg-line-soft);
}
.fg-table th {
  color: var(--fg-mute); font-size: 0.72rem;
  text-transform: uppercase; letter-spacing: 0.06em;
}
.fg-table tr:hover td { background: rgba(200,255,0,0.03); }

.fg-status {
  display: inline-block; padding: 0.18rem 0.5rem; border-radius: 7px;
  font-size: 0.72rem; font-weight: 800; background: var(--fg-lime-dim); color: var(--fg-lime);
}
.fg-status.won, .fg-status.reembolso { background: rgba(61,255,154,0.15); color: var(--fg-mint); }
.fg-status.lost, .fg-status.closed { background: rgba(255,77,77,0.15); color: #ff8a8a; }
.fg-status.pending, .fg-status.active { background: rgba(200,255,0,0.12); color: var(--fg-lime-hot); }
.fg-status.pending { background: rgba(255, 159, 26, 0.16); color: #ffc56a; }
.mdz-card.is-pending {
  border-color: rgba(255, 159, 26, 0.35);
  box-shadow: 0 0 0 1px rgba(255, 159, 26, 0.08);
}

.mdz-card-top { display: flex; justify-content: space-between; gap: 0.5rem; font-size: 0.85rem; color: var(--fg-mute); }
.mdz-card-game { font-weight: 800; font-family: var(--font-display); letter-spacing: -0.02em; }
.mdz-card-foot { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-top: 0.55rem; }

.fg-desafio-panels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin: 0.75rem 0;
}
.fg-panel {
  padding: 0.85rem;
  border-radius: 12px;
  border: 1px solid rgba(200,255,0,0.22);
  background: linear-gradient(160deg, rgba(200,255,0,0.1), rgba(200,255,0,0.02));
}
.fg-panel.casa {
  border-color: rgba(255,159,26,0.3);
  background: linear-gradient(160deg, rgba(255,159,26,0.12), rgba(255,159,26,0.02));
}
.fg-panel h4 { margin: 0 0 0.35rem; font-size: 0.82rem; color: var(--fg-mute); text-transform: uppercase; letter-spacing: 0.06em; }
.fg-panel .odd {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-style: italic;
  color: var(--fg-lime);
  text-shadow: 0 0 18px rgba(200,255,0,0.35);
}

.fg-toast {
  position: fixed; bottom: 1rem; right: 1rem; z-index: 50;
  background: #111814; color: #fff;
  border: 1px solid rgba(200,255,0,0.35);
  padding: 0.85rem 1.05rem; border-radius: 12px;
  box-shadow: var(--glow-lime), var(--glow-soft);
  animation: fg-in .25s ease;
}
@keyframes fg-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.fg-empty { color: var(--fg-mute); padding: 1.5rem 0; }

/* —— Dashboard visão geral —— */
.fg-dash-banners {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 0.9rem;
  margin-bottom: 0.9rem;
}
.fg-promo {
  position: relative;
  min-height: 168px;
  padding: 1.35rem 1.4rem;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--fg-line);
  background:
    radial-gradient(420px 180px at 90% 20%, rgba(200,255,0,0.28), transparent 55%),
    linear-gradient(125deg, #101814, #15231c 55%, #0e1612);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.35rem;
  transition: transform .2s ease, box-shadow .2s ease;
}
.fg-promo:hover {
  transform: translateY(-3px);
  box-shadow: var(--glow-lime);
}
.fg-promo.alt {
  background:
    radial-gradient(380px 160px at 85% 30%, rgba(61,255,154,0.22), transparent 55%),
    linear-gradient(125deg, #0f1418, #13201c 60%, #0c1210);
}
.fg-promo h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  max-width: 14ch;
  line-height: 1.05;
}
.fg-promo p { margin: 0; color: var(--fg-mute); font-size: 0.9rem; max-width: 32ch; }
.fg-promo a {
  margin-top: 0.35rem;
  font-weight: 800;
  color: var(--fg-lime);
  text-shadow: 0 0 12px rgba(200,255,0,0.4);
}
.fg-promo-art {
  position: absolute;
  right: -10px; top: 10px;
  width: 55%; height: 80%;
  opacity: 0.55;
  pointer-events: none;
}

.fg-kpi-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.85rem;
  margin-bottom: 0.9rem;
}
.fg-kpi {
  padding: 1.1rem 1.15rem;
  border-radius: 16px;
  background: linear-gradient(165deg, rgba(255,255,255,0.05), rgba(255,255,255,0.015));
  border: 1px solid var(--fg-line-soft);
  position: relative;
  overflow: hidden;
}
.fg-kpi::after {
  content: '';
  position: absolute;
  right: -20px; top: -20px;
  width: 80px; height: 80px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(200,255,0,0.16), transparent 70%);
}
.fg-kpi label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--fg-mute);
  margin-bottom: 0.45rem;
}
.fg-kpi strong {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.fg-kpi strong.lime { color: var(--fg-lime); text-shadow: 0 0 16px rgba(200,255,0,0.35); }

.fg-dash-bottom {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 0.9rem;
}
.fg-chart-card { padding: 1.2rem 1.25rem 1rem; }
.fg-chart-card .fg-chart-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 0.75rem;
}
.fg-chart-card h3 {
  margin: 0;
  font-family: var(--font-display);
  font-style: italic;
  text-transform: uppercase;
  font-size: 1.05rem;
}
.fg-big-num {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.fg-big-num em {
  font-style: normal;
  font-size: 0.95rem;
  color: var(--fg-lime);
  margin-left: 0.35rem;
}
.fg-chart-svg { width: 100%; height: 180px; display: block; }
.fg-chart-svg .line {
  fill: none;
  stroke: url(#fgLineGrad);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 8px rgba(200,255,0,0.65));
}
.fg-chart-svg .area {
  fill: url(#fgAreaGrad);
  opacity: 0.9;
}

.fg-ops-list { display: grid; gap: 0; }
.fg-ops-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--fg-line-soft);
  font-size: 0.92rem;
}
.fg-ops-row:last-child { border-bottom: 0; }
.fg-ops-row span { color: var(--fg-mute); }
.fg-ops-row strong { font-weight: 800; }
.fg-bar {
  height: 6px;
  border-radius: 99px;
  background: rgba(255,255,255,0.06);
  overflow: hidden;
  margin-top: 0.45rem;
}
.fg-bar > i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--fg-lime), var(--fg-mint));
  box-shadow: 0 0 12px rgba(200,255,0,0.45);
}

/* legacy nav hide when sidebar present */
body.fg-app .fg-nav { display: none !important; }
.fg-hide-xs { display: inline-flex; }

.fg-table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

@media (max-width: 1100px) {
  .fg-kpi-row { grid-template-columns: repeat(2, 1fr); }
  .fg-dash-banners, .fg-dash-bottom { grid-template-columns: 1fr; }
  .fg-bal { min-width: 118px; flex: 1 1 118px; }
}

@media (max-width: 900px) {
  body.fg-app { grid-template-columns: 1fr; }

  .fg-menu-toggle,
  .fg-topbar-lead,
  .fg-brand-mobile { display: inline-flex; }
  .fg-sidebar-close { display: none !important; }

  .fg-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: min(300px, 88vw);
    height: 100vh;
    height: 100dvh;
    transform: translateX(-105%);
    transition: transform 0.22s ease;
    border-right: 1px solid rgba(200, 255, 0, 0.18);
    box-shadow: none;
  }
  body.fg-nav-open .fg-sidebar {
    transform: translateX(0);
    box-shadow: 12px 0 40px rgba(0, 0, 0, 0.55);
  }
  body.fg-nav-open .fg-nav-overlay { display: block; }

  .fg-topbar {
    padding: 0.7rem 0.85rem;
    gap: 0.65rem;
  }
  .fg-topbar-lead { order: 1; }
  .fg-top-actions { order: 2; margin-left: auto; }
  .fg-bal-strip {
    order: 3;
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.45rem;
  }
  .fg-bal {
    min-width: 0;
    padding: 0.45rem 0.65rem;
  }
  .fg-bal strong { font-size: 0.95rem; }

  .fg-main {
    width: calc(100% - 1.2rem);
    padding: 1rem 0 2.5rem;
  }
  .fg-page-title { font-size: clamp(1.45rem, 7vw, 2rem); margin-bottom: 0.85rem; }
  .fg-desafio-panels { grid-template-columns: 1fr; }
  .fg-hide-xs { display: none !important; }
  .fg-devbar {
    padding: 0.4rem 0.85rem;
  }
  .fg-devbar input { min-width: 0; width: 100%; max-width: 100%; }
  .fg-devbar label { display: grid; gap: 0.25rem; flex: 1; min-width: 0; }

  .fg-promo { min-height: 140px; padding: 1.1rem; }
  .fg-promo h3 { font-size: 1.2rem; }
  .fg-promo-art { opacity: 0.35; width: 48%; }
  .fg-chart-svg { height: 150px; }
  .fg-big-num { font-size: 1.45rem; }
  .fg-big-num em { display: inline-block; margin-left: 0.25rem; }

  .fg-form.adj,
  form.fg-form.adj {
    grid-template-columns: 1fr !important;
  }

  .fg-toast {
    left: 0.75rem;
    right: 0.75rem;
    bottom: 0.75rem;
  }
}

@media (max-width: 560px) {
  .fg-kpi-row { grid-template-columns: 1fr; }
  .fg-grid { grid-template-columns: 1fr; }
  .fg-bal-strip { grid-template-columns: 1fr 1fr; }
  .fg-top-actions .fg-btn { padding: 0.6rem 0.85rem; font-size: 0.85rem; }
  .fg-cta-row { flex-direction: column; }
  .fg-cta-row .fg-btn { width: 100%; justify-content: center; }
  .fg-match-teams { gap: 0.35rem; }
  .fg-team-avatar { --avatar-size: 40px; }
  .fg-table { font-size: 0.82rem; }
  .fg-table th, .fg-table td { padding: 0.55rem 0.3rem; white-space: nowrap; }
  .mdz-card-foot { flex-direction: column; }
  .mdz-card-foot .fg-btn,
  .mdz-card-foot input { width: 100%; }
  .fg-landing-nav-actions .fg-btn.secondary { display: none; }
  .fg-landing-copy { padding-bottom: 0.5rem; }
  .fg-auth-card { padding: 1.35rem 1.1rem 1.2rem; }
  .fg-section h2 { font-size: 1.15rem; }
  .fg-kpi strong { font-size: 1.35rem; }
}

@media (max-width: 380px) {
  .fg-bal-strip { grid-template-columns: 1fr; }
  .fg-brand-mobile { font-size: 1.05rem; }
}
