/* Aurora Studio · visual em CSS puro (sem Tailwind). Lido do globals.css da Aurora em 25/09/26.
   Use: <link rel="stylesheet" href="aurora.css"> + as fontes do Google abaixo no <head>:
   <link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Instrument+Serif:ital@1&family=JetBrains+Mono:wght@400;600&display=swap" rel="stylesheet">
*/

:root {
  --bg: #000;
  --card: hsl(0 0% 5%);
  --card-2: hsl(0 0% 7%);
  --line: hsl(0 0% 14%);
  --line-2: hsl(0 0% 20%);
  --fg: #fff;
  --muted: hsl(0 0% 65%);
  --dim: hsl(0 0% 45%);
  --accent: #7BF0CE;   /* menta: positivo, ativo */
  --violet: #8B6BFF;   /* violeta: tráfego, mentoria */
  --magenta: #FF6BB8;  /* magenta: negativo, erro */
  --amber: #FFB347;    /* âmbar: atenção, orgânico */
  --mql: #54D6A6;
  --lilac: #C08BFF;
  --neutral: #9AA3B5;

  --font-sans: 'Inter', ui-sans-serif, system-ui, sans-serif;
  --font-serif: 'Instrument Serif', Georgia, serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  --r-lg: 8px;
  --r-xl: 12px;
  --r-2xl: 16px;
  --r-3xl: 24px;
}

html, body { background: var(--bg); color: var(--fg); -webkit-font-smoothing: antialiased; }
body { position: relative; margin: 0; font-family: var(--font-sans); overflow-x: hidden; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: hsl(0 0% 14%); border-radius: 999px; }

/* ===== fundo animado (a aurora) =====
   HTML: <div class="ambient"><i></i><u></u></div> logo depois de <body> */
.ambient { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.ambient::before, .ambient::after, .ambient i {
  content: ""; position: absolute; border-radius: 50%; filter: blur(120px); opacity: .55; will-change: transform;
}
.ambient::before {
  width: 680px; height: 680px; left: -180px; top: -220px;
  background: radial-gradient(circle, #7bf0ce 0%, rgba(123,240,206,0) 65%);
  animation: breathe-mint 9s ease-in-out infinite, drift1 22s ease-in-out infinite alternate;
}
.ambient::after {
  width: 780px; height: 780px; right: -260px; top: 120px;
  background: radial-gradient(circle, #8b6bff 0%, rgba(139,107,255,0) 65%);
  animation: breathe 7s ease-in-out infinite, drift2 38s ease-in-out infinite alternate;
}
.ambient i {
  width: 560px; height: 560px; left: 38%; bottom: -260px; opacity: .4;
  background: radial-gradient(circle, #ff6bb8 0%, rgba(255,107,184,0) 65%);
  animation: drift3 34s ease-in-out infinite alternate;
}
.ambient u {
  display: block; position: absolute; inset: 0; opacity: .7;
  background: radial-gradient(circle at 30% 80%, rgba(255,179,71,.25), transparent 45%);
}
@keyframes drift1 { to { translate: 180px 120px; } }
@keyframes drift2 { to { translate: -220px 180px; } }
@keyframes drift3 { to { transform: translate(-160px,-200px) scale(1.2); } }
@keyframes breathe-mint { 0%,100% { scale: 1; opacity: .5; filter: blur(120px); } 50% { scale: 1.2; opacity: .8; filter: blur(138px); } }
@keyframes breathe { 0%,100% { scale: 1; opacity: .42; filter: blur(120px); } 50% { scale: 1.22; opacity: .78; filter: blur(140px); } }

/* ===== spotlight que segue o mouse =====
   HTML: <div class="spotlight" id="spotlight"></div> + spotlight.js */
.spotlight {
  position: fixed; pointer-events: none; z-index: 1; width: 520px; height: 520px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.06) 0%, rgba(255,255,255,0) 60%);
  transform: translate(-50%,-50%); transition: opacity .4s ease; opacity: 0; mix-blend-mode: plus-lighter;
}
body:hover .spotlight { opacity: 1; }

/* conteúdo fica acima do fundo */
#root, .root { position: relative; z-index: 10; }

/* ===== vidro ===== */
.glass {
  background: rgba(255,255,255,.03);
  backdrop-filter: blur(28px) saturate(140%); -webkit-backdrop-filter: blur(28px) saturate(140%);
  border: 1px solid rgba(255,255,255,.07);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05), 0 8px 24px rgba(0,0,0,.3);
}
.glass-strong {
  background: rgba(255,255,255,.04);
  backdrop-filter: blur(40px) saturate(160%); -webkit-backdrop-filter: blur(40px) saturate(160%);
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 12px 40px rgba(0,0,0,.4);
}
.glass-soft {
  background: rgba(255,255,255,.02);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,.05);
}
.liquid-glass {
  background: rgba(255,255,255,.04);
  backdrop-filter: blur(24px) saturate(150%); -webkit-backdrop-filter: blur(24px) saturate(150%);
  box-shadow: inset 0 1px 1px rgba(255,255,255,.12); position: relative; overflow: hidden;
}
.liquid-glass::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,.45) 0%, rgba(255,255,255,.1) 30%, rgba(255,255,255,0) 50%, rgba(255,255,255,.1) 70%, rgba(255,255,255,.45) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
.glass:hover.hoverable, .card:hover { background: rgba(255,255,255,.05); }

