/* Destiny Digital: design system monocromático escuro */
:root {
  --bg: #000002;
  --bg-2: #0a0a0a;
  --surface: #0f0f10;
  --surface-2: #151516;
  --surface-3: #1c1c1e;
  --fill: rgba(255, 255, 255, 0.07);
  --fill-2: rgba(255, 255, 255, 0.12);
  --fill-3: rgba(255, 255, 255, 0.2);
  /* sem bordas brancas em lugar nenhum (gosto do tanpz, 2026-11-27): as linhas ficam transparentes */
  --line: transparent;
  --line-2: transparent;
  --line-3: transparent;
  --text: #fefefe;
  --text-2: #a1a1aa;
  --text-3: #6b6b73;
  --white: #fefefe;
  --accent: #FA0980;        /* Sakura Pink: luz de destaque da marca */
  --accent-glow: rgba(250, 9, 128, .45);
  --accent-soft: rgba(250, 9, 128, .12);
  --hot: var(--accent);     /* em alta / ao vivo usam o rosa */
  --ok: #e4e4e7;
  --radius-s: 10px;
  --radius: 16px;
  --radius-l: 24px;
  --radius-xl: 32px;
  --sidebar: 248px;
  --sidebar-mini: 76px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --font: "Geist", ui-sans-serif, system-ui, -apple-system, "SF Pro Text", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", monospace;
  --shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 20px 50px -20px rgba(0, 0, 0, 0.9);
  color-scheme: dark;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}
img, video, svg { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--accent); color: #fff; }
* { scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.12) transparent; }
*::-webkit-scrollbar { width: 8px; height: 8px; }
*::-webkit-scrollbar-thumb { background: rgba(255,255,255,.1); border-radius: 8px; }

/* grão sutil em tudo, dá textura de material */
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 100; opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ------------------------------------------------ tipografia */
.h1 { font-size: clamp(28px, 4vw, 44px); line-height: 1.05; letter-spacing: -0.035em; font-weight: 600; }
.h2 { font-size: clamp(22px, 2.6vw, 30px); line-height: 1.1; letter-spacing: -0.03em; font-weight: 600; }
.h3 { font-size: 17px; line-height: 1.25; letter-spacing: -0.015em; font-weight: 600; }
.muted { color: var(--text-2); }
.dim { color: var(--text-3); }
.small { font-size: 13px; }
.tiny { font-size: 11.5px; letter-spacing: 0.01em; }
.mono { font-family: var(--mono); }
.eyebrow { font-size: 12px; color: var(--text-3); letter-spacing: 0.02em; }

