/* ==========================================================================
   4Dentys — Portal (Campus) · Design System
   Tema ESCURO cinematográfico, fiel ao site de referência (orion-med-path):
   fundo quase preto azulado, accent VIOLETA, vidro (glass) e tipografia
   Plus Jakarta Sans + Inter. A HOME é cinematográfica (vídeo de fundo, sem
   sidebar); as demais telas usam a sidebar. Blocos de vídeo permanecem escuros.
   ========================================================================== */

:root {
  --bg: #0a0d15;
  --surface: #121722;
  --surface-2: #1a2130;
  --surface-3: #212a3b;
  --border: #232c3d;
  --border-soft: #1c2433;
  --text: #eaf0f8;
  --text-dim: #93a1b5;
  --text-mute: #6b7891;

  --primary: #8b5cf6;
  --primary-600: #7c3aed;
  --primary-700: #6d28d9;
  --primary-soft: rgba(139, 92, 246, .14);
  --accent: #22d3ee;
  --success: #22c55e;
  --warn: #f4b740;
  --danger: #ef5b5b;

  --radius: 14px;
  --radius-sm: 10px;
  --radius-lg: 20px;
  --shadow: 0 10px 30px rgba(0, 0, 0, .35);
  --shadow-sm: 0 4px 14px rgba(0, 0, 0, .25);
  --sidebar-w: 264px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-display: "Plus Jakarta Sans", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); font-weight: 700; letter-spacing: -0.01em; }
::selection { background: var(--primary-soft); }

/* ---- App shell ---------------------------------------------------------- */
.app { display: flex; min-height: 100vh; }

.sidebar {
  width: var(--sidebar-w);
  flex: 0 0 var(--sidebar-w);
  background: linear-gradient(180deg, #0e1420, #0b0e14);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  padding: 20px 14px;
  position: sticky;
  top: 0;
  height: 100vh;
}
.brand { display: flex; align-items: center; gap: 10px; padding: 6px 10px 18px; }
.brand .gem {
  width: 34px; height: 34px; border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), #4f46e5);
  display: grid; place-items: center; color: #fff; font-weight: 800;
  box-shadow: 0 6px 16px rgba(124, 58, 237, .45);
}
.brand b { font-size: 18px; letter-spacing: .5px; }
.brand b span { color: var(--primary); }

.nav { display: flex; flex-direction: column; gap: 3px; margin-top: 6px; }
.nav-item {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 12px; border-radius: var(--radius-sm);
  color: var(--text-dim); font-weight: 500;
  transition: background .15s, color .15s, transform .05s;
}
.nav-item:hover { background: var(--surface-2); color: var(--text); }
.nav-item.active { background: var(--primary-soft); color: #fff; }
.nav-item.active .ic { color: var(--primary); }
.nav-item .ic { width: 20px; height: 20px; flex: 0 0 20px; color: var(--text-mute); }
.nav-item.active .ic, .nav-item:hover .ic { color: var(--primary); }
.nav-sub { font-size: 11px; color: var(--text-mute); text-transform: uppercase; letter-spacing: 1.2px; padding: 16px 12px 6px; }

.sidebar .spacer { flex: 1; }
.side-card {
  margin-top: 10px; padding: 12px 14px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border);
}
.side-card .lbl { font-size: 11px; color: var(--text-mute); text-transform: uppercase; letter-spacing: 1px; }
.progress { height: 6px; background: var(--surface-3); border-radius: 999px; margin: 8px 0 6px; overflow: hidden; }
.progress > i { display: block; height: 100%; width: 62%; background: linear-gradient(90deg, var(--primary), var(--accent)); }