/* ===== raios e cards ===== */
.r-lg { border-radius: var(--r-lg); } .r-xl { border-radius: var(--r-xl); } .r-2xl { border-radius: var(--r-2xl); } .r-full { border-radius: 999px; }
.card { border-radius: var(--r-xl); padding: 24px; transition: background .15s; }         /* .glass.card */
.card-sm { border-radius: var(--r-xl); padding: 20px; }
.panel { border-radius: var(--r-2xl); padding: 24px; }                                      /* .glass-strong.panel */
.stat { border-radius: var(--r-lg); padding: 12px; }                                        /* .glass-soft.stat */
.tile { border-radius: var(--r-xl); padding: 16px; border-left: 3px solid var(--tone, rgba(255,255,255,.12)); } /* .glass.tile */

/* ===== tipografia ===== */
.h-screen { font-size: 30px; font-weight: 500; line-height: 1.05; letter-spacing: -.02em; margin: 0; }
@media (min-width: 640px) { .h-screen { font-size: 36px; } }
@media (min-width: 768px) { .h-screen { font-size: 48px; } }
.h-screen em, .serif { font-family: var(--font-serif); font-style: italic; font-weight: 400; }
.eyebrow { font-size: 11px; text-transform: uppercase; letter-spacing: .14em; color: var(--accent); display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.eyebrow.violet { color: var(--violet); } .eyebrow.magenta { color: var(--magenta); } .eyebrow.amber { color: var(--amber); }
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; animation: pulse 1.6s ease-in-out infinite; }
.sub { font-size: 14px; color: var(--muted); margin-top: 8px; }
.h-card { font-size: 18px; font-weight: 500; letter-spacing: -.01em; margin: 0; }
.h-sec { font-size: 16px; font-weight: 500; letter-spacing: -.01em; margin: 0; }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; border-bottom: 1px solid rgba(255,255,255,.06); padding-bottom: 8px; margin: 8px 0 12px; flex-wrap: wrap; }
.sec-head .note { font-size: 10px; font-family: var(--font-mono); color: var(--dim); }
.label { font-size: 10px; font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .12em; color: var(--dim); }
.num { font-size: 30px; font-weight: 600; letter-spacing: -.02em; }
.num-mono { font-family: var(--font-mono); font-weight: 600; font-size: 28px; letter-spacing: -.02em; margin-top: 6px; }
.num-mono.big { font-size: 36px; }
.hint { font-size: 11px; color: var(--muted); margin-top: 6px; line-height: 1.3; }
.muted { color: var(--muted); } .dim { color: var(--dim); } .mono { font-family: var(--font-mono); }
.accent { color: var(--accent); } .violet { color: var(--violet); } .magenta { color: var(--magenta); } .amber { color: var(--amber); }
.delta { font-size: 10px; font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .06em; display: inline-flex; align-items: center; gap: 4px; }
.delta.up { color: var(--accent); } .delta.down { color: var(--magenta); }