/* ------------------------------------------------ botões */
.btn {
  --h: 42px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: var(--h); padding: 0 18px; border-radius: 999px; font-weight: 500; font-size: 14px;
  background: var(--surface-2); border: 1px solid var(--line-2); color: var(--text);
  transition: transform .25s var(--spring), background .2s, border-color .2s, opacity .2s;
  white-space: nowrap; user-select: none; position: relative; overflow: hidden;
}
.btn:hover { background: var(--surface-3); border-color: var(--line-3); }
.btn:active { transform: scale(0.96); }
.btn svg { width: 17px; height: 17px; }
.btn.primary { background: var(--white); color: #000; border-color: var(--white); }
.btn.primary:hover { background: #e9e9ea; }
.btn.ghost { background: transparent; border-color: transparent; }
.btn.ghost:hover { background: rgba(255,255,255,.06); }
.btn.sm { --h: 34px; padding: 0 13px; font-size: 13px; }
.btn.lg { --h: 52px; padding: 0 26px; font-size: 15px; }
.btn.icon { width: var(--h); padding: 0; }
.btn.danger:hover { color: #fff; background: #2a0f0a; border-color: #5a1d12; }
.btn[disabled] { opacity: .45; pointer-events: none; }
.btn.primary::after { /* brilho passando no hover */
  content: ""; position: absolute; inset: 0; transform: translateX(-120%);
  background: linear-gradient(100deg, transparent 30%, rgba(255,255,255,.7) 50%, transparent 70%);
  transition: transform .9s var(--ease);
}
.btn.primary:hover::after { transform: translateX(120%); }

/* ------------------------------------------------ campos */
.field { display: grid; gap: 7px; }
.field > span { font-size: 12.5px; color: var(--text-2); }
.input, .textarea, .select {
  width: 100%; height: 46px; padding: 0 15px; border-radius: 14px;
  background: rgba(255,255,255,.05); border: 1px solid transparent; color: var(--text);
  outline: none; transition: border-color .2s, background .2s, box-shadow .2s;
}
.textarea { height: auto; min-height: 110px; padding: 13px 15px; resize: vertical; line-height: 1.5; }
.input:focus, .textarea:focus, .select:focus { background: rgba(255,255,255,.08); box-shadow: 0 0 0 4px rgba(255,255,255,.04); }
.input::placeholder, .textarea::placeholder { color: var(--text-3); }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23a1a1aa' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }
.input-wrap { position: relative; display: flex; align-items: center; }
.input-wrap > svg { position: absolute; left: 14px; width: 17px; height: 17px; color: var(--text-3); pointer-events: none; }
.input-wrap > .input { padding-left: 42px; }

/* ------------------------------------------------ superfícies */
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-l);
  box-shadow: var(--shadow);
}
.glass {
  background: rgba(20, 20, 22, 0.6); border: 1px solid var(--line-2);
  backdrop-filter: blur(22px) saturate(140%); -webkit-backdrop-filter: blur(22px) saturate(140%);
}
.pill {
  display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 999px;
  font-size: 12px; font-weight: 500; background: rgba(255,255,255,.06); border: 1px solid var(--line-2); color: var(--text-2);
}
.pill svg { width: 13px; height: 13px; }
.pill.hot { color: #fff; background: var(--accent-soft); border-color: rgba(250, 9, 128, .4); }
.pill.hot svg { color: var(--hot); }
.pill.white { background: #fff; color: #000; border-color: #fff; }
.divider { height: 1px; background: var(--line); }

.seg { display: inline-flex; padding: 4px; gap: 2px; border-radius: 999px; background: var(--bg-2); border: 1px solid var(--line-2); }
.seg button { height: 32px; padding: 0 14px; border-radius: 999px; font-size: 13px; color: var(--text-2); transition: background .2s, color .2s; display:inline-flex; align-items:center; gap:6px; }
.seg button svg { width: 15px; height: 15px; }
.seg button.on { background: var(--surface-3); color: var(--text); box-shadow: 0 1px 0 rgba(255,255,255,.06) inset; }

/* ------------------------------------------------ app shell */
.shell { display: flex; min-height: 100vh; }
.sidebar {
  position: fixed; inset: 0 auto 0 0; width: var(--sidebar); z-index: 40;
  display: flex; flex-direction: column; padding: 18px 14px; gap: 6px;
  background: linear-gradient(180deg, #080808, #050505); border-right: 1px solid var(--line);
  transition: width .5s var(--ease), transform .5s var(--ease);
}
.logo-btn { display: flex; align-items: center; gap: 11px; height: 48px; padding: 0 10px; border-radius: 14px; transition: background .2s; overflow: hidden; }
.logo-btn:hover { background: rgba(255,255,255,.04); }
.logo-btn .mark { width: 30px; height: 30px; flex: none; transition: transform .6s var(--spring); }
.logo-btn:hover .mark { transform: rotate(-8deg) scale(1.06); }
.logo-btn .word { font-weight: 600; letter-spacing: 0.14em; font-size: 13px; white-space: nowrap; transition: opacity .3s; }
.logo-btn .word small { display:block; font-size: 9.5px; letter-spacing: .38em; color: var(--text-3); font-weight: 500; margin-top: 1px; }
.nav { display: grid; gap: 2px; margin-top: 14px; }
.nav-label { font-size: 11px; color: var(--text-3); padding: 14px 12px 6px; letter-spacing: .04em; white-space: nowrap; transition: opacity .3s; }
.nav a {
  position: relative; display: flex; align-items: center; gap: 12px; height: 42px; padding: 0 12px; border-radius: 12px;
  color: var(--text-2); font-size: 14px; font-weight: 500; white-space: nowrap; overflow: hidden;
  transition: color .2s, background .2s;
}
.nav a svg { width: 19px; height: 19px; flex: none; transition: transform .35s var(--spring); }
.nav a:hover { color: var(--text); background: rgba(255,255,255,.04); }
.nav a:hover svg { transform: scale(1.08); }
.nav a.on { color: var(--text); background: rgba(255,255,255,.07); }
.nav a.on::before { content: ""; position: absolute; left: -14px; top: 11px; bottom: 11px; width: 3px; border-radius: 3px; background: var(--accent); box-shadow: 0 0 16px var(--accent-glow); }
.nav a .badge-live { margin-left: auto; width: 7px; height: 7px; border-radius: 50%; background: var(--hot); box-shadow: 0 0 0 4px var(--accent-soft); animation: pulse 1.8s infinite; }
.nav a .lbl { transition: opacity .25s; }
.side-foot { margin-top: auto; display: grid; gap: 6px; }
.me-chip { display: flex; align-items: center; gap: 11px; padding: 8px; border-radius: 14px; transition: background .2s; overflow: hidden; }
.me-chip:hover { background: rgba(255,255,255,.04); }
.me-chip .who { min-width: 0; transition: opacity .25s; }
.me-chip .who b { display: block; font-size: 13.5px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.me-chip .who span { display: block; font-size: 12px; color: var(--text-3); white-space: nowrap; }
.avatar { width: 34px; height: 34px; border-radius: 50%; flex: none; background: var(--surface-3) center/cover; border: 1px solid var(--line-2); display: grid; place-items: center; font-size: 13px; font-weight: 600; color: var(--text-2); overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }

body.collapsed .sidebar { width: var(--sidebar-mini); }
body.collapsed .sidebar .word, body.collapsed .sidebar .nav-label, body.collapsed .sidebar .lbl, body.collapsed .sidebar .who, body.collapsed .sidebar .badge-live { opacity: 0; pointer-events: none; }
body.collapsed .nav-label { height: 10px; padding: 0; }

.main { flex: 1; min-width: 0; margin-left: var(--sidebar); transition: margin-left .5s var(--ease); }
body.collapsed .main { margin-left: var(--sidebar-mini); }
.page { padding: 34px clamp(16px, 3.4vw, 48px) 80px; max-width: 1500px; margin: 0 auto; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 28px; flex-wrap: wrap; }
.page-head .t { display: grid; gap: 6px; }

.topbar-m { display: none; }

/* ------------------------------------------------ toast / modal */
.toasts { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); z-index: 300; display: grid; gap: 8px; justify-items: center; pointer-events: none; }
.toast { pointer-events: auto; display: flex; align-items: center; gap: 10px; padding: 11px 16px; border-radius: 999px; font-size: 13.5px; background: rgba(30,30,32,.9); border: 1px solid var(--line-2); backdrop-filter: blur(20px); box-shadow: 0 20px 40px -10px #000; animation: toastIn .5s var(--spring); }
.toast svg { width: 16px; height: 16px; }
.toast.out { animation: toastOut .35s var(--ease) forwards; }
.modal-bg { position: fixed; inset: 0; z-index: 200; background: rgba(0,0,0,.66); backdrop-filter: blur(8px); display: grid; place-items: center; padding: 16px; animation: fade .3s var(--ease); }
.modal { width: min(560px, 100%); max-height: calc(100vh - 32px); overflow: auto; border-radius: var(--radius-l); background: var(--surface); border: 1px solid var(--line-2); box-shadow: 0 40px 80px -20px #000; animation: pop .5s var(--spring); }
.modal.wide { width: min(980px, 100%); }
.modal-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 18px 20px 0; }
.modal-b { padding: 18px 20px; display: grid; gap: 14px; }
.modal-f { display: flex; justify-content: flex-end; gap: 8px; padding: 0 20px 20px; flex-wrap: wrap; }

/* ------------------------------------------------ estados */
.empty { display: grid; justify-items: center; text-align: center; gap: 14px; padding: 64px 20px; border: 1px dashed var(--line-2); border-radius: var(--radius-l); background: radial-gradient(60% 80% at 50% 0%, rgba(255,255,255,.035), transparent); }
.empty .ic { width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--line-2); }
.empty .ic svg { width: 24px; height: 24px; color: var(--text-2); }
.skeleton { background: linear-gradient(90deg, var(--surface) 0%, var(--surface-2) 50%, var(--surface) 100%); background-size: 200% 100%; animation: shimmer 1.4s infinite; border-radius: var(--radius); }
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(255,255,255,.2); border-top-color: #fff; animation: spin .8s linear infinite; }

/* entrada em cascata */
.rise { opacity: 0; transform: translateY(14px); animation: rise .7s var(--ease) forwards; }
.rise:nth-child(2) { animation-delay: .05s } .rise:nth-child(3) { animation-delay: .1s } .rise:nth-child(4) { animation-delay: .15s }
.rise:nth-child(5) { animation-delay: .2s } .rise:nth-child(6) { animation-delay: .25s } .rise:nth-child(7) { animation-delay: .3s } .rise:nth-child(n+8) { animation-delay: .35s }

/* cartão com luz que segue o mouse */
.spot { position: relative; isolation: isolate; }
.spot::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 2; opacity: 0; transition: opacity .3s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,.07), transparent 45%); }
.spot:hover::after { opacity: 1; }

@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(16px) scale(.97); } }
@keyframes toastIn { from { opacity: 0; transform: translateY(16px) scale(.9); } }
@keyframes toastOut { to { opacity: 0; transform: translateY(10px) scale(.95); } }
@keyframes shimmer { to { background-position: -200% 0; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(250,9,128,0); } }

