/* Unir Live — identidade UniRadiologia: #1A1D21 #4A4F55 #9AA0A6 #E6EBEB #FFC107 · Space Grotesk + Inter */
:root {
  --ink: #1A1D21; --graphite: #4A4F55; --silver: #9AA0A6; --mist: #E6EBEB; --amber: #FFC107;
  --bg: #1A1D21; --side: #15171A; --card: #22262B; --card2: #2A2F35; --line: #3a4047;
  --text: #E6EBEB; --muted: #9AA0A6; --accent: #FFC107; --on-accent: #1A1D21; --danger: #ff6b5e; --ok: #5fd08a;
  --font-h: 'Space Grotesk', 'Inter', system-ui, sans-serif; --font-b: 'Inter', system-ui, sans-serif;
  --radius: 12px;
}
:root[data-theme='light'] {
  --bg: #E6EBEB; --side: #1A1D21; --card: #ffffff; --card2: #f3f6f6; --line: #cfd6d6;
  --text: #1A1D21; --muted: #4A4F55;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--text); font-family: var(--font-b); font-size: 15px; line-height: 1.5; }
h1, h2, h3, h4 { font-family: var(--font-h); margin: 0; letter-spacing: -.01em; }
a { color: inherit; }
img { max-width: 100%; }

/* ---------- layout do painel ---------- */
.shell { display: flex; min-height: 100vh; }
.side { width: 250px; background: var(--side); color: #E6EBEB; padding: 22px 16px; display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; flex-shrink: 0; }
.side .logo { display: block; padding: 0 6px 6px; }
.side .logo img { height: 40px; display: block; }
.side .tag { color: #9AA0A6; font-size: 12px; padding: 0 6px 22px; }
.side nav { display: flex; flex-direction: column; gap: 4px; flex: 1; overflow: auto; }
.side nav a { text-decoration: none; padding: 11px 14px; border-radius: 10px; color: #E6EBEB; font-size: 14px; }
.side nav a:hover { background: #262a30; }
.side nav a.on { background: var(--amber); color: #1A1D21; font-weight: 600; }
.side .me { border-top: 1px solid #2c3036; padding-top: 14px; font-size: 13px; }
.side .me b { display: block; font-family: var(--font-h); }
.side .me small { color: #9AA0A6; }
.side .me button { margin-top: 10px; background: transparent; border: 1px solid #3a4047; color: #E6EBEB; border-radius: 8px; padding: 6px 12px; cursor: pointer; font: inherit; }
.main { flex: 1; min-width: 0; padding: 22px 28px 60px; }
.top { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.top h1 { font-size: 26px; flex: 1; }
.burger { display: none; background: var(--card); color: var(--text); border: 1px solid var(--line); border-radius: 10px; width: 42px; height: 40px; font-size: 18px; cursor: pointer; }
.pill { background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 5px 14px; font-size: 12px; color: var(--muted); }
.themebtn { background: var(--card); color: var(--text); border: 1px solid var(--line); border-radius: 10px; padding: 9px 16px; cursor: pointer; font: inherit; font-weight: 600; font-size: 13px; }
.sub { color: var(--muted); margin: 0 0 18px; }
.row-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }

/* ---------- componentes ---------- */
.btn { display: inline-block; background: var(--amber); color: #1A1D21; border: 0; border-radius: 10px; padding: 10px 18px; font: inherit; font-weight: 700; cursor: pointer; text-decoration: none; font-size: 14px; }
.btn:hover { filter: brightness(1.06); }
.btn.ghost { background: transparent; color: var(--text); border: 1px solid var(--line); font-weight: 600; }
.btn.danger { background: transparent; color: var(--danger); border: 1px solid var(--danger); font-weight: 600; }
.btn.sm { padding: 6px 12px; font-size: 12.5px; border-radius: 8px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin-bottom: 16px; }
.card h2 { font-size: 17px; margin-bottom: 14px; }
.empty { text-align: center; color: var(--muted); padding: 34px 20px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; }
.grid3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px 18px; }
.full { grid-column: 1 / -1; }
label.f { display: block; font-size: 12.5px; font-weight: 600; margin-bottom: 5px; color: var(--text); }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=datetime-local], input[type=url], input[type=tel], select, textarea {
  width: 100%; background: var(--card2); color: var(--text); border: 1px solid var(--line); border-radius: 9px; padding: 10px 12px; font: inherit; }
:root[data-theme='light'] input, :root[data-theme='light'] select, :root[data-theme='light'] textarea { background: #fff; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--amber); outline-offset: 0; border-color: var(--amber); }
input[type=color] { width: 100%; height: 42px; border: 1px solid var(--line); border-radius: 9px; background: var(--card2); padding: 3px; cursor: pointer; }
textarea { min-height: 96px; resize: vertical; }
.hint { color: var(--muted); font-size: 12.5px; margin-top: 5px; }
.checks { display: flex; gap: 18px; flex-wrap: wrap; }
.checks label { display: flex; align-items: center; gap: 7px; font-size: 14px; cursor: pointer; }
.alert { border-radius: 10px; padding: 12px 16px; margin-bottom: 16px; font-size: 14px; border: 1px solid var(--amber); background: rgba(255,193,7,.12); }
.alert.err { border-color: var(--danger); background: rgba(255,107,94,.12); }
.alert.ok { border-color: var(--ok); background: rgba(95,208,138,.12); }
table.t { width: 100%; border-collapse: collapse; font-size: 13.5px; }
table.t th { text-align: left; color: var(--muted); font-weight: 600; padding: 10px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.t td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.scroll { overflow-x: auto; }
.badge { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--card2); border: 1px solid var(--line); }
.badge.live { background: var(--amber); color: #1A1D21; border-color: var(--amber); }
.badge.ok { color: var(--ok); border-color: var(--ok); }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.item h3 { font-size: 16px; margin-bottom: 4px; }
.item .meta { color: var(--muted); font-size: 13px; margin: 2px 0; word-break: break-all; }
.item .acts { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.hide { display: none !important; }
.linkbox { display: flex; gap: 8px; align-items: center; }
.eye { position: relative; }
.eye input { padding-right: 44px; }
.eye button { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); background: transparent; border: 0; color: var(--muted); cursor: pointer; font-size: 17px; padding: 6px; }

/* editor de e-mail */
.tb { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px; background: var(--card2); border: 1px solid var(--line); border-bottom: 0; border-radius: 9px 9px 0 0; }
.tb button, .tb select { background: var(--card); color: var(--text); border: 1px solid var(--line); border-radius: 7px; padding: 5px 10px; cursor: pointer; font: inherit; font-size: 13px; width: auto; }
.ed { min-height: 220px; border: 1px solid var(--line); border-radius: 0 0 9px 9px; padding: 14px; background: #fff; color: #1A1D21; font-family: Arial, sans-serif; }
.ed:focus { outline: 2px solid var(--amber); }
.lockblock { margin: 12px 0 0; padding: 14px; border: 1px dashed var(--silver); border-radius: 10px; text-align: center; background: var(--card2); }
.lockblock .fakebtn { display: inline-block; background: var(--amber); color: #1A1D21; font-weight: 700; padding: 10px 22px; border-radius: 9px; margin: 6px 0; }

/* tutoriais */
.tut { display: flex; flex-direction: column; }
.tut .thumb { aspect-ratio: 16/9; border-radius: 10px; background: #0e1012; border: 1px solid var(--line); display: grid; place-items: center; margin: 10px 0 12px; color: var(--amber); font-size: 38px; }
.tut ul { margin: 8px 0 12px; padding-left: 18px; color: var(--muted); font-size: 13.5px; }
.tut p { color: var(--muted); font-size: 13.5px; margin: 6px 0 12px; }
.tut .btn { margin-top: auto; align-self: flex-start; }
.modal { position: fixed; inset: 0; background: rgba(0,0,0,.72); display: none; align-items: center; justify-content: center; z-index: 50; padding: 18px; }
.modal.open { display: flex; }
.modal .box { background: var(--card); border: 1px solid var(--line); border-radius: 14px; width: min(920px, 100%); padding: 16px; }
.modal .bar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; gap: 12px; }
.modal .box { max-height: calc(100vh - 36px); overflow-y: auto; }
.modal ol.steps { padding-left: 20px; display: grid; gap: 10px; margin: 14px 0 0; }
.modal ul { color: var(--muted); padding-left: 18px; }
.modal iframe { width: 100%; aspect-ratio: 16/9; border: 0; border-radius: 10px; background: #000; }

/* login */
.auth { min-height: 100vh; display: grid; place-items: center; padding: 20px; background: var(--ink); }
.auth .box { background: #22262B; border: 1px solid #3a4047; border-radius: 16px; padding: 30px; width: min(400px, 100%); color: #E6EBEB; }
.auth img { height: 46px; display: block; margin: 0 auto 8px; }
.auth h1 { font-size: 22px; text-align: center; margin-bottom: 4px; }
.auth p { text-align: center; color: #9AA0A6; margin: 0 0 20px; font-size: 14px; }
.auth .btn { width: 100%; margin-top: 8px; padding: 12px; }
.auth input { background: #2A2F35; color: #E6EBEB; border-color: #3a4047; }

/* ---------- páginas públicas ---------- */
.pub { min-height: 100vh; display: grid; place-items: center; padding: 28px 16px; background: var(--bg); color: var(--text); background-size: cover; background-position: center; }
.pub .reg { width: min(520px, 100%); background: rgba(26,29,33,.88); color: #E6EBEB; border-radius: 18px; padding: 28px; border: 1px solid #3a4047; backdrop-filter: blur(4px); }
.pub .reg .plogo { display: block; margin: 0 auto 16px; max-height: 64px; }
.pub .reg h1 { font-size: 28px; text-align: center; }
.pub .reg .st { text-align: center; color: #c7cdd1; margin: 8px 0 16px; }
.pub .reg ul.bul { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 8px; }
.pub .reg ul.bul li { padding-left: 26px; position: relative; }
.pub .reg ul.bul li::before { content: '✓'; position: absolute; left: 0; color: var(--amber); font-weight: 700; }
.pub .reg input[type=text], .pub .reg input[type=email], .pub .reg input[type=tel] { background: #2A2F35; color: #E6EBEB; border-color: #4A4F55; margin-bottom: 10px; }
.pub .reg .cons { display: flex; gap: 8px; font-size: 13px; color: #c7cdd1; margin: 4px 0 12px; align-items: flex-start; }
.pub .reg button.go { width: 100%; border: 0; border-radius: 10px; padding: 14px; font: inherit; font-weight: 700; font-size: 16px; cursor: pointer; color: #1A1D21; }
.pub .msg { text-align: center; max-width: 420px; }

/* sala do webinar */
.room { min-height: 100vh; display: flex; flex-direction: column; }
.room header { padding: 14px 22px; display: flex; align-items: center; gap: 16px; border-bottom: 1px solid var(--line); background: var(--card); }
.room header img { height: 36px; }
.room header .aud { margin-left: auto; font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.room header .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--danger); animation: pulse 1.4s infinite; }
@keyframes pulse { 50% { opacity: .3; } }
.room .stage { flex: 1; display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 18px; padding: 18px 22px; align-items: start; }
.room .head h1 { font-size: 26px; }
.room .head p { color: var(--muted); margin: 4px 0 14px; }
.vwrap { position: relative; aspect-ratio: 16/9; background: #000; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); }
.vwrap iframe, .vwrap video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.vwrap .cover { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 20px; z-index: 2; }
.vwrap .cover .big { font-family: var(--font-h); font-size: clamp(34px, 7vw, 68px); font-weight: 700; letter-spacing: .02em; margin-top: 10px; }
.vwrap .cover .lbl { font-size: clamp(14px, 2vw, 20px); opacity: .9; }
.vwrap .tap { position: absolute; inset: 0; z-index: 3; background: rgba(0,0,0,.55); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 20px; cursor: pointer; }
.offer { margin-top: 18px; background: var(--card); border: 2px solid var(--amber); border-radius: 14px; padding: 22px; text-align: center; }
.offer h2 { font-size: 24px; }
.offer p { color: var(--muted); margin: 6px 0 12px; }
.offer ul { list-style: none; padding: 0; margin: 0 auto 16px; max-width: 460px; text-align: left; display: grid; gap: 7px; }
.offer ul li::before { content: '✓ '; color: var(--amber); font-weight: 700; }
.offer .go { display: inline-block; padding: 14px 30px; border-radius: 10px; font-weight: 700; font-size: 17px; text-decoration: none; color: #1A1D21; }
.offer .ocount { margin-top: 14px; padding: 10px; border-radius: 10px; font-weight: 700; }
.chat { background: var(--card); border: 1px solid var(--line); border-radius: 14px; display: flex; flex-direction: column; height: min(640px, calc(100vh - 120px)); }
.chat h3 { padding: 14px 16px; border-bottom: 1px solid var(--line); font-size: 15px; }
.chat .msgs { flex: 1; overflow-y: auto; padding: 12px 14px; display: flex; flex-direction: column; gap: 10px; }
.chat .m { background: var(--card2); border-radius: 10px; padding: 8px 12px; font-size: 14px; word-break: break-word; }
.chat .m b { font-size: 12.5px; display: block; font-family: var(--font-h); }
.chat .m.me { background: rgba(255,193,7,.16); }
.chat .m.team b { color: var(--amber); }
.chat .m small { color: var(--muted); font-size: 11px; }
.chat form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); }
.chat form input { flex: 1; }
.chat .note { font-size: 11.5px; color: var(--muted); padding: 0 14px 10px; }

/* ---------- responsivo ---------- */
@media (max-width: 900px) {
  .side { position: fixed; left: 0; top: 0; z-index: 40; transform: translateX(-100%); transition: transform .2s; }
  .side.open { transform: none; }
  .burger { display: block; }
  .main { padding: 16px; }
  .grid2, .grid3 { grid-template-columns: 1fr; }
  .room .stage { grid-template-columns: 1fr; padding: 14px; }
  .chat { height: 420px; }
}