/* ---- Main --------------------------------------------------------------- */
.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar {
  height: 68px; flex: 0 0 68px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 28px; border-bottom: 1px solid var(--border);
  position: sticky; top: 0; background: rgba(11, 14, 20, .72); backdrop-filter: blur(10px); z-index: 5;
}
.topbar .crumbs { color: var(--text-dim); font-size: 13px; }
.topbar h1 { font-size: 18px; }
.top-right { display: flex; align-items: center; gap: 16px; }
.online { display: inline-flex; align-items: center; gap: 8px; color: var(--text-dim); font-size: 13px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 4px rgba(34, 197, 94, .18); }
.user { display: flex; align-items: center; gap: 10px; }
.avatar { width: 38px; height: 38px; border-radius: 50%; background: linear-gradient(135deg, #3b2a63, #6d28d9); display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 14px; }
.user .meta { line-height: 1.15; }
.user .meta b { font-size: 14px; }
.user .meta span { display: block; font-size: 11px; color: var(--text-dim); }
.lvl { display: inline-flex; align-items: center; gap: 5px; }
.lvl .shield { color: var(--primary); }

.content { padding: 28px; flex: 1; }

/* ---- Buttons ------------------------------------------------------------ */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 11px 18px; border-radius: 999px; font-weight: 600; font-size: 14px; cursor: pointer; border: 1px solid transparent; transition: transform .06s, box-shadow .15s, background .15s; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: linear-gradient(135deg, var(--primary), var(--primary-700)); color: #fff; box-shadow: 0 8px 20px rgba(124, 58, 237, .35); }
.btn-primary:hover { box-shadow: 0 10px 26px rgba(124, 58, 237, .5); }
.btn-ghost { background: var(--surface-2); color: var(--text); border-color: var(--border); }
.btn-ghost:hover { background: var(--surface-3); }

/* ---- Hero (genérico, telas internas) ------------------------------------ */
.hero {
  position: relative; overflow: hidden;
  border-radius: var(--radius-lg); border: 1px solid var(--border);
  background:
    radial-gradient(1200px 400px at 75% -10%, rgba(124, 58, 237, .28), transparent 60%),
    radial-gradient(700px 300px at 10% 120%, rgba(34, 211, 238, .12), transparent 60%),
    linear-gradient(180deg, #141b29, #0e1420);
  padding: 48px 44px; box-shadow: var(--shadow);
}
.hero .eyebrow { color: var(--accent); font-size: 12px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; }
.hero h2 { font-size: 34px; margin: 10px 0 6px; }
.hero p.lead { color: var(--text-dim); max-width: 620px; margin: 0 0 26px; font-size: 16px; }

.ask {
  display: flex; align-items: center; gap: 10px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 999px; padding: 8px 8px 8px 18px; max-width: 720px;
  box-shadow: var(--shadow-sm);
}
.ask .mic { color: var(--text-dim); display: grid; place-items: center; }
.ask input { flex: 1; background: transparent; border: 0; outline: 0; color: var(--text); font-size: 15px; padding: 10px 0; }
.ask input::placeholder { color: var(--text-mute); }
.ask .send { width: 42px; height: 42px; border-radius: 50%; border: 0; cursor: pointer; background: linear-gradient(135deg, var(--primary), var(--primary-700)); color: #fff; display: grid; place-items: center; box-shadow: 0 6px 16px rgba(124, 58, 237, .4); }
.hero .status { margin-top: 16px; color: var(--text-dim); font-size: 13px; display: inline-flex; align-items: center; gap: 8px; }

/* ---- Section + cards ---------------------------------------------------- */
.section { margin-top: 34px; }
.section > h3 { font-size: 18px; }
.section > .sub { color: var(--text-dim); font-size: 14px; margin: 2px 0 18px; }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.card {
  position: relative; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 18px; transition: transform .12s, border-color .12s, box-shadow .12s;
  display: flex; flex-direction: column; min-height: 150px;
}
.card:hover { transform: translateY(-3px); border-color: #33405a; box-shadow: var(--shadow); }
.card .ic-box { width: 42px; height: 42px; border-radius: 12px; background: var(--primary-soft); color: var(--primary); display: grid; place-items: center; margin-bottom: 14px; }
.card h4 { font-size: 16px; }
.card p { color: var(--text-dim); font-size: 13.5px; margin: 6px 0 0; flex: 1; }
.card .go { align-self: flex-end; width: 34px; height: 34px; border-radius: 50%; background: var(--surface-2); border: 1px solid var(--border); color: var(--text-dim); display: grid; place-items: center; margin-top: 12px; transition: background .12s, color .12s; }
.card:hover .go { background: var(--primary); color: #fff; border-color: transparent; }
.card .tag-soon { position: absolute; top: 14px; right: 14px; font-size: 10.5px; font-weight: 700; letter-spacing: .5px; color: var(--warn); background: rgba(244, 183, 64, .12); border: 1px solid rgba(244, 183, 64, .3); padding: 2px 8px; border-radius: 999px; }

/* ---- Em breve (placeholder) --------------------------------------------- */
.embreve { max-width: 640px; margin: 6vh auto; text-align: center; }
.embreve .big-ic { width: 76px; height: 76px; border-radius: 20px; background: var(--primary-soft); color: var(--primary); display: grid; place-items: center; margin: 0 auto 20px; }
.embreve h2 { font-size: 26px; }
.embreve p { color: var(--text-dim); margin: 10px 0 22px; }

/* ---- Autenticação ------------------------------------------------------- */
.auth-wrap { min-height: 100vh; display: grid; place-items: center; padding: 24px;
  background:
    radial-gradient(1000px 500px at 80% -10%, rgba(124, 58, 237, .22), transparent 60%),
    radial-gradient(700px 400px at 0% 110%, rgba(34, 211, 238, .10), transparent 60%),
    var(--bg); }
.auth-card { width: 100%; max-width: 400px; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 32px 28px; box-shadow: var(--shadow); }
.auth-brand { display: flex; align-items: center; gap: 10px; justify-content: center; margin-bottom: 6px; }
.auth-brand .gem { width: 34px; height: 34px; border-radius: 10px; background: linear-gradient(135deg, var(--primary), #4f46e5); display: grid; place-items: center; color: #fff; font-weight: 800; box-shadow: 0 6px 16px rgba(124, 58, 237, .4); }
.auth-card h1 { font-size: 21px; text-align: center; margin-top: 14px; }
.auth-card .sub { text-align: center; color: var(--text-dim); font-size: 13.5px; margin: 4px 0 22px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 12.5px; color: var(--text-dim); margin-bottom: 6px; }
.field input { width: 100%; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-sm);
  color: var(--text); padding: 12px 14px; font-size: 14.5px; outline: none; transition: border-color .12s, box-shadow .12s; }
.field input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.auth-card .btn { width: 100%; justify-content: center; margin-top: 6px; }
.auth-alt { text-align: center; margin-top: 18px; font-size: 13.5px; color: var(--text-dim); }
.auth-alt a { color: var(--primary); font-weight: 600; }
.auth-alert { background: rgba(239, 91, 91, .12); border: 1px solid rgba(239, 91, 91, .35); color: #ffb4b4;
  border-radius: var(--radius-sm); padding: 10px 12px; font-size: 13px; margin-bottom: 16px; }
.logout-btn { background: none; border: 0; color: var(--text-dim); cursor: pointer; font: inherit; padding: 6px 8px; border-radius: 8px; }
.logout-btn:hover { background: var(--surface-2); color: var(--text); }

/* ---- Layout com painel do Professor ------------------------------------ */
.with-prof { display: grid; grid-template-columns: 1fr 340px; gap: 22px; align-items: start; }

/* ---- Filtros / busca ---------------------------------------------------- */
.toolbar { display: flex; align-items: center; gap: 12px; margin: 4px 0 18px; flex-wrap: wrap; }
.search { flex: 1; min-width: 220px; display: flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: 9px 14px; }
.search input { flex: 1; background: transparent; border: 0; outline: 0; color: var(--text); font-size: 14px; }
.search input::placeholder { color: var(--text-mute); }
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { background: var(--surface-2); border: 1px solid var(--border); color: var(--text-dim); border-radius: 999px; padding: 7px 14px; font-size: 13px; cursor: pointer; transition: all .12s; }
.chip:hover { color: var(--text); }
.chip.active { background: var(--primary); border-color: transparent; color: #fff; }

/* ---- Grade de salas ----------------------------------------------------- */
.rooms { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.room { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform .12s, border-color .12s, box-shadow .12s; }
.room:hover { transform: translateY(-3px); border-color: #33405a; box-shadow: var(--shadow); }
.room-top { height: 92px; position: relative; background: linear-gradient(135deg, #1b2536, #131a27); display: flex; align-items: flex-start; justify-content: space-between; padding: 12px 14px; }
.room-top .sala { font-size: 11px; font-weight: 700; letter-spacing: 1px; color: var(--text-mute); }
.room-body { padding: 14px 16px 16px; display: flex; flex-direction: column; flex: 1; }
.pac { display: flex; align-items: center; gap: 10px; }
.pac .av { width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(135deg, #3b2a63, #6d28d9); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 14px; flex: 0 0 40px; }
.pac b { font-size: 15px; } .pac span { font-size: 12px; color: var(--text-dim); display: block; }
.room-body .queixa { color: var(--text-dim); font-size: 13.5px; margin: 12px 0 10px; flex: 1; }
.chips-sm { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.chip-sm { font-size: 11px; color: var(--text-dim); background: var(--surface-2); border: 1px solid var(--border); border-radius: 999px; padding: 2px 9px; }
.room .cta { width: 100%; }

/* ---- Status pills ------------------------------------------------------- */
.pill { font-size: 11px; font-weight: 700; letter-spacing: .3px; padding: 3px 10px; border-radius: 999px; }
.pill.disponivel { color: #4ade80; background: rgba(34,197,94,.13); border: 1px solid rgba(34,197,94,.3); }
.pill.emandamento { color: var(--warn); background: rgba(244,183,64,.12); border: 1px solid rgba(244,183,64,.3); }
.pill.novo { color: #60a5fa; background: rgba(59,130,246,.14); border: 1px solid rgba(59,130,246,.3); }
.pill.urgencia { color: #ff8a8a; background: rgba(239,91,91,.14); border: 1px solid rgba(239,91,91,.35); }
.pill.bloqueado { color: var(--text-mute); background: var(--surface-2); border: 1px solid var(--border); }

/* ---- Painel do Professor D ---------------------------------------------- */
.prof { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; position: sticky; top: 88px; }
.prof-head { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--border); }
.prof-head .av { width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(135deg,#4f46e5,#6d28d9); }
.prof-head b { font-size: 14px; } .prof-head span { font-size: 11px; color: var(--text-dim); display: block; }
.prof-stage { position: relative; aspect-ratio: 4 / 3; overflow: hidden; border-bottom: 1px solid var(--border);
  background: radial-gradient(420px 220px at 50% 25%, #26324a, #10151f); }
.prof-stage .prof-face { position: absolute; inset: 0; display: grid; place-items: center; }
.prof-stage .prof-face .big-av { width: 92px; height: 92px; border-radius: 50%; background: linear-gradient(135deg,#4f46e5,#6d28d9);
  display: grid; place-items: center; color: #fff; font-size: 34px; font-weight: 700; box-shadow: 0 10px 32px rgba(109,40,217,.45); }
.prof-stage .stage-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #000; }
.prof-stage .mic-prof { position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%); width: 46px; height: 46px; }
.prof-stage .mic-prof:active { transform: translateX(-50%) translateY(1px); }
.prof-body { padding: 14px 16px; }
.prof-msg { background: var(--surface-2); border: 1px solid var(--border-soft); border-radius: 12px; padding: 12px 14px; font-size: 13.5px; color: var(--text); }
.prof-msg .lbl { display: inline-flex; align-items: center; gap: 6px; color: var(--primary); font-weight: 700; font-size: 12px; margin-bottom: 6px; }
.sugg-title { font-size: 12px; color: var(--text-mute); text-transform: uppercase; letter-spacing: 1px; margin: 16px 0 8px; }
.sugg { display: flex; flex-direction: column; gap: 6px; }
.sugg a { display: flex; align-items: center; gap: 9px; padding: 10px 12px; border-radius: var(--radius-sm); background: var(--surface-2); border: 1px solid var(--border-soft); font-size: 13px; color: var(--text-dim); transition: all .12s; }
.sugg a:hover { color: #fff; border-color: var(--primary); }
.prof-input { display: flex; gap: 8px; padding: 12px 16px; border-top: 1px solid var(--border); }
.prof-input input { flex: 1; background: var(--surface-2); border: 1px solid var(--border); border-radius: 999px; color: var(--text); padding: 10px 14px; font-size: 13.5px; outline: none; }
.prof-input button { width: 40px; height: 40px; border-radius: 50%; border: 0; background: linear-gradient(135deg,var(--primary),var(--primary-700)); color: #fff; cursor: pointer; }

/* ---- Tela de Consulta --------------------------------------------------- */
.consult { display: grid; grid-template-columns: 1fr 372px; gap: 22px; align-items: start; }
.stage { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border);
  aspect-ratio: 16 / 10; background: radial-gradient(600px 300px at 50% 20%, #26324a, #10151f); }
.stage .badge-pac { position: absolute; top: 14px; left: 14px; background: rgba(10,14,20,.6); backdrop-filter: blur(6px); border: 1px solid var(--border); border-radius: 12px; padding: 8px 12px; font-size: 13px; }
.stage .badge-pac b { display:block; } .stage .badge-pac span { color: var(--text-dim); font-size: 12px; }
.stage .safe { position: absolute; top: 14px; right: 14px; font-size: 11px; color: var(--text-dim); display: inline-flex; align-items: center; gap: 6px; }
.stage .stage-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #000; }
.stage .center-face { position: absolute; inset: 0; display: grid; place-items: center; }
.stage .center-face .big-av { width: 128px; height: 128px; border-radius: 50%; background: linear-gradient(135deg,#3b2a63,#6d28d9); display: grid; place-items: center; color: #fff; font-size: 40px; font-weight: 700; box-shadow: 0 12px 40px rgba(109,40,217,.45); }
.wavebar { position: absolute; left: 16px; right: 16px; bottom: 78px; display: flex; align-items: center; gap: 10px; background: rgba(10,14,20,.55); backdrop-filter: blur(6px); border: 1px solid var(--border); border-radius: 999px; padding: 8px 14px; }
.wavebar .bars { display: flex; align-items: center; gap: 3px; height: 22px; }
.wavebar .bars i { width: 3px; background: var(--primary); border-radius: 2px; opacity: .8; }
.wavebar .txt { font-size: 13px; color: var(--text-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.controls { position: absolute; left: 0; right: 0; bottom: 16px; display: flex; justify-content: center; gap: 14px; }
.ctrl { width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--border); background: rgba(20,27,40,.85); color: var(--text); display: grid; place-items: center; cursor: pointer; transition: transform .06s, background .12s; }
.ctrl:hover { background: var(--surface-3); } .ctrl:active { transform: translateY(1px); }
.ctrl.hang { background: var(--danger); border-color: transparent; color: #fff; }
.ctrl.rec { background: var(--danger); border-color: transparent; color: #fff; box-shadow: 0 0 0 6px rgba(239,91,91,.22); animation: pulseRec 1.1s infinite; }
@keyframes pulseRec { 0%,100% { box-shadow: 0 0 0 4px rgba(239,91,91,.28); } 50% { box-shadow: 0 0 0 10px rgba(239,91,91,.08); } }

/* ---- Indicador de "quem está falando" ---------------------------------- */
.fala-ind { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); z-index: 4;
  display: none; align-items: center; gap: 7px; white-space: nowrap;
  background: rgba(109,40,217,.94); color: #fff; font-size: 12px; font-weight: 600;
  padding: 5px 12px; border-radius: 999px; box-shadow: 0 6px 20px rgba(109,40,217,.45); }
.fala-ind .dot { width: 8px; height: 8px; border-radius: 50%; background: #fff; animation: falaDot 1s infinite; }
@keyframes falaDot { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: .35; transform: scale(.55); } }
.stage.falando .fala-ind, .prof.falando .fala-ind { display: inline-flex; }

.stage.falando, .prof.falando .prof-stage { animation: falaRing 1.6s ease-in-out infinite; }
@keyframes falaRing {
  0%,100% { box-shadow: inset 0 0 0 2px rgba(109,40,217,.55); }
  50%     { box-shadow: inset 0 0 0 3px var(--primary), inset 0 0 34px rgba(109,40,217,.4); }
}
.wavebar .bars i { transform-origin: bottom; }
.stage.falando .wavebar .bars i { animation: eq .9s ease-in-out infinite; }
.stage.falando .wavebar .bars i:nth-child(3n)   { animation-delay: .15s; }
.stage.falando .wavebar .bars i:nth-child(3n+1) { animation-delay: .3s; }
@keyframes eq { 0%,100% { transform: scaleY(.45); } 50% { transform: scaleY(1.5); } }
.prof.falando .prof-head span { color: var(--primary); font-weight: 600; }

.plano { list-style: none; padding: 0; margin: 0; }
.plano .p-step { display: flex; align-items: center; gap: 12px; padding: 10px 4px; color: var(--text-dim); }
.plano .p-step .n { width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--border); display: grid; place-items: center; font-size: 12px; flex: 0 0 26px; }
.plano .p-step.active { color: #fff; } .plano .p-step.active .n { background: var(--primary); border-color: transparent; color: #fff; }
.plano .p-step .est { margin-left: auto; font-size: 11px; color: var(--warn); }

.tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--border); margin-top: 20px; overflow-x: auto; }
.tab { padding: 10px 14px; font-size: 13.5px; color: var(--text-dim); cursor: pointer; border-bottom: 2px solid transparent; white-space: nowrap; }
.tab.active { color: #fff; border-bottom-color: var(--primary); }
.tabpane { display: none; padding: 16px 2px; } .tabpane.active { display: block; }
.tabpane h5 { font-size: 12px; color: var(--text-mute); text-transform: uppercase; letter-spacing: 1px; margin: 12px 0 4px; }
.tabpane p { color: var(--text-dim); font-size: 14px; margin: 0 0 6px; }
.dados { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; margin-top: 16px; }
.dados .row { display: flex; justify-content: space-between; font-size: 13.5px; padding: 5px 0; border-bottom: 1px dashed var(--border-soft); }
.dados .row:last-child { border-bottom: 0; } .dados .row span { color: var(--text-mute); }
.actionbar { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.actionbar .btn { font-size: 13px; padding: 9px 14px; }

/* ---- Modal de avaliação ------------------------------------------------- */
.modal { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 24px;
  background: rgba(6, 9, 14, .66); backdrop-filter: blur(4px); }
.modal[hidden] { display: none; }
.modal-card { width: 100%; max-width: 460px; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 26px; box-shadow: var(--shadow); }
.modal-card h3 { font-size: 19px; }
.notas { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.nota { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px; text-align: center; }
.nota span { display: block; font-size: 26px; font-weight: 800; color: var(--primary); }
.nota small { color: var(--text-dim); font-size: 12px; }

/* ---- Chat da consulta --------------------------------------------------- */
.chatlog { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }
.bubble { max-width: 82%; padding: 10px 13px; border-radius: 14px; font-size: 14px; line-height: 1.5; white-space: pre-wrap; }
.bubble.me { align-self: flex-end; background: linear-gradient(135deg, var(--primary-700), #4f46e5); color: #fff; border-bottom-right-radius: 5px; }
.bubble.them { align-self: flex-start; background: var(--surface-2); border: 1px solid var(--border-soft); color: var(--text); border-bottom-left-radius: 5px; }
.bubble .who { display: block; font-size: 11px; opacity: .75; margin-bottom: 2px; }
.msgbar { display: flex; gap: 8px; margin-top: 12px; }
.msgbar input { flex: 1; background: var(--surface); border: 1px solid var(--border); border-radius: 999px; color: var(--text); padding: 12px 16px; font-size: 14px; outline: none; }
.msgbar input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.msgbar button { width: 46px; height: 46px; border-radius: 50%; border: 0; background: linear-gradient(135deg,var(--primary),var(--primary-700)); color: #fff; cursor: pointer; }
.msgbar button:disabled { opacity: .5; cursor: default; }
.prof-chat { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.typing { font-size: 12.5px; color: var(--text-mute); font-style: italic; }

/* ---- Perguntas sugeridas (clique → envia como texto à paciente) --------- */
.qsug { margin-top: 16px; }
.qsug-title { font-size: 12px; color: var(--text-mute); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 8px; }
.qsug-list { display: flex; flex-wrap: wrap; gap: 8px; }
.qsug-list button { display: inline-flex; align-items: center; gap: 8px; padding: 9px 13px; border-radius: 999px; font-family: inherit; font-size: 13px; color: var(--text-dim); background: var(--surface-2); border: 1px solid var(--border-soft); cursor: pointer; transition: color .12s, border-color .12s, background .12s; }
.qsug-list button:hover { color: #fff; border-color: var(--primary); background: var(--primary-soft); }
.qsug-list button:disabled { opacity: .5; cursor: default; }
.qsug-list button svg { width: 15px; height: 15px; color: var(--primary); flex: 0 0 15px; }

/* ==========================================================================
   HOME cinematográfica (tela inicial — fiel ao site orion-med-path)
   ========================================================================== */
.home { position: relative; min-height: 100vh; overflow: hidden; background: var(--bg); color: #eef2fb; }
.home-bg { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
/* Enquadra o rosto do professor (fica na parte de cima da foto). */
.home-bg img, .home-bg video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; }
.home-bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(to right, rgba(10,13,21,.92), rgba(10,13,21,.5) 52%, rgba(10,13,21,.2)),
    linear-gradient(to bottom, rgba(10,13,21,.2), rgba(10,13,21,.55) 60%, rgba(10,13,21,.92));
}
.home-shell { position: relative; z-index: 10; min-height: 100vh; display: flex; flex-direction: column; }

.home-header { width: 100%; max-width: 92rem; margin: 0 auto; display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 16px; padding: 18px 40px; }
.home-brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.home-brand img { width: 40px; height: 40px; border-radius: 12px; object-fit: cover; box-shadow: 0 0 0 1px rgba(255,255,255,.15); }
.home-brand .bn { min-width: 0; }
.home-brand .bn b { display: block; font-family: var(--font-display); font-size: 20px; font-weight: 700; letter-spacing: -.01em; color: #fff; }
.home-brand .bn span { display: block; font-size: 11px; color: rgba(255,255,255,.55); }
.home-headright { display: flex; align-items: center; gap: 10px; }
.hpill { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 999px; border: 1px solid rgba(255,255,255,.10); background: rgba(0,0,0,.35); backdrop-filter: blur(8px); }
.hpill .gd { width: 8px; height: 8px; border-radius: 50%; background: var(--success); box-shadow: 0 0 10px rgba(34,197,94,.8); }
.hpill .t b { display: block; font-size: 13px; color: #fff; } .hpill .t span { display: block; font-size: 11px; color: rgba(255,255,255,.55); }
.huser { display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 6px; border-radius: 999px; border: 1px solid rgba(255,255,255,.10); background: rgba(0,0,0,.35); backdrop-filter: blur(8px); color: #fff; cursor: pointer; }
.huser .av { width: 32px; height: 32px; border-radius: 50%; background: linear-gradient(135deg,var(--primary),var(--primary-700)); display: grid; place-items: center; font-weight: 700; font-size: 13px; }
.huser .t b { display: block; font-size: 13px; } .huser .t span { display: block; font-size: 11px; color: rgba(255,255,255,.55); }

.home-main { width: 100%; max-width: 92rem; margin: 0 auto; flex: 1; display: flex; flex-direction: column; padding: 6px 40px 28px; }
.greet { max-width: 30rem; margin-top: 6px; }
.greet h1 { font-family: var(--font-display); font-size: 40px; line-height: 1.05; letter-spacing: -.02em; color: #fff; }
.greet h1 .nome { color: #a78bfa; }
.greet .bar { margin-top: 16px; height: 3px; width: 48px; border-radius: 999px; background: var(--primary); }
.greet p { margin-top: 22px; font-size: 15.5px; line-height: 1.75; color: rgba(255,255,255,.75); }
.greet .subline { margin-top: 16px; font-size: 14px; line-height: 1.6; color: rgba(255,255,255,.85); }
.greet .ask-title { margin-top: 16px; font-size: 14px; font-weight: 600; color: #b794ff; }

/* Empurra o compositor e os cards para a parte de baixo — deixa o rosto do professor livre no topo. */
.composer { width: 100%; max-width: 56rem; margin: auto auto 0; }
.composer .box { display: flex; align-items: center; gap: 8px; border: 1px solid rgba(255,255,255,.12); background: rgba(12,16,26,.62); backdrop-filter: blur(10px); border-radius: 18px; padding: 8px 8px 8px 12px; box-shadow: var(--shadow); }
.composer .icobtn { width: 38px; height: 38px; border-radius: 999px; border: 0; background: transparent; color: rgba(255,255,255,.8); cursor: pointer; display: grid; place-items: center; }
.composer .icobtn:hover { background: rgba(255,255,255,.06); }
.composer input { flex: 1; min-width: 0; background: transparent; border: 0; outline: 0; color: #fff; font-size: 15px; padding: 8px 0; font-family: inherit; }
.composer input::placeholder { color: rgba(255,255,255,.45); }
.composer .send { width: 42px; height: 42px; border-radius: 999px; border: 0; cursor: pointer; background: linear-gradient(135deg,var(--primary),var(--primary-700)); color: #fff; display: grid; place-items: center; box-shadow: 0 8px 22px rgba(124,58,237,.45); }

.attach { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; margin: 12px auto 0; max-width: 56rem; }
.attach .chip2 { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 12px; font-size: 12.5px; color: rgba(255,255,255,.82); border: 1px solid rgba(255,255,255,.10); background: rgba(0,0,0,.3); cursor: pointer; transition: all .12s; }
.attach .chip2:hover { color: #fff; border-color: rgba(139,92,246,.6); background: rgba(139,92,246,.14); }
.attach .chip2 svg { width: 15px; height: 15px; opacity: .85; }
.secure { margin: 10px auto 0; display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 11px; color: rgba(255,255,255,.42); }

.navcards { width: 100%; max-width: 80rem; margin: 22px auto 8px; }
.navcards .strip { display: flex; gap: 10px; overflow-x: auto; border: 1px solid rgba(255,255,255,.10); background: rgba(0,0,0,.34); backdrop-filter: blur(8px); border-radius: 18px; padding: 10px; }
.navcard { position: relative; display: flex; align-items: center; gap: 12px; min-width: 13.5rem; flex: 1; padding: 12px 14px; border-radius: 14px; color: #fff; transition: background .12s, transform .08s; }
.navcard:hover { background: rgba(255,255,255,.06); transform: translateY(-1px); }
.navcard .ico { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: rgba(139,92,246,.16); color: #c4b1ff; flex: 0 0 44px; }
.navcard .ico svg { width: 22px; height: 22px; }
.navcard .nc-t { min-width: 0; }
.navcard .nc-t b { display: block; font-size: 13px; font-weight: 600; }
.navcard .nc-t span { display: block; font-size: 11px; color: rgba(255,255,255,.5); line-height: 1.35; }
.navcard .badge { position: absolute; right: 8px; top: 8px; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--primary); color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; }

/* ==========================================================================
   App header (telas internas sem sidebar — estilo do site) + Consultórios
   ========================================================================== */
.appc { position: relative; min-height: 100vh; background: var(--bg); color: #eef2fb; }
.appc::before { content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(1100px 500px at 82% -10%, rgba(139,92,246,.16), transparent 60%),
              radial-gradient(800px 500px at 0% 110%, rgba(34,211,238,.06), transparent 60%); }
.app-top { position: sticky; top: 0; z-index: 20; height: 56px; display: flex; align-items: center; gap: 12px; padding: 0 24px; background: rgba(10,13,21,.72); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.app-top .lg { display: flex; align-items: center; gap: 8px; }
.app-top .lg img { width: 26px; height: 26px; border-radius: 7px; object-fit: cover; box-shadow: 0 0 0 1px rgba(255,255,255,.15); }
.app-top .lg b { font-family: var(--font-display); font-size: 14px; letter-spacing: .5px; color: #fff; }
.app-top .bc { margin-left: 6px; display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-dim); min-width: 0; }
.app-top .bc a { color: var(--text-dim); } .app-top .bc a:hover { color: #fff; }
.app-top .bc .sep { color: var(--text-mute); }
.app-top .who { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.app-top .who .t { text-align: right; line-height: 1.15; }
.app-top .who .t b { font-size: 13px; color: #fff; display: block; } .app-top .who .t span { font-size: 11px; color: var(--text-dim); }
.app-top .who .av { width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(135deg, var(--primary), var(--primary-700)); display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 13px; border: 0; cursor: pointer; }
.app-body { position: relative; z-index: 1; padding: 26px 24px 44px; }

/* --- Consultórios: busca (hero) + chips + lista de pacientes -------------- */
.clist { max-width: 60rem; margin: 2vh auto 0; }
.clist .eyebrow { color: #b794ff; font-size: 12px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; }
.clist h1 { font-family: var(--font-display); font-size: 42px; line-height: 1.04; letter-spacing: -.02em; margin-top: 12px; color: #fff; }
.clist h1 .g { color: #a78bfa; }
.clist .lead { margin-top: 16px; color: var(--text-dim); font-size: 15.5px; max-width: 46rem; }
.clist form.busca { display: flex; gap: 12px; margin-top: 26px; flex-wrap: wrap; }
.clist .inp { flex: 1; min-width: 260px; display: flex; align-items: center; gap: 10px; background: rgba(12,16,26,.7); border: 1px solid rgba(255,255,255,.14); border-radius: 999px; padding: 12px 18px; }
.clist .inp svg { color: var(--text-mute); flex: 0 0 18px; }
.clist .inp input { flex: 1; background: transparent; border: 0; outline: 0; color: #fff; font-size: 15px; }
.clist .inp input::placeholder { color: var(--text-mute); }
.clist .go { border: 0; border-radius: 999px; padding: 12px 26px; font-family: inherit; font-weight: 600; font-size: 14px; color: #fff; background: linear-gradient(135deg, var(--primary), var(--primary-700)); cursor: pointer; box-shadow: 0 8px 22px rgba(124,58,237,.4); }
.clist .chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.clist .chips .chip { background: rgba(0,0,0,.4); border: 1px solid rgba(255,255,255,.14); color: var(--text-dim); border-radius: 999px; padding: 8px 15px; font-size: 13px; cursor: pointer; transition: color .12s, border-color .12s; }
.clist .chips .chip.active, .clist .chips .chip:hover { color: #fff; border-color: var(--primary); }
.clist .rooms2 { margin-top: 26px; display: grid; gap: 12px; }
.proom { display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 16px; background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.08); border-radius: 18px; padding: 15px 18px; transition: border-color .12s, background .12s, transform .08s; }
.proom:hover { border-color: rgba(139,92,246,.5); background: rgba(139,92,246,.07); transform: translateY(-1px); }
.proom .pv { width: 46px; height: 46px; border-radius: 50%; background: linear-gradient(135deg, var(--primary), var(--primary-700)); display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 15px; flex: 0 0 46px; }
.proom .info { min-width: 0; }
.proom .info .top { display: flex; align-items: center; gap: 10px; }
.proom .info b { font-size: 15px; color: #fff; }
.proom .info .q { font-size: 13px; color: var(--text-dim); margin-top: 3px; }
.proom .info .prog { margin-top: 9px; height: 5px; border-radius: 999px; background: rgba(255,255,255,.1); overflow: hidden; max-width: 320px; }
.proom .info .prog > i { display: block; height: 100%; background: linear-gradient(90deg, var(--primary), var(--accent)); }
.proom .cta { border: 0; border-radius: 999px; padding: 10px 18px; font-family: inherit; font-weight: 600; font-size: 13.5px; color: #fff; background: linear-gradient(135deg, var(--primary), var(--primary-700)); cursor: pointer; white-space: nowrap; }
.proom.bloq { opacity: .6; }
.proom.bloq .cta { background: var(--surface-2); color: var(--text-mute); cursor: default; }

/* --- Consulta: palco grande + cards de condução + checklist + etapas ----- */
.cx { max-width: 1180px; margin: 0 auto; }
.cx-bc { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 13px; color: var(--text-dim); margin-bottom: 16px; }
.cx-bc b { color: #fff; } .cx-bc .sep { color: var(--text-mute); }
.cx-bc .howto { margin-left: auto; display: inline-flex; align-items: center; gap: 7px; border: 1px solid rgba(255,255,255,.14); background: rgba(0,0,0,.4); color: var(--text-dim); border-radius: 999px; padding: 7px 13px; font-size: 12.5px; cursor: pointer; }

.cx-stage { position: relative; overflow: hidden; border-radius: 26px; border: 1px solid rgba(255,255,255,.1); background: #0c111c; min-height: 560px; }
.cx-stage .bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
/* Fundo desfocado do próprio paciente (preenche o palco largo sem cortar). */
.cx-stage .idlebg { object-fit: cover; object-position: 50% 28%; filter: blur(26px) brightness(.5); transform: scale(1.12); }
/* Paciente e vídeo de resposta são QUADRADOS: exibir inteiros (cabeça + busto), centrados. */
.cx-stage .idle, .cx-stage #pacVideo { object-fit: contain; object-position: 50% 50%; }
.cx-stage video.bg { display: none; }
.cx-stage.playing video.bg { display: block; }
.cx-stage.playing .idle, .cx-stage.playing .room { opacity: 0; }
.cx-stage .ov { position: absolute; inset: 0; background: linear-gradient(to right, rgba(8,11,18,.85), rgba(8,11,18,.35) 55%, transparent), linear-gradient(to top, rgba(8,11,18,.92), transparent 45%); }
.cx-info { position: absolute; top: 26px; left: 28px; max-width: 22rem; z-index: 2; }
.cx-info .eyebrow { font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: #b794ff; }
.cx-info .name { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; margin-top: 10px; }
.cx-info h1 { font-family: var(--font-display); font-size: 30px; line-height: 1.1; color: #fff; margin: 0; }
.cx-info .age { font-size: 12px; line-height: 1.2; white-space: nowrap; color: #dfe6f2; border: 1px solid rgba(255,255,255,.25); border-radius: 999px; padding: 4px 11px; display: inline-flex; align-items: center; }
.cx-info .lbl { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--text-mute); margin-top: 18px; }
.cx-info .val { margin-top: 5px; font-size: 15px; color: #eef2fb; }
.cx-info .timer { margin-top: 5px; display: inline-flex; align-items: center; gap: 8px; border: 1px solid rgba(255,255,255,.16); border-radius: 999px; padding: 6px 14px; font-family: var(--font-display); font-size: 17px; font-variant-numeric: tabular-nums; color: #fff; }
.cx-top { position: absolute; top: 22px; right: 22px; z-index: 3; display: flex; gap: 10px; }
.cx-top .fin { display: inline-flex; align-items: center; gap: 8px; border: 1px solid rgba(255,255,255,.18); background: rgba(0,0,0,.45); color: #fff; border-radius: 12px; padding: 9px 14px; font-family: inherit; font-size: 13px; cursor: pointer; }
.cx-top .fin:hover { border-color: var(--danger); color: #ffb4b4; }

.cx-prof { position: absolute; top: 84px; right: 22px; z-index: 3; width: 260px; border-radius: 18px; border: 1px solid rgba(139,92,246,.4); background: rgba(12,16,26,.82); backdrop-filter: blur(10px); padding: 14px; }
.cx-prof .hd { display: flex; align-items: center; gap: 10px; }
.cx-prof .hd img { width: 42px; height: 42px; border-radius: 12px; object-fit: cover; }
.cx-prof .hd b { font-size: 13.5px; color: #fff; display: block; } .cx-prof .hd span { font-size: 11px; color: var(--text-dim); }
.cx-prof .tip { margin-top: 12px; font-size: 12.5px; line-height: 1.45; color: #dfe6f2; }
.cx-prof .ask { margin-top: 12px; width: 100%; border: 0; border-radius: 12px; padding: 10px; font-family: inherit; font-weight: 600; font-size: 13px; color: #fff; background: linear-gradient(135deg, var(--primary), var(--primary-700)); cursor: pointer; }
@media (max-width: 900px) { .cx-prof { display: none; } }

/* Chat abaixo do palco (não cobre o avatar). */
.cx-chat { margin-top: 14px; border-radius: 18px; border: 1px solid rgba(255,255,255,.1); background: rgba(12,16,26,.55); }
.cx-chat .log { max-height: 240px; overflow-y: auto; padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; }
.cx-chat .log:empty { display: none; }
.cx-chat form { display: flex; align-items: flex-end; gap: 8px; border-top: 1px solid rgba(255,255,255,.1); padding: 10px; }
.cx-chat textarea { flex: 1; resize: none; background: transparent; border: 0; outline: 0; color: #fff; font-family: inherit; font-size: 14.5px; padding: 8px 6px; max-height: 90px; }
.cx-chat textarea::placeholder { color: var(--text-mute); }
.cx-chat .ic { width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255,255,255,.14); background: rgba(20,27,40,.7); color: #fff; cursor: pointer; display: grid; place-items: center; flex: 0 0 40px; }
.cx-chat .ic.rec { background: var(--danger); border-color: transparent; box-shadow: 0 0 0 6px rgba(239,91,91,.22); animation: pulseRec 1.1s infinite; }
.cx-chat .send { width: 40px; height: 40px; border-radius: 50%; border: 0; background: linear-gradient(135deg, var(--primary), var(--primary-700)); color: #fff; cursor: pointer; flex: 0 0 40px; }
.cx-stage.falando { animation: falaRing 1.6s ease-in-out infinite; }

.cx-sec { margin-top: 26px; }
.cx-sec > h2 { font-size: 16px; color: #fff; margin-bottom: 14px; }
.cx-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.cx-card { position: relative; text-align: left; display: flex; flex-direction: column; gap: 8px; border: 1px solid rgba(255,255,255,.1); background: rgba(255,255,255,.03); border-radius: 18px; padding: 16px; cursor: pointer; font-family: inherit; transition: border-color .12s, background .12s, transform .08s; }
.cx-card:hover { border-color: rgba(139,92,246,.55); background: rgba(139,92,246,.08); transform: translateY(-2px); }
.cx-card .ci { width: 40px; height: 40px; border-radius: 12px; background: rgba(139,92,246,.16); color: #c4b1ff; display: grid; place-items: center; }
.cx-card .ci svg { width: 20px; height: 20px; }
.cx-card b { font-size: 14px; color: #fff; }
.cx-card span { font-size: 12px; color: var(--text-dim); line-height: 1.4; }

.cx-panel { margin-top: 22px; border: 1px solid rgba(255,255,255,.1); background: rgba(255,255,255,.02); border-radius: 20px; padding: 20px; }
.cx-panel .ph { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.cx-panel .ph h3 { font-size: 15px; color: #fff; } .cx-panel .ph p { font-size: 11.5px; color: var(--text-mute); margin-top: 3px; }
.cx-progress { margin-top: 14px; height: 8px; border-radius: 999px; background: rgba(255,255,255,.08); overflow: hidden; }
.cx-progress > i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--primary), var(--accent)); transition: width .35s; }
.cx-ask { margin-top: 16px; display: flex; flex-direction: column; gap: 8px; }
.cx-ask .item { display: flex; align-items: center; gap: 12px; border: 1px solid rgba(255,255,255,.08); border-radius: 14px; padding: 11px 14px; }
.cx-ask .item.done { opacity: .55; } .cx-ask .item.done .q { text-decoration: line-through; }
.cx-ask .chk { width: 20px; height: 20px; border-radius: 50%; border: 1px solid rgba(255,255,255,.2); display: grid; place-items: center; flex: 0 0 20px; color: transparent; }
.cx-ask .item.done .chk { background: var(--success); border-color: transparent; color: #fff; }
.cx-ask .q { flex: 1; font-size: 14px; color: #eef2fb; }
.cx-ask .pergbtn { border: 0; border-radius: 999px; padding: 7px 15px; font-family: inherit; font-size: 12.5px; font-weight: 600; color: #fff; background: linear-gradient(135deg, var(--primary), var(--primary-700)); cursor: pointer; flex: 0 0 auto; }
.cx-ask .pergbtn:disabled { opacity: .5; cursor: default; }

.cx-steps { margin-top: 22px; border: 1px solid rgba(255,255,255,.1); background: rgba(255,255,255,.02); border-radius: 20px; padding: 20px; }
.cx-steps h3 { font-size: 15px; color: #fff; margin-bottom: 16px; }
.cx-steps .track { display: flex; gap: 4px; overflow-x: auto; }
.cx-steps .st { flex: 1; min-width: 92px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; }
.cx-steps .st .n { width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255,255,255,.15); display: grid; place-items: center; font-size: 14px; color: var(--text-dim); background: rgba(255,255,255,.02); }
.cx-steps .st.active .n { background: linear-gradient(135deg, var(--primary), var(--primary-700)); border-color: transparent; color: #fff; box-shadow: 0 8px 20px rgba(124,58,237,.4); }
.cx-steps .st.done .n { border-color: var(--primary); color: #c4b1ff; }
.cx-steps .st .lb { font-size: 11.5px; color: var(--text-dim); } .cx-steps .st.active .lb { color: #fff; }

/* ---- Responsivo --------------------------------------------------------- */
@media (max-width: 700px) { .cx-info h1 { font-size: 26px; } .cx-stage { min-height: 460px; } .clist h1 { font-size: 32px; } }
@media (max-width: 1100px) { .with-prof, .consult { grid-template-columns: 1fr; } .prof { position: static; } }

@media (max-width: 900px) {
  .app { flex-direction: column; }
  .sidebar { width: 100%; height: auto; flex: none; position: static; flex-direction: row; align-items: center; gap: 8px; overflow-x: auto; padding: 12px; }
  .sidebar .brand { padding: 0 10px 0 4px; }
  .sidebar .nav { flex-direction: row; margin: 0; }
  .sidebar .nav-sub, .sidebar .spacer, .sidebar .side-card { display: none; }
  .nav-item span.lbl-t { display: none; }
  .hero { padding: 30px 22px; } .hero h2 { font-size: 26px; }
  .content { padding: 18px; }
}
@media (max-width: 760px) {
  .home-header, .home-main { padding-left: 18px; padding-right: 18px; }
  .greet h1 { font-size: 30px; }
  .hpill .t, .huser .t { display: none; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; } }

/* ==========================================================================
   Páginas internas do Campus (planos, conta, estudos, progresso, laboratório)
   ========================================================================== */
.pg { max-width: 1100px; margin: 0 auto; }
.pg .lead { color: var(--text-dim); margin: 0 0 18px; }
.dim { color: var(--text-dim); }
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.panel h3 { margin: 0 0 6px; font-size: 17px; }
.notice { background: var(--primary-soft); border: 1px solid rgba(139,92,246,.3); border-radius: var(--radius-sm); padding: 12px 14px; margin-bottom: 14px; font-size: 14px; }
.notice.warn { background: rgba(244,183,64,.1); border-color: rgba(244,183,64,.35); }
.notice.ok { background: rgba(34,197,94,.1); border-color: rgba(34,197,94,.3); }
.plan-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.plan .price { font-family: var(--font-display); font-size: 30px; font-weight: 800; margin: 6px 0; }
.plan .price small { font-size: 13px; font-weight: 500; color: var(--text-dim); }
.ticks { list-style: none; padding: 0; margin: 12px 0 18px; }
.ticks li { padding: 4px 0 4px 22px; position: relative; font-size: 14px; }
.ticks li::before { content: "✓"; position: absolute; left: 0; color: var(--success); font-weight: 700; }
.row-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.codebox { font-family: ui-monospace, Consolas, monospace; font-size: 22px; letter-spacing: 1px; background: var(--surface-2); border: 1px dashed var(--primary); border-radius: var(--radius-sm); padding: 14px; text-align: center; margin: 10px 0; user-select: all; }
.pill.urgencia { color: #fca5a5; background: rgba(239,91,91,.12); border: 1px solid rgba(239,91,91,.3); }
.pill.neutro { color: var(--text-dim); background: var(--surface-2); border: 1px solid var(--border); }
.grid2 { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.bar-prog { height: 8px; background: var(--surface-3); border-radius: 999px; overflow: hidden; margin: 8px 0; }
.bar-prog > i { display: block; height: 100%; background: linear-gradient(90deg, var(--primary), var(--accent)); border-radius: 999px; }
.tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.tbl th, .tbl td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--border-soft); vertical-align: top; }
.tbl th { color: var(--text-dim); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .4px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 16px; }
.stat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; }
.stat b { display: block; font-family: var(--font-display); font-size: 26px; }
.stat span { color: var(--text-dim); font-size: 12.5px; }
.badge-conq { display: inline-flex; align-items: center; gap: 8px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 999px; padding: 6px 12px; margin: 0 8px 8px 0; font-size: 13px; }
.badge-conq.off { opacity: .4; filter: grayscale(1); }
.leitura { white-space: pre-wrap; line-height: 1.65; font-size: 15px; }
.step-list { list-style: none; padding: 0; margin: 0; }
.step-list li { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; border-bottom: 1px solid var(--border-soft); }
.step-list .n { width: 24px; height: 24px; border-radius: 50%; background: var(--surface-3); display: grid; place-items: center; font-size: 12px; font-weight: 700; flex: none; }
.step-list li.done .n { background: var(--success); color: #06210f; }
.step-list li.now .n { background: var(--primary); color: #fff; }
.step-list li.now { color: var(--text); } .step-list li { color: var(--text-dim); }
.form-inline { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.form-inline input, .form-inline textarea, .pg textarea { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--text); padding: 10px 12px; font: inherit; }

/* ---- Menu aberto (topo) — mesmo padrão dos Consultórios em todas as telas do Campus ---- */
.top-nav { display: flex; align-items: center; gap: 2px; margin-left: 10px; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.top-nav::-webkit-scrollbar { display: none; }
.top-nav a { white-space: nowrap; padding: 8px 11px; border-radius: 8px; font-size: 13px; font-weight: 500; color: var(--text-dim); }
.top-nav a:hover { color: #fff; background: rgba(255,255,255,.06); }
.top-nav a.on { color: #fff; background: rgba(139,92,246,.22); }
.app-title { font-family: var(--font-display); font-size: 24px; margin: 0 0 4px; color: #fff; }
.app-top .who .t { color: inherit; }
@media (max-width: 900px) { .app-top { padding: 0 12px; gap: 8px; } .app-top .who .t { display: none; } .app-top .lg b { display: none; } }

/* ---- Minha trilha em destaque na tela inicial ---- */
.trilha-hero { display: flex; align-items: center; gap: 16px; width: 100%; max-width: 46rem; margin: 0 auto 18px; padding: 16px 20px; border-radius: 18px; color: #fff;
  background: linear-gradient(135deg, rgba(124,58,237,.55), rgba(79,70,229,.45)); border: 1px solid rgba(167,139,250,.55); box-shadow: 0 10px 30px rgba(124,58,237,.28); transition: transform .08s, box-shadow .12s; }
.trilha-hero:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(124,58,237,.4); }
.trilha-hero .th-ico { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: rgba(255,255,255,.14); flex: 0 0 52px; }
.trilha-hero .th-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.trilha-hero small { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: #ddd0ff; }
.trilha-hero b { font-family: var(--font-display); font-size: 21px; }
.trilha-hero .th-txt > span { font-size: 13px; color: #e6defc; }
.trilha-hero .th-go { font-weight: 600; font-size: 13.5px; white-space: nowrap; background: rgba(255,255,255,.16); padding: 9px 14px; border-radius: 999px; }
@media (max-width: 640px) { .trilha-hero { flex-wrap: wrap; } .trilha-hero .th-go { width: 100%; text-align: center; } }
.plan-box { margin-top: 12px; padding: 14px; border-radius: 14px; border: 1px solid var(--border); background: var(--surface-2); }
.plan-box .nm { font-size: 18px; font-weight: 700; }
.btn-danger-ghost { background: transparent; border: 1px solid rgba(239,91,91,.5); color: #ffb4b4; border-radius: var(--radius-sm); padding: 9px 14px; cursor: pointer; font: inherit; }
.btn-danger-ghost:hover { background: rgba(239,91,91,.12); }
