/* ═══════════════════════════════════════════════════════════════
   ÓRBITA — Design System · Liquid Glass Espacial
   Tokens fonte de C:\Users\wizzaa\Documents\ferramenta-espia-ads
   ═══════════════════════════════════════════════════════════════ */

:root {
  --bg0: #02040d;
  --bg1: #060a1c;
  --bg2: #0b1230;
  --accent: #6ee7ff;
  --accent2: #8b7bff;
  --accent3: #3df0b2;
  --danger: #ff5d7a;
  --warn: #ffc861;
  --ok: #43efb0;
  --text: #eaf2ff;
  --muted: rgba(214, 228, 255, 0.55);
  --lo: rgba(214, 228, 255, 0.35);
  --line: rgba(255, 255, 255, 0.1);
  --radius: 22px;
  --radius-sm: 14px;
  --radius-pill: 999px;
  --glass-grad: linear-gradient(135deg, rgba(255,255,255,0.085), rgba(255,255,255,0.025) 55%, rgba(255,255,255,0.05));
  --glass-border: rgba(255, 255, 255, 0.12);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI Variable", "Segoe UI", Inter, system-ui, sans-serif;
  --font-mono: "SF Mono", "Cascadia Code", Consolas, ui-monospace, monospace;
}

* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }

body {
  color: var(--text);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  background:
    radial-gradient(1400px 900px at 82% -12%, rgba(43,64,140,0.38), transparent 62%),
    radial-gradient(1100px 800px at -8% 38%, rgba(110,60,170,0.16), transparent 60%),
    radial-gradient(900px 700px at 55% 115%, rgba(20,110,130,0.16), transparent 60%),
    linear-gradient(180deg, var(--bg0), var(--bg1) 45%, var(--bg0));
  background-attachment: fixed;
  overflow-x: hidden;
}

::selection { background: rgba(110, 231, 255, 0.3); }

/* Scrollbar */
::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.14);
  border-radius: 8px;
  border: 2px solid transparent;
  background-clip: padding-box;
}
::-webkit-scrollbar-thumb:hover { background: rgba(110,231,255,0.35); background-clip: padding-box; }

/* ── Glass ── */
.glass {
  position: relative;
  background: var(--glass-grad);
  -webkit-backdrop-filter: blur(26px) saturate(1.5);
  backdrop-filter: blur(26px) saturate(1.5);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.14),
    inset 0 -18px 40px -28px rgba(110,231,255,0.12),
    0 18px 50px -22px rgba(0,0,0,0.65);
}

.glass-hover {
  transition: transform .3s cubic-bezier(.22,1,.36,1), border-color .25s, box-shadow .25s;
  cursor: pointer;
}
.glass-hover:hover {
  transform: translateY(-2px);
  border-color: rgba(110,231,255,0.35);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.2),
    0 0 0 1px rgba(110,231,255,0.25),
    0 24px 60px -20px rgba(0,0,0,0.8);
}

/* ── Botões ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--glass-border);
  background: rgba(255,255,255,0.06);
  color: var(--text);
  font: 600 13px/1 var(--font);
  cursor: pointer;
  transition: all .22s ease;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  white-space: nowrap;
  text-decoration: none;
}
.btn:hover { background: rgba(255,255,255,0.11); border-color: rgba(110,231,255,0.4); }
.btn:active { transform: scale(0.97); }
.btn:disabled { opacity: .5; cursor: not-allowed; }

.btn-primary {
  background: linear-gradient(92deg, rgba(110,231,255,0.22), rgba(139,123,255,0.25));
  border-color: rgba(110,231,255,0.45);
  color: var(--text);
  box-shadow: 0 0 24px -6px rgba(110,231,255,0.45), inset 0 1px 0 rgba(255,255,255,0.2);
  padding: 12px 22px;
  font-size: 14px;
  font-weight: 700;
}
.btn-primary:hover { box-shadow: 0 0 34px -4px rgba(110,231,255,0.6); }

.btn-ghost {
  background: transparent;
  border-color: transparent;
  color: var(--muted);
  padding: 8px 14px;
}
.btn-ghost:hover { color: var(--text); background: rgba(255,255,255,0.05); }

/* ── Inputs ── */
.input {
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--glass-border);
  background: rgba(8,14,34,0.55);
  color: var(--text);
  font: 500 14px/1.4 var(--font);
  outline: none;
  transition: border .2s, box-shadow .2s;
}
.input:focus {
  border-color: rgba(110,231,255,0.55);
  box-shadow: 0 0 0 3px rgba(110,231,255,0.12);
}
.input::placeholder { color: rgba(214,228,255,0.32); }

.input-otp {
  letter-spacing: 14px;
  font-size: 28px;
  font-weight: 700;
  text-align: center;
  padding: 18px;
  font-family: var(--font-mono);
}

.label {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

/* ── Chips / Badges ── */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 13px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--glass-border);
  background: rgba(255,255,255,0.05);
  color: var(--muted);
  font: 600 11px/1 var(--font);
  letter-spacing: 0.05em;
  transition: all .2s;
  white-space: nowrap;
}
.chip-positive { color: var(--ok); border-color: rgba(67,239,176,0.35); background: rgba(67,239,176,0.08); }
.chip-warning  { color: var(--warn); border-color: rgba(255,200,97,0.35); background: rgba(255,200,97,0.08); }
.chip-brand    { color: #9ff0ff; border-color: rgba(110,231,255,0.4); background: rgba(110,231,255,0.1); }
.chip-danger   { color: var(--danger); border-color: rgba(255,93,122,0.35); background: rgba(255,93,122,0.08); }

/* ── Texto ── */
.text-grad {
  background: linear-gradient(92deg, var(--accent), var(--accent2) 70%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.text-muted { color: var(--muted); }
.text-lo    { color: var(--lo); }

h1, h2, h3, h4 { margin: 0; color: var(--text); font-weight: 700; letter-spacing: -0.01em; }
h1 { font-size: 32px; line-height: 1.2; }
h2 { font-size: 20px; line-height: 1.3; }
h3 { font-size: 15px; line-height: 1.3; }

.section-title {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

/* ── Layout ── */
.app-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 14px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(180deg, rgba(2,4,13,0.85), rgba(2,4,13,0.55));
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line);
}
.topbar .brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.02em;
}
.topbar .brand-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  box-shadow: 0 0 12px rgba(110,231,255,0.6);
}

