/* ============================================================
   FXBITI Web Terminal — wrapper (moldura)
   Apenas uma barra superior + iframe do WebTerminal oficial.
   Nenhum arquivo do MetaTrader é copiado ou alterado.
   ============================================================ */

* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --header-h: 72px;
  --bg: #111111;
  --brand: #ff7a00;
  --brand-hover: #ff9330;
  --brand-press: #e66e00;
  --text: #e8eaed;
  --font: 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

html, body {
  height: 100%;
  width: 100%;
  background: var(--bg);
  overflow: hidden;                 /* sem scroll */
  font-family: var(--font);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

/* ===== Barra superior fixa ===== */
.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 24px;
  background: var(--bg);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
  z-index: 10;
}

.logo { height: 40px; width: auto; display: block; flex-shrink: 0; }

.actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 42px;
  padding: 0 20px;
  border: none;
  border-radius: 10px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  -webkit-appearance: none;
  appearance: none;
  transition: background .16s ease, transform .06s ease, box-shadow .16s ease, color .16s ease;
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 17px; height: 17px; flex-shrink: 0; }

.btn-primary {
  background: var(--brand);
  color: #111;
  font-weight: 700;
  padding: 0 24px;
  box-shadow: 0 4px 14px rgba(255, 122, 0, 0.28);
}
.btn-primary:hover { background: var(--brand-hover); }
.btn-primary:active { background: var(--brand-press); }

.btn-ghost { background: #22262e; color: var(--text); }
.btn-ghost:hover { background: #2c313b; }

/* ===== iframe do WebTerminal (preenche tudo abaixo da barra) ===== */
.terminal {
  position: fixed;
  top: var(--header-h);
  left: 0;
  width: 100%;
  height: calc(100vh - var(--header-h));
  height: calc(100dvh - var(--header-h));
  border: none;
  display: block;
  background: var(--bg);
}

/* ===== Responsivo ===== */
@media (max-width: 720px) {
  .topbar { padding: 0 16px; }
  .logo { height: 34px; }
  .btn-ghost span { display: none; }
  .btn-ghost { padding: 0; width: 42px; }
}

@media (max-width: 420px) {
  .actions { gap: 8px; }
  .btn-primary { padding: 0 16px; }
}
