/* ORION AI — interface */
:root {
  --bg: #07090f;
  --bg-2: #0b0f19;
  --panel: #0e1320;
  --panel-2: #121929;
  --raised: #172036;
  --line: rgba(148, 163, 184, 0.12);
  --line-2: rgba(148, 163, 184, 0.2);
  --text: #e6ebf5;
  --text-2: #a3aec4;
  --text-3: #6b7790;
  --accent: #22d3ee;
  --accent-2: #3b82f6;
  --accent-soft: rgba(34, 211, 238, 0.12);
  --ok: #34d399;
  --warn: #fbbf24;
  --err: #f87171;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.7);
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, Consolas, monospace;
  --side-w: 430px;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 14px/1.5 var(--font);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--accent); }
[hidden] { display: none !important; }
.muted { color: var(--text-3); }
::selection { background: rgba(34, 211, 238, 0.3); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: rgba(148, 163, 184, 0.18); border-radius: 10px; border: 2px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background-color: rgba(148, 163, 184, 0.3); }
::-webkit-scrollbar-track { background: transparent; }

/* ------------------------------------------------------------------ botões */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 36px; padding: 0 14px; border-radius: var(--radius-sm);
  border: 1px solid transparent; background: var(--raised); color: var(--text);
  font-weight: 600; font-size: 13px; transition: background .15s, border-color .15s, transform .1s, box-shadow .15s;
  white-space: nowrap;
}
.btn:hover { background: #1d2842; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-primary { background: linear-gradient(135deg, #22d3ee, #6366f1); color: #04121a; border: 0; }
.btn-primary:hover { background: linear-gradient(135deg, #3ee0f5, #7c7ff7); box-shadow: 0 6px 20px -6px rgba(34, 211, 238, 0.55); }
.btn-ghost { background: transparent; border-color: var(--line-2); color: var(--text-2); }
.btn-ghost:hover { background: rgba(148, 163, 184, 0.08); color: var(--text); }
.btn-sm { height: 28px; padding: 0 10px; font-size: 12px; }
.icon-btn {
  display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: var(--radius-sm);
  border: 1px solid transparent; background: transparent; color: var(--text-2); transition: background .15s, color .15s;
  text-decoration: none; flex-shrink: 0;
}
.icon-btn:hover { background: rgba(148, 163, 184, 0.1); color: var(--text); }
.icon-btn.active { background: var(--accent-soft); color: var(--accent); }
.icon-btn.sm { width: 26px; height: 26px; }
.link-btn { background: none; border: 0; color: var(--accent); font-size: 12px; font-weight: 600; padding: 2px 4px; }
.link-btn:hover { text-decoration: underline; }
.chip {
  border: 1px solid var(--line-2); background: transparent; color: var(--text-2);
  padding: 5px 11px; border-radius: 999px; font-size: 12px; transition: all .15s; white-space: nowrap;
}
.chip:hover { color: var(--text); border-color: var(--accent); background: var(--accent-soft); }

.spinner { width: 16px; height: 16px; border: 2px solid rgba(148, 163, 184, 0.25); border-top-color: var(--accent); border-radius: 50%; animation: spin .8s linear infinite; flex-shrink: 0; }
.spinner.sm { width: 12px; height: 12px; border-width: 2px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ------------------------------------------------------------------ topo */
.topbar {
  height: 54px; flex-shrink: 0; display: flex; align-items: center; gap: 14px; padding: 0 14px;
  border-bottom: 1px solid var(--line); background: rgba(7, 9, 15, 0.9); backdrop-filter: blur(10px); z-index: 40; /* acima da tela de ferramentas (28) e do menu lateral (30), para os menus do topo abrirem na frente */
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark {
  width: 22px; height: 22px; border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, #e0fbff 0 18%, #22d3ee 30%, #6366f1 70%, transparent 72%);
  box-shadow: 0 0 18px rgba(34, 211, 238, 0.55);
}
.brand-name { font-family: 'Orbitron', var(--font); font-weight: 800; letter-spacing: 3px; font-size: 15px; }
.repo-pill {
  display: flex; align-items: center; gap: 8px; height: 34px; padding: 0 12px; max-width: 420px;
  border-radius: 999px; border: 1px solid var(--line-2); background: var(--panel);
  color: var(--text-2); font-size: 13px; transition: border-color .15s;
}
.repo-pill:hover { border-color: var(--accent); color: var(--text); }
.repo-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; color: var(--text); }
.repo-branch { font-family: var(--mono); font-size: 11px; color: var(--text-3); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #475569; flex-shrink: 0; }
.dot.on { background: var(--ok); box-shadow: 0 0 8px rgba(52, 211, 153, 0.7); }
.dot.busy { background: var(--warn); box-shadow: 0 0 8px rgba(251, 191, 36, 0.6); }
.dot.err { background: var(--err); }
.topbar-status { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--text-2); padding: 4px 10px; border-radius: 999px; background: var(--accent-soft); max-width: 340px; }
.topbar-status span:last-child { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.repo-tools { display: flex; align-items: center; gap: 2px; flex: none; }
.topbar-actions { margin-left: auto; display: flex; align-items: center; gap: 6px; }
#open-keys-btn.connected { border-color: rgba(52, 211, 153, 0.4); color: var(--ok); }
#header-keys-btn { color: var(--text-3); }
#header-keys-btn.connected, #header-keys-btn.connected:hover { color: var(--ok); }

/* ------------------------------------------------------------------ layout */
.workspace { flex: 1; min-height: 0; display: flex; position: relative; }
.side { width: var(--side-w); min-width: 340px; max-width: 70vw; display: flex; flex-direction: column; background: var(--bg-2); border-right: 1px solid var(--line); min-height: 0; }
.resizer { width: 5px; cursor: col-resize; background: transparent; flex-shrink: 0; margin-left: -3px; z-index: 5; transition: background .15s; }
.resizer:hover, .resizer.dragging { background: rgba(34, 211, 238, 0.35); }
.stage { flex: 1; min-width: 0; display: flex; flex-direction: column; background: var(--bg); }
body.resizing iframe { pointer-events: none; }
body.resizing { cursor: col-resize; user-select: none; }

/* ------------------------------------------------------------------ voz */
.voice-dock { display: flex; gap: 14px; align-items: center; padding: 14px; border-bottom: 1px solid var(--line); background: radial-gradient(ellipse at 20% 50%, rgba(34, 211, 238, 0.07), transparent 70%); }
.orb-box { position: relative; width: 116px; height: 116px; flex-shrink: 0; }
/* brilho atrás da orb: preso à própria orb e some antes de chegar à borda do painel (antes era o fundo
   do bloco de voz, cortado em linha reta na lateral esquerda) */
body:not(.chat-hidden) .voice-dock { background: none; }
body:not(.chat-hidden) .orb-box::before { content: ''; position: absolute; inset: -40px; border-radius: 50%; background: radial-gradient(circle closest-side, rgba(56, 189, 248, 0.16), rgba(56, 189, 248, 0.05) 45%, transparent 70%); pointer-events: none; }
.orb-canvas { position: relative; }
.orb-canvas { width: 100%; height: 100%; display: block; -webkit-mask-image: radial-gradient(circle closest-side, #000 55%, transparent 100%); mask-image: radial-gradient(circle closest-side, #000 55%, transparent 100%); }
.orb-expand { position: absolute; right: -2px; bottom: -2px; width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--panel); color: var(--text-3); display: grid; place-items: center; opacity: 0; transition: opacity .15s; }
.orb-box:hover .orb-expand { opacity: 1; }
.voice-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.voice-state { font-size: 11px; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase; color: var(--accent); }
.voice-state.listening { color: var(--ok); }
.voice-state.speaking { color: var(--accent-2); }
.voice-caption { font-size: 13px; color: var(--text-2); min-height: 40px; max-height: 60px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.voice-caption .you { color: var(--text); }
.voice-controls { display: flex; gap: 6px; align-items: center; }
.btn-voice { background: var(--accent-soft); color: var(--accent); border: 1px solid rgba(34, 211, 238, 0.35); border-radius: 999px; }
.btn-voice:hover { background: rgba(34, 211, 238, 0.2); }
.btn-voice.live { background: linear-gradient(135deg, #f43f5e, #e11d48); color: #fff; border-color: transparent; animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(244, 63, 94, 0.45); } 50% { box-shadow: 0 0 0 7px rgba(244, 63, 94, 0); } }
#mute-btn.active { color: var(--err); background: rgba(248, 113, 113, 0.12); }

/* ------------------------------------------------------------------ tarefa */
.task-strip { padding: 10px 14px; border-bottom: 1px solid var(--line); background: linear-gradient(90deg, rgba(129, 140, 248, 0.1), transparent); }
.task-head { display: flex; align-items: center; gap: 8px; }
.task-title { flex: 1; font-weight: 600; font-size: 13px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.task-step { font-size: 12px; color: var(--text-3); margin-top: 3px; padding-left: 20px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }

/* ------------------------------------------------------------------ chat */
.chat-toolbar { display: flex; align-items: center; gap: 6px; padding: 8px 14px; border-bottom: 1px solid var(--line); }
.chat-toolbar-title { margin-right: auto; font-size: 11px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: var(--text-3); }
.view-toggles { display: flex; gap: 4px; margin-right: 4px; }
.view-toggles .btn.off { color: var(--accent); border-color: rgba(34, 211, 238, 0.4); background: var(--accent-soft); }

/* painéis ocultáveis */
body.chat-hidden .chat, body.chat-hidden .task-strip { display: none; }
body.chat-hidden .voice-dock { flex: 1; flex-direction: column; justify-content: center; text-align: center; border-bottom: 0; background: radial-gradient(ellipse at center, rgba(34, 211, 238, 0.08), transparent 70%); }
body.chat-hidden .orb-box { width: min(340px, 80%); height: auto; aspect-ratio: 1; }
body.chat-hidden .voice-info { align-items: center; max-width: 560px; flex: 0; }
body.chat-hidden .voice-caption { font-size: 16px; color: var(--text); max-height: none; -webkit-line-clamp: 5; text-align: center; }
body.chat-hidden .voice-controls { justify-content: center; }
body.preview-hidden .stage, body.preview-hidden .resizer { display: none !important; }
body.preview-hidden .side { width: 100%; max-width: none; border-right: 0; }
body.preview-hidden:not(.chat-hidden) .chat, body.preview-hidden:not(.chat-hidden) .voice-dock, body.preview-hidden:not(.chat-hidden) .task-strip { width: 100%; max-width: 900px; margin: 0 auto; }
body.preview-hidden .chat-toolbar { border-bottom: 1px solid var(--line); }
.chat { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.messages { flex: 1; overflow-y: auto; padding: 16px 14px 8px; display: flex; flex-direction: column; gap: 14px; scroll-behavior: smooth; }
.msg { display: flex; gap: 10px; align-items: flex-start; animation: msg-in .25s ease-out; }
@keyframes msg-in { from { opacity: 0; transform: translateY(6px); } }
.msg .avatar { width: 26px; height: 26px; border-radius: 50%; flex-shrink: 0; margin-top: 2px; background: radial-gradient(circle, #e0fbff 0 18%, #22d3ee 32%, #6366f1 72%); box-shadow: 0 0 12px rgba(34, 211, 238, 0.35); }
.msg.user { flex-direction: row-reverse; }
.msg.user .avatar { background: var(--raised); box-shadow: none; display: grid; place-items: center; font-size: 10px; font-weight: 700; color: var(--text-2); }
.msg.user .avatar::after { content: 'VC'; }
.bubble { min-width: 0; max-width: 100%; font-size: 13.5px; line-height: 1.6; color: var(--text); overflow-wrap: anywhere; }
.msg.user .bubble { background: var(--raised); padding: 9px 13px; border-radius: 14px 14px 4px 14px; max-width: 88%; white-space: pre-wrap; }
.msg.assistant .bubble { flex: 1; }
.msg.voice .bubble::before { content: '🎙'; font-size: 11px; margin-right: 6px; opacity: .6; }
.msg.user.voice .bubble::before { content: '🎙'; }
.msg.interim .bubble { opacity: .6; font-style: italic; }
.bubble p { margin: 0 0 8px; }
.bubble p:last-child { margin-bottom: 0; }
.bubble ul, .bubble ol { margin: 4px 0 8px; padding-left: 20px; }
.bubble li { margin: 2px 0; }
.bubble code { font-family: var(--mono); font-size: 12px; background: rgba(148, 163, 184, 0.12); padding: 1px 5px; border-radius: 4px; }
.bubble pre { position: relative; background: #0a0e18; border: 1px solid var(--line); border-radius: 10px; padding: 12px; overflow-x: auto; margin: 8px 0; }
.bubble pre code { background: none; padding: 0; font-size: 12px; }
.bubble h1, .bubble h2, .bubble h3 { font-size: 14px; margin: 10px 0 6px; }
.bubble a { color: var(--accent); }
.bubble.error { color: #fecaca; }
.msg-meta { display: flex; gap: 10px; align-items: center; font-size: 11px; color: var(--text-3); margin-top: 6px; }
.msg-meta button { background: none; border: 0; color: var(--text-3); font-size: 11px; padding: 0; }
.msg-meta button:hover { color: var(--accent); }
.typing { display: inline-flex; gap: 4px; padding: 6px 0; }
.typing span { width: 6px; height: 6px; border-radius: 50%; background: var(--text-3); animation: blink 1.2s infinite; }
.typing span:nth-child(2) { animation-delay: .2s; }
.typing span:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }
.code-copy { position: absolute; top: 6px; right: 6px; font-size: 11px; border: 1px solid var(--line-2); background: var(--panel); color: var(--text-2); border-radius: 6px; padding: 2px 8px; }

.steps { margin: 6px 0 2px; display: flex; flex-direction: column; gap: 3px; }
.step { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--text-2); padding: 3px 0; }
.step .ico { width: 14px; height: 14px; flex-shrink: 0; display: grid; place-items: center; }
.step.done .ico::before { content: '✓'; color: var(--ok); font-weight: 700; font-size: 11px; }
.step.error .ico::before { content: '✕'; color: var(--err); font-weight: 700; font-size: 11px; }
.step.error { color: #fca5a5; }
.step .lbl { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--mono); font-size: 11.5px; }
.step .err { color: var(--err); font-family: var(--font); white-space: normal; }
.steps-toggle { font-size: 11px; color: var(--text-3); background: none; border: 0; padding: 0; margin-top: 2px; }
.commit-card { display: flex; align-items: center; gap: 8px; margin-top: 8px; padding: 8px 10px; border: 1px solid rgba(52, 211, 153, 0.25); background: rgba(52, 211, 153, 0.06); border-radius: 10px; font-size: 12px; color: var(--text-2); }
.commit-card a { color: var(--ok); font-family: var(--mono); text-decoration: none; }

.attachments { display: flex; gap: 6px; flex-wrap: wrap; padding: 6px 14px 0; }
.att { display: flex; align-items: center; gap: 6px; padding: 4px 6px 4px 4px; border-radius: 8px; background: var(--raised); font-size: 12px; max-width: 220px; }
.att img { width: 28px; height: 28px; border-radius: 5px; object-fit: cover; }
.att span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.att button { background: none; border: 0; color: var(--text-3); font-size: 15px; line-height: 1; }
.msg-images { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 6px; }
.msg-images img { max-width: 140px; max-height: 100px; border-radius: 8px; }

.quick-prompts { display: flex; gap: 6px; padding: 8px 14px 0; overflow-x: auto; scrollbar-width: none; }
.quick-prompts::-webkit-scrollbar { display: none; }
.composer { margin: 10px 14px 14px; display: flex; align-items: flex-end; gap: 6px; padding: 6px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--panel); transition: border-color .15s, box-shadow .15s; }
.composer:focus-within { border-color: rgba(34, 211, 238, 0.5); box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.1); }
.composer textarea { flex: 1; resize: none; border: 0; outline: 0; background: transparent; padding: 7px 4px; max-height: 180px; line-height: 1.45; font-size: 14px; }
.composer textarea::placeholder { color: var(--text-3); }
.composer textarea:placeholder-shown { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.send-btn { width: 34px; height: 34px; border-radius: 10px; border: 0; display: grid; place-items: center; background: linear-gradient(135deg, #22d3ee, #6366f1); color: #04121a; flex-shrink: 0; transition: transform .1s, opacity .15s; }
.send-btn:hover { transform: scale(1.04); }
.send-btn.busy { background: var(--raised); color: var(--text); }
.chat.drag-over .composer { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.2); }

/* ------------------------------------------------------------------ palco */
.stage-tabs { height: 44px; display: flex; align-items: center; gap: 2px; padding: 0 10px; border-bottom: 1px solid var(--line); flex-shrink: 0; }
.tab { height: 30px; padding: 0 12px; border-radius: 8px; border: 0; background: transparent; color: var(--text-3); font-weight: 600; font-size: 13px; display: inline-flex; align-items: center; gap: 6px; }
.tab:hover { color: var(--text); }
.tab.active { color: var(--text); background: var(--panel-2); }
.badge { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--err); color: #fff; font-size: 10px; display: inline-grid; place-items: center; }
.stage-status { margin-left: auto; display: flex; align-items: center; gap: 7px; font-size: 12px; color: var(--text-3); }
.tab-pane { display: none; flex: 1; min-height: 0; flex-direction: column; }
.tab-pane.active { display: flex; }

.preview-toolbar { height: 46px; display: flex; align-items: center; gap: 4px; padding: 0 10px; border-bottom: 1px solid var(--line); flex-shrink: 0; }
.route-box { flex: 1; min-width: 120px; display: flex; align-items: center; height: 32px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--panel); padding: 0 10px; margin: 0 6px; font-family: var(--mono); font-size: 12px; }
.route-host { color: var(--text-3); white-space: nowrap; }
.route-box input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; padding: 0 0 0 2px; font-family: var(--mono); font-size: 12px; }
.device-switch { display: flex; gap: 2px; padding: 2px; border-radius: 9px; background: var(--panel); margin-right: 4px; }
.device-switch .icon-btn { width: 30px; height: 28px; }

.preview-area { position: relative; flex: 1; min-height: 0; display: flex; justify-content: center; background: repeating-conic-gradient(#0a0d15 0 25%, #0b0f18 0 50%) 0 0 / 22px 22px; overflow: auto; }
.device-frame { width: 100%; height: 100%; transition: width .3s ease, height .3s ease, margin .3s; background: #fff; }
.device-frame.tablet { width: 820px; max-width: 100%; height: calc(100% - 32px); margin: 16px 0; border-radius: 16px; overflow: hidden; box-shadow: var(--shadow), 0 0 0 1px var(--line-2); }
.device-frame.mobile { width: 390px; max-width: 100%; height: min(844px, calc(100% - 32px)); margin: 16px 0; border-radius: 28px; overflow: hidden; box-shadow: var(--shadow), 0 0 0 6px #1e293b; }
.device-frame iframe { width: 100%; height: 100%; border: 0; display: block; background: #fff; }
.preview-empty { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 10px; padding: 24px; background: var(--bg); }
.preview-empty h3 { margin: 6px 0 0; font-size: 18px; }
.preview-empty p { margin: 0; color: var(--text-2); max-width: 440px; }
.empty-art { width: 92px; height: 92px; border-radius: 22px; background: linear-gradient(135deg, rgba(34, 211, 238, 0.2), rgba(99, 102, 241, 0.2)); border: 1px solid var(--line-2); position: relative; }
.empty-art::before { content: ''; position: absolute; inset: 18px 14px 30px; border-radius: 6px; border: 2px solid rgba(34, 211, 238, 0.6); }
.empty-art::after { content: ''; position: absolute; left: 30px; right: 30px; bottom: 18px; height: 3px; border-radius: 3px; background: rgba(99, 102, 241, 0.7); }
.preview-empty.loading .empty-art { animation: breathe 1.6s ease-in-out infinite; }
@keyframes breathe { 50% { transform: scale(.94); opacity: .7; } }

.error-bar { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-top: 1px solid rgba(248, 113, 113, 0.35); background: rgba(127, 29, 29, 0.25); font-size: 12.5px; }
.error-icon { width: 20px; height: 20px; border-radius: 50%; background: var(--err); color: #fff; font-weight: 800; display: grid; place-items: center; font-size: 12px; flex-shrink: 0; }
.error-text { flex: 1; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: #fecaca; font-family: var(--mono); font-size: 12px; }
.errors-pre { white-space: pre-wrap; font-family: var(--mono); font-size: 12px; color: #fecaca; background: #0a0e18; padding: 12px; border-radius: 8px; max-height: 60vh; overflow: auto; margin: 0; }

/* código */
.code-layout { flex: 1; min-height: 0; display: flex; }
.file-list { width: 280px; border-right: 1px solid var(--line); display: flex; flex-direction: column; min-height: 0; }
.file-filter { margin: 10px; height: 32px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--panel); padding: 0 10px; outline: 0; font-size: 12px; }
.file-items { flex: 1; overflow: auto; padding: 0 6px 10px; font-family: var(--mono); font-size: 12px; }
.file-item { display: flex; align-items: center; gap: 6px; padding: 4px 8px; border-radius: 6px; color: var(--text-2); cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.file-item:hover { background: rgba(148, 163, 184, 0.08); color: var(--text); }
.file-item.active { background: var(--accent-soft); color: var(--accent); }
.file-item.changed::after { content: '●'; color: var(--warn); margin-left: auto; font-size: 9px; }
.file-item .dir { color: var(--text-3); }
.file-view { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.file-view-head { height: 38px; display: flex; align-items: center; padding: 0 14px; border-bottom: 1px solid var(--line); font-family: var(--mono); font-size: 12px; color: var(--text-2); }
.file-code { flex: 1; margin: 0; overflow: auto; padding: 14px; font-family: var(--mono); font-size: 12.5px; line-height: 1.55; background: #0a0d15; }
.file-code code.hljs { background: transparent; padding: 0; }

/* logs */
.logs-toolbar { height: 42px; display: flex; align-items: center; gap: 8px; padding: 0 12px; border-bottom: 1px solid var(--line); font-size: 12px; }
.logs-toolbar .muted { margin-right: auto; }
.logs { flex: 1; overflow: auto; padding: 10px 14px; font-family: var(--mono); font-size: 12px; line-height: 1.6; background: #06080d; }
.log-line { white-space: pre-wrap; word-break: break-word; color: #94a3b8; }
.log-line.cmd { color: var(--accent); }
.log-line.warn { color: #fcd34d; }
.log-line.error { color: #fca5a5; }

.mobile-tabs { display: none; }
.mobile-chat-toggle { display: none; }

/* ------------------------------------------------------------------ modo foco */
.focus-overlay { position: fixed; inset: 0; z-index: 60; background: radial-gradient(ellipse at center, #0b1430 0%, #03050a 70%); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; padding: 24px; }
.focus-orb { width: min(62vh, 80vw); height: min(62vh, 80vw); -webkit-mask-image: radial-gradient(circle closest-side, #000 70%, transparent 100%); mask-image: radial-gradient(circle closest-side, #000 70%, transparent 100%); }
.focus-caption { max-width: 760px; text-align: center; font-size: clamp(16px, 2.2vw, 22px); color: var(--text); min-height: 64px; line-height: 1.45; }
.focus-caption .you { color: var(--text-2); }
.focus-state { font-size: 12px; letter-spacing: 3px; text-transform: uppercase; color: var(--accent); font-weight: 700; }
.focus-close { position: absolute; top: 18px; right: 18px; }

/* ------------------------------------------------------------------ modais */
.modal { position: fixed; inset: 0; z-index: 80; display: none; align-items: center; justify-content: center; padding: 20px; background: rgba(2, 4, 8, 0.7); backdrop-filter: blur(6px); }
.modal.open { display: flex; animation: fade .15s ease-out; }
@keyframes fade { from { opacity: 0; } }
.modal-card { width: 100%; max-width: 560px; max-height: calc(100vh - 40px); display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line-2); border-radius: 16px; box-shadow: var(--shadow); animation: pop .18s ease-out; }
.modal-card.wide { max-width: 860px; }
/* galeria de hologramas do assistente */
.holo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; margin-top: 12px; }
.holo-card { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 10px 14px; border-radius: 14px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, 0.02); color: var(--text); text-align: center; cursor: pointer; transition: border-color .15s, background .15s; }
.holo-card:hover { border-color: rgba(34, 211, 238, 0.45); }
.holo-card.active { border-color: var(--accent); background: var(--accent-soft); }
.holo-card-stage { width: 100%; aspect-ratio: 1; background: radial-gradient(circle, rgba(8, 20, 36, 0.9), rgba(2, 6, 12, 0.6) 70%); border-radius: 10px; overflow: hidden; }
.holo-card-stage canvas { width: 100%; height: 100%; display: block; -webkit-mask-image: radial-gradient(circle closest-side, #000 60%, transparent 100%); mask-image: radial-gradient(circle closest-side, #000 60%, transparent 100%); }
.holo-card strong { font-size: 13px; margin-top: 4px; }
.holo-card span { font-size: 11px; color: var(--text-3); line-height: 1.35; }
.holo-badge { position: absolute; top: 16px; right: 16px; display: none; font-style: normal; font-size: 10px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; color: #001018; background: var(--accent); padding: 2px 7px; border-radius: 999px; }
.holo-card.active .holo-badge { display: block; }
/* rostos holográficos: no desktop ficam maiores que as orbs, que cabem bem em 116px */
@media (min-width: 900px) {
  body.holo-face:not(.chat-hidden) .orb-box { width: 168px; height: 168px; }
  body.holo-face.chat-hidden .orb-box { width: min(480px, 92%); }
  body.holo-face .focus-orb { width: min(78vh, 90vw); height: min(78vh, 90vw); }
}
@keyframes pop { from { transform: translateY(8px) scale(.98); opacity: 0; } }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px 10px; }
.modal-head h2 { margin: 0; font-size: 17px; }
.modal-tabs { display: flex; gap: 4px; padding: 0 14px; border-bottom: 1px solid var(--line); overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
.modal-tabs::-webkit-scrollbar { display: none; }
/* cabeçalho, abas e rodapé nunca encolhem: só o corpo rola quando o conteúdo é alto */
.modal-head, .modal-tabs, .modal-foot { flex-shrink: 0; }
.mtab { flex-shrink: 0; height: 36px; padding: 0 12px; border: 0; background: none; color: var(--text-3); font-weight: 600; font-size: 13px; border-bottom: 2px solid transparent; white-space: nowrap; }
.mtab.active { color: var(--text); border-bottom-color: var(--accent); }
.modal-body { flex: 1 1 auto; min-height: 0; padding: 16px 18px; overflow-y: auto; display: flex; flex-direction: column; gap: 14px; }
.modal-foot { display: flex; align-items: center; justify-content: flex-end; gap: 8px; padding: 12px 18px 16px; border-top: 1px solid var(--line); }
.modal-foot .muted { margin-right: auto; font-size: 12px; }
.mpane { display: none; flex-direction: column; gap: 14px; }
.mpane.active { display: flex; }
.hint { margin: 0; font-size: 12px; color: var(--text-3); }
.hint a { color: var(--accent); }

.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field.grow { flex: 1; }
.field label { font-size: 12px; font-weight: 600; color: var(--text-2); display: flex; justify-content: space-between; }
.field label output { color: var(--accent); font-family: var(--mono); }
.field-row { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; }
:where(input:not([type=checkbox]):not([type=range]), select, textarea.keys-input) {
  height: 36px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--bg-2); padding: 0 10px; outline: 0; width: 100%; transition: border-color .15s;
}
:where(input, select, textarea.keys-input):focus { border-color: rgba(34, 211, 238, 0.6); }
.route-box input:focus { border: 0; }
select { cursor: pointer; }
select option, select optgroup { background: var(--panel); }
input[type=range] { width: 100%; accent-color: var(--accent); }
.secret { position: relative; }
.secret input { padding-right: 36px; font-family: var(--mono); font-size: 12px; }
.secret .icon-btn { position: absolute; right: 5px; top: 5px; }
.search-input { margin-bottom: 4px; }
.check { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-2); height: 36px; }
.toggle { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--text-2); cursor: pointer; }
.toggle input { width: 16px; height: 16px; accent-color: var(--accent); }

.provider-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); gap: 12px; }
.provider-card { border: 1px solid var(--line); background: var(--bg-2); border-radius: 12px; padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.provider-card.has-keys { border-color: rgba(52, 211, 153, 0.3); }
.provider-head { display: flex; align-items: center; gap: 8px; }
.provider-head strong { font-size: 13px; }
.provider-logo { width: 26px; height: 26px; flex: none; padding: 3px; border-radius: 7px; background: #fff; object-fit: contain; }
.provider-head .tag { font-size: 10px; padding: 2px 7px; border-radius: 999px; background: var(--raised); color: var(--text-3); font-weight: 600; }
.provider-head .tag.free { background: rgba(52, 211, 153, 0.12); color: var(--ok); }
.provider-head a { margin-left: auto; font-size: 11px; text-decoration: none; }
.provider-desc { font-size: 11.5px; color: var(--text-3); margin: 0; }
textarea.keys-input { height: auto; min-height: 58px; padding: 8px 10px; resize: vertical; font-family: var(--mono); font-size: 11.5px; line-height: 1.5; }
.key-status { display: flex; flex-direction: column; gap: 3px; }
.key-row { display: flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 11px; color: var(--text-2); }
.key-row .st { font-family: var(--font); font-size: 10px; font-weight: 700; padding: 1px 7px; border-radius: 999px; }
.st.ok { background: rgba(52, 211, 153, 0.14); color: var(--ok); }
.st.cooldown { background: rgba(251, 191, 36, 0.14); color: var(--warn); }
.st.invalid { background: rgba(248, 113, 113, 0.14); color: var(--err); }
.st.testing { background: var(--raised); color: var(--text-3); }
.key-row .why { color: var(--text-3); font-family: var(--font); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; }
.provider-actions { display: flex; gap: 8px; }

.repo-list { max-height: 300px; overflow: auto; display: flex; flex-direction: column; gap: 2px; border: 1px solid var(--line); border-radius: 10px; padding: 4px; }
.repo-item { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; cursor: pointer; }
.repo-item:hover { background: rgba(148, 163, 184, 0.07); }
.repo-item.active { background: var(--accent-soft); }
.repo-item .name { font-weight: 600; font-size: 13px; }
.repo-item .meta { font-size: 11px; color: var(--text-3); }
.repo-item .lock { margin-left: auto; font-size: 11px; color: var(--text-3); white-space: nowrap; }
.new-repo summary { cursor: pointer; font-size: 13px; color: var(--accent); font-weight: 600; }
.new-repo .field-row { margin-top: 10px; }

/* ------------------------------------------------------------------ toast */
.toast-host { position: fixed; right: 16px; bottom: 16px; z-index: 100; display: flex; flex-direction: column; gap: 8px; max-width: min(420px, calc(100vw - 32px)); }
.toast { display: flex; gap: 10px; align-items: flex-start; padding: 10px 14px; border-radius: 12px; background: var(--panel-2); border: 1px solid var(--line-2); box-shadow: var(--shadow); font-size: 13px; opacity: 0; transform: translateY(8px); transition: all .25s; cursor: pointer; }
.toast.show { opacity: 1; transform: none; }
.toast-icon { width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 800; flex-shrink: 0; margin-top: 1px; background: var(--accent); color: #04121a; }
.toast-success .toast-icon { background: var(--ok); }
.toast-error .toast-icon { background: var(--err); color: #fff; }
.toast-warning .toast-icon { background: var(--warn); }

/* ------------------------------------------------------------------ responsivo */
@media (max-width: 900px) {
  .topbar { gap: 8px; padding: 0 10px; }
  .brand-name { display: none; }
  .repo-pill { max-width: 46vw; }
  .topbar-status { display: none; }
  .workspace { flex-direction: column; }
  .side, .stage { width: 100% !important; max-width: none; min-width: 0; flex: 1; border: 0; }
  .resizer { display: none; }
  .workspace[data-mobile="side"] .stage { display: none; }
  .workspace[data-mobile="stage"] .side { display: none; }
  .mobile-tabs { display: flex; border-top: 1px solid var(--line); background: var(--bg-2); flex-shrink: 0; }
  .mobile-tabs button { position: relative; flex: 1; height: 54px; display: grid; place-items: center; border: 0; background: none; color: var(--text-3); }
  .mobile-tabs button svg { width: 27px; height: 27px; }
  .mobile-tabs button.active { color: var(--accent); }
  .mobile-tabs button.active svg { fill: currentColor; fill-opacity: .14; filter: drop-shadow(0 0 5px currentColor); }
  .mobile-tabs button.active::before { content: ''; position: absolute; top: -1px; left: 50%; width: 38px; height: 3px; transform: translateX(-50%); background: currentColor; clip-path: polygon(0 0, 100% 0, calc(100% - 3px) 100%, 3px 100%); box-shadow: 0 0 10px currentColor; }
  .file-list { width: 42%; }
  .device-switch, #pv-forward { display: none; }
  .view-toggles { display: none; } /* no celular as abas inferiores já alternam conversa, prévia e ferramentas */
  .topbar-actions { gap: 2px; min-width: 0; }
  .user-chip .uc-name { max-width: 76px; font-size: 12px; font-weight: 700; }
  .repo-pill { min-width: 0; max-width: 38vw; }
  .user-chip { flex: none; padding: 0 9px 0 4px; gap: 6px; }
  .user-chip > svg { display: none; }
  .workspace[data-mobile="tools"] .stage { display: none; }
  .mobile-chat-toggle { display: inline-flex; }
  .chat .chat-toolbar { order: 1; }
  .chat .messages { order: 2; }
  .chat .attachments { order: 3; }
  .chat .task-strip { order: 4; border-top: 1px solid var(--line); border-bottom: 0; }
  .chat .quick-prompts { order: 5; }
  .chat .composer { order: 6; }
  .voice-controls { flex-wrap: wrap; min-width: 0; }
  .mobile-chat-toggle[aria-pressed="true"] { color: var(--accent); border-color: rgba(34, 211, 238, 0.4); background: var(--accent-soft); }
  .provider-grid { grid-template-columns: 1fr; }
  .modal { padding: 10px; }
  .modal-card { max-height: calc(100dvh - 20px); }
  .modal-tabs { padding: 4px 8px 0; flex-wrap: wrap; overflow: visible; row-gap: 0; }
  .mtab { padding: 0 10px; height: 34px; }
}

.logs-toolbar .engine-select { width: auto; height: 28px; font-size: 12px; }

/* ================================================================ MENU LATERAL (esquerda) */
.nav-sidebar {
  position: fixed; top: 54px; left: 0; bottom: 0; width: 230px; z-index: 30;
  display: none; flex-direction: column; background: var(--bg-2); border-right: 1px solid var(--line);
}
body.nav-on .nav-sidebar { display: flex; }
body.nav-on .workspace { margin-left: 230px; }
.nav-list { flex: 1; overflow-y: auto; padding: 10px 10px 4px; display: flex; flex-direction: column; gap: 2px; }
.nav-foot { padding: 8px 10px 12px; border-top: 1px solid var(--line); }
.nav-sep { font-size: 10px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: var(--text-3); padding: 14px 10px 6px; }
.nav-item {
  display: flex; align-items: center; gap: 11px; width: 100%; padding: 9px 11px; border: 1px solid transparent;
  border-radius: 10px; background: transparent; color: var(--text-2); font-size: 13px; font-weight: 500; text-align: left; transition: background .15s, color .15s, border-color .15s;
}
.nav-item svg { width: 18px; height: 18px; flex-shrink: 0; opacity: .85; }
.nav-item span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-item:hover { background: rgba(148,163,184,0.08); color: var(--text); }
.nav-item.active { background: var(--accent-soft); color: var(--accent); border-color: rgba(34,211,238,0.3); font-weight: 600; }
.nav-item.active svg { opacity: 1; }

/* tela cheia da ferramenta */
.tool-screen {
  position: fixed; top: 54px; left: 230px; right: 0; bottom: 0; z-index: 28;
  display: flex; flex-direction: column; background: var(--bg); animation: ts-in .18s ease-out;
}
body:not(.nav-on) .tool-screen { left: 0; }
@keyframes ts-in { from { opacity: 0; } }
.tool-screen-head { display: flex; align-items: center; gap: 10px; height: 52px; padding: 0 18px; border-bottom: 1px solid var(--line); flex-shrink: 0; background: var(--bg-2); }
.tool-back { display: none; }
.tool-screen-title { font-size: 16px; font-weight: 700; }
.tool-screen-body { flex: 1; overflow-y: auto; padding: 22px; }
.tool-screen-body.wide { padding: 22px 28px; }

/* cabeçalho de seção dentro da ferramenta */
.ts-head { max-width: 1100px; margin: 0 auto 18px; }
.ts-head h2 { margin: 0 0 4px; font-size: 20px; }
.ts-head p { margin: 0; color: var(--text-3); font-size: 13px; line-height: 1.5; }
.ts-wrap { max-width: 1100px; margin: 0 auto; }
.ts-narrow { max-width: 620px; margin: 0 auto; }

/* reaproveita estilos de ferramenta */
.tool-intro { font-size: 13px; color: var(--text-3); margin: 0 0 16px; line-height: 1.55; }
.tool-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.tool-field label { font-size: 12px; font-weight: 600; color: var(--text-2); }
.tool-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.tool-drop { border: 1.5px dashed var(--line-2); border-radius: 14px; padding: 40px 16px; text-align: center; color: var(--text-3); font-size: 14px; cursor: pointer; transition: border-color .15s, background .15s; }
.tool-drop:hover, .tool-drop.over { border-color: var(--accent); background: var(--accent-soft); color: var(--text); }
.tool-out { margin-top: 12px; font-size: 13px; }
.tool-result-area { margin-top: 14px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; padding: 14px; font-size: 14px; line-height: 1.6; white-space: pre-wrap; word-break: break-word; max-height: 50vh; overflow: auto; }
.tool-list { display: flex; flex-direction: column; gap: 8px; }
.tool-card { display: flex; gap: 10px; align-items: center; padding: 11px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-2); }
.tool-badge { font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: 999px; white-space: nowrap; }
.tool-badge.ok { background: rgba(52,211,153,0.14); color: var(--ok); }
.tool-badge.err { background: rgba(248,113,113,0.14); color: var(--err); }
.tool-badge.wait { background: var(--raised); color: var(--text-3); }
.code-snippet { font-family: var(--mono); font-size: 12px; background: #0a0e18; border: 1px solid var(--line); border-radius: 10px; padding: 12px; white-space: pre-wrap; word-break: break-all; }

/* cartões de estatística (admin / proxy) */
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 20px; }
.stat-card { border: 1px solid var(--line); border-radius: 14px; padding: 16px; background: var(--bg-2); }
.stat-card .v { font-size: 26px; font-weight: 800; font-family: var(--font); }
.stat-card .l { font-size: 12px; color: var(--text-3); margin-top: 2px; }

/* proxy */
.proxy-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.proxy-table th, .proxy-table td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); font-family: var(--mono); }
.proxy-table th { color: var(--text-3); font-weight: 600; position: sticky; top: 0; background: var(--bg); }
.proxy-box { width: 100%; min-height: 240px; font-family: var(--mono); font-size: 12px; resize: vertical; }

/* biblioteca (full screen) */
.offer-toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 18px; }
.offer-toolbar .offer-search { flex: 1; min-width: 180px; }
.offer-cats { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 18px; }
.offer-chip { border: 1px solid var(--line-2); background: transparent; color: var(--text-2); padding: 6px 14px; border-radius: 999px; font-size: 12.5px; font-weight: 600; }
.offer-chip.active { background: var(--accent-soft); color: var(--accent); border-color: var(--accent); }
.offer-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px; }
.offer-card { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--bg-2); display: flex; flex-direction: column; transition: border-color .15s, transform .12s, box-shadow .15s; }
.offer-card:hover { border-color: var(--accent); transform: translateY(-3px); box-shadow: 0 16px 30px -20px rgba(34,211,238,0.5); }
.offer-cover { width: 100%; aspect-ratio: 16/9; object-fit: cover; background: linear-gradient(135deg, var(--raised), var(--panel-2)); display: grid; place-items: center; color: var(--text-2); font-size: 13px; font-weight: 600; text-align: center; padding: 14px; }
.offer-info { padding: 11px 12px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.offer-title { font-size: 13px; font-weight: 600; line-height: 1.3; flex: 1; }
.offer-cat { font-size: 10px; color: var(--text-3); text-transform: uppercase; letter-spacing: .5px; }
.offer-card .btn { margin-top: auto; }
.offer-admin-actions { display: flex; gap: 6px; }

/* comunidade */
.chat-room { display: flex; flex-direction: column; height: 100%; max-width: 760px; margin: 0 auto; }
.chat-room-msgs { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; padding: 4px 4px 12px; }
.room-msg { padding: 9px 13px; border-radius: 14px; background: var(--bg-2); border: 1px solid var(--line); max-width: 78%; position: relative; }
.room-msg.me { align-self: flex-end; background: var(--accent-soft); border-color: rgba(34,211,238,0.3); }
.room-msg .who { font-size: 11px; font-weight: 700; color: var(--accent); margin-bottom: 2px; }
.room-msg .when { font-size: 10px; color: var(--text-3); margin-left: 6px; font-weight: 400; }
.room-msg .del { position: absolute; top: 4px; right: 6px; font-size: 12px; color: var(--text-3); background: none; border: 0; opacity: 0; }
.room-msg:hover .del { opacity: 1; }
.chat-room-compose { display: flex; gap: 8px; padding-top: 12px; border-top: 1px solid var(--line); }
.chat-room-compose input { flex: 1; }

/* admin */
.admin-tabs { display: flex; gap: 4px; margin-bottom: 20px; border-bottom: 1px solid var(--line); }
.admin-tab { padding: 10px 16px; border: 0; background: none; color: var(--text-3); font-weight: 600; font-size: 13px; border-bottom: 2px solid transparent; }
.admin-tab.active { color: var(--text); border-bottom-color: var(--accent); }
.admin-lock { max-width: 360px; margin: 40px auto; text-align: center; }
.admin-lock .lock-ico { width: 54px; height: 54px; border-radius: 50%; background: var(--accent-soft); display: grid; place-items: center; margin: 0 auto 16px; color: var(--accent); }
.admin-offer-row { display: flex; align-items: center; gap: 12px; padding: 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg-2); }
.admin-offer-row img, .admin-offer-row .ph { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; background: var(--raised); flex-shrink: 0; display: grid; place-items: center; font-size: 9px; color: var(--text-3); text-align: center; }
.admin-offer-row .meta { flex: 1; min-width: 0; }
.drag-handle { flex-shrink: 0; width: 28px; height: 36px; padding: 0; display: grid; place-items: center; border: 0; border-radius: 6px; background: transparent; color: var(--text-3); cursor: grab; touch-action: none; }
.drag-handle:hover, .drag-handle:focus-visible { color: var(--text); background: var(--raised); }
.is-dragging { position: relative; z-index: 2; opacity: .85; box-shadow: 0 6px 20px rgba(0, 0, 0, .3); }
.is-dragging .drag-handle { cursor: grabbing; }
.admin-offer-row .meta .t { font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-offer-row .meta .s { font-size: 11px; color: var(--text-3); }

@media (max-width: 900px) {
  body.nav-on .workspace { margin-left: 0; }
  .nav-sidebar { top: 54px; bottom: 46px; width: 76%; max-width: 300px; transform: translateX(-100%); transition: transform .2s; display: flex; box-shadow: 20px 0 50px -20px rgba(0,0,0,0.7); }
  body[data-mobile="tools"] .nav-sidebar { transform: none; }
  body[data-mobile="tools"] .workspace { filter: brightness(.45); }
  body[data-mobile="tools"] .workspace * { pointer-events: none; } /* o toque no fundo escuro só fecha o menu */
  body:not(.nav-on) .nav-sidebar { display: flex; }
  .tool-screen { top: 54px; left: 0; bottom: 46px; }
  .tool-back { display: inline-grid; }
}

/* ================================================================ PROXY E CHECKER (estilo NOUD, paleta ORION) */
.proxy-controls-card { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; background: var(--bg-2); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; margin-bottom: 18px; }
.proxy-limit { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 200px; }
.proxy-limit label { font-size: 13px; color: var(--text-2); font-weight: 600; white-space: nowrap; }
.proxy-limit input { flex: 1; height: 40px; }
.proxy-btn-group { display: flex; gap: 10px; flex-wrap: wrap; }
.proxy-btn-group .btn { height: 40px; gap: 8px; }
.px-check-btn { background: var(--accent); color: #04141a; border: none; font-weight: 700; }
.px-check-btn:hover { filter: brightness(1.08); }
.px-clear-btn { background: transparent; border: 1px solid rgba(248,113,113,0.35); color: var(--err); }
.px-clear-btn:hover { background: rgba(248,113,113,0.12); }

.proxy-grid { display: grid; grid-template-columns: minmax(260px, 420px) 1fr; gap: 18px; align-items: start; }
.proxy-card { background: var(--bg-2); border: 1px solid var(--line); border-radius: 14px; padding: 16px; display: flex; flex-direction: column; }
.proxy-card-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.proxy-card-header h3 { margin: 0; font-size: 14px; }
.badge { font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--raised); color: var(--text-2); }
.proxy-textarea { width: 100%; min-height: 360px; flex: 1; resize: vertical; font-family: var(--mono); font-size: 12px; line-height: 1.6; background: var(--bg); color: var(--text); border: 1px solid var(--line-2); border-radius: 10px; padding: 10px 12px; outline: 0; }
.proxy-textarea:focus { border-color: rgba(34,211,238,0.6); }
.proxy-textarea::placeholder { color: var(--text-3); }
.proxy-stats { display: flex; gap: 10px; }
.stat-live { font-size: 12px; font-weight: 700; color: var(--ok); background: rgba(52,211,153,0.12); padding: 3px 10px; border-radius: 999px; }
.stat-die { font-size: 12px; font-weight: 700; color: var(--err); background: rgba(248,113,113,0.12); padding: 3px 10px; border-radius: 999px; }
.proxy-progress { margin-bottom: 12px; }
.proxy-progress-labels { display: flex; justify-content: space-between; font-size: 12px; color: var(--text-2); margin-bottom: 6px; }
.proxy-progress-labels span:last-child { color: var(--accent); font-weight: 700; }
.proxy-bar { height: 6px; border-radius: 999px; background: var(--raised); overflow: hidden; }
.proxy-bar-fill { height: 100%; width: 0; background: linear-gradient(90deg, var(--accent), var(--accent-2)); transition: width .3s ease; }
.proxy-table-wrap { overflow: auto; max-height: 48vh; border: 1px solid var(--line); border-radius: 10px; }
.proxy-dl-btn { margin-top: 14px; width: 100%; justify-content: center; gap: 8px; }
.px-tag { font-size: 11px; font-weight: 700; padding: 2px 10px; border-radius: 999px; white-space: nowrap; }
.px-tag.live { background: rgba(52,211,153,0.14); color: var(--ok); }
.px-tag.die { background: rgba(248,113,113,0.14); color: var(--err); }

/* ================================================================ CLONE SHIELD (dashboard NOUD, paleta ORION) */
.cs-metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; margin-bottom: 20px; }
.cs-metric-card { display: flex; align-items: center; gap: 14px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 14px; padding: 18px; }
.cs-metric-card.danger { border-color: rgba(248,113,113,0.3); }
.cs-metric-ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); flex-shrink: 0; }
.cs-metric-card.danger .cs-metric-ico { background: rgba(248,113,113,0.12); color: var(--err); }
.cs-metric-data h3 { margin: 0; font-size: 26px; font-weight: 800; line-height: 1; }
.cs-metric-data span { font-size: 12px; color: var(--text-3); }

.platform-panel { background: var(--bg-2); border: 1px solid var(--line); border-radius: 14px; padding: 20px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; gap: 10px; }
.panel-head h3 { margin: 0; font-size: 15px; }
.panel-head .btn { gap: 7px; }

.cs-table-wrap { overflow: auto; border: 1px solid var(--line); border-radius: 10px; }
.cs-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.cs-table th { text-align: left; padding: 11px 14px; font-size: 11px; text-transform: uppercase; letter-spacing: .6px; color: var(--text-3); font-weight: 700; background: var(--panel); border-bottom: 1px solid var(--line); position: sticky; top: 0; }
.cs-table td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.cs-table tbody tr:last-child td { border-bottom: none; }
.cs-table tbody tr:hover td { background: rgba(148,163,184,0.04); }
.cs-empty { text-align: center; color: var(--text-3); padding: 24px !important; }
.cs-actions { display: flex; gap: 6px; align-items: center; }
.mono { font-family: var(--mono); font-size: 12px; }

.cs-modal { position: fixed; inset: 0; z-index: 60; background: rgba(4,7,13,0.72); display: grid; place-items: center; padding: 20px; }
.cs-modal-card { width: 100%; max-width: 460px; background: var(--panel); border: 1px solid var(--line-2); border-radius: 16px; box-shadow: var(--shadow); max-height: 86vh; display: flex; flex-direction: column; }
.cs-modal-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.cs-modal-head strong { font-size: 15px; }
.cs-modal-body { padding: 18px; overflow-y: auto; }

@media (max-width: 760px) {
  .proxy-grid { grid-template-columns: 1fr; }
  .proxy-textarea { min-height: 160px; }
}

.tm-inbox-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; font-size: 12px; font-weight: 700; color: var(--text-2); }

/* mensagens compartilhadas (admin/auth) */
.auth-msg { padding: 11px 14px; border-radius: 11px; font-size: 13px; margin-bottom: 14px; }
.auth-msg.err { background: rgba(248,113,113,0.12); border: 1px solid rgba(248,113,113,0.3); color: var(--err); }
.auth-msg.ok { background: rgba(52,211,153,0.12); border: 1px solid rgba(52,211,153,0.3); color: var(--ok); }
/* chip de usuário no topo da ORION */
.user-chip { display: flex; align-items: center; gap: 8px; height: 32px; padding: 0 6px 0 10px; border-radius: 999px; background: var(--raised); border: 1px solid var(--line); font-size: 12px; }
.user-chip .uc-av { width: 22px; height: 22px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; font-weight: 800; font-size: 11px; }
.user-chip .uc-name { max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-2); }
.user-menu { position: relative; }
.user-menu-pop { position: absolute; right: 0; top: 38px; background: var(--panel); border: 1px solid var(--line-2); border-radius: 12px; box-shadow: var(--shadow); padding: 6px; min-width: 180px; z-index: 50; display: none; }
.user-menu-pop.open { display: block; }
.user-menu-pop button { width: 100%; text-align: left; padding: 9px 11px; border-radius: 8px; background: none; border: 0; color: var(--text-2); font-size: 13px; cursor: pointer; display: flex; align-items: center; gap: 9px; }
.user-menu-pop button:hover { background: rgba(148,163,184,0.08); color: var(--text); }
.user-menu-pop .admin-link { color: var(--accent); }
.user-menu-pop .sep { height: 1px; background: var(--line); margin: 4px 0; }

/* notificações globais (enviadas pelo admin, aparecem para todos) */
.global-notices { position: fixed; top: 64px; right: 16px; z-index: 55; display: flex; flex-direction: column; gap: 10px; max-width: 360px; width: calc(100vw - 32px); }
.global-notice { display: flex; gap: 11px; align-items: flex-start; padding: 13px 14px; border-radius: 14px; background: var(--panel); border: 1px solid rgba(34,211,238,0.35); box-shadow: var(--shadow); animation: gn-in .25s ease-out; }
@keyframes gn-in { from { opacity: 0; transform: translateX(20px); } }
.global-notice .gn-ico { color: var(--accent); flex-shrink: 0; margin-top: 1px; }
.global-notice .gn-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.global-notice .gn-body strong { font-size: 13px; color: var(--text); }
.global-notice .gn-body span { font-size: 12.5px; color: var(--text-2); line-height: 1.45; word-break: break-word; }
.global-notice .gn-close { background: none; border: 0; color: var(--text-3); font-size: 18px; line-height: 1; cursor: pointer; padding: 0 2px; }
.global-notice .gn-close:hover { color: var(--text); }
@media (max-width: 600px) { .global-notices { top: 60px; } }

/* switch de configuração do admin */
.adm-switch { display: flex; align-items: center; gap: 12px; padding: 11px 2px; cursor: pointer; }
.adm-switch input { display: none; }
.adm-switch .sw { position: relative; width: 42px; height: 24px; border-radius: 999px; background: var(--raised); border: 1px solid var(--line-2); flex-shrink: 0; transition: background .18s, border-color .18s; }
.adm-switch .sw::after { content: ''; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%; background: var(--text-3); transition: transform .18s, background .18s; }
.adm-switch input:checked + .sw { background: var(--accent-soft); border-color: var(--accent); }
.adm-switch input:checked + .sw::after { transform: translateX(18px); background: var(--accent); }
.adm-switch .lbl { font-size: 13px; color: var(--text-2); }
.adm-switch input:checked ~ .lbl { color: var(--text); }

/* ================================================================ COMUNIDADE estilo Discord */
.dc-chat { display: flex; flex-direction: column; height: 100%; max-width: 920px; margin: 0 auto; }
.dc-head { padding: 0 4px 14px; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.dc-channel { font-size: 18px; font-weight: 800; display: flex; align-items: center; gap: 6px; }
.dc-channel .dc-hash { color: var(--text-3); font-weight: 700; }
.dc-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
.dc-tab { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 10px; border: 1px solid var(--line); background: none; color: var(--text-2); font-size: 14px; font-weight: 800; cursor: pointer; }
.dc-tab:hover { color: var(--text); border-color: var(--accent); }
.dc-tab.active { color: #fff; border-color: #3b82f6; background: rgba(37,99,235,.25); }
.dc-tab .dc-hash { color: inherit; opacity: .7; }
.dc-pinned { margin-bottom: 6px; padding: 8px 12px; border: 1px solid rgba(96,165,250,.4); border-radius: 10px; background: rgba(37,99,235,.14); font-size: 13px; line-height: 1.4; white-space: pre-wrap; word-break: break-word; }
.dc-pinned[hidden] { display: none; }
.dc-vip-lock { margin: auto; max-width: 380px; padding: 24px; text-align: center; }
.dc-vip-lock h3 { margin: 0 0 8px; font-size: 18px; font-weight: 800; }
.dc-vip-lock p { margin: 0 0 16px; color: var(--text-2); font-size: 14px; line-height: 1.5; }
.dc-admin-only { padding: 1px 6px; border-radius: 6px; border: 1px dashed rgba(96,165,250,.6); color: #93c5fd; font-size: 10px; font-weight: 700; }
.dc-msg.admin-only { background: rgba(37,99,235,.08); border-radius: 10px; }
.dc-sub { font-size: 12px; color: var(--text-3); margin-top: 2px; }
.dc-stream { flex: 1; overflow-y: auto; padding: 10px 4px 14px; display: flex; flex-direction: column; gap: 2px; }
.dc-loading, .dc-empty { margin: auto; color: var(--text-3); font-size: 14px; display: flex; gap: 8px; align-items: center; }
.dc-msg { display: flex; gap: 12px; padding: 7px 8px; border-radius: 8px; margin-top: 10px; }
.dc-msg:hover, .dc-line:hover { background: rgba(148,163,184,0.05); }
.dc-av { width: 38px; height: 38px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center; font-weight: 800; color: #fff; font-size: 16px; }
.dc-content { flex: 1; min-width: 0; }
.dc-meta { display: flex; align-items: baseline; gap: 8px; margin-bottom: 2px; flex-wrap: wrap; }
.dc-name { font-weight: 700; font-size: 14px; }
.dc-time { font-size: 10.5px; color: var(--text-3); }
.dc-tag { font-size: 9px; font-weight: 800; letter-spacing: .4px; padding: 1px 6px; border-radius: 5px; text-transform: uppercase; }
.dc-tag.adm { background: var(--accent); color: #04141a; }
.dc-text { font-size: 14px; line-height: 1.5; color: var(--text); word-break: break-word; white-space: pre-wrap; }
.dc-line { display: flex; align-items: baseline; gap: 12px; padding: 1px 8px 1px 8px; border-radius: 6px; }
.dc-line.grouped { padding-left: 58px; position: relative; }
.dc-line .dc-ghost-time { position: absolute; left: 8px; width: 42px; text-align: right; font-size: 9.5px; color: transparent; }
.dc-line:hover .dc-ghost-time { color: var(--text-3); }
.dc-line .dc-text { font-size: 14px; }
.dc-guest { padding: 8px 4px 0; }
.dc-guest input { width: 200px; max-width: 100%; height: 34px; }
.dc-compose { position: relative; display: flex; gap: 10px; align-items: center; padding: 12px 4px 2px; }
.dc-emoji-btn { flex: none; width: 42px; height: 46px; border: 0; background: none; color: var(--text-3); display: grid; place-items: center; cursor: pointer; border-radius: 12px; }
.dc-emoji-btn:hover, .dc-emoji-btn[aria-expanded="true"] { color: var(--accent); }
.dc-emoji-pop { position: absolute; left: 4px; bottom: 62px; z-index: 5; width: min(324px, calc(100% - 8px)); display: grid; grid-template-columns: repeat(8, 1fr); gap: 2px; padding: 8px; border-radius: 12px; border: 1px solid var(--line-2); background: #0b1220; box-shadow: 0 10px 30px rgba(0,0,0,.45); }
.dc-emoji-pop[hidden] { display: none; }
.dc-cmd-pop { position: absolute; left: 4px; right: 4px; bottom: 62px; z-index: 6; max-height: 320px; overflow-y: auto; padding: 6px; border-radius: 12px; border: 1px solid var(--line-2); background: #0b1220; box-shadow: 0 10px 30px rgba(0,0,0,.45); }
.dc-cmd-pop[hidden] { display: none; }
.dc-cmd-pop button { display: flex; align-items: baseline; gap: 10px; width: 100%; padding: 8px 10px; border: 0; border-radius: 8px; background: none; color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.dc-cmd-pop button.on { background: var(--accent-soft); }
.dc-cmd-pop b { flex: none; font-size: 13.5px; }
.dc-cmd-pop span { min-width: 0; font-size: 12.5px; color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dc-cmd-hint { padding: 7px 10px; font-size: 12.5px; color: var(--text-2); }
@media (max-width: 560px) { .dc-cmd-pop button { flex-direction: column; gap: 1px; } .dc-cmd-pop span { white-space: normal; } }
.rm-kick { flex: none; align-self: center; width: 26px; height: 26px; margin-left: auto; border: 0; border-radius: 7px; background: none; color: var(--text-3); font-size: 16px; line-height: 1; cursor: pointer; }
.rm-kick:hover { background: var(--raised); color: var(--err, #ef4444); }
.dc-emoji-pop button { aspect-ratio: 1; border: 0; border-radius: 8px; background: none; font-size: 20px; line-height: 1; cursor: pointer; }
.dc-emoji-pop button:hover { background: var(--accent-soft); }
.shop-emoji-demo { font-size: 24px; letter-spacing: 4px; }
.dc-compose input { flex: 1; height: 46px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--line-2); color: var(--text); padding: 0 16px; outline: 0; font-size: 14px; }
.dc-compose input:focus { border-color: rgba(34,211,238,0.5); }
.dc-send { width: 46px; height: 46px; border-radius: 50%; flex-shrink: 0; border: 0; background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #04141a; display: grid; place-items: center; cursor: pointer; transition: filter .15s; }
.dc-send:hover { filter: brightness(1.1); }

/* relatório antes/depois do limpador */
.meta-item { border: 1px solid var(--line); border-radius: 12px; background: var(--bg-2); padding: 12px; margin-bottom: 10px; }
.meta-row { display: flex; gap: 10px; align-items: center; }
.meta-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.meta-report { display: flex; gap: 12px; align-items: stretch; margin-top: 12px; }
.meta-col { flex: 1; min-width: 0; border: 1px solid var(--line); border-radius: 10px; padding: 11px; background: var(--bg); }
.meta-col-h { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .5px; margin-bottom: 8px; }
.meta-col-h.before { color: var(--warn); }
.meta-col-h.after { color: var(--ok); }
.meta-kv { display: flex; justify-content: space-between; gap: 10px; font-size: 12px; padding: 3px 0; color: var(--text-3); }
.meta-kv b { color: var(--text-2); font-weight: 600; }
.meta-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 7px; }
.meta-tag { font-size: 10px; padding: 2px 7px; border-radius: 6px; }
.meta-tag.warn { background: rgba(251,191,36,0.14); color: var(--warn); }
.meta-removed { margin-top: 8px; font-size: 11px; color: var(--ok); line-height: 1.4; }
.meta-arrow { display: flex; align-items: center; color: var(--accent); font-size: 18px; flex-shrink: 0; }
@media (max-width: 560px) { .meta-report { flex-direction: column; } .meta-arrow { transform: rotate(90deg); justify-content: center; } }

/* bot no chat */
.dc-tag.bot { background: var(--accent-2); color: #0a0f1e; }
.dc-msg.bot .dc-text { color: var(--text-2); }
.dc-bot-click { cursor: pointer; }
.dc-bot-click:hover { filter: brightness(1.15); text-decoration: underline; }
.bot-ta { width: 100%; background: var(--bg-2); color: var(--text); border: 1px solid var(--line-2); border-radius: 10px; padding: 9px 11px; outline: 0; font: inherit; font-size: 13px; resize: vertical; }
.bot-ta:focus { border-color: rgba(34,211,238,0.5); }

/* tickets de suporte */
.tk-layout { display: grid; grid-template-columns: 300px 1fr; gap: 16px; align-items: stretch; min-height: 520px; }
.tk-list-col { display: flex; flex-direction: column; }
.tk-list { display: flex; flex-direction: column; gap: 6px; overflow-y: auto; max-height: 60vh; }
.tk-item { text-align: left; background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; cursor: pointer; transition: border-color .15s; }
.tk-item:hover { border-color: var(--line-2); }
.tk-item.active { border-color: var(--accent); background: var(--accent-soft); }
.tk-item-top { display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.tk-subj { font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tk-item-sub { font-size: 11px; color: var(--text-3); margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tk-thread { border: 1px solid var(--line); border-radius: 12px; background: var(--bg-2); display: flex; flex-direction: column; min-height: 520px; }
.tk-empty-thread, .tk-closed { margin: auto; color: var(--text-3); font-size: 13px; padding: 20px; text-align: center; }
.tk-closed { margin: 0; border-top: 1px solid var(--line); }
.tk-thread-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.tk-new-form { padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.tk-msgs { flex: 1; overflow-y: auto; padding: 14px 16px; display: flex; flex-direction: column; gap: 14px; max-height: 50vh; }
.tk-msg { display: flex; gap: 10px; }
.tk-msg-meta { display: flex; align-items: baseline; gap: 7px; margin-bottom: 2px; }
.tk-msg-meta b { font-size: 13px; }
.tk-time { font-size: 10px; color: var(--text-3); }
.tk-msg-text { font-size: 13.5px; line-height: 1.5; color: var(--text); white-space: pre-wrap; word-break: break-word; }
.tk-compose { display: flex; gap: 8px; padding: 12px 14px; border-top: 1px solid var(--line); }
.tk-compose input { flex: 1; height: 40px; }
@media (max-width: 760px) { .tk-layout { grid-template-columns: 1fr; } .tk-thread { min-height: 420px; } }

/* barra de membros online (estilo Discord) */
.dc-wrap { display: flex; gap: 0; height: 100%; margin: 0 auto; }
.dc-wrap .dc-chat { flex: 1; min-width: 0; max-width: none; margin: 0; }
.dc-members { width: 230px; flex-shrink: 0; border-left: 1px solid var(--line); padding: 14px 12px; overflow-y: auto; scrollbar-width: none; }
.dc-members::-webkit-scrollbar { display: none; }
.dc-members-h { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .6px; color: var(--text-3); display: flex; align-items: center; gap: 7px; margin-bottom: 14px; }
.dc-members-h .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 6px var(--ok); }
.dc-mgroup { margin-bottom: 16px; }
.dc-mgroup-h { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: var(--text-3); margin-bottom: 6px; }
.dc-member { display: flex; align-items: center; gap: 9px; padding: 5px 6px; border-radius: 8px; }
.dc-member:hover { background: rgba(148,163,184,0.06); }
.dc-mav { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 800; color: #fff; flex-shrink: 0; }
.dc-mname { font-size: 13px; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; }
.dc-mempty { font-size: 12px; color: var(--text-3); }
.dc-tag.mod { background: #a78bfa; color: #120a24; }
.dc-online-btn { display: none; gap: 6px; }
.dc-online-btn .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 6px var(--ok); }
.dc-members-x { display: none; margin-left: auto; width: 32px; height: 32px; border: 0; border-radius: 8px; background: var(--raised); color: var(--text); font-size: 20px; line-height: 1; cursor: pointer; }
@media (max-width: 760px) {
  .dc-online-btn { display: inline-flex; align-items: center; }
  .dc-members { display: none; }
  .dc-members.open { display: block; position: fixed; inset: 54px 0 0; z-index: 40; width: auto; border: 0; padding: 14px 16px 90px !important; background: #0b1220 !important; border-radius: 0 !important; overflow-y: auto !important; }
  .dc-members-x { display: grid; place-items: center; }
}

/* sino de notificações */
.bell-menu { position: relative; }
#bell-btn { position: relative; }
.bell-badge { position: absolute; top: -3px; right: -3px; min-width: 15px; height: 15px; padding: 0 3px; border-radius: 999px; background: var(--err); color: #fff; font-size: 9px; font-weight: 800; display: grid; place-items: center; line-height: 1; }
.bell-pop { position: absolute; right: 0; top: 40px; width: 340px; max-width: calc(100vw - 24px); background: var(--panel); border: 1px solid var(--line-2); border-radius: 14px; box-shadow: var(--shadow); z-index: 60; display: none; overflow: hidden; }
.bell-pop.open { display: block; }
.bell-pop-h { padding: 12px 14px; border-bottom: 1px solid var(--line); font-size: 13px; font-weight: 700; }
.bell-pop-list { max-height: 60vh; overflow-y: auto; }
.bell-item { padding: 11px 14px; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 3px; position: relative; }
.bell-item:last-child { border-bottom: 0; }
.bell-item.unread { background: var(--accent-soft); }
.bell-item.unread::before { content: ''; position: absolute; left: 5px; top: 15px; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.bell-item strong { font-size: 13px; }
.bell-item span { font-size: 12.5px; color: var(--text-2); line-height: 1.45; word-break: break-word; }
.bell-item em { font-size: 10px; color: var(--text-3); font-style: normal; }
.bell-empty { padding: 22px 14px; text-align: center; color: var(--text-3); font-size: 13px; }
/* seletor de cargo no admin */
.adm-role-sel { height: 28px; border-radius: 7px; background: var(--bg-2); border: 1px solid var(--line-2); color: var(--text); font-size: 12px; padding: 0 6px; cursor: pointer; }

/* menu do usuário: premium */
.user-menu-pop .premium-link { color: #fbbf24; }
.uc-av.premium { box-shadow: 0 0 0 2px #fbbf24; }
/* checkout PIX */
.pay-plan { text-align: center; padding: 8px 0 4px; }
.pay-plan-name { font-size: 13px; font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: .5px; }
.pay-price { font-size: 38px; font-weight: 800; margin: 6px 0; }
.pay-price span { font-size: 16px; color: var(--text-3); margin-right: 3px; }
.pay-price em { font-size: 13px; color: var(--text-3); font-style: normal; font-weight: 500; }
.pay-desc { font-size: 13px; color: var(--text-2); text-align: center; margin: 0 0 8px; }
.pay-pix { text-align: center; }
.pay-qr { width: 200px; height: 200px; border-radius: 12px; background: #fff; padding: 8px; margin: 4px auto 8px; display: block; }
.pay-amount { font-size: 22px; font-weight: 800; margin: 4px 0; }
.pay-copy { display: flex; gap: 8px; margin: 10px 0; }
.pay-copy input { flex: 1; min-width: 0; font-family: var(--mono); font-size: 11px; background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 9px; padding: 0 10px; color: var(--text); height: 38px; }
.pay-status { margin-top: 12px; font-size: 13px; color: var(--text-2); display: flex; gap: 8px; align-items: center; justify-content: center; }

/* botão de ação (checkout, etc.) — compartilhado */
.auth-btn { width: 100%; height: 46px; margin-top: 8px; border: 0; border-radius: 11px; background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #04141a; font-weight: 800; font-size: 14px; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px; transition: filter .15s; }
.auth-btn:hover { filter: brightness(1.08); }
.auth-btn:disabled { opacity: .6; cursor: default; }

/* ================================================================ FOTOS DE PERFIL */
.uc-av, .dc-av, .dc-mav { overflow: hidden; }
.uc-av svg, .dc-av svg:not([stroke]), .dc-mav svg { display: block; }
.has-pic { background: transparent !important; color: transparent; }
.av-zoom { position: fixed; z-index: 9999; width: 200px; height: 200px; overflow: hidden; border-radius: 18px; border: 2px solid var(--line-2); background: var(--panel); box-shadow: 0 16px 40px rgba(0,0,0,.55); pointer-events: none; animation: av-zoom-in .14s ease-out; }
.av-zoom img, .av-zoom video, .av-zoom svg { display: block; width: 100%; height: 100%; object-fit: cover; }
@keyframes av-zoom-in { from { opacity: 0; transform: scale(.7); } to { opacity: 1; transform: scale(1); } }
.user-menu-pop #uc-avatar { color: var(--text-2); }
.av-card { max-width: 520px; }
.av-preview { display: flex; align-items: center; gap: 14px; padding-bottom: 16px; border-bottom: 1px solid var(--line); margin-bottom: 16px; }
.av-preview b { display: block; font-size: 14px; }
.av-preview span { font-size: 12px; color: var(--text-3); }
.av-big { width: 64px; height: 64px; border-radius: 50%; overflow: hidden; flex-shrink: 0; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); font-size: 26px; font-weight: 800; }
.av-label { font-size: 12px; font-weight: 700; color: var(--text-2); margin: 4px 0 10px; }
.av-grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 8px; margin-bottom: 18px; }
.av-opt { aspect-ratio: 1; border-radius: 50%; overflow: hidden; padding: 0; border: 2px solid transparent; background: none; cursor: pointer; transition: transform .15s, border-color .15s; }
.av-opt:hover { transform: scale(1.06); }
.av-opt.active { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.2); }
.av-opt:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.av-note { font-size: 12px; color: var(--text-3); margin: 8px 0 0; line-height: 1.5; }
.av-lock { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border-radius: 12px; border: 1px dashed rgba(251, 191, 36, 0.4); background: rgba(251, 191, 36, 0.06); font-size: 13px; color: var(--text-2); }
.av-file { cursor: pointer; }
.av-file.busy { opacity: .6; pointer-events: none; }
.av-msg { min-height: 18px; font-size: 12.5px; margin-top: 12px; color: var(--text-2); }
.av-msg.ok { color: var(--ok); }
.av-msg.err { color: var(--err); }
.av-reset { margin-top: 6px; }
@media (max-width: 520px) { .av-grid { grid-template-columns: repeat(6, 1fr); } .av-lock { flex-direction: column; align-items: flex-start; } }

/* ================================================================ VENDAS: pagamentos e links de venda */
.offer-actions { display: flex; gap: 6px; margin-top: auto; }
.offer-actions .btn { flex: 1; margin-top: 0; }
.btn-sell { background: rgba(34, 211, 238, 0.12); color: var(--accent); border: 1px solid rgba(34, 211, 238, 0.35); }
.btn-sell:hover { background: rgba(34, 211, 238, 0.2); }
.sell-product { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; }
.sell-product img { width: 96px; height: 54px; object-fit: cover; border-radius: 8px; }
.sell-product b { display: block; font-size: 14px; }
.sell-product span { font-size: 12px; color: var(--text-3); }
.sell-note { font-size: 12px; color: var(--text-3); margin: 6px 0 10px; line-height: 1.5; }
.sell-msg { min-height: 18px; font-size: 12.5px; color: var(--text-2); margin-bottom: 10px; }
.sell-msg.err { color: var(--err); }
.sell-done { display: flex; gap: 8px; margin-top: 12px; }
.gw-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.gw-card { display: flex; flex-direction: column; gap: 10px; padding: 18px; border-radius: 14px; border: 1px solid var(--line); background: var(--bg-2); }
.gw-card.off > :not(.gw-mark) { opacity: .55; }
.gw-card p { margin: 0; font-size: 13px; color: var(--text-2); line-height: 1.5; flex: 1; }
.gw-mark { width: 38px; height: 38px; overflow: hidden; border-radius: 10px; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 12px; }
.gw-logo { box-sizing: border-box; width: 100%; height: 100%; padding: 4px; object-fit: contain; display: block; }
.gw-logo.full { padding: 0; }
.gw-name { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15px; }
.gw-soon, .gw-state { font-size: 11px; font-weight: 600; padding: 1px 9px; border-radius: 999px; background: var(--raised); color: var(--text-3); }
.gw-state:empty { display: none; }
.gw-state.on { color: var(--ok); background: rgba(52, 211, 153, 0.12); }
.gw-form { margin-top: 18px; padding: 18px; border-radius: 14px; border: 1px solid rgba(34, 211, 238, 0.3); background: var(--bg-2); max-width: 560px; display: flex; flex-direction: column; gap: 10px; }
.gw-form h3 { margin: 0; font-size: 15px; }
.gw-form small { display: block; margin-top: 5px; font-size: 11.5px; line-height: 1.4; }
.gw-auto { display: flex; gap: 9px; align-items: flex-start; font-size: 13px; line-height: 1.45; color: var(--text-2); cursor: pointer; }
.gw-auto input { flex: none; margin-top: 3px; }
.gw-fees { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; margin-bottom: 16px; padding: 16px 18px; border-radius: 14px; border: 1px solid rgba(251, 191, 36, 0.35); background: rgba(251, 191, 36, 0.07); }
.gw-fees-t { flex: 1; min-width: 240px; }
.gw-fees-t p { margin: 5px 0 0; font-size: 13px; line-height: 1.5; color: var(--text-2); }
.gw-fees-t .gw-fees-err { color: #fbbf24; }
.gw-fees-pix { display: flex; flex-direction: column; gap: 8px; align-items: center; }
.gw-fees-pix .pay-qr { width: 150px; height: 150px; margin: 0; }
.gw-form p { margin: 0; font-size: 12.5px; line-height: 1.5; }
.sales-h { font-size: 15px; margin: 28px 0 12px; }
.sales-rows { display: flex; flex-direction: column; gap: 8px; }
.sales-row { display: flex; align-items: center; gap: 12px; padding: 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-2); }
.sales-row img, .sales-row .ph { width: 72px; height: 40px; border-radius: 6px; object-fit: cover; background: var(--raised); flex-shrink: 0; }
.sales-row .meta { flex: 1; min-width: 0; }
.sales-row .meta b { display: block; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sales-row .meta span { font-size: 12px; color: var(--text-3); }
@media (max-width: 600px) { .sales-row { flex-wrap: wrap; } .sales-row .meta { flex-basis: calc(100% - 90px); } }
/* lojas */
.store-card { max-width: 640px; }
.st-modes { display: flex; flex-direction: column; gap: 6px; margin: 4px 0 12px; font-size: 13.5px; }
.st-modes label { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.st-toolbar { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.st-toolbar input { flex: 1; height: 36px; }
.st-list { max-height: 320px; overflow-y: auto; border: 1px solid var(--line); border-radius: 12px; }
.lj-items { max-height: none; margin-bottom: 12px; }
.st-row { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-bottom: 1px solid var(--line); cursor: default; }
.st-row:last-child { border-bottom: 0; }
.st-row img, .st-row .ph { width: 56px; height: 32px; border-radius: 6px; object-fit: cover; background: var(--raised); flex-shrink: 0; }
.st-t { flex: 1; min-width: 0; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-p { width: 96px; height: 34px; flex-shrink: 0; }
.lj-metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.lj-metrics div { padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-2); }
.lj-metrics b { display: block; font-size: 22px; }
.lj-metrics span { font-size: 12px; color: var(--text-3); }
/* painel da loja */
.lj-back { background: none; border: 0; padding: 4px 0; color: var(--text-3); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.lj-back:hover { color: var(--accent); }
.lj-hero { display: flex; align-items: center; gap: 16px; margin: 10px 0 18px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 16px; background: radial-gradient(120% 140% at 0% 0%, rgba(34,211,238,0.12), transparent 55%), radial-gradient(100% 140% at 100% 100%, rgba(59,130,246,0.10), transparent 60%), var(--bg-2); }
.lj-logo { width: 60px; height: 60px; border-radius: 16px; flex-shrink: 0; display: grid; place-items: center; overflow: hidden; font-weight: 800; font-size: 20px; color: #06121a; background: linear-gradient(135deg, var(--accent), var(--accent-2)); box-shadow: 0 10px 24px -12px rgba(34,211,238,0.6); }
.lj-logo img { width: 100%; height: 100%; object-fit: cover; background: var(--panel); }
.lj-hero-m { min-width: 0; flex: 1; }
.lj-hero-t { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.lj-hero-t h2 { margin: 0; font-size: 22px; letter-spacing: -0.01em; }
.lj-live { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 700; color: var(--ok); background: rgba(52,211,153,0.12); }
.lj-live i { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px rgba(52,211,153,0.2); }
.lj-live.off { color: var(--err); background: rgba(248,113,113,0.12); }
.lj-live.off i { background: var(--err); box-shadow: 0 0 0 3px rgba(248,113,113,0.2); }
.lj-url { display: flex; align-items: center; gap: 8px; margin-top: 8px; min-width: 0; }
.lj-url a { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; color: var(--text-2); padding: 6px 10px; border-radius: 8px; background: var(--bg); border: 1px solid var(--line); text-decoration: none; }
.lj-url a:hover { color: var(--accent); }
.lj-tabs { padding-bottom: 18px; }
.lj-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.lj-kpi { --c: var(--accent); position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 2px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg-2); }
.lj-kpi::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 2px; background: var(--c); opacity: .8; }
.lj-kpi.k-rev { --c: var(--ok); }
.lj-kpi.k-avg { --c: var(--accent-2); }
.lj-kpi.k-pend { --c: var(--warn); }
.lj-kpi-ico { position: absolute; top: 14px; right: 14px; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: var(--c); background: color-mix(in srgb, var(--c) 14%, transparent); }
.lj-kpi-l { font-size: 12.5px; color: var(--text-3); font-weight: 600; }
.lj-kpi b { font-size: 24px; letter-spacing: -0.02em; margin: 6px 0 2px; }
.lj-kpi small { font-size: 11.5px; color: var(--text-3); }
.lj-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 12px; margin-top: 12px; }
.lj-card { border: 1px solid var(--line); border-radius: 14px; background: var(--bg-2); padding: 16px 18px; min-width: 0; }
.lj-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.lj-card-head h3 { margin: 0; font-size: 15px; }
.lj-card-head p { margin: 2px 0 0; font-size: 12px; color: var(--text-3); }
.lj-chart-total { font-size: 18px; }
.lj-chart { position: relative; height: 170px; display: grid; grid-template-columns: repeat(14, 1fr); gap: 6px; align-items: end; padding-top: 6px; border-bottom: 1px solid var(--line); }
.lj-bar { height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; position: relative; padding-bottom: 18px; }
.lj-bar i { display: block; width: 100%; max-width: 26px; border-radius: 6px 6px 2px 2px; background: linear-gradient(180deg, var(--accent), var(--accent-2)); transition: filter .15s; }
.lj-chart.empty .lj-bar i { background: var(--raised); }
.lj-bar:hover i { filter: brightness(1.25); }
.lj-bar span { position: absolute; bottom: 0; font-size: 10.5px; color: var(--text-3); }
.lj-chart-empty { position: absolute; inset: 0 0 24px; display: grid; place-items: center; margin: 0; padding: 0 20px; text-align: center; font-size: 12.5px; color: var(--text-3); }
.lj-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.lj-action { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel); color: var(--text); font: inherit; font-size: 13px; font-weight: 600; text-decoration: none; cursor: pointer; transition: border-color .15s, transform .12s; }
.lj-action svg { color: var(--accent); }
.lj-action:hover { border-color: var(--accent); transform: translateY(-2px); }
.lj-feed { list-style: none; margin: 0; padding: 0; }
.lj-feed li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.lj-feed li:first-child { border-top: 0; padding-top: 0; }
.lj-av { width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center; font-weight: 700; font-size: 13px; color: var(--accent); background: var(--accent-soft); }
.lj-feed-m { flex: 1; min-width: 0; }
.lj-feed-m b, .lj-feed-m span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lj-feed-m b { font-size: 13px; }
.lj-feed-m span { font-size: 12px; color: var(--text-3); }
.lj-feed-r { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; flex-shrink: 0; font-size: 11px; }
.lj-feed-r b { font-size: 13px; }
.lj-empty { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 18px 10px; text-align: center; color: var(--text-3); }
.lj-empty svg { width: 30px; height: 30px; opacity: .6; }
.lj-empty p { margin: 0; font-size: 12.5px; line-height: 1.5; }
.lj-top { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.lj-top div { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; margin-bottom: 6px; }
.lj-top span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lj-top i { display: block; height: 6px; border-radius: 99px; background: linear-gradient(90deg, var(--accent), var(--accent-2)); }
.lj-settings { margin-top: 12px; }
.lj-settings-row { display: flex; align-items: flex-end; gap: 10px; max-width: 560px; }
.lj-settings-row .tool-field { flex: 1; margin: 0; }
.lj-settings-row .btn { flex-shrink: 0; }
.lj-danger { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; padding: 12px 14px; border-radius: 12px; border: 1px solid rgba(248,113,113,0.25); background: rgba(248,113,113,0.05); }
.lj-danger b { display: block; font-size: 13px; color: var(--err); }
.lj-danger span { font-size: 12px; color: var(--text-3); }
.lj-danger .btn { color: var(--err); border-color: rgba(248,113,113,0.35); flex-shrink: 0; }
@media (max-width: 900px) { .lj-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } .lj-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 520px) {
  .lj-hero { padding: 14px; gap: 12px; } .lj-logo { width: 48px; height: 48px; font-size: 16px; } .lj-hero-t h2 { font-size: 18px; }
  .lj-kpi { padding: 14px; } .lj-kpi b { font-size: 19px; } .lj-kpi-ico { display: none; }
  .lj-chart { gap: 3px; } .lj-settings-row, .lj-danger { flex-direction: column; align-items: stretch; }
}
.offer-card[data-pre] { cursor: pointer; }
.offer-card[data-pre]:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
/* loja: rodapé fixo nos modais longos, logotipo e produtos próprios */
.st-foot { position: sticky; bottom: 0; margin: 12px -18px -18px; padding: 12px 18px 16px; background: var(--panel); border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: flex-end; gap: 12px; z-index: 2; }
.st-foot .sell-msg { flex: 1; margin: 0; }
.st-logo { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.st-logo .muted { font-size: 12px; flex-basis: 100%; }
.st-logo-prev { width: 56px; height: 56px; border-radius: 12px; border: 1px dashed var(--line-2); display: grid; place-items: center; font-size: 10px; color: var(--text-3); overflow: hidden; background: var(--bg-2); }
.st-logo-prev img { width: 100%; height: 100%; object-fit: contain; }
.lj-prod-head { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; }
.lj-prod-head h3 { margin-right: auto; }
.lj-stock { display: block; font-size: 11px; color: var(--text-3); }
.st-toolbar select { width: auto; flex-shrink: 0; }
.lj-cp-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 0 12px; max-width: 760px; }
.pf-cover { display: flex; gap: 12px; align-items: flex-start; }
.pf-cover p { margin: 6px 0 0; font-size: 12px; }
.pf-cover-prev { width: 160px; aspect-ratio: 16 / 9; border-radius: 10px; border: 1px dashed var(--line-2); display: grid; place-items: center; font-size: 11px; color: var(--text-3); overflow: hidden; background: var(--bg-2); flex-shrink: 0; }
.pf-cover-prev img { width: 100%; height: 100%; object-fit: cover; }
.pf-types { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pf-type { display: flex; flex-direction: column; gap: 4px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; background: var(--bg-2); }
.pf-type:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.pf-type input { position: absolute; opacity: 0; pointer-events: none; }
.pf-type b { font-size: 14px; }
.pf-type span { font-size: 12px; color: var(--text-3); line-height: 1.4; }
#prod-modal textarea, #store-modal textarea { width: 100%; background: var(--bg); color: var(--text); border: 1px solid var(--line-2); border-radius: 10px; padding: 10px 12px; font: inherit; font-size: 13px; resize: vertical; }
@media (max-width: 560px) { .pf-types { grid-template-columns: 1fr; } .pf-cover { flex-direction: column; } }
.pf-type:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
.pf-type { position: relative; }
/* biblioteca no celular: 2 produtos por linha */
img.offer-cover { padding: 0; }
@media (max-width: 600px) {
  /* produtos da loja: título na primeira linha, preço e ações na segunda */
  .lj-items .st-row { flex-wrap: wrap; }
  .lj-items .st-t { flex-basis: calc(100% - 104px); }
  .lj-items .st-p { margin-left: auto; }
  .offer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .offer-info { padding: 9px 9px 10px; gap: 6px; }
  .offer-title { font-size: 12.5px; }
  .offer-actions { flex-direction: column; gap: 5px; }
  /* em coluna, flex:1 (base 0) achatava a altura dos botões */
  .offer-actions .btn { flex: none; width: 100%; height: 34px; }
}
/* tutoriais */
.tut-send { margin-top: 24px; }
.tut-author { display: block; font-size: 12px; color: var(--accent); margin-top: 2px; }
.tut-mine-h { margin: 18px 0 8px; font-size: 13px; color: var(--text-2); }
.tut-mine-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 10px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 13px; }
.tut-mine-row small { flex-basis: 100%; color: var(--text-3); }
.lj-star { flex: none; width: 32px; height: 32px; display: grid; place-items: center; border: 0; border-radius: 8px; background: none; color: transparent; cursor: pointer; }
.lj-star svg { stroke: var(--text-3); }
.lj-star:hover svg { stroke: #fbbf24; }
.lj-star.on { color: #fbbf24; }
.lj-star.on svg { stroke: #fbbf24; }
.tut-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.tut-card { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--bg-2); display: flex; flex-direction: column; }
.tut-thumb { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; padding: 0; border: 0; background: var(--raised); cursor: pointer; }
.tut-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tut-play { position: absolute; left: 50%; top: 50%; width: 56px; height: 56px; margin: -28px 0 0 -28px; border-radius: 50%; display: grid; place-items: center; background: rgba(7, 9, 15, 0.75); color: #fff; border: 1px solid rgba(255, 255, 255, 0.25); transition: transform .15s, background .15s; }
.tut-thumb:hover .tut-play, .tut-thumb:focus-visible .tut-play { transform: scale(1.08); background: var(--accent); color: #04141a; }
.tut-frame { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; background: #000; }
.tut-info { padding: 12px 14px 14px; }
.tut-info h3 { margin: 0; font-size: 14px; }
.tut-info p { margin: 6px 0 0; font-size: 12.5px; color: var(--text-3); line-height: 1.5; white-space: pre-line; }
/* carteira */
.wl-metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.wl-metrics div { padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-2); }
.wl-metrics div.main { border-color: rgba(34, 211, 238, 0.35); }
.wl-metrics b { display: block; font-size: 22px; font-variant-numeric: tabular-nums; }
.wl-metrics span { font-size: 12px; color: var(--text-3); }
.wl-form { margin-top: 18px; padding: 18px; border-radius: 14px; border: 1px solid var(--line); background: var(--bg-2); max-width: 560px; display: flex; flex-direction: column; gap: 4px; }
.wl-form h3 { margin: 0 0 6px; font-size: 15px; }
.wl-form .row { display: grid; grid-template-columns: 150px 1fr; gap: 10px; }
.wl-form select { height: 40px; }
.wl-methods { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 10px; }
.wl-method { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.wl-method img, .wl-method svg { flex-shrink: 0; }
.wl-method span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.wl-method b { font-size: 13.5px; }
.wl-method small { font-size: 11.5px; color: var(--text-3); }
.wl-method.active { border-color: var(--accent); background: var(--accent-soft); }
.wl-method.off { opacity: .6; cursor: not-allowed; }
.wl-method .at-badge { margin-left: 4px; }
@media (max-width: 560px) { .wl-methods { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .wl-form .row { grid-template-columns: 1fr; } }
/* logotipo da ORION no topo da dashboard */
.brand-logo { width: 28px; height: 28px; object-fit: contain; display: block; flex-shrink: 0; }
/* ferramentas de imagem */
.it-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.it-card { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg-2); color: var(--text); text-align: left; cursor: pointer; transition: border-color .15s, background .15s; }
.it-card:hover { border-color: var(--line-2); }
.it-card.active { border-color: var(--accent); background: var(--accent-soft); }
.it-card b { font-size: 13.5px; }
.it-card span:last-child { font-size: 12px; color: var(--text-3); line-height: 1.45; }
.it-ico { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: var(--raised); color: var(--accent); margin-bottom: 6px; }
.it-panel { margin-top: 18px; padding: 18px; border-radius: 14px; border: 1px solid var(--line); background: var(--bg-2); display: flex; flex-direction: column; gap: 12px; }
.it-title { margin: 0; font-size: 16px; }
.it-sub { margin: 6px 0 0; font-size: 13px; }
.it-note { margin: 0; font-size: 12.5px; color: var(--text-3); line-height: 1.5; }
.it-opts { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.it-opts .tool-field { margin: 0; }
.it-opts input[type="color"] { height: 38px; padding: 2px; width: 100%; }
.it-drop { padding: 30px 16px; background: var(--bg); }
.it-out { display: flex; flex-direction: column; gap: 8px; order: 5; }
.it-out:empty { display: none; }
.it-res { display: flex; align-items: center; gap: 12px; padding: 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); }
.it-thumb { width: 64px; height: 64px; border-radius: 8px; overflow: hidden; flex-shrink: 0; display: grid; place-items: center; }
.it-thumb img { width: 100%; height: 100%; object-fit: contain; }
.it-pdf { font-weight: 800; font-size: 13px; color: #fff; background: #dc2626; width: 100%; height: 100%; display: grid; place-items: center; }
.it-meta { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.it-meta b { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.it-meta span { font-size: 12px; }
.it-err { color: var(--err) !important; }
.it-checker { background-color: #e5e7eb; background-image: linear-gradient(45deg, #cbd5e1 25%, transparent 25%), linear-gradient(-45deg, #cbd5e1 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #cbd5e1 75%), linear-gradient(-45deg, transparent 75%, #cbd5e1 75%); background-size: 14px 14px; background-position: 0 0, 0 7px, 7px -7px, -7px 0; }
.it-stage { border-radius: 12px; overflow: auto; max-height: 60vh; display: flex; justify-content: center; align-items: flex-start; border: 1px solid var(--line); }
.it-stage canvas { display: block; max-width: 100%; height: auto; }
.it-pick { cursor: crosshair; }
.it-btns { flex-wrap: wrap; gap: 8px; }
.it-pages { display: flex; flex-wrap: wrap; gap: 10px; }
.it-pages:empty { display: none; }
.it-page { position: relative; width: 110px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); padding: 6px; display: flex; flex-direction: column; gap: 6px; }
.it-page img { width: 100%; height: 120px; object-fit: contain; background: #fff; border-radius: 6px; }
.it-page > span { position: absolute; top: 10px; left: 10px; font-size: 11px; font-weight: 700; background: rgba(7,9,15,.8); color: #fff; padding: 1px 7px; border-radius: 99px; }
.it-page div { display: flex; justify-content: space-between; }
.it-swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px; }
.it-swatch { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 8px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); color: var(--text); cursor: pointer; text-align: left; }
.it-swatch:hover { border-color: var(--accent); }
.it-swatch i { width: 100%; height: 44px; border-radius: 7px; margin-bottom: 4px; border: 1px solid rgba(255,255,255,.08); }
.it-swatch b { font-size: 13px; font-family: 'JetBrains Mono', monospace; }
.it-swatch span { font-size: 11px; color: var(--text-3); }
@media (max-width: 600px) {
  .it-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .it-card { padding: 11px; }
  .it-card span:last-child { display: none; }
  .it-panel { padding: 14px; }
  .it-res { flex-wrap: wrap; }
  .it-meta { flex-basis: calc(100% - 80px); }
  .it-act { width: 100%; }
  .it-act .btn { width: 100%; }
}
/* tipo da chave Pix nos saques */
.pix-type { display: inline-block; font-size: 11px; font-weight: 700; padding: 2px 9px; border-radius: 999px; background: rgba(34, 211, 238, 0.12); color: var(--accent); white-space: nowrap; }
/* agenda (quadro estilo Trello) */
.ag-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.ag-push { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 14px; margin-bottom: 16px; border-radius: 12px; border: 1px solid rgba(34, 211, 238, 0.3); background: var(--accent-soft); color: var(--accent); }
.ag-push:empty { display: none; }
.ag-push > div { flex: 1; min-width: 220px; display: flex; flex-direction: column; gap: 2px; color: var(--text); }
.ag-push b { font-size: 13.5px; }
.ag-push span { font-size: 12.5px; color: var(--text-2); line-height: 1.5; }
.ag-push.on { border-color: rgba(52, 211, 153, 0.35); background: rgba(52, 211, 153, 0.08); color: var(--ok); }
.ag-push.warn { border-color: rgba(251, 191, 36, 0.35); background: rgba(251, 191, 36, 0.08); color: var(--warn, #fbbf24); }
.ag-push.muted { border-color: var(--line); background: var(--bg-2); color: var(--text-3); }
.ag-board { display: flex; gap: 12px; align-items: flex-start; overflow-x: auto; padding-bottom: 12px; scroll-snap-type: x proximity; }
.ag-col { flex: 0 0 280px; max-height: calc(100vh - 260px); display: flex; flex-direction: column; border-radius: 14px; border: 1px solid var(--line); background: var(--bg-2); scroll-snap-align: start; }
.ag-col-h { display: flex; align-items: center; gap: 8px; padding: 10px 10px 6px 12px; }
.ag-col-name { flex: 1; min-width: 0; text-align: left; background: none; border: 0; color: var(--text); font-weight: 700; font-size: 13.5px; padding: 4px 0; cursor: pointer; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ag-col-name:hover { color: var(--accent); }
.ag-count { font-size: 11px; font-weight: 600; padding: 1px 8px; border-radius: 999px; background: var(--raised); color: var(--text-2); }
.ag-list { flex: 1; min-height: 40px; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; padding: 4px 10px 8px; border-radius: 10px; transition: background .15s; }
.ag-list.over { background: var(--accent-soft); }
.ag-card { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel); cursor: pointer; transition: border-color .15s, transform .1s; }
.ag-card:hover, .ag-card:focus-visible { border-color: var(--accent); outline: none; }
.ag-card.dragging { opacity: .45; transform: rotate(1.5deg); }
.ag-card b { font-size: 13.5px; font-weight: 600; line-height: 1.4; word-break: break-word; }
.ag-card p { margin: 0; font-size: 12px; color: var(--text-3); line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ag-due { align-self: flex-start; display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 6px; background: var(--raised); color: var(--text-2); }
.ag-due.late { background: rgba(248, 113, 113, 0.14); color: var(--err); }
.ag-card[class*=" c-"]::before { content: ""; position: absolute; left: 0; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: var(--ag-c); }
.c-red { --ag-c: #f87171; } .c-orange { --ag-c: #fb923c; } .c-yellow { --ag-c: #facc15; } .c-green { --ag-c: #34d399; } .c-blue { --ag-c: #60a5fa; } .c-purple { --ag-c: #a78bfa; }
.ag-quick { padding: 0 10px 10px; }
.ag-quick input { width: 100%; height: 36px; border-radius: 9px; border: 1px dashed var(--line-2); background: transparent; color: var(--text); padding: 0 10px; font: inherit; font-size: 13px; }
.ag-quick input:focus { border-style: solid; border-color: var(--accent); outline: none; background: var(--bg); }
.ag-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ag-colors { display: flex; gap: 8px; flex-wrap: wrap; }
.ag-color { width: 30px; height: 30px; border-radius: 8px; border: 2px solid transparent; background: var(--ag-c); cursor: pointer; }
.ag-color.none { background: var(--raised); background-image: linear-gradient(135deg, transparent 45%, var(--text-3) 45% 55%, transparent 55%); }
.ag-color.on { border-color: #fff; box-shadow: 0 0 0 2px var(--accent); }
#ag-modal textarea { width: 100%; background: var(--bg); color: var(--text); border: 1px solid var(--line-2); border-radius: 10px; padding: 10px 12px; font: inherit; font-size: 13px; resize: vertical; }
.ag-actions { display: flex; gap: 8px; flex-wrap: wrap; flex-shrink: 0; }
.ag-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.ag-tags:empty { display: none; }
.ag-bell { background: rgba(34, 211, 238, 0.12); color: var(--accent); }
.ag-bell.sent { background: rgba(52, 211, 153, 0.12); color: var(--ok); }
.ag-hint { margin: -4px 0 4px; font-size: 12px; color: var(--text-3); }
/* celular: colunas uma embaixo da outra, sem rolagem lateral */
@media (max-width: 760px) {
  .ag-head { flex-direction: column; }
  .ag-actions { width: 100%; }
  .ag-actions .btn { flex: 1; }
  .ag-board { flex-direction: column; align-items: stretch; overflow-x: visible; scroll-snap-type: none; padding-bottom: 0; }
  .ag-col { flex: 0 0 auto; width: 100%; max-height: none; }
  .ag-list { overflow-y: visible; }
  .ag-grid2 { grid-template-columns: 1fr; }
}
/* gerar imagem com IA */
#gi-prompt { width: 100%; background: var(--bg); color: var(--text); border: 1px solid var(--line-2); border-radius: 10px; padding: 10px 12px; font: inherit; font-size: 13px; resize: vertical; }
.gi-cf { border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; background: var(--bg); display: flex; flex-direction: column; gap: 10px; }
.gi-cf summary { cursor: pointer; font-size: 13px; font-weight: 600; }
.gi-cf[open] summary { margin-bottom: 8px; }
.gi-cf-st { font-size: 11px; font-weight: 600; color: var(--ok); margin-left: 6px; }
.chat-gen-img { margin-top: 10px; display: flex; flex-direction: column; gap: 8px; max-width: 420px; }
.chat-gen-img img { width: 100%; border-radius: 12px; border: 1px solid var(--line); background: var(--bg-2); }
.chat-gen-img .row { display: flex; gap: 8px; }
/* pagamentos: abas + cobrança por link */
.pg-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 16px; }
.pg-tab { height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg-2); color: var(--text-2); font-weight: 600; font-size: 13px; cursor: pointer; }
.pg-tab.active { border-color: var(--accent); background: var(--accent-soft); color: var(--text); }
.ch-card { margin-top: 16px; max-width: 560px; display: flex; gap: 16px; align-items: flex-start; padding: 16px; border-radius: 14px; border: 1px solid rgba(52, 211, 153, 0.35); background: var(--bg-2); }
.ch-card > img { width: 150px; height: 150px; border-radius: 10px; background: #fff; padding: 6px; flex-shrink: 0; }
.ch-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.ch-info label { font-size: 12px; color: var(--text-3); margin-top: 4px; }
.ch-info .muted { font-size: 12px; line-height: 1.5; }
@media (max-width: 600px) { .ch-card { flex-direction: column; align-items: center; } .ch-info { width: 100%; } }
/* viral farm */
.vf-card { border: 1px solid var(--line); border-radius: 14px; background: var(--bg-2); padding: 16px; margin-bottom: 14px; display: flex; flex-direction: column; gap: 14px; }
.vf-step { display: flex; gap: 12px; align-items: flex-start; }
.vf-step p { margin: 3px 0 0; font-size: 13px; }
.vf-num { flex: none; width: 26px; height: 26px; border-radius: 999px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); font-weight: 700; font-size: 13px; }
.vf-dl { align-self: flex-start; height: 40px; padding: 0 18px; gap: 8px; text-decoration: none; }
.vf-key-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.vf-key { flex: 1; min-width: 0; padding: 10px 12px; border: 1px dashed var(--accent); border-radius: 10px; background: var(--accent-soft); color: var(--text); font-size: 14px; letter-spacing: .5px; word-break: break-all; }
.vf-lock p { margin: 0 0 12px; font-size: 13px; line-height: 1.5; }
@media (max-width: 600px) { .vf-dl { align-self: stretch; justify-content: center; } .vf-key { font-size: 12px; letter-spacing: 0; padding: 10px; } }
/* comunidade: tags por cargo, títulos e perfil */
.dc-tag.dev { background: #34d399; color: #04140d; }
.dc-tag.clb { background: #fbbf24; color: #1f1400; }
.dc-tag.pro { background: linear-gradient(135deg, #22d3ee, #6366f1); color: #04121a; }
.dc-tag.new { background: rgba(148,163,184,0.18); color: var(--text-2); }
.dc-title { font-size: 10.5px; color: var(--text-3); letter-spacing: .3px; margin: -1px 0 3px; }
.dc-name[data-uid], .dc-av[data-uid], .dc-member[data-uid] { cursor: pointer; }
.dc-name[data-uid]:hover { text-decoration: underline; }
.dc-member[data-uid]:hover { background: rgba(148,163,184,0.08); }
.dc-mtext { flex: 1; min-width: 0; }
.dc-mrow { display: flex; align-items: center; gap: 6px; min-width: 0; }
.dc-mtext .dc-title { margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dc-head { position: relative; }
.dc-edit-me { position: absolute; right: 4px; top: 0; }
.pf-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.pf-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border: 1px solid var(--line-2); border-radius: 999px; cursor: pointer; font-size: 12px; }
.pf-chip:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.pf-chip input, .pf-title input { accent-color: var(--accent); margin: 0; width: 14px; height: 14px; min-width: 0; padding: 0; border: 0; background: none; box-shadow: none; flex: none; }
.pf-titles { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 8px; max-height: 300px; overflow: auto; padding-right: 2px; }
.pf-title { display: grid; grid-template-columns: auto 1fr; column-gap: 8px; align-items: center; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; font-size: 12.5px; }
.pf-title b { font-weight: 600; }
.pf-title span { grid-column: 2; font-size: 11px; color: var(--text-3); }
.pf-title:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.pf-title.locked { opacity: .55; cursor: not-allowed; }
.uc-head { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; }
.uc-head .dc-av { flex: none; }
.uc-name { font-weight: 700; font-size: 16px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.uc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.uc-grid div { background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; min-width: 0; }
.uc-grid span { display: block; font-size: 11px; color: var(--text-3); }
.uc-grid b { font-size: 13px; overflow-wrap: anywhere; }
.uc-main-title { display: inline-block; margin-top: 6px; padding: 2px 9px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: 11px; font-weight: 600; }
.uc-meta { margin-top: 5px; font-size: 12px; color: var(--text-3); }
.uc-section { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.uc-section h4 { margin: 0 0 8px; font-size: 12px; font-weight: 600; color: var(--text-2); }
.uc-section h4 em { font-style: normal; color: var(--text-3); font-weight: 400; margin-left: 4px; }
.uc-titles { display: flex; flex-wrap: wrap; gap: 6px; font-size: 11px; color: var(--text-2); }
.uc-titles span { padding: 3px 9px; border-radius: 999px; background: var(--bg-2); border: 1px solid var(--line); }
.uc-titles span[hidden] { display: none; }
.uc-more-btn { padding: 3px 9px; border-radius: 999px; background: none; border: 1px dashed var(--line-2); color: var(--text-2); font-size: 11px; cursor: pointer; }
.uc-more-btn:hover { color: var(--text); border-color: var(--accent); }
/* efeito de reflexo para botões: azul sólido e um clarão que passa */
.fx-diamond { position: relative; overflow: hidden; isolation: isolate; color: #fff !important; border: 1px solid rgba(147,197,253,.8) !important; border-style: solid !important; font-weight: 700; background: #2563eb !important; box-shadow: 0 0 10px rgba(59,130,246,.55); animation: fx-diamond-glow 2.4s ease-in-out infinite alternate; }
.fx-diamond::before { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(115deg, transparent 38%, rgba(255,255,255,.85) 50%, transparent 62%); transform: translateX(-110%); animation: fx-diamond-sweep 3s ease-in-out infinite; }
@keyframes fx-diamond-glow { from { box-shadow: 0 0 6px rgba(59,130,246,.45); } to { box-shadow: 0 0 16px rgba(125,211,252,.85); } }
@keyframes fx-diamond-sweep { 0%, 35% { transform: translateX(-110%); } 80%, 100% { transform: translateX(110%); } }
.pro-lock-bar { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 16px; padding: 14px 16px; border: 1px solid rgba(96,165,250,.45); border-radius: 14px; background: linear-gradient(90deg, rgba(37,99,235,.18), rgba(56,189,248,.08)); }
.pro-lock-bar svg { flex: none; color: #93c5fd; }
.pro-lock-bar p { flex: 1; min-width: 200px; margin: 0; font-size: 13.5px; line-height: 1.45; }
.pro-locked { opacity: .5; filter: saturate(.55); user-select: none; }
.pf-sec { margin-bottom: 14px; border: 1px solid var(--line); border-radius: 12px; padding: 0 12px; }
.pf-sec[open] { padding-bottom: 2px; }
.pf-sec > summary { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 11px 0; font-size: 13px; font-weight: 700; cursor: pointer; list-style: none; }
.pf-sec > summary::-webkit-details-marker { display: none; }
.pf-sec > summary svg { transition: transform .15s; }
.pf-sec:not([open]) > summary svg { transform: rotate(-90deg); }
.tool-field textarea { width: 100%; padding: 10px 12px; }
.pf-fonts .pf-effect-name { font-size: 13px; overflow: visible; white-space: normal; }
.av-chat-row { display: flex; align-items: center; gap: 12px; }
.av-chat-row img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.tour-root { position: fixed; inset: 0; z-index: 5000; }
.tour-root::before { content: ''; position: absolute; inset: 0; }
.tour-root:has(.tour-hole[hidden])::before { background: rgba(2,5,12,.74); }
.tour-root[hidden] { display: none; }
.tour-hole { position: fixed; border-radius: 12px; border: 2px solid #60a5fa; box-shadow: 0 0 0 9999px rgba(2,5,12,.74), 0 0 18px rgba(96,165,250,.7); transition: left .2s, top .2s, width .2s, height .2s; pointer-events: none; }
.tour-hole[hidden] { display: none; }
.tour-card { position: fixed; width: 340px; max-width: calc(100vw - 24px); padding: 18px; border: 1px solid rgba(96,165,250,.45); border-radius: 16px; background: #0b1220; color: var(--text); box-shadow: 0 24px 60px -16px rgba(0,0,0,.9); }
.tour-card.center { left: 50%; top: 50%; transform: translate(-50%, -50%); }
.tour-step { font-size: 11px; font-weight: 700; color: #60a5fa; letter-spacing: .4px; }
.tour-card h3 { margin: 6px 0 6px; font-size: 18px; }
.tour-card p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--text-2); }
.tour-try { margin-top: 10px; padding: 0; border: 0; background: none; color: #60a5fa; font: inherit; font-size: 13px; font-weight: 600; text-decoration: underline; cursor: pointer; }
.tour-actions { display: flex; align-items: center; gap: 6px; margin-top: 16px; }
.tour-actions span { flex: 1; }
.tour-pill { position: fixed; right: 16px; bottom: 60px; z-index: 5000; display: flex; gap: 6px; padding: 8px; border: 1px solid rgba(96,165,250,.45); border-radius: 14px; background: #0b1220; box-shadow: 0 16px 40px -12px rgba(0,0,0,.9); }
.uc-preview-note { margin: 0 0 12px; padding: 8px 10px; border-radius: 10px; background: var(--accent-soft); color: var(--text-2); font-size: 12px; }
.uc-actions .btn-primary:only-child { width: 100%; justify-content: center; }
.user-menu-pop .uc-chev { margin-left: auto; transition: transform .15s; }
.user-menu-pop [aria-expanded="true"] .uc-chev { transform: rotate(180deg); }
.uc-sub { padding-left: 12px; }
.uc-sub[hidden] { display: none; }
.uc-sub button { white-space: nowrap; }
.ach-bar { display: flex; align-items: center; gap: 8px; height: 30px; padding: 0 11px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--panel); color: var(--accent); cursor: pointer; flex: none; }
.ach-bar[hidden] { display: none; }
.ach-bar:hover { border-color: var(--accent); }
.ach-bar-track { width: 110px; height: 6px; border-radius: 99px; background: var(--bg-2); overflow: hidden; }
.ach-bar-track i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--accent-2), var(--accent)); transition: width .5s; }
.ach-bar-text { font-size: 11px; font-weight: 700; color: var(--text); white-space: nowrap; }
@media (max-width: 1100px) { .ach-bar-track { width: 60px; } }
@media (max-width: 760px) { .ach-bar { display: none; } }
.nav-item.has-unread { position: relative; }
.nav-item.has-unread::after { content: ''; position: absolute; top: 8px; right: 8px; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.dc-bot-row { cursor: default; }
.wl-net { margin: 2px 0 6px; font-size: 13px; font-weight: 600; color: var(--ok); }
.wl-net:empty { display: none; }
.rm-grid { display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); gap: 24px; align-items: start; }
.rm-grid .wl-form { margin-top: 0; }
.rm-list { display: flex; flex-direction: column; gap: 8px; }
.rm-row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 12px; text-align: left; border-radius: 12px; border: 1px solid var(--line); background: var(--bg-2); color: var(--text); cursor: pointer; }
.rm-row:hover { border-color: var(--accent); }
.rm-ico { width: 32px; height: 32px; flex: none; display: grid; place-items: center; border-radius: 9px; background: var(--accent-soft); color: var(--accent); font-weight: 700; }
.rm-t { min-width: 0; flex: 1; display: flex; flex-direction: column; }
.rm-t b { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rm-t small { color: var(--text-3); font-size: 12px; }
.rm-unread { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px; background: var(--accent); color: #04141a; font-size: 11px; font-weight: 700; display: grid; place-items: center; }
.rm-wrap { grid-template-columns: minmax(0, 1fr); }
.rm-wrap .lj-back { margin-bottom: 6px; }
@media (max-width: 760px) { .rm-grid { grid-template-columns: minmax(0, 1fr); } }
.ach-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; align-items: start; }
.ach-track { container-type: inline-size; min-width: 0; }
.ach-road { display: flex; flex-direction: column-reverse; gap: 20px; padding: 18px 14px 22px; border: 1px solid var(--line); border-radius: 16px; background: radial-gradient(120% 90% at 50% 0, rgba(56,189,248,.07), transparent 70%), var(--panel); }
.ach-cards { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.ach-card { position: relative; min-width: 0; margin: 0 5px; padding: 8px 6px 12px; display: flex; flex-direction: column; align-items: center; gap: 1px; border: 1px solid var(--line); border-radius: 14px; background: linear-gradient(180deg, rgba(148,182,255,.05), transparent); color: var(--text-2); font: inherit; cursor: pointer; transition: border-color .2s, box-shadow .2s, transform .2s; }
.ach-card:hover { border-color: var(--line-2); transform: translateY(-2px); }
.ach-card img { width: 100%; aspect-ratio: 1; object-fit: contain; margin-bottom: 4px; filter: grayscale(.9) brightness(.6); transition: filter .3s; }
.ach-card b { font-size: 15px; color: var(--text); white-space: nowrap; }
.ach-card small { font-size: 11px; color: var(--text-3); }
.ach-card.sel { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 10px 26px -14px var(--accent); }
.ach-card.sel img { filter: grayscale(.35) brightness(.85); }
.ach-card.done img { filter: none; }
.ach-card.done small { color: var(--accent); }
.ach-card.done::after { content: '✓'; position: absolute; top: 8px; right: 8px; width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%; background: var(--accent); color: #04141a; font-size: 12px; font-weight: 800; }
.ach-rail { position: relative; height: 6px; margin: 0 5px; border-radius: 99px; background: var(--bg-2); }
.ach-rail i { position: absolute; left: 0; top: 0; width: var(--fill, 0%); height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--accent-2), var(--accent)); box-shadow: 0 0 10px var(--accent-soft); }
.ach-mark { position: absolute; left: var(--at); top: 50%; width: 6px; height: 6px; border-radius: 50%; background: var(--line-2); transform: translate(-50%, -50%); transition: background .2s; }
.ach-mark.prize { width: 14px; height: 14px; border: 2px solid var(--line-2); background: var(--panel); }
.ach-mark.done { background: var(--accent); }
.ach-mark.prize.done { border-color: var(--accent); box-shadow: 0 0 10px var(--accent-soft); }
/* pouco espaço (celular ou janela estreita): a trilha fica em pé, uma premiação por linha */
@container (max-width: 560px) {
  .ach-road { flex-direction: row; gap: 14px; padding: 12px 12px 12px 18px; }
  .ach-rail { flex: none; width: 6px; height: auto; margin: 5px 0; }
  .ach-rail i { width: 100%; height: var(--fill, 0%); background: linear-gradient(180deg, var(--accent-2), var(--accent)); }
  .ach-mark { left: 50%; top: var(--at); }
  .ach-cards { flex: 1; min-width: 0; grid-template-columns: minmax(0, 1fr); grid-auto-rows: 1fr; }
  .ach-card { margin: 5px 0; padding: 8px 12px; display: grid; grid-template-columns: 76px minmax(0, 1fr); column-gap: 14px; align-content: center; text-align: left; }
  .ach-card img { grid-row: span 2; margin: 0; }
  .ach-card b { align-self: end; }
  .ach-card small { align-self: start; }
}
.ig-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; }
.ig-card h3 { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0 0 4px; font-size: 15px; }
.ig-card .tool-field { margin: 10px 0 0; }
.ig-name { display: inline-flex; align-items: center; gap: 10px; min-width: 0; }
.ig-logo { flex: none; width: 26px; height: 26px; border-radius: 7px; }
span.ig-logo { border-radius: 0; -webkit-mask: var(--logo) center / contain no-repeat; mask: var(--logo) center / contain no-repeat; }
.ig-foot { display: flex; align-items: center; justify-content: flex-end; gap: 12px; margin-top: 16px; }
.ig-foot .sell-msg { flex: 1; margin: 0; }
.dm-card { max-width: 760px; }
.dm-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.dm-head b { font-size: 16px; overflow-wrap: anywhere; }
.dm-add { display: flex; gap: 8px; margin-top: 10px; }
.dm-add input { flex: 1; min-width: 0; }
.dm-table { width: 100%; margin: 12px 0; border-collapse: collapse; font-size: 12.5px; }
.dm-table th { padding: 6px 8px; text-align: left; font-size: 11px; color: var(--text-3); }
.dm-table td { padding: 8px; border-top: 1px solid var(--line); font-family: 'JetBrains Mono', monospace; overflow-wrap: anywhere; }
.dm-actions { display: flex; gap: 8px; flex-wrap: wrap; }
@media (max-width: 520px) { .dm-add { flex-direction: column; } }
.ach-side { display: flex; flex-direction: column; gap: 14px; }
.ach-side-l { display: block; font-size: 12px; font-weight: 600; color: var(--text-3); }
.ach-rev { display: block; margin: 2px 0 12px; font-size: 22px; }
.ach-prize-img { display: block; width: min(190px, 100%); aspect-ratio: 1; margin: 0 auto 10px; object-fit: contain; }
.ach-side h3 { margin: 0; font-size: 16px; }
.ach-goal { margin: 2px 0 8px; font-size: 12px; color: var(--text-3); }
#ach-detail p { font-size: 13px; line-height: 1.5; margin: 0 0 8px; }
.ach-claim { margin: 8px 0; padding-top: 10px; border-top: 1px solid var(--line); }
.ach-claim p { margin-top: 8px !important; overflow-wrap: anywhere; }
.ad-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.fee-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; }
.fee-card b { display: block; font-size: 26px; color: var(--accent); }
.fee-card h3, .fee-note h3 { margin: 6px 0 4px; font-size: 14px; }
.fee-card p, .fee-note p { margin: 0; font-size: 13px; line-height: 1.5; color: var(--text-3); }
.fee-note { margin-top: 14px; }
.fee-note b { color: var(--text); }
@media (max-width: 960px) { .ach-wrap { grid-template-columns: minmax(0, 1fr); } }
.uc-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.uc-danger { background: rgba(248,113,113,0.12); border-color: rgba(248,113,113,0.45); color: var(--err); }
.uc-danger:hover { background: rgba(248,113,113,0.2); }
.nav-pro { font-style: normal; font-size: 9px; font-weight: 800; letter-spacing: .4px; padding: 1px 5px; border-radius: 5px; margin-left: auto; background: linear-gradient(135deg, #22d3ee, #6366f1); color: #04121a; }
@media (max-width: 560px) { .uc-grid { grid-template-columns: 1fr; } .dc-edit-me { position: static; margin-top: 8px; } }
/* efeitos no nome (PRO): gradientes que fluem, brilhos que respiram e reflexos que passam */
/* efeitos no nome: o texto é um gradiente em camadas; ::before e ::after são luz e partículas (o HTML não muda) */
.nfx { position: relative; display: inline-block; padding: 0 .08em; margin: 0 -.08em; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent !important; background-size: 300% 100%; }
.nfx::before, .nfx::after { position: absolute; pointer-events: none; }
/* Aurora: faixas de luz sobre o gradiente e um véu que ondula em volta do nome */
.nfx-aurora { background-image: linear-gradient(105deg, transparent 35%, rgba(255,255,255,.9) 50%, transparent 65%), linear-gradient(90deg, #34d399, #22d3ee, #818cf8, #e879f9, #22d3ee, #34d399); background-size: 250% 100%, 320% 100%; animation: nfx-aurora-flow 8s ease-in-out infinite alternate, nfx-aurora-glow 5s ease-in-out infinite alternate; }
.nfx-aurora::before { content: ''; inset: -.35em -.4em; background: radial-gradient(40% 70% at 25% 60%, rgba(52,211,153,.42), transparent 70%), radial-gradient(40% 70% at 75% 40%, rgba(192,132,252,.4), transparent 70%); animation: nfx-aurora-veil 6s ease-in-out infinite alternate; }
@keyframes nfx-aurora-flow { from { background-position: 130% 0, 0% 50%; } to { background-position: -30% 0, 100% 50%; } }
@keyframes nfx-aurora-glow { from { filter: drop-shadow(0 0 3px rgba(52,211,153,.6)); } to { filter: drop-shadow(0 0 8px rgba(167,139,250,.75)); } }
@keyframes nfx-aurora-veil { from { transform: translateX(-7%) scaleX(.95); opacity: .5; } to { transform: translateX(7%) scaleX(1.06); opacity: 1; } }
/* Neon: tubo de vidro com núcleo branco, falhas de ligação e reflexo aceso embaixo */
.nfx-neon { background-image: linear-gradient(180deg, #fff 20%, #cffafe 55%, #67e8f9); background-size: 100% 100%; filter: drop-shadow(0 0 1px #fff) drop-shadow(0 0 5px #22d3ee) drop-shadow(0 0 12px rgba(8,145,178,.9)); animation: nfx-neon 5s linear infinite; }
.nfx-neon::after { content: ''; left: 4%; right: 4%; bottom: -.12em; height: .09em; border-radius: 99px; background: linear-gradient(90deg, transparent, #22d3ee, #a5f3fc, #22d3ee, transparent); box-shadow: 0 0 .5em #22d3ee; }
@keyframes nfx-neon { 0%, 7%, 9.5%, 13%, 60%, 62.5%, 100% { opacity: 1; } 8% { opacity: .4; } 11% { opacity: .6; } 61% { opacity: .5; } }
@keyframes nfx-neon-soft { from { opacity: .82; } to { opacity: 1; } }
/* Chama: calor subindo pelas letras e fagulhas soltas */
.nfx-fogo { background-image: linear-gradient(0deg, #fff7ae 0%, #fde047 18%, #fb923c 42%, #ef4444 66%, #fb923c 84%, #fde047 100%); background-size: 100% 240%; animation: nfx-fogo-rise 1.5s ease-in-out infinite alternate, nfx-fogo-lick 1.1s ease-in-out infinite alternate; }
.nfx-fogo::before, .nfx-fogo::after { content: ''; inset: -.7em 0 -.1em; }
.nfx-fogo::before { background: radial-gradient(circle at 18% 90%, #fde047 0 .06em, transparent .08em), radial-gradient(circle at 52% 96%, #fb923c 0 .05em, transparent .07em), radial-gradient(circle at 81% 88%, #fef08a 0 .06em, transparent .08em); animation: nfx-ember 1.9s ease-out infinite; }
.nfx-fogo::after { background: radial-gradient(circle at 34% 94%, #fef08a 0 .05em, transparent .07em), radial-gradient(circle at 66% 90%, #f97316 0 .06em, transparent .08em), radial-gradient(circle at 92% 96%, #fde047 0 .04em, transparent .06em); animation: nfx-ember 2.4s ease-out .7s infinite; }
@keyframes nfx-fogo-rise { from { background-position: 50% 100%; } to { background-position: 50% 0%; } }
@keyframes nfx-fogo-lick { from { filter: drop-shadow(0 0 3px rgba(249,115,22,.55)); } to { filter: drop-shadow(0 -2px 9px rgba(250,204,21,.8)); } }
@keyframes nfx-ember { 0% { transform: translate(0, .1em) scale(1); opacity: 0; } 15% { opacity: 1; } 100% { transform: translate(.12em, -.75em) scale(.4); opacity: 0; } }
/* Ouro: metal com volume, risco de luz e estrelas que acendem nas pontas */
.nfx-ouro { background-image: linear-gradient(105deg, transparent 42%, #fffbe6 50%, transparent 58%), linear-gradient(180deg, #fff1b8 0%, #f5c542 38%, #b7791f 52%, #f6d365 68%, #8a5a0b 100%); background-size: 260% 100%, 100% 100%; filter: drop-shadow(0 1px 0 rgba(90,55,5,.9)) drop-shadow(0 0 5px rgba(251,191,36,.5)); animation: nfx-ouro-sweep 3.4s cubic-bezier(.45,0,.2,1) infinite; }
@keyframes nfx-ouro-sweep { 0% { background-position: 130% 0, 0 0; } 60%, 100% { background-position: -30% 0, 0 0; } }
.nfx-ouro::before, .nfx-ouro::after, .nfx-diamante::before, .nfx-diamante::after { content: ''; width: .55em; height: .55em; background: #fffbe6; clip-path: polygon(50% 0, 58% 42%, 100% 50%, 58% 58%, 50% 100%, 42% 58%, 0 50%, 42% 42%); animation: nfx-star 3.4s ease-in-out infinite; }
.nfx-ouro::before, .nfx-diamante::before { top: -.22em; right: -.14em; }
.nfx-ouro::after, .nfx-diamante::after { left: 6%; bottom: -.12em; width: .4em; height: .4em; animation-delay: 1.5s; }
@keyframes nfx-star { 0%, 55%, 100% { transform: scale(0) rotate(0); opacity: 0; } 68% { transform: scale(1) rotate(45deg); opacity: 1; } 82% { transform: scale(0) rotate(90deg); opacity: 0; } }
/* Holográfico: película iridescente com microlinhas, separação de cor e faixa de leitura */
.nfx-holo { background-image: repeating-linear-gradient(115deg, rgba(255,255,255,.42) 0 .06em, transparent .06em .22em), linear-gradient(115deg, #a5f3fc, #f0abfc, #c4b5fd, #86efac, #fde68a, #f9a8d4, #a5f3fc); background-size: 200% 100%, 400% 100%; filter: drop-shadow(.05em 0 0 rgba(255,0,128,.6)) drop-shadow(-.05em 0 0 rgba(0,229,255,.6)); animation: nfx-holo-foil 6s linear infinite alternate, nfx-holo-split 2.6s steps(1) infinite; }
.nfx-holo::after { content: ''; top: -8%; bottom: -8%; left: -20%; width: .35em; background: linear-gradient(90deg, transparent, rgba(255,255,255,.75), transparent); transform: skewX(-18deg); animation: nfx-scan 2.8s ease-in-out infinite; }
@keyframes nfx-holo-foil { from { background-position: 0 0, 0% 50%; } to { background-position: 100% 0, 100% 50%; } }
@keyframes nfx-holo-split { 0%, 44%, 52%, 100% { filter: drop-shadow(.05em 0 0 rgba(255,0,128,.6)) drop-shadow(-.05em 0 0 rgba(0,229,255,.6)); } 46% { filter: drop-shadow(.11em 0 0 rgba(255,0,128,.75)) drop-shadow(-.11em 0 0 rgba(0,229,255,.75)); } 49% { filter: drop-shadow(-.06em 0 0 rgba(255,0,128,.7)) drop-shadow(.06em 0 0 rgba(0,229,255,.7)); } }
@keyframes nfx-scan { 0% { left: -20%; opacity: 0; } 8% { opacity: 1; } 50% { left: 110%; opacity: 1; } 56%, 100% { left: 110%; opacity: 0; } }
/* Galáxia: nebulosa nas letras e estrelas piscando em volta */
.nfx-galaxia { background-image: linear-gradient(90deg, #818cf8, #c084fc, #f0abfc, #fff, #60a5fa, #a78bfa, #818cf8); background-size: 340% 100%; animation: nfx-flow 9s ease-in-out infinite alternate, nfx-nebula 4s ease-in-out infinite alternate; }
.nfx-galaxia::before, .nfx-galaxia::after { content: ''; inset: -.4em -.35em; }
.nfx-galaxia::before { background: radial-gradient(circle at 8% 22%, #fff 0 .045em, transparent .07em), radial-gradient(circle at 34% 6%, #e9d5ff 0 .035em, transparent .06em), radial-gradient(circle at 62% 92%, #fff 0 .04em, transparent .065em), radial-gradient(circle at 93% 30%, #bfdbfe 0 .05em, transparent .08em); animation: nfx-twinkle 2.2s ease-in-out infinite alternate; }
.nfx-galaxia::after { background: radial-gradient(circle at 20% 88%, #f5d0fe 0 .04em, transparent .065em), radial-gradient(circle at 50% 12%, #fff 0 .05em, transparent .08em), radial-gradient(circle at 80% 84%, #fff 0 .035em, transparent .06em), radial-gradient(60% 90% at 50% 50%, rgba(168,85,247,.2), transparent 70%); animation: nfx-twinkle 3s ease-in-out .9s infinite alternate-reverse; }
@keyframes nfx-flow { from { background-position: 0% 50%; } to { background-position: 100% 50%; } }
@keyframes nfx-sweep { 0% { background-position: 120% 50%; } 60%, 100% { background-position: -20% 50%; } }
@keyframes nfx-nebula { from { filter: drop-shadow(0 0 3px rgba(168,85,247,.5)); } to { filter: drop-shadow(0 0 9px rgba(236,72,153,.7)); } }
@keyframes nfx-twinkle { from { opacity: .15; transform: translateY(.03em); } to { opacity: 1; transform: translateY(-.03em); } }
/* efeitos exclusivos da loja */
/* Diamante: facetas de corte reto, clarão seco e brilhos azulados */
.nfx-diamante { background-image: linear-gradient(115deg, transparent 44%, #fff 50%, transparent 56%), linear-gradient(135deg, #e0f2fe 0 18%, #7dd3fc 18% 30%, #fff 30% 42%, #c4b5fd 42% 55%, #bae6fd 55% 68%, #f0f9ff 68% 80%, #93c5fd 80% 100%); background-size: 240% 100%, 100% 100%; animation: nfx-ouro-sweep 2.8s cubic-bezier(.45,0,.2,1) infinite, nfx-diamond 3s ease-in-out infinite alternate; }
.nfx-diamante::before, .nfx-diamante::after { background: #e0f2fe; animation-duration: 2.8s; }
@keyframes nfx-diamond { from { filter: drop-shadow(0 0 3px rgba(186,230,253,.6)); } to { filter: drop-shadow(0 0 10px rgba(196,181,253,.85)); } }
/* Plasma: energia correndo no texto e dois raios cruzando o nome */
.nfx-plasma { background-image: linear-gradient(90deg, #22d3ee, #a855f7, #f0abfc, #6366f1, #22d3ee); background-size: 300% 100%; animation: nfx-flow 2.4s ease-in-out infinite alternate, nfx-zap 1.7s ease-in-out infinite; }
.nfx-plasma::before, .nfx-plasma::after { content: ''; left: -3%; right: -3%; height: .5em; }
.nfx-plasma::before { top: 24%; background: #e0f2fe; animation: nfx-arc .9s steps(1) infinite; }
.nfx-plasma::after { top: 38%; background: #d8b4fe; animation: nfx-arc 1.1s steps(1) -.35s infinite; }
@keyframes nfx-zap { 0%, 100% { filter: drop-shadow(0 0 3px rgba(34,211,238,.6)); } 45% { filter: drop-shadow(0 0 11px rgba(168,85,247,.9)); } 55% { filter: drop-shadow(0 0 4px rgba(34,211,238,.7)); } }
@keyframes nfx-arc {
  0% { opacity: .9; clip-path: polygon(0 50%, 12% 20%, 24% 62%, 38% 30%, 52% 70%, 66% 24%, 80% 58%, 100% 40%, 100% 48%, 80% 66%, 66% 32%, 52% 78%, 38% 38%, 24% 70%, 12% 28%, 0 58%); }
  30% { opacity: .75; clip-path: polygon(0 40%, 14% 66%, 28% 26%, 42% 58%, 56% 18%, 70% 64%, 86% 30%, 100% 56%, 100% 64%, 86% 38%, 70% 72%, 56% 26%, 42% 66%, 28% 34%, 14% 74%, 0 48%); }
  55%, 100% { opacity: 0; clip-path: polygon(0 50%, 100% 50%, 100% 50%, 0 50%); }
}
/* Eclipse: letras escurecendo no centro e uma coroa de luz girando em volta */
.nfx-eclipse { background-image: linear-gradient(90deg, #fef3c7, #f59e0b 30%, #312e81 50%, #f59e0b 70%, #fef3c7); background-size: 260% 100%; filter: drop-shadow(0 0 3px rgba(253,230,138,.85)) drop-shadow(0 0 9px rgba(245,158,11,.5)); animation: nfx-flow 7s ease-in-out infinite alternate; }
.nfx-eclipse::before { content: ''; top: 50%; left: 50%; width: 1.9em; height: 1.9em; margin: -.95em; border-radius: 50%; background: conic-gradient(transparent, rgba(253,230,138,.9), transparent 30%, rgba(245,158,11,.75), transparent 62%, rgba(254,243,199,.85), transparent); -webkit-mask: radial-gradient(closest-side, transparent 76%, #000 80% 88%, transparent 100%); mask: radial-gradient(closest-side, transparent 76%, #000 80% 88%, transparent 100%); animation: nfx-spin 5s linear infinite; }
@keyframes nfx-spin { to { transform: rotate(360deg); } }
/* Cometa: o rastro cruza o nome e acende as letras por onde passa */
.nfx-cometa { background-image: linear-gradient(100deg, #93c5fd 0 38%, #fff 47%, #fde68a 51%, #93c5fd 60% 100%); background-size: 300% 100%; filter: drop-shadow(0 0 6px rgba(147,197,253,.55)); animation: nfx-sweep 3s cubic-bezier(.5,0,.6,1) infinite; }
.nfx-cometa::before { content: ''; width: 2.2em; height: .13em; border-radius: 99px; background: linear-gradient(90deg, transparent, rgba(147,197,253,.55), #fff); box-shadow: .02em 0 .35em #bfdbfe; transform: rotate(16deg); animation: nfx-comet 3s cubic-bezier(.5,0,.6,1) infinite; }
@keyframes nfx-comet { 0% { left: -2.4em; top: -.1em; opacity: 0; } 8% { opacity: 1; } 56% { left: calc(100% + .2em); top: .95em; opacity: 1; } 60%, 100% { left: calc(100% + .2em); top: .95em; opacity: 0; } }
/* Glitch: canais de cor separados e faixas que cortam o nome */
.nfx-glitch { background-image: linear-gradient(90deg, #fff 0 46%, #a5f3fc 46% 54%, #fff 54%); background-size: 240% 100%; filter: drop-shadow(.055em 0 0 #ff2bd6) drop-shadow(-.055em 0 0 #00e5ff); animation: nfx-glitch-shift 2.6s steps(1) infinite, nfx-glitch-bg 1.3s steps(5) infinite; }
.nfx-glitch::before, .nfx-glitch::after { content: ''; left: -4%; right: -4%; height: .13em; }
.nfx-glitch::before { top: 28%; background: linear-gradient(90deg, transparent, #00e5ff 25%, #fff 50%, #ff2bd6 75%, transparent); animation: nfx-glitch-bar 2.6s steps(1) infinite; }
.nfx-glitch::after { top: 66%; background: linear-gradient(90deg, #ff2bd6, transparent 40%, #00e5ff 80%, transparent); animation: nfx-glitch-bar 1.9s steps(1) -.8s infinite; }
@keyframes nfx-glitch-shift { 0%, 86%, 100% { transform: none; } 87% { transform: translate(.05em, -.02em) skewX(-9deg); } 90% { transform: translate(-.06em, .02em) skewX(7deg); } 93% { transform: translateX(.03em); } }
@keyframes nfx-glitch-bg { to { background-position: 100% 0; } }
@keyframes nfx-glitch-bar { 0%, 84%, 100% { opacity: 0; transform: none; } 85% { opacity: .95; transform: translateX(-.14em); } 90% { opacity: .75; transform: translateX(.18em); } 95% { opacity: .9; transform: translateX(-.05em); } }
/* Vórtice: energia violeta girando em volta do nome, com um anel em órbita */
.nfx-vortice { background-image: linear-gradient(100deg, #a78bfa 0%, #f0abfc 22%, #22d3ee 45%, #a78bfa 68%, #e879f9 85%, #a78bfa 100%); background-size: 300% 100%; filter: drop-shadow(0 0 4px rgba(167,139,250,.75)); animation: nfx-vortice-flow 3.2s linear infinite; }
.nfx-vortice::before, .nfx-vortice::after { content: ''; left: -7%; right: -7%; top: 50%; height: 1.5em; margin-top: -.75em; border-radius: 50%; border: 1.5px solid transparent; }
.nfx-vortice::before { border-top-color: #c4b5fd; border-right-color: rgba(34,211,238,.8); animation: nfx-vortice-spin 2.4s linear infinite; }
.nfx-vortice::after { border-bottom-color: rgba(240,171,252,.85); animation: nfx-vortice-spin 3.4s linear reverse infinite; }
@keyframes nfx-vortice-flow { to { background-position: -300% 0; } }
@keyframes nfx-vortice-spin { from { transform: scaleY(.42) rotate(0deg); } to { transform: scaleY(.42) rotate(360deg); } }
/* Tempestade: nuvens em movimento e raios que clareiam o nome */
.nfx-tempestade { background-image: linear-gradient(100deg, #94a3b8, #e2e8f0 22%, #64748b 40%, #cbd5e1 60%, #475569 78%, #94a3b8); background-size: 320% 100%; animation: nfx-flow 6s ease-in-out infinite alternate, nfx-storm-flash 4.6s linear infinite; }
.nfx-tempestade::before { content: ''; top: -.55em; left: 22%; width: .55em; height: 1.5em; background: linear-gradient(180deg, #fff, #bfdbfe); clip-path: polygon(60% 0, 18% 52%, 48% 52%, 26% 100%, 86% 40%, 54% 40%, 82% 0); filter: drop-shadow(0 0 .2em #93c5fd); animation: nfx-storm-bolt 4.6s linear infinite; }
.nfx-tempestade::after { content: ''; top: -.45em; right: 16%; width: .4em; height: 1.1em; background: #e0f2fe; clip-path: polygon(60% 0, 18% 52%, 48% 52%, 26% 100%, 86% 40%, 54% 40%, 82% 0); filter: drop-shadow(0 0 .2em #93c5fd); animation: nfx-storm-bolt 4.6s linear 2.1s infinite; }
@keyframes nfx-storm-flash { 0%, 88%, 100% { filter: drop-shadow(0 0 3px rgba(148,163,184,.5)); } 89%, 93% { filter: brightness(1.7) drop-shadow(0 0 10px #bfdbfe); } 91% { filter: drop-shadow(0 0 3px rgba(148,163,184,.5)); } }
@keyframes nfx-storm-bolt { 0%, 88%, 100% { opacity: 0; } 89%, 93% { opacity: 1; } 91% { opacity: .2; } }
/* Matrix: código verde caindo por trás das letras */
.nfx-matrix { background-image: repeating-linear-gradient(180deg, #d1fae5 0 .12em, #22c55e .12em .34em, #065f46 .34em .6em, #22c55e .6em .72em); background-size: 100% 1.44em; filter: drop-shadow(0 0 2px #4ade80) drop-shadow(0 0 7px rgba(34,197,94,.55)); animation: nfx-matrix-fall 1.8s linear infinite; }
.nfx-matrix::before, .nfx-matrix::after { content: ''; top: -.5em; bottom: -.5em; width: .07em; background: linear-gradient(180deg, transparent, #4ade80 60%, #ecfdf5); -webkit-mask: repeating-linear-gradient(180deg, #000 0 .14em, transparent .14em .24em); mask: repeating-linear-gradient(180deg, #000 0 .14em, transparent .14em .24em); }
.nfx-matrix::before { left: -.22em; animation: nfx-matrix-rain 1.4s linear infinite; }
.nfx-matrix::after { right: -.22em; animation: nfx-matrix-rain 1.9s linear -.7s infinite; }
@keyframes nfx-matrix-fall { to { background-position: 0 1.44em; } }
@keyframes nfx-matrix-rain { from { transform: translateY(-.5em); opacity: 0; } 30% { opacity: 1; } to { transform: translateY(.5em); opacity: 0; } }
/* Supernova: núcleo que pulsa e solta ondas de energia */
.nfx-supernova { background-image: radial-gradient(ellipse at center, #fff 0 22%, #fde68a 38%, #fb7185 60%, #a855f7 82%, #312e81 100%); background-size: 180% 240%; background-position: 50% 50%; animation: nfx-nova-core 2.8s ease-in-out infinite; }
.nfx-supernova::before, .nfx-supernova::after { content: ''; top: 50%; left: 50%; width: 1.5em; height: 1.5em; margin: -.75em; border-radius: 50%; border: .06em solid rgba(253,230,138,.9); box-shadow: 0 0 .4em rgba(251,113,133,.8), inset 0 0 .3em rgba(168,85,247,.7); animation: nfx-nova-wave 2.8s ease-out infinite; }
.nfx-supernova::after { border-color: rgba(192,132,252,.85); animation-delay: 1.4s; }
@keyframes nfx-nova-core { 0%, 100% { background-size: 150% 200%; filter: drop-shadow(0 0 3px rgba(251,113,133,.6)); } 50% { background-size: 230% 300%; filter: drop-shadow(0 0 10px rgba(253,230,138,.95)); } }
@keyframes nfx-nova-wave { from { transform: scale(.25); opacity: .95; } to { transform: scale(2.4); opacity: 0; } }
/* Com "animações reduzidas" os efeitos seguem tocando; só o que pisca forte fica calmo. */
@media (prefers-reduced-motion: reduce) {
  .nfx-glitch { animation: nfx-glitch-bg 3s linear infinite alternate; }
  .nfx-glitch::before, .nfx-glitch::after { animation-duration: 6s; }
  .nfx-tempestade { animation: nfx-flow 6s ease-in-out infinite alternate; filter: drop-shadow(0 0 4px rgba(148,163,184,.6)); }
  .nfx-tempestade::before, .nfx-tempestade::after { animation-duration: 9s; }
  .nfx-neon { animation: nfx-neon-soft 2.8s ease-in-out infinite alternate; }
  .nfx-holo { animation: nfx-holo-foil 6s linear infinite alternate; }
  .nfx-plasma { animation: nfx-flow 2.4s ease-in-out infinite alternate; filter: drop-shadow(0 0 6px rgba(168,85,247,.7)); }
  .nfx-plasma::before, .nfx-plasma::after { animation-duration: 2.6s; }
}
/* fontes do nome (PRO) */
.nf-orbitron { font-family: 'Orbitron', sans-serif; font-weight: 700; }
.nf-audiowide { font-family: 'Audiowide', sans-serif; font-weight: 400; }
.nf-oxanium { font-family: 'Oxanium', sans-serif; font-weight: 700; }
.nf-exo { font-family: 'Exo 2', sans-serif; font-weight: 700; }
.nf-rajdhani { font-family: 'Rajdhani', sans-serif; font-weight: 700; font-size: 1.08em; }
.nf-michroma { font-family: 'Michroma', sans-serif; font-weight: 400; font-size: .86em; }
.nf-syncopate { font-family: 'Syncopate', sans-serif; font-weight: 700; font-size: .82em; }
.nf-quantico { font-family: 'Quantico', sans-serif; font-weight: 700; }
.nf-tektur { font-family: 'Tektur', sans-serif; font-weight: 700; }
.nf-sharetech { font-family: 'Share Tech Mono', monospace; font-weight: 400; }
.pf-font-prev { margin-top: 8px; padding: 12px 14px; border-radius: 10px; background: #0b1220; font-size: 18px; font-weight: 700; min-height: 50px; display: flex; align-items: center; }
.dc-name.nfx:hover { text-decoration: none; filter: brightness(1.15); }
.pf-effects { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; max-height: 260px; overflow: auto; padding-right: 2px; }
.pf-effect { display: grid; grid-template-columns: auto 1fr; column-gap: 8px; align-items: center; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; min-width: 0; }
.pf-effect:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.pf-effect input { accent-color: var(--accent); margin: 0; width: 14px; height: 14px; min-width: 0; padding: 0; border: 0; background: none; box-shadow: none; flex: none; }
.pf-effect-name { font-weight: 800; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.pf-effect-name.nfx { overflow: visible; justify-self: start; }
.pf-effect { overflow: hidden; }
.pf-effect small { grid-column: 2; font-size: 10.5px; color: var(--text-3); }
.pf-gif-row { display: flex; gap: 10px; align-items: center; }
.pf-gif-row input { flex: 1; min-width: 0; }
.pf-gif-prev { width: 44px; height: 44px; flex: none; font-size: 18px; }
.pf-pro-lock { border: 1px dashed var(--accent); border-radius: 12px; padding: 12px; margin-bottom: 10px; background: var(--accent-soft); }
/* chat: selo verificado, ações do topo, apagar ao vivo, destaque */
.dc-verified { display: inline-flex; color: #38bdf8; filter: drop-shadow(0 0 4px rgba(56,189,248,.45)); vertical-align: -2px; margin-right: 2px; }
.dc-head-actions { position: absolute; right: 4px; top: 0; display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.dc-shop-btn { background: linear-gradient(135deg, rgba(34,211,238,.18), rgba(99,102,241,.22)); border-color: rgba(99,102,241,.45); color: var(--text); gap: 6px; }
.dc-msg, .dc-line { position: relative; }
.dc-del { position: absolute; right: 6px; top: 4px; display: none; width: 28px; height: 28px; border-radius: 8px; border: 1px solid rgba(248,113,113,.45); background: rgba(248,113,113,.14); color: var(--err); place-items: center; cursor: pointer; padding: 0; }
.dc-msg:hover > .dc-del, .dc-line:hover > .dc-del, .dc-msg.sel > .dc-del, .dc-line.sel > .dc-del { display: grid; }
.dc-del:hover { background: rgba(248,113,113,.28); }
.dc-msg.sel, .dc-line.sel { background: rgba(248,113,113,.06); border-radius: 10px; }
.dc-msg.removing, .dc-line.removing { opacity: .35; transition: opacity .2s; }
.dc-msg.hl, .dc-line.hl { --hl: #22d3ee; background: linear-gradient(90deg, color-mix(in srgb, var(--hl) 14%, transparent), color-mix(in srgb, var(--hl) 6%, transparent) 60%, transparent); border-left: 2px solid color-mix(in srgb, var(--hl) 75%, transparent); border-radius: 10px; box-shadow: inset 0 0 18px -10px color-mix(in srgb, var(--hl) 60%, transparent); }
.pf-hl-colors { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.pf-hl-swatch { width: 28px; height: 28px; padding: 0; border: 2px solid transparent; border-radius: 50%; cursor: pointer; }
.pf-hl-swatch.on { border-color: #fff; }
.pf-hl-custom { display: block; width: 28px; height: 28px; border-radius: 50%; overflow: hidden; cursor: pointer; background: conic-gradient(#ef4444, #eab308, #22c55e, #22d3ee, #3b82f6, #a855f7, #ef4444); }
.pf-hl-custom input { width: 100%; height: 100%; padding: 0; border: 0; opacity: 0; cursor: pointer; }
.pf-hl-demo { margin-top: 8px; padding: 8px 12px; font-size: 13px; border-left: 2px solid var(--hl); border-radius: 10px; background: linear-gradient(90deg, color-mix(in srgb, var(--hl) 16%, transparent), transparent); }
.pf-socials { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.pf-socials label { display: flex; flex-direction: column; gap: 3px; font-size: 11px; color: var(--text-3); }
.pf-socials input { width: 100%; }
@media (max-width: 480px) { .pf-socials { grid-template-columns: 1fr; } }
.uc-bio { margin: 0; font-size: 13px; line-height: 1.5; color: var(--text); white-space: pre-wrap; overflow-wrap: anywhere; }
.uc-socials { display: flex; flex-wrap: wrap; gap: 6px; }
.uc-bio + .uc-socials { margin-top: 10px; }
.uc-link { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; color: #93c5fd; font-size: 13px; font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }
.uc-link:hover { color: #bfdbfe; text-decoration: underline; }
.uc-bio + .uc-link { margin-top: 8px; }
.uc-link + .uc-socials { margin-top: 10px; }
.uc-socials img { flex: none; filter: brightness(0) invert(1); }
.uc-socials a, .uc-socials button { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; border: 1px solid #3b82f6; background: #2563eb; color: #fff; font: inherit; font-size: 12px; text-decoration: none; cursor: pointer; overflow-wrap: anywhere; }
.uc-socials a:hover, .uc-socials button:hover { color: #fff; background: #1d4ed8; border-color: #93c5fd; }
.dc-friends-badge { min-width: 17px; height: 17px; margin-left: 6px; padding: 0 4px; display: inline-grid; place-items: center; border-radius: 999px; background: #ef4444; color: #fff; font-size: 10px; font-weight: 800; }
.dc-friends-badge[hidden] { display: none; }
.fr-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding: 8px 0; border-top: 1px solid var(--line); }
.fr-who { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.fr-who .dc-av { flex: none; width: 36px; height: 36px; }
.fr-name { min-width: 0; display: flex; flex-direction: column; font-size: 14px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.fr-name small { font-size: 11px; color: var(--text-3); }
.fr-name small.on { color: var(--ok); }
.fr-btns { display: flex; gap: 6px; }
@media (max-width: 560px) { .dc-head-actions { position: static; margin-top: 8px; justify-content: flex-start; } }
/* capas do perfil (proporção 3:1) */
.uc-cover { aspect-ratio: 3 / 1; border-radius: 12px; overflow: hidden; margin-bottom: 0; background: var(--bg-2); }
.uc-cover img, .shop-cover img, .pf-cover-thumb img, .uc-cover video, .shop-cover video, .pf-cover-thumb video { width: 100%; height: 100%; object-fit: cover; display: block; }
/* só a foto sobe sobre a capa (como perfil de rede social); nome e título ficam abaixo dela */
.uc-head.has-cover { padding-left: 12px; align-items: flex-start; margin-top: 8px; }
.uc-head.has-cover .dc-av { position: relative; z-index: 1; margin-top: -38px; border: 3px solid var(--panel, #0f172a); box-shadow: 0 6px 18px rgba(0,0,0,.35); }
.cover-nebulosa { background: radial-gradient(circle at 20% 30%, rgba(168,85,247,.85), transparent 45%), radial-gradient(circle at 75% 60%, rgba(56,189,248,.75), transparent 50%), radial-gradient(circle at 50% 100%, rgba(236,72,153,.6), transparent 55%), #0b1024; }
.cover-oceano { background: linear-gradient(160deg, #0c4a6e 0%, #0369a1 35%, #0e7490 60%, #164e63 100%); position: relative; }
.cover-oceano::after { content: ''; position: absolute; inset: 0; background: repeating-radial-gradient(ellipse at 50% 140%, rgba(255,255,255,.08) 0 2px, transparent 2px 22px); }
.cover-grafite { background: linear-gradient(135deg, #111827, #1f2937 45%, #0f172a), repeating-linear-gradient(45deg, rgba(255,255,255,.03) 0 2px, transparent 2px 9px); background-blend-mode: overlay; }
.cover-aurora { background: linear-gradient(120deg, #052e2b, #065f46, #0e7490, #4c1d95, #065f46, #052e2b); background-size: 300% 300%; animation: cover-aurora 14s ease-in-out infinite alternate; }
@keyframes cover-aurora { from { background-position: 0% 40%; } to { background-position: 100% 60%; } }
/* Horizonte neon: sol listrado no fim de uma pista em perspectiva que corre na direção de quem vê */
.cover-horizonte { position: relative; overflow: hidden; background: radial-gradient(60% 130% at 50% 60%, rgba(244,114,182,.7), transparent 62%), linear-gradient(180deg, #0b1030 0%, #2a1458 45%, #7c1d6f 60%); }
.cover-horizonte::before { content: ''; position: absolute; left: 50%; top: 10%; width: 20%; aspect-ratio: 1; transform: translateX(-50%); border-radius: 50%; background: linear-gradient(180deg, #fde68a, #fb7185 55%, #c026d3); -webkit-mask: linear-gradient(180deg, #000 48%, transparent 48% 52%, #000 52% 62%, transparent 62% 67%, #000 67% 76%, transparent 76% 83%, #000 83%); mask: linear-gradient(180deg, #000 48%, transparent 48% 52%, #000 52% 62%, transparent 62% 67%, #000 67% 76%, transparent 76% 83%, #000 83%); filter: drop-shadow(0 0 12px rgba(251,113,133,.8)); }
.cover-horizonte::after { content: ''; position: absolute; left: -60%; right: -60%; top: 60%; bottom: -60%; background-color: #090418; background-image: repeating-linear-gradient(90deg, rgba(34,211,238,.6) 0 1px, transparent 1px 30px), repeating-linear-gradient(0deg, rgba(34,211,238,.6) 0 1px, transparent 1px 18px); transform: perspective(90px) rotateX(58deg); transform-origin: top; animation: cover-grid 1.4s linear infinite; }
@keyframes cover-grid { to { background-position: 0 0, 0 18px; } }
.uc-cover.cover-nebulosa, .uc-cover.cover-oceano, .uc-cover.cover-grafite, .uc-cover.cover-aurora, .shop-cover, .pf-cover-thumb { position: relative; }
/* editor: capas */
.pf-covers { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.pf-cover-opt { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 6px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; font-size: 11.5px; color: var(--text-2); }
.pf-cover-opt:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.pf-cover-opt:has(input:checked) { box-shadow: 0 0 0 1px var(--accent), 0 0 14px -4px var(--accent); }
.pf-cover-opt:has(input:checked)::after { content: '✓'; position: absolute; top: 10px; right: 10px; z-index: 1; width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; background: var(--accent); color: #04121a; font-size: 13px; font-weight: 800; }
.pf-cover-opt:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.pf-cover-opt input { position: absolute; opacity: 0; pointer-events: none; }
.pf-cover-thumb, .pf-cover-none { aspect-ratio: 3 / 1; border-radius: 7px; overflow: hidden; }
.pf-cover-none, .pf-cover-own { display: grid; place-items: center; background: var(--bg-2); border: 1px dashed var(--line-2); color: var(--text-3); }
.pf-cover-own-in { width: 100%; height: 100%; }
.pf-cover-own-in img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pc-form { display: grid; grid-template-columns: 1fr 180px auto; gap: 8px; margin-bottom: 12px; }
.pc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.pc-item { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 6px 8px; padding: 8px; border: 1px solid var(--line); border-radius: 10px; font-size: 12px; }
.pc-item .sh-cover { grid-column: 1 / -1; max-width: none; width: 100%; }
@media (max-width: 700px) { .pc-form { grid-template-columns: 1fr; } }
.pf-gif-mini { width: 22px; height: 22px; border-radius: 6px; object-fit: cover; }
/* loja */
.shop-admin-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; font-size: 12px; }
.shop-h { margin: 14px 0 8px; font-size: 13px; color: var(--text-2); }
.shop-nav { position: sticky; top: -18px; z-index: 5; display: flex; gap: 6px; flex-wrap: wrap; margin: 0 -18px 6px; padding: 10px 18px; background: #0b1220; border-bottom: 1px solid var(--line); }
.shop-nav-btn { height: 32px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--raised); color: var(--text-2); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.shop-nav-btn:hover { color: var(--text); border-color: var(--accent); }
.shop-sec > summary { display: flex; align-items: center; gap: 8px; margin: 0; padding: 10px 2px; font-weight: 700; cursor: pointer; list-style: none; }
.shop-sec > summary::-webkit-details-marker { display: none; }
.shop-sec > summary span { font-size: 11px; color: var(--text-3); }
.shop-sec > summary svg { margin-left: auto; transition: transform .15s; }
.shop-sec:not([open]) > summary svg { transform: rotate(-90deg); }
.shop-sec + .shop-sec { border-top: 1px solid var(--line); }
.shop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(185px, 1fr)); gap: 10px; }
.shop-item { border: 1px solid var(--line); border-radius: 12px; background: var(--bg-2); overflow: hidden; display: flex; flex-direction: column; }
.shop-item.off { opacity: .5; }
.shop-cover { aspect-ratio: 3 / 1; overflow: hidden; }
.shop-prev { aspect-ratio: 3 / 1; display: grid; place-items: center; background: radial-gradient(circle at 50% 120%, rgba(34,211,238,.12), transparent 60%), #0b1220; font-weight: 800; font-size: 17px; }
.shop-gif { height: 80%; aspect-ratio: 1; border-radius: 12px; object-fit: cover; }
.shop-power { color: var(--accent); }
.shop-hl-demo { font-size: 12px; font-weight: 600; padding: 6px 10px; border-left: 2px solid var(--accent); border-radius: 8px; background: linear-gradient(90deg, rgba(34,211,238,.16), transparent); color: var(--text); }
.shop-info { padding: 9px 10px 4px; font-size: 13px; }
.shop-info p { margin: 4px 0 0; font-size: 11.5px; color: var(--text-3); line-height: 1.4; }
.shop-foot { margin-top: auto; display: flex; align-items: center; gap: 6px; padding: 8px 10px 10px; }
.shop-price { font-weight: 800; margin-right: auto; }
/* moderação */
.mod-list { display: flex; flex-direction: column; gap: 8px; }
.mod-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg-2); flex-wrap: wrap; }
.mod-who { display: flex; flex-direction: column; gap: 3px; min-width: 0; font-size: 13px; }
.mod-who .muted { font-size: 11px; }
.uc-muted { font-weight: 400; font-size: 11px; color: #fbbf24; margin-left: 6px; }
/* painel admin: chat e loja */
.sh-itemcell { display: flex; align-items: center; gap: 10px; min-width: 220px; }
.sh-prev { width: 96px; height: 32px; flex: none; border-radius: 7px; overflow: hidden; display: grid; place-items: center; background: #0b1220; border: 1px solid var(--line); }
.sh-cover { width: 100%; height: 100%; aspect-ratio: 3 / 1; border-radius: 7px; overflow: hidden; }
#sh-cover-prev .sh-cover { height: auto; }
.sh-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sh-fx { font-weight: 800; font-size: 13px; white-space: nowrap; }
.sh-gif { height: 100%; aspect-ratio: 1; object-fit: cover; }
.sh-power { font-size: 10px; font-weight: 700; color: var(--accent); text-align: center; line-height: 1.1; padding: 0 4px; }
.sh-price-in { width: 104px; }
.sh-order { display: flex; gap: 4px; }
.sh-form-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px 14px; align-items: end; }
.sh-wide { grid-column: 1 / -1; }
.sh-fx-prev { margin-top: 8px; font-size: 20px; font-weight: 800; padding: 10px 14px; border-radius: 10px; background: #0b1220; display: inline-block; }
/* celular: o iOS dá zoom ao focar campos com fonte < 16px; toque duplo não amplia botões e links */
@media (max-width: 900px), (pointer: coarse) { input, select, textarea, [contenteditable] { font-size: 16px !important; } }
/* nome grande no topo alargava a página: o celular reduzia tudo e voltava a ampliar ao focar um campo */
html { overflow-x: clip; }
@media (max-width: 560px) { .user-chip .uc-name { display: none; } .topbar-actions { flex-shrink: 0; } }
button, a, label, input, select, textarea, [role="button"] { touch-action: manipulation; }
.pf-title-prev { margin-top: 6px; font-size: 12px; display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; min-height: 16px; }
.pf-title-prev .dc-title { margin: 0; font-size: 12px; color: var(--text-2); }
/* barra de progresso das ferramentas de imagem (ex.: removedor de fundo) */
.it-bar { position: relative; height: 6px; margin-top: 6px; border-radius: 999px; background: rgba(148,163,184,.16); overflow: hidden; }
.it-bar > i { position: absolute; inset: 0 auto 0 0; width: 2%; border-radius: inherit; background: linear-gradient(90deg, #22d3ee, #6366f1); transition: width .35s ease; }
.it-bar.busy > i { width: 35% !important; animation: it-bar-slide 1.3s ease-in-out infinite; }
@keyframes it-bar-slide { from { left: -35%; } to { left: 100%; } }
@media (prefers-reduced-motion: reduce) { .it-bar.busy > i { animation: none; width: 100% !important; opacity: .5; } }
/* logo horizontal no topo das dashboards (a imagem já traz o nome ORION AI) */
.brand-logo-h { height: 30px; width: auto; display: block; flex-shrink: 0; filter: drop-shadow(0 0 10px rgba(56, 189, 248, 0.25)); }
.adm-brand { flex-direction: column; align-items: flex-start; gap: 6px; }
.adm-logo-h { height: 34px; width: auto; display: block; }
@media (max-width: 900px) { .brand-logo-h { height: 26px; } }
@media (max-width: 420px) { .brand-logo-h { height: 22px; } .repo-pill { flex: none; max-width: none; padding: 0 8px; } .repo-label { display: none; } .repo-tools { gap: 0; } }
/* painel admin: configurações em grupos (texto à esquerda, controle à direita) */
.set-groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 16px; }
.set-group { border: 1px solid var(--line); border-radius: 16px; padding: 6px 16px; background: rgba(4, 8, 16, 0.35); }
.set-group-h { font-size: 11px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; color: var(--text-3); padding: 12px 0 6px; }
.set-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0; border-top: 1px solid var(--line); }
.set-group-h + .set-row { border-top: 0; }
.set-row-full { border-top: 0; padding-top: 0; }
.set-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.set-txt b { font-size: 13.5px; font-weight: 600; }
.set-txt span { font-size: 12px; color: var(--text-3); line-height: 1.4; }
.set-ctl { flex: none; }
.set-input { width: 100%; }
.set-ctl .set-input { width: 190px; }
.set-num { display: inline-flex; align-items: center; gap: 6px; }
.set-num input { width: 72px !important; text-align: center; }
.set-num em { font-style: normal; color: var(--text-3); font-size: 12px; }
.set-flood { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13px; color: var(--text-2); }
.switch { position: relative; display: inline-block; width: 42px; height: 24px; cursor: pointer; }
.switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.switch i { position: absolute; inset: 0; border-radius: 999px; background: rgba(148, 182, 255, 0.15); border: 1px solid var(--line-2); transition: background .2s, border-color .2s; }
.switch i::after { content: ''; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%; background: #cbd5e1; transition: transform .2s, background .2s; box-shadow: 0 2px 6px rgba(0,0,0,.4); }
.switch input:checked + i { background: linear-gradient(135deg, #3b82f6, #38bdf8); border-color: transparent; box-shadow: 0 0 14px -2px rgba(56, 189, 248, 0.6); }
.switch input:checked + i::after { transform: translateX(18px); background: #fff; }
.switch input:focus-visible + i { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (max-width: 560px) { .set-groups { grid-template-columns: 1fr; } .set-ctl .set-input { width: 140px; } }
/* e-mail temporário: cartão do endereço + caixa e leitor lado a lado */
.tm-wrap { max-width: 1180px; margin: 0 auto; }
.tm-hero { display: grid; grid-template-columns: auto 1fr auto; grid-template-areas: "ico main actions" "ico prov prov"; gap: 6px 18px; align-items: center; padding: 22px 24px; border-radius: 22px; border: 1px solid var(--line); margin-bottom: 18px;
  background: radial-gradient(500px 220px at 0% 0%, rgba(56,189,248,.12), transparent 70%), linear-gradient(180deg, rgba(16,24,44,.65), rgba(7,11,22,.6)); box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 24px 60px -30px rgba(0,0,0,.9); }
.tm-hero-ico { grid-area: ico; width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; color: #fff; background: linear-gradient(145deg, #3b82f6, #38bdf8); box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 10px 28px -8px rgba(59,130,246,.9); }
.tm-hero-ico svg { width: 26px; height: 26px; }
.tm-hero-main { grid-area: main; min-width: 0; }
.tm-hero-label { font-size: 11px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase; color: var(--text-3); }
.tm-addr { font-family: var(--mono); font-size: 22px; font-weight: 600; color: #e0f2fe; margin: 4px 0 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-shadow: 0 0 18px rgba(56,189,248,.35); }
.tm-live { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--text-3); }
.tm-pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 rgba(52,211,153,.6); animation: tm-pulse 1.8s ease-out infinite; }
@keyframes tm-pulse { 0% { box-shadow: 0 0 0 0 rgba(52,211,153,.55); } 100% { box-shadow: 0 0 0 10px rgba(52,211,153,0); } }
.tm-hero-actions { grid-area: actions; display: flex; gap: 8px; }
.tm-hero-actions .btn { height: 40px; }
.tm-hero-prov { grid-area: prov; display: flex; align-items: center; gap: 10px; margin-top: 8px; padding-top: 12px; border-top: 1px solid var(--line); }
.tm-hero-prov label { font-size: 12px; color: var(--text-3); font-weight: 600; }
.tm-hero-prov select { width: auto; min-width: 220px; height: 34px; }
.tm-mail { display: grid; grid-template-columns: minmax(260px, 360px) 1fr; gap: 16px; min-height: 460px; }
.tm-list, .tm-read { border: 1px solid var(--line); border-radius: 20px; overflow: hidden; background: linear-gradient(180deg, rgba(16,24,44,.6), rgba(7,11,22,.58)); box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 24px 60px -30px rgba(0,0,0,.9); display: flex; flex-direction: column; }
.tm-list-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--line); font-size: 13px; }
.tm-list-head span { font-size: 11px; font-weight: 700; padding: 2px 9px; border-radius: 999px; background: rgba(56,189,248,.14); color: #7dd3fc; }
.tm-items { flex: 1; overflow-y: auto; padding: 8px; display: flex; flex-direction: column; gap: 4px; max-height: 560px; }
.tm-item { display: flex; gap: 11px; align-items: center; width: 100%; padding: 10px; border-radius: 12px; border: 1px solid transparent; background: transparent; text-align: left; color: var(--text-2); transition: background .15s, border-color .15s; }
.tm-item:hover { background: rgba(148,182,255,.07); }
.tm-item.active { background: rgba(56,189,248,.12); border-color: rgba(56,189,248,.35); }
.tm-item.unread .tm-item-top b { color: var(--text); }
.tm-item.unread::after { content: ''; width: 8px; height: 8px; border-radius: 50%; background: #38bdf8; flex: none; box-shadow: 0 0 8px rgba(56,189,248,.8); }
.tm-av { width: 36px; height: 36px; border-radius: 12px; flex: none; display: grid; place-items: center; font-weight: 800; color: #fff; font-size: 14px; }
.tm-item-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.tm-item-top { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; }
.tm-item-top b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.tm-item-top time { font-size: 11px; color: var(--text-3); flex: none; }
.tm-subj { font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-3); }
.tm-empty { padding: 28px 14px; text-align: center; font-size: 13px; color: var(--text-3); }
.tm-read-empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 30px; text-align: center; color: var(--text-3); font-size: 13px; }
.tm-read-empty svg { width: 40px; height: 40px; opacity: .6; color: var(--accent); }
.tm-read-empty b { color: var(--text-2); font-size: 14px; }
.tm-read-head { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.tm-read-meta { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.tm-read-meta b { font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tm-read-meta span { font-size: 12px; color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tm-back { display: none; font-size: 20px; }
.tm-frame { flex: 1; width: 100%; min-height: 420px; border: 0; background: #fff; }
@media (max-width: 860px) {
  .tm-hero { grid-template-columns: auto 1fr; grid-template-areas: "ico main" "actions actions" "prov prov"; padding: 18px; }
  .tm-addr { font-size: 16px; }
  .tm-hero-actions .btn { flex: 1; }
  .tm-hero-prov select { min-width: 0; flex: 1; }
  .tm-mail { grid-template-columns: 1fr; min-height: 0; }
  .tm-read { display: none; }
  .tm-read.open { display: flex; position: fixed; inset: 54px 0 46px; z-index: 35; border-radius: 0; }
  .tm-back { display: inline-grid; }
}
@media (prefers-reduced-motion: reduce) { .tm-pulse { animation: none; } }
/* fila do compressor de vídeo (começa só no botão Iniciar) */
.vq-box { margin-top: 14px; padding: 14px 16px; border-radius: 16px; border: 1px solid rgba(56,189,248,.28); background: rgba(56,189,248,.06); }
.vq-head { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: 13px; margin-bottom: 10px; }
.vq-head span { color: var(--text-3); font-size: 12px; }
.vq-list { display: flex; flex-direction: column; gap: 6px; max-height: 220px; overflow-y: auto; }
.vq-item { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; background: rgba(4,8,16,.45); border: 1px solid var(--line); font-size: 13px; }
.vq-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vq-size { color: var(--text-3); font-size: 12px; flex: none; }
.vq-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 12px; }
.vq-actions .btn-primary { min-width: 180px; height: 40px; }
@media (max-width: 560px) { .vq-actions .btn { flex: 1; } .vq-actions .btn-primary { min-width: 0; } }
/* transcritor: envio à esquerda, resultado à direita */
.tr-wrap { max-width: 1180px; margin: 0 auto; }
.tr-warn { display: flex; align-items: center; gap: 12px; padding: 14px 16px; margin-bottom: 16px; border-radius: 16px; border: 1px solid rgba(251,191,36,.35); background: rgba(251,191,36,.07); color: #fcd34d; }
.tr-warn div { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.tr-warn b { color: var(--text); font-size: 13.5px; }
.tr-warn span { font-size: 12px; color: var(--text-3); }
.tr-grid { display: grid; grid-template-columns: minmax(300px, 400px) 1fr; gap: 16px; align-items: start; }
.tr-card { border: 1px solid var(--line); border-radius: 20px; padding: 18px; background: linear-gradient(180deg, rgba(16,24,44,.62), rgba(7,11,22,.58)); box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 24px 60px -30px rgba(0,0,0,.9); }
.tr-card-h { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; font-size: 14px; }
.tr-card-h svg { color: var(--accent); }
.tr-drop { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding: 28px 16px; border: 1.5px dashed rgba(148,182,255,.24); border-radius: 18px; cursor: pointer; background: rgba(56,189,248,.04); transition: border-color .15s, background .15s; }
.tr-drop:hover, .tr-drop.over, .tr-drop:focus-visible { border-color: rgba(56,189,248,.6); background: rgba(56,189,248,.09); outline: 0; }
.tr-drop-ico { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 8px; color: #fff; background: linear-gradient(145deg, #3b82f6, #38bdf8); box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 10px 28px -8px rgba(59,130,246,.9); }
.tr-drop b { font-size: 14px; }
.tr-drop span { font-size: 12.5px; color: var(--text-3); }
.tr-drop em { font-style: normal; font-size: 11px; color: var(--text-3); margin-top: 8px; padding: 3px 10px; border-radius: 999px; background: rgba(148,182,255,.07); }
.tr-lang { margin: 14px 0 0; }
.tr-status { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.tr-file { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; }
.tr-file b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.tr-file span { color: var(--text-3); flex: none; }
.tr-steps { display: flex; gap: 6px; }
.tr-steps span { flex: 1; text-align: center; font-size: 11px; font-weight: 600; padding: 5px 4px; border-radius: 8px; background: rgba(148,182,255,.06); color: var(--text-3); }
.tr-steps span.on { background: rgba(56,189,248,.14); color: #7dd3fc; }
.tr-time { font-size: 11px; color: var(--text-3); text-align: right; font-variant-numeric: tabular-nums; }
.tr-st { font-size: 13px; padding: 10px 12px; border-radius: 12px; }
.tr-st.ok { background: rgba(52,211,153,.1); color: var(--ok); }
.tr-st.err { background: rgba(248,113,113,.1); color: var(--err); }
.tr-result { min-height: 420px; display: flex; flex-direction: column; }
.tr-empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center; color: var(--text-3); font-size: 13px; padding: 30px; }
.tr-empty svg { color: var(--accent); opacity: .55; }
.tr-empty b { color: var(--text-2); font-size: 14px; }
.tr-res-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; padding-bottom: 14px; border-bottom: 1px solid var(--line); margin-bottom: 14px; }
.tr-chips { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.tr-chips span { font-size: 11px; padding: 3px 9px; border-radius: 999px; background: rgba(148,182,255,.08); color: var(--text-2); }
.tr-res-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.tr-text { flex: 1; white-space: pre-wrap; font-size: 14.5px; line-height: 1.75; color: var(--text); max-height: 560px; overflow-y: auto; padding-right: 6px; }
@media (max-width: 860px) { .tr-grid { grid-template-columns: 1fr; } .tr-result { min-height: 260px; } }
/* cortar vídeo */
.tm-editor { margin-top: 14px; padding: 14px; border-radius: 16px; border: 1px solid rgba(56,189,248,.28); background: rgba(56,189,248,.06); display: flex; flex-direction: column; gap: 12px; }
.tm-editor video { width: 100%; max-height: 420px; border-radius: 12px; background: #000; }
.tm-name { font-size: 13px; color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tm-track { position: relative; height: 34px; border-radius: 10px; background: rgba(4,8,16,.55); border: 1px solid var(--line); }
.tm-sel { position: absolute; top: 0; bottom: 0; background: rgba(56,189,248,.28); border-left: 3px solid #38bdf8; border-right: 3px solid #38bdf8; border-radius: 8px; pointer-events: none; }
.tm-track input[type=range] { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; background: transparent; -webkit-appearance: none; appearance: none; pointer-events: none; }
.tm-track input[type=range]::-webkit-slider-runnable-track { background: transparent; height: 100%; }
.tm-track input[type=range]::-moz-range-track { background: transparent; }
.tm-track input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; pointer-events: auto; width: 18px; height: 34px; border-radius: 6px; background: #e0f2fe; border: 2px solid #38bdf8; cursor: ew-resize; }
.tm-track input[type=range]::-moz-range-thumb { pointer-events: auto; width: 16px; height: 30px; border-radius: 6px; background: #e0f2fe; border: 2px solid #38bdf8; cursor: ew-resize; }
.tm-row { display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; align-items: end; }
.tm-pt, .tm-len { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--text-3); }
.tm-pt:last-child { align-items: flex-end; text-align: right; }
.tm-len { align-items: center; }
.tm-pt b, .tm-len b { font-size: 16px; color: var(--text); font-variant-numeric: tabular-nums; }
.tm-actions { display: flex; justify-content: flex-end; gap: 8px; }
.tm-actions .btn-primary { min-width: 160px; height: 40px; }
@media (max-width: 560px) { .tm-row { grid-template-columns: 1fr 1fr; } .tm-len { grid-column: 1 / -1; order: 3; } .tm-actions .btn { flex: 1; } .tm-actions .btn-primary { min-width: 0; } }
/* comprimir imagem */
.cp-opts { display: grid; grid-template-columns: 3fr 2fr; gap: 16px; }
.cp-group { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.cp-label { font-size: 12.5px; font-weight: 600; color: var(--text-2); }
.cp-seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.cp-seg-sm { grid-template-columns: repeat(2, 1fr); }
.cp-seg button { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; padding: 11px 13px; border-radius: 12px; border: 1px solid var(--line); background: rgba(4,8,16,.45); color: var(--text); text-align: left; cursor: pointer; font: inherit; transition: border-color .15s, background .15s; }
.cp-seg button b { font-size: 13.5px; }
.cp-seg button span { font-size: 11.5px; color: var(--text-3); line-height: 1.35; }
.cp-seg button:hover { border-color: rgba(56,189,248,.4); }
.cp-seg button[aria-checked="true"] { border-color: #38bdf8; background: rgba(56,189,248,.12); box-shadow: inset 0 0 0 1px rgba(56,189,248,.35); }
@media (max-width: 900px) { .cp-opts { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .cp-seg { grid-template-columns: 1fr; } .cp-seg-sm { grid-template-columns: 1fr 1fr; } }
/* steam keys */
.sk-legit { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px; border: 1px solid rgba(52,211,153,.35); background: rgba(52,211,153,.07); color: var(--text-2); font-size: 13px; line-height: 1.45; }
.sk-legit svg { flex: none; color: #34d399; }
.sk-legit b { color: var(--text); }
.sk-cat { display: inline-block; margin: 26px 0 14px; padding: 8px 16px; border-radius: 10px; border: 1.5px solid rgba(59,130,246,.7); background: rgba(59,130,246,.1); font-size: 14px; font-weight: 800; letter-spacing: .4px; }
.sk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.sk-card { display: flex; flex-direction: column; border-radius: 14px; border: 1px solid var(--line); background: var(--bg-2); overflow: hidden; cursor: pointer; transition: transform .15s, border-color .15s; }
.sk-card:hover, .sk-card:focus-visible { transform: translateY(-2px); border-color: rgba(59,130,246,.5); outline: none; }
.sk-card.off { opacity: .75; }
.sk-cover { position: relative; aspect-ratio: 16 / 9; background: var(--bg); }
.sk-cover img, .sk-cover video { width: 100%; height: 100%; object-fit: cover; display: block; }
.sk-flag { position: absolute; top: 10px; left: 10px; padding: 3px 9px; border-radius: 999px; background: #f59e0b; color: #111; font-size: 11px; font-weight: 800; letter-spacing: .5px; }
.sk-info { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px 14px; flex: 1; }
.sk-info h3 { margin: 0; font-size: 15px; }
.sk-tag { margin: 0; color: var(--text-3); font-size: 12.5px; line-height: 1.4; flex: 1; }
.sk-price-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 4px; }
.sk-price { font-size: 19px; font-weight: 800; display: flex; flex-direction: column; line-height: 1.15; }
.sk-price small { font-size: 11.5px; font-weight: 500; color: var(--text-3); }
.sk-price.big { font-size: 26px; }
.sk-pix { width: 34px; height: 34px; border-radius: 9px; background: rgba(77,182,172,.12); display: grid; place-items: center; flex: none; }
.sk-buy { height: 40px; margin-top: 6px; }
.sk-detail { display: grid; grid-template-columns: 1fr; gap: 14px; }
.sk-detail-cover { width: 100%; border-radius: 12px; display: block; }
.sk-detail video.sk-detail-cover { aspect-ratio: 16 / 9; object-fit: cover; }
.sk-detail-buy { display: flex; flex-direction: column; gap: 10px; }
.sk-qty { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 13px; color: var(--text-2); }
.sk-qty-box { display: flex; align-items: center; gap: 6px; }
.sk-qty-box input { width: 56px; height: 34px; text-align: center; border-radius: 8px; border: 1px solid var(--line-2); background: var(--bg-2); color: var(--text); }
.sk-go { height: 46px; font-size: 15px; }
.sk-note { margin: 0; font-size: 12px; color: var(--text-3); line-height: 1.45; }
.sk-desc { white-space: pre-line; font-size: 13.5px; line-height: 1.6; color: var(--text-2); border-top: 1px solid var(--line); padding-top: 14px; }
.sk-orders { display: flex; flex-direction: column; gap: 10px; }
.sk-order { padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg-2); }
.sk-order-h { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; font-size: 13.5px; }
.sk-order-h span { color: var(--text-3); font-size: 12px; }
.sk-keys { display: flex; flex-direction: column; gap: 6px; }
.sk-key { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 9px; background: var(--bg); border: 1px solid var(--line); }
.sk-key code { flex: 1; min-width: 0; font-family: var(--mono); font-size: 13px; word-break: break-all; color: var(--text); }
.sk-key-t { flex: none; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: rgba(59,130,246,.15); color: #93c5fd; }
.sk-key-actions { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.sk-wait { margin: 0; font-size: 13px; color: #fbbf24; line-height: 1.5; }
.sk-done { display: flex; flex-direction: column; gap: 10px; }
.sk-ok { color: var(--ok, #34d399); font-weight: 700; }
@media (max-width: 560px) { .sk-grid { grid-template-columns: 1fr 1fr; gap: 10px; } .sk-info { padding: 10px; } .sk-info h3 { font-size: 13px; } .sk-tag { display: none; } .sk-price { font-size: 16px; } .sk-pix { display: none; } }

/* Ferramentas de Áudio */
.au-lead { margin: 0 0 14px; font-size: 13px; }
#au-host { margin-top: 18px; }
.au-quota { margin-left: auto; font-size: 11.5px; color: var(--text-3); font-weight: 500; }
.au-text { width: 100%; min-height: 170px; resize: vertical; padding: 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg-2); color: var(--text); font: inherit; font-size: 14px; line-height: 1.5; }
.au-count { text-align: right; font-size: 11.5px; color: var(--text-3); margin: 4px 0 12px; }
.au-voice-row { display: flex; gap: 8px; }
.au-voice-row select { flex: 1; min-width: 0; }
.au-sliders { display: grid; gap: 10px; margin: 6px 0 14px; }
.au-sliders label { display: grid; grid-template-columns: 1fr auto; gap: 4px 8px; font-size: 12.5px; color: var(--text-2); }
.au-sliders label b { font-weight: 600; color: var(--text); }
.au-sliders input { grid-column: 1 / -1; width: 100%; accent-color: var(--accent); }
.au-go { width: 100%; justify-content: center; gap: 8px; }
.au-list { display: flex; flex-direction: column; gap: 12px; }
.au-item { border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; background: var(--bg-2); display: flex; flex-direction: column; gap: 8px; }
.au-item-h { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; font-size: 13px; }
.au-item-t { margin: 0; font-size: 12.5px; color: var(--text-3); white-space: pre-wrap; }
.au-item audio { width: 100%; height: 38px; }

/* Automações: bot de WhatsApp */
.wa-soon { opacity: .5; cursor: default; }
.wa-risk { border: 1px solid rgba(251,191,36,.35); background: rgba(251,191,36,.06); border-radius: 16px; padding: 14px 16px; margin-bottom: 14px; font-size: 13px; color: var(--text-2); }
.wa-risk > b { color: #fcd34d; font-size: 13.5px; }
.wa-risk p { margin: 6px 0; }
.wa-risk ul { margin: 4px 0 6px; padding-left: 18px; }
.wa-check { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text); cursor: pointer; }
.wa-check input { accent-color: var(--accent); width: 16px; height: 16px; }
.wa-card { margin-bottom: 14px; display: flex; flex-direction: column; gap: 10px; }
.wa-card-h { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.wa-card-h .muted { font-size: 12px; }
.wa-card-h .btn { margin-left: auto; }
.wa-input { width: 100%; padding: 9px 11px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg-2); color: var(--text); font: inherit; font-size: 13.5px; }
.wa-inline { width: auto; }
.wa-hint { font-size: 12px; margin: 0; }
.wa-mtabs { margin-top: 0; }
.wa-linked { display: flex; align-items: center; gap: 12px; }
.wa-linked > div { flex: 1; display: flex; flex-direction: column; gap: 2px; font-size: 13px; }
.wa-linked span { color: var(--text-3); }
.wa-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--text-3); display: inline-block; flex: none; }
.wa-dot.on { background: #22c55e; box-shadow: 0 0 10px #22c55e; }
.wa-pair { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.wa-qr { width: 220px; height: 220px; border-radius: 12px; background: #fff; padding: 6px; }
.wa-code { font: 700 30px/1 var(--mono, monospace); letter-spacing: 4px; padding: 18px 22px; border-radius: 14px; border: 1px dashed var(--accent); background: var(--accent-soft); }
.wa-steps { flex: 1; min-width: 220px; margin: 0; padding-left: 18px; font-size: 13px; color: var(--text-2); display: grid; gap: 6px; }
.wa-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.wa-groups { max-height: 340px; overflow: auto; display: flex; flex-direction: column; gap: 6px; }
.wa-group { display: flex; gap: 10px; align-items: flex-start; padding: 9px 10px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; }
.wa-group input { margin-top: 3px; accent-color: var(--accent); }
.wa-group span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.wa-group b { font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wa-group em { font-style: normal; font-size: 11.5px; color: var(--text-3); }
.wa-group.off { opacity: .5; cursor: not-allowed; }
.wa-msgs { display: flex; flex-direction: column; gap: 8px; }
.wa-msg { display: flex; gap: 6px; align-items: flex-start; }
.wa-msg textarea { resize: vertical; min-height: 64px; }
.wa-sched { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.wa-sched .tool-field { margin: 0; }
.wa-quiet { display: flex; align-items: center; gap: 6px; margin-top: 6px; font-size: 12.5px; color: var(--text-3); }
.wa-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.wa-state { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-2); flex-wrap: wrap; }
.wa-log { display: flex; flex-direction: column; gap: 4px; max-height: 320px; overflow: auto; }
.wa-logi { display: flex; gap: 10px; font-size: 12.5px; padding: 6px 8px; border-radius: 8px; background: var(--bg-2); }
.wa-logi time { color: var(--text-3); flex: none; }
.wa-logi.err span { color: #fca5a5; }
@media (max-width: 860px) { .wa-cols { grid-template-columns: 1fr; } .wa-qr { width: 200px; height: 200px; } }

/* Automações: Telegram e manutenção */
.at-badge { font-style: normal; font-size: 10.5px; font-weight: 700; padding: 2px 7px; border-radius: 999px; background: rgba(251,191,36,.14); color: #fcd34d; margin-left: 6px; vertical-align: middle; white-space: nowrap; }
.it-card.at-maint { opacity: .6; }
.tg-chats { display: flex; flex-wrap: wrap; gap: 6px; }
.tg-chip { display: inline-flex; gap: 6px; align-items: center; padding: 6px 10px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg-2); font-size: 12.5px; }
.tg-chip em { font-style: normal; color: var(--text-3); font-size: 11.5px; }
.tg-tabs { margin: 0 0 12px; }
.tg-picks { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 6px; }
.tg-fmt { font-size: 11.5px; margin: 0; }
.tg-fmt code, .wa-hint code { font-size: 11px; padding: 1px 5px; border-radius: 5px; background: var(--bg-2); }
.tg-item { display: flex; flex-direction: column; gap: 6px; padding: 10px; border: 1px solid var(--line); border-radius: 12px; }
.tg-extra summary { cursor: pointer; font-size: 12px; color: var(--text-3); }
.tg-extra[open] { display: flex; flex-direction: column; gap: 6px; }
.tg-btnrow { display: grid; grid-template-columns: 1fr 2fr; gap: 6px; }
.tg-cmds { display: flex; flex-direction: column; gap: 10px; }
.tg-cmdh { display: flex; gap: 6px; align-items: center; }
.tg-cmdh > span { font-weight: 700; color: var(--accent); }
.tg-cmdh input[data-f=cmd] { max-width: 160px; }
.tg-steps code { font-size: 12px; }
@media (max-width: 600px) { .tg-btnrow { grid-template-columns: 1fr; } .tg-cmdh { flex-wrap: wrap; } .tg-cmdh input[data-f=cmd] { max-width: none; flex: 1; } }

.au-br { margin-top: 6px; width: 100%; justify-content: center; }
.au-brlist { display: flex; flex-direction: column; gap: 6px; max-height: 60vh; overflow: auto; }
.au-brv { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; }
.au-brv > div { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; font-size: 13px; }
.au-brv span { font-size: 11.5px; color: var(--text-3); }

/* Meus dados */
.fi-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; margin-top: 16px; }
.fi-grid .tool-field[hidden] { display: none; }
@media (max-width: 560px) { .fi-grid { grid-template-columns: 1fr; } }

/* ================================================================ Molduras de avatar (Loja do chat) */
/* Cada arquivo tem a abertura centralizada, com 2/3 do lado. O tamanho acompanha o avatar e nunca a mensagem. */
.avf { --img: none; --cut: none; --c: 9%; position: relative; display: inline-flex; flex: none; align-self: flex-start; height: fit-content; isolation: isolate; line-height: 1; margin: 3px; }
.avf::before { content: ''; position: absolute; inset: -24%; z-index: 1; background: var(--img) center / 100% 100% no-repeat; pointer-events: none; }
.avf > .dc-av, .avf > .dc-mav { border-radius: 0; clip-path: var(--cut); }
.dc-member .avf, .fr-who .avf, .pf-frame-box .avf, .uc-head .avf, .shop-prev .avf { align-self: center; }
.uc-head .avf { flex: none; }
.uc-head.has-cover .avf { z-index: 1; margin-top: -38px; }
.uc-head.has-cover .avf > .dc-av { margin-top: 0; border: 0; }
.avf-cargo { --img: url("https://cdn.jsdelivr.net/gh/drivedatropa-source/orion-assets@b5b8ea13cce2ca3588c0f73ad7788ca9f1700063/molduras/cargo.webp"); }
.avf-neon { --img: url("https://cdn.jsdelivr.net/gh/drivedatropa-source/orion-assets@b5b8ea13cce2ca3588c0f73ad7788ca9f1700063/molduras/neon.webp"); }
.avf-cartao { --img: url("https://cdn.jsdelivr.net/gh/drivedatropa-source/orion-assets@b5b8ea13cce2ca3588c0f73ad7788ca9f1700063/molduras/cartao.webp"); }
.avf-hud { --img: url("https://cdn.jsdelivr.net/gh/drivedatropa-source/orion-assets@b5b8ea13cce2ca3588c0f73ad7788ca9f1700063/molduras/hud.webp"); }
.avf-sutil { --img: url("https://cdn.jsdelivr.net/gh/drivedatropa-source/orion-assets@b5b8ea13cce2ca3588c0f73ad7788ca9f1700063/molduras/sutil.webp"); }
.avf-premium { --img: url("https://cdn.jsdelivr.net/gh/drivedatropa-source/orion-assets@b5b8ea13cce2ca3588c0f73ad7788ca9f1700063/molduras/premium.webp"); }
.avf-vip { --img: url("https://cdn.jsdelivr.net/gh/drivedatropa-source/orion-assets@b5b8ea13cce2ca3588c0f73ad7788ca9f1700063/molduras/vip.webp"); }
.avf-diamante { --img: url("https://cdn.jsdelivr.net/gh/drivedatropa-source/orion-assets@b5b8ea13cce2ca3588c0f73ad7788ca9f1700063/molduras/diamante.webp"); }
.avf-canto { --img: url("https://cdn.jsdelivr.net/gh/drivedatropa-source/orion-assets@b5b8ea13cce2ca3588c0f73ad7788ca9f1700063/molduras/canto.webp"); }
.avf-cargo, .avf-cartao, .avf-hud, .avf-sutil, .avf-premium, .avf-vip { --cut: polygon(var(--c) 0, calc(100% - var(--c)) 0, 100% var(--c), 100% calc(100% - var(--c)), calc(100% - var(--c)) 100%, var(--c) 100%, 0 calc(100% - var(--c)), 0 var(--c)); }
.avf-cartao { --c: 6%; }
.avf-neon > .dc-av, .avf-neon > .dc-mav { border-radius: 16%; }
.avf-diamante { --cut: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); }
.avf-canto { --cut: polygon(28% 0, 72% 0, 100% 28%, 100% 72%, 72% 100%, 28% 100%, 0 72%, 0 28%); }
.avf-sutil::before { animation: avf-pulse 2.4s ease-in-out infinite alternate; }
@keyframes avf-pulse { from { filter: brightness(.9); } to { filter: brightness(1.25) drop-shadow(0 0 4px #3b82f6); } }
/* VIP com cor escolhida: a versão neutra entra por cima da cor */
.avf-vip[style*="--avf"]::before { background: url("https://cdn.jsdelivr.net/gh/drivedatropa-source/orion-assets@b5b8ea13cce2ca3588c0f73ad7788ca9f1700063/molduras/vip-tint.webp") center / 100% 100% no-repeat, var(--avf); background-blend-mode: hard-light; -webkit-mask: url("https://cdn.jsdelivr.net/gh/drivedatropa-source/orion-assets@b5b8ea13cce2ca3588c0f73ad7788ca9f1700063/molduras/vip-tint.webp") center / 100% 100% no-repeat; mask: url("https://cdn.jsdelivr.net/gh/drivedatropa-source/orion-assets@b5b8ea13cce2ca3588c0f73ad7788ca9f1700063/molduras/vip-tint.webp") center / 100% 100% no-repeat; }
.pf-frame-box { display: inline-flex; align-items: center; gap: 10px; min-width: 0; padding: 4px 2px 4px 4px; }
.pf-frame-box .dc-av { width: 28px; height: 28px; font-size: 12px; }
.pf-color-input { width: 54px; height: 32px; padding: 2px; border: 1px solid var(--line); border-radius: 8px; background: none; cursor: pointer; }
.it-panel .ts-narrow { max-width: none; margin: 0; }

/* Minhas lojas: foto na lista e nas Configurações */
.sales-row .lj-row-logo { flex: none; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; overflow: hidden; font-size: 14px; font-weight: 800; color: #06121a; background: linear-gradient(135deg, var(--accent), #7dd3fc); }
.sales-row .lj-row-logo img { width: 100%; height: 100%; border-radius: 0; object-fit: cover; }
.lj-photo { display: flex; align-items: center; gap: 14px; }
.lj-photo-a { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-width: 0; }
.lj-photo-a .muted { flex-basis: 100%; font-size: 12.5px; }
.lj-photo-a .muted:empty { display: none; }

/* Minhas lojas: Personalizar loja e Temas e gadgets */
.ps-sec { padding: 22px 0; border-top: 1px solid var(--line); }
.ps-studio .ps-sec:first-child, .lj-tabs + .ps-sec { padding-top: 6px; border-top: 0; }
.ps-sec > header { margin-bottom: 14px; }
.ps-sec h3 { margin: 0; font-size: 16px; }
.ps-sec > header p { margin: 3px 0 0; font-size: 12.5px; color: var(--text-3); }
.ps-link { padding: 0; border: 0; background: none; color: var(--accent); font: inherit; text-decoration: underline; cursor: pointer; }
.ps-empty { margin: 10px 0 12px; font-size: 12.5px; line-height: 1.5; color: var(--text-3); }
.ps-field label { display: block; margin-bottom: 4px; font-size: 12.5px; font-weight: 600; color: var(--text-2); }

/* paletas: cada botão é uma loja em miniatura */

/* amostras de cor */
.ps-swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; }
.ps-swatch { position: relative; display: block; padding: 6px 6px 7px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg-2); cursor: pointer; transition: border-color .15s; }
.ps-swatch:hover, .ps-swatch:focus-within { border-color: var(--accent); }
.ps-swatch input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; padding: 0; border: 0; opacity: 0; cursor: pointer; }
.ps-swatch i { display: block; height: 40px; margin-bottom: 6px; border-radius: 6px; background: var(--c); box-shadow: inset 0 0 0 1px rgba(255,255,255,.14); }
.ps-swatch b { display: block; font-size: 12.5px; font-weight: 600; color: var(--text); }
.ps-swatch code { display: block; font-size: 11px; color: var(--text-3); background: none; padding: 0; }

/* interruptor recortado, no mesmo desenho das molduras */
.ps-list > .ps-sw + .ps-sw { border-top: 1px solid var(--line); }
.ps-sw { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 52px; padding: 8px 0; cursor: pointer; }
.ps-sw span { min-width: 0; }
.ps-sw b { display: block; font-size: 13.5px; font-weight: 600; color: var(--text); }
.ps-sw small { display: block; margin-top: 1px; font-size: 12px; color: var(--text-3); }
.ps-sw input { position: absolute; top: 50%; right: 0; width: 46px; height: 26px; margin: -13px 0 0; opacity: 0; cursor: pointer; }
.ps-sw i { position: relative; flex: none; width: 46px; height: 26px; background: var(--raised); clip-path: polygon(7px 0, 100% 0, 100% calc(100% - 7px), calc(100% - 7px) 100%, 0 100%, 0 7px); transition: background .18s; }
.ps-sw i::after { content: ''; position: absolute; top: 5px; left: 5px; width: 15px; height: 16px; background: var(--text-3); clip-path: polygon(4px 0, 100% 0, 100% calc(100% - 4px), calc(100% - 4px) 100%, 0 100%, 0 4px); transition: transform .18s, background .18s; }
.ps-sw:hover i { background: var(--line-2); }
.ps-sw input:checked + i { background: color-mix(in srgb, var(--accent) 30%, var(--raised)); filter: drop-shadow(0 0 6px color-mix(in srgb, var(--accent) 55%, transparent)); }
.ps-sw input:checked + i::after { transform: translateX(21px); background: var(--accent); }
.ps-sw:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

/* deslizante */
.ps-range { display: flex; align-items: center; gap: 12px; }
.ps-range input { --p: 50%; flex: 1; min-width: 0; height: 24px; margin: 0; padding: 0; border: 0; background: none; box-shadow: none; -webkit-appearance: none; appearance: none; cursor: pointer; }
.ps-range input::-webkit-slider-runnable-track { height: 6px; background: linear-gradient(90deg, var(--accent) var(--p), var(--raised) var(--p)); }
.ps-range input::-moz-range-track { height: 6px; background: var(--raised); }
.ps-range input::-moz-range-progress { height: 6px; background: var(--accent); }
.ps-range input::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 14px; margin-top: -4px; border: 2px solid var(--accent); background: var(--bg); transform: rotate(45deg); box-shadow: 0 0 10px color-mix(in srgb, var(--accent) 60%, transparent); }
.ps-range input::-moz-range-thumb { width: 10px; height: 10px; border: 2px solid var(--accent); border-radius: 0; background: var(--bg); transform: rotate(45deg); }
.ps-range input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.ps-range output { flex: none; min-width: 40px; font-size: 14px; font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; color: var(--text); }

.ps-sub { margin: 4px 0 12px; padding: 12px 0 2px 14px; border-left: 2px solid color-mix(in srgb, var(--accent) 45%, transparent); }
.ps-sub[hidden] { display: none; }
.ps-sub .tool-field:last-child { margin-bottom: 0; }
.ps-sub .ps-swatches { margin-top: 12px; }
.ps-sub-row { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 16px; align-items: center; padding-bottom: 12px; }
.ps-sub-row > :first-child { grid-row: span 3; }
.ps-sub > .ps-field { margin-top: 12px; }

/* modelos de hero */
.ps-heroes { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.ps-hero { position: relative; display: block; padding: 10px; overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: var(--bg-2); color: var(--text-3); cursor: pointer; transition: border-color .15s, color .15s; }
.ps-hero input { position: absolute; opacity: 0; }
.ps-hero svg { display: block; width: 100%; height: auto; margin-bottom: 8px; }
.ps-hero b { display: block; font-size: 12.5px; color: var(--text); }
.ps-hero span { display: block; font-size: 11.5px; line-height: 1.35; }
.ps-hero:hover { border-color: var(--line-2); }
.ps-hero:has(input:checked) { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.ps-hero:has(input:checked) span { color: var(--text-2); }
.ps-hero:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }

/* barra de salvar */
.ps-bar { display: flex; align-items: center; gap: 8px; margin-top: 4px; padding: 16px 0 4px; border-top: 1px solid var(--line); }
.ps-bar a, .gd-keyrow a { text-decoration: none; }
.ps-bar .sell-msg { flex: 1; min-width: 0; margin: 0; }

/* Temas e gadgets */
.gd-group { margin: 16px 0 8px; font-size: 13px; font-weight: 600; color: var(--text-2); }
.gd-group:first-of-type { margin-top: 0; }
.gd-themes { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr)); gap: 12px; }
.gd-theme { display: flex; flex-direction: column; gap: 10px; padding: 8px 8px 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-2); }
.gd-theme.on { border-color: var(--accent); }
.gd-theme-b { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: auto 4px 0; }
.gd-color { width: 64px; height: 38px; padding: 3px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg-2); cursor: pointer; }
.gd-on { font-size: 12.5px; font-weight: 700; color: var(--accent); }
.gd-theme-t { padding: 0 4px; }
.gd-theme-t b { font-size: 13.5px; }
.gd-theme-t p { margin: 2px 0 0; font-size: 12px; line-height: 1.4; color: var(--text-3); }
.gd-theme-art { --s: .22; position: relative; aspect-ratio: 3 / 2; overflow: hidden; border-radius: 7px; background: var(--panel, #10121a); }
.gd-theme-art iframe { position: absolute; top: 0; left: 0; width: 1200px; height: 800px; border: 0; transform: scale(var(--s)); transform-origin: top left; pointer-events: none; }
.gd-items { border-top: 1px solid var(--line); }
.gd-item { border-bottom: 1px solid var(--line); }
.gd-item > .ps-sub { margin-left: 2px; }
.gd-locked { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 52px; padding: 10px 0; }
.gd-item-t { min-width: 0; }
.gd-item-t b { display: block; font-size: 13.5px; font-weight: 600; }
.gd-item-t small { display: block; margin-top: 1px; font-size: 12px; color: var(--text-3); }
.gd-keyrow { display: flex; flex-wrap: wrap; gap: 8px; margin: -4px 0 0; }
.gd-fail { margin: 10px 0; font-size: 12.5px; color: var(--err, #f87171); }
@media (max-width: 900px) {
  .ps-heroes { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .ps-heroes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ps-swatches { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ps-bar { flex-wrap: wrap; }
  .ps-bar .sell-msg { flex-basis: 100%; }
  .ps-bar .sell-msg:empty { display: none; }
  .ps-bar .btn { flex: 1; justify-content: center; }
  .gd-locked { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) { .ps-sw i, .ps-sw i::after { transition: none; } }
@media (max-width: 360px) {
  .chat-toolbar-title { display: none; }
  .chat-toolbar .btn { flex: 1; justify-content: center; }
}