/* ===== badges e tags ===== */
.badge { font-size: 9px; font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .06em; padding: 2px 6px; border-radius: 4px;
  background: rgba(123,240,206,.1); color: var(--accent); border: 1px solid rgba(123,240,206,.2); }
.tag { display: inline-block; font-size: 9.5px; font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .06em; padding: 2px 6px; border-radius: 4px; border: 1px solid; white-space: nowrap;
  color: var(--tone, var(--dim)); border-color: color-mix(in srgb, var(--tone, #fff) 33%, transparent); background: color-mix(in srgb, var(--tone, transparent) 8%, transparent); }
.tag.good { --tone: var(--accent); } .tag.bad { --tone: var(--magenta); } .tag.warn { --tone: var(--amber); } .tag.sys { --tone: var(--violet); }

/* ===== botões, toggles, inputs ===== */
.btn-primary { background: var(--fg); color: var(--bg); font-size: 14px; font-weight: 600; padding: 8px 12px; border-radius: var(--r-lg); border: 0; cursor: pointer; transition: opacity .15s; }
.btn-primary:hover { opacity: .8; } .btn-primary:disabled { opacity: .3; cursor: not-allowed; }
.btn-icon { width: 36px; height: 36px; display: grid; place-items: center; border-radius: var(--r-lg); color: var(--muted); cursor: pointer; border: 0; }
.btn-icon:hover { background: rgba(255,255,255,.06); color: var(--fg); }
.toggle { display: inline-flex; gap: 4px; padding: 2px; border-radius: var(--r-lg); font-size: 12px; }              /* .glass-soft.toggle */
.toggle.pill { border-radius: 999px; padding: 4px; }
.toggle button { background: transparent; border: 0; color: var(--muted); padding: 6px 12px; border-radius: 6px; cursor: pointer; font: inherit; }
.toggle button:hover { color: var(--fg); }
.toggle button.active { background: var(--fg); color: var(--bg); font-weight: 600; }
.toggle.pill button.active { background: rgba(255,255,255,.07); color: var(--fg); font-weight: 500; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid rgba(255,255,255,.06); overflow-x: auto; }
.tabs button { background: none; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px; padding: 10px 16px; font-size: 14px; color: var(--muted); cursor: pointer; white-space: nowrap; font: inherit; }
.tabs button:hover { color: var(--fg); } .tabs button.active { color: var(--fg); border-color: var(--fg); font-weight: 500; }
.input { width: 100%; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1); border-radius: var(--r-xl); padding: 12px 16px; font-size: 14px; color: var(--fg); outline: none; font: inherit; box-sizing: border-box; }
.input::placeholder { color: var(--dim); } .input:focus { border-color: rgba(123,240,206,.5); }
.avatar { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 600; font-family: var(--font-mono);
  background: color-mix(in srgb, var(--tone, var(--accent)) 20%, transparent); color: var(--tone, var(--accent)); }

/* ===== tabela ===== */
.table { width: 100%; font-size: 12px; border-collapse: collapse; }
.table th { text-align: left; font-weight: 400; color: var(--muted); padding: 0 8px 8px 0; }
.table th.num, .table td.num { text-align: right; font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.table td { padding: 10px 12px; border-bottom: 1px solid rgba(255,255,255,.04); vertical-align: top; }
.table-mono th { font-size: 10px; font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .06em; color: var(--dim); padding: 10px 12px; border-bottom: 1px solid rgba(255,255,255,.06); white-space: nowrap; }

/* ===== layout da casca ===== */
.shell { display: flex; height: 100vh; overflow: hidden; }
.sidebar { width: 230px; flex-shrink: 0; display: none; flex-direction: column; border-right: 1px solid rgba(255,255,255,.06); transition: width .35s cubic-bezier(.4,0,.2,1); position: relative; } /* .glass-soft.sidebar */
.sidebar.collapsed { width: 68px; }
@media (min-width: 768px) { .sidebar { display: flex; } }
.sidebar nav { display: flex; flex-direction: column; gap: 2px; padding: 0 8px; }
.sidebar nav button { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: var(--r-lg); font-size: 14px; color: var(--muted); background: none; border: 1px solid transparent; cursor: pointer; font: inherit; text-align: left; }
.sidebar nav button:hover { color: var(--fg); background: rgba(255,255,255,.03); }
.sidebar nav button.active { color: var(--fg); background: rgba(255,255,255,.03); border-color: rgba(255,255,255,.07); backdrop-filter: blur(28px); }
.sidebar .group { padding: 0 20px 4px; font-size: 10px; font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .14em; color: var(--dim); }
.main { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.topbar { display: flex; align-items: center; gap: 16px; padding: 0 32px; height: 60px; border-bottom: 1px solid rgba(255,255,255,.06); } /* .glass-soft.topbar */
.topbar h1 { font-size: 15px; font-weight: 500; margin: 0; }
.topbar .stamp { font-size: 12px; color: var(--dim); font-family: var(--font-mono); }
.content { flex: 1; overflow: auto; padding-bottom: 80px; }
@media (min-width: 768px) { .content { padding-bottom: 0; } }
.page { padding: 16px; display: flex; flex-direction: column; gap: 24px; max-width: 1320px; }
@media (min-width: 640px) { .page { padding: 24px; } }
@media (min-width: 768px) { .page { padding: 32px; } }
.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.mobile-nav { position: fixed; bottom: 0; left: 0; right: 0; z-index: 40; border-top: 1px solid rgba(255,255,255,.06); padding-bottom: env(safe-area-inset-bottom); display: grid; grid-template-columns: repeat(5,1fr); } /* .glass-strong.mobile-nav */
@media (min-width: 768px) { .mobile-nav { display: none; } }
.mobile-nav button { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 0 8px; font-size: 10px; color: var(--dim); background: none; border: 0; }
.mobile-nav button.active { color: var(--fg); }

/* ===== grades ===== */
.grid { display: grid; gap: 16px; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(0,1fr)); gap: 12px; }
.kpis { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 768px) { .kpis { grid-template-columns: repeat(2,1fr); } }
@media (min-width: 1024px) { .kpis { grid-template-columns: repeat(4,1fr); } }
.cols-2 { display: grid; grid-template-columns: 1fr; gap: 16px; }
.cols-3 { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 1024px) { .cols-2 { grid-template-columns: repeat(2,1fr); } .cols-3 { grid-template-columns: repeat(3,1fr); } .span-2 { grid-column: span 2; } }
.tiles { display: grid; grid-template-columns: repeat(2,1fr); gap: 12px; }
@media (min-width: 768px) { .tiles { grid-template-columns: repeat(3,1fr); } .tiles-4 { grid-template-columns: repeat(4,1fr); } }

/* ===== estados ===== */
.empty { height: 160px; display: grid; place-items: center; font-size: 14px; color: var(--muted); }
.error { border-radius: var(--r-xl); padding: 16px; font-size: 14px; color: var(--magenta); }  /* .glass.error */
.pulse { animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }
.ev-new { animation: evIn .9s ease-out; }
@keyframes evIn { from { opacity: 0; transform: translateY(-6px); background: rgba(123,240,206,.08); } to { opacity: 1; transform: none; background: transparent; } }
.draw-line { stroke-dasharray: var(--len,2000); stroke-dashoffset: var(--len,2000); animation: draw 1.6s cubic-bezier(.4,0,.2,1) .15s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.grad-text { background: linear-gradient(120deg,#7bf0ce 0%,#8b6bff 60%,#ff6bb8 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
