body { font-family: 'Inter', sans-serif; }
.font-display { font-family: 'Poppins', sans-serif; }
::-webkit-scrollbar { width: 0px; }

/* Fundo da aplicação: Preto com gradiente radial verde esmeralda escuro */
.phone-shell {
  max-width: 430px;
  margin: 0 auto;
  min-height: 100vh;
  background: radial-gradient(ellipse 130% 65% at 50% -10%, #0d1e18 0%, #060b08 60%);
}

/* Cards em Dark Glass com borda sutil dourada/esmeralda */
.glass-card {
  background: linear-gradient(180deg, rgba(16, 36, 28, 0.45) 0%, rgba(6, 15, 11, 0.6) 100%);
  border: 1px solid rgba(212, 175, 55, 0.12);
  box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.5);
}

/* Barra de progresso com gradiente Dourado Nobre */
.progress-track { background: rgba(255, 255, 255, 0.06); }
.progress-fill { background: linear-gradient(90deg, #C59B27 0%, #F5D77F 50%, #E5C06E 100%); }

/* Itens de navegação inferior: Dourado para o item ativo */
.nav-item.active .nav-icon, 
.nav-item.active .nav-label { 
  color: #E5C06E; 
}
.nav-icon, .nav-label { 
  color: #718096; 
  transition: color .15s ease; 
}

/* Ações rápidas e botões */
.quick-action:active, .saque-btn:active { transform: scale(0.96); }
.quick-action, .saque-btn { transition: transform .12s ease, background-color .12s ease; }
.quick-action:hover { background-color: rgba(229, 192, 110, 0.08); }

.tree-line { stroke: rgba(212, 175, 55, 0.2); stroke-width: 1.5; fill: none; }

.fade-up { animation: fadeUp .5s ease both; }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* BARRA DE IMPERSONATE (ADMIN NAVEGANDO COMO USUÁRIO) */
.impersonate-bar {
  background-color: #D4AF37;
  color: #060b08;
  text-align: center;
  padding: 8px 12px;
  font-weight: 700;
  font-size: 12px;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 10000;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.4);
}

.impersonate-bar a {
  color: #060b08;
  text-decoration: underline;
  border: 1px solid #060b08;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 11px;
  transition: all 0.2s;
}

.impersonate-bar a:hover {
  background: #060b08;
  color: #E5C06E;
}

body.with-impersonate {
  padding-top: 38px !important;
}

/* Drawer Lateral (Menu Hambúrguer) */
.drawer-backdrop {
  position: fixed; inset: 0; background: rgba(3, 7, 5, 0.75); backdrop-filter: blur(4px);
  z-index: 40; opacity: 0; pointer-events: none; transition: opacity .25s ease;
}
.drawer-backdrop.open { opacity: 1; pointer-events: auto; }
.drawer-panel {
  position: fixed; top: 0; left: 0; height: 100%; width: 78%; max-width: 320px;
  background: #09130F; border-right: 1px solid rgba(212, 175, 55, 0.15);
  z-index: 50; transform: translateX(-100%); transition: transform .28s cubic-bezier(.4,0,.2,1);
  display: flex; flex-direction: column;
}
.drawer-panel.open { transform: translateX(0); }
.drawer-link {
  display: flex; align-items: center; gap: 12px; padding: 12px 20px; color: #CBD5E1;
  font-size: 14px; font-weight: 500; transition: background-color .12s ease, color .12s ease;
  border-left: 3px solid transparent;
}
.drawer-link:hover { 
  background-color: rgba(229, 192, 110, 0.08); 
  color: #F5D77F; 
  border-left-color: #E5C06E;
}
.drawer-link.danger:hover { background-color: rgba(239,68,68,0.08); color: #F87171; }
.drawer-link i { width: 18px; text-align: center; color: #E5C06E; font-size: 15px; }
.drawer-link.danger i { color: #F87171; }

/* Bottom sheet ("Mais") */
.sheet-backdrop {
  position: fixed; inset: 0; background: rgba(3, 7, 5, 0.75); backdrop-filter: blur(4px);
  z-index: 40; opacity: 0; pointer-events: none; transition: opacity .25s ease;
}
.sheet-backdrop.open { opacity: 1; pointer-events: auto; }
.sheet-panel {
  position: fixed; left: 50%; bottom: 0; transform: translate(-50%, 100%);
  width: 100%; max-width: 430px; background: #0A1612;
  border: 1px solid rgba(212, 175, 55, 0.15); border-bottom: none;
  border-radius: 24px 24px 0 0; z-index: 50; transition: transform .28s cubic-bezier(.4,0,.2,1);
  padding: 10px 20px 28px;
}
.sheet-panel.open { transform: translate(-50%, 0); }
.sheet-option {
  display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 4px;
  border-radius: 14px; transition: background-color .12s ease, transform .12s ease;
}
.sheet-option:hover { background-color: rgba(229, 192, 110, 0.08); }
.sheet-option:active { transform: scale(0.95); }
.sheet-option-icon {
  width: 44px; height: 44px; border-radius: 9999px; display: flex; align-items: center;
  justify-content: center; 
  background: rgba(229, 192, 110, 0.1); 
  border: 1px solid rgba(229, 192, 110, 0.25);
  color: #E5C06E; font-size: 16px;
}