/* ============================================
   EMPRESÁRIO GAMER — CSS Principal
   Paleta: Azul → Roxo → Rosa | Fundo branco clean
   Fonte: Sora (títulos) + Nunito (corpo)
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Sora:wght@400;500;600;700;800&family=Nunito:wght@400;600;700;800&display=swap');

:root {
  /* Gradiente principal */
  --grad: linear-gradient(135deg, #3B82F6 0%, #7C3AED 50%, #EC4899 100%);
  --grad-soft: linear-gradient(135deg, rgba(59,130,246,.12) 0%, rgba(124,58,237,.12) 50%, rgba(236,72,153,.12) 100%);

  /* Cores sólidas */
  --blue: #3B82F6;
  --purple: #7C3AED;
  --pink: #EC4899;
  --navy: #0A0F1E;

  /* UI */
  --bg: #FFFFFF;
  --bg2: #F8F9FF;
  --card: #FFFFFF;
  --borda: #E8EDF5;
  --tx: #0A0F1E;
  --tx2: #6B7A99;
  --tx3: #A0ADBE;

  /* Fontes */
  --title: 'Sora', sans-serif;
  --body: 'Nunito', sans-serif;

  /* Espaçamentos */
  --r: 16px;
  --r2: 24px;
  --sh: 0 4px 24px rgba(124,58,237,.10);
  --sh2: 0 12px 48px rgba(124,58,237,.18);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--body); background: var(--bg); color: var(--tx); overflow-x: hidden; }

::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg2); }
::-webkit-scrollbar-thumb { background: var(--purple); border-radius: 4px; }

/* ── GRADIENTE UTILITÁRIO ── */
.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── BOTÕES ── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--title); font-weight: 700; font-size: .9rem;
  padding: 13px 26px; border-radius: 50px; border: none; cursor: pointer;
  text-decoration: none; transition: all .2s; white-space: nowrap;
}
.btn-primary {
  background: var(--grad); color: #fff;
  box-shadow: 0 5px 0 rgba(124,58,237,.4);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 0 rgba(124,58,237,.4); }

.btn-outline {
  background: transparent; color: var(--purple);
  border: 2px solid var(--purple);
}
.btn-outline:hover { background: var(--purple); color: #fff; }

.btn-ghost {
  background: var(--bg2); color: var(--tx2);
  border: 1.5px solid var(--borda);
}
.btn-ghost:hover { border-color: var(--purple); color: var(--purple); }

/* ── NAV ── */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--borda);
  padding: 0 5vw;
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.nav-logo {
  font-family: var(--title); font-weight: 800; font-size: 1.1rem;
  background: var(--grad); -webkit-background-clip: text;
  -webkit-text-fill-color: transparent; background-clip: text;
}
.nav-user {
  display: flex; align-items: center; gap: 12px;
  font-size: .85rem; font-weight: 700; color: var(--tx2);
}
.nav-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--grad); display: flex; align-items: center; justify-content: center;
  color: #fff; font-family: var(--title); font-weight: 800; font-size: .8rem;
}

/* ── SIDEBAR ── */
.layout { display: flex; min-height: 100vh; }
.sidebar {
  width: 220px; background: var(--bg2); border-right: 1px solid var(--borda);
  padding: 24px 0; display: flex; flex-direction: column; gap: 4px;
  position: fixed; top: 64px; left: 0; height: calc(100vh - 64px);
  overflow-y: auto;
}
.sidebar-item {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 20px; font-size: .88rem; font-weight: 700;
  color: var(--tx2); text-decoration: none; border-radius: 0;
  transition: all .15s; border-left: 3px solid transparent;
}
.sidebar-item:hover, .sidebar-item.active {
  background: var(--grad-soft); color: var(--purple);
  border-left-color: var(--purple);
}
.sidebar-icon { font-size: 1.1rem; }

.main-content {
  margin-left: 220px;
  padding: 32px 5vw;
  width: calc(100% - 220px);
  min-height: calc(100vh - 64px);
}

/* ── CARDS ── */
.card {
  background: var(--card); border: 1.5px solid var(--borda);
  border-radius: var(--r2); padding: 24px;
  box-shadow: var(--sh);
}
.card-grad {
  background: var(--grad); color: #fff;
  border: none; border-radius: var(--r2); padding: 24px;
}

