:root{
  --bg: radial-gradient(1200px 800px at 20% -10%, #0ea5e9 0%, transparent 45%),
        radial-gradient(1000px 600px at 120% 30%, #22c55e 0%, transparent 40%),
        #0b1020;
  --panel:#0f172aEE;
  --card:#0f172aCC;
  --stroke:#1f2937;
  --muted:#a6adbb;
  --txt:#e5e7eb;
  --brand:#22c55e;
  --brand-2:#60a5fa;
  --shadow: 0 10px 30px rgba(0,0,0,.35);
}
*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;color:var(--txt);font:16px/1.55 Inter,ui-sans-serif,system-ui;
  background: var(--bg) fixed no-repeat;
}
.nav {
  display:flex;
  align-items:center;
}

a{color:#c7d2fe;text-decoration:none}
a:hover{opacity:.9}

/* CONTAINER GLOBAL – agora alinha com o header em largura
   (100% de largura da janela, com padding lateral de 28px) */
.container{
  width:100%;
  max-width:none;
  margin:0;
  padding:28px;
}

.header{
  position:sticky; top:0; z-index:10; backdrop-filter: blur(8px);
  background: linear-gradient(180deg,#0b1220bb, #0b122000);
  border-bottom:1px solid #172036; margin:-28px 0 20px 0; padding:18px 28px;
  display:flex;align-items:center;justify-content:space-between;
}
.brand{display:flex;gap:12px;align-items:center}
.brand .logo{
  width:36px;height:36px;border-radius:12px;
  background: linear-gradient(135deg,#22c55e,#16a34a);
  box-shadow: 0 6px 16px rgba(34,197,94,.35);
}
.brand h2{margin:0;font-weight:800; letter-spacing:.2px}
.nav a{
  margin-left:14px;
  padding:8px 12px;
  border-radius:10px;
  background:#0b1220aa;
  border:1px solid #1f2638;
}
.nav a:hover{background:#0b1220}
.nav a:hover{background:#0b1220}

/* --- Dropdown Admin --- */
.nav-admin {
  position: relative;
  display: inline-block;
  margin-left: 14px;        /* mesmo espaçamento dos links normais */
}

.nav-admin-toggle {
  padding: 8px 12px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background:#0b1220aa;
  border:1px solid #1f2638;
}

.nav-admin.active .nav-admin-toggle,
.nav-admin-toggle:hover {
  background: #0b1220;
}

.nav-admin-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 180px;
  background: #020617;
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(0,0,0,0.65);
  padding: 6px 0;
  display: none;
  z-index: 999;
  border: 1px solid rgba(148,163,184,0.25);
}

.nav-admin:hover .nav-admin-menu {
  display: block;
}

.nav-admin-menu a {
  display: block;
  padding: 8px 14px;
  font-size: 14px;
  text-decoration: none;
  color: #e5e7eb;
  white-space: nowrap;
  margin: 0;               /* ignora margin-left padrão dos .nav a */
  border-radius: 0;
  background: transparent;
  border: none;
}

.nav-admin-menu a.active {
  font-weight: 600;
  color: #22c55e;
}

.nav-admin-menu a.active {
  font-weight: 600;
  color: #22c55e;
}

.panel{
  background:var(--panel); border:1px solid #182235; border-radius:22px; padding:18px; box-shadow:var(--shadow)
}
.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:18px}

.card{
  background:linear-gradient(180deg,#0b1326,#0a0f1c) padding-box;
  border:1px solid #1d2740; border-radius:20px; padding:16px; box-shadow:var(--shadow);
  transition: transform .15s ease, box-shadow .15s ease, border-color .2s;
}
.card:hover{ transform: translateY(-2px); border-color:#2a395a; box-shadow:0 16px 40px rgba(0,0,0,.45); }

.badge{display:inline-flex;align-items:center;gap:8px;background:#0b1220;border:1px solid #284062;border-radius:999px;padding:6px 12px;font-size:12px;color:#a7f3d0}
.bigicon{font-size:46px; display:block; margin:6px 0 2px}
.price{font-size:22px;font-weight:800;margin:6px 0}
.meta{color:var(--muted);font-size:13px}

.btn{display:inline-flex;align-items:center;gap:8px;padding:11px 14px;border-radius:12px;border:1px solid #2a3b57;background:#0b1220;color:var(--txt);cursor:pointer}
.btn.primary{background:linear-gradient(135deg,#22c55e,#16a34a); border:none; color:#04210f; font-weight:800}
.btn.ghost{background:transparent}
.input,select,textarea{
  width:100%;padding:12px;border-radius:12px;border:1px solid #273349;background:#0b1220;color:var(--txt)
}
.table{width:100%;border-collapse:collapse}
.table th,.table td{border-bottom:1px solid #232a3d;padding:10px;text-align:left}
.row{display:flex;gap:18px;flex-wrap:wrap}
.alert{padding:12px;border:1px solid #2a3b57;border-radius:14px;background:#0b1220}
.flagpill{display:inline-flex;align-items:center;gap:8px;background:#0b1220;border:1px solid #2a3b57;border-radius:999px;padding:6px 12px}
.hero{
  margin:8px 0 18px 0;padding:22px;border-radius:22px;border:1px solid #1c2941;
  background:linear-gradient(120deg,#101b31 0%, #0e1322 100%);
}

/* ===== Banner Global (permeia todas as páginas) ===== */
.fx-banner{
  position: relative;
  width: 100%;
  height: 220px;           /* altura do banner */
  margin: -10px 0 18px 0;  /* cola no topo e separa do conteúdo */
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid #1e2a45;
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
  background:
    linear-gradient(120deg,rgba(15,23,42,.85),rgba(2,6,23,.60)),
    url('../assets/img/banner_fx.jpg') center/cover no-repeat,
    radial-gradient(1000px 700px at 10% -20%, #0ea5e9 0%, transparent 45%),
    radial-gradient(900px 600px at 110% 20%, #22c55e 0%, transparent 40%),
    #0b1020;
}
.fx-banner__overlay{
  position:absolute; inset:0;
  background: radial-gradient(800px 300px at 20% 20%, rgba(255,255,255,.08), transparent 60%),
              radial-gradient(600px 240px at 70% 60%, rgba(255,255,255,.06), transparent 60%);
  pointer-events:none;
}
.fx-banner__inner{
  position:relative; z-index:1; height:100%;
  display:flex; flex-direction:column; align-items:flex-start; justify-content:center;
  padding: 26px;
}
.fx-banner__title{
  font-weight: 900; font-size: 32px; letter-spacing:.3px;
  text-shadow: 0 4px 24px rgba(0,0,0,.45);
}
.fx-banner__tag{
  margin-top: 6px; color:#cbd5e1; font-size:14px;
  background: rgba(2,6,23,.45); border:1px solid #20304e;
  padding: 6px 10px; border-radius: 999px;
}

/* ===== Bolinhas de bandeiras (reutilizável) ===== */
.flag {
  display:inline-block; width:20px; height:20px; border-radius:50%;
  background-position:center; background-size:cover; background-repeat:no-repeat;
  vertical-align:middle;
}
.flag-ao { background-image:url('https://flagcdn.com/w20/ao.png'); }
.flag-us { background-image:url('https://flagcdn.com/w20/us.png'); }
.flag-eu { background-image:url('https://flagcdn.com/w20/eu.png'); }

/* Ajuste estético rápido para linhas de saldo */
.kv{display:flex; flex-direction:column; gap:4px; margin-bottom:10px;}
/* Header sem marca quando há banner */
.header--no-brand .brand { display:none; }
.header--no-brand { margin-bottom: 8px; padding-top: 8px; }

/* Ajusta o espaçamento do banner quando o header não tem marca */
.header--no-brand + .fx-banner { margin-top: 0; }
/* Nome do usuário logado no menu */
.user-info {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  color: #cbd5e1;
  font-size: 14px;
  margin-left: 8px;
}
.user-info .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
}
/* Usuário logado no menu (nome à direita) */
.user-info {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: 999px;
  background: rgba(255,255,255,0.08); color: #cbd5e1; font-size: 14px; margin-left: 8px;
}
.user-info .dot { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; }

/* Header sem marca quando há banner */
.header--no-brand .brand { display:none; }
.header--no-brand { margin-bottom: 8px; padding-top: 8px; }
.header--no-brand + .fx-banner { margin-top: 0; }

/* Chat flutuante global */
.fx-chat-fab {
  position: fixed; right: 20px; bottom: 20px; z-index: 1000;
  width: 56px; height: 56px; border-radius: 50%;
  display:flex; align-items:center; justify-content:center;
  background: #22c55e; color:#0b1020; font-weight:800; border:0; cursor:pointer;
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
}
.fx-chat-fab.badge::after{content:attr(data-badge); position:absolute; top:-6px; right:-6px; background:#ef4444; color:#fff; font-size:12px; border-radius:999px; padding:2px 6px; border:2px solid #0b1020;}

.fx-chat-panel {
  position: fixed; right: 20px; bottom: 84px; z-index: 1000;
  width: 360px; max-height: 60vh; display:none; flex-direction:column;
  background:#0b1220; border:1px solid #1e2a45; border-radius:16px; overflow:hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,.45);
}
.fx-chat-panel.open{display:flex;}
.fx-chat-head{display:flex; align-items:center; justify-content:space-between; gap:10px; padding:10px 12px; background:#0e1a2b; border-bottom:1px solid #1e2a45;}
.fx-chat-title{display:flex; align-items:center; gap:8px; font-weight:700;}
.fx-chat-body{padding:10px; overflow:auto; display:flex; flex-direction:column; gap:8px; min-height:160px;}
.fx-chat-msg{max-width:80%; padding:8px 10px; border-radius:10px; line-height:1.35;}
.fx-chat-msg.me{align-self:flex-end; background:#133a2e; color:#d1fae5;}
.fx-chat-msg.other{align-self:flex-start; background:#16233a; color:#cbd5e1;}
.fx-chat-meta{font-size:11px; opacity:.8; margin-top:2px;}
.fx-chat-foot{display:flex; gap:8px; padding:10px; border-top:1px solid #1e2a45;}
.fx-chat-foot input{flex:1;}
.fx-chat-close{background:transparent; border:0; color:#93c5fd; cursor:pointer;}
/* ——— FIX chat: garantir clique/teclado/foco e z-index acima de tudo ——— */
.fx-chat-panel { z-index: 4000; pointer-events: auto; }
.fx-chat-panel * { pointer-events: auto; }

.fx-chat-foot .input,
.fx-chat-foot input[type="text"],
.fx-chat-foot textarea {
  background: #0f1b2e;
  color: #e5e7eb;
  border: 1px solid #1e2a45;
}

.fx-chat-foot input[type="text"] {
  height: 40px;
  line-height: 40px;
}
/* ===== CHAT (fix input e prioridade) ===== */
.fx-chat-fab { z-index: 5000; }

.fx-chat-panel {
  position: fixed; right: 20px; bottom: 84px;
  z-index: 10000;  /* acima de tudo */
  width: 360px; max-height: 60vh; display:none; flex-direction:column;
  background:#0b1220; border:1px solid #1e2a45; border-radius:16px; overflow:hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,.45);
  pointer-events: auto;
}
.fx-chat-panel * { pointer-events: auto; }

.fx-chat-head{display:flex; align-items:center; justify-content:space-between; gap:10px; padding:10px 12px; background:#0e1a2b; border-bottom:1px solid #1e2a45;}
.fx-chat-title{display:flex; align-items:center; gap:8px; font-weight:700;}
.fx-chat-body{padding:10px; overflow:auto; display:flex; flex-direction:column; gap:8px; min-height:160px;}
.fx-chat-msg{max-width:80%; padding:8px 10px; border-radius:10px; line-height:1.35;}
.fx-chat-msg.me{align-self:flex-end; background:#133a2e; color:#d1fae5;}
.fx-chat-msg.other{align-self:flex-start; background:#16233a; color:#cbd5e1;}
.fx-chat-meta{font-size:11px; opacity:.8; margin-top:2px;}
.fx-chat-foot{display:flex; gap:8px; padding:10px; border-top:1px solid #1e2a45;}

.fx-chat-foot select.input,
.fx-chat-foot textarea.input {
  background:#0f1b2e; color:#e5e7eb; border:1px solid #1e2a45;
}
.fx-chat-foot textarea.input {
  height: 42px; min-height: 42px; max-height: 80px; resize: vertical;
}
.fx-chat-close{background:transparent; border:0; color:#93c5fd; cursor:pointer;}
/* … (mantenha o que você já tem acima) … */

/* ===== CHAT (fix input e prioridade) ===== */
.fx-chat-fab { 
  position: fixed; right: 22px; bottom: 22px;
  width: 56px; height: 56px; border-radius: 999px;
  display: grid; place-items: center;
  background: #16a34a; color: #fff; border: 0; cursor: pointer;
  z-index: 5000;
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
}
.fx-chat-fab.badge::after{
  content: attr(data-badge);
  position:absolute; top:-6px; right:-6px;
  background:#ef4444; color:#fff; font-size:12px; font-weight:700;
  width:22px; height:22px; border-radius:999px; display:grid; place-items:center;
}

.fx-chat-panel {
  position: fixed; right: 20px; bottom: 84px;
  z-index: 10000;  /* acima de tudo */
  width: 360px; max-height: 60vh; display:none; flex-direction:column;
  background:#0b1220; border:1px solid #1e2a45; border-radius:16px; overflow:hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,.45);
  pointer-events: auto;
}
.fx-chat-panel.open { display:flex; }
.fx-chat-panel * { pointer-events: auto; }

.fx-chat-head{display:flex; align-items:center; justify-content:space-between; gap:10px; padding:10px 12px; background:#0e1a2b; border-bottom:1px solid #1e2a45;}
.fx-chat-title{display:flex; align-items:center; gap:8px; font-weight:700;}
.fx-chat-body{padding:10px; overflow:auto; display:flex; flex-direction:column; gap:8px; min-height:160px;}
.fx-chat-msg{max-width:80%; padding:8px 10px; border-radius:10px; line-height:1.35;}
.fx-chat-msg.me{align-self:flex-end; background:#133a2e; color:#d1fae5;}
.fx-chat-msg.other{align-self:flex-start; background:#16233a; color:#cbd5e1;}
.fx-chat-meta{font-size:11px; opacity:.8; margin-top:2px;}
.fx-chat-foot{display:flex; gap:8px; padding:10px; border-top:1px solid #1e2a45;}

.fx-chat-foot select.input,
.fx-chat-foot textarea.input {
  background:#0f1b2e; color:#e5e7eb; border:1px solid #1e2a45;
}
.fx-chat-foot textarea.input {
  height: 42px; min-height: 42px; max-height: 80px; resize: vertical;
}
.fx-chat-close{background:transparent; border:0; color:#93c5fd; cursor:pointer;}