/* ------------------------------------------------ responsivo */
@media (max-width: 900px) {
  .sidebar { transform: translateX(-100%); width: min(300px, 86vw); box-shadow: none; transition: width .5s var(--ease), transform .5s var(--ease), box-shadow .5s; }
  body.nav-open .sidebar { transform: none; box-shadow: 40px 0 80px #000; }
  body.collapsed .sidebar { width: min(300px, 86vw); }
  body.collapsed .sidebar .word, body.collapsed .sidebar .nav-label, body.collapsed .sidebar .lbl, body.collapsed .sidebar .who, body.collapsed .sidebar .badge-live { opacity: 1; pointer-events: auto; }
  .main, body.collapsed .main { margin-left: 0; }
  .topbar-m { display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 30; height: 60px; padding: 0 16px; background: rgba(5,5,5,.8); backdrop-filter: blur(18px); border-bottom: 1px solid var(--line); }
  .scrim { position: fixed; inset: 0; z-index: 35; background: rgba(0,0,0,.6); opacity: 0; pointer-events: none; transition: opacity .4s; }
  body.nav-open .scrim { opacity: 1; pointer-events: auto; }
  .page { padding-top: 22px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }

/* logo real de marca (Simple Icons) recolorido */
.brand-ic { display: inline-block; width: var(--s); height: var(--s); flex: none; background: currentColor; -webkit-mask-size: contain; mask-size: contain; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; -webkit-mask-position: center; mask-position: center; }

/* texto da IA */
.md { display: grid; gap: 10px; line-height: 1.65; color: var(--text); }
.md h2 { font-size: 20px; letter-spacing: -.02em; margin-top: 10px; }
.md h3 { font-size: 16.5px; margin-top: 8px; }
.md h4 { font-size: 14.5px; color: var(--text-2); }
.md ul { padding-left: 18px; display: grid; gap: 4px; }
.md b { color: #fff; }

/* telas cheias (editor, onboarding) escondem a sidebar */
body.full .sidebar, body.full .topbar-m, body.full .scrim { display: none; }
body.full .main { margin-left: 0 !important; }
.logo-btn .mark { object-fit: contain; }

/* Sakura Pink como luz (2026-11-26): foco, hover do primário e holofote sutil no topo das páginas */
.input:focus, .textarea:focus, .select:focus { border-color: transparent; background: rgba(255,255,255,.08); box-shadow: 0 0 0 4px rgba(255,255,255,.035); }
.btn.primary:hover { box-shadow: 0 10px 34px -10px var(--accent-glow); }
.main { background: radial-gradient(900px 420px at 70% -160px, rgba(250,9,128,.10), transparent 70%) no-repeat; }
.spot::after { background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(250,9,128,.07), rgba(255,255,255,.03) 30%, transparent 50%); }

/* Dex dentro de cada ferramenta (web/js/dexdock.js): botão flutuante + painel com pedidos daquela tela */
.dexdock { position: fixed; right: 22px; bottom: 22px; z-index: 150; display: grid; justify-items: end; gap: 12px; pointer-events: none; }
.dexdock[hidden] { display: none; }
.dd-fab { pointer-events: auto; position: relative; width: 56px; height: 56px; border-radius: 50%; border: 1px solid var(--line-2); background: radial-gradient(circle at 35% 25%, #2a2a2e, #0b0b0d 70%); color: var(--text); display: grid; place-items: center; cursor: pointer; box-shadow: 0 14px 40px -8px rgba(0,0,0,.9), 0 0 0 1px rgba(255,255,255,.04) inset, 0 0 28px -8px rgba(255,255,255,.25); transition: transform .35s var(--spring), box-shadow .3s; }
.dd-fab:hover { transform: translateY(-2px) scale(1.04); box-shadow: 0 18px 46px -8px rgba(0,0,0,.9), 0 0 36px -6px rgba(255,255,255,.35); }
.dd-fab svg { width: 26px; height: 26px; }
.dexdock.open .dd-fab { transform: scale(.92); }
.dd-dot { position: absolute; top: 6px; right: 6px; width: 11px; height: 11px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); animation: ddPulse 1.6s ease-in-out infinite; }
@keyframes ddPulse { 50% { transform: scale(1.25); opacity: .7; } }
.dd-panel { pointer-events: auto; width: min(380px, calc(100vw - 32px)); padding: 16px; border-radius: 22px; background: rgba(18,18,20,.92); backdrop-filter: blur(24px); border: 1px solid var(--line-2); box-shadow: 0 30px 80px -20px #000; display: grid; gap: 12px; transform-origin: bottom right; opacity: 0; transform: translateY(10px) scale(.96); visibility: hidden; transition: opacity .25s var(--ease), transform .35s var(--spring), visibility .25s; }
.dexdock.open .dd-panel { opacity: 1; transform: none; visibility: visible; }
.dd-head { display: flex; align-items: center; gap: 10px; }
.dd-av { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--line); }
.dd-av svg { width: 20px; height: 20px; }
.dd-head .t { flex: 1; display: grid; line-height: 1.25; }
.dd-head b { font-weight: 600; }
.dd-x { width: 36px; height: 36px; border-radius: 10px; border: 0; background: none; color: var(--text-3); display: grid; place-items: center; cursor: pointer; }
.dd-x:hover { color: var(--text); background: var(--surface-2); }
.dd-x svg { width: 18px; height: 18px; }
/* Dex do canto minimalista (2026-11-27): só mensagens, campo e enviar */
.dd-head b { flex: 1; font-size: 15px; padding-left: 4px; }
.dd-msgs { display: grid; gap: 8px; max-height: min(52vh, 420px); overflow-y: auto; overscroll-behavior: contain; }
.dd-msgs[hidden] { display: none; }
.dd-m { font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
.dd-m.eu { justify-self: end; max-width: 85%; padding: 8px 12px; border-radius: 16px 16px 4px 16px; background: var(--text); color: #000002; }
.dd-m.dex { color: var(--text); }
.dd-m.dex p { margin: 0 0 6px; } .dd-m.dex p:last-child { margin: 0; }
.dd-m.dex ul, .dd-m.dex ol { margin: 4px 0; padding-left: 18px; }
.dd-m.err { color: #ff6b6b; }
.dd-pensa { color: var(--text-3); font-size: 13px; }
.dd-ask { display: flex; align-items: center; gap: 8px; padding: 5px 5px 5px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line-2); }
.dd-ask:focus-within { border-color: var(--line-3); }
.dd-ask input { flex: 1; min-width: 0; height: 40px; border: 0; outline: 0; background: none; color: var(--text); font: inherit; font-size: 16px; }
.dd-ask .btn.icon { --h: 40px; flex: none; }
.dd-more { justify-self: center; }
.dd-more:hover { color: var(--text); }
@media (max-width: 767px) { .dexdock { right: 14px; bottom: calc(14px + env(safe-area-inset-bottom)); } .dd-fab { width: 52px; height: 52px; } }
/* editor em tela cheia: fica no canto do canvas, ao lado do painel da direita (332 px + margens) */
body.full .dexdock { right: 372px; bottom: 30px; }
@media (max-width: 1100px) { body.full .dexdock { right: 328px; } }
/* editor no celular: o painel de baixo ocupa a tela, então o Dex sobe para o topo, abaixo da barra */
@media (max-width: 767px) { body.full .dexdock { top: 74px; bottom: auto; right: 12px; } body.full .dd-fab { order: -1; width: 44px; height: 44px; } body.full .dd-fab svg { width: 22px; height: 22px; } body.full .dd-panel { transform-origin: top right; } }

/* venda: cadeado no menu, botão "Liberar acesso" e pop-up de planos */
.nav-lock { margin-left: auto; display: inline-grid; color: var(--text-3); }
.nav-lock svg { width: 13px; height: 13px; }
.nav-buy { display: flex; align-items: center; gap: 10px; width: 100%; margin: 0 0 12px; height: 42px; padding: 0 12px; border: 0; border-radius: 12px; background: #fefefe; color: #000002; font: inherit; font-weight: 600; font-size: 14px; cursor: pointer; box-shadow: 0 10px 30px -12px rgba(250,9,128,.55); }
.nav-buy svg { width: 17px; height: 17px; }
.pw-bg { position: fixed; inset: 0; z-index: 400; display: grid; place-items: center; padding: 16px; background: rgba(0,0,2,.72); backdrop-filter: blur(10px); opacity: 0; transition: opacity .3s; overflow-y: auto; }
.pw-bg.on { opacity: 1; }
.pw { position: relative; width: min(560px, 100%); padding: 30px 26px 22px; border-radius: 28px; background: radial-gradient(120% 60% at 50% 0%, rgba(250,9,128,.14), transparent 60%), #0c0c0e; border: 1px solid var(--line-2); box-shadow: 0 40px 120px -30px #000; transform: translateY(14px) scale(.98); transition: transform .4s var(--spring); display: grid; gap: 18px; }
.pw-bg.on .pw { transform: none; }
.pw-x { position: absolute; right: 14px; top: 14px; width: 36px; height: 36px; border: 0; border-radius: 12px; background: none; color: var(--text-3); display: grid; place-items: center; cursor: pointer; }
.pw-x:hover { color: var(--text); background: var(--surface-2); }
.pw-x svg { width: 18px; height: 18px; }
.pw-top { display: grid; justify-items: center; text-align: center; gap: 8px; }
.pw-logo { width: 54px; height: auto; filter: drop-shadow(0 0 22px rgba(250,9,128,.45)); }
.pw-top h2 { margin: 6px 0 0; font-size: clamp(24px, 5vw, 30px); letter-spacing: -.03em; font-weight: 600; }
.pw-top p { margin: 0; color: var(--text-2); font-size: 14.5px; line-height: 1.5; max-width: 400px; }
.pw-planos { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.pw-plano { position: relative; display: grid; gap: 6px; padding: 20px 18px 16px; border-radius: 20px; border: 1px solid var(--line-2); background: var(--surface); color: var(--text); text-decoration: none; transition: transform .3s var(--spring), border-color .2s; }
.pw-plano:hover { transform: translateY(-2px); border-color: var(--line-3); }
.pw-plano.destaque { border-color: #fefefe; box-shadow: 0 0 0 1px #fefefe inset, 0 20px 50px -20px rgba(250,9,128,.5); }
.pw-plano.off { pointer-events: none; opacity: .75; }
.pw-tag { position: absolute; top: -11px; left: 18px; padding: 3px 10px; border-radius: 999px; background: #fefefe; color: #000002; font-size: 11px; font-weight: 700; }
.pw-plano b { font-size: 15px; font-weight: 600; }
.pw-preco { display: flex; align-items: baseline; gap: 6px; }
.pw-preco span { font-size: 32px; font-weight: 700; letter-spacing: -.03em; }
.pw-preco em { font-style: normal; color: var(--text-3); font-size: 13px; }
.pw-mes { color: var(--text-2); font-size: 12.5px; }
.pw-btn { margin-top: 8px; display: grid; place-items: center; height: 44px; border-radius: 14px; background: var(--surface-2); font-weight: 600; font-size: 14px; }
.pw-plano.destaque .pw-btn { background: #fefefe; color: #000002; }
.pw-inclui { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.pw-inclui li { display: flex; gap: 9px; font-size: 13.5px; color: var(--text-2); }
.pw-inclui svg { width: 15px; height: 15px; flex: none; margin-top: 2px; color: var(--text); }
.pw-obs { margin: 0; text-align: center; font-size: 12px; color: var(--text-3); }

/* ---------- luz passando em volta (borda viva). Uso: class="beam" (sempre) ou "beam beam-hover" (só ao passar o mouse) */
@property --beam-a { syntax: '<angle>'; initial-value: 0deg; inherits: false; }
.beam { position: relative; isolation: isolate; }
.beam::before, .beam-ring {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px; pointer-events: none; z-index: 4;
  background: conic-gradient(from var(--beam-a), transparent 0deg 262deg, rgba(254,254,254,.25) 290deg, #FEFEFE 318deg, rgba(254,254,254,.25) 340deg, transparent 352deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  filter: drop-shadow(0 0 5px rgba(255,255,255,.7));
  animation: beam-gira var(--beam-t, 6s) linear infinite; animation-delay: var(--beam-d, 0s);
}
.beam-hover::before, .beam-hover > .beam-ring { opacity: 0; transition: opacity .35s; }
.beam-hover:hover::before, .beam-hover:hover > .beam-ring { opacity: 1; --beam-t: 3.2s; }
@keyframes beam-gira { to { --beam-a: 360deg; } }
@media (prefers-reduced-motion: reduce) { .beam::before, .beam-ring { animation: none; --beam-a: 300deg; } }

/* ---------- Dex no computador: instalação e progresso ao vivo */
.dxi { max-width: 560px; }
.dxi .modal-b { display: grid; gap: 14px; }
.dxi-os { justify-self: start; }
.dxi-passos { margin: 0; padding-left: 20px; display: grid; gap: 6px; color: var(--text-2); font-size: 14px; }
.dxi-cmd { display: flex; align-items: center; gap: 10px; padding: 12px 12px 12px 14px; border-radius: 14px; background: #000; border: 1px solid var(--line-2); }
.dxi-code { flex: 1; min-width: 0; font: 12.5px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; color: #fff; word-break: break-all; }
.dxi-st { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--text-2); }
.dxi-st svg { width: 18px; height: 18px; color: #3ddc84; }
.dxp { display: grid; gap: 10px; padding: 14px; border-radius: 16px; background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02)), var(--surface); box-shadow: inset 0 1px 0 rgba(255,255,255,.06); }
.dxp-h { display: flex; align-items: center; gap: 10px; font-size: 13.5px; }
.dxp-ic { width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; background: var(--surface-3); flex: none; }
.dxp-ic svg { width: 16px; height: 16px; }
.dxp-q { color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dxp-l { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 13.5px; }
.dxp-l li { display: flex; align-items: center; gap: 8px; color: var(--text-3); }
.dxp-l li.on { color: var(--text); }
.dxp-l li svg { width: 15px; height: 15px; color: #3ddc84; flex: none; }
.dxp-l .spinner { width: 14px; height: 14px; flex: none; }
.dxp-r { white-space: pre-wrap; font-size: 14px; line-height: 1.55; padding-top: 6px; max-height: 320px; overflow: auto; }
.dxp-r.err { color: #ff6b6b; }
.dd-run { margin: 0 14px 10px; }
.dd-run .dxp { padding: 12px; }
.ob-dex-passos { margin: 0 0 6px; padding-left: 20px; display: grid; gap: 6px; text-align: left; color: var(--text-2); font-size: 14.5px; }

/* menu da conta + sino (2026-11-27) */
.side-me { display: flex; align-items: center; gap: 4px; }
.side-me .me-chip { flex: 1; min-width: 0; text-align: left; }
.sino { position: relative; width: 40px; height: 40px; flex: none; border-radius: 12px; display: grid; place-items: center; color: var(--text-2); transition: background .2s, color .2s; }
.sino:hover { background: rgba(255,255,255,.06); color: var(--text); }
.sino svg { width: 18px; height: 18px; }
.sino.tem::after { content: attr(data-n); position: absolute; top: 4px; right: 3px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 10px; font-weight: 700; line-height: 16px; text-align: center; box-shadow: 0 0 10px var(--accent-glow); }
body.collapsed .side-me { flex-direction: column; } body.collapsed .side-me .sino { order: -1; }
.tb-dir { display: flex; align-items: center; gap: 4px; }
#meMini { display: grid; place-items: center; border-radius: 50%; }
.cm-pop { position: fixed; z-index: 260; width: 280px; max-width: calc(100vw - 16px); padding: 6px; border-radius: 22px; background: rgba(20,20,22,.96); backdrop-filter: blur(26px); -webkit-backdrop-filter: blur(26px); box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 30px 70px -10px #000; animation: pop .3s var(--spring); display: grid; gap: 1px; }
.cm-pop.cm-sino { width: 340px; }
.cm-me { display: flex; align-items: center; gap: 11px; padding: 10px 10px 12px; }
.cm-me span { display: grid; min-width: 0; } .cm-me b { font-size: 14px; font-weight: 600; } .cm-me small { font-size: 12px; color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cm-i { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 42px; padding: 0 12px; border-radius: 14px; font-size: 14px; color: var(--text-2); text-align: left; transition: background .15s, color .15s; }
.cm-i:hover { background: rgba(255,255,255,.06); color: var(--text); }
.cm-i svg { width: 17px; height: 17px; flex: none; }
.cm-sep { display: block; height: 1px; margin: 4px 10px; background: var(--fill); }
.cm-sh { display: flex; align-items: center; justify-content: space-between; padding: 10px 10px 8px; } .cm-sh b { font-size: 14.5px; font-weight: 600; }
.cm-lk { font-size: 12.5px; color: var(--text-3); min-height: 30px; } .cm-lk:hover { color: var(--text); }
.cm-nl { display: grid; gap: 1px; max-height: min(60vh, 420px); overflow-y: auto; }
.cm-n { display: flex; gap: 12px; padding: 10px; border-radius: 14px; transition: background .15s; }
.cm-n:hover { background: rgba(255,255,255,.05); }
.cm-n .ic { width: 32px; height: 32px; flex: none; border-radius: 10px; display: grid; place-items: center; background: rgba(255,255,255,.06); color: var(--text-2); }
.cm-n .ic svg { width: 15px; height: 15px; }
.cm-n.nova .ic { background: var(--accent-soft); color: var(--accent); }
.cm-n > span:last-child { display: grid; gap: 2px; min-width: 0; } .cm-n b { font-size: 13.5px; font-weight: 500; line-height: 1.35; } .cm-n small { font-size: 12.5px; color: var(--text-2); line-height: 1.4; } .cm-n em { font-style: normal; font-size: 11.5px; color: var(--text-3); }
.cm-vz { margin: 18px 10px; font-size: 13px; color: var(--text-3); text-align: center; }
.cm-cfg { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; margin-top: 4px; border-radius: 14px; font-size: 13px; color: var(--text-2); background: rgba(255,255,255,.04); }
.cm-cfg:hover { color: var(--text); background: rgba(255,255,255,.07); } .cm-cfg svg { width: 15px; height: 15px; }

/* Dex pequeno no botão flutuante (2026-11-27): o mascote de pé, sem círculo, com luz embaixo */
.dd-fab.dd-mini { width: 58px; height: 78px; border: 0; border-radius: 0; background: none; box-shadow: none; overflow: visible; align-items: end; padding: 0; }
.dd-fab.dd-mini:hover { transform: translateY(-3px); box-shadow: none; }
.ddm-corpo { position: relative; z-index: 1; width: 46px; display: block; transform-origin: 50% 95%; animation: ddmFlutua 3.8s ease-in-out infinite; filter: drop-shadow(0 10px 12px rgba(0,0,0,.65)) drop-shadow(0 0 16px rgba(250,9,128,.35)); transition: filter .3s; }
.dd-fab.dd-mini:hover .ddm-corpo { filter: drop-shadow(0 12px 14px rgba(0,0,0,.6)) drop-shadow(0 0 22px rgba(250,9,128,.6)); }
.ddm-corpo img { display: block; width: 100%; height: auto; pointer-events: none; user-select: none; }
.ddm-o { position: absolute; top: calc(377 / 1000 * 100%); width: calc(34 / 592 * 100%); height: calc(76 / 1000 * 100%); margin: calc(-38 / 1000 * 100%) 0 0 calc(-17 / 592 * 100%); border-radius: 3px; background: #fff; box-shadow: 0 0 5px #fff;
  transform: translate(calc(var(--ex, 0) * 3.2px), calc(var(--ey, 0) * 1.8px)); transition: transform .08s linear; }
.ddm-o.e { left: calc(228 / 592 * 100%); } .ddm-o.d { left: calc(364 / 592 * 100%); }
.dd-fab.pisca .ddm-o { transform: translate(calc(var(--ex, 0) * 3.2px), calc(var(--ey, 0) * 1.8px)) scaleY(.1); }
.ddm-corpo { rotate: calc(var(--ex, 0) * 6deg); }
.ddm-chao { position: absolute; left: 50%; bottom: -4px; width: 44px; height: 9px; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(closest-side, rgba(250,9,128,.6), transparent); animation: ddmChao 3.8s ease-in-out infinite; }
.ddm-luz { position: absolute; left: 50%; top: 46%; width: 86px; height: 86px; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(closest-side, rgba(250,9,128,.2), transparent 70%); pointer-events: none; }
.dexdock.open .dd-fab.dd-mini { transform: scale(.94); }
.dd-fab.dd-mini .dd-dot { top: 10px; right: 2px; }
@keyframes ddmFlutua { 0%, 100% { translate: 0 0; } 50% { translate: 0 -5px; } }
@keyframes ddmChao { 0%, 100% { transform: translateX(-50%) scaleX(1); opacity: .9; } 50% { transform: translateX(-50%) scaleX(.78); opacity: .6; } }
@media (max-width: 767px) { .dd-fab.dd-mini { width: 52px; height: 70px; } .ddm-corpo { width: 40px; } }
@media (max-width: 767px) { body.full .dd-fab.dd-mini { width: 40px; height: 54px; } body.full .ddm-corpo { width: 30px; } }
@media (prefers-reduced-motion: reduce) { .ddm-corpo, .ddm-chao { animation: none; } }
/* mascote do canto um pouco menor (2026-11-27) */
.dd-fab.dd-mini { width: 46px; height: 62px; }
.ddm-corpo { width: 36px; }
.ddm-chao { width: 34px; height: 7px; }
.ddm-luz { width: 68px; height: 68px; }
@media (max-width: 767px) { .dd-fab.dd-mini { width: 42px; height: 56px; } .ddm-corpo { width: 32px; } }
