/* ==========================================================================
   SharePlus — design system
   Identidade visual Plus Informática (ouro #f5a623 sobre preto #080808)
   ========================================================================== */

@import url("fonts.css?v=1.0.0");

:root {
  color-scheme: dark;
  --bg: #080808;
  --bg-2: #0a0a0a;
  --surface: #111111;
  --surface-2: #141414;
  --surface-3: #1a1a1a;
  --line: #242424;
  --line-strong: #333333;
  --text: #f6f6f6;
  --muted: #a0a0a0;
  --dim: #767676;
  --brand: #f5a623;
  --brand-2: #ffd54f;
  --cyan: #ffd54f;
  --cyan-2: #ffd54f;
  --green: #25d366;
  --amber: #ffd54f;
  --danger: #fb7185;
  --grad: linear-gradient(135deg, #ffd54f 0%, #f5a623 100%);
  --grad-soft: linear-gradient(140deg, rgba(245, 166, 35, 0.22), rgba(255, 213, 79, 0.12));
  --gold: #f5a623;
  --gold-light: #ffd54f;
  --gold-dark: #c47f0a;
  --border-gold: rgba(245, 166, 35, 0.45);
  --shadow-gold: rgba(245, 166, 35, 0.25);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.55);
  --shadow-sm: 0 10px 30px rgba(0, 0, 0, 0.35);
  --radius: 16px;
  --radius-sm: 12px;
  --radius-lg: 26px;
  --font: 'Montserrat', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', 'Cascadia Code', ui-monospace, Consolas, monospace;
  --nav-h: 74px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
html, body { margin: 0; min-height: 100%; }
body {
  font: 15px/1.6 var(--font);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(600px 420px at 8% -6%, rgba(245, 166, 35, 0.18), transparent 70%),
    radial-gradient(560px 400px at 95% 4%, rgba(255, 213, 79, 0.14), transparent 70%),
    radial-gradient(640px 460px at 50% 108%, rgba(196, 127, 10, 0.16), transparent 70%),
    radial-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    var(--bg);
  background-size: auto, auto, auto, 28px 28px, auto;
  background-repeat: no-repeat, no-repeat, no-repeat, repeat, repeat;
}

img, svg, video, canvas { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--cyan-2); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { margin: 0; line-height: 1.12; letter-spacing: 0.04em; font-weight: 900; }
h1 { font-size: clamp(34px, 5.4vw, 64px); }
h2 { font-size: clamp(25px, 3.4vw, 40px); }
h3 { font-size: 19px; }
p { margin: 0; color: var(--muted); }
small { color: var(--dim); }
hr { border: 0; border-top: 1px solid var(--line); margin: 24px 0; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }
::selection { background: rgba(245, 166, 35, 0.45); color: #fff; }
.hidden { display: none !important; }

.wrap { width: min(1200px, calc(100% - 48px)); margin: 0 auto; }
.wrap-narrow { width: min(860px, calc(100% - 48px)); margin: 0 auto; }
.section { padding: 84px 0; }
.section-sm { padding: 48px 0; }
.center { text-align: center; }
.muted { color: var(--muted); }
.dim { color: var(--dim); }
.mono { font-family: var(--mono); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--cyan-2);
}
.eyebrow::before {
  content: ""; width: 22px; height: 1px; background: var(--cyan); opacity: 0.7;
}
.gradient-text {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

/* ---------------- Botões ---------------- */

.btn {
  --btn-bg: rgba(255, 255, 255, 0.04);
  --btn-border: var(--line-strong);
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 44px; padding: 0 18px;
  border-radius: 999px; border: 1px solid var(--btn-border);
  background: var(--btn-bg); color: var(--text);
  font-weight: 650; font-size: 14.5px; line-height: 1; white-space: nowrap;
  text-decoration: none; transition: transform 0.15s, background 0.15s, border-color 0.15s, box-shadow 0.15s;
  user-select: none;
}
.btn:hover { background: rgba(255, 255, 255, 0.08); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary {
  background: var(--grad); border-color: transparent; color: #080808;
  box-shadow: 0 8px 24px rgba(245, 166, 35, 0.25);
  font-weight: 800;
}
.btn-primary:hover { background: var(--grad); filter: brightness(1.08); box-shadow: 0 18px 44px rgba(245, 166, 35, 0.45); }
.btn-ghost { background: transparent; }
.btn-soft { background: rgba(245, 166, 35, 0.12); border-color: rgba(245, 166, 35, 0.32); color: #ffe4ae; }
.btn-soft:hover { background: rgba(245, 166, 35, 0.2); }
.btn-danger { background: rgba(251, 113, 133, 0.12); border-color: rgba(251, 113, 133, 0.4); color: #ffc3cc; }
.btn-danger:hover { background: rgba(251, 113, 133, 0.2); }
.btn-success { background: rgba(37, 211, 102, 0.14); border-color: rgba(37, 211, 102, 0.4); color: #b9ecd0; }
.btn-sm { min-height: 34px; padding: 0 14px; font-size: 13px; border-radius: 999px; gap: 6px; }
.btn-lg { min-height: 54px; padding: 0 28px; font-size: 16px; border-radius: 999px; }
.btn-block { width: 100%; }
.btn-icon { width: 42px; min-height: 42px; padding: 0; border-radius: 12px; }
.btn-link { border: 0; background: none; padding: 0; color: var(--cyan-2); font-weight: 600; }
.btn-link:hover { text-decoration: underline; }

/* ---------------- Campos ---------------- */

.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 16px; }
.field > label { font-size: 13px; font-weight: 650; color: #cfcac1; letter-spacing: 0.01em; }
.field .hint { font-size: 12px; color: var(--dim); }
.input, .select, .textarea {
  width: 100%; min-height: 46px; padding: 11px 14px;
  background: #0d0d0d; border: 1px solid var(--line-strong); border-radius: 11px;
  color: var(--text); font-size: 14.5px; outline: none;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}
.textarea { min-height: 96px; resize: vertical; line-height: 1.5; }
.input::placeholder, .textarea::placeholder { color: #6a6a6a; }
.input:focus, .select:focus, .textarea:focus {
  border-color: rgba(245, 166, 35, 0.85);
  box-shadow: 0 0 0 4px rgba(245, 166, 35, 0.14);
  background: #111111;
}
.select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 19px) 20px, calc(100% - 14px) 20px; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 34px; }
.check { display: flex; align-items: flex-start; gap: 10px; font-size: 13.5px; color: var(--muted); cursor: pointer; }
.check input { width: 17px; height: 17px; margin-top: 2px; accent-color: var(--brand); flex: none; }
.inline { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.stack-sm { display: flex; flex-direction: column; gap: 8px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }

/* ---------------- Cartões ---------------- */

.card {
  background: linear-gradient(145deg, rgba(20, 20, 20, 0.95), rgba(10, 10, 10, 0.98));
  border: 1px solid rgba(245, 166, 35, 0.28);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  position: relative;
  transition: border-color 0.18s, box-shadow 0.18s;
}
.card:hover { border-color: rgba(245, 166, 35, 0.45); box-shadow: 0 18px 44px rgba(245, 166, 35, 0.12), var(--shadow-sm); }
.card-flat { background: var(--surface); box-shadow: none; }
.card-glow::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px;
  background: linear-gradient(140deg, rgba(245, 166, 35, 0.55), rgba(255, 213, 79, 0.14), transparent 55%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none;
}
.card-title { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 16px; }
.card-title h3 { font-size: 17px; }
.card p + p { margin-top: 8px; }

.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 10px; border-radius: 999px;
  border: 1px solid var(--line-strong); background: rgba(255, 255, 255, 0.035);
  font-size: 11.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted);
  white-space: nowrap;
}
.badge-brand { color: #ffe4ae; background: rgba(245, 166, 35, 0.14); border-color: rgba(245, 166, 35, 0.35); }
.badge-green { color: #b9ecd0; background: rgba(37, 211, 102, 0.12); border-color: rgba(37, 211, 102, 0.35); }
.badge-amber { color: #fde68a; background: rgba(255, 213, 79, 0.12); border-color: rgba(255, 213, 79, 0.35); }
.badge-red { color: #fecdd3; background: rgba(251, 113, 133, 0.12); border-color: rgba(251, 113, 133, 0.35); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; display: inline-block; }
.dot-live { background: var(--green); box-shadow: 0 0 0 4px rgba(37, 211, 102, 0.15); animation: pulse 2s infinite; }

/* ---------------- Navegação ---------------- */

.nav {
  position: sticky; top: 0; z-index: 60;
  height: var(--nav-h);
  background: rgba(7, 7, 7, 0.78);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(18px) saturate(140%);
}
.nav-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--text); text-decoration: none; font-weight: 800; letter-spacing: -0.02em; }
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 38px; height: 38px; border-radius: 12px;
  background: var(--grad);
  display: grid; place-items: center;
  box-shadow: 0 8px 22px rgba(245, 166, 35, 0.4);
  position: relative; overflow: hidden;
}
.brand-mark::after {
  content: ""; position: absolute; inset: 9px; border: 2px solid rgba(8, 8, 8, 0.85); border-radius: 5px;
}
.brand-mark::before {
  content: ""; position: absolute; width: 7px; height: 7px; border-radius: 50%; background: #060606; top: 15px; left: 16px;
}
.brand-name { font-size: 17.5px; line-height: 1; }
.brand-name span { color: var(--cyan-2); }
.brand-sub { display: block; font-size: 9.5px; letter-spacing: 0.2em; color: var(--dim); font-weight: 800; margin-top: 4px; }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a { color: var(--muted); font-size: 14px; font-weight: 550; text-decoration: none; }
.nav-links a:hover { color: var(--text); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-toggle { display: none; }

/* ---------------- Landing ---------------- */

.hero { padding: 74px 0 40px; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -40% -10% auto -10%; height: 780px;
  background:
    radial-gradient(45% 60% at 30% 40%, rgba(245, 166, 35, 0.2), transparent 70%),
    radial-gradient(40% 55% at 70% 30%, rgba(255, 213, 79, 0.12), transparent 70%);
  filter: blur(10px); pointer-events: none;
}
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr);
  gap: 56px; align-items: center; position: relative;
}
.hero h1 { margin: 20px 0 18px; }
.hero .lead { font-size: clamp(16px, 1.7vw, 19px); max-width: 560px; line-height: 1.55; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.hero-note { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 22px; font-size: 12.5px; color: var(--dim); }
.hero-note span { display: inline-flex; align-items: center; gap: 6px; }
.hero-note svg { width: 15px; height: 15px; color: var(--green); }

/* Mock do aplicativo */
.mock {
  position: relative; border-radius: 20px; border: 1px solid rgba(255, 255, 255, 0.09);
  background: linear-gradient(170deg, #161616, #0a0a0a 70%);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(245, 166, 35, 0.12) inset;
  overflow: hidden; transform: perspective(1400px) rotateY(-6deg) rotateX(2deg);
}
.mock-bar { display: flex; align-items: center; gap: 8px; padding: 12px 14px; border-bottom: 1px solid rgba(255, 255, 255, 0.06); background: rgba(255, 255, 255, 0.02); }
.mock-dots { display: flex; gap: 6px; }
.mock-dots i { width: 9px; height: 9px; border-radius: 50%; background: #2e2e2e; }
.mock-dots i:first-child { background: #ff6b6b; }
.mock-dots i:nth-child(2) { background: #ffd54f; }
.mock-dots i:nth-child(3) { background: #25d366; }
.mock-url { flex: 1; height: 22px; border-radius: 6px; background: #111111; border: 1px solid rgba(255, 255, 255, 0.05); display: flex; align-items: center; padding: 0 9px; font-size: 9.5px; color: var(--dim); font-family: var(--mono); }
.mock-body { display: grid; grid-template-columns: 148px 1fr; min-height: 292px; }
.mock-side { border-right: 1px solid rgba(255, 255, 255, 0.05); padding: 12px 10px; display: flex; flex-direction: column; gap: 7px; }
.mock-side .m-row { display: flex; align-items: center; gap: 7px; padding: 6px 7px; border-radius: 7px; background: rgba(255, 255, 255, 0.025); }
.mock-side .m-av { width: 20px; height: 20px; border-radius: 6px; background: var(--grad-soft); border: 1px solid rgba(245, 166, 35, 0.25); flex: none; }
.mock-side .m-line { height: 5px; border-radius: 3px; background: #282828; flex: 1; }
.mock-side .m-line.short { max-width: 55%; }
.mock-stage { padding: 12px; }
.mock-screen {
  height: 176px; border-radius: 11px; position: relative; overflow: hidden;
  background:
    radial-gradient(70% 90% at 20% 10%, rgba(245, 166, 35, 0.55), transparent 60%),
    radial-gradient(60% 80% at 90% 80%, rgba(255, 213, 79, 0.35), transparent 60%),
    linear-gradient(150deg, #141414, #0d0d0d);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex; align-items: center; justify-content: center;
}
.mock-screen .mc { width: 62%; }
.mock-screen .mc .l1 { height: 9px; border-radius: 4px; background: rgba(255, 255, 255, 0.55); width: 46%; margin-bottom: 8px; }
.mock-screen .mc .l2 { height: 6px; border-radius: 3px; background: rgba(255, 255, 255, 0.2); margin-bottom: 5px; }
.mock-screen .mc .l2.short { width: 72%; }
.mock-screen .mc .l3 { height: 26px; border-radius: 8px; background: var(--grad); width: 84px; margin-top: 12px; opacity: 0.9; }
.mock-tag {
  position: absolute; top: 9px; left: 9px; font-size: 9px; padding: 3px 7px; border-radius: 5px;
  background: rgba(7, 7, 7, 0.72); border: 1px solid rgba(255, 255, 255, 0.12); color: #eae5db;
  display: flex; align-items: center; gap: 5px; backdrop-filter: blur(6px);
}
.mock-controls { display: flex; justify-content: center; gap: 8px; margin-top: 11px; }
.mock-controls i { width: 30px; height: 30px; border-radius: 9px; background: #1a1a1a; border: 1px solid rgba(255, 255, 255, 0.07); display: grid; place-items: center; }
.mock-controls i::after { content: ""; width: 11px; height: 11px; border-radius: 3px; background: #5e5e5e; }
.mock-controls i.on { background: var(--grad); border: 0; }
.mock-controls i.on::after { background: #0e0e0e; }
.mock-float {
  position: absolute; display: flex; align-items: center; gap: 8px;
  padding: 9px 13px; border-radius: 11px; font-size: 11.5px; font-weight: 650;
  background: rgba(15, 15, 15, 0.9); border: 1px solid rgba(245, 166, 35, 0.35);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.5); backdrop-filter: blur(8px);
  animation: float 7s ease-in-out infinite;
}
.mock-float svg { width: 15px; height: 15px; color: var(--cyan-2); }
.mock-float.f1 { top: 64px; right: -22px; }
.mock-float.f2 { bottom: 40px; left: -26px; animation-delay: -2.4s; }
.mock-float.f3 { bottom: -18px; right: 34px; animation-delay: -4.2s; }

/* Faixa de recursos */
.trust-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; margin-top: 46px; }
.trust-strip div { background: #0d0d0d; padding: 18px 22px; }
.trust-strip strong { display: block; font-size: 20px; letter-spacing: -0.03em; }
.trust-strip span { font-size: 12px; color: var(--dim); }

/* Seções */
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; margin-bottom: 34px; }
.section-head .lead { max-width: 520px; font-size: 15.5px; }
.feature { padding: 26px; }
.feature .icon {
  width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; margin-bottom: 18px;
  background: var(--grad-soft); border: 1px solid rgba(245, 166, 35, 0.3); color: var(--cyan-2);
}
.feature .icon svg { width: 22px; height: 22px; }
.feature h3 { margin-bottom: 9px; }
.feature p { font-size: 13.8px; }

.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; counter-reset: step; }
.step { position: relative; padding: 28px; border-radius: var(--radius); background: linear-gradient(165deg, rgba(22, 22, 22, 0.8), rgba(13, 13, 13, 0.9)); border: 1px solid var(--line); }
.step::before {
  counter-increment: step; content: "0" counter(step);
  font-size: 44px; font-weight: 800; letter-spacing: -0.05em; line-height: 1;
  background: linear-gradient(180deg, rgba(245, 166, 35, 0.85), rgba(245, 166, 35, 0.08));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.step h3 { margin: 14px 0 8px; }
.step p { font-size: 13.8px; }

/* Preços */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; align-items: stretch; }
.plan { display: flex; flex-direction: column; padding: 28px; position: relative; }
.plan.highlight {
  background: linear-gradient(165deg, rgba(40, 32, 10, 0.95), rgba(14, 14, 14, 0.98));
  border-color: rgba(245, 166, 35, 0.55);
  box-shadow: 0 30px 70px rgba(196, 127, 10, 0.28);
}
.plan .badge { position: absolute; top: -11px; left: 26px; }
.plan h3 { font-size: 20px; }
.plan .price { margin: 16px 0 4px; font-size: 40px; font-weight: 800; letter-spacing: -0.05em; }
.plan .price small { font-size: 13px; color: var(--dim); font-weight: 500; letter-spacing: 0; }
.plan ul { list-style: none; padding: 0; margin: 20px 0 26px; display: flex; flex-direction: column; gap: 10px; font-size: 13.6px; }
.plan li { display: flex; gap: 9px; align-items: flex-start; color: #c2cee3; }
.plan li svg { width: 16px; height: 16px; color: var(--green); flex: none; margin-top: 3px; }
.plan li.off { color: #6f6f6f; }
.plan li.off svg { color: #5a5a5a; }
.plan .btn { margin-top: auto; }
.trial-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  margin-bottom: 26px; padding: 22px 26px; border-radius: 16px;
  background: linear-gradient(100deg, rgba(37, 211, 102, 0.1), rgba(255, 213, 79, 0.06));
  border: 1px solid rgba(37, 211, 102, 0.28);
}
.trial-bar h3 { font-size: 17px; margin-bottom: 4px; }
.trial-bar p { font-size: 13px; }

/* Tabela comparativa */
.compare { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.compare th, .compare td { padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--line); }
.compare th { font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--dim); }
.compare td:first-child { color: var(--muted); }
.compare tr:last-child td { border-bottom: 0; }
.compare .yes { color: var(--green); }

/* FAQ */
.faq { display: flex; flex-direction: column; gap: 10px; }
.faq details { border: 1px solid var(--line); border-radius: 14px; background: rgba(15, 15, 15, 0.7); padding: 0 20px; }
.faq summary { cursor: pointer; padding: 17px 0; font-weight: 650; font-size: 14.5px; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 20px; color: var(--cyan); font-weight: 400; transition: transform 0.2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { padding-bottom: 18px; font-size: 13.8px; max-width: 92%; }

.cta-band {
  position: relative; overflow: hidden; border-radius: var(--radius-lg); padding: 54px 48px;
  background: linear-gradient(120deg, rgba(245, 166, 35, 0.22), rgba(255, 213, 79, 0.1)), #111111;
  border: 1px solid rgba(245, 166, 35, 0.35);
  display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap;
}
.cta-band::before {
  content: ""; position: absolute; width: 460px; height: 460px; border-radius: 50%; right: -120px; top: -180px;
  background: radial-gradient(circle, rgba(245, 166, 35, 0.35), transparent 65%); pointer-events: none;
}
.cta-band h2 { font-size: clamp(26px, 3vw, 38px); }
.cta-band p { margin-top: 8px; max-width: 520px; }

.footer { border-top: 1px solid rgba(255, 255, 255, 0.07); padding: 54px 0 34px; margin-top: 74px; background: rgba(5, 5, 5, 0.6); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 30px; }
.footer h4 { font-size: 12px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--dim); margin-bottom: 14px; }
.footer a { display: block; color: var(--muted); font-size: 13.5px; margin-bottom: 9px; text-decoration: none; }
.footer a:hover { color: var(--text); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 12px; color: var(--dim); }

/* ---------------- Autenticação ---------------- */

.auth-shell { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.auth-art {
  position: relative; overflow: hidden; padding: 54px;
  background:
    radial-gradient(60% 50% at 20% 10%, rgba(245, 166, 35, 0.3), transparent 70%),
    radial-gradient(50% 45% at 80% 80%, rgba(255, 213, 79, 0.16), transparent 70%),
    #0b0b0b;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  display: flex; flex-direction: column; justify-content: space-between;
}
.auth-art::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 46px 46px; mask-image: radial-gradient(70% 60% at 50% 40%, #000, transparent 85%);
  pointer-events: none;
}
.auth-art h2 { font-size: clamp(28px, 3vw, 44px); max-width: 460px; position: relative; }
.auth-art .benefits { position: relative; display: flex; flex-direction: column; gap: 15px; margin-top: 30px; }
.auth-art .benefit { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: #c4d0e6; }
.auth-art .benefit svg { width: 20px; height: 20px; color: var(--green); flex: none; margin-top: 2px; }
.auth-art .quote { position: relative; border-left: 2px solid rgba(245, 166, 35, 0.6); padding-left: 18px; font-size: 14px; color: var(--muted); }
.auth-art .quote strong { display: block; color: var(--text); margin-top: 8px; font-size: 12.5px; }
.auth-main { display: flex; align-items: center; justify-content: center; padding: 42px 24px; }
.auth-box { width: min(430px, 100%); }
.auth-box h1 { font-size: 31px; margin-bottom: 8px; }
.auth-box .lead { font-size: 14.5px; margin-bottom: 28px; }
.auth-box .btn-block { margin-top: 6px; }
.auth-links { display: flex; justify-content: space-between; gap: 14px; margin-top: 18px; font-size: 13.5px; }
.auth-trial {
  display: flex; gap: 10px; align-items: flex-start; margin-bottom: 22px; padding: 13px 15px;
  border-radius: 12px; background: rgba(37, 211, 102, 0.08); border: 1px solid rgba(37, 211, 102, 0.25);
  font-size: 12.8px; color: #b8f5e0;
}
.auth-trial svg { width: 17px; height: 17px; flex: none; margin-top: 2px; }
.form-error { display: none; margin-top: 14px; padding: 11px 13px; border-radius: 10px; background: rgba(251, 113, 133, 0.1); border: 1px solid rgba(251, 113, 133, 0.35); color: #ffc1cb; font-size: 13px; }
.form-error.show { display: block; }
.form-note { margin-top: 14px; font-size: 12px; color: var(--dim); text-align: center; }

/* ---------------- App / dashboard ---------------- */

.app-nav { position: sticky; top: 0; z-index: 50; background: rgba(7, 7, 7, 0.86); border-bottom: 1px solid rgba(255, 255, 255, 0.06); backdrop-filter: blur(18px); }
.app-nav-inner { height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.app-nav .nav-links { gap: 4px; }
.app-nav .nav-links a { padding: 8px 13px; border-radius: 9px; font-size: 13.5px; }
.app-nav .nav-links a.active { background: rgba(245, 166, 35, 0.14); color: #ffedc7; }
.avatar { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; font-size: 12.5px; font-weight: 800; letter-spacing: 0.02em; background: var(--grad-soft); border: 1px solid rgba(245, 166, 35, 0.35); color: #ffedc7; flex: none; }
.avatar-lg { width: 46px; height: 46px; border-radius: 14px; font-size: 15px; }
.avatar-sm { width: 28px; height: 28px; border-radius: 9px; font-size: 10.5px; }
.user-menu { display: flex; align-items: center; gap: 10px; padding: 5px 6px 5px 5px; border-radius: 12px; border: 1px solid transparent; background: none; }
.user-menu:hover { background: rgba(255, 255, 255, 0.04); border-color: var(--line); }
.user-menu .u-name { font-size: 13px; font-weight: 650; line-height: 1.15; text-align: left; }
.user-menu .u-plan { font-size: 10.5px; color: var(--dim); text-transform: uppercase; letter-spacing: 0.08em; }

.app-main { padding: 34px 0 70px; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 28px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { padding: 12px 16px; border: 0; background: none; color: var(--muted); font-size: 13.5px; font-weight: 600; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tab:hover { color: var(--text); }
.tab.active { color: var(--text); border-bottom-color: var(--brand); }
.panel[hidden] { display: none; }

.trial-banner {
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap; justify-content: space-between;
  padding: 20px 24px; border-radius: 16px; margin-bottom: 26px;
  background: linear-gradient(100deg, rgba(245, 166, 35, 0.16), rgba(255, 213, 79, 0.06));
  border: 1px solid rgba(245, 166, 35, 0.32);
}
.trial-banner.expired { background: rgba(251, 113, 133, 0.08); border-color: rgba(251, 113, 133, 0.35); }
.trial-banner .tb-copy { flex: 1; min-width: 240px; }
.trial-banner strong { font-size: 15px; }
.trial-banner p { font-size: 12.8px; margin-top: 3px; }
.countdown { font-family: var(--mono); font-size: 22px; font-weight: 600; letter-spacing: 0.03em; color: #ffedc7; }
.progress { height: 5px; border-radius: 99px; background: rgba(255, 255, 255, 0.08); overflow: hidden; margin-top: 10px; max-width: 420px; }
.progress i { display: block; height: 100%; border-radius: 99px; background: var(--grad); transition: width 0.4s; }

.stat { padding: 20px 22px; }
.stat .label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--dim); font-weight: 700; }
.stat .value { font-size: 26px; font-weight: 750; letter-spacing: -0.04em; margin-top: 6px; display: flex; align-items: baseline; gap: 7px; }
.stat .value small { font-size: 12px; color: var(--dim); font-weight: 500; letter-spacing: 0; }
.stat .sub { font-size: 12px; color: var(--dim); margin-top: 4px; }

.room-card { display: flex; flex-direction: column; gap: 14px; }
.room-card .room-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.room-card .room-title { font-size: 16px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.room-card .room-code { font-family: var(--mono); font-size: 11px; color: var(--dim); background: #0a0a0a; border: 1px solid var(--line); padding: 2px 7px; border-radius: 6px; }
.room-card .room-meta { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--dim); }
.room-card .room-meta span { display: inline-flex; align-items: center; gap: 5px; }
.room-card .room-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.room-card .link-box, .link-box {
  display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 9px;
  background: #0a0a0a; border: 1px solid var(--line); font-family: var(--mono); font-size: 11.5px; color: var(--muted);
  overflow: hidden;
}
.room-card .link-box span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; }
.new-room { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; min-height: 200px; border: 1px dashed var(--line-strong); border-radius: var(--radius); color: var(--muted); background: rgba(255, 255, 255, 0.015); transition: 0.15s; }
.new-room:hover { border-color: rgba(245, 166, 35, 0.6); background: rgba(245, 166, 35, 0.05); color: var(--text); }
.new-room .plus { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--grad-soft); color: var(--cyan-2); font-size: 24px; }

.plan-line { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.plan-line:last-child { border-bottom: 0; }
.plan-line .pl-name { font-weight: 700; font-size: 14.5px; }
.plan-line .pl-desc { font-size: 12.5px; color: var(--dim); }
.plan-line .pl-price { font-weight: 750; font-size: 16px; }
.plan-line .pl-price small { font-size: 11px; color: var(--dim); font-weight: 500; }
.current-plan {
  display: flex; gap: 20px; align-items: center; flex-wrap: wrap; justify-content: space-between;
  padding: 24px; border-radius: 16px; background: var(--grad-soft); border: 1px solid rgba(245, 166, 35, 0.3);
}
.current-plan h3 { font-size: 22px; }
.settings-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.settings-row:last-child { border-bottom: 0; }
.settings-row .sr-copy { max-width: 62%; }
.settings-row strong { font-size: 14px; display: block; }
.settings-row p { font-size: 12.5px; margin-top: 2px; }

.switch { position: relative; width: 44px; height: 25px; flex: none; }
.switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.switch span { position: absolute; inset: 0; border-radius: 99px; background: #262626; border: 1px solid #383838; transition: 0.18s; pointer-events: none; }
.switch span::after { content: ""; position: absolute; width: 17px; height: 17px; border-radius: 50%; background: #8f8f8f; top: 3px; left: 3px; transition: 0.18s; }
.switch input:checked + span { background: rgba(245, 166, 35, 0.85); border-color: transparent; }
.switch input:checked + span::after { transform: translateX(19px); background: #fff; }
.switch input:focus-visible + span { outline: 2px solid var(--cyan); outline-offset: 2px; }

.empty { text-align: center; padding: 46px 20px; color: var(--dim); }
.empty .empty-icon { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; margin: 0 auto 14px; background: rgba(255, 255, 255, 0.03); border: 1px solid var(--line); color: #6b6b6b; }
.empty h3 { color: var(--muted); font-size: 15px; margin-bottom: 5px; }
.empty p { font-size: 13px; }

/* ---------------- Tabelas ---------------- */

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; }
table.data { width: 100%; border-collapse: collapse; font-size: 13.2px; }
table.data th { text-align: left; padding: 11px 14px; font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--dim); background: rgba(255, 255, 255, 0.02); border-bottom: 1px solid var(--line); white-space: nowrap; }
table.data td { padding: 12px 14px; border-bottom: 1px solid rgba(255, 255, 255, 0.045); vertical-align: middle; }
table.data tr:last-child td { border-bottom: 0; }
table.data tr:hover td { background: rgba(255, 255, 255, 0.015); }
table.data .u-cell { display: flex; align-items: center; gap: 9px; }
table.data .u-cell strong { display: block; font-size: 13px; font-weight: 600; }
table.data .u-cell span { font-size: 11.5px; color: var(--dim); }

/* ---------------- Modais ---------------- */

.modal-backdrop {
  position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 22px;
  background: rgba(2, 2, 2, 0.72); backdrop-filter: blur(8px);
  opacity: 0; pointer-events: none; transition: opacity 0.18s;
}
.modal-backdrop.open { opacity: 1; pointer-events: auto; }
.modal {
  width: min(560px, 100%); max-height: calc(100vh - 44px); overflow-y: auto;
  background: linear-gradient(170deg, #131313, #0d0d0d);
  border: 1px solid var(--line-strong); border-radius: 20px; box-shadow: var(--shadow);
  transform: translateY(10px) scale(0.99); transition: transform 0.18s;
}
.modal-backdrop.open .modal { transform: none; }
.modal-wide { width: min(760px, 100%); }
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 22px 24px 0; }
.modal-head h3 { font-size: 19px; }
.modal-head p { font-size: 13px; margin-top: 4px; }
.modal-close { width: 34px; height: 34px; border-radius: 9px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.03); color: var(--muted); display: grid; place-items: center; flex: none; }
.modal-close:hover { background: rgba(255, 255, 255, 0.07); color: var(--text); }
.modal-body { padding: 20px 24px 6px; }
.modal-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 18px 24px 22px; flex-wrap: wrap; }
.modal-foot .btn:first-child { margin-right: auto; }

.code-box {
  font-family: var(--mono); font-size: 12px; line-height: 1.6; color: #e7e2d8;
  background: #0a0a0a; border: 1px dashed var(--line-strong); border-radius: 11px;
  padding: 13px; word-break: break-all; max-height: 130px; overflow: auto; user-select: all;
}

/* ---------------- Terminal (estilo Plus Informática) ---------------- */

.terminal {
  margin-top: 34px;
  border: 1px solid rgba(245, 166, 35, 0.45);
  border-radius: 16px;
  background: #0a0a0a;
  overflow: hidden;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.55), 0 0 40px rgba(245, 166, 35, 0.12);
}
.terminal-bar {
  display: flex; align-items: center; gap: 7px;
  padding: 11px 14px;
  background: linear-gradient(145deg, rgba(20, 20, 20, 0.95), rgba(10, 10, 10, 0.98));
  border-bottom: 1px solid rgba(245, 166, 35, 0.28);
}
.terminal-bar i { width: 11px; height: 11px; border-radius: 50%; flex: none; }
.terminal-bar i:nth-child(1) { background: #ff5f56; }
.terminal-bar i:nth-child(2) { background: #ffbd2e; }
.terminal-bar i:nth-child(3) { background: #27c93f; }
.terminal-bar span { font-family: var(--mono); font-size: 11.5px; color: var(--dim); margin-left: 8px; }
.terminal pre {
  margin: 0; padding: 20px;
  font-family: var(--mono); font-size: 13px; line-height: 1.75;
  color: #e7e2d8; overflow-x: auto;
}
.terminal .t-gold { color: var(--gold-light); }
.terminal .t-green { color: var(--green); }
.terminal .t-dim { color: var(--dim); }

/* ---------------- Toasts ---------------- */

.toasts { position: fixed; top: 18px; right: 18px; z-index: 300; display: flex; flex-direction: column; gap: 9px; max-width: min(380px, calc(100vw - 36px)); }
.toast {
  display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px;
  border-radius: 12px; background: #141414; border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-sm); font-size: 13px; color: #e9e6df;
  animation: toastIn 0.22s ease-out; word-break: break-word;
}
.toast svg { width: 17px; height: 17px; flex: none; margin-top: 1px; color: var(--cyan-2); }
.toast.success { border-color: rgba(37, 211, 102, 0.42); }
.toast.success svg { color: var(--green); }
.toast.error { border-color: rgba(251, 113, 133, 0.45); }
.toast.error svg { color: var(--danger); }
.toast.warn { border-color: rgba(255, 213, 79, 0.45); }
.toast.warn svg { color: var(--amber); }
.toast.leaving { opacity: 0; transform: translateX(12px); transition: 0.2s; }

/* ---------------- Sala / studio ---------------- */

.room-body { height: 100vh; overflow: hidden; background: #050505; }
.room-shell { height: 100vh; display: flex; flex-direction: column; }
.studio-head {
  height: 62px; flex: none; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 0 18px; border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(12, 12, 12, 0.9); backdrop-filter: blur(14px); z-index: 30;
}
.studio-head .sh-left { display: flex; align-items: center; gap: 14px; min-width: 0; }
.studio-head .sh-title { min-width: 0; }
.studio-head h1 { font-size: 15px; font-weight: 700; letter-spacing: -0.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.studio-head .sh-sub { display: flex; align-items: center; gap: 8px; font-size: 11px; color: var(--dim); margin-top: 2px; }
.studio-head .sh-right { display: flex; align-items: center; gap: 8px; }
.live-pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 8px; border-radius: 6px; background: rgba(37, 211, 102, 0.12); border: 1px solid rgba(37, 211, 102, 0.3); color: #b9ecd0; font-size: 10px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.timer { font-family: var(--mono); font-size: 11px; color: var(--muted); }
.head-chip { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 10px; border-radius: 8px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.03); font-size: 11.5px; color: var(--muted); }
.head-chip svg { width: 14px; height: 14px; }
.avatar-stack { display: flex; align-items: center; }
.avatar-stack .avatar { margin-left: -8px; border: 2px solid #0a0a0a; }
.avatar-stack .avatar:first-child { margin-left: 0; }

.studio-main { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) 330px; }
.studio-stage { position: relative; min-width: 0; display: flex; flex-direction: column; background: radial-gradient(70% 70% at 50% 30%, rgba(24, 24, 24, 0.55), transparent 75%), #050505; }
.stage-area { flex: 1; min-height: 0; padding: 18px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.tile-grid { width: 100%; height: 100%; display: grid; gap: 12px; align-content: center; justify-content: center; }
.tile-grid.one { grid-template-columns: minmax(0, 1fr); }
.tile-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tile-grid.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tile-grid.many { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); align-content: start; }
.tile {
  position: relative; border-radius: 14px; overflow: hidden; background: #0d0d0d;
  border: 1px solid rgba(255, 255, 255, 0.07);
  min-height: 180px; aspect-ratio: 16 / 9; max-height: 100%;
  display: flex; align-items: center; justify-content: center;
  transition: box-shadow 0.18s ease, border-color 0.18s ease;
}
.tile.speaking {
  border-color: var(--gold);
  box-shadow: 0 0 0 2px rgba(245, 166, 35, 0.55), 0 0 34px rgba(245, 166, 35, 0.35);
}
.tile.speaking .tile-badge {
  background: rgba(245, 166, 35, 0.92);
  color: #0b0b0b;
}
.tile.speaking .tile-badge::after {
  content: ' · falando';
  font-weight: 800;
}
.tile video { width: 100%; height: 100%; object-fit: contain; background: #000; }
.tile.audio-only { aspect-ratio: auto; min-height: 130px; }
.tile .tile-badge {
  position: absolute; left: 10px; bottom: 10px; display: flex; align-items: center; gap: 6px;
  padding: 5px 9px; border-radius: 7px; background: rgba(8, 8, 8, 0.72); backdrop-filter: blur(8px);
  font-size: 11px; font-weight: 600; color: #efece4; border: 1px solid rgba(255, 255, 255, 0.09);
  max-width: calc(100% - 20px);
}
.tile .tile-badge svg { width: 13px; height: 13px; color: var(--cyan-2); flex: none; }
.tile .tile-actions { position: absolute; top: 8px; right: 8px; display: flex; gap: 6px; opacity: 0; transition: opacity 0.15s; }
.tile:hover .tile-actions, .tile:focus-within .tile-actions { opacity: 1; }
.tile .tile-actions button { width: 30px; height: 30px; border-radius: 8px; border: 1px solid rgba(255, 255, 255, 0.12); background: rgba(8, 8, 8, 0.72); color: #e7e2d8; display: grid; place-items: center; backdrop-filter: blur(8px); }
.tile .tile-actions button:hover { background: rgba(245, 166, 35, 0.35); }
.tile .tile-actions svg { width: 15px; height: 15px; }
.tile.pinned { outline: 1px solid rgba(255, 213, 79, 0.5); }
.tile .tile-paused {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  background: rgba(8, 8, 8, 0.8); color: var(--muted); font-size: 12px; text-align: center; padding: 20px;
}
.tile .tile-paused svg { width: 28px; height: 28px; color: var(--dim); }
.tile.loading::after {
  content: ""; width: 26px; height: 26px; border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.15); border-top-color: var(--cyan);
  animation: spin 0.8s linear infinite;
}
.stage-empty { text-align: center; max-width: 460px; padding: 30px; }
.stage-empty .se-icon { width: 76px; height: 76px; border-radius: 22px; margin: 0 auto 20px; display: grid; place-items: center; background: var(--grad-soft); border: 1px solid rgba(245, 166, 35, 0.35); color: var(--cyan-2); }
.stage-empty .se-icon svg { width: 34px; height: 34px; }
.stage-empty h2 { font-size: 22px; margin-bottom: 8px; }
.stage-empty p { font-size: 13.5px; margin-bottom: 20px; }
.stage-empty .empty-note { display: flex; align-items: center; justify-content: center; gap: 7px; font-size: 12px; color: var(--dim); margin-top: 16px; }

.studio-side { border-left: 1px solid rgba(255, 255, 255, 0.06); background: rgba(11, 11, 11, 0.85); display: flex; flex-direction: column; min-height: 0; }
.side-tabs { display: flex; border-bottom: 1px solid rgba(255, 255, 255, 0.06); flex: none; }
.side-tab { flex: 1; padding: 13px 8px; background: none; border: 0; border-bottom: 2px solid transparent; color: var(--dim); font-size: 12.5px; font-weight: 650; display: flex; align-items: center; justify-content: center; gap: 6px; }
.side-tab svg { width: 15px; height: 15px; }
.side-tab.active { color: var(--text); border-bottom-color: var(--brand); }
.side-tab .count { font-size: 10px; background: rgba(255, 255, 255, 0.08); padding: 1px 6px; border-radius: 99px; }
.side-panel { flex: 1; min-height: 0; overflow-y: auto; padding: 14px; }
.side-panel[hidden] { display: none; }
.people-list { display: flex; flex-direction: column; gap: 4px; }
.person { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 9px; }
.person:hover { background: rgba(255, 255, 255, 0.035); }
.person .p-copy { flex: 1; min-width: 0; }
.person .p-name { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: flex; align-items: center; gap: 6px; }
.person .p-sub { font-size: 10.5px; color: var(--dim); display: flex; align-items: center; gap: 6px; }
.person .p-icons { display: flex; gap: 5px; color: var(--dim); }
.person .p-icons svg { width: 14px; height: 14px; }
.person .p-actions { display: flex; gap: 3px; opacity: 0; }
.person:hover .p-actions, .person:focus-within .p-actions { opacity: 1; }
.person .p-actions button { width: 26px; height: 26px; border-radius: 6px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.03); color: var(--muted); display: grid; place-items: center; }
.person .p-actions button:hover { color: var(--text); background: rgba(255, 255, 255, 0.08); }
.person .p-actions svg { width: 13px; height: 13px; }
.role-tag { font-size: 9px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; padding: 1px 5px; border-radius: 4px; background: rgba(245, 166, 35, 0.18); color: #ffdd9e; }
.role-tag.host { background: rgba(255, 213, 79, 0.16); color: #ffd54f; }
.pending-box { margin-bottom: 14px; padding: 11px; border-radius: 10px; background: rgba(255, 213, 79, 0.07); border: 1px solid rgba(255, 213, 79, 0.28); }
.pending-box .pb-title { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: #fde68a; margin-bottom: 8px; }
.pending-row { display: flex; align-items: center; gap: 8px; padding: 5px 0; font-size: 12.5px; }
.pending-row .p-copy { flex: 1; }

.chat-list { display: flex; flex-direction: column; gap: 12px; padding-bottom: 8px; }
.chat-msg .cm-head { display: flex; align-items: center; gap: 7px; margin-bottom: 3px; }
.chat-msg .cm-name { font-size: 12px; font-weight: 650; }
.chat-msg .cm-time { font-size: 10px; color: var(--dim); }
.chat-msg .cm-text { font-size: 13px; color: #cfcac1; line-height: 1.45; word-break: break-word; white-space: pre-wrap; }
.chat-msg.system .cm-text { font-size: 11.5px; color: var(--dim); font-style: italic; }
.chat-form { display: none; gap: 7px; padding: 10px; border-top: 1px solid rgba(255, 255, 255, 0.06); flex: none; }
.chat-form input { flex: 1; min-height: 38px; font-size: 13px; border-radius: 9px; }
.chat-form button { width: 38px; min-height: 38px; border-radius: 9px; padding: 0; }
.chat-note { padding: 0 12px 9px; font-size: 10.5px; color: var(--dim); }

.controls { flex: none; position: sticky; bottom: 0; z-index: 40; padding: 10px 16px 16px; display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; background: linear-gradient(180deg, rgba(8, 8, 8, 0), rgba(8, 8, 8, 0.92) 34%); backdrop-filter: blur(6px); }
.ctrl-group { display: flex; align-items: center; gap: 7px; padding: 6px; border-radius: 14px; background: rgba(15, 15, 15, 0.9); border: 1px solid rgba(255, 255, 255, 0.07); box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3); }
.ctrl { display: inline-flex; flex-direction: column; align-items: center; gap: 2px; min-width: 54px; height: 46px; padding: 0 8px; border-radius: 10px; border: 1px solid transparent; background: none; color: #d3cec5; font-size: 9.5px; font-weight: 600; justify-content: center; }
.ctrl svg { width: 19px; height: 19px; }
.ctrl:hover { background: rgba(255, 255, 255, 0.06); }
.ctrl.on { background: rgba(245, 166, 35, 0.18); color: #ffedc7; border-color: rgba(245, 166, 35, 0.4); }
.ctrl.danger { background: rgba(251, 113, 133, 0.12); color: #ffb3bd; }
.ctrl.danger:hover { background: rgba(251, 113, 133, 0.2); }
.ctrl.share { background: var(--grad); color: #0e0e0e; border: 0; font-weight: 800; min-width: 92px; }
.ctrl.share:hover { filter: brightness(1.07); }
.ctrl:disabled { opacity: 0.4; cursor: not-allowed; }
.ctrl.active-soft { background: rgba(37, 211, 102, 0.14); color: #b9ecd0; }
.ctrl .badge-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--green); position: absolute; margin: -22px 0 0 18px; }

.filter-panel {
  position: absolute; bottom: 78px; left: 50%; transform: translateX(-50%) translateY(8px);
  width: min(440px, calc(100% - 28px)); padding: 16px; border-radius: 14px;
  background: rgba(15, 15, 15, 0.97); border: 1px solid var(--line-strong); box-shadow: var(--shadow);
  z-index: 25; opacity: 0; pointer-events: none; transition: 0.16s;
}
.filter-panel.open { opacity: 1; pointer-events: auto; transform: translateX(-50%); }
.filter-panel h4 { font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--dim); margin-bottom: 10px; }
.filter-presets { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.preset { padding: 6px 10px; border-radius: 7px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.03); font-size: 11.5px; color: var(--muted); }
.preset.active { background: rgba(245, 166, 35, 0.2); border-color: rgba(245, 166, 35, 0.5); color: #ffedc7; }
.slider-row { display: grid; grid-template-columns: 62px 1fr 38px; gap: 9px; align-items: center; font-size: 11.5px; color: var(--muted); margin-bottom: 8px; }
.slider-row input { width: 100%; accent-color: var(--brand); }
.slider-row .val { font-family: var(--mono); font-size: 10.5px; text-align: right; color: var(--dim); }
.filter-note { font-size: 10.5px; color: var(--dim); margin-top: 8px; line-height: 1.4; }

.reaction-layer { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 20; }
.reaction { position: absolute; bottom: 20px; font-size: 30px; animation: rise 2.6s ease-out forwards; filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.4)); }
.status-strip { position: absolute; top: 12px; left: 16px; display: flex; gap: 8px; align-items: center; z-index: 10; }
.conn-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 8px; border-radius: 6px; background: rgba(8, 8, 8, 0.7); border: 1px solid rgba(255, 255, 255, 0.08); font-size: 10px; color: var(--dim); font-family: var(--mono); backdrop-filter: blur(8px); }
.conn-chip .bars { display: flex; gap: 2px; align-items: flex-end; }
.conn-chip .bars i { width: 3px; background: var(--green); border-radius: 2px; }
.conn-chip .bars i:nth-child(1) { height: 4px; }
.conn-chip .bars i:nth-child(2) { height: 7px; }
.conn-chip .bars i:nth-child(3) { height: 10px; }
.toast-room { position: absolute; top: 14px; left: 50%; transform: translateX(-50%); z-index: 40; display: flex; flex-direction: column; gap: 6px; align-items: center; pointer-events: none; }
.toast-room .rtoast { padding: 7px 13px; border-radius: 8px; background: rgba(13, 13, 13, 0.9); border: 1px solid var(--line-strong); font-size: 12px; color: #e6e3dc; box-shadow: var(--shadow-sm); animation: fadeDown 0.2s; }

/* Pré-entrada / lobby */
.gate-wrap { min-height: 100vh; display: grid; place-items: center; padding: 28px; position: relative; overflow: hidden; }
.gate-wrap::before {
  content: ""; position: absolute; inset: -20%;
  background: radial-gradient(40% 45% at 30% 20%, rgba(245, 166, 35, 0.2), transparent 70%), radial-gradient(35% 40% at 75% 75%, rgba(255, 213, 79, 0.12), transparent 70%);
  pointer-events: none;
}
.gate { width: min(460px, 100%); position: relative; }
.gate-brand { display: flex; justify-content: center; margin-bottom: 26px; }
.gate .card { padding: 28px; }
.gate h1 { font-size: 24px; margin-bottom: 6px; }
.gate .gate-sub { font-size: 13px; margin-bottom: 22px; }
.gate-room {
  display: flex; gap: 13px; align-items: center; padding: 13px; border-radius: 12px;
  background: rgba(245, 166, 35, 0.08); border: 1px solid rgba(245, 166, 35, 0.25); margin-bottom: 20px;
}
.gate-room .avatar { width: 42px; height: 42px; border-radius: 12px; font-size: 15px; }
.gate-room strong { display: block; font-size: 14px; }
.gate-room span { font-size: 11.5px; color: var(--dim); }
.gate-meta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 5px; font-size: 11px; color: var(--dim); }
.gate-meta span { display: inline-flex; align-items: center; gap: 4px; }
.gate-meta svg { width: 12px; height: 12px; }
.gate-state { text-align: center; padding: 10px 0 4px; }
.gate-state .spinner { margin: 0 auto 14px; }
.spinner { width: 26px; height: 26px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.14); border-top-color: var(--cyan); animation: spin 0.8s linear infinite; }

/* Overlay de encerramento */
.room-overlay { position: fixed; inset: 0; z-index: 250; display: grid; place-items: center; padding: 24px; background: rgba(3, 3, 3, 0.85); backdrop-filter: blur(10px); }
.room-overlay .card { width: min(440px, 100%); text-align: center; padding: 34px 28px; }
.room-overlay .ov-icon { width: 62px; height: 62px; border-radius: 18px; margin: 0 auto 18px; display: grid; place-items: center; background: rgba(251, 113, 133, 0.1); border: 1px solid rgba(251, 113, 133, 0.3); color: var(--danger); }
.room-overlay .ov-icon.green { background: rgba(37, 211, 102, 0.1); border-color: rgba(37, 211, 102, 0.3); color: var(--green); }
.room-overlay h2 { font-size: 21px; margin-bottom: 8px; }
.room-overlay p { font-size: 13.5px; margin-bottom: 22px; }

/* Admin */
.admin-layout { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 28px; align-items: start; }
.admin-side { position: sticky; top: 92px; display: flex; flex-direction: column; gap: 4px; padding: 10px; border: 1px solid var(--line); border-radius: 14px; background: rgba(14, 14, 14, 0.8); }
.admin-side button { display: flex; align-items: center; gap: 9px; padding: 10px 12px; border-radius: 9px; border: 0; background: none; color: var(--muted); font-size: 13px; font-weight: 600; text-align: left; }
.admin-side button svg { width: 16px; height: 16px; }
.admin-side button:hover { background: rgba(255, 255, 255, 0.04); color: var(--text); }
.admin-side button.active { background: rgba(245, 166, 35, 0.16); color: #ffedc7; }
.admin-side .as-label { font-size: 9.5px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--dim); padding: 12px 12px 4px; }
.mini-bars { display: flex; align-items: flex-end; gap: 6px; height: 70px; }
.mini-bars div { flex: 1; border-radius: 4px 4px 0 0; background: linear-gradient(180deg, rgba(245, 166, 35, 0.85), rgba(245, 166, 35, 0.2)); min-height: 4px; position: relative; }
.mini-bars div span { position: absolute; bottom: -18px; left: 50%; transform: translateX(-50%); font-size: 9px; color: var(--dim); }
.admin-actions { display: flex; gap: 5px; flex-wrap: wrap; }
.admin-actions .btn { min-height: 28px; padding: 0 8px; font-size: 11px; border-radius: 6px; }

.notice { display: flex; gap: 10px; padding: 13px 15px; border-radius: 11px; background: rgba(255, 213, 79, 0.06); border: 1px solid rgba(255, 213, 79, 0.22); font-size: 12.5px; color: #f3e2b8; }
.notice svg { width: 17px; height: 17px; flex: none; margin-top: 1px; color: var(--cyan-2); }
.notice.warn { background: rgba(255, 213, 79, 0.06); border-color: rgba(255, 213, 79, 0.25); color: #fbe6b0; }
.notice.warn svg { color: var(--amber); }
.notice.red { background: rgba(251, 113, 133, 0.07); border-color: rgba(251, 113, 133, 0.28); color: #ffc9d1; }
.notice.red svg { color: var(--danger); }

/* Utilidades */
.mt-0 { margin-top: 0 !important; }
.mt-1 { margin-top: 8px !important; }
.mt-2 { margin-top: 16px !important; }
.mt-3 { margin-top: 24px !important; }
.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: 8px !important; }
.mb-2 { margin-bottom: 16px !important; }
.mb-3 { margin-bottom: 24px !important; }
.w-full { width: 100%; }
.text-right { text-align: right; }
.nowrap { white-space: nowrap; }
.truncate { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.flex-1 { flex: 1; min-width: 0; }
.fs-12 { font-size: 12px; }
.fs-13 { font-size: 13px; }
.fs-sm { font-size: 12.5px; }
.opacity-60 { opacity: 0.6; }

/* Animações */
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.45; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes rise { 0% { transform: translateY(0) scale(0.7); opacity: 0; } 15% { opacity: 1; } 100% { transform: translateY(-260px) scale(1.15); opacity: 0; } }
@keyframes toastIn { from { opacity: 0; transform: translateY(-6px) scale(0.98); } }
@keyframes fadeDown { from { opacity: 0; transform: translateY(-6px); } }

/* Apps de áudio detectados (janela de compartilhamento) */
.audio-app-list { display: flex; flex-direction: column; gap: 5px; margin-top: 8px; }
.audio-app-row { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: #e9e6df; cursor: pointer; }
.audio-app-row input { accent-color: var(--brand); width: 14px; height: 14px; }
.audio-app-tag { margin-left: auto; font-size: 9.5px; color: var(--dim); text-transform: uppercase; letter-spacing: 0.08em; }

/* Mini janela (modo desktop sempre no topo) */
.mini-bar { display: none; }
body.mini-mode .studio-head,
body.mini-mode .studio-side,
body.mini-mode .controls,
body.mini-mode .status-strip,
body.mini-mode .filter-panel { display: none !important; }
body.mini-mode .studio-main { grid-template-columns: minmax(0, 1fr) !important; }
body.mini-mode .studio-stage { height: 100vh; }
body.mini-mode .stage-area { padding: 4px; }
body.mini-mode .modal-backdrop { display: none !important; }
body.mini-mode .stage-empty { padding: 54px 18px 18px; }
body.mini-mode .stage-empty .se-icon { width: 46px; height: 46px; }
body.mini-mode .stage-empty h2 { font-size: 17px; }
body.mini-mode .stage-empty p, body.mini-mode .stage-empty .empty-note, body.mini-mode .stage-empty button { display: none; }
body.mini-mode .mini-bar {
  display: flex;
  position: fixed;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 400;
  align-items: center;
  gap: 5px;
  padding: 4px 7px;
  border-radius: 9px;
  background: rgba(12, 12, 12, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(10px);
}
.mini-brand { font-size: 9.5px; font-weight: 700; letter-spacing: 0.04em; color: #eae5db; padding: 0 4px; display: flex; align-items: center; gap: 5px; white-space: nowrap; }
.mini-room { max-width: 170px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 10px; color: #c8c3ba; padding: 0 4px; }
.mini-btn { min-height: 24px; padding: 0 9px; border-radius: 6px; border: 1px solid rgba(255, 255, 255, 0.14); background: rgba(255, 255, 255, 0.06); color: #f4f1ea; font: inherit; font-size: 10px; font-weight: 650; cursor: pointer; white-space: nowrap; }
.mini-btn:hover { background: rgba(245, 166, 35, 0.3); }

/* ---------------- Responsivo ---------------- */

@media (max-width: 1080px) {
  .hero-grid { gap: 34px; }
  .mock { transform: none; }
  .mock-float.f1 { right: -8px; }
  .mock-float.f2 { left: -10px; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .admin-layout { grid-template-columns: 190px minmax(0, 1fr); gap: 18px; }
  .studio-main { grid-template-columns: minmax(0, 1fr) 290px; }
}

@media (max-width: 920px) {
  .nav-links { display: none; }
  .nav-toggle {
    display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 10px;
    border: 1px solid var(--line); background: rgba(255, 255, 255, 0.03); color: var(--text); margin-left: auto;
  }
  .nav.menu-open .nav-links {
    display: flex; position: absolute; top: var(--nav-h); left: 0; right: 0; flex-direction: column;
    align-items: stretch; gap: 2px; padding: 12px 18px 18px; background: #0a0a0a;
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
  }
  .nav.menu-open .nav-links a { padding: 10px 8px; }
  .hero { padding-top: 46px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero .lead { max-width: 100%; }
  .mock { max-width: 620px; margin: 8px auto 0; }
  .trust-strip { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 62px 0; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 12px; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3, .plans, .steps { grid-template-columns: 1fr; }
  .plan.highlight { order: -1; }
  .auth-shell { grid-template-columns: 1fr; }
  .auth-art { display: none; }
  .auth-main { min-height: 100vh; }
  .admin-layout { grid-template-columns: 1fr; }
  .admin-side { position: static; flex-direction: row; overflow-x: auto; }
  .admin-side .as-label { display: none; }
  .studio-main { grid-template-columns: 1fr; }
  .studio-side { position: fixed; right: 0; top: 62px; bottom: 0; width: min(340px, 90vw); z-index: 60; transform: translateX(102%); transition: transform 0.22s; box-shadow: -20px 0 60px rgba(0, 0, 0, 0.5); }
  .studio-side.open { transform: none; }
  .controls { padding-bottom: 22px; }
}

@media (max-width: 700px) {
  .wrap, .wrap-narrow { width: calc(100% - 32px); }
  .section { padding: 50px 0; }
  .nav { height: 66px; }
  .nav-actions { gap: 6px; }
  .nav-actions .btn { padding: 0 12px; font-size: 13px; min-height: 38px; }
  .hero-actions .btn { flex: 1; }
  .mock-body { grid-template-columns: 1fr; }
  .mock-side { display: none; }
  .mock-float { display: none; }
  .trust-strip div { padding: 14px 16px; }
  .trust-strip strong { font-size: 17px; }
  .grid-2, .grid-4 { grid-template-columns: 1fr; }
  .cta-band { padding: 34px 24px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .app-main { padding: 22px 0 50px; }
  .app-nav .user-menu .u-copy { display: none; }
  .settings-row .sr-copy { max-width: 68%; }
  .modal { border-radius: 16px; }
  .modal-head, .modal-body, .modal-foot { padding-left: 18px; padding-right: 18px; }
  .studio-head { padding: 0 10px; height: 56px; }
  .studio-head .sh-sub .head-chip { display: none; }
  .studio-head .sh-right .avatar-stack, .studio-head .sh-right .head-chip { display: none; }
  .studio-head .sh-right .btn { padding: 0 10px; font-size: 12px; }
  .stage-area { padding: 10px; }
  .tile-grid.two, .tile-grid.four { grid-template-columns: 1fr; }
  .tile { aspect-ratio: 16 / 10; }
  .tile-grid.many { grid-template-columns: 1fr; }
  .controls { gap: 6px; padding: 8px 8px 18px; }
  .ctrl-group { gap: 2px; padding: 5px; }
  .ctrl { min-width: 46px; height: 42px; font-size: 8.5px; }
  .ctrl svg { width: 17px; height: 17px; }
  .ctrl.share { min-width: 74px; }
  .filter-panel { bottom: 84px; }
  .side-tab { font-size: 11.5px; padding: 11px 4px; }
}

@media (max-width: 460px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .card { padding: 19px; }
  .plan { padding: 22px; }
  .countdown { font-size: 19px; }
  .nav-actions .btn-ghost { display: none; }
  .app-nav .nav-actions .btn-ghost { display: inline-flex; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

/* ------------------------------------------------------------------ */
/* Hub do desktop — organiza em colunas conforme o tamanho da janela  */
/* ------------------------------------------------------------------ */
.hub-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr) minmax(0, 0.95fr);
  gap: 16px;
  align-items: start;
}
@media (max-width: 1120px) {
  .hub-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .hub-grid { grid-template-columns: 1fr; }
}
/* Janelas baixas: compacta para caber sem rolagem */
@media (max-height: 820px) {
  .hub-grid { gap: 12px; }
  .hub-grid .card { padding: 16px; }
  #hub > div:first-child { margin-bottom: 14px !important; }
  #hub h1 { font-size: clamp(22px, 2.4vw, 28px); margin-top: 4px; }
  #hub .eyebrow { font-size: 10px; }
  .app-main { padding-top: 14px; }
}
@media (max-height: 720px) {
  .hub-grid .card { padding: 12px; }
  .hub-grid .card-title { margin-bottom: 8px; }
  #hub .notice { display: none; }
}