/* ── STAT CARDS ── */
.stats-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px; margin-bottom: 28px;
}
.stat-card {
  background: var(--card); border: 1.5px solid var(--borda);
  border-radius: var(--r2); padding: 20px 24px;
  box-shadow: var(--sh);
}
.stat-num {
  font-family: var(--title); font-size: 2rem; font-weight: 800;
  background: var(--grad); -webkit-background-clip: text;
  -webkit-text-fill-color: transparent; background-clip: text;
  line-height: 1;
}
.stat-lbl { font-size: .78rem; font-weight: 700; color: var(--tx2); margin-top: 6px; }

/* ── KICKER ── */
.kicker {
  display: inline-block; font-size: .72rem; font-weight: 800;
  letter-spacing: .08em; text-transform: uppercase;
  background: var(--grad-soft); color: var(--purple);
  border: 1.5px solid rgba(124,58,237,.2);
  padding: 5px 14px; border-radius: 50px; margin-bottom: 10px;
}

/* ── TÍTULOS ── */
h1, h2, h3 { font-family: var(--title); font-weight: 800; color: var(--navy); line-height: 1.1; }
h1 { font-size: clamp(1.8rem, 3vw, 2.8rem); }
h2 { font-size: clamp(1.4rem, 2.5vw, 2rem); }
h3 { font-size: 1.1rem; }

/* ── FORMULÁRIOS ── */
.form-group { margin-bottom: 18px; }
.form-label { display: block; font-size: .82rem; font-weight: 700; color: var(--tx2); margin-bottom: 6px; }
.form-input {
  width: 100%; padding: 13px 16px;
  border: 1.5px solid var(--borda); border-radius: var(--r);
  font-family: var(--body); font-size: .9rem; color: var(--tx);
  background: var(--bg); outline: none; transition: border .2s;
}
.form-input:focus { border-color: var(--purple); box-shadow: 0 0 0 3px rgba(124,58,237,.1); }

/* ── POPUP OVERLAY ── */
.overlay {
  position: fixed; inset: 0; background: rgba(10,15,30,.6);
  backdrop-filter: blur(6px); z-index: 200;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity .3s;
}
.overlay.open { opacity: 1; pointer-events: all; }
.popup {
  background: var(--card); border-radius: var(--r2);
  padding: 36px; width: 90%; max-width: 480px;
  box-shadow: var(--sh2); transform: translateY(20px); transition: transform .3s;
}
.overlay.open .popup { transform: translateY(0); }

/* ── BARRA DE PROGRESSO ── */
.progress-bar-wrap {
  background: var(--borda); border-radius: 50px; height: 8px;
  overflow: hidden; margin: 12px 0;
}
.progress-bar-fill {
  height: 100%; border-radius: 50px;
  background: var(--grad);
  width: 0%; transition: width .4s ease;
}

/* ── TOAST ── */
.toast {
  position: fixed; bottom: 24px; right: 24px; z-index: 999;
  background: var(--navy); color: #fff;
  padding: 14px 20px; border-radius: var(--r);
  font-family: var(--title); font-size: .85rem; font-weight: 700;
  box-shadow: var(--sh2); transform: translateY(80px);
  transition: transform .3s; display: flex; align-items: center; gap: 10px;
}
.toast.show { transform: translateY(0); }

/* ── MOBILE ── */
@media (max-width: 768px) {
  .sidebar { display: none; }
  .main-content { margin-left: 0; width: 100%; padding: 20px 4vw; }

  /* Bottom nav mobile */
  .bottom-nav {
    position: fixed; bottom: 0; left: 0; right: 0;
    background: var(--card); border-top: 1px solid var(--borda);
    display: flex; z-index: 100; padding-bottom: env(safe-area-inset-bottom);
  }
  .bottom-nav-item {
    flex: 1; display: flex; flex-direction: column; align-items: center;
    padding: 10px 0; font-size: .65rem; font-weight: 700; color: var(--tx3);
    text-decoration: none; gap: 3px; transition: color .15s;
  }
  .bottom-nav-item .bn-icon { font-size: 1.3rem; }
  .bottom-nav-item.active { color: var(--purple); }

  .main-content { padding-bottom: 80px; }
}

@media (min-width: 769px) {
  .bottom-nav { display: none; }
}