.main {
  padding: 32px;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  animation: fadeUp 0.5s cubic-bezier(.22,1,.36,1) both;
}

.grid {
  display: grid;
  gap: 16px;
}
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

/* ── Tabs ── */
.tabs {
  display: flex;
  gap: 6px;
  padding: 6px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-pill);
  margin-bottom: 24px;
  width: fit-content;
}
.tab {
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  transition: all .2s;
  cursor: pointer;
}
.tab:hover { color: var(--text); }
.tab.active {
  background: linear-gradient(92deg, rgba(110,231,255,0.18), rgba(139,123,255,0.2));
  color: var(--text);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.15);
}

/* ── Card padrão ── */
.card {
  padding: 24px;
  margin-bottom: 16px;
}
.card h2 { margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 14px; line-height: 1.6; margin: 0 0 10px; }
.card a { color: var(--accent); text-decoration: none; }
.card a:hover { text-decoration: underline; }

/* ── Msg (login) ── */
.msg { margin-top: 14px; font-size: 12px; min-height: 18px; text-align: center; }
.msg.err { color: var(--danger); }
.msg.ok  { color: var(--ok); }

/* ── Progress ── */
.progress-bar {
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-pill);
  height: 8px;
  overflow: hidden;
  margin-bottom: 10px;
}
.progress-fill {
  background: linear-gradient(92deg, var(--accent), var(--accent2));
  height: 100%;
  transition: width .4s cubic-bezier(.22,1,.36,1);
  box-shadow: 0 0 12px rgba(110,231,255,0.4);
}
.progress-text {
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
  text-align: right;
  letter-spacing: 0.05em;
}

/* ── Step (checklist) ── */
.step {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 20px 24px;
  margin-bottom: 12px;
  cursor: pointer;
  transition: all .25s;
}
.step:hover { border-color: rgba(110,231,255,0.3); }
.step.done { opacity: 0.55; }
.step.done .step-title { text-decoration: line-through; }

.checkbox {
  flex-shrink: 0;
  width: 26px; height: 26px;
  border: 2px solid rgba(255,255,255,0.2);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .2s;
  margin-top: 3px;
}
.step.done .checkbox {
  background: linear-gradient(135deg, var(--accent3), var(--ok));
  border-color: var(--accent3);
  box-shadow: 0 0 12px rgba(61,240,178,0.5);
}
.checkbox svg { width: 14px; height: 14px; stroke: var(--bg0); stroke-width: 3.5; fill: none; opacity: 0; transition: opacity .15s; }
.step.done .checkbox svg { opacity: 1; }

.step-body { flex: 1; min-width: 0; }
.step-num {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  margin-bottom: 4px;
}
.step-title {
  color: var(--text);
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 6px;
}
.step-desc { color: var(--muted); font-size: 13px; line-height: 1.55; }
.step-desc code {
  background: rgba(110,231,255,0.1);
  color: var(--accent);
  padding: 2px 7px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 12px;
}

/* ── Table ── */
.table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 13px;
}
.table th {
  color: var(--muted);
  text-align: left;
  padding: 12px 16px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 10px;
  border-bottom: 1px solid var(--glass-border);
}
.table td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  vertical-align: middle;
}
.table tr:hover td { background: rgba(110,231,255,0.03); }
.table td.mono { font-family: var(--font-mono); color: var(--accent); font-size: 12px; }
.table td.date { color: var(--lo); font-size: 11px; font-family: var(--font-mono); }

/* ── Animações ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes pulseDot {
  0%, 100% { opacity: 1; box-shadow: 0 0 12px rgba(110,231,255,0.6); }
  50%      { opacity: 0.6; box-shadow: 0 0 20px rgba(110,231,255,0.9); }
}
.dot-pulse { animation: pulseDot 2s ease-in-out infinite; }

/* ── Login especifico ── */
.login-shell {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.login-card {
  width: 100%;
  max-width: 420px;
  padding: 40px 36px;
  animation: fadeUp 0.6s cubic-bezier(.22,1,.36,1) both;
}
.login-card .brand-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 6px;
}
.login-card .brand-row .brand-dot {
  width: 12px; height: 12px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  box-shadow: 0 0 14px rgba(110,231,255,0.6);
}
.login-card .brand-row h1 { font-size: 22px; }
.login-card .sub { color: var(--muted); font-size: 13px; margin-bottom: 32px; }

/* ── Notice / Info blocks ── */
.notice {
  padding: 18px 22px;
  border-radius: var(--radius-sm);
  background: linear-gradient(92deg, rgba(110,231,255,0.06), rgba(139,123,255,0.08));
  border: 1px solid rgba(110,231,255,0.25);
  color: var(--text);
  font-size: 13px;
  line-height: 1.55;
  margin-bottom: 24px;
}
.notice strong { color: var(--accent); }

.empty { color: var(--lo); font-size: 13px; padding: 20px; text-align: center; }
