/* ── Variables ─────────────────────────────────────────────────────────────── */
:root, .live-call, .live-panel, .live-toasts {
  --bg:         #080808;
  --card:       #111111;
  --secondary:  #1A1A1F;
  --muted:      #161616;
  --fg:         #EEEEEE;
  --muted-fg:   #888899;
  --border:     #222228;
  --primary:    #2B5BEE;
  --accent:     #7B49DF;
  --success:    #2EB860;
  --error:      #D92626;
  --r-sm:       8px;
  --r:          12px;
  --r-lg:       16px;
  --r-xl:       24px;
  --grad:       linear-gradient(135deg, #2B5BEE, #7B49DF);
  --gradient-primary: var(--grad); /* alias — várias regras usavam esse nome, mas ele nunca foi definido (fundos sumindo silenciosamente) */
  --grad-acc:   linear-gradient(135deg, #7B49DF, #D94FA0);
  --grad-warm:  linear-gradient(135deg, #D94FA0, #EE831A);
  --grad-success: linear-gradient(135deg, #2EB860, #1E9E52);
  --font:       'Montserrat', sans-serif;
  --sidebar-w:  260px;
  --nav-h:      64px;

  --card-2:      #17171c;
  --warning:     #E8A020;
  --overlay-fg:  #fff;
  --scrim:       rgba(0,0,0,.55);
  --overlay-1:   rgba(255,255,255,.06);
  --overlay-2:   rgba(255,255,255,.12);
  --overlay-3:   rgba(255,255,255,.18);
  --link-soft:   #9DB4FF;
  --mic-on:      #4DE98A;
  --mic-off:     #FF6B6B;
  --hand-raised: #F0BC5E;
  --video-well:  #000;
  --bg-scrim:    rgba(8,8,8,.88);
  --home-sky-img: url('https://cdn.rockacademy.com.br/web/home-header/dark-v2.jpg');
  --home-chip: rgba(8,10,24,.84);
  --home-tv-bezel: rgba(8,12,32,.62);
  --home-tv-edge: rgba(255,255,255,.08);
  --home-tv-shadow: 0 0 0 1.5px rgba(150,190,255,.75), 0 0 22px 2px rgba(60,120,255,.55), 0 0 70px rgba(43,91,238,.4), 0 28px 70px rgba(0,0,0,.55);
  --home-vig-mid: rgba(30,70,210,.22);
  --home-vig-edge: rgba(43,91,238,.55);
  --home-vig-top: rgba(43,91,238,.45);
  --home-glow-core: rgba(43,91,238,.6);
  --home-glow-mid: rgba(30,66,200,.34);
  --home-glow-edge: rgba(20,45,150,.12);
  --home-glow-top: rgba(16,36,120,.25);
  --home-glow-top2: rgba(20,40,140,.12);
  --home-glow-blend: screen;
  --home-arc: rgba(140,180,255,.7);
  --home-arc-soft: rgba(140,180,255,.28);
  --home-chip-border: rgba(255,255,255,.3);
  --media-shadow: none;
  --cover-scrim-strong: rgba(6,8,15,.78);
  --cover-scrim-mid:    rgba(6,8,15,.58);
  --cover-scrim-soft:   rgba(6,8,15,.08);
  --cover-fg:       #fff;
  --cover-fg-muted: rgba(255,255,255,.65);
  --cover-fg-soft:  rgba(255,255,255,.55);
  --cover-track:    rgba(255,255,255,.18);
  --hover-shadow: 0 18px 44px rgba(0,0,0,.5), 0 0 0 1px rgba(255,255,255,.06);
  --hover-ring:   0 0 0 2px rgba(43,91,238,.45);
  --rocksby-badge-bg:     radial-gradient(circle at 32% 28%, #f5f2fc, #e9e3f6 75%);
  --rocksby-badge-border: rgba(0,0,0,.08);
  --rocksby-badge-shadow: 0 8px 28px rgba(228,11,115,.28), 0 0 0 4px rgba(5,6,159,.14);
  --rocksby-badge-shadow-hover: 0 12px 38px rgba(228,11,115,.4), 0 0 0 6px rgba(5,6,159,.2);
}

:root[data-theme="light"] {
  --bg:         #F7F8FC;
  --card:       #FFFFFF;
  --secondary:  #F0F1F7;
  --muted:      #ECEDF4;
  --fg:         #14151A;
  --muted-fg:   #6B6F80;
  --border:     #E4E6EF;
  --primary:    #2B5BEE;
  --accent:     #7B49DF;
  --success:    #1E9E52;
  --error:      #D92626;
  --grad:       linear-gradient(135deg, #2B5BEE, #7B49DF);
  --gradient-primary: var(--grad);
  --grad-acc:   linear-gradient(135deg, #7B49DF, #D94FA0);
  --grad-warm:  linear-gradient(135deg, #D94FA0, #EE831A);
  --grad-success: linear-gradient(135deg, #2EB860, #1E9E52);

  --card-2:      #F0F2F9;
  --warning:     #C97F0D;
  --overlay-fg:  #fff;
  --scrim:       rgba(20,21,26,.5);
  --overlay-1:   rgba(20,21,26,.04);
  --overlay-2:   rgba(20,21,26,.08);
  --overlay-3:   rgba(20,21,26,.14);
  --link-soft:   #2B5BEE;
  --mic-on:      #1E9E52;
  --mic-off:     #D92626;
  --hand-raised: #C97F0D;
  --video-well:  #0A0A0C;
  --bg-scrim:    rgba(247,248,252,.88);
  --home-sky-img: url('https://cdn.rockacademy.com.br/web/home-header/light-v2.jpg');
  --home-chip: rgba(255,255,255,.97);
  --home-tv-bezel: rgba(255,255,255,.78);
  --home-tv-edge: rgba(20,30,80,.10);
  --home-tv-shadow: 0 0 0 2px rgba(255,255,255,.92), 0 0 22px 3px rgba(170,205,255,.9), 0 0 70px rgba(60,120,255,.55), 0 26px 60px rgba(10,40,140,.32);
  --home-vig-mid: rgba(36,86,232,.55);
  --home-vig-edge: rgba(12,40,176,.97);
  --home-vig-top: rgba(14,44,184,.92);
  --home-glow-core: rgba(18,58,206,1);
  --home-glow-mid: rgba(36,86,232,.9);
  --home-glow-edge: rgba(90,140,245,.4);
  --home-glow-top: rgba(24,66,214,.9);
  --home-glow-top2: rgba(43,96,238,.6);
  --home-glow-blend: multiply;
  --home-arc: rgba(255,255,255,.9);
  --home-arc-soft: rgba(255,255,255,.45);
  --home-chip-border: rgba(20,30,80,.2);
  --media-shadow: 0 14px 34px rgba(20,21,26,.14), 0 2px 8px rgba(20,21,26,.07);
  --cover-scrim-strong: rgba(196,227,247,.80);
  --cover-scrim-mid:    rgba(196,227,247,.60);
  --cover-scrim-soft:   rgba(196,227,247,.05);
  --cover-fg:       #0B2A4A;
  --cover-fg-muted: rgba(11,42,74,.68);
  --cover-fg-soft:  rgba(11,42,74,.55);
  --cover-track:    rgba(11,42,74,.16);
  --hover-shadow: 0 18px 40px rgba(20,21,26,.16), 0 4px 14px rgba(20,21,26,.08);
  --hover-ring:   0 0 0 2px rgba(43,91,238,.35);

  --rocksby-badge-bg:     radial-gradient(circle at 32% 28%, #ffffff, #f0edf9 75%);
  --rocksby-badge-border: rgba(0,0,0,.1);
  --rocksby-badge-shadow: 0 8px 24px rgba(228,11,115,.18), 0 0 0 4px rgba(5,6,159,.1), 0 4px 14px rgba(20,21,26,.08);
  --rocksby-badge-shadow-hover: 0 12px 32px rgba(228,11,115,.26), 0 0 0 6px rgba(5,6,159,.14), 0 4px 14px rgba(20,21,26,.1);
}

/* ── Reset ─────────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--fg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font-family: var(--font); cursor: pointer; border: none; background: none; }
input, textarea { font-family: var(--font); }
img { display: block; max-width: 100%; }

/* ── Scrollbar ─────────────────────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

/* ── Utilities ─────────────────────────────────────────────────────────────── */
.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.grad-bg { background: var(--grad); }
.hidden { display: none !important; }
.spinner {
  width: 22px; height: 22px;
  border: 2.5px solid rgba(255,255,255,.15);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin .7s linear infinite;
  display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }
.fade-in { animation: fadeIn .3s ease both; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ── Toast ─────────────────────────────────────────────────────────────────── */
.toast {
  position: fixed; bottom: 32px; left: 50%; transform: translateX(-50%);
  background: var(--card); border: 1px solid var(--border);
  color: var(--fg); font-size: 13px; font-weight: 600;
  padding: 12px 22px; border-radius: var(--r-xl);
  box-shadow: 0 8px 32px rgba(0,0,0,.6);
  z-index: 9999; pointer-events: none;
  opacity: 0; transition: opacity .25s;
}
.toast.show { opacity: 1; }
.toast.error { border-color: var(--error); color: var(--error); }
.toast.success { border-color: var(--success); color: var(--success); }

/* ── Lucide icons ──────────────────────────────────────────────────────────── */
svg.lucide {
  width: 1em; height: 1em;
  vertical-align: -0.125em;
  display: inline-block;
  flex-shrink: 0;
}

/* ── Top Navbar ────────────────────────────────────────────────────────────── */
.navbar {
  position: fixed; top: var(--banner-h, 0px); left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  display: flex; align-items: center;
  padding: 0 clamp(12px, 3vw, 28px);
  background: var(--bg-scrim);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  gap: clamp(10px, 2vw, 20px);
  border-bottom: 1px solid var(--border);
  transition: background-color .35s ease, border-color .35s ease, backdrop-filter .35s ease;
}
html.home-hero:not(.nav-scrolled) .navbar {
  background: transparent;
  border-bottom-color: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.navbar-logo {
  display: flex; align-items: center; gap: 12px; flex-shrink: 0;
}
.navbar-logo img { height: 26px; width: auto; }
.navbar-right { margin-left: auto; display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
@media (max-width: 560px) {
  :root { --nav-h: 54px; }
  .navbar-logo img { height: 22px; }
}
.navbar-search { position: relative; width: 36px; height: 36px; flex-shrink: 0; }
.navbar-search-input {
  position: absolute; top: 0; right: 0; height: 36px; width: 36px;
  border-radius: 18px; border: 1px solid transparent; background: var(--card);
  color: var(--fg); font-family: var(--font); font-size: 13px;
  padding: 0 40px 0 14px; opacity: 0; pointer-events: none;
  transition: width .28s cubic-bezier(.32,.72,0,1), opacity .18s ease, border-color .2s;
}
.navbar-search-input::placeholder { color: var(--muted-fg); }
.navbar-search.open .navbar-search-input {
  width: 260px; opacity: 1; pointer-events: auto; border-color: var(--border);
  box-shadow: 0 6px 20px rgba(0,0,0,.18);
}
.navbar-search-input:focus { outline: none; border-color: var(--primary); }
.navbar-search-btn { position: relative; z-index: 1; }
.navbar-search.open .navbar-search-btn { color: var(--primary); }
@media (max-width: 640px) {
  .navbar-search.open .navbar-search-input { width: 180px; }
}
.navbar-icon-btn {
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: none; border: none; cursor: pointer;
  color: var(--muted-fg); font-size: 18px;
  position: relative; transition: color .2s, background .2s;
}
.navbar-icon-btn:hover { color: var(--fg); background: var(--overlay-1); }
.install-entry.install-entry { display: none; }
html[data-install] .install-entry.install-entry { display: flex; }
.install-lbl-store { display: none; }
html[data-install="store"] .install-lbl-pwa { display: none; }
html[data-install="store"] .install-lbl-store { display: inline; }
.udrop-item.install-entry { align-items: center; gap: 10px; color: var(--primary); }
.sidebar-install { color: var(--primary); }
.sidebar-install .sidebar-item-text { font-weight: 700; }
.sidebar-badge.install-new { background: var(--accent); color: #fff; }
.hamburger-btn { position: relative; }
html.install-hint .hamburger-btn::after {
  content: ''; position: absolute; top: 4px; right: 4px; width: 9px; height: 9px;
  border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 0 0 rgba(123,73,223,.6); animation: install-pulse 2s infinite;
}
@keyframes install-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(123,73,223,.55); }
  70%  { box-shadow: 0 0 0 8px rgba(123,73,223,0); }
  100% { box-shadow: 0 0 0 0 rgba(123,73,223,0); }
}
@media (prefers-reduced-motion: reduce) { html.install-hint .hamburger-btn::after { animation: none; } }
.navbar-admin-btn { color: var(--primary) !important; }
.navbar-admin-btn:hover { background: rgba(43,91,238,.12) !important; }

.notif-menu-wrap { position: relative; }
.nav-notif-badge {
  position: absolute; top: 1px; right: 1px;
  min-width: 16px; height: 16px; padding: 0 4px; border-radius: 99px;
  background: linear-gradient(135deg, #EF4444, #D92626);
  border: 2px solid var(--bg);
  color: #fff; font-size: 9.5px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 8px rgba(217,38,38,.5);
}
@keyframes notifBump {
  0% { transform: scale(1); }
  30% { transform: scale(1.22) rotate(-8deg); }
  55% { transform: scale(1.05) rotate(6deg); }
  100% { transform: scale(1) rotate(0); }
}
.notif-bump { animation: notifBump .5s cubic-bezier(.34,1.56,.64,1); }

.notif-dropdown {
  position: absolute; top: calc(100% + 14px); right: -8px;
  width: 340px;
  max-width: calc(100vw - 24px);
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--r-xl);
  box-shadow: 0 28px 70px rgba(0,0,0,.45);
  overflow: hidden;
  z-index: 500;
  opacity: 0; transform: translateY(-10px) scale(.96);
  pointer-events: none;
  transition: opacity .2s cubic-bezier(.4,0,.2,1), transform .2s cubic-bezier(.4,0,.2,1);
}
.notif-menu-wrap.open .notif-dropdown {
  opacity: 1; transform: none;
  pointer-events: all;
}
.notif-dropdown-header {
  padding: 16px 18px; border-bottom: 1px solid var(--border);
  font-size: 14px; font-weight: 800; color: var(--fg);
  background: linear-gradient(135deg, rgba(43,91,238,.06), rgba(123,73,223,.06));
}
.notif-dropdown-list { max-height: 380px; overflow-y: auto; padding: 6px; }
.notif-empty {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 32px 16px; color: var(--muted-fg); font-size: 12.5px; text-align: center;
}
.notif-empty i { width: 26px; height: 26px; opacity: .5; }
.notif-item {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 11px 10px; border-radius: var(--r-lg); position: relative;
  transition: background .15s;
}
.notif-item:hover { background: var(--overlay-1); }
.notif-item.unread { background: color-mix(in srgb, var(--notif-color) 7%, transparent); }
.notif-item-icon {
  width: 34px; height: 34px; flex-shrink: 0; border-radius: 50%;
  background: color-mix(in srgb, var(--notif-color) 16%, transparent);
  display: flex; align-items: center; justify-content: center;
}
.notif-item-icon i { width: 16px; height: 16px; color: var(--notif-color); }
.notif-item-body { flex: 1; min-width: 0; }
.notif-item-title {
  font-size: 12.5px; font-weight: 800; color: var(--fg);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.notif-item-text {
  font-size: 11.5px; color: var(--muted-fg); margin-top: 2px;
  display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.notif-item-time { font-size: 10px; color: var(--muted-fg); margin-top: 5px; font-weight: 600; }
.notif-item-dot {
  width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0;
  background: var(--notif-color); margin-top: 5px;
}
.notif-dropdown-footer {
  width: 100%; padding: 12px; border: none; border-top: 1px solid var(--border);
  background: none; color: var(--primary); font-weight: 700; font-size: 12.5px;
  cursor: pointer; font-family: var(--font); transition: background .15s;
}
.notif-dropdown-footer:hover { background: var(--overlay-1); }
.navbar-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 800;
  cursor: pointer; transition: transform .2s;
  border: 2px solid transparent;
}
.navbar-avatar:hover { transform: scale(1.08); }
.logout-btn {
  font-size: 12px; font-weight: 600; color: var(--muted-fg);
  padding: 6px 14px; border-radius: var(--r);
  border: 1px solid var(--border);
  transition: color .2s, border-color .2s;
}
.logout-btn:hover { color: var(--fg); border-color: var(--muted-fg); }

/* ── Page wrapper ──────────────────────────────────────────────────────────── */
.page { padding-top: var(--nav-h); min-height: 100vh; }

/* ══════════════════════════════════════════════════════════════════════════════
   AUTH SCREENS
══════════════════════════════════════════════════════════════════════════════ */
.auth-screen {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background: radial-gradient(ellipse 80% 60% at 50% -10%, rgba(43,91,238,.18), transparent),
              radial-gradient(ellipse 60% 50% at 80% 80%, rgba(123,73,223,.12), transparent),
              var(--bg);
  padding: 24px;
}
.auth-card {
  width: 100%; max-width: 400px;
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 40px 36px;
  box-shadow: 0 32px 80px rgba(0,0,0,.6);
  animation: fadeIn .35s ease both;
}
.auth-logo { text-align: center; margin-bottom: 32px; }
.auth-logo img { height: 38px; margin: 0 auto 12px; }
.auth-logo h1 {
  font-size: 22px; font-weight: 900; letter-spacing: -.5px;
  background: var(--grad);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.auth-logo p { font-size: 13px; color: var(--muted-fg); margin-top: 4px; }
.auth-form { display: flex; flex-direction: column; gap: 14px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 12px; font-weight: 700; color: var(--muted-fg); letter-spacing: .5px; text-transform: uppercase; }
.form-group input {
  background: var(--secondary); border: 1px solid var(--border);
  color: var(--fg); border-radius: var(--r);
  padding: 12px 14px; font-size: 14px; font-weight: 500;
  transition: border-color .2s;
  outline: none;
}
.form-group input::placeholder { color: var(--muted-fg); }
.form-group input:focus { border-color: var(--primary); }
.form-group input.error { border-color: var(--error); }
.form-group textarea {
  background: var(--secondary); border: 1px solid var(--border);
  color: var(--fg); border-radius: var(--r);
  padding: 12px 14px; font-size: 14px; font-weight: 500;
  transition: border-color .2s; outline: none;
  resize: vertical; min-height: 70px; font-family: inherit;
}
.form-group textarea::placeholder { color: var(--muted-fg); }
.form-group textarea:focus { border-color: var(--primary); }
.field-error { font-size: 11px; color: var(--error); font-weight: 600; margin-top: 2px; }
.auth-terms {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 12.5px; line-height: 1.5; color: var(--muted-fg);
  cursor: pointer; margin-top: 2px;
}
.auth-terms input[type="checkbox"] { margin-top: 2px; width: 16px; height: 16px; flex: none; accent-color: var(--primary); cursor: pointer; }
.auth-terms a { color: var(--primary); font-weight: 700; text-decoration: underline; }
.auth-terms a:hover { opacity: .85; }
.auth-submit {
  margin-top: 8px;
  padding: 14px; border-radius: var(--r);
  background: var(--grad); color: #fff;
  font-size: 14px; font-weight: 700; letter-spacing: .3px;
  border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  transition: opacity .2s, transform .1s;
  min-height: 48px;
}
.auth-submit:hover { opacity: .9; }
.auth-submit:active { transform: scale(.98); }
.auth-submit:disabled { opacity: .5; cursor: not-allowed; }
.auth-footer { text-align: center; margin-top: 20px; font-size: 13px; color: var(--muted-fg); }
.auth-footer a, .auth-link { color: var(--primary); font-weight: 600; cursor: pointer; }
.auth-footer a:hover, .auth-link:hover { text-decoration: underline; }
.auth-divider { text-align: center; margin: 4px 0; font-size: 12px; color: var(--muted-fg); }
.auth-or { display:flex;align-items:center;gap:10px;margin:12px 0 8px;color:var(--muted-fg);font-size:12px }
.auth-or::before,.auth-or::after { content:'';flex:1;height:1px;background:var(--border) }
.google-btn-wrap { display:flex;justify-content:center;min-height:44px;width:100% }
.verify-banner {
  background: rgba(43,91,238,.12); border: 1px solid rgba(43,91,238,.35);
  border-radius: var(--r); padding: 14px 16px;
  font-size: 13px; color: var(--fg); line-height: 1.5;
  margin-bottom: 16px;
}
.verify-banner strong { color: var(--primary); }

.auth-split {
  min-height: 100vh;
  display: flex;
  background: var(--bg);
}

.auth-split-panel {
  position: relative;
  z-index: 2;
  flex: 0 0 clamp(380px, 38vw, 500px);
  display: flex;
  align-items: center;
  min-height: 100vh;
  padding: 48px clamp(28px, 5vw, 64px);
  overflow-y: auto;
}
.auth-split-panel-inner {
  width: 100%;
  max-width: 360px;
  margin: 0 auto;
  animation: fadeIn .4s ease both;
}

.auth-split-logo { height: 60px; margin-bottom: 32px; }

.auth-split-heading h1 {
  font-size: 28px; font-weight: 900; letter-spacing: -.5px; line-height: 1.15;
}
.auth-split-heading p {
  font-size: 13.5px; color: var(--muted-fg); margin-top: 8px; margin-bottom: 30px; line-height: 1.5;
}

.auth-split-media {
  position: relative;
  z-index: 1;
  flex: 1;
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 60% at 85% 10%, rgba(123,73,223,.35), transparent 60%),
    radial-gradient(ellipse 60% 50% at 15% 90%, rgba(43,91,238,.30), transparent 60%),
    linear-gradient(160deg, #0A0C1C 0%, #10072A 55%, #170B3D 100%);
}
.auth-split-media-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: .96;
}
.auth-split-media-watermark {
  position: absolute;
  width: 58%; max-width: 620px; height: auto;
  right: -6%; top: 50%; transform: translateY(-50%);
  opacity: .10;
  filter: grayscale(1) brightness(2);
  pointer-events: none;
}
.auth-split-media::before {
  content: '';
  position: absolute;
  top: 0; bottom: 0; left: 0;
  width: 180px;
  background: linear-gradient(90deg, rgba(0,0,0,.6), rgba(0,0,0,0));
  z-index: 1;
  pointer-events: none;
}
.auth-split-media::after {
  content: '';
  position: absolute; inset: 0;
  box-shadow: inset 0 -140px 140px -60px rgba(0,0,0,.65);
  z-index: 1;
  pointer-events: none;
}

@media (max-width: 980px) {
  .auth-split-media { display: none; }
  .auth-split-panel { flex: 1; justify-content: center; }
}
@media (max-width: 480px) {
  .auth-split-panel { padding: 36px 22px; }
  .auth-split-logo { height: 46px; margin-bottom: 24px; }
  .auth-split-heading h1 { font-size: 24px; }
}

/* ══════════════════════════════════════════════════════════════════════════════
   COURSES SCREEN
══════════════════════════════════════════════════════════════════════════════ */
.courses-page { padding-top: 0; margin: 0; position: relative; isolation: isolate; display: flow-root; }

.home-skyline {
  position: absolute; top: 0; left: 0; right: 0; z-index: -1;
  height: calc(var(--nav-h) + 16px + min(1200px, 100vw - 60px) * 8 / 21 * .5);
  background: var(--home-sky-img) center top / cover no-repeat;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 40%, rgba(0,0,0,.5) 70%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 0%, #000 40%, rgba(0,0,0,.5) 70%, transparent 100%);
  pointer-events: none;
  opacity: 0;
  transition: opacity .35s ease;
}
.home-skyline.ready { opacity: 1; }
@media (max-width: 640px) {
  .home-skyline { height: calc(var(--nav-h) + 12px + (100vw - 32px) * 10 / 16 * .5); background-size: 100% auto; }
}
@media (max-width: 420px) {
  .home-skyline { height: calc(var(--nav-h) + 12px + (100vw - 24px) * 3 / 4 * .5); }
}
@media (prefers-reduced-motion: reduce) { .home-skyline { transition: none; } }

html.home-hero:not(.nav-scrolled) .navbar-icon-btn,
html.home-hero:not(.nav-scrolled) .hamburger-btn {
  background: var(--home-chip);
  border: 1px solid var(--home-chip-border);
  backdrop-filter: blur(12px) saturate(1.3);
  -webkit-backdrop-filter: blur(12px) saturate(1.3);
  color: var(--fg);
  box-shadow: 0 6px 18px rgba(0,0,0,.3), inset 0 1px 0 rgba(255,255,255,.12);
}
html.home-hero:not(.nav-scrolled) .navbar-icon-btn svg,
html.home-hero:not(.nav-scrolled) .hamburger-btn svg { stroke-width: 2.3; }
html.home-hero:not(.nav-scrolled) .navbar-logo {
  padding: 6px 14px 6px 10px; border-radius: 999px;
  background: var(--home-chip);
  border: 1px solid var(--home-chip-border);
  backdrop-filter: blur(12px) saturate(1.3);
  -webkit-backdrop-filter: blur(12px) saturate(1.3);
  box-shadow: 0 6px 18px rgba(0,0,0,.3), inset 0 1px 0 rgba(255,255,255,.12);
}
html.home-hero:not(.nav-scrolled) .navbar-avatar {
  background-color: var(--home-chip);
  border-color: var(--home-chip-border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 14px rgba(0,0,0,.25);
}

.home-art .home-skyline {
  height: clamp(440px, 48vw, 900px);
  background-size: cover;
  background-position: center top;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 78%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 0%, #000 78%, transparent 100%);
}
.home-art .home-skyline::before,
.home-art .home-skyline::after {
  content: none;
}
.home-art .home-skyline::before {
  background:
    radial-gradient(ellipse 72% 80% at 50% 58%, transparent 30%, var(--home-vig-mid) 64%, var(--home-vig-edge) 100%),
    linear-gradient(180deg, var(--home-vig-top) 0%, transparent 34%);
  mix-blend-mode: var(--home-glow-blend);
}
.home-art .home-skyline::after {
  background:
    radial-gradient(ellipse 49% 72% at 50% 55%, transparent 0 96.2%, var(--home-arc) 97.4%, transparent 98.6%),
    radial-gradient(ellipse 58% 90% at 50% 60%, transparent 0 97%, var(--home-arc-soft) 97.9%, transparent 98.9%);
  filter: blur(1.2px);
}
.home-stage {
  position: relative;
  width: calc(100% - 60px); max-width: 1200px;
  margin: 0 auto;
  padding: calc(var(--nav-h) + 16px) 0 28px;
}
.home-tv-wrap { position: relative; width: 100%; margin: 0 auto; }
.home-tv-wrap::before {
  content: ''; position: absolute; left: -18%; right: -18%; top: 10%; bottom: -30%;
  background: radial-gradient(closest-side, rgba(43,91,238,.42), rgba(43,91,238,0));
  filter: blur(18px); pointer-events: none; z-index: -1;
}
.home-art .hero.home-tv {
  aspect-ratio: 21 / 8; border-radius: 20px; overflow: hidden; isolation: isolate;
  box-shadow: var(--home-tv-shadow);
}
.home-art .hero.home-tv::after {
  content: ''; position: absolute; inset: 0; z-index: 4; pointer-events: none;
  background: linear-gradient(118deg, rgba(255,255,255,.13) 0%, rgba(255,255,255,0) 34%);
}
.home-art .home-tv .carousel-dots { bottom: 10px; }
.home-art .home-tv { --tv-radius: 20px; }
.home-art .home-tv .hero-slot,
.home-art .home-tv > video,
.home-art .home-tv > img { border-radius: var(--tv-radius); clip-path: inset(0 round var(--tv-radius)); -webkit-mask-image: -webkit-radial-gradient(white, black); }
.home-art .hero-live-stack { top: 14px; right: 14px; z-index: 8; }
.home-corner-slot { position: absolute; left: 16px; bottom: 16px; z-index: 8; }
.home-corner-slot .home-corner-card { position: relative; left: auto; bottom: auto; max-width: 300px; }
.home-art .catalog-section:first-of-type { margin-top: 0; }
:root[data-theme="light"] .courses-page.home-art {
  background: linear-gradient(180deg, #CDD8FD 0, #D6DFFC 900px, #DFE6FC 1600px, #E5EBFC 100%);
  min-height: 100vh;
}
@media (max-width: 640px) {
  .home-art .home-skyline { height: 62vw; background-size: 100% auto; background-position: center top; }
  .home-stage { width: calc(100% - 32px); padding: calc(var(--nav-h) + 12px) 0 24px; }
  .home-tv-wrap { width: 100%; }
  .home-art .hero.home-tv { border-radius: 16px; aspect-ratio: 16 / 10; --tv-radius: 16px; }
  .home-art .hero-live-stack { top: 10px; right: 10px; }
  .home-corner-slot { left: 10px; bottom: 10px; }

}

.hero-wrap {
  position: relative;
  width: calc(100% - 60px);
  max-width: 1200px;
  margin: calc(var(--nav-h) + 16px) auto 0;
}

.hero {
  position: relative;
  width: 100%;
  background: var(--bg);
  overflow: hidden;
  aspect-ratio: 21/8;
  border-radius: 20px;
  box-shadow: var(--media-shadow);
}
@media (max-width: 640px) {
  .hero-wrap { width: calc(100% - 32px); margin-top: calc(var(--nav-h) + 12px); }
  .hero { aspect-ratio: 16/10; border-radius: 16px; }
}
@media (max-width: 420px) {
  .hero-wrap { width: calc(100% - 24px); }
  .hero { aspect-ratio: 4/3; }
}
.hero video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: .95;
}
.hero-overlay-left {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(6,8,15,.55) 0%, transparent 18%, transparent 82%, rgba(16,7,42,.55) 100%);
  pointer-events: none;
}
.hero-overlay-bottom {
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 18%; pointer-events: none;
  background: linear-gradient(180deg, transparent 0%, rgba(6,8,15,.7) 100%);
}
.hero-overlay-top { display: none; }
.hero-content { display: none; }

.hero-brand { display: none; }

/* Carousel */
.carousel-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(0,0,0,.45); backdrop-filter: blur(4px);
  border: 1px solid rgba(255,255,255,.12); color: #fff;
  width: 46px; height: 46px; border-radius: 50%;
  cursor: pointer; z-index: 10;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s, transform .15s;
  padding: 0;
}
.carousel-btn:hover { background: rgba(0,0,0,.72); transform: translateY(-50%) scale(1.08); }
.carousel-btn-prev { left: 14px; }
.carousel-btn-next { right: 14px; }
.carousel-dots {
  position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 7px; z-index: 10; pointer-events: all;
}
.carousel-dot {
  width: 8px; height: 8px; border-radius: 4px;
  background: rgba(255,255,255,.38); border: none; cursor: pointer; padding: 0;
  transition: background .25s, width .25s;
}
.carousel-dot.active { background: #fff; width: 24px; }
.carousel-dot:hover:not(.active) { background: rgba(255,255,255,.65); }

.home-corner-card {
  position: absolute; left: 16px; bottom: 16px; z-index: 10;
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; border-radius: 14px;
  background: rgba(10,10,20,.5); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 10px 28px rgba(0,0,0,.4);
  cursor: pointer; text-align: left; max-width: min(78%, 320px);
  opacity: 0; transform: translateY(10px) scale(.96);
  transition: opacity .32s ease, transform .32s ease, background .18s ease;
}
.home-corner-card.in { opacity: 1; transform: translateY(0) scale(1); }
.home-corner-card:hover { transform: translateY(-2px); background: rgba(10,10,20,.68); }
.home-corner-icon {
  width: 36px; height: 36px; border-radius: 10px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--grad); color: #fff;
  box-shadow: 0 3px 10px rgba(43,91,238,.45);
  animation: homeCornerIconPulse 2.6s ease-in-out infinite;
  transition: opacity .24s ease, transform .24s ease;
}
.home-corner-icon i { width: 18px; height: 18px; }
@keyframes homeCornerIconPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.06); } }
.home-corner-text { min-width: 0; transition: opacity .24s ease, transform .24s ease; }
.home-corner-label {
  font-size: 13px; font-weight: 800; color: #fff; line-height: 1.25;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.home-corner-sub {
  font-size: 11.5px; color: rgba(255,255,255,.78); margin-top: 1px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
/* Alternância entre as opções (aula ao vivo / continuar / RockLingo) — o JS
   liga essa classe, troca o conteúdo com tudo em opacity 0, e tira a classe
   no frame seguinte, cross-fade tanto na saída quanto na entrada do próximo. */
.home-corner-card.fading .home-corner-icon,
.home-corner-card.fading .home-corner-text {
  opacity: 0; transform: translateY(3px);
}
.home-corner-dots { display: flex; flex-direction: column; gap: 4px; margin-left: 4px; flex-shrink: 0; }
.home-corner-dot { width: 5px; height: 5px; border-radius: 50%; background: rgba(255,255,255,.35); transition: background .2s ease; }
.home-corner-dot.active { background: #fff; }
@media (max-width: 560px) {
  .home-corner-card { left: 10px; bottom: 10px; padding: 8px 12px; max-width: 70%; }
  .home-corner-icon { width: 32px; height: 32px; }
}

/* Section header */
.section-header {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 18px;
}
.section-bar {
  width: 3px; height: 20px; border-radius: 2px;
  background: var(--grad);
  flex-shrink: 0;
}
.section-bar.accent { background: var(--grad-acc); }
.section-bar.warm { background: var(--grad-warm); }
.section-title {
  font-size: 17px; font-weight: 800; letter-spacing: 1.8px;
  text-transform: uppercase; color: var(--fg);
}

/* Courses catalog — mesmo alinhamento do hero-wrap */
.catalog-section {
  width: calc(100% - 60px);
  max-width: 1200px;
  margin: 0 auto;
  padding: 28px 0 20px;
}

#catalog-sections-holder .catalog-section { padding-top: 0; }
#catalog-sections-holder .catalog-section::before {
  content: '';
  display: block;
  height: 1px;
  margin: 0 0 28px;
  background: linear-gradient(90deg, transparent, var(--border) 20%, var(--border) 80%, transparent);
}
.courses-row { display: flex; align-items: flex-start; gap: 18px; overflow-x: auto; padding-bottom: 12px; scroll-behavior: smooth; }
.courses-row::-webkit-scrollbar { height: 0; }

.courses-row-outer { position: relative; }
.courses-row-arrow {
  position: absolute; top: 44%; transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(10,10,26,.82); backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: #fff; cursor: pointer; z-index: 8;
  opacity: 0; pointer-events: none;
  transition: opacity .18s, transform .18s, background .18s;
  box-shadow: 0 6px 18px rgba(0,0,0,.4);
}
.courses-row-arrow i { width: 20px; height: 20px; }
.courses-row-arrow--left { left: -10px; }
.courses-row-arrow--right { right: -10px; }
.courses-row-arrow.is-visible { opacity: .55; pointer-events: auto; }
.courses-row-outer:hover .courses-row-arrow.is-visible { opacity: 1; }
.courses-row-arrow:hover { background: var(--gradient-primary, #6C5CE7); transform: translateY(-50%) scale(1.06); }
@media (hover: none) { .courses-row-arrow { display: none; } }

.course-card-wrap { width: 260px; flex-shrink: 0; }
.course-card {
  border-radius: var(--r-lg); overflow: hidden;
  position: relative; cursor: pointer;
  aspect-ratio: .65/1;
  background: linear-gradient(135deg, #1A1A3E, #0D1547);
  box-shadow: var(--media-shadow);
  transition: box-shadow .25s ease;
}
.course-card-wrap:hover .course-card { box-shadow: 0 16px 36px rgba(0,0,0,.45); }
.course-card img {
  width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0;
  transition: transform .5s cubic-bezier(.22,.9,.32,1);
}
.course-card-wrap:hover .course-card img { transform: scale(1.07); }

/* Fica sempre invisível/recolhido no card em si — descrição/stats daqui só
   servem de fonte pro preview flutuante (catalog-hover-preview, ver app.js
   setupCatalogHoverPreview) que aparece por cima ao passar o mouse, estilo
   Netflix. Antes esse fold expandia inline embaixo do card; isso duplicava
   com o preview flutuante e empurrava o layout da fileira. */
.course-card-info-fold { max-height: 0; opacity: 0; overflow: hidden; }
.course-card-info-fold-inner {
  margin-top: 10px; padding: 13px 14px;
  background: var(--card-2);
  border: 1px solid var(--border);
  border-radius: var(--r);
}
.course-card-info-desc {
  margin: 0; font-size: 11.5px; line-height: 1.58; color: var(--muted-fg);
}
.course-card-info-stats {
  display: flex; gap: 8px; flex-wrap: wrap;
  margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--border);
}
.course-card-info-stats span {
  display: flex; align-items: center; gap: 4px;
  font-size: 10px; font-weight: 700; color: var(--fg);
  background: var(--card); padding: 3px 9px; border-radius: 99px;
}
.course-card-info-stats i { width: 11px; height: 11px; color: var(--accent); }
@media (hover: none) { .course-card-info-fold { display: none !important; } }

.course-card-meta { padding: 12px 2px 0; }
.course-card-meta h3 { font-size: 14.5px; font-weight: 700; color: var(--fg); line-height: 1.3; }
.course-card-price {
  display: block; margin-top: 6px;
  font-size: 11.5px; font-weight: 600; color: var(--muted-fg);
}
.course-card-price b { color: var(--success); font-weight: 800; font-size: 12.5px; }

/* Selo de bloqueado — canto superior direito, só ícone (sem borrar a imagem) */
.course-card-badge {
  position: absolute; top: 10px; right: 10px; z-index: 4;
  width: 30px; height: 30px; border-radius: 50%;
  background: rgba(0,0,0,.68); backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  display: flex; align-items: center; justify-content: center;
  color: #fff;
}
.course-card-badge i { width: 15px; height: 15px; }

.course-card-owned-badge {
  position: absolute; top: 8px; right: 8px; z-index: 4;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--success); box-shadow: 0 2px 6px rgba(0,0,0,.35);
  display: flex; align-items: center; justify-content: center;
  color: #fff;
}
.course-card-owned-badge i { width: 12px; height: 12px; stroke-width: 3; }

/* ── Coming soon card — continua bloqueado por completo (não clicável) ── */
.course-card--soon {
  cursor: default;
  border: 1.5px solid rgba(251,191,36,.35);
}
.course-card-wrap:has(.course-card--soon):hover .course-card { transform: none; box-shadow: none; }
.course-card-soon-overlay {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  backdrop-filter: blur(2.5px) brightness(.65);
  -webkit-backdrop-filter: blur(2.5px) brightness(.65);
  background: rgba(13,13,31,.45);
  z-index: 5;
}
.course-card-lock {
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--gradient-primary);
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  box-shadow: 0 0 24px rgba(108,92,231,.55), 0 0 6px rgba(108,92,231,.3);
}
.course-card-soon-badge {
  font-size: 10px; font-weight: 800; letter-spacing: .9px;
  padding: 4px 10px; border-radius: 20px;
  color: #fbbf24;
  background: rgba(251,191,36,.12);
  border: 1px solid rgba(251,191,36,.60);
}
.course-placeholder-icon {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-size: 48px;
}

/* ── Preview flutuante ao passar o mouse (estilo Netflix) ─────────────────────
   Um único elemento reaproveitado, reposicionado por JS em cima do card que
   tá sob o mouse — fica fora do fluxo/scroll da fileira de propósito, senão
   o overflow-x:auto da fileira corta ele no eixo vertical. */
.catalog-hover-preview {
  position: fixed; z-index: 60; pointer-events: none;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--r-lg);
  box-shadow: 0 30px 60px -12px rgba(0,0,0,.55), 0 0 0 1px rgba(0,0,0,.04);
  overflow: hidden; cursor: pointer;
  opacity: 0; transform: scale(.92); transform-origin: center top;
  transition: opacity .18s ease, transform .22s cubic-bezier(.2,.8,.2,1);
}
.catalog-hover-preview.is-visible { opacity: 1; transform: scale(1); pointer-events: auto; }
.catalog-hover-preview-media {
  position: relative; aspect-ratio: 16/9; background: linear-gradient(135deg,#1A1A3E,#0D1547);
  overflow: hidden;
}
.catalog-hover-preview-media img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.catalog-hover-preview-media::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(0,0,0,.55) 100%);
}
.catalog-hover-preview-play {
  position: absolute; left: 14px; bottom: 12px; z-index: 1;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--grad); display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 16px rgba(43,91,238,.45);
}
.catalog-hover-preview-play i, .catalog-hover-preview-play svg { width: 16px; height: 16px; color: #fff; }
.catalog-hover-preview-body { padding: 13px 15px 15px; }
.catalog-hover-preview-body h4 { font-size: 14px; font-weight: 800; color: var(--fg); line-height: 1.3; margin-bottom: 8px; }
.catalog-hover-preview-body .course-card-info-stats { margin-top: 0; padding-top: 0; border-top: none; margin-bottom: 8px; }
.catalog-hover-preview-body .course-card-info-desc { -webkit-line-clamp: 2; display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; }
.catalog-hover-preview-price { margin-top: 8px; font-size: 11.5px; font-weight: 700; color: var(--muted-fg); }
.catalog-hover-preview-price b { color: var(--success); font-weight: 800; font-size: 12.5px; }
@media (hover: none) { .catalog-hover-preview { display: none !important; } }

.qr-create-own-card {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  padding: 18px; text-align: center;
  background: linear-gradient(135deg, rgba(123,73,223,.14), rgba(43,91,238,.06));
  border: 1.5px dashed rgba(123,73,223,.5);
  transition: border-color .2s, transform .2s;
}
.course-card-wrap:hover .qr-create-own-card { border-color: rgba(123,73,223,.85); transform: scale(1.02); }
.qr-create-own-icon {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--grad-warm); display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 16px rgba(217,79,160,.35);
}
.qr-create-own-icon i { width: 20px; height: 20px; color: #fff; }
.qr-create-own-title { font-size: 12.5px; font-weight: 800; color: var(--fg); line-height: 1.3; }
.qr-create-own-sub { font-size: 11px; font-weight: 700; color: var(--primary); margin-top: 3px; }

/* ══════════════════════════════════════════════════════════════════════════════
   COURSE DETAIL (modules)
══════════════════════════════════════════════════════════════════════════════ */
.course-detail-page { padding-top: var(--nav-h); }

.course-cover {
  position: relative; width: 100%;
  min-height: 440px; overflow: hidden;
  background: linear-gradient(135deg, #06080F, #10072A);
  box-shadow: var(--media-shadow);
}
.course-cover img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
}
.course-cover-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(90deg,
    var(--cover-scrim-strong) 0%,
    var(--cover-scrim-mid) 40%,
    var(--cover-scrim-soft) 100%);
}
.back-btn {
  position: absolute; top: 24px; left: 52px; z-index: 5;
  display: flex; align-items: center; gap: 8px;
  background: none; border: none; cursor: pointer;
  color: var(--cover-fg-soft); font-size: 14px; font-weight: 600;
  padding: 0; transition: color .2s;
}
.back-btn:hover { color: var(--cover-fg); }

/* Course info — overlaid on the cover image */
.course-cover-content {
  position: absolute; bottom: 0; left: 0;
  width: 55%; padding: 0 52px 44px;
  z-index: 3;
}
.cover-title {
  font-size: 34px; font-weight: 900; color: var(--cover-fg);
  line-height: 1.1; margin-bottom: 12px;
  letter-spacing: -.5px;
}
.cover-desc-wrap { position: relative; margin-bottom: 0; }
.cover-desc {
  font-size: 13px; color: var(--muted-fg);
  line-height: 1.6; margin: 0;
  max-height: 63px; overflow: hidden;
  transition: max-height .4s cubic-bezier(.4,0,.2,1);
}
.cover-desc.expanded { max-height: 500px; }
.cover-desc-fade {
  position: absolute; left: 0; right: 0; bottom: 0; height: 26px;
  background: linear-gradient(to bottom, transparent, var(--bg));
  pointer-events: none; transition: opacity .25s ease;
}
.cover-desc-fade.hide { opacity: 0; }
.cover-desc-toggle {
  display: inline-flex; align-items: center; gap: 3px;
  margin: 6px 0 16px; padding: 0;
  background: none; border: none; cursor: pointer;
  font-size: 11.5px; font-weight: 700; color: var(--muted-fg);
  text-decoration: underline; text-underline-offset: 2px;
  transition: color .15s;
}
.cover-desc-toggle:hover { color: var(--fg); }
.cover-desc-toggle-icon { width: 13px; height: 13px; transition: transform .3s cubic-bezier(.4,0,.2,1); }
.cover-desc-toggle.expanded .cover-desc-toggle-icon { transform: rotate(180deg); }
.cover-progress-row {
  display: flex; align-items: center; gap: 10px; margin-bottom: 7px;
}
.cover-progress-label { font-size: 12px; color: var(--cover-fg-muted); font-weight: 600; }
.cover-progress-pct { font-size: 12px; color: var(--primary); font-weight: 800; }
.cover-bar {
  height: 5px; border-radius: 3px;
  background: var(--cover-track); overflow: hidden; margin-bottom: 20px;
}
.cover-bar-fill {
  height: 100%; border-radius: 3px; background: var(--primary);
  transition: width .8s cubic-bezier(.4,0,.2,1);
}
.cover-stats {
  display: flex; gap: 20px; margin-bottom: 20px;
}
.cover-stat {
  font-size: 12px; color: var(--cover-fg-soft); font-weight: 500;
}
.cover-stat strong { color: var(--cover-fg); font-weight: 800; margin-right: 3px; }

.course-info-card { display: none; }
.badge-complete { display: none; }
.course-desc { display: none; }
.progress-row { display: none; }
.progress-bar-track { display: none; }
.progress-bar-fill { }
.course-stats { display: none; }
.stat-item { }
.stat-icon { }
.stat-value { }
.stat-label { }

.modules-list {
  padding: 24px 52px 80px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 22px;
}

/* Module card — portrait grid style. */
.module-card {
  flex: 1 1 240px;
  max-width: 300px;
  border-radius: var(--r-lg); overflow: visible;
  cursor: pointer; transition: transform .25s cubic-bezier(.2,.8,.2,1);
  background: transparent;
}
.module-card:hover { transform: translateY(-5px); }

.module-thumb {
  position: relative; aspect-ratio: 16/9; overflow: hidden;
  border-radius: var(--r-lg);
  background: linear-gradient(135deg, #1A1A3E, #0D1547);
  box-shadow: var(--media-shadow);
  transition: box-shadow .25s ease;
}
.module-card:hover .module-thumb { box-shadow: var(--hover-shadow), var(--hover-ring); }
.module-thumb img {
  width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0;
  transition: transform .45s cubic-bezier(.2,.8,.2,1);
}
.module-card:hover .module-thumb img { transform: scale(1.08); }

.module-thumb-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(0,0,0,.92) 100%);
}
.module-thumb-title {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 8px 10px 10px;
  font-size: 11px; font-weight: 700; color: #fff; line-height: 1.25;
}
.module-num-badge {
  position: absolute; top: 8px; left: 8px;
  background: rgba(0,0,0,.65); color: rgba(255,255,255,.8);
  font-size: 10px; font-weight: 700;
  padding: 2px 7px; border-radius: 5px;
}
.module-count-badge {
  position: absolute; bottom: 8px; right: 8px;
  background: rgba(0,0,0,.65); color: rgba(255,255,255,.7);
  font-size: 10px; font-weight: 600;
  padding: 2px 7px; border-radius: 5px;
}

/* Module card info row (below thumb) */
.module-card-meta {
  padding: 8px 4px 4px;
}
.module-card-progress-row {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 5px;
}
.module-card-completed {
  display: flex; align-items: center; gap: 5px;
  font-size: 11px; font-weight: 700; color: var(--success);
}
.module-card-pct {
  font-size: 11px; font-weight: 700; color: var(--primary);
}
.module-card-bar {
  height: 4px; border-radius: 2px;
  background: rgba(255,255,255,.1); overflow: hidden; margin-bottom: 6px;
}
.module-card-bar-fill {
  height: 100%; border-radius: 2px; background: var(--primary);
  transition: width .6s ease;
}
.module-card-title {
  font-size: 12px; font-weight: 600; color: var(--fg); line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* keep play-circle for player */
.play-circle {
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--grad);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 30px rgba(43,91,238,.6);
  font-size: 22px; color: #fff;
}

/* ══════════════════════════════════════════════════════════════════════════════
   CLASSES SCREEN
══════════════════════════════════════════════════════════════════════════════ */
.module-header {
  position: relative; aspect-ratio: 16/9; overflow: hidden;
  background: linear-gradient(135deg, #1A1A3E, #0D1547);
  max-height: 420px;
  box-shadow: var(--media-shadow);
}
.module-header img { width: 100%; height: 100%; object-fit: cover; }
.module-header-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.5) 0%, transparent 35%, rgba(0,0,0,.85) 100%);
}
.module-header-info {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 0 52px 28px;
}
.module-header-info h2 { font-size: 26px; font-weight: 900; text-shadow: 0 2px 12px rgba(0,0,0,.6); margin-bottom: 10px; }
.module-pills { display: flex; gap: 8px; }
.pill {
  display: flex; align-items: center; gap: 5px;
  background: rgba(0,0,0,.55); border: 1px solid rgba(255,255,255,.2);
  border-radius: 20px; padding: 4px 10px;
  font-size: 11px; color: rgba(255,255,255,.75); font-weight: 500;
}
.classes-label {
  display: flex; align-items: center; gap: 10px;
  background: var(--card); border-bottom: 1px solid var(--border);
  padding: 14px 52px;
}
.classes-label-right { margin-left: auto; font-size: 12px; color: var(--muted-fg); font-weight: 500; }
.classes-list { padding: 16px 52px 80px; display: flex; flex-direction: column; gap: 14px; }

/* Lesson card */
.lesson-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--r-lg); overflow: hidden;
  cursor: pointer; transition: border-color .2s, transform .15s, box-shadow .2s;
}
.lesson-card:hover:not(.locked) {
  border-color: rgba(43,91,238,.4);
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(0,0,0,.4);
}
.lesson-card.locked { opacity: .55; cursor: default; }
.lesson-thumb {
  position: relative; aspect-ratio: 16/9; overflow: hidden;
  background: linear-gradient(135deg, #1A1A3E, #0D1547);
  box-shadow: var(--media-shadow);
}
.lesson-thumb img { width: 100%; height: 100%; object-fit: cover; }
.lesson-thumb-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,.65) 100%);
}
.lesson-thumb-play {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
}
.play-circle-sm {
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--grad);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 24px rgba(43,91,238,.55);
  font-size: 20px; color: #fff;
}
.lesson-duration {
  position: absolute; bottom: 8px; right: 10px;
  background: rgba(0,0,0,.75); color: #fff;
  font-size: 11px; font-weight: 600; padding: 2px 7px; border-radius: 4px;
}
.lesson-info { display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px 16px; }
.lesson-num {
  width: 28px; height: 28px; border-radius: 6px; flex-shrink: 0; margin-top: 1px;
  background: rgba(43,91,238,.15);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 800; color: var(--primary);
}
.lesson-num.locked { background: var(--overlay-1); color: var(--muted-fg); }
.lesson-meta h3 { font-size: 14px; font-weight: 600; line-height: 1.35; }

/* ══════════════════════════════════════════════════════════════════════════════
   PLAYER SCREEN
══════════════════════════════════════════════════════════════════════════════ */
.player-page { background: var(--bg); }
.player-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  height: calc(100vh - var(--nav-h));
  overflow: hidden;
}
.player-main {
  display: flex; flex-direction: column;
  background: var(--bg); min-width: 0;
  overflow-y: auto; overflow-x: hidden;
}

/* ── Topbar (two-row) ── */
.player-topbar {
  display: flex; flex-direction: column; gap: 6px;
  padding: 14px 28px 12px;
  background: var(--card); border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.player-topbar-row1 {
  display: flex; align-items: center; justify-content: space-between;
}
.player-back-btn {
  display: flex; align-items: center; gap: 7px;
  color: var(--muted-fg); font-size: 13px; font-weight: 600;
  background: none; border: none; cursor: pointer; padding: 2px 0;
  transition: color .15s; flex-shrink: 0;
}
.player-back-btn:hover { color: var(--fg); }
.player-back-btn i { width: 16px; height: 16px; }
.player-topbar-row2 { min-width: 0; }
.player-topbar-mod { font-size: 11px; color: var(--muted-fg); font-weight: 700; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 3px; }
.player-topbar-cls { font-size: 18px; font-weight: 800; color: var(--fg); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.25; }
.player-topbar-nav { display: flex; gap: 8px; flex-shrink: 0; }
.ctrl-nav-btn {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--secondary); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--muted-fg); cursor: pointer; transition: all .15s;
}
.ctrl-nav-btn:hover { background: var(--overlay-2); color: var(--fg); }
.ctrl-nav-btn i { width: 16px; height: 16px; }
.player-modules-btn { display: none; }
.player-sidebar.player-sidebar--in-sheet {
  display: flex; width: 100%; height: 100%; border-left: none;
}

/* ── Video area (padded, rounded) ── */
.player-video-area {
  padding: 18px 28px 0;
  background: var(--bg);
  flex-shrink: 0;
}

/* ── Below video ── */
.player-below { flex-shrink: 0; background: var(--bg); }
.player-below-head { padding: 20px 28px 16px; }
.video-wrapper {
  position: relative; aspect-ratio: 16/9; width: 100%; background: var(--video-well);
  overflow: hidden; border-radius: 12px; cursor: pointer;
}
.video-wrapper.fullscreen-active {
  position: fixed; inset: 0; z-index: 9000;
  aspect-ratio: unset; width: 100%; height: 100%;
  border-radius: 0;
}
.video-wrapper video {
  width: 100%; height: 100%; display: block; background: var(--video-well);
}
/* Controls overlay */
.video-controls {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.7) 0%, transparent 22%, transparent 68%, rgba(0,0,0,.85) 100%);
  display: flex; flex-direction: column;
  opacity: 0; transition: opacity .22s;
  pointer-events: none;
}
.video-controls.visible { opacity: 1; pointer-events: all; }
.ctrl-top {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 16px 0;
}
.ctrl-back-btn {
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255,255,255,.12); border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 16px; flex-shrink: 0;
  transition: background .2s;
}
.ctrl-back-btn:hover { background: rgba(255,255,255,.22); }
.ctrl-title { flex: 1; min-width: 0; }
.ctrl-title h4 {
  font-size: 14px; font-weight: 700; color: #fff;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ctrl-title p {
  font-size: 11px; color: rgba(255,255,255,.5);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ctrl-center {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 28px;
}
.ctrl-btn {
  width: 46px; height: 46px; border-radius: 50%;
  background: rgba(255,255,255,.12);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; color: #fff; cursor: pointer;
  border: none; transition: background .2s, transform .1s;
}
.ctrl-btn:hover { background: rgba(255,255,255,.2); }
.ctrl-btn:active { transform: scale(.9); }
.ctrl-play {
  width: 64px; height: 64px;
  background: var(--grad);
  box-shadow: 0 0 28px rgba(43,91,238,.6);
  font-size: 28px;
}
.ctrl-play:hover { opacity: .9; }
.ctrl-bottom { padding: 0 16px 14px; }
.seek-bar-wrap { position: relative; height: 18px; display: flex; align-items: center; margin-bottom: 6px; cursor: pointer; }
.seek-bar-track {
  width: 100%; height: 3px; background: rgba(255,255,255,.22);
  border-radius: 2px; position: relative; overflow: visible;
  transition: height .14s ease;
}

.seek-bar-wrap:hover .seek-bar-track,
.seek-bar-wrap.dragging .seek-bar-track { height: 5px; }
.seek-bar-buffered {
  height: 100%; background: rgba(255,255,255,.38); border-radius: 2px;
  position: absolute; left: 0; top: 0; transition: width .25s ease;
}
.seek-bar-fill {
  height: 100%; background: var(--primary); border-radius: 2px;
  position: absolute; left: 0; top: 0; transition: width .1s;
}
.seek-bar-thumb {
  width: 12px; height: 12px; border-radius: 50%; background: #fff;
  position: absolute; top: 50%; transform: translate(-50%, -50%) scale(0);
  box-shadow: 0 0 8px rgba(43,91,238,.6);
  transition: left .1s, transform .14s ease;
}
.seek-bar-wrap:hover .seek-bar-thumb { transform: translate(-50%, -50%) scale(1); }
.seek-bar-wrap.dragging .seek-bar-thumb { transform: translate(-50%, -50%) scale(1.3); }

.seek-preview {
  position: absolute; bottom: 26px; left: 0; z-index: 5;
  transform: translateX(-50%) translateY(4px) scale(.96);
  opacity: 0; pointer-events: none;
  transition: opacity .16s ease, transform .16s ease;
}
.seek-preview.show { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); }
.seek-preview canvas {
  display: block; width: 160px; height: 90px; background: #000;
  border-radius: 10px; border: 2px solid rgba(255,255,255,.92);
  box-shadow: 0 10px 28px rgba(0,0,0,.55);
}
.seek-preview-time {
  margin: 6px auto 0; width: fit-content;
  font-size: 11.5px; font-weight: 800; color: #fff;
  background: rgba(0,0,0,.75); border-radius: 6px; padding: 3px 9px;
}
@media (max-width: 560px) {
  .seek-preview canvas { width: 120px; height: 67px; }
}
.ctrl-row {
  display: flex; align-items: center; justify-content: space-between;
}
.ctrl-time { font-size: 11px; color: #fff; font-weight: 600; }
.ctrl-time span { color: rgba(255,255,255,.45); font-weight: 400; }
.ctrl-fs-btn {
  background: none; border: none; color: #fff; font-size: 22px;
  cursor: pointer; padding: 2px; transition: color .2s;
}
.ctrl-fs-btn:hover { color: var(--primary); }

/* Speed control */
.ctrl-row-right { display: flex; align-items: center; gap: 8px; }
.volume-wrap { position: relative; display: flex; align-items: center; }
.ctrl-volume-btn {
  background: rgba(255,255,255,.14); border: none; color: #fff;
  cursor: pointer; width: 28px; height: 28px; border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s;
}
.ctrl-volume-btn:hover { background: rgba(255,255,255,.26); }
.ctrl-volume-btn i { width: 15px; height: 15px; }
.volume-menu {
  position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%);
  background: rgba(12,12,24,.97); border: 1px solid rgba(255,255,255,.1);
  border-radius: 12px; padding: 12px 10px;
  box-shadow: 0 8px 28px rgba(0,0,0,.6); z-index: 20;
}
.volume-menu.hidden { display: none; }
.volume-slider {
  -webkit-appearance: none; appearance: none;
  width: 90px; height: 4px; border-radius: 2px;
  background: rgba(255,255,255,.25); outline: none; cursor: pointer; display: block;
}
.volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 14px; height: 14px; border-radius: 50%; background: #fff;
  box-shadow: 0 0 8px rgba(43,91,238,.6); cursor: pointer;
}
.volume-slider::-moz-range-thumb {
  width: 14px; height: 14px; border-radius: 50%; background: #fff; border: none;
  box-shadow: 0 0 8px rgba(43,91,238,.6); cursor: pointer;
}
.volume-slider::-moz-range-track { background: rgba(255,255,255,.25); height: 4px; border-radius: 2px; }

.speed-wrap { position: relative; }
.ctrl-speed-btn {
  background: rgba(255,255,255,.14); border: none; color: #fff;
  font-size: 11px; font-weight: 800; cursor: pointer; letter-spacing: .3px;
  padding: 4px 9px; border-radius: 7px; min-width: 36px;
  transition: background .15s; white-space: nowrap;
}
.ctrl-speed-btn:hover { background: rgba(255,255,255,.26); }
.speed-menu {
  position: absolute; bottom: calc(100% + 8px); right: 0;
  background: rgba(12,12,24,.97); border: 1px solid rgba(255,255,255,.1);
  border-radius: 12px; overflow: hidden; min-width: 76px;
  box-shadow: 0 8px 28px rgba(0,0,0,.6); z-index: 20;
}
.speed-menu.hidden { display: none; }
#quality-btn { min-width: 44px; }
#quality-menu { min-width: 96px; }
.speed-opt {
  padding: 9px 18px; font-size: 13px; font-weight: 600;
  color: rgba(255,255,255,.65); cursor: pointer; text-align: center;
  transition: background .12s, color .12s;
}
.speed-opt:hover { background: rgba(255,255,255,.07); color: #fff; }
.speed-opt.active { color: var(--primary); }

/* Sidebar overlay + drawer */
.sidebar-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.65);
  z-index: 300; opacity: 0; pointer-events: none;
  transition: opacity .3s; backdrop-filter: blur(2px);
}
.sidebar-overlay.open { opacity: 1; pointer-events: auto; }

.left-sidebar {
  position: fixed; top: var(--banner-h, 0px); left: 0; bottom: 0; width: min(300px, 86vw);
  background: var(--card);
  border-right: 1px solid var(--border);
  z-index: 301; display: flex; flex-direction: column;
  transform: translateX(-100%);
  transition: transform .3s cubic-bezier(.4,0,.2,1);
  overflow-y: auto; overflow-x: hidden;
  scrollbar-width: none;
}
.left-sidebar::-webkit-scrollbar { display: none; }
.left-sidebar.open { transform: translateX(0); }

/* Sidebar hero header */
.sidebar-head {
  position: relative; overflow: hidden;
  padding: 32px 20px 28px;
  background: linear-gradient(145deg, rgba(43,91,238,.22) 0%, rgba(123,73,223,.16) 60%, transparent 100%);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.sidebar-head::before {
  content: ''; position: absolute; top: -40px; right: -40px;
  width: 160px; height: 160px; border-radius: 50%;
  background: radial-gradient(circle, rgba(43,91,238,.3) 0%, transparent 70%);
  pointer-events: none;
}
.sidebar-head-logo {
  display: block; height: 40px; margin-bottom: 20px;
  filter: drop-shadow(0 2px 12px rgba(43,91,238,.5));
}
.sidebar-head-tagline {
  font-size: 11px; font-weight: 600; letter-spacing: .4px;
  color: var(--muted-fg); line-height: 1.5;
}
.sidebar-close-btn {
  position: absolute; top: 14px; right: 14px;
  background: var(--overlay-1); border: 1px solid var(--border);
  color: var(--muted-fg); cursor: pointer;
  padding: 6px; border-radius: 10px;
  display: flex; align-items: center;
  transition: color .15s, background .15s;
}
.sidebar-close-btn:hover { color: var(--fg); background: var(--overlay-2); }

/* Section labels */
.sidebar-section-label {
  font-size: 9px; font-weight: 900; letter-spacing: 1.8px;
  color: var(--muted-fg); text-transform: uppercase;
  padding: 20px 20px 8px; display: flex; align-items: center; gap: 10px;
}
.sidebar-section-label::after {
  content: ''; flex: 1; height: 1px;
  background: var(--border);
}

/* Items */
.sidebar-item {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 20px; font-size: 13px; font-weight: 600;
  color: var(--fg); cursor: pointer;
  transition: background .15s, color .15s; text-decoration: none;
  border-left: 3px solid transparent; margin: 1px 0;
}
.sidebar-item:hover {
  background: var(--overlay-1);
  color: var(--fg);
  border-left-color: rgba(43,91,238,.6);
}
.sidebar-item-icon {
  width: 32px; height: 32px; border-radius: 9px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--overlay-1);
}
.sidebar-item-icon svg { width: 15px; height: 15px; }
.sidebar-item-text { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-badge {
  font-size: 8px; font-weight: 900; letter-spacing: .6px;
  padding: 3px 7px; border-radius: 20px; text-transform: uppercase;
  flex-shrink: 0;
}
.sidebar-badge.coming { background: rgba(251,191,36,.15); color: #fbbf24; border: 1px solid rgba(251,191,36,.3); }

/* Hamburger */
.hamburger-btn {
  background: none; border: none; color: var(--muted-fg); cursor: pointer;
  padding: 7px; border-radius: 10px; display: flex; align-items: center;
  transition: color .15s, background .15s; flex-shrink: 0;
}
.hamburger-btn:hover { color: var(--fg); background: var(--overlay-1); }
.hamburger-btn svg { width: 20px; height: 20px; }

/* Double-tap flash */
.seek-flash {
  position: absolute; top: 0; bottom: 0; width: 120px;
  display: flex; align-items: center; justify-content: center;
  pointer-events: none; border-radius: 0;
  font-size: 32px; color: #fff;
}
.seek-flash.left { left: 0; background: linear-gradient(90deg, rgba(43,91,238,.25), transparent); border-radius: 0 50% 50% 0; }
.seek-flash.right { right: 0; background: linear-gradient(270deg, rgba(43,91,238,.25), transparent); border-radius: 50% 0 0 50%; }

/* Buffering spinner in video */
.video-buffering {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  pointer-events: none;
}

.video-error {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 12px; background: rgba(0,0,0,0.75); color: #fff; text-align: center; padding: 0 24px; z-index: 5;
}
.video-error-msg { font-size: 13.5px; color: rgba(255,255,255,0.75); max-width: 360px; }
.video-error-retry {
  padding: 9px 20px; border-radius: 999px; border: none; cursor: pointer;
  background: var(--primary); color: #fff; font-weight: 700; font-size: 13.5px;
}

/* ── Sidebar ── */
.player-sidebar {
  border-left: 1px solid var(--border);
  background: var(--card);
  overflow-y: auto;
  display: flex; flex-direction: column;
}
.sidebar-search-wrap {
  position: relative; padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--card); flex-shrink: 0;
}
.sidebar-search-icon {
  position: absolute; left: 28px; top: 50%; transform: translateY(-50%);
  color: var(--muted-fg); width: 16px; height: 16px; pointer-events: none;
}
.sidebar-search-input {
  width: 100%; background: var(--secondary); border: 1px solid var(--border);
  border-radius: var(--r); padding: 10px 14px 10px 38px;
  color: var(--fg); font-size: 14px; outline: none; font-family: var(--font);
}
.sidebar-search-input:focus { border-color: var(--primary); }
#sidebar-modules { flex: 1; }

/* ── Module accordion ── */
.sidebar-toc-head {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 14px 18px 10px; flex-shrink: 0;
}
.sidebar-toc-head-label {
  font-size: 10.5px; font-weight: 800; letter-spacing: .12em;
  color: var(--muted-fg); text-transform: uppercase;
}
.sidebar-toc-head-pct { font-size: 11px; font-weight: 800; color: var(--primary); }

.sidebar-module {
  border-bottom: 1px solid var(--border);
  position: relative;
}
.sidebar-module::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--grad); opacity: 0;
  transform: scaleY(.4); transform-origin: center;
  transition: opacity .25s ease, transform .25s ease;
}
.sidebar-module.is-active::before { opacity: 1; transform: scaleY(1); }

.sidebar-module-header {
  display: flex; align-items: center; gap: 13px;
  padding: 14px 16px; cursor: pointer; background: var(--secondary);
  transition: background .18s ease, transform .18s ease, padding-left .18s ease;
  user-select: none;
}
.sidebar-module-header:hover { background: var(--card-2); transform: translateX(3px); }
.sidebar-module.is-locked .sidebar-module-header { opacity: .55; }
.sidebar-module.is-locked .sidebar-module-header:hover { transform: none; }
.sidebar-module.is-done .sidebar-module-header { opacity: .78; }

/* progress ring */
.sidebar-module-ring {
  position: relative; width: 40px; height: 40px; flex-shrink: 0;
}
.sidebar-module-ring > svg { width: 40px; height: 40px; transform: rotate(-90deg); display: block; }
.sidebar-module-ring .ring-track { stroke: var(--border); }
.sidebar-module-ring .ring-fill {
  stroke: var(--primary);
  stroke-linecap: round;
  transition: stroke-dashoffset .6s cubic-bezier(.4, 0, .2, 1), stroke .3s ease;
}
.sidebar-module.is-active .ring-fill { stroke: url(#smodGrad); }
.sidebar-module.is-done   .ring-fill { stroke: var(--success); }
.sidebar-module-ring-center {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 800; color: var(--muted-fg);
}
.sidebar-module.is-active .sidebar-module-ring-center { color: var(--fg); }
.sidebar-module.is-done   .sidebar-module-ring-center { color: var(--success); }
.sidebar-module-ring-center i,
.sidebar-module-ring-center svg { width: 15px; height: 15px; transform: none; }

.sidebar-module-main { flex: 1; min-width: 0; }
.sidebar-module-title {
  font-size: 13.5px; font-weight: 800; color: var(--fg); line-height: 1.3;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.sidebar-module.is-active .sidebar-module-title { color: var(--primary); }

.sidebar-module-chips {
  display: flex; align-items: center; gap: 10px; margin-top: 5px;
  font-size: 10.5px; color: var(--muted-fg); font-weight: 700;
}
.sidebar-module-chips .chip { display: inline-flex; align-items: center; gap: 3px; }
.sidebar-module-chips .chip i { width: 11px; height: 11px; }
.sidebar-module-chips .chip.progress { color: var(--primary); }
.sidebar-module.is-done .sidebar-module-chips .chip.progress { color: var(--success); }
.sidebar-module-chips .chip.drip { color: var(--warning); }

.sidebar-module-chevron {
  color: var(--muted-fg); flex-shrink: 0; margin-left: auto;
  transition: transform .3s cubic-bezier(.4, 0, .2, 1), color .2s ease;
}
.sidebar-module-chevron i,
.sidebar-module-chevron svg { width: 18px; height: 18px; display: block; }
.sidebar-module.open .sidebar-module-chevron { transform: rotate(90deg); color: var(--primary); }

.sidebar-module-body {
  background: var(--bg);
  max-height: 0; overflow: hidden;
  opacity: 0;
  transition: max-height .38s cubic-bezier(.4, 0, .2, 1), opacity .25s ease;
}
.sidebar-module.open .sidebar-module-body {
  max-height: 3000px; opacity: 1;
}

/* ── Class item ── */
.sidebar-class-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 18px; cursor: pointer;
  border-bottom: 1px solid var(--border);
  transition: background .15s;
}
.sidebar-class-item:hover:not(.locked) { background: var(--overlay-1); }
.sidebar-class-item.active { background: rgba(43,91,238,.15); border-left: 3px solid var(--primary); padding-left: 15px; }
.sidebar-class-item.locked { opacity: .35; cursor: default; }
.sidebar-class-thumb {
  position: relative; width: 100px; flex-shrink: 0;
  aspect-ratio: 16/9; border-radius: 6px; overflow: hidden; background: #1A1A3E;
}
.sidebar-class-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sidebar-class-playing {
  position: absolute; inset: 0; background: rgba(0,0,0,.55);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 4px; color: #fff;
}
.sidebar-class-playing span { font-size: 9px; font-weight: 800; letter-spacing: 0.8px; text-transform: uppercase; }
.sidebar-class-playing i { width: 16px; height: 16px; }
.sidebar-class-info { flex: 1; min-width: 0; }
.sidebar-class-title {
  font-size: 13px; font-weight: 600; color: var(--fg); line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.sidebar-class-dur { font-size: 11px; color: var(--muted-fg); margin-top: 4px; font-weight: 500; }
.sidebar-class-meta { display: flex; align-items: center; gap: 8px; margin-top: 4px; flex-wrap: wrap; }
.sidebar-class-meta .sidebar-class-dur { margin-top: 0; }
.sidebar-class-quiz-badge {
  display: inline-flex; align-items: center; gap: 3px;
  font-size: 10px; font-weight: 700;
  color: var(--success); background: rgba(46,184,96,.14);
  padding: 2px 7px; border-radius: 20px;
}
.sidebar-class-quiz-badge.pending {
  color: var(--warning); background: rgba(245,158,11,.16);
  animation: quiz-badge-pulse 1.6s ease-in-out infinite;
}
.sidebar-class-quiz-badge i { width: 10px; height: 10px; }
@keyframes quiz-badge-pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: .55; }
}
.sidebar-class-quiz-flag {
  position: absolute; right: 4px; bottom: 4px;
  width: 18px; height: 18px; border-radius: 50%;
  background: rgba(46,184,96,.9);
  display: flex; align-items: center; justify-content: center;
}
.sidebar-class-quiz-flag.pending { background: rgba(245,158,11,.95); }
.sidebar-class-quiz-flag i { width: 11px; height: 11px; color: #fff; }
.sidebar-class-check {
  flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: background .15s, transform .1s;
}
.sidebar-class-check:hover { background: var(--overlay-1); transform: scale(1.08); }
.sidebar-class-check i { width: 19px; height: 19px; color: var(--muted-fg); opacity: .5; }
.sidebar-class-check.done { background: rgba(46,184,96,.16); }
.sidebar-class-check.done i { color: var(--success); opacity: 1; }
.sidebar-class-check.done:hover { background: rgba(46,184,96,.26); }
.sidebar-class-check.locked-icon { cursor: default; }
.sidebar-class-check.locked-icon:hover { background: transparent; transform: none; }
.sidebar-class-check.locked-icon i { width: 16px; height: 16px; opacity: .4; }

/* Memorizando o módulo — mesmo desenho de um item de aula da sidebar
   (.sidebar-class-item), só com a thumb no gradiente azul da marca (--grad,
   mesmo do resto do app — nada de verde/roxo solto) + um selinho no canto.
   O brilho anima por DENTRO da thumb (inset), pra não vazar pra cima e
   sobrepor a linha anterior da lista — no PC, com os itens coladinhos, um
   box-shadow normal vazava feio em cima do item de cima. */
.memorization-entry {
  border-radius: var(--r-sm);
}
.memorization-entry-thumb {
  position: relative;
  background: var(--grad);
  display: flex; align-items: center; justify-content: center;
  animation: memo-thumb-shimmer 2.4s ease-in-out infinite;
}
@keyframes memo-thumb-shimmer {
  0%, 100% { box-shadow: inset 0 0 0 0 rgba(255,255,255,0); }
  50%      { box-shadow: inset 0 0 26px 6px rgba(255,255,255,.28); }
}
.memorization-entry-thumb i { width: 22px; height: 22px; color: #fff; }
.memorization-entry-badge {
  position: absolute; left: 6px; top: 6px;
  font-size: 8px; font-weight: 800; letter-spacing: .3px;
  color: #fff; background: rgba(0,0,0,.35); padding: 2px 6px; border-radius: 4px;
}

/* Avaliação de fim de módulo — precisa se destacar de verdade das aulas
   normais da lista, não só ter uma thumb diferente: vira um cartãozinho
   próprio (margem + fundo em degradê + borda âmbar), separado visualmente
   das linhas ao redor, com a thumb brilhando por dentro (inset, contido). */
.assessment-entry {
  margin: 8px 10px;
  padding: 10px 12px;
  border-radius: var(--r);
  background: linear-gradient(135deg, rgba(217,119,6,.18), rgba(245,158,11,.05));
  border: 1px solid rgba(217,119,6,.5);
  transition: transform .15s ease, border-color .15s ease, background .15s ease;
}
.sidebar-class-item.assessment-entry:hover {
  background: linear-gradient(135deg, rgba(217,119,6,.26), rgba(245,158,11,.08));
  transform: translateY(-1px);
}
.assessment-entry.done {
  background: linear-gradient(135deg, rgba(46,184,96,.18), rgba(46,184,96,.05));
  border-color: rgba(46,184,96,.5);
}
.sidebar-class-item.assessment-entry.done:hover {
  background: linear-gradient(135deg, rgba(46,184,96,.26), rgba(46,184,96,.08));
}
.assessment-entry-thumb {
  position: relative;
  background: linear-gradient(135deg, #D97706, #F59E0B);
  display: flex; align-items: center; justify-content: center;
  animation: assessment-thumb-shimmer 2.4s ease-in-out infinite;
  box-shadow: 0 0 0 2px rgba(217,119,6,.3);
}
@keyframes assessment-thumb-shimmer {
  0%, 100% { box-shadow: 0 0 0 2px rgba(217,119,6,.3), inset 0 0 0 0 rgba(255,255,255,0); }
  50%      { box-shadow: 0 0 0 2px rgba(217,119,6,.5), inset 0 0 26px 6px rgba(255,255,255,.3); }
}
.assessment-entry.done .assessment-entry-thumb {
  background: linear-gradient(135deg, #059669, #2EB860);
  box-shadow: 0 0 0 2px rgba(46,184,96,.3);
}
.assessment-entry.done .assessment-entry-thumb { animation-name: assessment-thumb-shimmer-done; }
@keyframes assessment-thumb-shimmer-done {
  0%, 100% { box-shadow: 0 0 0 2px rgba(46,184,96,.3), inset 0 0 0 0 rgba(255,255,255,0); }
  50%      { box-shadow: 0 0 0 2px rgba(46,184,96,.5), inset 0 0 26px 6px rgba(255,255,255,.3); }
}
.assessment-entry-thumb i { width: 22px; height: 22px; color: #fff; }
.assessment-entry-thumb img { width: 100%; height: 100%; object-fit: cover; }
.assessment-entry-badge {
  position: absolute; left: 6px; top: 6px; z-index: 1;
  font-size: 8px; font-weight: 800; letter-spacing: .3px;
  color: #fff; background: rgba(0,0,0,.4); padding: 3px 7px; border-radius: 4px;
}
.assessment-entry-lock {
  position: absolute; inset: 0; z-index: 1;
  background: rgba(0,0,0,.45);
  display: flex; align-items: center; justify-content: center;
}
.assessment-entry-lock i { width: 18px; height: 18px; color: #fff; }
.locked-assessment { opacity: .55; }
.locked-assessment .assessment-entry-thumb { animation: none; box-shadow: none; }
.sidebar-class-item.locked-assessment:hover { transform: none; }

/* ── Info below video ── */
.info-breadcrumb {
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
  margin-bottom: 10px;
}
.crumb {
  padding: 4px 12px; border-radius: 20px;
  font-size: 12px; font-weight: 700;
}
.crumb-primary { background: rgba(43,91,238,.18); color: var(--primary); }
.crumb-muted { background: var(--secondary); color: var(--muted-fg); }
.crumb-arrow { color: var(--muted-fg); font-size: 14px; }
.info-title { font-size: 22px; font-weight: 900; line-height: 1.3; color: var(--fg); margin-top: 4px; }

.player-below-head-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.complete-btn {
  display: flex; align-items: center; gap: 6px; flex-shrink: 0;
  padding: 7px 12px; margin-top: 4px;
  border-radius: 20px; border: 1px solid var(--border);
  background: var(--muted); color: var(--muted-fg);
  font-size: 12px; font-weight: 700; cursor: pointer;
  transition: all .15s ease;
}
.complete-btn:hover { filter: brightness(1.1); }
.complete-btn svg { width: 15px; height: 15px; }
.complete-btn.done {
  background: rgba(46,184,96,.15); color: var(--success, #2eb860);
  border-color: rgba(46,184,96,.4); cursor: default;
}

/* Description — always visible, no toggle */
.desc-section {
  padding: 18px 28px 20px;
  border-top: 1px solid var(--border);
}
.desc-body {
  font-size: 14px; color: var(--muted-fg); line-height: 1.8;
}
.desc-body li { margin-bottom: 6px; padding-left: 4px; }
.desc-body p { margin-bottom: 10px; }

/* ── Reações da aula (curtidas + visualizações) ── */
.lesson-reactions {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  margin-top: 12px;
}
.lesson-like {
  position: relative;
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 14px; border-radius: 999px;
  background: var(--secondary); border: 1px solid var(--border);
  color: var(--muted-fg); font-family: var(--font); font-weight: 800;
  font-size: 12.5px; cursor: pointer;
  transition: background .18s ease, border-color .18s ease, color .18s ease, transform .12s ease;
}
.lesson-like:hover { background: var(--card-2); color: var(--fg); }
.lesson-like:active { transform: scale(.94); }
.lesson-like svg { width: 16px; height: 16px; transition: transform .2s ease; }
.lesson-like.liked {
  color: #fff; border-color: transparent;
  background: linear-gradient(135deg, #F0316E, #D94FA0);
}
.lesson-like.liked svg { fill: currentColor; }
.lesson-like.pop { animation: lessonLikePop .42s cubic-bezier(.2, 1.6, .4, 1); }
@keyframes lessonLikePop {
  0% { transform: scale(1); }
  35% { transform: scale(1.22); }
  60% { transform: scale(.94); }
  100% { transform: scale(1); }
}
.lesson-like-count { font-variant-numeric: tabular-nums; min-width: 12px; }
.lesson-like-burst {
  position: absolute; left: 18px; top: 50%; width: 0; height: 0;
  pointer-events: none;
}
.lb-particle {
  position: absolute; left: 0; top: 0; width: 7px; height: 7px;
  border-radius: 50%; background: linear-gradient(135deg, #F0316E, #FF7BA6);
  animation: lbFly .62s ease-out forwards;
}
@keyframes lbFly {
  0%   { transform: translate(0, 0) scale(.4); opacity: 1; }
  70%  { opacity: 1; }
  100% { transform: translate(var(--lbx), var(--lby)) scale(1); opacity: 0; }
}
.lesson-views {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12.5px; font-weight: 700; color: var(--muted-fg);
}
.lesson-views svg { width: 15px; height: 15px; }
.lesson-views span { font-variant-numeric: tabular-nums; }

.lesson-published {
  display: flex; align-items: center; gap: 7px;
  padding: 12px 28px; font-size: 12px; font-weight: 600;
  color: var(--muted-fg); border-top: 1px solid var(--border);
}
.lesson-published svg { width: 14px; height: 14px; flex-shrink: 0; }

@media (max-width: 520px) {
  .lesson-reactions { gap: 10px; }
  .lesson-views-word { display: none; }
  .lesson-published { padding: 12px 18px; }
}

/* Generic section */
.info-section { border-bottom: 1px solid var(--border); }
.info-section-header {
  display: flex; align-items: center; gap: 12px;
  padding: 20px 28px 12px;
}
.info-section-title { font-size: 13px; font-weight: 800; letter-spacing: 1.2px; text-transform: uppercase; color: var(--fg); }
.info-section-count { margin-left: auto; font-size: 13px; color: var(--muted-fg); font-weight: 700; }

/* Card de anúncio (sidebar do player) — quando "Expansível" está ligado no
   admin, passar o mouse desliza pra fora o texto completo do anúncio. */
.ann-card {
  background: var(--card); border: 1px solid var(--border); border-radius: 14px;
  padding: 8px 10px; margin: 8px 12px; box-shadow: 0 3px 10px rgba(0,0,0,.16);
  cursor: pointer;
  transition: box-shadow .2s ease, border-color .2s ease;
}
.ann-card:hover { box-shadow: 0 10px 26px rgba(0,0,0,.3); border-color: rgba(123,73,223,.4); }
.ann-card-row { display: flex; align-items: center; gap: 10px; }
.ann-card-fold {
  max-height: 0; overflow: hidden; opacity: 0;
  transition: max-height .28s ease, opacity .2s ease;
}
.ann-card:hover .ann-card-fold { max-height: 170px; opacity: 1; }
.ann-card-fold-inner { margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--border); }
.ann-card-fold-desc {
  margin: 0; font-size: 12px; line-height: 1.5; color: var(--muted-fg);
  max-height: 120px; overflow-y: auto; padding-right: 4px; white-space: normal;
  scrollbar-width: thin; scrollbar-color: var(--border) transparent;
}
.ann-card-fold-desc::-webkit-scrollbar { width: 4px; }
.ann-card-fold-desc::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
.ann-card-fold-price { margin-top: 8px; font-size: 12px; font-weight: 800; color: var(--success); }
@media (hover: none) { .ann-card-fold { display: none !important; } }

/* Página de anúncio (abre no lugar do player) */
.ann-page-wrap { max-width: 900px; margin: 0 auto; }
.ann-page-cover { width: 100%; max-height: 420px; overflow: hidden; border-radius: 0 0 12px 12px; background: var(--bg); }
.ann-page-cover img { width: 100%; height: 100%; max-height: 420px; object-fit: cover; display: block; }
.ann-page-product {
  display: flex; align-items: center; gap: 14px;
  padding: 20px 28px; flex-wrap: wrap;
}
.ann-page-product-thumb {
  width: 56px; height: 56px; border-radius: 10px; overflow: hidden; flex-shrink: 0;
  background: rgba(43,91,238,.12); display: flex; align-items: center; justify-content: center;
}
.ann-page-product-thumb img { width: 100%; height: 100%; object-fit: cover; }
.ann-page-product-thumb i { width: 22px; height: 22px; color: var(--primary); }
.ann-page-product-meta { flex: 1; min-width: 160px; }
.ann-page-product-title { font-size: 15px; font-weight: 800; color: var(--fg); line-height: 1.35; }
.ann-page-product-price { font-size: 13px; color: var(--muted-fg); font-weight: 700; margin-top: 4px; }
.ann-page-buy { width: auto; padding: 12px 22px; font-size: 13.5px; white-space: nowrap; }
.ann-page-desc { padding: 4px 28px 20px; font-size: 14px; color: var(--muted-fg); line-height: 1.75; white-space: pre-wrap; }
@media (max-width: 640px) {
  .ann-page-product { padding: 16px; }
  .ann-page-buy { width: 100%; justify-content: center; }
  .ann-page-desc { padding: 4px 16px 20px; }
}

/* ── Grupo "Seu próximo aprendizado começa aqui" no topo da sidebar —
   cabeçalho pequeno com ícone em degradê acima dos .ann-card de sempre, pra
   não parecer um anúncio avulso e sim uma recomendação em grupo. O destaque
   fica no cabeçalho (compacto); os cards embaixo continuam minimalistas. ── */
.sidebar-ads-group { padding-top: 6px; }
.sidebar-ads-group-head {
  display: flex; align-items: center; gap: 9px;
  margin: 6px 12px 8px;
}
.sidebar-ads-group-icon {
  width: 26px; height: 26px; border-radius: 8px; flex-shrink: 0;
  background: var(--grad); display: flex; align-items: center; justify-content: center;
  box-shadow: 0 3px 10px rgba(43,91,238,.4);
  color: #fff;
}
.sidebar-ads-group-icon i, .sidebar-ads-group-icon svg { width: 13px; height: 13px; color: #fff; }
.sidebar-ads-group-title { font-size: 11.5px; font-weight: 800; color: var(--fg); line-height: 1.25; }
.sidebar-ads-group-sub { font-size: 10px; font-weight: 600; color: var(--muted-fg); margin-top: 1px; }

/* Materials */
.materials-row {
  display: flex; gap: 10px; overflow-x: auto;
  padding: 4px 20px 16px;
}
.materials-row::-webkit-scrollbar { height: 0; }
.material-card {
  flex-shrink: 0; width: 96px;
  background: var(--secondary); border: 1px solid var(--border);
  border-radius: var(--r); padding: 10px 10px 8px;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  cursor: pointer; transition: border-color .2s, background .2s;
  text-decoration: none;
}
.material-card:hover { border-color: var(--primary); background: rgba(43,91,238,.08); }
.material-icon {
  width: 40px; height: 40px; border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; flex-shrink: 0;
}
.comment-menu-btn {
  margin-left: auto; background: none; border: none;
  color: var(--muted-fg); cursor: pointer; font-size: 16px;
  padding: 2px 4px; border-radius: 6px; display: flex;
  transition: color .15s, background .15s;
}
.comment-menu-btn:hover { color: var(--fg); background: var(--overlay-1); }
.material-name {
  font-size: 11px; font-weight: 600; color: var(--fg);
  text-align: center; line-height: 1.3;
  width: 100%; word-break: break-all;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.material-ext { font-size: 10px; color: var(--muted-fg); }
.empty-row {
  margin: 4px 20px 16px;
  display: flex; align-items: center; gap: 10px;
  background: var(--secondary); border: 1px solid var(--border);
  border-radius: var(--r); padding: 12px 16px;
  font-size: 13px; color: var(--muted-fg);
}
.empty-row-icon { font-size: 18px; }

/* Related lessons */
.related-row {
  display: flex; align-items: center; gap: 14px;
  padding: 8px 20px; cursor: pointer; transition: background .15s;
  opacity: 1;
}
.related-row.unavailable { opacity: .5; cursor: default; }
.related-row:not(.unavailable):hover { background: var(--overlay-1); }
.related-thumb {
  width: 120px; height: 68px; border-radius: var(--r-sm);
  flex-shrink: 0; overflow: hidden; position: relative;
  background: linear-gradient(135deg, #1A1A3E, #0D1547);
}
.related-thumb img { width: 100%; height: 100%; object-fit: cover; }
.related-thumb-play {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
}
.play-xs {
  width: 30px; height: 30px; border-radius: 50%;
  background: rgba(0,0,0,.65);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; color: #fff;
}
.related-meta { flex: 1; min-width: 0; }
.related-meta h4 {
  font-size: 12px; font-weight: 600; line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.related-meta p { font-size: 11px; color: var(--muted-fg); margin-top: 3px; }

/* Comments */
.comment-input-row {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 28px 14px;
}
.comment-input-wrap { flex: 1; min-width: 0; position: relative; }
.comment-input {
  width: 100%; background: var(--secondary); border: none; outline: none;
  border-radius: 20px; padding: 10px 46px 10px 16px;
  font-size: 13px; color: var(--fg); resize: none;
  font-family: var(--font); line-height: 1.5;
}
.comment-input::placeholder { color: var(--muted-fg); }
.comment-send-btn {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  background: none; border: none; color: var(--primary); font-size: 16px;
  cursor: pointer; padding: 4px; transition: color .2s;
}
.comment-send-btn:hover { color: var(--accent); }
.comment-row {
  display: flex; gap: 12px; padding: 12px 28px;
}
.uid-avatar {
  width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 800;
}
.comment-body { flex: 1; min-width: 0; }
.comment-staff { padding: 1px 7px; border-radius: 8px; background: rgba(43,91,238,.18); color: var(--link-soft, #9DB4FF); font-size: 10.5px; font-weight: 700; }
.comment-reply-to { color: var(--link-soft, #9DB4FF); font-weight: 600; }
.comment-reply-btn { margin-top: 4px; padding: 2px 0; color: var(--muted-fg); font-size: 12px; font-weight: 600; }
.comment-reply-btn:hover { color: var(--fg); }
.comment-replies { margin-left: 76px; margin-right: 28px; display: flex; flex-direction: column; gap: 10px; }
.comment-replies:not(:empty) { margin-top: 10px; }
.comment-row.is-reply { padding: 0; }
.comment-reply-box { margin: 10px 28px 4px 76px; gap: 8px; align-items: flex-end; }
.comment-reply-input { flex: 1; min-width: 0; resize: none; padding: 9px 12px; border-radius: 14px; border: 1px solid var(--border); background: var(--secondary); color: var(--fg); font-size: 13.5px; font-family: inherit; max-height: 120px; }
.comment-reply-send, .comment-reply-cancel { width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.comment-reply-send { background: var(--grad); color: #fff; }
.comment-reply-cancel { background: var(--overlay-2); color: var(--muted-fg); }
.comment-reply-send i, .comment-reply-cancel i { width: 16px; height: 16px; }
.comment-header { display: flex; align-items: center; gap: 6px; margin-bottom: 4px; flex-wrap: wrap; }
.comment-name { font-size: 12px; font-weight: 700; }
.comment-time { font-size: 11px; color: var(--muted-fg); }
.comment-edited { font-size: 10px; color: var(--muted-fg); font-style: italic; }
.comment-text { font-size: 13px; line-height: 1.55; }
.comment-like {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  background: none; border: none; cursor: pointer; padding: 2px 6px;
  color: var(--muted-fg); transition: color .2s;
}
.comment-like:hover { color: var(--error); }
.comment-like.liked { color: var(--error); }
.comment-like-count { font-size: 10px; font-weight: 700; }

/* Comment context menu */
.ctx-menu {
  position: fixed; z-index: 9000;
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 6px;
  box-shadow: 0 16px 48px rgba(0,0,0,.7);
  min-width: 160px;
}
.ctx-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; border-radius: var(--r-sm);
  font-size: 13px; font-weight: 600; cursor: pointer;
  transition: background .15s;
}
.ctx-item:hover { background: var(--overlay-1); }
.ctx-item.danger { color: var(--error); }
.ctx-item.primary { color: var(--primary); }

/* Edit comment dialog */
.modal-overlay {
  position: fixed; inset: 0; z-index: 8000;
  background: rgba(0,0,0,.7); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center; padding: 24px;
}
.modal-box {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--r-xl); padding: 28px 28px 20px;
  width: 100%; max-width: 460px;
  box-shadow: 0 32px 80px rgba(0,0,0,.7);
  animation: fadeIn .2s ease both;
}
.modal-box h3 { font-size: 16px; font-weight: 700; margin-bottom: 16px; }
.modal-textarea {
  width: 100%; background: var(--secondary); border: 1px solid var(--border);
  color: var(--fg); border-radius: var(--r); padding: 12px 14px;
  font-size: 14px; font-family: var(--font); resize: vertical; min-height: 90px;
  outline: none; transition: border-color .2s;
}
.modal-textarea:focus { border-color: var(--primary); }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 16px; }
.modal-cancel {
  padding: 9px 18px; border-radius: var(--r); border: 1px solid var(--border);
  font-size: 13px; font-weight: 600; color: var(--muted-fg); cursor: pointer;
  transition: color .2s, border-color .2s;
}
.modal-cancel:hover { color: var(--fg); }
.modal-save {
  padding: 9px 18px; border-radius: var(--r);
  background: var(--grad); color: #fff;
  font-size: 13px; font-weight: 700; cursor: pointer;
}
@media (max-width: 480px) {
  .modal-overlay { padding: 16px; }
  .modal-box { padding: 20px 18px 16px; }
  .modal-actions { flex-wrap: wrap; }
  .modal-cancel, .modal-save { flex: 1; text-align: center; }
}

/* ══════════════════════════════════════════════════════════════════════════════
   BOTTOM SHEET (genérico — materiais, quiz, memorizando módulo)
══════════════════════════════════════════════════════════════════════════════ */
.sheet-overlay {
  position: fixed; inset: 0; z-index: 9000;
  background: rgba(0,0,0,.6); backdrop-filter: blur(2px);
  opacity: 0; transition: opacity .22s ease;
}
.sheet-overlay.open { opacity: 1; }
.sheet-panel {
  position: fixed; left: 50%; bottom: 0; z-index: 9001;
  transform: translate(-50%, 100%);
  width: min(94vw, 1140px);
  height: min(90vh, 920px);
  background: var(--card); border: 1px solid var(--border); border-bottom: none;
  border-radius: var(--r-xl) var(--r-xl) 0 0;
  display: flex; flex-direction: column;
  box-shadow: 0 -24px 80px rgba(0,0,0,.7);
  transition: transform .3s cubic-bezier(.32,.72,0,1);
}
.sheet-panel.open { transform: translate(-50%, 0); }
.sheet-handle { width: 36px; height: 4px; border-radius: 2px; background: var(--border); margin: 10px auto 4px; flex-shrink: 0; }
.sheet-header {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 8px 20px 14px; border-bottom: 1px solid var(--border); flex-shrink: 0;
}
.sheet-title { font-size: 15px; font-weight: 700; color: var(--fg); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sheet-close {
  background: none; border: none; color: var(--muted-fg); cursor: pointer;
  padding: 4px; border-radius: 8px; display: flex; flex-shrink: 0;
  transition: color .15s, background .15s;
}
.sheet-close:hover { color: var(--fg); background: var(--overlay-1); }
.sheet-body { flex: 1; overflow: auto; min-height: 0; }
.sheet-body iframe { width: 100%; height: 100%; border: 0; display: block; }
.sheet-body img { max-width: 100%; max-height: 100%; display: block; margin: 20px auto; border-radius: var(--r); }
.sheet-fallback {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 14px; padding: 48px 24px; text-align: center; color: var(--muted-fg);
}
.sheet-open-external {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 20px; border-radius: var(--r);
  background: var(--grad); color: #fff; font-size: 13px; font-weight: 700;
  text-decoration: none; cursor: pointer; border: none;
}
.sheet-open-external-bar {
  padding: 10px 20px; border-top: 1px solid var(--border); flex-shrink: 0;
  display: flex; justify-content: center;
}
@media (max-width: 640px) {
  .sheet-panel { width: 100vw; height: 94vh; border-radius: var(--r-xl) var(--r-xl) 0 0; }
}

.sheet-panel--compact { height: auto; max-height: min(80vh, 640px); }
@media (max-width: 640px) {
  .sheet-panel--compact { height: auto; }
}

/* ── Quiz (dentro do bottom sheet genérico) ──────────────────────────────────── */
.quiz-desc { color: var(--muted-fg); font-size: 13px; margin-bottom: 14px; }
.quiz-minscore-note {
  display: flex; align-items: center; gap: 8px;
  background: rgba(43,91,238,.1); color: var(--primary);
  border-radius: var(--r-sm); padding: 8px 12px; margin-bottom: 14px;
  font-size: 12px; font-weight: 600;
}
.quiz-minscore-note i { width: 14px; height: 14px; flex-shrink: 0; }
.quiz-question-card {
  background: var(--secondary); border: 1px solid var(--border);
  border-radius: var(--r); padding: 14px; margin-bottom: 14px;
  transition: border-color .15s;
}
.quiz-question-prompt { font-weight: 700; font-size: 14px; color: var(--fg); margin-bottom: 10px; }
.quiz-option-label {
  display: flex; align-items: center; gap: 10px; padding: 10px 4px;
  font-size: 13px; color: var(--fg); cursor: pointer;
}
.quiz-option-label input[type="radio"], .quiz-option-label input[type="checkbox"] {
  width: 18px; height: 18px; flex-shrink: 0; accent-color: var(--primary); cursor: pointer;
}
.quiz-grid-scroll { overflow-x: auto; }
.quiz-grid-table { border-collapse: collapse; width: 100%; min-width: 420px; }
.quiz-grid-table th, .quiz-grid-table td { padding: 8px 10px; text-align: center; }
.quiz-grid-table thead th {
  font-size: 11px; color: var(--muted-fg); font-weight: 700;
  border-bottom: 1px solid var(--border); white-space: nowrap;
}
.quiz-grid-row-label {
  text-align: left; font-size: 13px; color: var(--fg); font-weight: 600;
  white-space: nowrap; border-bottom: 1px solid var(--border);
}
.quiz-grid-cell { border-bottom: 1px solid var(--border); }
.quiz-grid-cell input[type="radio"] { width: 20px; height: 20px; accent-color: var(--primary); cursor: pointer; }
.quiz-answer-textarea {
  width: 100%; background: var(--secondary); border: 1px solid var(--border);
  color: var(--fg); border-radius: var(--r-sm); padding: 10px; font-family: var(--font);
}
.quiz-result-banner {
  display: flex; align-items: center; gap: 10px;
  border-radius: var(--r-sm); padding: 10px 14px; margin-bottom: 14px;
  font-size: 13px; font-weight: 600;
}
.quiz-result-banner i { width: 18px; height: 18px; flex-shrink: 0; }
.quiz-retake-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; padding: 12px; margin-bottom: 16px;
  border-radius: var(--r); border: 1px solid var(--primary); background: transparent;
  color: var(--primary); font-size: 13px; font-weight: 700; font-family: var(--font); cursor: pointer;
}
.quiz-retake-btn:hover { background: rgba(43,91,238,.08); }

.memo-back-btn {
  display: flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; border-radius: 50%; border: none;
  background: var(--overlay-1); color: var(--fg); cursor: pointer; flex-shrink: 0;
}
.memo-back-btn i, .memo-back-btn svg { width: 15px; height: 15px; color: var(--fg); }
.memo-back-btn:hover { background: var(--overlay-2); }
.memo-icon-btn {
  display: flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 50%; border: none;
  background: none; color: var(--muted-fg); cursor: pointer; flex-shrink: 0;
}
.memo-icon-btn i { width: 16px; height: 16px; }
.memo-icon-btn:hover { background: var(--overlay-1); color: var(--fg); }
.memo-link-btn {
  background: none; border: none; color: var(--muted-fg); font-size: 12px; font-weight: 600;
  font-family: var(--font); display: inline-flex; align-items: center; gap: 5px; cursor: pointer;
  padding: 6px 4px;
}
.memo-link-btn i, .memo-link-btn svg { width: 14px; height: 14px; }
.memo-link-btn:hover:not(:disabled) { color: var(--fg); }
.memo-link-btn:disabled { opacity: .35; cursor: default; }

.memo-btn-primary {
  width: 100%; padding: 11px; border-radius: var(--r); border: none;
  background: var(--primary); color: #fff; font-size: 13px; font-weight: 700;
  font-family: var(--font); cursor: pointer; display: flex; align-items: center;
  justify-content: center; gap: 7px; transition: opacity .15s, background .15s;
}
.memo-btn-primary i { width: 15px; height: 15px; }
.memo-btn-primary:hover:not(:disabled) { opacity: .9; }
.memo-btn-primary:disabled { background: rgba(43,91,238,.35); color: rgba(255,255,255,.5); cursor: default; }
.memo-btn-primary.success { background: var(--success); }
.memo-btn-primary.sm { width: auto; padding: 8px 14px; }
.memo-btn-outline {
  width: 100%; padding: 11px; border-radius: var(--r); border: 1px solid var(--border);
  background: transparent; color: var(--fg); font-size: 13px; font-weight: 700;
  font-family: var(--font); cursor: pointer; display: flex; align-items: center;
  justify-content: center; gap: 7px; transition: border-color .15s;
}
.memo-btn-outline i { width: 15px; height: 15px; }
.memo-btn-outline:hover { border-color: var(--muted-fg); }
.memo-btn-outline.danger { color: var(--error); border-color: rgba(217,38,38,.5); }

.memo-hint { font-size: 12px; color: var(--muted-fg); text-align: center; }

.memo-spinner-sm, .memo-spinner-lg {
  border: 2px solid rgba(255,255,255,.35); border-top-color: #fff; border-radius: 50%;
  animation: spin .7s linear infinite; margin: 0 auto;
}
.memo-spinner-sm { width: 16px; height: 16px; }
.memo-spinner-lg { width: 24px; height: 24px; border-width: 2.5px; }
.memo-tts-btn.outline .memo-spinner-sm {
  border-color: var(--border); border-top-color: var(--primary);
}

/* ── Escolher modo: Pronúncia ou Memorizar ───────────────────────────────────── */
.memo-modeselect { padding: 20px 24px; display: flex; flex-direction: column; gap: 12px; max-width: 640px; margin: 0 auto; }
@media (min-width: 700px) {
  .memo-modeselect { flex-direction: row; flex-wrap: wrap; align-items: stretch; }
  .memo-modeselect-head { flex-basis: 100%; }
  .memo-mode-card { flex: 1 1 0; flex-direction: column; text-align: center; gap: 10px; }
  .memo-mode-card > i:last-child { display: none; }
}
.memo-modeselect-head { text-align: center; margin-bottom: 4px; }
.memo-modeselect-title { font-size: 17px; font-weight: 800; color: var(--fg); }
.memo-modeselect-sub { font-size: 12px; color: var(--muted-fg); margin-top: 4px; }
.memo-mode-card {
  display: flex; align-items: center; gap: 12px; width: 100%;
  background: var(--card); border: 1px solid var(--border); border-radius: 16px;
  padding: 14px; cursor: pointer; font-family: var(--font); text-align: left;
  transition: border-color .15s, transform .15s;
}
.memo-mode-card:hover { border-color: var(--primary); transform: translateY(-1px); }
.memo-mode-icon {
  flex-shrink: 0; width: 44px; height: 44px; border-radius: 13px;
  display: flex; align-items: center; justify-content: center;
}
.memo-mode-icon i, .memo-mode-icon svg { width: 21px; height: 21px; color: #fff; }
.memo-mode-info { flex: 1; min-width: 0; }
.memo-mode-title { font-size: 14px; font-weight: 700; color: var(--fg); }
.memo-mode-sub { font-size: 11px; color: var(--muted-fg); margin-top: 2px; }
.memo-mode-card > i:last-child { width: 18px; height: 18px; color: var(--muted-fg); flex-shrink: 0; }

/* ── Menu de 6 modos de memorização ───────────────────────────────────────────── */
.memo-menu-head {
  display: flex; align-items: center; gap: 8px; padding: 12px 14px 2px;
}
.memo-menu-head-text { flex: 1; text-align: center; }
.memo-menu-head-title { font-size: 14px; font-weight: 700; color: var(--fg); }
.memo-menu-head-sub { font-size: 11px; color: var(--muted-fg); margin-top: 1px; }
.rocksby-header-logo { height: 20px; display: block; }
.memo-menu-head-logo { margin: 0 auto; }
.sheet-title .rocksby-header-logo { height: 18px; }
.memo-grid {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; padding: 12px 24px 20px;
  max-width: 640px; margin: 0 auto;
}
.memo-grid-card {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 6px; background: var(--card); border: 1px solid var(--border); border-radius: 16px;
  padding: 16px 10px; cursor: pointer; font-family: var(--font); text-align: center;
  transition: border-color .15s, transform .15s;
  flex: 0 1 calc(50% - 10px);
}
@media (min-width: 560px) { .memo-grid-card { flex-basis: calc(33.333% - 7px); } }
@media (max-width: 480px) { .memo-grid-card { flex-basis: 100%; } }
@media (min-width: 560px) { .memo-grid--decks .memo-grid-card { flex-basis: calc(25% - 7.5px); } }
.memo-grid-card:hover { border-color: var(--primary); transform: translateY(-1px); }
.memo-grid-icon {
  width: 42px; height: 42px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
}
.memo-grid-icon i { width: 20px; height: 20px; }
.memo-grid-title { font-size: 13px; font-weight: 700; color: var(--fg); }
.memo-grid-sub { font-size: 10.5px; color: var(--muted-fg); }

/* ── Cabeçalho de jogo (comum a todos os modos) ──────────────────────────────── */
.memo-game-header { background: var(--card); border-bottom: 1px solid var(--border); padding: 2px 2px 10px; }
.memo-game-header-row { display: flex; align-items: center; gap: 6px; padding: 2px 6px; }
.memo-game-header-name {
  flex: 1; text-align: center; font-size: 13px; font-weight: 600; color: var(--fg);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.memo-game-header-score { display: flex; align-items: center; gap: 8px; padding: 4px 14px 0; }
.memo-score-badge {
  display: inline-flex; align-items: center; gap: 3px; min-width: 38px; justify-content: center;
  padding: 4px 7px; border-radius: 20px; font-size: 12px; font-weight: 700;
}
.memo-score-badge i { width: 12px; height: 12px; }
.memo-score-badge.ok { background: rgba(46,184,96,.12); color: var(--success); border: 1px solid rgba(46,184,96,.35); }
.memo-score-badge.bad { background: rgba(217,38,38,.12); color: var(--error); border: 1px solid rgba(217,38,38,.35); }
.memo-progress-wrap { flex: 1; }
.memo-progress-bar { height: 6px; border-radius: 4px; background: var(--border); overflow: hidden; }
.memo-progress-fill { height: 100%; border-radius: 4px; transition: width .25s ease; }
.memo-progress-label { font-size: 10px; color: var(--muted-fg); text-align: center; margin-top: 3px; }

/* ── Flashcards ───────────────────────────────────────────────────────────────── */
.memo-flash-wrap { padding: 16px 24px; display: flex; flex-direction: column; align-items: center; gap: 12px; max-width: 640px; margin: 0 auto; }
.memo-flip-card { width: 100%; max-width: 300px; height: 172px; perspective: 1200px; cursor: pointer; }
.memo-flip-inner {
  position: relative; width: 100%; height: 100%; text-align: center;
  transition: transform .4s; transform-style: preserve-3d;
}
.memo-flip-card.flipped .memo-flip-inner { transform: rotateY(180deg); }
.memo-flip-front, .memo-flip-back {
  position: absolute; inset: 0; backface-visibility: hidden;
  border-radius: var(--r-lg); display: flex; flex-direction: column;
  align-items: center; justify-content: center; padding: 18px;
  box-shadow: 0 10px 26px rgba(0,0,0,.28);
}
.memo-flip-front { background: var(--card); border: 1px solid var(--border); }
.memo-flip-back { background: var(--grad); color: #fff; transform: rotateY(180deg); }
.memo-flip-label { font-size: 11px; font-weight: 600; letter-spacing: 1px; opacity: .6; }
.memo-flip-content { font-size: 24px; font-weight: 800; margin-top: 10px; }
.memo-flip-sub { font-size: 13px; font-style: italic; opacity: .7; margin-top: 6px; }
.memo-tts-btn {
  width: 38px; height: 38px; border-radius: 50%; border: none; cursor: pointer;
  background: var(--overlay-1); color: var(--fg);
  display: flex; align-items: center; justify-content: center;
}
.memo-tts-btn i { width: 18px; height: 18px; }
.memo-tts-btn:hover { background: var(--overlay-2); }
.memo-tts-btn.outline { border: 1px solid var(--border); background: transparent; margin-top: 8px; }
.memo-flash-actions { display: flex; gap: 10px; width: 100%; max-width: 300px; }

/* ── Aprender / Ouvir / Testar (opções de múltipla escolha) ──────────────────── */
.memo-quiz-wrap, .memo-listen-wrap, .memo-spell-wrap { padding: 18px 24px; display: flex; flex-direction: column; align-items: center; gap: 6px; max-width: 640px; margin: 0 auto; }
.memo-word-card {
  width: 100%; max-width: 420px; background: var(--card); border: 1px solid var(--border); border-radius: 16px;
  padding: 20px 16px; text-align: center; margin-top: 8px; display: flex; flex-direction: column;
  align-items: center; gap: 8px;
}
.memo-word-main { font-size: 24px; font-weight: 800; color: var(--fg); }
.memo-word-phonetic { font-size: 13px; color: var(--muted-fg); font-style: italic; }
.memo-options { width: 100%; display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }
.memo-option {
  width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--border);
  background: var(--card); color: var(--fg); font-size: 14px; font-weight: 500;
  font-family: var(--font); text-align: center; cursor: pointer; transition: background .2s, border-color .2s;
}
.memo-option:hover:not(:disabled) { border-color: var(--primary); }
.memo-option:disabled { cursor: default; }
.memo-option.correct { background: var(--success); border-color: transparent; color: #fff; }
.memo-option.wrong { background: var(--error); border-color: transparent; color: #fff; }

@keyframes memoGlowPulse {
  0%, 100% { box-shadow: 0 0 0 0 transparent; }
  50% { box-shadow: 0 0 10px 1px color-mix(in srgb, var(--success) 55%, transparent); }
}
.memo-glow { animation: memoGlowPulse .52s ease-out; }
@media (min-width: 560px) {
  .memo-options { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
}

/* ── Combinar (jogo da memória) ───────────────────────────────────────────────── */
.memo-match-wrap { padding: 12px 24px; display: flex; flex-direction: column; gap: 6px; max-width: 640px; margin: 0 auto; }
.memo-match-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 6px; }
.memo-match-tile {
  aspect-ratio: 1.3; border-radius: 10px; border: 1px solid var(--border);
  background: var(--card); color: var(--fg); font-size: 12px; font-weight: 600;
  font-family: var(--font); cursor: pointer; padding: 6px; display: flex;
  align-items: center; justify-content: center; text-align: center; transition: all .2s;
}
.memo-match-tile:disabled { cursor: default; }
.memo-match-tile.selected { background: rgba(43,91,238,.15); border-color: var(--primary); color: var(--primary); }
.memo-match-tile.wrong { background: rgba(217,38,38,.12); border-color: var(--error); color: var(--error); }
.memo-match-tile.matched { background: rgba(46,184,96,.15); border-color: rgba(46,184,96,.4); color: var(--success); }
@media (min-width: 560px) { .memo-match-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 480px) { .memo-match-grid { grid-template-columns: repeat(2, 1fr); } }

/* ── Ouvir / Soletrar ─────────────────────────────────────────────────────────── */
.memo-listen-circle {
  width: 92px; height: 92px; border-radius: 50%; border: none; cursor: pointer;
  background: linear-gradient(135deg, #EC4899, #F472B6); box-shadow: 0 6px 18px rgba(236,72,153,.4);
  display: flex; align-items: center; justify-content: center; margin-top: 14px;
}
.memo-listen-circle.sm { width: 76px; height: 76px; background: linear-gradient(135deg, #F59E0B, #FBBF24); box-shadow: 0 6px 18px rgba(245,158,11,.4); }
.memo-listen-circle i { width: 34px; height: 34px; color: #fff; }
.memo-spell-input {
  width: 100%; padding: 13px; border-radius: 12px; border: 1px solid var(--border);
  background: var(--card); color: var(--fg); font-size: 18px; font-weight: 700;
  font-family: var(--font); text-align: center; margin-top: 14px;
}
.memo-spell-input:focus { outline: none; border-color: var(--primary); }
.memo-spell-hint { font-size: 15px; font-weight: 600; letter-spacing: 2px; margin-top: 10px; }
.memo-spell-hint.ok { color: var(--success); }
.memo-spell-hint.bad { color: var(--error); }
.memo-spell-feedback { font-size: 13px; font-weight: 600; margin-top: 6px; }
.memo-spell-feedback.ok { color: var(--success); }
.memo-spell-feedback.bad { color: var(--error); }

/* ── Tela de conclusão (todos os modos) ──────────────────────────────────────── */
.memo-completion { padding: 24px 22px; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; max-width: 420px; margin: 0 auto; }
.memo-completion-ring { position: relative; width: 128px; height: 128px; margin-bottom: 6px; }
.memo-completion-ring svg circle { transition: stroke-dashoffset .5s ease; }
.memo-completion-ring-text {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 1px;
}
.memo-completion-emoji { font-size: 26px; }
.memo-completion-pct { font-size: 24px; font-weight: 800; }
.memo-completion-title { font-size: 18px; font-weight: 800; color: var(--fg); }
.memo-completion-msg { font-size: 13px; color: var(--muted-fg); max-width: 260px; }
.memo-completion-stats {
  display: flex; align-items: center; width: 100%;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: 14px 0; margin: 10px 0 16px;
}
.memo-stat { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; }
.memo-stat-value { font-size: 19px; font-weight: 800; }
.memo-stat-label { font-size: 10px; color: var(--muted-fg); }
.memo-stat-divider { width: 1px; height: 32px; background: var(--border); }
.memo-completion .memo-btn-outline { margin-top: 8px; }

/* ── Prática de pronúncia (gravação + IA) ─────────────────────────────────────── */
.memo-practice-wrap { padding: 12px 24px 20px; display: flex; flex-direction: column; gap: 12px; max-width: 640px; margin: 0 auto; }
.memo-accent-selector { background: var(--card); border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; }
.memo-accent-head {
  width: 100%; display: flex; align-items: center; gap: 7px; padding: 10px 14px;
  background: none; border: none; cursor: pointer; font-family: var(--font);
}
.memo-accent-flag { font-size: 16px; }
.memo-accent-label { font-size: 13px; font-weight: 600; color: var(--fg); }
.memo-accent-speed-pill { font-size: 10px; font-weight: 700; color: var(--primary); background: rgba(43,91,238,.15); padding: 2px 7px; border-radius: 20px; }
.memo-accent-spacer { flex: 1; }
.memo-accent-caption { font-size: 11px; color: var(--muted-fg); }
.memo-accent-head i { width: 15px; height: 15px; color: var(--muted-fg); }
.memo-accent-panel { border-top: 1px solid var(--border); padding: 12px 14px; }
.memo-accent-panel-label { font-size: 10px; font-weight: 700; color: var(--muted-fg); text-transform: uppercase; }
.memo-chip-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.memo-chip {
  padding: 5px 10px; border-radius: 20px; border: 1px solid transparent;
  background: var(--secondary); color: var(--fg); font-size: 12px; font-weight: 500;
  font-family: var(--font); cursor: pointer;
}
.memo-chip.selected { background: var(--primary); color: #fff; border-color: var(--primary); }
.memo-chip.accent.selected { background: var(--accent); border-color: var(--accent); }

.memo-tutor-card {
  position: relative; overflow: hidden; border-radius: var(--r-lg);
  border: 1px solid var(--border); background: linear-gradient(135deg, #0C1A2E, #0D1F3C);
  padding: 18px 16px; display: flex; flex-direction: column; align-items: center; text-align: center;
}
.memo-tutor-sound-badge {
  width: 64px; height: 64px; border-radius: 50%; margin-bottom: 4px;
  border: 2px solid rgba(56,189,248,.5); background: rgba(255,255,255,.06);
  box-shadow: 0 0 14px rgba(56,189,248,.25); transition: box-shadow .25s;
  display: flex; align-items: center; justify-content: center;
}
.memo-tutor-sound-badge.playing { box-shadow: 0 0 24px rgba(56,189,248,.55); }
.memo-tutor-sound-badge i, .memo-tutor-sound-badge svg { width: 26px; height: 26px; color: #fff; }
.memo-tutor-caption { font-size: 9px; font-weight: 800; letter-spacing: 1.4px; color: rgba(125,211,252,.8); margin-top: 10px; }
.memo-tutor-word { font-size: 26px; font-weight: 900; color: #fff; margin-top: 8px; line-height: 1.1; }
.memo-tutor-phonetic { font-size: 13px; color: #93C5FD; font-style: italic; margin-top: 4px; }
.memo-tutor-translation { font-size: 12px; color: rgba(255,255,255,.65); margin-top: 3px; }
.memo-tutor-listen {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 12px;
  padding: 7px 14px; border-radius: 99px; border: 1px solid rgba(56,189,248,.4);
  background: rgba(255,255,255,.06); color: #7DD3FC; font-size: 12px; font-weight: 600;
  font-family: var(--font); cursor: pointer;
}
.memo-tutor-listen i { width: 14px; height: 14px; }
.memo-tutor-listen:hover { background: rgba(255,255,255,.12); }

.memo-practice-nav { display: flex; align-items: center; justify-content: space-between; }
.memo-practice-nav-left { display: flex; align-items: center; gap: 4px; }
.memo-mic-row { display: flex; align-items: center; justify-content: center; gap: 20px; margin-top: 4px; }
.memo-mic-reset {
  width: 40px; height: 40px; border-radius: 50%; border: none; cursor: pointer;
  background: var(--overlay-1); color: var(--muted-fg); display: flex; align-items: center; justify-content: center;
}
.memo-mic-reset i { width: 17px; height: 17px; }
.memo-mic-next {
  width: 40px; height: 40px; border-radius: 50%; border: none; cursor: pointer;
  background: var(--overlay-1); color: var(--muted-fg); display: flex; align-items: center; justify-content: center;
  transition: background .2s, color .2s;
}
.memo-mic-next i, .memo-mic-next svg { width: 17px; height: 17px; }
.memo-mic-next:not(:disabled) { background: var(--primary); color: #fff; }
.memo-mic-next:disabled { cursor: default; opacity: .5; }
.memo-mic-btn {
  width: 72px; height: 72px; border-radius: 50%; border: none; cursor: pointer;
  background: var(--primary); box-shadow: 0 5px 16px rgba(43,91,238,.5);
  display: flex; align-items: center; justify-content: center; transition: background .25s;
}
.memo-mic-btn i, .memo-mic-btn svg { width: 30px; height: 30px; color: #fff; }
.memo-mic-btn.recording { background: var(--error); box-shadow: 0 5px 16px rgba(217,38,38,.5); }
.memo-mic-btn.loading { background: var(--overlay-2); box-shadow: none; }

.memo-error-box {
  padding: 10px; border-radius: var(--r); background: rgba(217,38,38,.12);
  border: 1px solid rgba(217,38,38,.4); color: var(--error); font-size: 13px; text-align: center;
}
.memo-result-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 14px;
}
.memo-result-top { display: flex; align-items: center; gap: 12px; }
.memo-result-score {
  flex-shrink: 0; width: 46px; height: 46px; border-radius: 50%; border: 3px solid;
  display: flex; align-items: center; justify-content: center; font-size: 17px; font-weight: 800;
}
.memo-result-title { font-size: 14px; font-weight: 700; }
.memo-result-transcription { font-size: 11px; color: var(--muted-fg); margin-top: 2px; }
.memo-result-feedback { font-size: 13px; color: var(--fg); margin-top: 8px; }
.memo-result-tip { font-size: 12px; color: var(--accent); background: rgba(123,73,223,.12); border-radius: 10px; padding: 9px; margin-top: 8px; }

@media (max-width: 480px) {
  .memo-modeselect,
  .memo-flash-wrap,
  .memo-quiz-wrap, .memo-listen-wrap, .memo-spell-wrap,
  .memo-match-wrap,
  .memo-practice-wrap {
    padding-left: 16px; padding-right: 16px;
  }
  .memo-grid { padding-left: 16px; padding-right: 16px; }
  .memo-flip-card { height: 210px; }
  .memo-flip-front, .memo-flip-back { overflow-y: auto; }
}

/* ── Sub-sheet (lista de palavras / puladas, dentro do sheet de memorização) ─── */
.memo-subsheet-overlay {
  position: absolute; inset: 0; z-index: 20; display: flex; align-items: flex-end;
  background: rgba(0,0,0,.5); opacity: 0; transition: opacity .2s ease;
}
.memo-subsheet-overlay.open { opacity: 1; }
.memo-subsheet {
  width: 100%; max-height: 75%; background: var(--card); border-top: 1px solid var(--border);
  border-radius: var(--r-xl) var(--r-xl) 0 0; display: flex; flex-direction: column;
  transform: translateY(100%); transition: transform .25s cubic-bezier(.32,.72,0,1); overflow: hidden;
}
.memo-subsheet-overlay.open .memo-subsheet { transform: translateY(0); }
.memo-subsheet-head { padding: 16px 18px 8px; flex-shrink: 0; }
.memo-subsheet-title { font-size: 15px; font-weight: 700; color: var(--fg); }
.memo-subsheet-sub { font-size: 11px; color: var(--muted-fg); margin-top: 3px; }
.memo-subsheet-list { flex: 1; overflow-y: auto; padding: 4px 18px; }
.memo-subsheet-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--border); }
.memo-subsheet-row:last-child { border-bottom: none; }
.memo-subsheet-row.clickable { cursor: pointer; }
.memo-subsheet-row-title { font-size: 13px; font-weight: 600; color: var(--fg); }
.memo-subsheet-row-title.current { color: var(--primary); }
.memo-subsheet-row-sub { font-size: 11px; color: var(--muted-fg); margin-top: 1px; }
.memo-subsheet-row-phon { font-size: 10px; color: var(--muted-fg); font-style: italic; }
.memo-subsheet-num {
  flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%; background: var(--overlay-1);
  color: var(--muted-fg); display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700;
}
.memo-subsheet-num.current { background: var(--primary); color: #fff; }

/* ══════════════════════════════════════════════════════════════════════════════
   COACH CHAT
══════════════════════════════════════════════════════════════════════════════ */
.coach-fab {
  position: fixed; bottom: 28px; right: 28px; z-index: 5000;
  width: 60px; height: 60px; border-radius: 50%;
  background: var(--grad); border: 2px solid rgba(255,255,255,.2); cursor: pointer;
  box-shadow: 0 8px 32px rgba(43,91,238,.55), 0 0 0 4px rgba(43,91,238,.15);
  display: flex; align-items: center; justify-content: center;
  transition: transform .2s, box-shadow .2s;
  overflow: visible; padding: 0;
}
.coach-fab:hover { transform: scale(1.08); box-shadow: 0 12px 40px rgba(43,91,238,.7), 0 0 0 6px rgba(43,91,238,.2); }
.coach-fab.open { box-shadow: none; border-color: var(--border); }
.coach-fab-img {
  width: 100%; height: 100%; object-fit: cover; border-radius: 50%;
  display: block;
}

.coach-panel {
  position: fixed; bottom: 96px; right: 28px; z-index: 5001;
  width: 440px; height: 640px;
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--r-xl);
  box-shadow: 0 24px 80px rgba(0,0,0,.8), 0 0 0 1px rgba(43,91,238,.12);
  display: flex; flex-direction: column;
  overflow: hidden;
  transform-origin: bottom right;
  animation: popIn .22s cubic-bezier(.34,1.56,.64,1) both;
}
@keyframes popIn {
  from { opacity: 0; transform: scale(.85); }
  to   { opacity: 1; transform: scale(1); }
}
/* Fechar também anima (antes só abria com o popIn e fechava seco, removendo
   o elemento na hora) — ver toggleCoach()/toggleSupportChat() no JS, que
   agora adicionam essa classe e só removem o elemento depois. */
.coach-panel.closing { animation: popOut .18s cubic-bezier(.4,0,1,1) both; }
@keyframes popOut {
  from { opacity: 1; transform: scale(1); }
  to   { opacity: 0; transform: scale(.88); }
}
.coach-header {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 18px; border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(43,91,238,.10), rgba(0,0,0,.2));
}
.coach-header-icon {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--grad); display: flex; align-items: center; justify-content: center;
  font-size: 18px; flex-shrink: 0; overflow: hidden;
  box-shadow: 0 0 0 2px rgba(255,255,255,.12);
}
.coach-header-icon img { width: 100%; height: 100%; object-fit: cover; display: block; }
.coach-header h3 { font-size: 15px; font-weight: 800; }
.coach-header p { font-size: 11px; color: var(--muted-fg); }
.coach-threads-btn {
  margin-left: auto; padding: 6px 12px; border-radius: var(--r);
  background: var(--overlay-1); border: 1px solid var(--border);
  font-size: 12px; font-weight: 600; color: var(--muted-fg); cursor: pointer;
  transition: color .2s, background .2s;
}
.coach-threads-btn:hover { color: var(--fg); background: var(--overlay-2); }
.coach-new-btn {
  padding: 6px 12px; border-radius: var(--r);
  background: var(--grad); color: #fff;
  font-size: 12px; font-weight: 700; cursor: pointer;
  border: none;
}

/* ── Rocksby tools (Pronúncia / Escrita / Memorização / Gamificação) ────────── */
/* bottom/right daqui são só o valor de repouso — como raio do dock flutuante
   (ver seção DOCK FLUTUANTE abaixo), a posição real vem de lá via !important. */
.rocksby-fab {
  position: fixed; bottom: 100px; right: 28px; z-index: 5000;
  width: 60px; height: 60px; border-radius: 50%;
  background: var(--rocksby-badge-bg);
  border: 2px solid var(--rocksby-badge-border); cursor: pointer;
  box-shadow: var(--rocksby-badge-shadow);
  display: flex; align-items: center; justify-content: center; color: #fff;
  transition: transform .2s, box-shadow .2s; overflow: hidden; padding: 9px;
}
.rocksby-fab i { width: 24px; height: 24px; }
.rocksby-fab-img { width: 100%; height: 100%; object-fit: contain; display: block; }
.rocksby-fab:hover { transform: scale(1.08); box-shadow: var(--rocksby-badge-shadow-hover); }
.rocksby-fab.open { box-shadow: none; border-color: var(--border); }

.rocksby-subhead {
  display: flex; align-items: center; gap: 10px; padding: 14px 16px;
  border-bottom: 1px solid var(--border); flex-shrink: 0;
}
.rocksby-back-btn {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--overlay-1); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--fg); cursor: pointer; flex-shrink: 0;
}
.rocksby-back-btn:hover { background: var(--overlay-2); }
.rocksby-subhead-title { font-size: 14px; font-weight: 800; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.rocksby-pron-wrap { padding: 20px 16px; display: flex; flex-direction: column; gap: 14px; align-items: center; text-align: center; }
.rocksby-writing-setup { padding: 16px; display: flex; flex-direction: column; gap: 14px; overflow-y: auto; }
.rocksby-writing-chat { flex: 1; display: flex; flex-direction: column; overflow: hidden; min-height: 0; }
.rocksby-writing-msgs { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.rocksby-writing-input-area { display: flex; gap: 8px; padding: 12px 16px; border-top: 1px solid var(--border); flex-shrink: 0; }

@media (max-width: 600px) {
  .rocksby-fab { right: 16px; bottom: 88px; }
}

.dock-fab {
  position: fixed !important; z-index: 5000;
  width: 52px !important; height: 52px !important;
  transition: opacity .28s ease, transform .28s cubic-bezier(.34,1.56,.64,1);
}
#coach-fab.dock-fab   { right: 28px; bottom: 28px; }
#rocksby-fab.dock-fab { right: 28px; bottom: 90px; }

.live-call .dock-fab, .live-call #coach-panel-el { display: none !important; }
html.in-live-call .dock-fab, html.in-live-call .coach-fab, html.in-live-call .rocksby-fab, html.in-live-call .coach-panel, html.in-live-call .rocksby-panel, html.in-live-call #coach-panel-el, html.in-live-call .dock-hub { display: none !important; }

.rocksby-fab-label { position: fixed; right: 20px; bottom: 154px; width: 68px; z-index: 4999; display: flex; justify-content: center; pointer-events: none; transition: opacity .28s ease; }
.rocksby-fab-label img { height: 15px; width: auto; max-width: 100%; display: block; background: none; }
.rocksby-fab-label .for-light { display: none; }
:root[data-theme="light"] .rocksby-fab-label .for-light { display: block; }
:root[data-theme="light"] .rocksby-fab-label .for-dark { display: none; }
.rocksby-fab.dock-hidden + .rocksby-fab-label, .rocksby-fab.open + .rocksby-fab-label { opacity: 0; }
html.in-live-call .rocksby-fab-label { display: none !important; }
@media (max-width: 600px) { .rocksby-fab-label { right: 8px; bottom: 142px; } }

.dock-fab.dock-hidden {
  opacity: 0; pointer-events: none; transform: scale(.75) translateY(10px);
}

@media (max-width: 600px) {
  #coach-fab.dock-fab   { right: 16px; bottom: 16px; }
  #rocksby-fab.dock-fab { right: 16px; bottom: 78px; }
}

/* ── Suporte ──────────────────────────────────────────────────────────────── */
.floating-dock-badge {
  position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px;
  padding: 0 5px; border-radius: 999px; background: var(--error, #D92626);
  border: 2px solid var(--bg); color: #fff; font-size: 10.5px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}

/* ══════════════════════════════════════════════════════════════════════════════
   CHAT DE SUPORTE
══════════════════════════════════════════════════════════════════════════════ */
.support-panel { width: 460px; }
@media (max-width: 600px) { .support-panel { width: calc(100vw - 40px); } }

.support-panel.admin-mode {
  width: min(920px, calc(100vw - 56px));
  height: min(680px, calc(100vh - 140px));
}
@media (max-width: 900px) {
  .support-panel.admin-mode { width: calc(100vw - 32px); right: 16px; }
}

.support-messages { flex: 1; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 16px; }

.support-quick-topics { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; width: 100%; }
.support-quick-chip {
  padding: 10px 14px; border-radius: var(--r-lg);
  background: var(--overlay-1); border: 1px solid var(--border);
  color: var(--fg); font-size: 12.5px; font-weight: 600; text-align: left;
  cursor: pointer; transition: background .15s, border-color .15s;
}
.support-quick-chip:hover { background: var(--overlay-2); border-color: var(--primary); }

.support-typing-row { display: flex; align-items: center; gap: 10px; padding: 0 18px 10px; }
.support-typing-dots {
  display: flex; align-items: center; gap: 4px; padding: 10px 14px;
  background: var(--secondary); border: 1px solid var(--border);
  border-radius: var(--r-lg); border-bottom-left-radius: 4px; width: fit-content;
}
.support-typing-dots span {
  width: 6px; height: 6px; border-radius: 50%; background: var(--muted-fg);
  animation: supportTypingBounce 1.2s infinite ease-in-out;
}
.support-typing-dots span:nth-child(2) { animation-delay: .15s; }
.support-typing-dots span:nth-child(3) { animation-delay: .3s; }
@keyframes supportTypingBounce {
  0%, 60%, 100% { transform: translateY(0); opacity: .5; }
  30% { transform: translateY(-4px); opacity: 1; }
}

/* Botão de anexar + chip de anexo pendente */
.support-attach-btn {
  width: 38px; height: 38px; border-radius: 50%; flex-shrink: 0;
  background: var(--overlay-1); border: 1px solid var(--border); color: var(--muted-fg);
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  transition: background .15s, color .15s;
}
.support-attach-btn:hover { background: var(--overlay-2); color: var(--fg); }
.support-attach-btn i { width: 17px; height: 17px; }
.support-att-chip-row { padding: 0 18px 10px; }
.support-att-chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 10px; border-radius: 999px;
  background: var(--overlay-1); border: 1px solid var(--border);
  font-size: 12px; font-weight: 600; color: var(--fg);
}
.support-att-chip button { display: flex; color: var(--muted-fg); cursor: pointer; }
.support-att-chip button i { width: 13px; height: 13px; }

/* Anexos dentro da bolha */
.support-att-image { display: block; border-radius: var(--r-lg); overflow: hidden; max-width: 220px; margin-bottom: 6px; }
.support-att-image img { width: 100%; display: block; }
.support-att-video { border-radius: var(--r-lg); overflow: hidden; max-width: 240px; margin-bottom: 6px; }
.support-att-video video { width: 100%; display: block; background: #000; border-radius: var(--r-lg); }
.support-att-file {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px;
  border-radius: var(--r-lg); background: var(--overlay-1); border: 1px solid var(--border);
  max-width: 240px; margin-bottom: 6px; text-decoration: none;
}
.support-att-file-icon {
  width: 34px; height: 34px; border-radius: 8px; flex-shrink: 0;
  background: var(--grad); color: #fff; font-size: 9px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
.support-att-file-info { flex: 1; min-width: 0; }
.support-att-file-name { font-size: 12.5px; font-weight: 700; color: var(--fg); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.support-att-file-size { font-size: 11px; color: var(--muted-fg); }
.support-att-file i { width: 15px; height: 15px; color: var(--muted-fg); flex-shrink: 0; }

/* Caixa de entrada (admin/owner) */
.support-admin-layout { display: flex; flex: 1; min-height: 0; }
.support-admin-list { width: 260px; flex-shrink: 0; border-right: 1px solid var(--border); display: flex; flex-direction: column; min-height: 0; }

#support-admin-list-panel { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.support-admin-search { display: flex; align-items: center; gap: 6px; padding: 10px; border-bottom: 1px solid var(--border); }
.support-admin-search i { width: 14px; height: 14px; color: var(--muted-fg); flex-shrink: 0; }
.support-admin-search input { flex: 1; min-width: 0; background: none; border: none; font-size: 12.5px; color: var(--fg); }
.support-admin-search input:focus { outline: none; }
.support-admin-new-btn, .support-admin-back {
  width: 26px; height: 26px; border-radius: 8px; flex-shrink: 0;
  background: var(--overlay-1); border: 1px solid var(--border); color: var(--primary);
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  transition: background .15s;
}
.support-admin-new-btn:hover, .support-admin-back:hover { background: var(--overlay-2); }
.support-admin-new-btn i, .support-admin-back i { width: 14px; height: 14px; }
.support-admin-back { color: var(--muted-fg); }
.support-admin-threads { flex: 1; min-height: 0; overflow-y: auto; }
.support-thread-row {
  display: flex; align-items: center; gap: 8px; padding: 10px; cursor: pointer;
  border-bottom: 1px solid var(--border); transition: background .15s;
}
.support-thread-row:hover { background: var(--overlay-1); }
.support-thread-row.active { background: var(--overlay-2); }

.support-thread-row.unread { border-left: 3px solid var(--primary); padding-left: 7px; background: rgba(43,91,238,.06); }
.support-thread-row.unread .support-thread-name { color: var(--fg); font-weight: 800; }
.support-thread-row.unread .support-thread-preview { color: var(--fg); font-weight: 600; }
.support-thread-av {
  width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0; object-fit: cover;
  display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 800;
}
.support-thread-info { flex: 1; min-width: 0; }
.support-thread-row-top { display: flex; align-items: baseline; gap: 6px; }
.support-thread-name { flex: 1; min-width: 0; font-size: 12px; font-weight: 700; color: var(--fg); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.support-thread-time { flex-shrink: 0; font-size: 9.5px; color: var(--muted-fg); }
.support-thread-row-bottom { display: flex; align-items: center; gap: 6px; margin-top: 1px; }
.support-thread-preview { flex: 1; min-width: 0; font-size: 10.5px; color: var(--muted-fg); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.support-thread-badge {
  min-width: 16px; height: 16px; padding: 0 4px; border-radius: 999px;
  background: var(--primary); color: #fff; font-size: 9.5px; font-weight: 800;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.support-admin-conv { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.support-admin-conv-header { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--border); }
.support-conv-av { width: 38px; height: 38px; flex-shrink: 0; }
.support-conv-head-info { min-width: 0; }

/* Thread list */
.coach-threads {
  flex: 1; overflow-y: auto;
  display: flex; flex-direction: column;
}
.thread-item {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 18px; cursor: pointer;
  border-bottom: 1px solid var(--border);
  transition: background .15s;
}
.thread-item:hover { background: var(--overlay-1); }
.thread-item.active { background: rgba(43,91,238,.1); }
.thread-icon { font-size: 18px; color: var(--muted-fg); flex-shrink: 0; }
.thread-info { flex: 1; min-width: 0; }
.thread-title { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.thread-date { font-size: 11px; color: var(--muted-fg); }
.thread-del {
  background: none; border: none; color: var(--muted-fg);
  font-size: 14px; cursor: pointer; padding: 4px; border-radius: 6px;
  opacity: 0; transition: opacity .15s, color .15s;
}
.thread-item:hover .thread-del { opacity: 1; }
.thread-del:hover { color: var(--error); }
.threads-empty {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 12px; color: var(--muted-fg); font-size: 14px;
}
.threads-empty-icon { font-size: 40px; }
.threads-new-btn {
  padding: 10px 20px; border-radius: var(--r);
  background: var(--grad); color: #fff;
  font-size: 13px; font-weight: 700; border: none; cursor: pointer;
}

/* Chat messages */
.coach-messages {
  flex: 1; overflow-y: auto;
  padding: 16px 18px; display: flex; flex-direction: column; gap: 14px;
}
.msg-row { display: flex; gap: 10px; }
.msg-row.user { flex-direction: row-reverse; }
.msg-avatar {
  width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 800; overflow: hidden;
  background: var(--grad);
}
.msg-avatar.coach { background: var(--grad); }
.msg-avatar.coach img { width: 100%; height: 100%; object-fit: cover; display: block; }
.msg-avatar.user-av { background: rgba(43,91,238,.25); color: var(--primary); font-size: 12px; }
.msg-bubble {
  max-width: 80%; padding: 10px 14px; border-radius: var(--r-lg);
  font-size: 13px; line-height: 1.6;
}
.msg-col { display: flex; flex-direction: column; max-width: 80%; gap: 10px; }
.msg-col .msg-bubble { max-width: 100%; }
.msg-time { font-size: 10px; color: var(--muted-fg); opacity: .7; margin-top: -5px; }
.msg-row.user .msg-time { align-self: flex-end; }
.msg-row.assistant .msg-time { align-self: flex-start; }
.msg-edited { font-style: italic; opacity: .8; }

.support-date-sep { display: flex; align-items: center; justify-content: center; margin: 4px 0 10px; }
.support-date-sep span {
  font-size: 10.5px; font-weight: 700; color: var(--muted-fg);
  background: var(--overlay-1); padding: 4px 12px; border-radius: 999px;
}

.msg-reply-quote {
  display: flex; flex-direction: column; gap: 1px;
  padding: 5px 9px; margin-bottom: 6px; border-radius: 8px;
  border-left: 3px solid rgba(255,255,255,.5);
  background: rgba(255,255,255,.12);
  font-size: 11.5px; line-height: 1.35;
}
.msg-row.assistant .msg-reply-quote { border-left-color: var(--primary); background: var(--overlay-1); }
.msg-reply-quote strong { font-size: 10.5px; opacity: .9; }
.msg-reply-quote span { opacity: .85; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.msg-bubble.msg-deleted {
  display: flex; align-items: center; gap: 6px;
  background: transparent !important; border: 1px dashed var(--border);
 color: var(--muted-fg) !important; font-style: italic; font-size: 12.5px;
}
.msg-bubble.msg-deleted i { width: 14px; height: 14px; color: var(--muted-fg); }
.msg-actions {
  display: flex; align-items: center; gap: 2px; align-self: center;
  opacity: 0; pointer-events: none; transition: opacity .15s ease;
}
.msg-row:hover .msg-actions { opacity: 1; pointer-events: auto; }
.msg-action-btn {
  width: 26px; height: 26px; border-radius: 50%; flex-shrink: 0;
  background: var(--overlay-1); border: 1px solid var(--border); color: var(--muted-fg);
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  transition: background .15s, color .15s;
}
.msg-action-btn:hover { background: var(--overlay-2); color: var(--fg); }
.msg-action-btn i { width: 13px; height: 13px; }

/* Barra acima do input — "respondendo a" / "editando mensagem" */
.support-composer-context {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 14px; margin: 0 2px 6px;
  background: var(--overlay-1); border-left: 3px solid var(--primary);
  border-radius: 8px; font-size: 12px; color: var(--fg);
}
.support-composer-context i:first-child { width: 14px; height: 14px; color: var(--primary); flex-shrink: 0; }
.support-composer-context span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.support-composer-context button { color: var(--muted-fg); cursor: pointer; flex-shrink: 0; display: flex; }
.support-composer-context button i { width: 14px; height: 14px; }

.coach-phrases { display: flex; flex-direction: column; gap: 8px; }
.coach-phrases-pills { display: flex; flex-wrap: wrap; gap: 7px; }
.coach-phrase-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 12px; border-radius: 999px;
  background: var(--card); border: 1px solid var(--border);
  color: var(--primary); font-size: 12px; font-weight: 700;
  cursor: pointer; transition: border-color .15s, transform .1s;
}
.coach-phrase-pill:hover { border-color: var(--primary); transform: translateY(-1px); }
.coach-phrase-pill i { width: 13px; height: 13px; flex-shrink: 0; }
.coach-phrase-pill.is-playing { color: #fff; background: var(--grad); border-color: transparent; }
.coach-phrases-speeds { display: flex; gap: 6px; }
.coach-speed-chip {
  padding: 4px 10px; border-radius: 999px; font-size: 11px; font-weight: 700;
  background: var(--secondary); border: 1px solid var(--border); color: var(--muted-fg);
  cursor: pointer; transition: background .15s, color .15s, border-color .15s;
}
.coach-speed-chip.selected { background: var(--primary); border-color: var(--primary); color: #fff; }

/* Empty state (nova conversa / sem mensagens) */
.coach-empty {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; gap: 6px; padding: 20px 30px;
}
.coach-empty-av {
  width: 72px; height: 72px; border-radius: 50%; overflow: hidden;
  background: var(--grad); margin-bottom: 10px;
  box-shadow: 0 8px 30px rgba(43,91,238,.35);
}
.coach-empty-av img { width: 100%; height: 100%; object-fit: cover; display: block; }
.coach-empty h4 { font-size: 16px; font-weight: 700; margin: 0; }
.coach-empty p { font-size: 13px; color: var(--muted-fg); line-height: 1.6; max-width: 280px; margin: 0; }
.msg-row.user .msg-bubble {
  background: var(--grad); color: #fff;
  border-bottom-right-radius: 4px;
}
.msg-row.assistant .msg-bubble {
  background: var(--secondary); color: var(--fg);
  border-bottom-left-radius: 4px; border: 1px solid var(--border);
}
/* Markdown in coach messages */
.msg-bubble strong { font-weight: 700; }
.msg-bubble em { font-style: italic; }
.msg-bubble code {
  background: var(--overlay-2); border-radius: 4px;
  padding: 1px 5px; font-size: 12px; font-family: monospace;
}
.msg-bubble pre {
  background: var(--overlay-2); border-radius: var(--r-sm);
  padding: 10px 12px; margin: 8px 0; overflow-x: auto;
}
.msg-bubble pre code { background: none; padding: 0; }
.msg-bubble ul, .msg-bubble ol { padding-left: 18px; margin: 6px 0; }
.msg-bubble li { margin-bottom: 3px; }
.msg-bubble p { margin-bottom: 6px; }
.msg-bubble p:last-child { margin-bottom: 0; }
.msg-bubble a { color: inherit; text-decoration: underline; }
.msg-bubble hr { border: 0; border-top: 1px solid var(--border); margin: 10px 0; }
.msg-bubble .md-table-wrap { overflow-x: auto; margin: 8px 0; max-width: 100%; }
.msg-bubble table { border-collapse: collapse; font-size: 13px; width: max-content; min-width: 100%; }
.msg-bubble th, .msg-bubble td { border: 1px solid var(--border); padding: 6px 10px; vertical-align: top; }
.msg-bubble th { background: var(--overlay-2); font-weight: 700; }
.msg-row.user .msg-bubble th, .msg-row.user .msg-bubble td { border-color: rgba(255,255,255,.35); }
/* Indicador temporário de uso de tool (consulta a cursos/progresso) */
.coach-tool-row { display: flex; align-items: center; gap: 10px; margin: 0 0 4px; animation: toolFadeIn .25s ease both; }
.coach-tool-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: 20px;
  background: rgba(43,91,238,.12); border: 1px solid rgba(43,91,238,.35);
  color: var(--primary); font-size: 11.5px; font-weight: 600;
  animation: toolPulse 1.4s ease-in-out infinite;
}
.coach-tool-badge i { width: 12px; height: 12px; }
@keyframes toolFadeIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }
@keyframes toolPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(43,91,238,.28); }
  50%      { box-shadow: 0 0 0 6px rgba(43,91,238,0); }
}

.typing-dot {
  display: inline-block; width: 7px; height: 7px; border-radius: 50%;
  background: var(--primary); margin: 0 2px;
  animation: dotBounce 1.2s ease-in-out infinite;
}
.typing-dot:nth-child(2) { animation-delay: .15s; }
.typing-dot:nth-child(3) { animation-delay: .3s; }
@keyframes dotBounce {
  0%, 60%, 100% { transform: translateY(0); opacity: .4; }
  30%           { transform: translateY(-4px); opacity: 1; }
}

/* Coach input */
.coach-input-area {
  padding: 12px 16px; border-top: 1px solid var(--border);
  display: flex; align-items: flex-end; gap: 10px;
}
.coach-textarea {
  flex: 1; background: var(--secondary); border: 1px solid var(--border);
  color: var(--fg); border-radius: var(--r-lg);
  padding: 10px 14px; font-size: 13px; font-family: var(--font);
  resize: none; max-height: 120px; outline: none;
  transition: border-color .2s; line-height: 1.5;
}
.coach-textarea:focus { border-color: var(--primary); }
.coach-textarea::placeholder { color: var(--muted-fg); }
.coach-send {
  width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0;
  background: var(--grad); border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; color: #fff;
  transition: opacity .2s;
}
.coach-send:disabled { opacity: .5; cursor: not-allowed; }

/* ── Loading screen ─────────────────────────────────────────────────────────── */
.loading-screen {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 20px;
}
.loading-screen p { color: var(--muted-fg); font-size: 14px; }

/* ══════════════════════════════════════════════════════════════════════════════
   CONTA DESATIVADA
══════════════════════════════════════════════════════════════════════════════ */
.account-disabled-page {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  padding: 24px; background:
    radial-gradient(circle at 15% 8%, rgba(43,91,238,.14), transparent 45%),
    radial-gradient(circle at 85% 92%, rgba(217,38,38,.12), transparent 45%),
    var(--bg);
}
.account-disabled-card {
  width: 100%; max-width: 440px; text-align: left;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--r-xl);
  padding: 14px 14px 30px; box-shadow: var(--media-shadow); overflow: hidden;
}
.account-disabled-art { height: 240px; border-radius: 22px; overflow: hidden; margin-bottom: 24px; }
.account-disabled-art img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; display: block; }
.account-disabled-card > h1, .account-disabled-card > p, .account-disabled-card > .account-disabled-reason, .account-disabled-card > .auth-submit { margin-left: 12px; margin-right: 12px; }
.account-disabled-card > .auth-submit { width: calc(100% - 24px); }
.account-disabled-card h1 { font-size: 26px; font-weight: 900; line-height: 1.15; color: var(--fg); margin-bottom: 10px; }
.account-disabled-card p { font-size: 15px; color: var(--muted-fg); line-height: 1.6; }
.account-disabled-reason {
  margin: 18px 0 4px; padding: 12px 14px; text-align: left;
  background: var(--secondary); border: 1px solid var(--border); border-radius: var(--r);
}
.account-disabled-reason strong { display: block; font-size: 10.5px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--muted-fg); margin-bottom: 5px; }
.account-disabled-reason span { font-size: 13px; color: var(--fg); line-height: 1.5; }
.account-disabled-card .auth-submit { margin-top: 26px; }

/* ══════════════════════════════════════════════════════════════════════════════
   THEME MENU DROPDOWN
══════════════════════════════════════════════════════════════════════════════ */
.theme-menu-wrap { position: relative; }
.theme-dropdown {
  position: absolute; top: calc(100% + 14px); right: 0;
  min-width: 168px;
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: 0 28px 70px rgba(0,0,0,.35);
  padding: 6px;
  overflow: hidden;
  z-index: 500;
  opacity: 0; transform: translateY(-10px) scale(.95);
  pointer-events: none;
  transition: opacity .2s cubic-bezier(.4,0,.2,1), transform .2s cubic-bezier(.4,0,.2,1);
}
.theme-menu-wrap.open .theme-dropdown {
  opacity: 1; transform: none;
  pointer-events: all;
}
.theme-opt {
  display: flex; align-items: center; gap: 10px;
  width: 100%; padding: 9px 12px; border-radius: var(--r-sm);
  font-size: 13px; font-weight: 600; color: var(--muted-fg);
  background: none; border: none; cursor: pointer; text-align: left;
  font-family: var(--font); transition: background .15s, color .15s;
}
.theme-opt i { width: 16px; height: 16px; flex-shrink: 0; }
.theme-opt:hover { background: var(--overlay-1); color: var(--fg); }
.theme-opt.active { color: var(--primary); background: rgba(43,91,238,.1); }

/* ══════════════════════════════════════════════════════════════════════════════
   USER MENU DROPDOWN
══════════════════════════════════════════════════════════════════════════════ */
.user-menu-wrap { position: relative; }

.nav-user-btn {
  width: 38px; height: 38px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; position: relative;
  border: 2px solid transparent;
  transition: transform .2s, box-shadow .2s;
  font-size: 14px; font-weight: 800;
  background: none;
  flex-shrink: 0;
}
.nav-user-btn:hover { transform: scale(1.08); box-shadow: 0 0 0 3px rgba(43,91,238,.25); }
.nav-user-btn img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover; border-radius: 50%;
  z-index: 2;
}
.nav-user-initial { position: relative; z-index: 1; }
.nav-user-btn > i { width: 18px; height: 18px; }
.nav-online-dot {
  position: absolute; bottom: -1px; right: -1px;
  width: 11px; height: 11px; border-radius: 50%;
  background: var(--success); border: 2.5px solid var(--bg);
  z-index: 3;
}

.user-dropdown {
  position: absolute; top: calc(100% + 14px); right: 0;
  min-width: 248px;
  max-width: calc(100vw - 24px);
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--r-xl);
  box-shadow: 0 28px 70px rgba(0,0,0,.8);
  overflow: hidden;
  z-index: 500;
  opacity: 0; transform: translateY(-10px) scale(.95);
  pointer-events: none;
  transition: opacity .2s cubic-bezier(.4,0,.2,1), transform .2s cubic-bezier(.4,0,.2,1);
}
.user-menu-wrap:hover .user-dropdown {
  opacity: 1; transform: none;
  pointer-events: all;
}

.udrop-header {
  padding: 16px; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 12px;
}
.udrop-av {
  width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 800;
  border: 2px solid; position: relative; overflow: hidden;
}
.udrop-av img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover; z-index: 2;
}
.udrop-av-initial { position: relative; z-index: 1; }
.udrop-info { flex: 1; min-width: 0; }
.udrop-name {
  font-size: 14px; font-weight: 700; color: var(--fg); line-height: 1.2;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.udrop-email {
  font-size: 11px; color: var(--muted-fg); margin-top: 2px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.udrop-connected {
  display: flex; align-items: center; gap: 5px;
  font-size: 11px; font-weight: 700; color: var(--success); margin-top: 5px;
}
.udrop-connected-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--success); flex-shrink: 0;
  animation: pulseOnline 2s ease-in-out infinite;
}

.udrop-guest-header {
  padding: 20px 16px 16px; border-bottom: 1px solid var(--border);
  text-align: center;
}
.udrop-guest-icon {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--overlay-1); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 10px; color: var(--muted-fg);
}
.udrop-guest-icon i { width: 22px; height: 22px; }
.udrop-guest-header h4 { font-size: 14px; font-weight: 700; color: var(--fg); }
.udrop-guest-header p { font-size: 12px; color: var(--muted-fg); margin-top: 4px; }

.udrop-item {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px; cursor: pointer;
  font-size: 13px; font-weight: 600; color: var(--fg);
  transition: background .15s; border: none; background: none;
  width: 100%; text-align: left; font-family: var(--font);
}
.udrop-item:hover { background: var(--overlay-1); }
.udrop-item i { width: 16px; height: 16px; flex-shrink: 0; color: var(--muted-fg); }
.udrop-item.danger { color: var(--error); }
.udrop-item.danger i { color: var(--error); }
.udrop-divider { height: 1px; background: var(--border); margin: 4px 0; }

/* ══════════════════════════════════════════════════════════════════════════════
   PROFILE PAGE
══════════════════════════════════════════════════════════════════════════════ */
.profile-page { padding-top: var(--nav-h); min-height: 100vh; }

.profile-page-header {
  position: sticky; top: calc(var(--nav-h) + var(--banner-h, 0px)); z-index: 50;
  padding: 14px 28px;
  background: var(--bg-scrim);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 14px;
}
.profile-back-btn {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--overlay-1); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--fg); cursor: pointer; transition: background .15s; flex-shrink: 0;
}
.profile-back-btn:hover { background: var(--overlay-2); }
.profile-back-btn i { width: 18px; height: 18px; }
.profile-page-title {
  font-size: 18px; font-weight: 900; letter-spacing: .5px;
  background: var(--grad);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}

.legal-page-inner {
  max-width: 720px; margin: 0 auto; padding: 32px 28px 100px;
  color: var(--fg); font-size: 14px; line-height: 1.7;
}
.legal-page-inner a { color: var(--primary); font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.legal-page-inner a:hover { text-decoration-color: transparent; }

.legal-hero { text-align: center; padding: 12px 0 32px; }
.legal-hero-icon {
  width: 58px; height: 58px; margin: 0 auto 16px; border-radius: 18px;
  background: var(--grad); display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 26px rgba(43,91,238,.35);
}
.legal-hero-icon i { width: 28px; height: 28px; color: #fff; }
.legal-hero h1 { font-size: 24px; font-weight: 900; letter-spacing: .2px; margin: 0 0 8px; }
.legal-hero-subtitle { color: var(--muted-fg); font-size: 14px; max-width: 440px; margin: 0 auto; }
.legal-updated-badge {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 18px;
  padding: 6px 14px; border-radius: 99px; background: var(--card-2); border: 1px solid var(--border);
  color: var(--muted-fg); font-size: 12px; font-weight: 700;
}
.legal-updated-badge i { width: 13px; height: 13px; }

.legal-sections { display: flex; flex-direction: column; gap: 14px; }

.legal-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: 20px 22px; transition: border-color .15s;
}
.legal-card:hover { border-color: var(--overlay-3); }
.legal-card-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.legal-card-icon {
  width: 34px; height: 34px; flex-shrink: 0; border-radius: 10px;
  background: var(--card-2); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
}
.legal-card-icon i { width: 17px; height: 17px; color: var(--primary); }
.legal-card-head h2 { display: flex; align-items: baseline; gap: 8px; font-size: 15.5px; font-weight: 800; }
.legal-card-num { color: var(--muted-fg); font-weight: 700; font-size: 12.5px; }
.legal-card-body p { margin: 0 0 8px; color: var(--muted-fg); }
.legal-card-body p:last-child { margin-bottom: 0; }

.legal-list { list-style: none; margin: 4px 0 8px; padding: 0; color: var(--muted-fg); }
.legal-list li { position: relative; padding-left: 18px; margin-bottom: 6px; }
.legal-list li::before { content: ''; position: absolute; left: 2px; top: 9px; width: 5px; height: 5px; border-radius: 50%; background: var(--primary); }
.legal-list li:last-child { margin-bottom: 0; }
.legal-list strong { color: var(--fg); }

.legal-callout {
  display: flex; align-items: flex-start; gap: 10px; margin-top: 10px;
  padding: 12px 14px; border-radius: var(--r); font-size: 13px; font-weight: 600;
}
.legal-callout i { width: 16px; height: 16px; flex-shrink: 0; margin-top: 1px; }
.legal-callout-warn { background: rgba(232,160,32,.12); border: 1px solid rgba(232,160,32,.3); color: var(--warning); }

.legal-contact-card {
  display: flex; align-items: center; gap: 16px; margin-top: 28px;
  padding: 20px 22px; border-radius: var(--r-lg);
  background: var(--card-2); border: 1px solid var(--border);
}
.legal-contact-icon {
  width: 40px; height: 40px; flex-shrink: 0; border-radius: 12px;
  background: var(--card); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
}
.legal-contact-icon i { width: 19px; height: 19px; color: var(--primary); }
.legal-contact-card strong { font-size: 14px; }
.legal-contact-card p { color: var(--muted-fg); font-size: 13px; margin-top: 2px; }

@media (max-width: 560px) {
  .legal-page-inner { padding: 22px 16px 90px; }
  .legal-card { padding: 16px; }
  .legal-contact-card { flex-direction: column; text-align: center; }
}

/* ══════════════════════════════════════════════════════════════════════════════
   ROCK LIVE: ESTATÍSTICAS
══════════════════════════════════════════════════════════════════════════════ */
.livestats-page-inner {
  max-width: 720px; margin: 0 auto; padding: 32px 28px 100px;
}
.livestats-loading {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  padding: 60px 0; color: var(--muted-fg); font-size: 13px;
}
.livestats-empty {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 70px 20px; color: var(--muted-fg);
}
.livestats-empty-icon {
  width: 58px; height: 58px; margin-bottom: 16px; border-radius: 18px;
  background: var(--card-2); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
}
.livestats-empty-icon i { width: 26px; height: 26px; }
.livestats-empty h2 { font-size: 17px; font-weight: 800; color: var(--fg); margin-bottom: 6px; }
.livestats-empty p { font-size: 13.5px; max-width: 320px; }

.livestats-hero {
  position: relative; overflow: hidden; text-align: center; padding: 32px 20px;
  margin-bottom: 18px; background: var(--card); border: 1px solid var(--border);
  border-radius: var(--r-xl); isolation: isolate;
}
.livestats-hero::before {
  content: ''; position: absolute; inset: -40% -20% auto -20%; height: 220px;
  background: radial-gradient(ellipse at center, rgba(43,91,238,.22), transparent 70%);
  z-index: -1; pointer-events: none;
}
.livestats-hero-teach::before {
  background: radial-gradient(ellipse at center, rgba(123,73,223,.22), transparent 70%);
}
.livestats-hero-icon {
  width: 56px; height: 56px; margin: 0 auto 16px; border-radius: 18px;
  background: var(--grad); display: flex; align-items: center; justify-content: center;
  box-shadow: 0 12px 30px rgba(43,91,238,.4), 0 0 0 6px rgba(43,91,238,.08);
  color: #fff;
}
.livestats-hero-icon i { width: 26px; height: 26px; }
.livestats-hero-value {
  font-size: 34px; font-weight: 900; letter-spacing: .2px; line-height: 1.15;
  background: var(--grad); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.livestats-hero-label { color: var(--muted-fg); font-size: 13px; margin-top: 4px; font-weight: 600; }
.livestats-hero-badge {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 16px;
  padding: 7px 14px; border-radius: 99px; background: var(--card-2); border: 1px solid var(--border);
  color: var(--muted-fg); font-size: 12px; font-weight: 700;
}
.livestats-hero-badge i { width: 13px; height: 13px; }
.livestats-hero-teach .livestats-hero-icon {
  background: var(--grad-acc); box-shadow: 0 12px 30px rgba(123,73,223,.4), 0 0 0 6px rgba(123,73,223,.08);
}
.livestats-hero-teach .livestats-hero-value { background: var(--grad-acc); -webkit-background-clip: text; background-clip: text; }

.livestats-chart-card {
  padding: 20px 18px 18px; margin-bottom: 18px;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--r-lg);
}
.livestats-chart-header { margin-bottom: 20px; }
.livestats-chart-title { font-size: 13.5px; font-weight: 800; color: var(--fg); }
.livestats-chart-subtitle { font-size: 11.5px; color: var(--muted-fg); margin-top: 2px; }
.livestats-chart-bars { display: flex; align-items: flex-end; gap: 6px; height: 108px; }
.livestats-bar-col {
  flex: 1; display: flex; flex-direction: column; align-items: center;
  height: 100%; min-width: 0;
}
.livestats-bar-value {
  font-size: 9.5px; font-weight: 800; color: var(--muted-fg); margin-bottom: 4px;
  white-space: nowrap; height: 12px;
}
.livestats-bar-col--current .livestats-bar-value { color: var(--fg); }
.livestats-bar-track {
  flex: 1; width: 100%; max-width: 26px; display: flex; align-items: flex-end;
  background: var(--overlay-1); border-radius: 6px; overflow: hidden;
}
.livestats-bar-col--current .livestats-bar-track { background: var(--overlay-2); }
.livestats-bar-fill {
  width: 100%; border-radius: 6px; transition: height .35s cubic-bezier(.34,1.56,.64,1); min-height: 3px;
  background: linear-gradient(180deg, var(--bar-color-light, #6C93F5), var(--bar-color, #2B5BEE));
}
.livestats-bar-label {
  font-size: 9.5px; color: var(--muted-fg); margin-top: 7px; font-weight: 600;
  white-space: nowrap;
}
.livestats-bar-col--current .livestats-bar-label { color: var(--bar-color, var(--primary)); font-weight: 800; }

.livestats-section-title { font-size: 12.5px; font-weight: 800; color: var(--muted-fg); letter-spacing: .3px; text-transform: uppercase; margin: 0 0 12px; }

.livestats-courses { display: flex; flex-direction: column; gap: 10px; }
.livestats-course-row {
  display: flex; align-items: center; gap: 14px; padding: 12px 14px;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--r-lg);
  transition: border-color .15s;
}
.livestats-course-row:hover { border-color: var(--overlay-3); }
.livestats-course-thumb {
  width: 44px; height: 44px; flex-shrink: 0; border-radius: 10px;
  background: var(--card-2) center/cover no-repeat; border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center; color: var(--muted-fg);
}
.livestats-course-thumb i { width: 18px; height: 18px; }
.livestats-course-info { flex: 1; min-width: 0; }
.livestats-course-title { font-size: 13.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.livestats-course-meta { font-size: 11.5px; color: var(--muted-fg); margin: 2px 0 8px; }
.livestats-course-bar-track { height: 5px; border-radius: 99px; background: var(--overlay-1); overflow: hidden; }
.livestats-course-bar-fill {
  height: 100%; border-radius: 99px; transition: width .35s ease;
  background: linear-gradient(90deg, var(--bar-color, #2B5BEE), var(--bar-color-light, #6C93F5));
}
.livestats-course-pct { flex-shrink: 0; font-size: 12.5px; font-weight: 800; color: var(--muted-fg); width: 36px; text-align: right; }

@media (max-width: 560px) {
  .livestats-page-inner { padding: 22px 16px 90px; }
  .livestats-hero { padding: 26px 16px; }
}

/* ══════════════════════════════════════════════════════════════════════════════
   VOZ
══════════════════════════════════════════════════════════════════════════════ */
.voice-settings-inner {
  max-width: 560px; margin: 0 auto; padding: 32px 28px 100px;
}
.voice-settings-hint { color: var(--muted-fg); font-size: 13.5px; margin-bottom: 20px; }
.voice-settings-list { display: flex; flex-direction: column; gap: 10px; }
.voice-settings-card {
  display: flex; align-items: center; gap: 14px; padding: 14px 16px;
  background: var(--card); border: 2px solid var(--border); border-radius: var(--r-lg);
  cursor: pointer; transition: border-color .15s;
}
.voice-settings-card:hover { border-color: var(--overlay-3); }
.voice-settings-card.selected { border-color: var(--primary); }
.voice-settings-card-icon {
  width: 44px; height: 44px; flex-shrink: 0; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 17px; font-weight: 800; color: #fff; position: relative; overflow: hidden;
}
.voice-settings-card-icon img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.voice-settings-card-name { flex: 1; font-size: 14.5px; font-weight: 800; }
.voice-settings-card-name small { display: block; margin-top: 2px; font-size: 12px; font-weight: 500; color: var(--muted-fg); }
.voice-settings-card-play {
  width: 34px; height: 34px; flex-shrink: 0; border-radius: 50%; border: none;
  background: none; color: var(--primary); display: flex; align-items: center; justify-content: center;
  cursor: pointer;
}
.voice-settings-card-play i { width: 26px; height: 26px; }
.voice-settings-card-play:disabled { cursor: default; }
.voice-settings-card-check { width: 20px; height: 20px; color: var(--primary); flex-shrink: 0; }

@media (max-width: 560px) {
  .voice-settings-inner { padding: 22px 16px 90px; }
}

.notifpage-inner {
  max-width: 640px; margin: 0 auto; padding: 32px 28px 100px;
}
.notifpage-list { display: flex; flex-direction: column; gap: 8px; }
.notifpage-list .notif-item { padding: 14px; border: 1px solid var(--border); border-radius: var(--r-lg); }
.notifpage-list .notif-item.unread { border-color: color-mix(in srgb, var(--notif-color) 35%, var(--border)); }
.notifpage-list .notif-item-title { font-size: 13.5px; white-space: normal; }
.notifpage-list .notif-item-text { font-size: 12.5px; -webkit-line-clamp: 3; line-clamp: 3; }

@media (max-width: 560px) {
  .notifpage-inner { padding: 22px 16px 90px; }
}

.profile-inner {
  max-width: 1040px; margin: 0 auto; padding: 48px 40px 120px;
}

/* Desktop: coluna da esquerda (avatar até créditos) e coluna da direita
   (navegação + conta) lado a lado, aproveitando telas largas. Colapsa pra
   empilhado (layout de sempre) em @media (max-width: 900px) mais abaixo. */
.profile-grid {
  display: grid; grid-template-columns: 340px 1fr; gap: 56px; align-items: start;
}
.profile-col-left, .profile-col-right { min-width: 0; }

.profile-hero {
  display: flex; flex-direction: column; align-items: center;
  text-align: center; margin-bottom: 36px;
}
.profile-av-wrap { position: relative; width: 92px; height: 92px; margin-bottom: 16px; }
.profile-av {
  width: 92px; height: 92px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 38px; font-weight: 800; overflow: hidden;
  border: 3px solid; position: relative;
}
.profile-av img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover; z-index: 2;
}
.profile-av-initial { position: relative; z-index: 1; }
.profile-av-online {
  position: absolute; bottom: 2px; right: 2px; z-index: 3;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--success); border: 3px solid var(--bg);
}
.profile-name {
  font-size: 22px; font-weight: 900; letter-spacing: -.5px; color: var(--fg);
}
.profile-email { font-size: 13px; color: var(--muted-fg); margin-top: 4px; }
.profile-status {
  display: flex; align-items: center; gap: 7px; justify-content: center;
  margin-top: 10px; font-size: 12px; font-weight: 700; color: var(--success);
}
.profile-status-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--success); flex-shrink: 0;
  animation: pulseOnline 2s ease-in-out infinite;
}
@keyframes pulseOnline {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .5; transform: scale(.85); }
}

.profile-stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
  margin-bottom: 28px;
}
.profile-stat-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 18px 10px;
  display: flex; flex-direction: column; align-items: center; gap: 7px;
  transition: border-color .2s;
}
.profile-stat-card:hover { border-color: rgba(43,91,238,.35); }
.profile-stat-card i { width: 22px; height: 22px; }
.profile-stat-val {
  font-size: 22px; font-weight: 900; line-height: 1;
}
.profile-stat-lbl { font-size: 11px; color: var(--muted-fg); font-weight: 600; text-transform: uppercase; letter-spacing: .5px; }

.profile-credits-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 16px 18px;
}
.profile-credits-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.profile-credits-plan { font-size: 14px; font-weight: 800; color: var(--fg); }
.profile-credits-balance { font-size: 12px; font-weight: 600; color: var(--muted-fg); }
.profile-credits-bar-track { height: 8px; border-radius: 4px; background: var(--border); overflow: hidden; }
.profile-credits-bar-fill { height: 100%; background: var(--grad); border-radius: 4px; transition: width .4s ease; }

.profile-menu { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
/* Item ímpar sobrando sozinho na última linha (ex: 7º item de Navegação) —
   centraliza em vez de deixar preso na coluna da esquerda. */
.profile-menu > .profile-menu-item:last-child:nth-child(odd) {
  grid-column: 1 / -1; max-width: 400px; width: 100%; margin: 0 auto;
}
.profile-menu-item {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 15px 18px;
  display: flex; align-items: center; gap: 14px;
  cursor: pointer; transition: border-color .2s, transform .1s, box-shadow .2s;
  font-size: 14px; font-weight: 600; color: var(--fg);
}
.profile-menu-item:hover {
  border-color: rgba(43,91,238,.4);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0,0,0,.35);
}
.profile-menu-item i { width: 20px; height: 20px; flex-shrink: 0; }
.profile-menu-item-icon {
  width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.profile-menu-item-icon i { width: 18px; height: 18px; }
.profile-menu-chevron { margin-left: auto; color: var(--muted-fg); display: flex; }
.profile-menu-chevron i { width: 16px; height: 16px; }
.profile-menu-item.danger { color: var(--error); border-color: rgba(217,38,38,.25); justify-content: center; }
.profile-menu-item.danger:hover { border-color: rgba(217,38,38,.55); transform: none; box-shadow: none; }
.profile-section-label {
  font-size: 11px; font-weight: 700; color: var(--muted-fg);
  letter-spacing: 1.2px; text-transform: uppercase; margin-bottom: 4px; padding: 0 4px;
}

/* ── Responsive ─────────────────────────────────────────────────────────────── */
.lesson-ads-mobile-slot { display: none; }
@media (max-width: 1024px) {
  .player-layout { grid-template-columns: 1fr; }
  .player-sidebar { display: none; }
  .player-modules-btn { display: flex; }
  .lesson-ads-mobile-slot { display: block; }
  .lesson-ads-mobile-slot .sidebar-ads-group { max-width: 420px; margin: 0 auto; padding: 12px 4px 0; }
}
@media (max-width: 900px) {
  .player-topbar { padding: 12px 16px 10px; }
  .player-video-area { padding: 12px 16px 0; }
  .player-below-head { padding: 16px 16px 12px; }
  .info-title { font-size: 18px; }
  .player-below-head-row { flex-wrap: wrap; }
  .complete-btn { margin-top: 0; }
  /* .catalog-section já tem seu próprio inset via width (calc abaixo) —
     não soma padding-left/right em cima disso, senão dobra a margem lateral. */
  .catalog-section { width: calc(100% - 48px); }
  .modules-list, .classes-list { padding-left: 24px; padding-right: 24px; }
  .module-header-info, .classes-label { padding-left: 24px; padding-right: 24px; }
  .course-info-card { padding-left: 24px; padding-right: 24px; }
  .hero-content { left: 24px; }
  .hero-content h2 { font-size: 28px; }
  .course-cover {
    max-width: none; margin: 0; aspect-ratio: auto; min-height: 0;
    overflow: visible; background: none; box-shadow: none;
  }
  .course-cover img {
    position: static; width: 100%; height: auto;
  }
  .course-cover-overlay { display: none; }
  .back-btn {
    top: 14px; left: 14px;
    background: rgba(0,0,0,.45); padding: 7px 14px 7px 12px; border-radius: 20px;
    color: #fff;
  }
  .back-btn:hover { color: #fff; opacity: .85; }
  .course-cover-content {
    position: static; width: 100%; padding: 18px 24px 4px;
  }
  .cover-title { font-size: 22px; margin-bottom: 8px; }
  .cover-trail-btn { margin-bottom: 12px; padding: 8px 16px; }
  .cover-progress-row { margin-bottom: 5px; }
  .cover-bar { margin-bottom: 14px; }
  .cover-stats { margin-bottom: 14px; gap: 14px; }
  .cover-cta-row { margin-top: 12px; gap: 8px; }
  .live-cta-btn, .continue-cta-btn { padding: 10px 16px; font-size: 12.5px; }
  .coach-panel { width: calc(100vw - 40px); right: 20px; bottom: 88px; }
  .modules-list { gap: 14px; }
  .modules-list .module-card { flex-basis: 150px; max-width: 240px; }

  /* Perfil: volta a empilhar em vez do layout de 2 colunas do desktop. */
  .profile-inner { max-width: 560px; padding: 40px 28px 100px; }
  .livestats-page-inner { padding: 28px 20px 100px; }
  .profile-grid { display: flex; flex-direction: column; gap: 8px; }
  .profile-menu { display: flex; flex-direction: column; gap: 10px; }
  .profile-menu-item { justify-content: center; text-align: center; }
  .profile-menu-chevron { display: none; }
  .profile-menu > .profile-menu-item:last-child:nth-child(odd) {
    grid-column: auto; max-width: none; margin: 0;
  }
}
@media (max-width: 600px) {
  .hero-content h2 { font-size: 22px; }
  .navbar { padding: 0 16px; }
  .catalog-section { width: calc(100% - 32px); }
  .modules-list, .classes-list { padding-left: 16px; padding-right: 16px; }
  .module-header-info, .classes-label { padding-left: 16px; padding-right: 16px; }
  .course-info-card { padding: 16px; }
  .course-cover-content { padding: 16px 16px 4px; }
  .cover-title { font-size: 19px; margin-bottom: 6px; }
  .cover-stats { flex-wrap: wrap; gap: 10px; margin-bottom: 12px; }
  .cover-cta-row { gap: 6px; }
  .coach-panel { right: 12px; bottom: 82px; height: 75vh; }
  .coach-fab { right: 16px; bottom: 16px; }
  .modules-list { gap: 12px; }
  .modules-list .module-card { flex-basis: 130px; max-width: 200px; }
  .course-card-wrap { width: 190px; }

  /* Profile + dropdown responsive */
  .profile-page-header { padding: 14px 16px; }
  .profile-inner { padding: 24px 16px 80px; }
  .livestats-page-inner { padding: 24px 16px 80px; }
  .profile-stats { gap: 8px; }
  .profile-stat-card { padding: 14px 8px; }
  .profile-stat-val { font-size: 18px; }
  .user-dropdown { min-width: 220px; }
}
@media (max-width: 420px) {
  .catalog-section { width: calc(100% - 24px); }
  .courses-row { gap: 12px; }
  .course-card-wrap { width: 148px; }
  .course-card-meta h3 { font-size: 13px; }
  .modules-list { padding-left: 12px; padding-right: 12px; gap: 10px; }
  .modules-list .module-card { flex-basis: 108px; max-width: 160px; }
}

/* ═══════════════════════════════════════════════════════════════════════════════
   COMMUNITY (RockTalkers)
   ═══════════════════════════════════════════════════════════════════════════════ */
.community-page { max-width: 760px; margin: 0 auto; padding: 0 0 80px; }

.community-banner {
  position: relative; width: 100%; height: 300px;
  background: var(--gradient-primary); background-size: cover; background-position: center;
  display: flex; align-items: flex-end;
}
.community-banner-shade {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,.35), rgba(0,0,0,.1) 45%, rgba(0,0,0,.85));
}
.community-banner-content { position: relative; z-index: 1; padding: 26px; width: 100%; }
.community-banner-top { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.community-banner-icon {
  width: 40px; height: 40px; border-radius: 12px; background: var(--gradient-primary);
  display: flex; align-items: center; justify-content: center; color: #fff;
  box-shadow: 0 6px 16px rgba(43,91,238,.5);
}
.community-banner-icon i { width: 20px; height: 20px; }
.community-exclusive {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 11px; border-radius: 20px; font-size: 12px; font-weight: 700;
  background: #3A2E12; border: 1px solid #CE9B2E; color: #E9B949;
}
.community-exclusive i { width: 13px; height: 13px; }
.community-title {
  font-size: 28px; font-weight: 800; color: #fff; line-height: 1.15;
  text-shadow: 0 2px 10px rgba(0,0,0,.6);
}

.community-body { padding: 0 16px; }
.community-infobar { display: flex; align-items: center; justify-content: space-between; padding: 16px 2px 6px; }
.community-count { display: inline-flex; align-items: center; gap: 8px; color: var(--muted-fg); font-size: 14px; font-weight: 600; }
.community-count i { width: 17px; height: 17px; }
.community-newpost-btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 18px; border-radius: 22px; background: var(--gradient-primary);
  color: #fff; font-size: 13px; font-weight: 700; border: none; cursor: pointer;
  box-shadow: 0 4px 12px rgba(43,91,238,.4); transition: transform .12s;
}
.community-newpost-btn:hover { transform: translateY(-1px); }
.community-newpost-btn i { width: 15px; height: 15px; }

.community-teaser {
  display: flex; align-items: center; gap: 12px; padding: 14px;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--r-lg);
  margin: 12px 0 6px; cursor: pointer; transition: border-color .15s;
}
.community-teaser:hover { border-color: rgba(43,91,238,.4); }
.community-teaser-input {
  flex: 1; padding: 11px 16px; border-radius: 24px; color: var(--muted-fg); font-size: 13px;
  background: var(--secondary);
}
.community-teaser-img { color: var(--accent); display: flex; }
.community-teaser-img i { width: 22px; height: 22px; }

/* Avatares */
.community-av, .community-teaser-av {
  width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; position: relative;
  overflow: hidden; font-size: 15px; font-weight: 800;
}
.community-av img, .community-teaser-av img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 2;
}
.community-av span, .community-teaser-av span { position: relative; z-index: 1; }
.community-av.sm { width: 32px; height: 32px; font-size: 13px; }
.community-av.lg { width: 46px; height: 46px; font-size: 17px; }

.community-section-label {
  display: flex; align-items: center; gap: 8px; margin: 16px 2px 10px;
  font-size: 15px; font-weight: 700; color: var(--fg);
}
.community-section-label i { width: 16px; height: 16px; color: var(--primary); }

.community-filters { display: flex; align-items: center; justify-content: space-between; margin: 18px 2px 12px; gap: 10px; flex-wrap: wrap; }
.community-section-title { font-size: 17px; font-weight: 700; color: var(--fg); }
.community-filter-chips { display: flex; gap: 8px; }
.community-chip {
  padding: 7px 13px; border-radius: 20px; font-size: 12px; font-weight: 700;
  background: var(--card); border: 1px solid var(--border); color: var(--muted-fg); cursor: pointer;
  transition: all .15s;
}
.community-chip.active { background: var(--gradient-primary); border-color: transparent; color: #fff; }

/* Cards */
.community-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--r-lg);
  margin-bottom: 12px; overflow: hidden; cursor: pointer; transition: border-color .15s;
}
.community-card:hover { border-color: rgba(43,91,238,.35); }
.community-card.pinned { border-color: rgba(43,91,238,.4); }
.community-card-head { display: flex; align-items: center; gap: 10px; padding: 14px 14px 0; }
.community-card-meta { flex: 1; min-width: 0; }
.community-card-name { font-size: 14px; font-weight: 700; color: var(--fg); display: flex; align-items: center; gap: 5px; }
.community-pin-ic { width: 13px; height: 13px; color: var(--primary); }
.community-card-time { font-size: 12px; color: var(--muted-fg); margin-top: 2px; }
.community-menu-btn { background: none; border: none; color: var(--muted-fg); cursor: pointer; padding: 4px; border-radius: 6px; }
.community-menu-btn:hover { background: var(--overlay-1); color: var(--fg); }
.community-menu-btn i { width: 18px; height: 18px; }
.community-menu-btn.sm i { width: 15px; height: 15px; }
.community-card-title { padding: 12px 14px 0; font-size: 16px; font-weight: 700; color: var(--fg); line-height: 1.3; }
.community-card-text {
  padding: 6px 14px 0; font-size: 14px; color: var(--fg); line-height: 1.55;
  display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden;
}
.community-card-media { margin-top: 12px; }
.community-card-media img { width: 100%; max-height: 380px; object-fit: cover; }
.community-card-actions { display: flex; align-items: center; gap: 4px; padding: 8px 14px 8px 6px; }
.community-like, .community-comment-btn {
  display: inline-flex; align-items: center; gap: 6px; background: none; border: none;
  color: var(--muted-fg); font-size: 13px; font-weight: 600; cursor: pointer;
  padding: 8px 10px; border-radius: 20px; transition: background .12s;
}
.community-like:hover, .community-comment-btn:hover { background: var(--overlay-1); }
.community-like i, .community-comment-btn i { width: 19px; height: 19px; }
.community-like.liked { color: var(--error); }
.community-viewpost { margin-left: auto; display: inline-flex; align-items: center; gap: 2px; color: var(--primary); font-size: 12.5px; font-weight: 700; }
.community-viewpost i { width: 17px; height: 17px; }

.community-loadmore-btn {
  display: block; margin: 6px auto 0; padding: 10px 22px; border-radius: 22px;
  background: var(--card); border: 1px solid var(--border); color: var(--fg);
  font-size: 13px; font-weight: 600; cursor: pointer;
}
.community-loadmore-btn:hover { border-color: var(--primary); }
.community-loading { display: flex; justify-content: center; padding: 40px 0; }
.community-empty {
  text-align: center; padding: 44px 20px; color: var(--muted-fg);
}
.community-empty i { width: 46px; height: 46px; opacity: .5; margin-bottom: 12px; }
.community-empty div { font-size: 15px; font-weight: 600; }
.community-empty span { display: block; font-size: 12.5px; margin-top: 6px; opacity: .7; }

/* Detail */
.community-detail-page { max-width: 760px; width: 100%; box-sizing: border-box; margin: 0 auto; padding: calc(var(--nav-h) + 16px) 16px 80px; overflow-wrap: anywhere; }
.community-detail-topbar { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.community-back { background: none; border: none; color: var(--fg); cursor: pointer; padding: 4px; }
.community-back i { width: 24px; height: 24px; }
.community-detail-topbar span { font-size: 18px; font-weight: 700; color: var(--fg); }
.community-detail-post { border-bottom: 1px solid var(--border); padding-bottom: 16px; }
.community-detail-post .community-card-head { padding: 0; }
.community-detail-title { font-size: 24px; font-weight: 800; color: var(--fg); margin-top: 16px; line-height: 1.2; }
.community-detail-text { font-size: 15px; color: var(--fg); line-height: 1.65; margin-top: 12px; white-space: pre-wrap; }
.community-detail-media { margin-top: 16px; border-radius: var(--r); overflow: hidden; }
.community-detail-media img { width: 100%; }
.community-detail-stats { display: flex; align-items: center; gap: 16px; margin-top: 14px; }
.community-stat { display: inline-flex; align-items: center; gap: 7px; color: var(--muted-fg); font-size: 14px; font-weight: 700; }
.community-stat i { width: 20px; height: 20px; }

.community-comments { padding-top: 18px; }
.community-comments-title { font-size: 17px; font-weight: 700; color: var(--fg); margin-bottom: 14px; }
.community-comment-composer { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 18px; }
.community-comment-input-wrap { flex: 1; min-width: 0; }
.community-comment-input {
  width: 100%; background: var(--secondary); border: 1px solid var(--border);
  border-radius: 18px; color: var(--fg); font-size: 14px; padding: 11px 16px; resize: none;
  font-family: inherit; max-height: 140px;
}
.community-comment-input:focus { border-color: var(--primary); outline: none; }
.community-comment-send {
  width: 42px; height: 42px; border-radius: 50%; background: var(--gradient-primary);
  border: none; color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.community-comment-send i { width: 18px; height: 18px; }
.community-replyto {
  display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted-fg);
  margin-bottom: 6px; padding: 4px 2px;
}
.community-replyto i { width: 14px; height: 14px; color: var(--primary); }
.community-replyto button { margin-left: auto; background: none; border: none; color: var(--muted-fg); cursor: pointer; }
.community-replyto button i { width: 15px; height: 15px; }

.community-comment { display: flex; gap: 10px; padding: 12px 0; }
.community-comment.reply { margin-left: 42px; }
.community-comment-body { flex: 1; min-width: 0; }
.community-comment-head { display: flex; align-items: center; gap: 8px; }
.community-comment-name { font-size: 13px; font-weight: 700; color: var(--fg); }
.community-comment-time { font-size: 11px; color: var(--muted-fg); }
.community-comment-head .community-menu-btn { margin-left: auto; }
.community-comment-text { font-size: 14px; color: var(--fg); line-height: 1.55; margin-top: 3px; white-space: pre-wrap; }
.community-comment-actions { display: flex; align-items: center; gap: 18px; margin-top: 6px; }
.community-comment-like, .community-comment-reply {
  display: inline-flex; align-items: center; gap: 5px; background: none; border: none;
  color: var(--muted-fg); font-size: 12px; font-weight: 600; cursor: pointer; padding: 0;
}
.community-comment-like i, .community-comment-reply i { width: 15px; height: 15px; }
.community-comment-like.liked { color: var(--error); }
.community-comments-empty { color: var(--muted-fg); font-size: 13px; padding: 12px 0 24px; }

/* Composer modal */
.community-composer {
  width: 100%; max-width: 560px; background: var(--card); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 0; overflow: hidden; max-height: 90vh; display: flex; flex-direction: column;
}
.community-composer-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; border-bottom: 1px solid var(--border); }
.community-composer-head h3 { font-size: 18px; font-weight: 800; color: var(--fg); }
.community-composer-close { background: none; border: none; color: var(--muted-fg); cursor: pointer; padding: 4px; }
.community-composer-close i { width: 20px; height: 20px; }
.community-composer-title {
  border: none; background: none; color: var(--fg); font-size: 18px; font-weight: 700;
  padding: 16px 18px 8px; width: 100%;
}
.community-composer-title:focus { outline: none; }
.community-composer-text {
  border: none; background: none; color: var(--fg); font-size: 15px; line-height: 1.6;
  padding: 8px 18px; width: 100%; min-height: 120px; resize: vertical; font-family: inherit;
}
.community-composer-text:focus { outline: none; }
.community-composer-media { padding: 0 18px; }
.community-composer-media-box { position: relative; border-radius: var(--r); overflow: hidden; margin-top: 6px; }
.community-composer-media-box img { width: 100%; max-height: 260px; object-fit: cover; }
.community-composer-media-box.loading { height: 160px; display: flex; align-items: center; justify-content: center; background: var(--secondary); }
.community-composer-media-box button {
  position: absolute; top: 8px; right: 8px; width: 28px; height: 28px; border-radius: 50%;
  background: rgba(0,0,0,.6); border: none; color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.community-composer-media-box button i { width: 16px; height: 16px; }
.community-composer-foot { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-top: 1px solid var(--border); margin-top: 8px; }
.community-composer-media-btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 20px;
  background: rgba(123,73,223,.12); border: 1px solid rgba(123,73,223,.3); color: var(--accent);
  font-size: 13px; font-weight: 700; cursor: pointer;
}
.community-composer-media-btn i { width: 17px; height: 17px; }
.community-composer-submit {
  display: inline-flex; align-items: center; gap: 8px; padding: 11px 22px; border-radius: 22px;
  background: var(--gradient-primary); border: none; color: #fff; font-size: 14px; font-weight: 700; cursor: pointer;
  box-shadow: 0 4px 12px rgba(43,91,238,.4);
}
.community-composer-submit i { width: 16px; height: 16px; }

@media (max-width: 640px) {
  .community-banner { height: 220px; }
  .community-title { font-size: 22px; }
  .community-body { padding: 0 12px; }
  .community-filters { flex-direction: column; align-items: flex-start; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   Rock Live
═══════════════════════════════════════════════════════════════════════════ */
.badge-live-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--primary); animation: liveDotPulse 1.4s ease-in-out infinite; }
@keyframes liveDotPulse { 0%,100% { opacity: 1; } 50% { opacity: .3; } }
.loading-full { display: flex; align-items: center; justify-content: center; min-height: 40vh; }

/* avatar reutilizável (foto ou inicial) */
.live-av { position: relative; border-radius: 50%; overflow: hidden; background: var(--grad); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.live-av.has-photo { background: var(--overlay-2); }
.live-av.has-photo span { display: none; }
.live-av img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.live-av span { color: #fff; font-weight: 800; font-size: 42%; }
.live-av.xl span { font-size: 34%; }

.btn-primary-pill { display: inline-flex; align-items: center; gap: 7px; padding: 10px 18px; border-radius: 24px; background: var(--grad); color: #fff; font-size: 13px; font-weight: 700; border: none; cursor: pointer; box-shadow: 0 6px 18px rgba(43,91,238,.35); transition: transform .12s, box-shadow .12s; }
.btn-primary-pill:hover { transform: translateY(-1px); box-shadow: 0 8px 22px rgba(43,91,238,.45); }
.btn-primary-pill i { width: 15px; height: 15px; }
.btn-primary-pill.btn-buy { background: var(--grad-success); box-shadow: 0 6px 18px rgba(46,184,96,.35); }
.btn-primary-pill.btn-buy:hover { box-shadow: 0 8px 22px rgba(46,184,96,.45); }

/* ── Modal de QR do roteiro pré-definido (com capa) — duas colunas com
   divisor, só quando cabem lado a lado; empilha em telas estreitas. ── */
.qr-two-col { align-items: stretch; }
.qr-col-divider { width: 1px; align-self: stretch; background: var(--border); }
@media (max-width: 680px) {
  .qr-col-divider { display: none; }
  .qr-two-col { padding: 22px !important; }
}

/* ── Trilha animada (modal de QR do roteiro) ─────────────────────────────── */
.qr-road { position: relative; height: 46px; max-width: 400px; margin: 10px auto 0; }
.qr-road-line { position: absolute; left: 23px; right: 23px; top: 50%; height: 5px; margin-top: -2.5px; background: var(--border); border-radius: 99px; overflow: hidden; }
.qr-road-fill { height: 100%; width: 0%; background: var(--grad); border-radius: 99px; transition: width .55s cubic-bezier(.4,0,.2,1); }
.qr-road-dots { position: absolute; inset: 0; display: flex; justify-content: space-between; align-items: center; }
.qr-road-dot { width: 46px; height: 46px; border-radius: 50%; background: var(--card); border: 2.5px solid var(--border); display: flex; align-items: center; justify-content: center; color: var(--muted-fg); transition: transform .3s ease, border-color .3s ease, background .3s ease, box-shadow .3s ease, color .3s ease; }
.qr-road-dot i { width: 21px; height: 21px; }
.qr-road-dot.done { background: var(--grad); border-color: transparent; color: #fff; }
.qr-road-dot.active { background: var(--grad); border-color: transparent; color: #fff; transform: scale(1.22); box-shadow: 0 6px 18px rgba(43,91,238,.5); }

.qr-example-card { max-width: 400px; margin: 34px auto 8px; min-height: 130px; opacity: 0; transform: translateY(10px); transition: opacity .35s ease, transform .35s ease; }
.qr-example-card.show { opacity: 1; transform: translateY(0); }
.qr-example-tag { display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: .7px; color: var(--muted-fg); margin-bottom: 12px; }
.qr-example-word { font-size: 28px; font-weight: 800; color: var(--fg); }
.qr-example-translation { font-size: 15.5px; font-weight: 600; color: var(--primary); margin-top: 3px; }
.qr-example-sentence { font-size: 14px; color: var(--muted-fg); margin-top: 14px; line-height: 1.55; }
.qr-example-sentence b { color: var(--fg); }
.qr-chat-bubble { display: inline-block; max-width: 90%; padding: 10px 16px; border-radius: 16px; font-size: 13.5px; font-weight: 600; line-height: 1.45; margin: 5px 0; text-align: left; }
.qr-chat-row { display: flex; }
.qr-chat-row.agent { justify-content: flex-start; }
.qr-chat-row.user { justify-content: flex-end; }
.qr-chat-bubble.agent { background: var(--card-2, rgba(127,127,127,.12)); color: var(--fg); border-bottom-left-radius: 4px; }
.qr-chat-bubble.user { background: var(--grad); color: #fff; border-bottom-right-radius: 4px; }
.qr-example-question { font-size: 15px; font-weight: 700; color: var(--fg); margin-bottom: 16px; }
.qr-example-options { display: flex; flex-wrap: wrap; justify-content: center; gap: 9px; }
.qr-opt { padding: 8px 16px; border-radius: 99px; font-size: 13px; font-weight: 700; background: var(--card-2, rgba(127,127,127,.12)); color: var(--muted-fg); border: 1.5px solid transparent; }
.qr-opt.correct { background: rgba(46,184,96,.14); color: var(--success); border-color: rgba(46,184,96,.4); }
.qr-example-score { font-size: 46px; font-weight: 900; background: var(--grad-success); -webkit-background-clip: text; background-clip: text; color: transparent; }
.qr-example-caption { font-size: 14px; font-weight: 700; color: var(--fg); margin-top: 6px; }
.qr-topic-title { font-size: 24px; font-weight: 800; color: var(--fg); line-height: 1.25; }
.qr-trail-footer { max-width: 320px; margin: 26px auto 0; font-size: 12px; font-weight: 700; color: var(--muted-fg); line-height: 1.5; }

.qr-stage-fade-out { animation: qrStageFadeOut .38s ease forwards; }
@keyframes qrStageFadeOut { to { opacity: 0; transform: scale(.96); } }

@media (max-width: 480px) {
  #qr-final-stage { padding-left: 16px; padding-right: 16px; }
  #qr-final-stage img[alt="QR code"] { width: 168px !important; height: 168px !important; }
  .qr-topic-title { font-size: 19px; }
  .qr-example-sentence { font-size: 13px; }
  .qr-example-score { font-size: 36px; }
  .qr-example-word { font-size: 22px; }
}
.qr-final-fade-in { animation: qrFinalFadeIn .5s ease forwards; }
@keyframes qrFinalFadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
.cover-cta-row { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 10px; }
.live-cta-btn { display: inline-flex; align-items: center; gap: 9px; padding: 12px 22px; border-radius: 26px; background: rgba(43,91,238,.10); border: 1px solid rgba(43,91,238,.3); color: var(--primary); font-size: 13.5px; font-weight: 700; cursor: pointer; transition: background .15s; }
.live-cta-btn:hover { background: rgba(43,91,238,.18); }
.live-cta-btn i { width: 17px; height: 17px; }
.continue-cta-btn { display: inline-flex; align-items: center; gap: 9px; padding: 12px 22px; border-radius: 26px; background: var(--primary); border: 1px solid var(--primary); color: #fff; font-size: 13.5px; font-weight: 700; cursor: pointer; transition: filter .15s; }
.continue-cta-btn:hover { filter: brightness(1.1); }
.continue-cta-btn i { width: 17px; height: 17px; }

.cover-trail-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 18px; margin-bottom: 16px; border-radius: 99px;
  background: rgba(43,91,238,.10); border: 1px solid rgba(43,91,238,.3);
  color: var(--primary); font-size: 12.5px; font-weight: 800; letter-spacing: .2px;
  cursor: pointer; backdrop-filter: blur(6px); transition: background .15s, transform .15s;
}
.cover-trail-btn:hover { background: rgba(43,91,238,.18); transform: translateY(-1px); }
.cover-trail-btn i { width: 15px; height: 15px; }

/* ═══════════════════════════════════════════════════════════════════════════
   TRILHA COMPLETA DO CURSO
   ═══════════════════════════════════════════════════════════════════════════ */
.trail-page { position: relative; min-height: 100vh; padding-top: var(--nav-h); padding-bottom: 90px; }
#trail-ambient { position: fixed; inset: 0; z-index: 0; pointer-events: none; }

.trail-topbar {
  position: sticky; top: calc(var(--nav-h) + var(--banner-h, 0px)); z-index: 5;
  display: flex; align-items: center; gap: 14px;
  padding: 18px 40px 10px;
  background: linear-gradient(var(--bg) 55%, transparent);
}
.trail-back-btn {
  width: 40px; height: 40px; border-radius: 13px; flex-shrink: 0;
  background: var(--card); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--fg); cursor: pointer; transition: background .15s;
}
.trail-back-btn:hover { background: var(--secondary); }
.trail-title-eyebrow { font-size: 10.5px; font-weight: 800; letter-spacing: 1.4px; color: var(--muted-fg); text-transform: uppercase; }
.trail-title-h1 { font-size: 19px; font-weight: 800; color: var(--fg); margin-top: 2px; }

.trail-container { position: relative; z-index: 1; max-width: 900px; margin: 0 auto; padding: 0 40px; }

.trail-hero {
  margin-top: 14px; padding: 22px 26px; border-radius: var(--r-xl);
  background: var(--card); border: 1px solid var(--border);
  display: flex; align-items: center; gap: 20px;
  box-shadow: 0 18px 40px -18px rgba(0,0,0,.6);
}
.trail-ring { width: 78px; height: 78px; position: relative; flex-shrink: 0; }
.trail-ring svg { transform: rotate(-90deg); }
.trail-ring-pct {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 800; color: var(--fg); font-variant-numeric: tabular-nums;
}
.trail-hero-copy h2 { font-size: 16px; font-weight: 800; color: var(--fg); }
.trail-hero-copy p { font-size: 12.5px; color: var(--muted-fg); font-weight: 600; margin-top: 4px; }
.trail-hero-done { font-size: 11.5px; font-weight: 800; color: var(--primary); margin-top: 7px; }

.trail-module-banner {
  margin-top: 40px; border-radius: var(--r-xl); overflow: hidden; position: relative;
  aspect-ratio: 16/9; background-size: cover; background-position: center;
  box-shadow: 0 20px 44px -20px rgba(0,0,0,.65);
}
.trail-module-banner .scrim {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,.16) 0%, transparent 42%, rgba(0,0,0,.74) 100%);
}
.trail-module-banner .grad-fallback { position: absolute; inset: 0; }
.trail-module-banner.muted img { filter: grayscale(1) brightness(.55); border-radius: inherit; }
.trail-module-tag {
  position: absolute; left: 18px; top: 16px; padding: 5px 12px; border-radius: 99px;
  background: rgba(0,0,0,.5); color: #fff; font-size: 10px; font-weight: 800; letter-spacing: 1.1px;
}
.trail-module-done-badge {
  position: absolute; right: 16px; top: 14px; width: 32px; height: 32px; border-radius: 50%;
  background: var(--success); display: flex; align-items: center; justify-content: center;
}
.trail-module-drip {
  position: absolute; right: 16px; top: 14px; padding: 6px 12px; border-radius: 99px;
  background: rgba(0,0,0,.6); color: #f0a020; font-size: 11px; font-weight: 800;
  display: flex; align-items: center; gap: 5px;
}
.trail-module-info { position: absolute; left: 18px; right: 18px; bottom: 16px; }
.trail-module-info h3 { color: #fff; font-size: 20px; font-weight: 800; line-height: 1.25; }
.trail-module-progress { display: flex; align-items: center; gap: 12px; margin-top: 10px; }
.trail-module-progress-track { flex: 1; height: 5px; border-radius: 3px; background: rgba(255,255,255,.28); overflow: hidden; }
.trail-module-progress-fill { height: 100%; border-radius: 3px; transition: width .6s cubic-bezier(.4,0,.2,1); }
.trail-module-progress-label { color: #fff; font-size: 12.5px; font-weight: 800; font-variant-numeric: tabular-nums; }

.trail-path { position: relative; margin-top: 8px; }
.trail-path svg.connector { position: absolute; top: 0; left: 0; overflow: visible; }

.trail-card {
  position: absolute; border-radius: var(--r-lg); overflow: hidden; cursor: pointer;
  background-size: cover; background-position: center; background-color: var(--secondary);
  border: 1px solid var(--border); transition: transform .18s ease;
  box-shadow: 0 10px 26px -12px rgba(0,0,0,.6);
}
.trail-card:hover { transform: translateY(-2px); }
.trail-card .scrim {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,.10) 0%, transparent 42%, rgba(0,0,0,.7) 100%);
}
.trail-card.muted { filter: grayscale(1) brightness(.6); border-color: var(--border); cursor: default; }
.trail-card.muted:hover { transform: none; }
.trail-card.done { border-color: rgba(255,255,255,.5); border-width: 2px; }
.trail-card.current {
  border: 2.5px solid transparent;
  background-image: linear-gradient(var(--bg), var(--bg)), var(--grad-warm);
  background-origin: border-box;
  background-clip: padding-box, border-box;
  animation: trailPulse 2.2s ease-in-out infinite;
}
@keyframes trailPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(217,79,160,.35), 0 10px 26px -12px rgba(0,0,0,.6); }
  50%      { box-shadow: 0 0 0 10px rgba(217,79,160,0), 0 10px 26px -12px rgba(0,0,0,.6); }
}
.trail-card-tag {
  position: absolute; left: 9px; top: 8px; padding: 4px 8px; border-radius: 99px;
  background: rgba(0,0,0,.55); color: #fff; font-size: 8.5px; font-weight: 800; letter-spacing: .7px;
  display: flex; align-items: center; gap: 4px;
}
.trail-card-tag i { width: 10px; height: 10px; }
.trail-card-check {
  position: absolute; right: 8px; top: 8px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--success); display: flex; align-items: center; justify-content: center;
}
.trail-card-lock {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
}
.trail-card-lock div {
  width: 36px; height: 36px; border-radius: 50%; background: rgba(0,0,0,.55);
  display: flex; align-items: center; justify-content: center;
}
.trail-card-title {
  position: absolute; left: 11px; right: 11px; bottom: 9px;
  color: #fff; font-size: 12px; font-weight: 800; line-height: 1.25;
  display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.trail-card.muted .trail-card-title { color: rgba(255,255,255,.65); }
.trail-card-continue {
  position: absolute; right: 8px; top: 8px; padding: 5px 10px; border-radius: 99px;
  background: var(--grad-warm); color: #fff; font-size: 8.5px; font-weight: 800; letter-spacing: .5px;
  display: flex; align-items: center; gap: 3px;
}
.trail-card-continue i { width: 10px; height: 10px; }
.trail-card-fallback-icon {
  position: absolute; right: -6px; top: -6px; opacity: .3; color: #fff;
}

.trail-live-tip {
  margin-top: 34px; padding: 16px 18px; border-radius: var(--r-lg);
  background: var(--card); border: 1px solid rgba(123,73,223,.35);
  display: flex; align-items: center; gap: 14px; cursor: pointer;
  transition: background .15s, transform .15s;
}
.trail-live-tip:hover { background: var(--secondary); transform: translateY(-1px); }
.trail-live-tip-icon {
  width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0;
  background: var(--grad-acc); display: flex; align-items: center; justify-content: center;
}
.trail-live-tip-icon i { width: 19px; height: 19px; color: #fff; }
.trail-live-tip-copy { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.trail-live-tip-copy strong { font-size: 13.5px; font-weight: 800; color: var(--fg); }
.trail-live-tip-copy span { font-size: 12px; color: var(--muted-fg); line-height: 1.45; }
.trail-live-tip-chevron { width: 20px; height: 20px; color: var(--muted-fg); flex-shrink: 0; }

@media (max-width: 860px) {
  .trail-topbar, .trail-container { padding-left: 16px; padding-right: 16px; }
  .trail-module-info h3 { font-size: 16px; }
}

/* ── Lista de salas ────────────────────────────────────────────────────────── */
.live-page { padding-top: calc(var(--nav-h) + 8px) !important; padding-left: 20px; padding-right: 20px; padding-bottom: 80px; max-width: 1080px; margin: 0 auto; }
.live-page-back { position: static; top: auto; left: auto; display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px; border-radius: 22px; background: var(--card); border: 1px solid var(--border); color: var(--fg); margin-bottom: 18px; }
.live-page-back:hover { background: var(--secondary); }
.live-page-back i { width: 16px; height: 16px; }

.live-hero {
  position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 22px;
  background: linear-gradient(135deg, #0C1020 0%, #121A38 50%, #17255E 100%);
  border: 1px solid rgba(43,91,238,.3);
  border-radius: 22px; padding: 28px 30px; margin-bottom: 26px; min-height: 190px;
  box-shadow: 0 16px 40px rgba(0,0,0,.4);
}
.live-hero-art { position: absolute; top: 0; right: 0; bottom: 0; width: 64%; z-index: 0; pointer-events: none; }
.live-hero-art img { width: 100%; height: 100%; object-fit: cover; object-position: right center; display: block; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 42%); mask-image: linear-gradient(90deg, transparent 0, #000 42%); animation: liveArtIn .9s ease both; }
@keyframes liveArtIn { from { opacity: 0; transform: scale(1.04); } to { opacity: 1; transform: none; } }
.live-hero-glow {
  position: absolute; top: -55%; left: -5%; width: 260px; height: 260px; border-radius: 50%;
  background: radial-gradient(circle, rgba(43,91,238,.4), transparent 70%); pointer-events: none;
  animation: liveHeroFloat 7s ease-in-out infinite;
}
.live-hero::after {
  content: ''; position: absolute; bottom: -50%; right: -4%; width: 220px; height: 220px; border-radius: 50%;
  background: radial-gradient(circle, rgba(90,145,255,.28), transparent 70%); pointer-events: none;
  animation: liveHeroFloat 8s ease-in-out infinite reverse;
}
@keyframes liveHeroFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(10px, 16px) scale(1.1); }
}
.live-hero-content { position: relative; z-index: 1; max-width: 560px; }
.live-hero-badge { display: inline-flex; align-items: center; gap: 7px; padding: 5px 12px; border-radius: 20px; background: rgba(43,91,238,.18); border: 1px solid rgba(43,91,238,.4); color: #A9C0FF; font-size: 10.5px; font-weight: 800; letter-spacing: 1.2px; margin-bottom: 12px; }
.live-hero h1 { font-size: 25px; font-weight: 900; color: #fff; margin: 0 0 8px; line-height: 1.15; letter-spacing: -.3px; }
.live-hero-actions { margin-top: 14px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.live-hero-course { display: inline-flex; align-items: center; gap: 6px; color: rgba(255,255,255,.6); font-size: 12.5px; font-weight: 600; }
.live-hero-cta { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 12px; background: var(--grad); color: #fff; font-size: 13px; font-weight: 800; box-shadow: 0 8px 20px rgba(43,91,238,.35); transition: transform .15s; }
.live-hero-cta:hover { transform: translateY(-2px); }
.live-hero-cta i { width: 15px; height: 15px; }
.live-hero-visual { position: relative; z-index: 1; flex-shrink: 0; width: 84px; height: 84px; border-radius: 50%; background: rgba(43,91,238,.16); border: 1px solid rgba(43,91,238,.3); display: flex; align-items: center; justify-content: center; }
.live-hero-visual i { width: 36px; height: 36px; color: #A9C0FF; }
@media (max-width: 720px) {
  .live-hero { flex-direction: column; align-items: flex-start; padding: 22px 22px; min-height: 210px; }
  .live-hero-art { width: 100%; opacity: .5; }
  .live-hero-art img { -webkit-mask-image: linear-gradient(180deg, #000 0, transparent 85%); mask-image: linear-gradient(180deg, #000 0, transparent 85%); }
}

.live-section-head { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; font-size: 15px; font-weight: 800; color: var(--fg); }
.live-section-head i { width: 17px; height: 17px; color: var(--primary); }

.live-rooms-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }

/* ── Grade semanal (só aparece se o curso tiver horários configurados) ───────── */
.live-schedule-section { margin-bottom: 30px; }
.live-schedule-grid {
  display: grid; grid-template-columns: repeat(7, minmax(96px, 1fr)); gap: 8px;
  overflow-x: auto; padding-bottom: 4px;
}
.live-schedule-col { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.live-schedule-col-head {
  display: flex; flex-direction: column; align-items: center; gap: 1px;
  text-align: center; font-size: 10.5px; font-weight: 800; letter-spacing: .8px;
  color: var(--muted-fg); padding-bottom: 4px;
}
.live-schedule-col-date { font-size: 9px; font-weight: 600; letter-spacing: 0; opacity: .75; }
.live-schedule-col.is-today .live-schedule-col-head { color: var(--primary); }
.live-schedule-slot-card {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 8px 6px; border-radius: 12px; background: var(--card);
  border: 1px solid var(--border); border-top: 3px solid var(--slot-color);
}
.live-schedule-slot-card.is-mine { border-color: var(--slot-color); box-shadow: 0 0 0 1px var(--slot-color); }
.live-schedule-slot-card.is-clickable { cursor: pointer; transition: transform .12s, border-color .12s; }
.live-schedule-slot-card.is-clickable:hover { transform: translateY(-2px); border-color: var(--slot-color); }
.live-schedule-slot-card.is-cancelled { border-top-color: var(--muted-fg); opacity: .55; }
.live-schedule-slot-card.is-cancelled .live-schedule-slot-level { color: var(--muted-fg); }
.live-schedule-slot-time { font-size: 12.5px; font-weight: 800; color: var(--fg); }
.live-schedule-slot-time small { font-weight: 600; color: var(--muted-fg); }
.live-schedule-slot-level { font-size: 9.5px; font-weight: 700; color: var(--slot-color); text-align: center; }
.live-schedule-slot-now {
  position: absolute; top: -8px; left: 50%; transform: translateX(-50%);
  padding: 1.5px 7px; border-radius: 20px; background: var(--slot-color); color: #fff;
  font-size: 8px; font-weight: 800; letter-spacing: .5px; white-space: nowrap;
}
.live-schedule-slot-cancelled-tag {
  position: absolute; top: -8px; left: 50%; transform: translateX(-50%);
  padding: 1.5px 7px; border-radius: 20px; background: var(--error); color: #fff;
  font-size: 7.5px; font-weight: 800; letter-spacing: .4px; white-space: nowrap;
}
.live-schedule-slot-reason {
  font-size: 8.5px; color: var(--muted-fg); text-align: center; line-height: 1.3;
  margin-top: 2px; max-width: 100%; overflow: hidden; text-overflow: ellipsis;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.live-schedule-slot-empty { text-align: center; color: var(--muted-fg); font-size: 12px; padding: 10px 0; }
.live-schedule-tz-note {
  display: flex; align-items: center; gap: 6px; margin-top: 14px;
  font-size: 11.5px; color: var(--muted-fg);
}
.live-schedule-tz-note i { width: 13px; height: 13px; flex-shrink: 0; }
.live-schedule-mylevel {
  display: flex; align-items: center; gap: 8px; margin-top: 8px;
  font-size: 12.5px; color: var(--muted-fg);
}
.live-schedule-mylevel-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
@media (max-width: 640px) {
  .live-schedule-grid { grid-template-columns: repeat(7, 82px); }
}

.live-schedule-rules-link {
  display: flex; align-items: center; gap: 6px; flex-shrink: 0;
  background: var(--card); border: 1px solid var(--border); border-radius: 10px;
  padding: 7px 11px; cursor: pointer;
  font-size: 12px; font-weight: 700; color: var(--primary, #2B5BEE);
  transition: border-color .12s, transform .12s;
  position: relative;
}
.live-schedule-rules-link:hover { border-color: var(--primary, #2B5BEE); transform: translateY(-1px); }
.live-schedule-rules-link i { width: 14px; height: 14px; flex-shrink: 0; }
@media (max-width: 480px) {
  .live-schedule-rules-link span:not(.live-rules-new-badge) { display: none; }
}
.live-rules-new-badge {
  display: inline-flex; align-items: center; padding: 1px 6px; border-radius: 20px;
  background: #FF3B3B; color: #fff; font-size: 9px; font-weight: 800;
  letter-spacing: .04em; line-height: 1.5;
}
.live-rules-file-btn {
  display: flex; align-items: center; gap: 8px; width: 100%;
  background: var(--card2, rgba(127,127,127,.08)); border: 1px solid var(--border);
  border-radius: 10px; padding: 10px 12px; font-size: 13px; font-weight: 600;
  color: inherit; cursor: pointer; text-align: left;
}
.live-rules-file-btn i { width: 15px; height: 15px; color: var(--primary, #2B5BEE); flex-shrink: 0; }
.live-rules-file-btn--opened { border-color: color-mix(in srgb, var(--primary, #2B5BEE) 40%, transparent); }

.live-room-level-tag {
  align-self: flex-start; padding: 3px 9px; border-radius: 20px;
  background: color-mix(in srgb, var(--slot-color) 16%, transparent);
  color: var(--slot-color); font-size: 10.5px; font-weight: 800;
}

/* ══════════════════════════════════════════════════════════════════════════════
   ACESSOS COMPARTILHADOS
══════════════════════════════════════════════════════════════════════════════ */
.access-mgmt-page { padding-top: calc(var(--nav-h) + 8px) !important; padding-left: 20px; padding-right: 20px; padding-bottom: 80px; max-width: 720px; margin: 0 auto; }

.live-page-header { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 20px; }
.live-page-header .live-page-back { margin-bottom: 0; }
.live-page-title { flex: 1; text-align: center; }
.live-page-title h1 { font-size: 19px; font-weight: 800; color: var(--fg); }
.live-page-header > span { width: 40px; flex-shrink: 0; }

.access-hero {
  display: flex; gap: 16px; align-items: flex-start;
  background: linear-gradient(135deg, rgba(43,91,238,.14), rgba(123,73,223,.14));
  border: 1px solid rgba(43,91,238,.3); border-radius: 20px;
  padding: 20px 22px; margin-bottom: 22px;
}
.access-hero-icon {
  width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0;
  background: var(--grad); display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 16px rgba(43,91,238,.45);
}
.access-hero-icon { color: #fff; }
.access-hero-icon i, .access-hero-icon svg { width: 20px; height: 20px; color: #fff; stroke: #fff; }
.access-hero h2 { font-size: 15px; font-weight: 800; color: var(--fg); margin: 0 0 6px; }
.access-hero p { font-size: 12.5px; color: var(--muted-fg); line-height: 1.65; margin: 0; }

.access-card {
  background: var(--card); border: 1px solid var(--border); border-radius: 18px;
  padding: 20px 22px; margin-bottom: 18px;
}
.access-card-title { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 800; color: var(--fg); margin-bottom: 14px; }
.access-card-title i { width: 16px; height: 16px; color: var(--primary); }

.access-bar { height: 8px; border-radius: 4px; background: var(--muted); overflow: hidden; }
.access-bar-fill { height: 100%; border-radius: 4px; background: var(--grad); transition: width .5s cubic-bezier(.4,0,.2,1); }

.access-invite-form { display: flex; gap: 10px; flex-wrap: wrap; }
.access-invite-form input {
  flex: 1; min-width: 0; padding: 13px 16px; border-radius: 14px; border: 1px solid var(--border);
  background: var(--secondary); color: var(--fg); font-size: 13.5px;
}
.access-invite-form input:focus { outline: none; border-color: var(--primary); }

.access-duration-chip {
  padding: 7px 13px; border-radius: 20px; border: 1px solid var(--border);
  background: var(--secondary); color: var(--muted-fg); font-size: 12px; font-weight: 700;
  cursor: pointer; transition: background .15s, color .15s, border-color .15s;
}
.access-duration-chip:hover { border-color: var(--primary); }
.access-duration-chip.active { background: var(--grad); border-color: transparent; color: #fff; }

.access-invite-row {
  display: flex; align-items: center; gap: 12px; padding: 13px 14px;
  background: var(--secondary); border: 1px solid var(--border); border-radius: 14px; margin-bottom: 8px;
}
.access-invite-avatar {
  width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0;
  background: var(--grad); display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 800; font-size: 13.5px;
  position: relative; overflow: hidden;
}
.access-invite-avatar img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.access-invite-remove {
  width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--border);
  background: transparent; color: var(--muted-fg); cursor: pointer;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: background .15s, color .15s;
}
.access-invite-remove:hover { background: rgba(217,38,38,.12); color: var(--error); }

.access-empty {
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  padding: 50px 24px; text-align: center;
}
.access-empty .access-hero-icon { width: 56px; height: 56px; background: var(--secondary); box-shadow: none; }
.access-empty .access-hero-icon, .access-empty .access-hero-icon i, .access-empty .access-hero-icon svg { color: var(--muted-fg); stroke: var(--muted-fg); }
.access-empty .access-hero-icon i, .access-empty .access-hero-icon svg { width: 24px; height: 24px; }
.access-empty p { font-size: 13.5px; color: var(--muted-fg); max-width: 320px; line-height: 1.6; margin: 0; }

.live-empty-state { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 44px 20px; text-align: center; }
.live-empty-icon { width: 56px; height: 56px; border-radius: 50%; background: var(--muted); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; }
.live-empty-icon i { width: 24px; height: 24px; color: var(--muted-fg); }
.live-empty-state p { color: var(--muted-fg); font-weight: 700; font-size: 13.5px; }

.live-room-card { position: relative; background: var(--card); border: 1px solid var(--border); border-radius: 20px; padding: 0; overflow: hidden; cursor: pointer; display: flex; flex-direction: column; gap: 0; transition: transform .15s, border-color .15s, box-shadow .15s; }
.live-room-media { position: relative; height: 138px; background-size: cover; background-position: right center; padding: 12px; display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.live-room-media::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.16), rgba(0,0,0,.66)); }
.live-room-media > * { position: relative; z-index: 1; }
.live-room-media .live-room-live-tag { padding: 5px 10px; border-radius: 99px; background: rgba(0,0,0,.4); color: #fff; backdrop-filter: blur(4px); }
.live-room-media .live-room-count { background: rgba(0,0,0,.4); color: #fff; backdrop-filter: blur(4px); }
.live-room-media-title { position: absolute !important; left: 14px; right: 14px; bottom: 11px; color: #fff; font-size: 16.5px; font-weight: 900; line-height: 1.2; text-shadow: 0 2px 10px rgba(0,0,0,.45); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.live-room-body { padding: 13px 16px 15px; display: flex; flex-direction: column; gap: 11px; }
.live-room-body:empty { display: none; }
.live-room-card:hover { transform: translateY(-3px); border-color: rgba(43,91,238,.5); box-shadow: 0 14px 32px rgba(0,0,0,.4); }
.live-room-card:hover .live-room-enter { background: var(--grad); color: #fff; border-color: transparent; }

.live-room-card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.live-room-ico { width: 40px; height: 40px; border-radius: 12px; background: var(--grad); display: flex; align-items: center; justify-content: center; flex-shrink: 0; box-shadow: 0 6px 14px rgba(43,91,238,.3); }
.live-room-ico i { width: 19px; height: 19px; color: #fff; }
.live-room-card-badges { display: flex; align-items: center; gap: 8px; }
.live-room-live-tag { display: inline-flex; align-items: center; gap: 6px; color: var(--primary); font-size: 10.5px; font-weight: 800; letter-spacing: 1px; }
.live-room-count { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 20px; background: var(--muted); color: var(--fg); font-size: 12px; font-weight: 700; }
.live-room-count i { width: 13px; height: 13px; }
.live-room-title2 { color: var(--fg); font-weight: 800; font-size: 16px; line-height: 1.3; }

.live-room-footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.live-room-prof { display: flex; align-items: center; gap: 8px; color: var(--muted-fg); font-size: 13px; min-width: 0; }
.live-room-prof span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.live-room-prof b { color: var(--fg); font-weight: 700; }
.live-room-enter { flex-shrink: 0; display: inline-flex; align-items: center; gap: 6px; padding: 8px 13px; border-radius: 11px; background: transparent; border: 1.5px solid var(--primary); color: var(--primary); font-size: 12.5px; font-weight: 800; transition: background .15s, color .15s, border-color .15s; }
.live-room-enter i { width: 14px; height: 14px; }

/* ── Modal criar ───────────────────────────────────────────────────────────── */
.live-create-modal { width: 100%; max-width: 860px; max-height: calc(100vh - 48px); overflow-y: auto; }
.live-create-modal h3 { margin: 0; display: block; }
.lc-head { display: flex; align-items: center; gap: 12px; margin-bottom: 4px; }
.lc-head-ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--primary); color: #fff; flex: none; }
.lc-head-ico i, .lc-head-ico svg { width: 20px; height: 20px; }
.lc-head-sub { margin: 2px 0 0; font-size: 12.5px; color: var(--muted-fg); }
.lc-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 28px; margin-top: 6px; }
.lc-col { min-width: 0; }
.lc-first { margin-top: 14px; }
.lc-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.lc-desc { width: 100%; min-height: 120px; resize: vertical; }
.lc-toggles { gap: 6px; }
.lc-private-card { margin-top: 16px; border: 1px solid var(--border); border-radius: var(--r); padding: 6px; background: var(--card); transition: border-color .2s, background .2s; }
.lc-private-card.on { border-color: var(--primary); background: color-mix(in srgb, var(--primary) 6%, var(--card)); }
.lc-private-main span { flex-wrap: wrap; row-gap: 0; }
.lc-private-main small { display: block; width: 100%; padding-left: 24px; font-size: 11.5px; font-weight: 500; color: var(--muted-fg); }
.lc-private-extra { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .22s ease; }
.lc-private-extra > .live-toggle-row { overflow: hidden; min-height: 0; margin-top: 0; padding-top: 0; padding-bottom: 0; transition: padding .22s ease, margin .22s ease; }
.lc-private-card.on .lc-private-extra { grid-template-rows: 1fr; }
.lc-private-card.on .lc-private-extra > .live-toggle-row { margin-top: 6px; padding-top: 9px; padding-bottom: 9px; }
@media (max-width: 760px) {
  .live-create-modal { max-width: 520px; }
  .lc-grid { grid-template-columns: 1fr; gap: 0; }
  .lc-row2 { grid-template-columns: 1fr; gap: 0; }
}
.live-field-label { display: block; font-size: 11.5px; font-weight: 700; color: var(--muted-fg); margin: 14px 0 6px; }
.live-input { width: 100%; padding: 11px 13px; border-radius: var(--r); background: var(--muted); border: 1px solid var(--border); color: var(--fg); font-size: 13.5px; font-family: var(--font); }
.live-input:focus { border-color: var(--primary); outline: none; }
.live-toggles { display: flex; flex-direction: column; gap: 4px; }
.live-toggle-row { display: flex; align-items: center; justify-content: space-between; padding: 9px 12px; border-radius: var(--r); background: var(--muted); cursor: pointer; font-size: 13.5px; }
.live-toggle-row span { display: inline-flex; align-items: center; gap: 8px; }
.live-toggle-row span i { width: 16px; height: 16px; color: var(--muted-fg); }
.live-toggle-row input { width: 18px; height: 18px; accent-color: var(--primary); }
.live-modal-error { display: none; color: var(--error); font-size: 12px; margin-top: 8px; }

/* ── Lobby ─────────────────────────────────────────────────────────────────── */
.live-lobby { position: fixed; inset: var(--banner-h, 0px) 0 0 0; background: var(--bg); z-index: 500; display: flex; align-items: center; justify-content: center; }
.live-lobby-back { position: absolute; left: 16px; top: 16px; width: 42px; height: 42px; border-radius: 50%; background: var(--overlay-2); color: var(--fg); display: flex; align-items: center; justify-content: center; }
.live-lobby-inner { display: flex; gap: 40px; align-items: center; width: 100%; max-width: 1000px; padding: 24px; }
.live-lobby-preview { position: relative; flex: 1.4; aspect-ratio: 16/10; background: var(--video-well); border-radius: 24px; overflow: hidden; max-width: 620px; }
.live-lobby-preview video { width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); }
.live-lobby-avatar { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.live-lobby-cam-off { position: absolute; left: 0; right: 0; bottom: 82px; text-align: center; color: rgba(255,255,255,.7); font-size: 13px; }
.live-lobby-toggles { position: absolute; left: 0; right: 0; bottom: 22px; display: flex; justify-content: center; gap: 16px; }
.lobby-toggle { width: 56px; height: 56px; border-radius: 50%; background: #fff; color: #141418; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 14px rgba(0,0,0,.35); transition: transform .1s; }
.lobby-toggle:hover { transform: scale(1.05); }
.lobby-toggle.off { background: #EB4D4D; color: #fff; }
.lobby-toggle i { width: 24px; height: 24px; }
.live-lobby-side { flex: 1; display: flex; flex-direction: column; gap: 12px; max-width: 340px; }
.live-lobby-title { color: var(--fg); font-size: 26px; font-weight: 900; line-height: 1.15; }
.live-lobby-sub { color: var(--muted-fg); font-size: 14px; line-height: 1.5; }
.live-lobby-roles { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.live-lobby-role-opt {
  display: flex; align-items: flex-start; gap: 12px; text-align: left;
  padding: 12px 14px; border-radius: 14px; background: var(--overlay-1);
  border: 1.5px solid var(--border); transition: border-color .15s, background .15s;
}
.live-lobby-role-opt:hover { background: var(--overlay-2); }
.live-lobby-role-opt.active { border-color: var(--primary); background: rgba(43,91,238,.12); }
.live-lobby-role-opt i { width: 20px; height: 20px; color: var(--muted-fg); flex-shrink: 0; margin-top: 2px; }
.live-lobby-role-opt.active i { color: var(--primary); }
.live-lobby-role-opt strong { display: block; color: var(--fg); font-size: 13.5px; font-weight: 800; margin-bottom: 2px; }
.live-lobby-role-opt span { display: block; color: var(--muted-fg); font-size: 12px; line-height: 1.45; }
.live-lobby-join { margin-top: 8px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 15px; border-radius: 16px; background: var(--grad); color: #fff; font-size: 15px; font-weight: 800; box-shadow: 0 8px 24px rgba(43,91,238,.4); }
.live-lobby-join i { width: 19px; height: 19px; }

.live-lobby-role-opt.disabled { opacity: .45; cursor: not-allowed; }
.live-lobby-role-opt.disabled:hover { background: var(--overlay-1); }
.live-lock-hint {
  margin-top: 10px; width: 100%; display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 14px; border-radius: 12px; background: var(--overlay-1); border: 1px solid var(--border);
  color: var(--muted-fg); font-family: var(--font); font-size: 12px; font-weight: 600; cursor: pointer;
}
.live-lock-hint:hover { background: var(--overlay-2); }
.live-lock-hint i, .live-lock-hint svg { width: 15px; height: 15px; flex-shrink: 0; }

/* ── Teste de nivelamento (web) ─────────────────────────────────────────────── */
.lt-wrap { max-width: 560px; margin: 0 auto; padding: 20px 24px 32px; width: 100%; }
.lt-progress-track { height: 6px; border-radius: 99px; background: var(--border); overflow: hidden; }
.lt-progress-fill { height: 100%; background: var(--primary); border-radius: 99px; transition: width .3s ease; }
.lt-progress-label { font-size: 12px; color: var(--muted-fg); margin-top: 8px; }
.lt-question-body { margin-top: 18px; }
.lt-question-prompt { font-size: 19px; font-weight: 800; color: var(--fg); margin-bottom: 16px; }
.lt-choice {
  display: flex; align-items: center; gap: 10px; width: 100%; text-align: left;
  padding: 13px 16px; border-radius: 14px; margin-bottom: 10px;
  background: var(--card); border: 1.5px solid var(--border); color: var(--fg);
  font-family: var(--font); font-size: 14px; cursor: pointer; transition: border-color .15s, background .15s;
}
.lt-choice i, .lt-choice svg { width: 18px; height: 18px; color: var(--muted-fg); flex-shrink: 0; }
.lt-choice.selected { border-color: var(--primary); background: rgba(43,91,238,.1); }
.lt-choice.selected i, .lt-choice.selected svg { color: var(--primary); }
.lt-grid-row { margin-bottom: 16px; }
.lt-grid-row-label { font-weight: 700; font-size: 13.5px; margin-bottom: 8px; }
.lt-grid-row-cols { display: flex; flex-wrap: wrap; gap: 8px; }
.lt-open-input {
  width: 100%; min-height: 100px; padding: 13px; border-radius: 12px;
  border: 1px solid var(--border); background: var(--card); color: var(--fg);
  font-family: var(--font); font-size: 14px; resize: vertical;
}
.lt-record-row { display: flex; justify-content: center; margin: 18px 0 8px; }
.lt-nav { display: flex; justify-content: flex-end; gap: 10px; margin-top: 24px; }
.lt-nav .memo-btn-primary:disabled { opacity: .4; cursor: default; }
.lt-result { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding-top: 40px; }
.lt-result-ring {
  min-width: 96px; height: 96px; padding: 0 28px; box-sizing: border-box; border-radius: 48px; border: 3px solid;
  display: flex; align-items: center; justify-content: center; white-space: nowrap;
  font-size: 22px; font-weight: 900; margin-bottom: 8px;
}
.lt-result h2 { font-size: 20px; font-weight: 900; color: var(--fg); margin: 0; }
.lt-result p { color: var(--muted-fg); font-size: 14px; max-width: 320px; }
.live-lobby-cancel { color: var(--muted-fg); font-size: 13px; padding: 8px; }

/* ── Call ──────────────────────────────────────────────────────────────────── */
.live-call { position: fixed; inset: var(--banner-h, 0px) 0 0 0; background: var(--bg); z-index: 500; display: flex; flex-direction: column; }
.live-call-top { display: flex; align-items: center; gap: 12px; padding: 12px 16px; }
.live-call-heading { flex: 1; display: flex; align-items: center; gap: 8px; min-width: 0; }
.live-call-name { color: var(--fg); font-weight: 800; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.live-call-count { color: var(--muted-fg); font-size: 12px; font-weight: 600; flex-shrink: 0; }
.live-call-top-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.live-link-btn { display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 14px; border-radius: 999px; background: var(--overlay-2); color: var(--fg); font: inherit; font-size: 12.5px; font-weight: 700; cursor: pointer; border: 1px solid var(--border); transition: background .15s, border-color .15s; }
.live-link-btn:hover { border-color: var(--primary); background: rgba(43,91,238,.12); }
.live-link-btn i, .live-link-btn svg { width: 15px; height: 15px; }
@media (max-width: 720px) { .live-link-btn { width: 36px; padding: 0; justify-content: center; } .live-link-btn span { display: none; } }
.lc-invites { min-height: 72px; }
.live-invites-box { max-width: 460px; }
.live-invites-box h3 { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.live-invites-box h3 svg { width: 18px; height: 18px; color: var(--primary); }
.live-invites-help { color: var(--muted-fg); font-size: 13px; line-height: 1.5; margin: 0 0 12px; }
.live-invites-box textarea { min-height: 150px; width: 100%; }
.live-invites-count { color: var(--muted-fg); font-size: 12px; margin-top: 6px; }
.live-icon-btn { width: 40px; height: 40px; border-radius: 50%; background: var(--overlay-2); color: var(--fg); display: flex; align-items: center; justify-content: center; position: relative; flex-shrink: 0; }
.live-icon-btn.sm { width: 32px; height: 32px; }
.live-icon-btn i { width: 20px; height: 20px; }
.live-icon-btn.hand { color: var(--hand-raised); }
.live-hands-count { position: absolute; top: -2px; right: -2px; background: var(--hand-raised); color: #000; font-size: 9px; font-weight: 800; border-radius: 8px; padding: 1px 5px; min-width: 14px; text-align: center; }
.live-end-btn { display: inline-flex; align-items: center; gap: 6px; padding: 9px 15px; border-radius: 22px; background: rgba(217,38,38,.15); color: var(--mic-off); font-size: 13px; font-weight: 700; border: 1px solid rgba(217,38,38,.3); }
.live-end-btn i { width: 16px; height: 16px; }
.live-end-btn:hover { background: rgba(217,38,38,.28); }

.live-stage { flex: 1; display: flex; flex-direction: column; min-height: 0; padding: 6px; gap: 6px; }
.live-screen-stage { display: none; }
.live-stage.sharing .live-screen-stage, .live-stage.pinned .live-screen-stage { display: flex; flex: 1; min-height: 0; align-items: center; justify-content: center; background: var(--video-well); border-radius: 14px; overflow: hidden; position: relative; }
.live-screen-stage video { width: 100%; height: 100%; object-fit: contain; }
.live-pinned-avatar { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }
.live-share-tag { position: absolute; left: 12px; top: 12px; display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 8px; background: rgba(0,0,0,.6); color: #fff; font-size: 12px; font-weight: 600; }
.live-share-tag i { width: 14px; height: 14px; }
.live-own-share-bar { position: absolute; left: 12px; right: 12px; bottom: 12px; display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 10px; background: rgba(0,0,0,.65); color: #fff; }
.live-own-share-bar i { width: 16px; height: 16px; flex-shrink: 0; color: var(--primary); }
.live-own-share-bar span { font-size: 13px; font-weight: 600; flex: 1; }
.live-stop-share { padding: 9px 18px; border-radius: 22px; background: rgba(217,38,38,.2); color: var(--mic-off); font-weight: 700; font-size: 13px; border: 1px solid rgba(217,38,38,.35); flex-shrink: 0; }

.live-tiles { flex: 1; display: grid; gap: 6px; min-height: 0; grid-auto-rows: 1fr; }
.live-tiles > .live-tile { grid-column: span 2; }
.live-tiles[data-count="1"] { grid-template-columns: repeat(2, 1fr); }
.live-tiles[data-count="2"] { grid-template-columns: repeat(4, 1fr); }
.live-tiles[data-count="3"] { grid-template-columns: repeat(6, 1fr); }
.live-tiles[data-count="4"] { grid-template-columns: repeat(8, 1fr); }
.live-stage.sharing .live-tiles, .live-stage.pinned .live-tiles {
  flex: none; display: flex; flex-wrap: wrap; align-content: flex-start;
  justify-content: center; gap: 8px; max-height: 200px; overflow-x: hidden; overflow-y: auto; padding: 2px;
}
.live-stage.sharing .live-tile, .live-stage.pinned .live-tile { flex: 0 0 148px; width: 148px; height: 108px; min-height: 0; }
.live-stage.sharing .live-tile-avatar, .live-stage.pinned .live-tile-avatar { bottom: 26px; }
.live-stage.sharing .live-tile-avatar .live-av, .live-stage.pinned .live-tile-avatar .live-av { width: 44px !important; height: 44px !important; }
.live-stage.sharing .live-tile-avatar .live-av span, .live-stage.pinned .live-tile-avatar .live-av span { font-size: 18px; }
.live-stage.sharing .live-tile-label, .live-stage.pinned .live-tile-label { left: 0; right: 0; bottom: 0; max-width: none; border-radius: 0; padding: 4px 8px; font-size: 11px; background: rgba(0,0,0,.45); }
.live-stage.sharing .live-tile-hand, .live-stage.pinned .live-tile-hand { top: 4px; right: 4px; padding: 3px 5px; }
.live-stage.sharing .live-tile-actions, .live-stage.pinned .live-tile-actions { top: 4px; left: 4px; }
.live-stage.sharing .live-tile-actions button, .live-stage.pinned .live-tile-actions button { width: 24px; height: 24px; }
.live-stage.sharing .live-tiles::-webkit-scrollbar, .live-stage.pinned .live-tiles::-webkit-scrollbar { width: 6px; }
.live-stage.sharing .live-tiles::-webkit-scrollbar-track, .live-stage.pinned .live-tiles::-webkit-scrollbar-track { background: transparent; }
.live-stage.sharing .live-tiles::-webkit-scrollbar-thumb, .live-stage.pinned .live-tiles::-webkit-scrollbar-thumb { background: var(--overlay-3); border-radius: 3px; }

.live-tile { position: relative; background: var(--card); border-radius: 16px; overflow: hidden; border: 2.5px solid transparent; transition: border-color .18s; min-height: 120px; }
.live-tile.speaking { border-color: #22C55E; box-shadow: 0 0 0 3px rgba(34,197,94,.35), 0 0 18px rgba(34,197,94,.35); }
.live-tile.speaking .live-tile-label { background: #16A34A; }
.live-tile.hand-up { border-color: var(--hand-raised); }
.live-tile.pinned { border-color: var(--link-soft); }
.live-tile-media { position: absolute; inset: 0; }
.live-tile-media video { width: 100%; height: 100%; object-fit: cover; }
.live-tile-media.live-video-mirrored { transform: scaleX(-1); }
.live-tile-avatar { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.live-tile-avatar .live-av { width: 72px; height: 72px; }
.live-tile-avatar .live-av span { font-size: 28px; }
.live-stage.sharing .live-tile-avatar .live-av span, .live-stage.pinned .live-tile-avatar .live-av span { font-size: 18px; }
.live-tile-label { position: absolute; left: 8px; bottom: 8px; display: inline-flex; align-items: center; gap: 5px; max-width: calc(100% - 16px); padding: 4px 8px; border-radius: 8px; background: rgba(0,0,0,.55); color: #fff; font-size: 11.5px; font-weight: 700; }
.live-tile-label span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tile-mic { width: 13px; height: 13px; color: #4DE98A; flex-shrink: 0; }
.tile-mic.muted { color: #FF6B6B; }
.live-tile-hand { display: none; position: absolute; top: 8px; right: 8px; padding: 5px 7px; border-radius: 9px; background: var(--hand-raised); }
.live-tile-hand i { width: 15px; height: 15px; color: #000; }
.live-tile.hand-up .live-tile-hand { display: flex; align-items: center; gap: 4px; }
.live-tile-hand-pos { font-size: 12px; font-weight: 800; color: #000; line-height: 1; }
.live-tile-actions { position: absolute; top: 8px; left: 8px; display: flex; gap: 5px; opacity: 0; transition: opacity .15s; }
.live-tile:hover .live-tile-actions { opacity: 1; }
.live-tile.pinned .live-tile-actions { opacity: 1; }
.live-tile-actions button { width: 30px; height: 30px; border-radius: 50%; background: rgba(0,0,0,.6); color: #fff; display: flex; align-items: center; justify-content: center; }
.live-tile-actions button:hover { background: var(--primary); }
.live-tile-actions button i { width: 15px; height: 15px; }
.overflow-tile { display: flex; align-items: center; justify-content: center; }
.live-overflow { display: flex; flex-direction: column; align-items: center; color: var(--fg); font-size: 26px; font-weight: 900; }
.live-overflow span { font-size: 11px; font-weight: 500; color: var(--muted-fg); }

.live-start-audio { position: absolute; left: 50%; top: 74px; transform: translateX(-50%); z-index: 20; display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 24px; background: var(--primary); color: #fff; font-weight: 700; font-size: 13px; box-shadow: 0 6px 18px rgba(43,91,238,.5); }
.live-start-audio i { width: 17px; height: 17px; }

/* typing */
.live-typing { display: none; align-items: center; gap: 8px; padding: 4px 20px; color: var(--muted-fg); font-size: 12.5px; }
.live-chat-typing { display: none; align-items: center; gap: 8px; padding: 6px 16px; color: var(--muted-fg); font-size: 12.5px; }
.typing-dots { display: inline-flex; gap: 3px; }
.typing-avs { display: inline-flex; align-items: center; gap: 4px; }
.typing-av { display: inline-flex; width: 18px; height: 18px; flex-shrink: 0; animation: typingAvIn .34s cubic-bezier(.34,1.56,.64,1) both; }
.typing-av.out { animation: typingAvOut .26s ease forwards; }
.typing-av .live-av { width: 18px !important; height: 18px !important; box-shadow: 0 0 0 1.5px var(--card); }
.typing-av .live-av span { font-size: 9px; }
@keyframes typingAvIn { from { opacity: 0; transform: scale(.3) translateY(5px); } to { opacity: 1; transform: none; } }
@keyframes typingAvOut { from { opacity: 1; transform: none; width: 18px; } to { opacity: 0; transform: scale(.3); width: 0; margin-right: -4px; } }
@media (prefers-reduced-motion: reduce) { .typing-av, .typing-av.out { animation-duration: .01s; } }
.typing-dots i { width: 5px; height: 5px; border-radius: 50%; background: currentColor; animation: typingBounce 1s infinite; }
.typing-dots i:nth-child(2) { animation-delay: .15s; }
.typing-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes typingBounce { 0%,60%,100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-4px); opacity: 1; } }

/* controls */
.live-controls-bar { display: flex; align-items: center; justify-content: safe center; gap: 8px; padding: 8px 12px 14px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
.live-controls-bar::-webkit-scrollbar { display: none; }
.live-ctrl-group { display: flex; align-items: flex-start; padding: 6px 4px 5px; border-radius: 20px; background: var(--overlay-1); flex: none; }
/* Slot sempre presente (mic/cam/tela/mão/enquete) — a permissão liga/desliga
   com encolhimento + fade em vez de sumir seco, e os vizinhos se
   reposicionam sozinhos (flex gap já cuida do espaçamento). */
.live-ctrl-slot { display: flex; overflow: hidden; max-width: 90px; opacity: 1; transition: max-width .26s cubic-bezier(.33,1,.68,1), opacity .18s ease; }
.live-ctrl-slot.collapsed { max-width: 0; opacity: 0; pointer-events: none; }
.live-ctrl-btn { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 56px; padding: 0 2px; flex: none; }
.live-ctrl-icon { position: relative; width: 44px; height: 44px; border-radius: 50%; background: var(--overlay-2); color: var(--fg); display: flex; align-items: center; justify-content: center; transition: background .12s, transform .1s; }
.live-ctrl-btn:hover .live-ctrl-icon { transform: translateY(-2px); }
.live-ctrl-icon i { width: 20px; height: 20px; }
.live-ctrl-badge { position: absolute; top: -2px; right: -2px; background: var(--primary); color: #fff; font-size: 10px; font-weight: 800; border-radius: 10px; padding: 1px 6px; min-width: 18px; text-align: center; }
.live-ctrl-btn.active .live-ctrl-icon { background: var(--fg); color: var(--bg); }
.live-ctrl-btn.warn .live-ctrl-icon { color: var(--mic-off); }
.live-ctrl-btn.amber .live-ctrl-icon { background: var(--hand-raised); color: #000; }
.live-ctrl-btn.destructive .live-ctrl-icon { background: #EB4D4D; color: #fff; }
.live-ctrl-label { color: var(--muted-fg); font-size: 10.5px; font-weight: 600; white-space: nowrap; }

/* relógio — vive dentro da barra superior, no canto direito */
#live-clock {
  display: flex; flex-direction: column; align-items: flex-end; justify-content: center;
  gap: 1px; flex-shrink: 0;
}
.live-clock-time { color: var(--fg); font-size: 15px; font-weight: 800; letter-spacing: .3px; line-height: 1.15; font-variant-numeric: tabular-nums; }
.live-clock-date { color: var(--muted-fg); font-size: 10px; font-weight: 600; text-transform: capitalize; line-height: 1.15; }
@media (max-width: 560px) {
  .live-clock-date { display: none; }
}

/* toasts flutuantes */
.live-toasts { position: fixed; top: calc(74px + var(--banner-h, 0px)); right: 16px; z-index: 520; display: flex; flex-direction: column; gap: 8px; pointer-events: none; transition: top .25s ease; }
.live-toast { display: flex; align-items: center; gap: 10px; max-width: 300px; padding: 10px 12px; border-radius: 14px; background: rgba(30,30,36,.96); border: 1px solid rgba(255,255,255,.08); box-shadow: 0 8px 24px rgba(0,0,0,.4); animation: toastIn .28s ease; }
.live-toast.out { animation: toastOut .3s ease forwards; }
.live-toast.hand { border-color: rgba(240,188,94,.4); }
.live-toast.join { pointer-events: auto; }
.live-toast.wave-sent { border-color: rgba(255,201,77,.35); }
.live-toast.wave-sent .wave-hand { width: 30px; height: 30px; }
.live-toast-wave { pointer-events: auto; flex-shrink: 0; width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #FFC94D; background: rgba(255,201,77,.12); border: 1px solid rgba(255,201,77,.3); transition: transform .15s, background .15s; }
.live-toast-wave:hover { background: rgba(255,201,77,.22); transform: scale(1.06); }

.wave-hand { width: 46px; height: 46px; flex-shrink: 0; overflow: visible; }
.wave-hand .wave-palm { fill: #FFC94D; transform-box: view-box; transform-origin: 32px 58px; animation: liveWaveHand 1.3s ease-in-out 3; }
.wave-hand .wave-shine { fill: #fff; opacity: .22; }
.wave-hand .wave-motion { fill: none; stroke: #FFC94D; stroke-width: 2.6; stroke-linecap: round; opacity: 0; animation: liveWaveMotion 1.3s ease-in-out 3; }
.wave-hand.mini { width: 18px; height: 18px; }
.wave-hand.mini .wave-palm { fill: currentColor; animation: none; }
.wave-hand.mini .wave-shine, .wave-hand.mini .wave-motion { display: none; }
@keyframes liveWaveHand { 0%, 100% { transform: rotate(0); } 15% { transform: rotate(17deg); } 32% { transform: rotate(-12deg); } 49% { transform: rotate(17deg); } 66% { transform: rotate(-12deg); } 83% { transform: rotate(8deg); } }
@keyframes liveWaveMotion { 0%, 100% { opacity: 0; } 18%, 72% { opacity: .85; } }

.live-waves { position: fixed; top: calc(74px + var(--banner-h, 0px)); left: 50%; transform: translateX(-50%); z-index: 530; display: flex; flex-direction: column; gap: 10px; width: min(460px, calc(100vw - 24px)); pointer-events: none; }
.live-wave-card { pointer-events: auto; display: flex; align-items: center; gap: 12px; padding: 12px 12px 12px 14px; border-radius: 18px; background: linear-gradient(135deg, rgba(44,37,20,.97), rgba(24,24,30,.97)); border: 1px solid rgba(255,201,77,.38); box-shadow: 0 14px 36px rgba(0,0,0,.5); animation: liveWaveIn .42s cubic-bezier(.2,1.3,.4,1); }
.live-wave-card.out { animation: toastOut .3s ease forwards; }
.live-wave-card .live-wave-av { flex-shrink: 0; }
.live-wave-text { flex: 1; min-width: 0; color: rgba(255,255,255,.85); font-size: 14px; line-height: 1.35; }
.live-wave-text b { color: #fff; font-weight: 800; }
.live-wave-btn { flex-shrink: 0; display: inline-flex; align-items: center; gap: 7px; padding: 9px 14px; border-radius: 999px; background: #FFC94D; color: #241b02; font-size: 13px; font-weight: 800; white-space: nowrap; transition: transform .15s, filter .15s; }
.live-wave-btn:hover { transform: translateY(-1px); filter: brightness(1.05); }
.live-wave-btn:disabled { opacity: .75; transform: none; cursor: default; }
.live-wave-x { flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%; color: rgba(255,255,255,.55); display: flex; align-items: center; justify-content: center; }
.live-wave-x:hover { background: rgba(255,255,255,.08); color: #fff; }
.live-wave-x i { width: 16px; height: 16px; }
@keyframes liveWaveIn { from { transform: translateY(-16px) scale(.95); opacity: 0; } to { transform: none; opacity: 1; } }
@media (max-width: 560px) {
  .live-waves { top: calc(62px + var(--banner-h, 0px)); }
  .live-wave-card { flex-wrap: wrap; gap: 10px; padding: 12px; }
  .live-wave-card .wave-hand { width: 40px; height: 40px; }
  .live-wave-text { flex-basis: calc(100% - 140px); }
  .live-wave-btn { order: 5; width: 100%; justify-content: center; padding: 11px 14px; font-size: 14px; }
}

.live-person-wave { width: 30px; height: 30px; border-radius: 50%; color: #FFC94D; display: flex; align-items: center; justify-content: center; flex-shrink: 0; opacity: .75; transition: opacity .15s, background .15s; }
.live-person-wave:hover { opacity: 1; background: rgba(255,201,77,.12); }
.live-tile-wave { color: #FFC94D !important; }
@keyframes toastIn { from { transform: translateX(30px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes toastOut { to { transform: translateX(30px); opacity: 0; } }
.live-toast-body { min-width: 0; }
.live-toast-name { color: #fff; font-size: 13px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.live-toast-tag { color: var(--hand-raised); font-weight: 600; font-size: 11.5px; }
.live-toast-text { color: rgba(255,255,255,.7); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* painéis */
.live-panel { position: fixed; right: 0; top: var(--banner-h, 0px); bottom: 0; width: 340px; max-width: 90vw; background: var(--card); border-left: 1px solid var(--border); z-index: 510; display: flex; flex-direction: column; box-shadow: -8px 0 30px rgba(0,0,0,.25); animation: slideInRight .2s ease; }
@keyframes slideInRight { from { transform: translateX(20px); opacity: 0; } to { transform: none; opacity: 1; } }
.live-panel-head { display: flex; align-items: center; justify-content: space-between; padding: 16px; color: var(--fg); font-weight: 800; font-size: 15px; border-bottom: 1px solid var(--border); }
.live-panel-head span { display: inline-flex; align-items: center; gap: 8px; }
.live-panel-head i { width: 18px; height: 18px; }
.live-panel-note { padding: 8px 16px; font-size: 11.5px; color: var(--muted-fg); }
.live-chat-msgs { flex: 1; overflow-y: auto; padding: 8px 16px; display: flex; flex-direction: column; gap: 10px; }
.live-chat-msg { display: flex; align-items: flex-end; gap: 8px; max-width: 90%; align-self: flex-start; }
.live-chat-msg.mine { align-self: flex-end; }
.live-chat-bubble { padding: 8px 12px; border-radius: 14px; background: var(--secondary); }
.live-chat-msg.mine .live-chat-bubble { background: var(--primary); }
.live-chat-msg.mine .live-chat-bubble span, .live-chat-msg.mine .live-chat-bubble strong { color: #fff; }
.live-chat-bubble strong { display: block; color: var(--link-soft); font-size: 11px; font-weight: 700; margin-bottom: 2px; }
.live-chat-bubble span { color: var(--fg); font-size: 14px; word-break: break-word; }
.live-chat-bubble span strong { display: inline; color: inherit; font-weight: 800; }
.live-chat-bubble span a { color: var(--link-soft); text-decoration: underline; word-break: break-all; }
.live-chat-msg.mine .live-chat-bubble span a { color: #fff; }
.live-chat-input-row { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--border); }
.live-chat-input-row input { flex: 1; min-width: 0; padding: 11px 14px; border-radius: 24px; border: none; background: var(--secondary); color: var(--fg); font-size: 13.5px; }
.live-chat-input-row button { width: 44px; height: 44px; border-radius: 50%; background: var(--grad); color: #fff; display: flex; align-items: center; justify-content: center; }
.live-chat-input-row button i { width: 18px; height: 18px; }
.live-people-list { flex: 1; overflow-y: auto; padding: 8px; }
.live-person { display: flex; flex-direction: column; gap: 5px; padding: 8px 10px; border-radius: 12px; }
.live-person:hover { background: var(--overlay-1); }
.live-person-top { display: flex; align-items: center; gap: 10px; }
.live-person .live-av { width: 38px; height: 38px; flex-shrink: 0; }
.live-person-info { flex: 1; min-width: 0; }
.live-person-name { color: var(--fg); font-size: 13.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.live-person-hand { color: var(--hand-raised); font-size: 11.5px; }
.live-person-progress { display: flex; align-items: center; gap: 7px; margin-left: 48px; min-width: 0; }
.live-person-progress-bar { width: 46px; height: 4px; border-radius: 2px; background: var(--border); overflow: hidden; flex-shrink: 0; }
.live-person-progress-bar span { display: block; height: 100%; background: var(--primary); border-radius: 2px; }
.live-person-progress > span { color: var(--muted-fg); font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.live-person { border: 1.5px solid transparent; transition: border-color .15s, background .15s; }
.live-person.speaking { border-color: rgba(34,197,94,.7); background: rgba(34,197,94,.08); }
.live-person.hand-up { background: rgba(240,188,94,.07); }
.live-hand-group { background: rgba(240,188,94,.08); border: 1px solid rgba(240,188,94,.3); border-radius: 14px; padding: 3px; margin-bottom: 4px; }
.live-hand-group .live-person.hand-up { background: transparent; border-radius: 11px; }
.live-hand-group .live-person.hand-up:hover { background: rgba(240,188,94,.09); }
.live-hand-group .live-person.speaking { background: rgba(34,197,94,.08); }
.live-person-chips { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 3px; }
.live-lower-all { display: flex; align-items: center; justify-content: center; gap: 6px; width: calc(100% - 4px); margin: 2px 2px 8px; padding: 9px 12px; border-radius: 12px; background: rgba(240,188,94,.16); color: var(--hand-raised); font-size: 12.5px; font-weight: 700; }
.live-lower-all i { width: 15px; height: 15px; }
.live-lower-all:hover { background: rgba(240,188,94,.28); }
.live-chip { display: inline-flex; align-items: center; padding: 2px 8px; border-radius: 10px; font-size: 11px; font-weight: 600; background: var(--overlay-2); color: var(--muted-fg); }
.live-chip.hand { background: rgba(240,188,94,.18); color: var(--hand-raised); }
button.live-chip.hand:hover { background: rgba(240,188,94,.32); }
.live-person-status { display: inline-flex; align-items: center; gap: 2px; flex-shrink: 0; }
.live-person-media { width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: default; }
.live-person-media i { width: 16px; height: 16px; }
.live-person-media.on { color: var(--mic-on); }
.live-person-media.off { color: var(--mic-off); opacity: .7; }
.live-person-media.clickable { cursor: pointer; background: var(--overlay-1); }
.live-person-media.clickable:hover { background: var(--overlay-3); }
.live-person-more { width: 30px; height: 30px; border-radius: 50%; color: var(--muted-fg); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.live-person-more i { width: 16px; height: 16px; }
.live-person-more:hover, .live-person-more.on { background: var(--overlay-2); color: var(--fg); }
.live-person-menu { display: flex; gap: 6px; margin-left: 48px; flex-wrap: wrap; }
.live-person-menu button { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 16px; background: var(--overlay-2); color: var(--fg); font-size: 12px; font-weight: 600; }
.live-person-menu button i { width: 14px; height: 14px; }
.live-person-menu button.danger { color: var(--mic-off); }
.live-person-menu button.danger:hover { background: rgba(217,38,38,.2); }
.live-person-act { width: 32px; height: 32px; border-radius: 50%; background: var(--overlay-1); color: var(--fg); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.live-person-act.on { background: rgba(43,91,238,.3); color: var(--link-soft); }
.live-person-act.danger:hover { background: rgba(217,38,38,.6); }
.live-person-act i { width: 15px; height: 15px; }

@media (max-width: 720px) {
  .live-lobby-inner { flex-direction: column; gap: 20px; padding: 16px; }
  .live-lobby-preview { width: 100%; max-width: 100%; }
  .live-lobby-side { max-width: 100%; width: 100%; align-items: center; text-align: center; }
  .live-lobby-side .live-room-badge { align-self: center !important; }
  .live-lobby-join { width: 100%; }
  .live-panel { width: 100%; max-width: 100%; }
  .live-rooms-list { grid-template-columns: 1fr; }
  .live-ctrl-icon { width: 42px; height: 42px; }
  .live-ctrl-btn { min-width: 50px; }
  .live-controls-bar { gap: 6px; padding: 6px 8px 10px; justify-content: flex-start; }
  .live-toasts { left: 12px; right: 12px; top: calc(68px + var(--banner-h, 0px)); }
  .live-toast { max-width: 100%; }
}

/* ══════════════════════════════════════════════════════════════════════════════
   COACH / SUPORTE EM PÁGINA CHEIA
══════════════════════════════════════════════════════════════════════════════ */
.coach-panel.chat-page {
  top: calc(var(--nav-h) + var(--banner-h, 0px)); left: 0; right: 0; bottom: 0;
  width: auto; height: auto; max-width: none;
  border: none; border-radius: 0; box-shadow: none;
  background: var(--bg);
  padding: 0 max(0px, calc((100vw - 900px) / 2));
  transform-origin: center top;
  animation: chatPageIn .22s cubic-bezier(.22,1,.36,1) both;
}
.coach-panel.support-panel.admin-mode.chat-page {
  width: auto; height: auto; right: 0;
  padding: 0 max(0px, calc((100vw - 1180px) / 2));
}
.coach-panel.chat-page.closing { animation: chatPageOut .18s ease-in both; }
@keyframes chatPageIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes chatPageOut { from { opacity: 1; transform: none; } to { opacity: 0; transform: translateY(10px); } }
.chat-page .coach-header { background: var(--card); border-left: 1px solid var(--border); border-right: 1px solid var(--border); }
.chat-page > #coach-body, .chat-page > #support-body, .chat-page > .coach-input-area {
  background: var(--card); border-left: 1px solid var(--border); border-right: 1px solid var(--border);
}
.chat-page > .coach-input-area { border-bottom: 1px solid var(--border); }
.chat-back-btn {
  display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0;
  padding: 7px 12px 7px 9px; border-radius: 999px;
  background: var(--overlay-1); border: 1px solid var(--border);
  font-size: 12.5px; font-weight: 700; color: var(--fg); cursor: pointer;
  transition: background .15s;
}
.chat-back-btn:hover { background: var(--overlay-2); }
.chat-back-btn i { width: 15px; height: 15px; }
.chat-page .coach-threads-btn { margin-left: auto; }

.coach-input-area { position: relative; }

/* Anexos: imagem / vídeo clicáveis */
.support-att-image { cursor: zoom-in; }
.support-att-video {
  position: relative; cursor: pointer; width: 240px; max-width: 100%; aspect-ratio: 16/10;
  background: linear-gradient(135deg, #10131c, #1b2233); overflow: hidden;
}
.support-att-video > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.support-att-video-play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 46px; height: 46px; border-radius: 50%;
  background: rgba(0,0,0,.55); backdrop-filter: blur(6px); color: #fff;
  display: flex; align-items: center; justify-content: center;
  transition: transform .15s;
}
.support-att-video:hover .support-att-video-play { transform: translate(-50%, -50%) scale(1.1); }
.support-att-video-play i { width: 20px; height: 20px; margin-left: 2px; }
.support-att-video-dur {
  position: absolute; right: 8px; bottom: 8px; padding: 2px 7px; border-radius: 999px;
  background: rgba(0,0,0,.6); color: #fff; font-size: 11px; font-weight: 700;
}

/* Lightbox */
.support-lightbox {
  position: fixed; inset: 0; z-index: 6000; background: rgba(0,0,0,.88);
  display: flex; align-items: center; justify-content: center; padding: 24px;
  animation: chatPageIn .18s ease both;
}
.support-lightbox-stage { position: relative; max-width: min(1100px, 100%); max-height: 100%; display: flex; align-items: center; justify-content: center; }
.support-lightbox-stage img, .support-lightbox-stage video {
  max-width: 100%; max-height: calc(100vh - 48px); border-radius: 12px; background: #000; display: block;
}
.support-lightbox-stage video { width: min(1000px, 92vw); }
.support-lightbox-loading { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; pointer-events: none; z-index: 1; }
.support-lightbox-close {
  position: absolute; top: 18px; right: 18px; width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,.14); color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.support-lightbox-close:hover { background: rgba(255,255,255,.25); }

/* Player de áudio */
.support-att-audio {
  display: flex; align-items: center; gap: 10px; padding: 8px 12px 8px 8px;
  border-radius: 999px; background: var(--overlay-1); border: 1px solid var(--border);
  min-width: 230px; max-width: 290px; margin-bottom: 6px; color: var(--fg);
}
.sa-play {
  width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0; border: none; cursor: pointer;
  background: var(--grad); color: #fff; display: flex; align-items: center; justify-content: center;
}
.sa-play svg { width: 16px; height: 16px; }
.sa-wave { flex: 1; display: flex; align-items: center; gap: 2px; height: 28px; cursor: pointer; }
.sa-wave i { flex: 1; min-width: 2px; border-radius: 2px; background: var(--muted-fg); opacity: .45; transition: opacity .1s, background .1s; }
.sa-wave i.on { background: var(--primary); opacity: 1; }
.support-att-audio.playing .sa-wave i.on { animation: saPulse 1s ease-in-out infinite; }
@keyframes saPulse { 50% { opacity: .65; } }
.sa-time { font-size: 11px; font-weight: 700; color: var(--muted-fg); font-variant-numeric: tabular-nums; min-width: 32px; text-align: right; }

/* Overlay de envio com % */
.support-upload-overlay {
  position: absolute; inset: 0; z-index: 3; overflow: hidden;
  background: var(--card); display: flex; align-items: center; padding: 0 20px;
}
.support-upload-fill {
  position: absolute; left: 0; top: 0; bottom: 0; width: 0;
  background: linear-gradient(90deg, rgba(43,91,238,.28), rgba(14,165,233,.28));
  transition: width .18s linear;
}
.support-upload-fill::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(100deg, transparent 20%, rgba(255,255,255,.22) 50%, transparent 80%);
  animation: supportShimmer 1.3s linear infinite;
}
@keyframes supportShimmer { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
.support-upload-label { position: relative; display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 700; color: var(--fg); animation: supportBlink 1.4s ease-in-out infinite; }
.support-upload-label b { margin-left: auto; font-variant-numeric: tabular-nums; }
.support-upload-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--primary); }
@keyframes supportBlink { 50% { opacity: .55; } }

/* Barra de gravação */
.support-rec-bar {
  position: absolute; inset: 0; z-index: 4; background: var(--card);
  display: flex; align-items: center; gap: 12px; padding: 0 16px;
  animation: chatPageIn .16s ease both;
}
.support-rec-cancel, .support-rec-send {
  width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.support-rec-cancel { background: var(--overlay-1); color: var(--muted-fg); }
.support-rec-cancel:hover { color: #ef4444; }
.support-rec-send { background: var(--grad); color: #fff; }
.support-rec-cancel i, .support-rec-send i { width: 17px; height: 17px; }
.support-rec-dot { width: 10px; height: 10px; border-radius: 50%; background: #ef4444; animation: supportRecPulse 1s ease-in-out infinite; flex-shrink: 0; }
@keyframes supportRecPulse { 50% { transform: scale(1.5); opacity: .5; } }
.support-rec-time { font-size: 14px; font-weight: 800; font-variant-numeric: tabular-nums; min-width: 38px; }
.support-rec-wave { flex: 1; display: flex; align-items: center; gap: 3px; height: 32px; min-width: 0; }
.support-rec-wave i { flex: 1; min-width: 2px; height: 8%; border-radius: 3px; background: var(--primary); transition: height .08s linear; }

@media (max-width: 600px) {
  .coach-panel.chat-page { padding: 0; }
  .chat-page .coach-header { padding: 12px; gap: 8px; }
  .chat-page .chat-back-btn span { display: none; }
}

html.chat-open, html.chat-open body { overflow: hidden !important; }
.chat-page, .chat-page * { overscroll-behavior: contain; }

.chat-page .coach-header { flex-wrap: wrap; row-gap: 10px; }
.chat-back-row { flex: 0 0 100%; display: flex; }
.support-att-chip-label { max-width: 240px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.support-att-chip { max-width: 100%; min-width: 0; }
.support-thread-preview, .support-thread-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }

.msg-row.grp-next { margin-bottom: -12px; }
.msg-row.grp-next .msg-avatar { visibility: hidden; }
.msg-row.grp-next .msg-time { display: none; }
.msg-row.user.grp-next .msg-bubble { border-bottom-right-radius: 5px; }
.msg-row.user.grp-prev .msg-bubble { border-top-right-radius: 5px; }
.msg-row.assistant.grp-next .msg-bubble { border-bottom-left-radius: 5px; }
.msg-row.assistant.grp-prev .msg-bubble { border-top-left-radius: 5px; }

.support-att-video.processing { cursor: default; }
.support-att-video-proc {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  color: #fff; font-size: 12px; font-weight: 700; animation: supportBlink 1.4s ease-in-out infinite;
}
.support-att-file { max-width: 280px; }
.support-att-file-icon { width: 40px; min-width: 40px; height: 40px; border-radius: 10px; font-size: 10px; letter-spacing: .3px; }
.support-att-file-icon.pdf { background: linear-gradient(135deg, #ef4444, #b91c1c) !important; color: #fff !important; }
.support-att-file-icon.doc { background: linear-gradient(135deg, #3b82f6, #1d4ed8) !important; color: #fff !important; }
.support-att-file-icon.zip { background: linear-gradient(135deg, #f59e0b, #b45309) !important; color: #fff !important; }

.support-rec-ind { display: flex; align-items: center; gap: 8px; color: var(--muted-fg); font-size: 11.5px; font-weight: 600; }
.support-rec-ind svg { width: 15px; height: 15px; color: #ef4444; animation: supportRecPulse 1s ease-in-out infinite; }
.support-rec-ind-bars { display: flex; align-items: center; gap: 2px; height: 14px; }
.support-rec-ind-bars i { width: 3px; height: 100%; border-radius: 2px; background: #ef4444; animation: supportRecBar .9s ease-in-out infinite; }
.support-rec-ind-bars i:nth-child(2) { animation-delay: .15s; }
.support-rec-ind-bars i:nth-child(3) { animation-delay: .3s; }
.support-rec-ind-bars i:nth-child(4) { animation-delay: .45s; }
@keyframes supportRecBar { 0%, 100% { transform: scaleY(.3); } 50% { transform: scaleY(1); } }

.support-conv-del { margin-left: auto; color: #ef4444 !important; }

.support-verified { display: inline-flex; vertical-align: -3px; margin-left: 4px; color: var(--primary); }
.support-verified svg { width: 16px; height: 16px; }

/* ══════════════════════════════════════════════════════════════════════════════
   CENTRAL DO USUÁRIO (admin/owner no chat de suporte)
══════════════════════════════════════════════════════════════════════════════ */
.support-conv-manage { color: var(--primary) !important; }
.support-conv-del { margin-left: auto; }

.uc-page { flex: 1; min-height: 0; overflow-y: auto; padding: 18px 22px 48px; background: var(--card); }
.uc-shell { max-width: 1040px; margin: 0 auto; }
.uc-loading { display: flex; align-items: center; justify-content: center; padding: 60px 0; color: var(--muted-fg); }
.uc-topbar { margin-bottom: 14px; }

.uc-hero {
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  padding: 20px; border-radius: var(--r-xl); border: 1px solid var(--border);
  background: linear-gradient(135deg, rgba(43,91,238,.12), rgba(123,73,223,.08));
  margin-bottom: 16px;
}
.uc-av {
  border-radius: 50%; overflow: hidden; flex-shrink: 0; display: flex; align-items: center; justify-content: center;
  font-weight: 800; border: 2px solid rgba(255,255,255,.12); box-shadow: 0 6px 20px rgba(0,0,0,.25);
}
.uc-av img { width: 100%; height: 100%; object-fit: cover; display: block; }
.uc-hero-info { flex: 1; min-width: 200px; }
.uc-hero-name { font-size: 20px; font-weight: 800; letter-spacing: -.2px; }
.uc-hero-email { font-size: 13px; color: var(--muted-fg); margin: 2px 0 8px; word-break: break-all; }
.uc-badges { display: flex; gap: 6px; flex-wrap: wrap; }
.uc-badge { font-size: 10.5px; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: var(--overlay-2); color: var(--muted-fg); }
.uc-badge.owner { background: rgba(240,188,94,.18); color: #F0BC5E; }
.uc-badge.admin { background: rgba(43,91,238,.18); color: #6C9EFF; }
.uc-badge.prof { background: rgba(46,184,96,.18); color: #2EB860; }
.uc-badge.danger { background: rgba(229,72,77,.18); color: #E5484D; }
.uc-hero-meta { display: flex; gap: 22px; flex-wrap: wrap; }
.uc-hero-meta div { display: flex; flex-direction: column; gap: 2px; }
.uc-hero-meta span { font-size: 10.5px; color: var(--muted-fg); text-transform: uppercase; letter-spacing: .4px; font-weight: 700; }
.uc-hero-meta b { font-size: 13px; font-weight: 700; }

.uc-tabs {
  display: flex; gap: 6px; overflow-x: auto; padding: 4px; margin-bottom: 16px;
  background: var(--overlay-1); border: 1px solid var(--border); border-radius: 999px; scrollbar-width: none;
}
.uc-tabs::-webkit-scrollbar { display: none; }
.uc-tab {
  display: flex; align-items: center; gap: 7px; padding: 9px 16px; border-radius: 999px; white-space: nowrap;
  font-size: 12.5px; font-weight: 700; color: var(--muted-fg); cursor: pointer; transition: background .15s, color .15s;
}
.uc-tab i { width: 15px; height: 15px; }
.uc-tab:hover { color: var(--fg); }
.uc-tab.active { background: var(--grad); color: #fff; box-shadow: 0 4px 14px rgba(43,91,238,.35); }

.uc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-bottom: 16px; }
.uc-card {
  background: var(--overlay-1); border: 1px solid var(--border); border-radius: var(--r-xl);
  padding: 18px; margin-bottom: 16px; min-width: 0;
}
.uc-grid .uc-card { margin-bottom: 0; }
.uc-card.wide { grid-column: 1 / -1; }
.uc-card h4 { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 800; margin-bottom: 14px; }
.uc-card h4 i { width: 16px; height: 16px; color: var(--primary); }
.uc-card.danger-zone { border-color: rgba(229,72,77,.4); }
.uc-card.danger-zone h4, .uc-card.danger-zone h4 i { color: #E5484D; }

.uc-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.uc-field label { font-size: 11.5px; font-weight: 700; color: var(--muted-fg); }
.uc-input {
  width: 100%; background: var(--secondary); border: 1px solid var(--border); color: var(--fg);
  border-radius: var(--r); padding: 10px 12px; font-size: 13.5px; font-family: var(--font); outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.uc-input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(43,91,238,.16); }
.uc-input:disabled { opacity: .55; cursor: not-allowed; }
textarea.uc-input { resize: vertical; }
.uc-input-row { display: flex; gap: 8px; align-items: center; }
.uc-input-row .uc-input { flex: 1; min-width: 0; }
.uc-two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.uc-hint { font-size: 11.5px; color: var(--muted-fg); line-height: 1.5; }
.uc-check { display: flex; align-items: center; gap: 9px; font-size: 13px; font-weight: 600; padding: 6px 0; cursor: pointer; }
.uc-check input { width: 16px; height: 16px; accent-color: var(--primary); }
.uc-scrollbox { max-height: 190px; overflow-y: auto; padding: 8px 12px; background: var(--secondary); border-radius: var(--r); margin-top: 6px; }

.uc-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 10px 16px; border-radius: 999px;
  background: var(--grad); color: #fff; font-size: 12.5px; font-weight: 700; cursor: pointer; border: none; transition: opacity .15s, transform .1s;
}
.uc-btn i { width: 15px; height: 15px; }
.uc-btn:hover { opacity: .9; }
.uc-btn:active { transform: scale(.97); }
.uc-btn:disabled { opacity: .45; cursor: not-allowed; }
.uc-btn.ghost { background: var(--overlay-2); color: var(--fg); border: 1px solid var(--border); }
.uc-btn.danger { background: #E5484D; }
.uc-btn.icon { padding: 0; width: 38px; height: 38px; flex-shrink: 0; }
.uc-btn.sm { padding: 7px 12px; font-size: 11.5px; }
.uc-btn.icon.sm { width: 30px; height: 30px; padding: 0; }
.uc-actions { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; margin-top: 6px; }
.uc-savebar { position: sticky; bottom: 0; display: flex; justify-content: flex-end; padding: 12px 0; margin: 4px 0 16px; background: linear-gradient(0deg, var(--card) 60%, transparent); }

.uc-notice { display: flex; align-items: center; gap: 9px; padding: 11px 14px; border-radius: var(--r-lg); font-size: 12.5px; margin-bottom: 14px; }
.uc-notice i { width: 15px; height: 15px; flex-shrink: 0; }
.uc-notice.warn { background: rgba(240,160,32,.12); color: #F0A020; border: 1px solid rgba(240,160,32,.3); }
.uc-notice.danger { background: rgba(229,72,77,.1); color: #E5484D; border: 1px solid rgba(229,72,77,.3); margin-top: 8px; }

.uc-avatar-row { display: flex; gap: 16px; align-items: center; margin-bottom: 14px; flex-wrap: wrap; }
.uc-avatar-side { flex: 1; min-width: 200px; }

.uc-info-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.uc-info-grid div { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.uc-info-grid span { font-size: 10.5px; color: var(--muted-fg); text-transform: uppercase; letter-spacing: .4px; font-weight: 700; }
.uc-info-grid b { font-size: 13px; font-weight: 700; word-break: break-all; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.uc-info-grid .mono { font-family: ui-monospace, monospace; font-size: 11.5px; }
.uc-copy { color: var(--muted-fg); cursor: pointer; display: inline-flex; }
.uc-copy i { width: 13px; height: 13px; }
.uc-chip { font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: var(--overlay-2); }

.uc-table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--r-lg); }
.uc-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.uc-table th { text-align: left; font-size: 10.5px; text-transform: uppercase; letter-spacing: .4px; color: var(--muted-fg); padding: 9px 12px; background: var(--overlay-1); }
.uc-table td { padding: 10px 12px; border-top: 1px solid var(--border); vertical-align: middle; }
.uc-table td.strong { font-weight: 700; }
.uc-table td.muted { color: var(--muted-fg); }
.uc-empty { text-align: center; color: var(--muted-fg); font-size: 12.5px; padding: 18px !important; }
.uc-empty.big { padding: 40px 0 !important; }
.uc-tag { font-size: 10px; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: var(--overlay-2); color: var(--muted-fg); white-space: nowrap; }
.uc-tag.ok { background: rgba(46,184,96,.16); color: #2EB860; }
.uc-tag.warn { background: rgba(240,160,32,.16); color: #F0A020; }
.uc-tag.bad { background: rgba(229,72,77,.16); color: #E5484D; }

.uc-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin-bottom: 16px; }
.uc-stat { display: flex; flex-direction: column; gap: 2px; padding: 14px; border-radius: var(--r-lg); background: var(--overlay-1); border: 1px solid var(--border); }
.uc-stat i { width: 17px; height: 17px; color: var(--primary); margin-bottom: 4px; }
.uc-stat b { font-size: 19px; font-weight: 800; }
.uc-stat span { font-size: 11px; color: var(--muted-fg); font-weight: 600; }
.uc-courses { display: flex; flex-direction: column; gap: 10px; }
.uc-course-card {
  display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: var(--r-lg); text-align: left; width: 100%;
  background: var(--overlay-1); border: 1px solid var(--border); cursor: pointer; transition: border-color .15s, background .15s; color: var(--fg);
}
.uc-course-card:hover { border-color: var(--primary); background: var(--overlay-2); }
.uc-course-card > i { width: 18px; height: 18px; color: var(--muted-fg); flex-shrink: 0; }
.uc-course-ic { width: 40px; height: 40px; border-radius: 12px; background: rgba(43,91,238,.15); color: var(--primary); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.uc-course-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.uc-course-info b { font-size: 14px; }
.uc-course-info span { font-size: 12px; color: var(--muted-fg); }
.uc-bar { height: 6px; border-radius: 99px; background: var(--overlay-2); overflow: hidden; margin-top: 6px; }
.uc-bar div { height: 100%; background: var(--grad); border-radius: 99px; }
.uc-course-pct { font-size: 15px; font-weight: 800; }
.uc-course-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.uc-course-head div { display: flex; flex-direction: column; }
.uc-course-head span { font-size: 12px; color: var(--muted-fg); }

.uc-module { border: 1px solid var(--border); border-radius: var(--r-lg); margin-bottom: 12px; overflow: hidden; background: var(--overlay-1); }
.uc-module summary { display: flex; align-items: center; gap: 10px; padding: 12px 16px; cursor: pointer; list-style: none; font-size: 13.5px; font-weight: 700; }
.uc-module summary::-webkit-details-marker { display: none; }
.uc-module summary i { width: 16px; height: 16px; transition: transform .15s; color: var(--muted-fg); }
.uc-module[open] summary i { transform: rotate(90deg); }
.uc-module summary em { font-style: normal; color: var(--muted-fg); }
.uc-module summary b { margin-left: auto; font-size: 11.5px; color: var(--muted-fg); }
.uc-module-body { padding: 4px 12px 12px; }
.uc-sec { font-size: 10.5px; font-weight: 800; letter-spacing: .5px; color: var(--muted-fg); margin: 10px 4px 6px; }
.uc-item { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: var(--r); }
.uc-item:hover { background: var(--overlay-1); }
.uc-item > i { width: 16px; height: 16px; flex-shrink: 0; }
.uc-item-info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.uc-item-info b { font-size: 13px; font-weight: 600; }
.uc-item-info span { font-size: 11px; color: var(--muted-fg); }

@media (max-width: 800px) {
  .uc-grid { grid-template-columns: 1fr; }
  .uc-info-grid { grid-template-columns: 1fr 1fr; }
  .uc-page { padding: 14px 12px 40px; }
  .uc-hero { padding: 16px; }
  .uc-hero-meta { width: 100%; }
}
@media (max-width: 480px) {
  .uc-two, .uc-info-grid { grid-template-columns: 1fr; }
  .uc-tab span { display: none; }
  .uc-tab { padding: 10px 14px; }
}


/* ══════════════════════════════════════════════════════════════════════════════
   SUPORTE DENTRO DO COACH
══════════════════════════════════════════════════════════════════════════════ */
.coach-support-entry {
  display: flex; align-items: center; gap: 12px;
  margin: 12px 18px; padding: 12px 14px; cursor: pointer;
  border: 1px solid var(--primary); border-radius: var(--r);
  background: var(--overlay-1);
  transition: background .15s;
}
.coach-support-entry:hover, .coach-support-entry.active { background: var(--overlay-2); }
.coach-support-entry-icon {
  width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0;
  background: var(--grad); color: #fff;
  display: flex; align-items: center; justify-content: center;
}
.coach-support-entry-icon i { width: 17px; height: 17px; }
.coach-support-entry .support-thread-badge { background: var(--error); }

.chat-page > #coach-att-row {
  background: var(--card); border-left: 1px solid var(--border); border-right: 1px solid var(--border);
  padding: 10px 18px 0; display: flex; flex-wrap: wrap; gap: 8px;
}
.coach-att-thumb {
  position: relative; width: 56px; height: 56px; border-radius: var(--r);
  background: var(--overlay-1); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center; color: var(--muted-fg);
}
.coach-att-thumb img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--r); display: block; }
.coach-att-thumb > i { width: 22px; height: 22px; }
.coach-att-thumb.uploading img { opacity: .55; }
.coach-att-spin { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.coach-att-spin .spinner { width: 18px; height: 18px; border-width: 2px; }
.coach-att-thumb button {
  position: absolute; top: -6px; right: -6px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--card); border: 1px solid var(--border); color: var(--fg);
  display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.coach-att-thumb button i { width: 11px; height: 11px; }

.support-messages.student-view .support-date-sep { display: none; }
.msg-sender-tag { font-size: 10px; color: var(--muted-fg); margin-bottom: -6px; }
.support-thread-live { width: 8px; height: 8px; border-radius: 50%; background: var(--success); flex-shrink: 0; }
.support-conv-end { color: var(--success); }

.support-report-row { max-width: 100%; }
.support-report-card {
  width: 100%; padding: 14px 16px; border-radius: var(--r-lg);
  background: var(--card); border: 1px solid var(--primary);
  display: flex; flex-direction: column; gap: 10px; font-size: 12.5px; line-height: 1.5; color: var(--fg);
}
.support-report-head { display: flex; align-items: center; gap: 8px; color: var(--primary); font-size: 11.5px; font-weight: 700; }
.support-report-head i { width: 15px; height: 15px; }
.support-report-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.support-report-chip {
  padding: 3px 9px; border-radius: 999px; font-size: 10.5px; font-weight: 700;
  background: var(--overlay-1); color: var(--primary);
}
.support-report-chip.urgency-alta { color: var(--error); }
.support-report-chip.urgency-baixa { color: var(--success); }
.support-report-chip.urgency-media { color: var(--accent); }
.support-report-summary { font-size: 13px; }
.support-report-label { font-size: 9px; letter-spacing: 1.1px; text-transform: uppercase; color: var(--muted-fg); margin-bottom: 2px; }
.support-report-facts summary { cursor: pointer; color: var(--primary); font-size: 12px; font-weight: 700; }
.support-report-fact { display: flex; gap: 10px; margin-top: 5px; font-size: 11.5px; }
.support-report-fact span { width: 80px; flex-shrink: 0; color: var(--muted-fg); }
.support-report-fact b { font-weight: 600; min-width: 0; word-break: break-word; }

.support-event-row { justify-content: center; }
.support-event-wrap { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 12px; margin: 6px 0; }
.support-event-line {
  width: 100%; display: flex; align-items: center; gap: 12px;
  font-size: 11.5px; font-weight: 600; color: var(--muted-fg); text-align: center;
}
.support-event-line::before, .support-event-line::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.support-event-card {
  width: 100%; max-width: 360px; padding: 14px 16px; border-radius: var(--r-lg);
  background: var(--card); border: 1px solid var(--border);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.support-event-title { font-size: 13.5px; font-weight: 700; color: var(--fg); }
.support-event-hint { font-size: 11px; color: var(--muted-fg); }
.support-event-staff { font-size: 12px; color: var(--muted-fg); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: center; }
.support-event-stars { display: flex; align-items: center; gap: 4px; color: var(--muted-fg); }
.support-event-stars button { display: flex; color: inherit; cursor: pointer; padding: 2px; transition: color .12s, transform .12s; }
.support-event-stars svg { width: 30px; height: 30px; }
.support-event-stars button:hover { transform: scale(1.12); }
.support-event-stars:hover button { color: var(--accent); }
.support-event-stars:hover button:hover ~ button { color: var(--muted-fg); }
.support-event-stars:hover button svg { fill: currentColor; }
.support-event-stars:hover button:hover ~ button svg { fill: none; }
.support-event-stars.static { gap: 1px; }
.support-event-stars.static i { display: flex; color: var(--muted-fg); }
.support-event-stars.static i.on { color: var(--accent); }
.support-event-stars.static svg { width: 18px; height: 18px; }
.support-event-card .support-event-stars.static svg { width: 26px; height: 26px; }

.av-editor-overlay { position: fixed; inset: 0; z-index: 9999; background: rgba(0,0,0,.72); display: flex; align-items: center; justify-content: center; padding: 16px; }
.av-editor { background: var(--card, #111); border: 1px solid var(--border, #222); border-radius: 18px; padding: 22px; width: 100%; max-width: 360px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.av-editor-title { font-size: 17px; font-weight: 800; }
.av-editor-sub { font-size: 12.5px; color: var(--muted-fg); }
.av-stage { position: relative; border-radius: 12px; overflow: hidden; background: #000; touch-action: none; cursor: grab; max-width: 100%; }
.av-stage canvas { display: block; width: 100%; height: 100%; }
.av-mask { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle at center, transparent 0, transparent 68%, rgba(0,0,0,.6) 68.5%); box-shadow: inset 0 0 0 2px rgba(255,255,255,.0); }
.av-mask::after { content: ''; position: absolute; inset: 4px; border-radius: 50%; border: 2px solid rgba(255,255,255,.9); }
.av-zoom { width: 100%; }
.av-progress { width: 100%; height: 6px; background: rgba(127,127,127,.25); border-radius: 6px; overflow: hidden; }
.av-progress.hidden { display: none; }
.av-progress-bar { height: 100%; width: 0; background: linear-gradient(135deg, #2B5BEE, #7B49DF); transition: width .35s; }
.av-status { font-size: 12.5px; min-height: 16px; color: var(--muted-fg); text-align: center; }
.av-status.error { color: #e5484d; }
.av-actions { display: flex; gap: 10px; width: 100%; }
.av-actions button { flex: 1; }

.community-composer { max-width: 480px !important; }
.community-composer-head { gap: 10px; padding: 14px 16px !important; justify-content: flex-start !important; }
.community-composer-head h3 { font-size: 14.5px !important; font-weight: 800; line-height: 1.25; }
.cc-head-text { flex: 1; min-width: 0; }
.cc-head-text small { display: block; font-size: 11.5px; color: var(--muted-fg); margin-top: 1px; }
.cc-av { position: relative; width: 36px; height: 36px; border-radius: 50%; border: 2px solid transparent; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 14px; flex-shrink: 0; overflow: hidden; }
.cc-av img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 2; }
.cc-starters { display: flex; gap: 8px; padding: 12px 16px 0; overflow-x: auto; }
.cc-starters button { flex: none; border: 1px solid var(--border); background: var(--card); color: var(--fg); border-radius: 18px; padding: 6px 12px; font-size: 12.5px; font-weight: 600; cursor: pointer; font-family: inherit; }
.cc-starters button:hover { border-color: var(--primary); }
.community-composer-title { font-size: 15px !important; padding: 10px 16px 0 !important; }
.community-composer-title.hidden { display: none; }
.community-composer-text { font-size: 14.5px !important; min-height: 96px !important; padding: 10px 16px !important; }
.community-composer-foot { padding: 10px 12px 10px 10px !important; margin-top: 4px !important; }
.cc-tools { display: flex; align-items: center; gap: 2px; }
.cc-tool { background: none; border: none; color: var(--muted-fg); width: 36px; height: 36px; border-radius: 50%; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.cc-tool:hover { background: var(--secondary); color: var(--primary); }
.cc-tool i { width: 19px; height: 19px; }
.cc-count { font-size: 11.5px; color: var(--muted-fg); margin-left: 6px; }
.community-composer-media-box img { max-height: 180px !important; }
.rel-time { color: var(--primary); font-weight: 700; }
.cc-starters button { display: inline-flex; align-items: center; gap: 6px; }
.cc-starters button i { width: 15px; height: 15px; color: var(--primary); }

.dm-row { display: flex; align-items: center; gap: 8px; border: 1px solid var(--border); background: var(--card); border-radius: var(--r); }
.dm-row-main { flex: 1; min-width: 0; text-align: left; background: none; border: none; color: var(--fg); padding: 12px 14px; cursor: pointer; font-family: inherit; display: flex; flex-direction: column; gap: 2px; }
.dm-row-main b { font-size: 14px; }
.dm-row-main small, .dm-word small { font-size: 12px; color: var(--muted-fg); display: block; }
.dm-icon-btn { background: none; border: none; color: var(--muted-fg); width: 34px; height: 34px; margin-right: 6px; border-radius: 8px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.dm-icon-btn:hover { background: var(--secondary); color: var(--fg); }
.dm-icon-btn.danger:hover { color: var(--error); }
.dm-icon-btn i { width: 16px; height: 16px; }
.dm-words { display: flex; flex-direction: column; gap: 6px; max-height: 260px; overflow-y: auto; }
.dm-word { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 6px 8px 12px; border: 1px solid var(--border); background: var(--card); border-radius: var(--r); }
.dm-word b { font-size: 13.5px; }
.dm-add { display: flex; gap: 8px; }
.dm-add input { flex: 1; min-width: 0; }
.dm-add input {
  background: var(--secondary); border: 1px solid var(--border); color: var(--fg); border-radius: var(--r);
  padding: 11px 12px; font-size: 13.5px; font-weight: 500; outline: none; font-family: inherit; transition: border-color .2s;
}
.dm-add input::placeholder { color: var(--muted-fg); }
.dm-add input:focus { border-color: var(--primary); }
.dm-add .memo-btn-primary, .dm-add .memo-btn-outline { flex: none; width: 44px; padding: 0; }

.site-banner {
  position: fixed; top: 0; left: 0; right: 0; z-index: 2147483000;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 9px 16px; padding-top: calc(9px + env(safe-area-inset-top, 0px));
  color: #fff; font-family: 'Montserrat', -apple-system, 'Segoe UI', sans-serif;
  font-size: 12.5px; font-weight: 700; line-height: 1.35; text-align: center;
}
.site-banner { padding-right: 44px; }
.site-banner-close {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%); margin-top: calc(env(safe-area-inset-top, 0px) / 2);
  width: 28px; height: 28px; display: inline-flex; align-items: center; justify-content: center;
  border: 0; border-radius: 50%; background: rgba(255,255,255,.18); color: #fff; cursor: pointer; padding: 0;
}
.site-banner-close:hover { background: rgba(255,255,255,.32); }
.site-banner.clickable { cursor: pointer; }
.site-banner.clickable:hover { filter: brightness(1.08); }
.site-banner-text { max-width: 1100px; overflow-wrap: anywhere; }
.site-banner-icon { display: inline-flex; flex: none; }
@media (min-width: 720px) { .site-banner { font-size: 13.5px; padding-top: 10px; padding-bottom: 10px; } }
html.has-site-banner body { padding-top: var(--banner-h, 0px); }

/* ── Boas-vindas e tour guiado ───────────────────────────────────────────── */
html.tour-off .tour-entry { display: none !important; }
.tw-overlay { position: fixed; inset: 0; z-index: 2147483200; background: rgba(5, 8, 20, .72); display: flex; align-items: center; justify-content: center; padding: 16px; animation: twFade .25s ease; backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.tw-overlay.tw-out, .tw-tour.tw-out { opacity: 0; transition: opacity .2s; }
@keyframes twFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes twPop { from { opacity: 0; transform: translateY(14px) scale(.97); } to { opacity: 1; transform: none; } }
.tw-card { background: var(--card, #fff); color: var(--fg, #14151A); border: 1px solid var(--border, #E1E4EE); border-radius: 20px; box-shadow: 0 24px 70px rgba(0, 0, 0, .45); font-family: 'Montserrat', -apple-system, 'Segoe UI', sans-serif; }
.tw-welcome { width: 100%; max-width: 460px; padding: 30px 26px 24px; text-align: center; animation: twPop .35s cubic-bezier(.2, .9, .3, 1); }
.tw-welcome-badge { width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 50%; background: linear-gradient(135deg, #2B5BEE, #7B49DF); color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 28px rgba(43, 91, 238, .45); }
.tw-welcome-badge i, .tw-welcome-badge svg { width: 30px; height: 30px; }
.tw-title { font-size: 20px; font-weight: 800; line-height: 1.25; margin: 0 0 10px; letter-spacing: -.01em; }
.tw-text { font-size: 14.5px; line-height: 1.6; color: var(--muted-fg, #6B6F80); margin: 0 0 20px; }
.tw-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.tw-actions-col { flex-direction: column; align-items: stretch; }
.tw-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: none; border-radius: 12px; padding: 11px 18px; font-family: inherit; font-size: 14px; font-weight: 700; cursor: pointer; transition: transform .15s, filter .15s, background .15s; }
.tw-btn i, .tw-btn svg { width: 16px; height: 16px; }
.tw-btn:active { transform: scale(.97); }
.tw-btn-primary { background: linear-gradient(135deg, #2B5BEE, #7B49DF); color: #fff; box-shadow: 0 8px 22px rgba(43, 91, 238, .4); }
.tw-btn-primary:hover { filter: brightness(1.08); }
.tw-btn-lg { padding: 14px 20px; font-size: 15px; }
.tw-btn-ghost { background: transparent; color: var(--muted-fg, #6B6F80); }
.tw-btn-ghost:hover { color: var(--fg); background: var(--secondary, rgba(127,127,127,.12)); }

.tw-tour { position: fixed; inset: 0; z-index: 2147483200; pointer-events: none; }
.tw-tour > * { pointer-events: auto; }
.tw-block { position: fixed; inset: 0; background: transparent; transition: background .25s; }
.tw-block.tw-dim { background: rgba(5, 8, 20, .78); }
.tw-tour.tw-loading .tw-block { background: rgba(5, 8, 20, .78); }
.tw-tour.tw-loading .tw-step { opacity: 0; pointer-events: none; }
.tw-spot { position: fixed; border-radius: 14px; box-shadow: 0 0 0 100vmax rgba(5, 8, 20, .78); transition: left .3s ease, top .3s ease, width .3s ease, height .3s ease; pointer-events: none !important; }
.tw-ring { position: absolute; inset: -3px; border-radius: 16px; border: 3px solid #7FA2FF; box-shadow: 0 0 0 4px rgba(127, 162, 255, .35), 0 0 28px 6px rgba(123, 73, 223, .65); animation: twPulse 1.5s ease-in-out infinite; }
@keyframes twPulse { 0%, 100% { box-shadow: 0 0 0 3px rgba(127, 162, 255, .35), 0 0 18px 2px rgba(123, 73, 223, .55); transform: scale(1); } 50% { box-shadow: 0 0 0 10px rgba(127, 162, 255, .12), 0 0 36px 10px rgba(123, 73, 223, .8); transform: scale(1.025); } }
.tw-step { position: fixed; width: min(380px, calc(100vw - 24px)); padding: 18px 18px 16px; transition: left .3s ease, top .3s ease, opacity .2s; animation: twPop .3s ease; }
.tw-step.tw-center { width: min(440px, calc(100vw - 24px)); padding: 26px 24px 20px; text-align: center; }
.tw-step.tw-center .tw-step-head { justify-content: center; }
.tw-step.tw-center .tw-close { display: none; }
.tw-step.tw-center .tw-dots { justify-content: center; }
.tw-step::after { content: ''; position: absolute; left: var(--tw-arrow-x, 50%); width: 16px; height: 16px; background: var(--card, #fff); border: 1px solid var(--border, #E1E4EE); transform: translateX(-50%) rotate(45deg); display: none; }
.tw-step.tw-below::after { display: block; top: -9px; border-right: none; border-bottom: none; }
.tw-step.tw-above::after { display: block; bottom: -9px; border-left: none; border-top: none; }
.tw-step.tw-center::after { display: none !important; }
.tw-step-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.tw-badge { font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #fff; background: linear-gradient(135deg, #2B5BEE, #7B49DF); padding: 4px 10px; border-radius: 20px; }
.tw-close { background: none; border: none; color: var(--muted-fg, #6B6F80); width: 30px; height: 30px; border-radius: 50%; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.tw-close:hover { background: var(--secondary, rgba(127,127,127,.15)); color: var(--fg); }
.tw-close i, .tw-close svg { width: 16px; height: 16px; }
.tw-step .tw-title { font-size: 18px; margin-bottom: 6px; }
.tw-step .tw-text { font-size: 14px; margin-bottom: 14px; }
.tw-dots { display: flex; gap: 5px; margin-bottom: 14px; flex-wrap: wrap; }
.tw-dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--border, #ccc); transition: all .2s; }
.tw-dots i.past { background: rgba(43, 91, 238, .45); }
.tw-dots i.on { background: #2B5BEE; width: 20px; border-radius: 6px; }
@media (max-width: 560px) {
  .tw-welcome { padding: 26px 20px 20px; }
  .tw-title { font-size: 18px; }
  .tw-btn { padding: 12px 16px; }
  .tw-dots i { width: 6px; height: 6px; }
  .tw-dots i.on { width: 16px; }
}
.tw-progress { height: 5px; border-radius: 5px; background: var(--border, #ddd); margin-bottom: 14px; overflow: hidden; }
.tw-progress i { display: block; height: 100%; border-radius: 5px; background: linear-gradient(90deg, #2B5BEE, #7B49DF); transition: width .4s ease; }
.tw-step.tw-center .tw-progress { max-width: 220px; margin-left: auto; margin-right: auto; }

.tw-dim { position: fixed; display: block; background: rgba(5, 8, 20, .78); transition: left .3s ease, top .3s ease, width .3s ease, height .3s ease; pointer-events: none; }
.tw-spot { box-shadow: none !important; }
.tw-block, .tw-block.tw-dim, .tw-tour.tw-loading .tw-block { background: transparent !important; }
.tw-typing { display: inline-flex; gap: 5px; align-items: center; padding: 8px 0; }
.tw-typing i { width: 8px; height: 8px; border-radius: 50%; background: #2B5BEE; animation: twDot 1s infinite ease-in-out; }
.tw-typing i:nth-child(2) { animation-delay: .15s; } .tw-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes twDot { 0%, 80%, 100% { transform: scale(.5); opacity: .4; } 40% { transform: scale(1); opacity: 1; } }
.tw-demo-skip { margin-left: auto; }

.tw-bannercard { width: min(860px, calc(100vw - 24px)) !important; padding: 14px 18px 12px; }
.tw-bannercard .tw-title { font-size: 16px; margin-bottom: 4px; }
.tw-bannercard .tw-text { font-size: 13.5px; margin-bottom: 10px; }
.tw-bannercard .tw-progress { margin-bottom: 10px; }
.tw-bannercard .tw-step-head { margin-bottom: 6px; }
.tw-bannercard::after { display: none !important; }
.tw-links { display: flex; flex-direction: column; gap: 6px; margin: 0 0 14px; }
.tw-links a { display: flex; align-items: center; gap: 9px; padding: 9px 12px; border: 1px solid var(--border, #ddd); border-radius: 10px; color: var(--fg); text-decoration: none; font-size: 13.5px; font-weight: 600; background: var(--secondary, rgba(127,127,127,.08)); transition: border-color .15s, transform .15s; }
.tw-links a:hover { border-color: #2B5BEE; transform: translateX(2px); }
.tw-links a span { flex: 1; }
.tw-links a i, .tw-links a svg { width: 15px; height: 15px; color: #2B5BEE; flex: none; }

.tw-loader { position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%); display: none; flex-direction: column; align-items: center; gap: 12px; color: #fff; font-family: 'Montserrat', sans-serif; font-size: 13px; font-weight: 600; pointer-events: none; z-index: 5; }
.tw-tour.tw-loading .tw-loader { display: flex; }
.tw-spin { width: 34px; height: 34px; border-radius: 50%; border: 3px solid rgba(255,255,255,.25); border-top-color: #7FA2FF; animation: spin .8s linear infinite; }
.tw-mock { position: relative; border: 1px dashed rgba(43,91,238,.55); background: rgba(43,91,238,.06); border-radius: 14px; padding: 18px 14px 12px; margin: 0 0 14px; text-align: left; }
.tw-mock-tag { position: absolute; top: -9px; left: 12px; background: #2B5BEE; color: #fff; font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 2px 8px; border-radius: 8px; }
.tw-mock-row { display: flex; justify-content: space-between; font-size: 13px; font-weight: 700; margin-bottom: 8px; }
.tw-mock-row b { color: #2B5BEE; }
.tw-mock-bar { height: 9px; border-radius: 9px; background: var(--border, #ddd); overflow: hidden; }
.tw-mock-bar i { display: block; height: 100%; border-radius: 9px; background: linear-gradient(90deg, #2B5BEE, #7B49DF); }
.tw-mock-btn { display: inline-flex; align-items: center; gap: 8px; background: linear-gradient(135deg, #2B5BEE, #7B49DF); color: #fff; font-weight: 700; font-size: 13.5px; padding: 11px 16px; border-radius: 12px; }
.tw-mock-btn.sm { margin-top: 10px; font-size: 12.5px; padding: 8px 12px; background: var(--success, #1E9E52); }
.tw-mock-btn i, .tw-mock-btn svg { width: 16px; height: 16px; }
.tw-mock-player { display: flex; gap: 10px; align-items: stretch; }
.tw-mock-video { flex: 1.3; min-height: 86px; border-radius: 10px; background: linear-gradient(135deg, #111827, #2B1F5C); display: flex; align-items: center; justify-content: center; color: #fff; }
.tw-mock-video i, .tw-mock-video svg { width: 26px; height: 26px; }
.tw-mock-list { flex: 1; display: flex; flex-direction: column; gap: 4px; font-size: 11.5px; font-weight: 600; }
.tw-mock-list span { padding: 5px 8px; border-radius: 7px; background: var(--secondary, rgba(127,127,127,.12)); color: var(--muted-fg); }
.tw-mock-list span.done { color: var(--success, #1E9E52); }
.tw-mock-list span.now { background: rgba(43,91,238,.15); color: #2B5BEE; }
.tw-mock-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.tw-mock-grid > div { display: flex; flex-direction: column; gap: 4px; text-align: center; }
.tw-mock-grid b { font-size: 10.5px; color: var(--muted-fg); }
.tw-mock-grid span { font-size: 11.5px; font-weight: 700; padding: 5px 0; border-radius: 8px; border: 1.5px solid #2B5BEE; color: #2B5BEE; }
.tw-mock-grid .on span { background: #2B5BEE; color: #fff; }
.tw-mock-note { display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--muted-fg); margin-top: 10px; }
.tw-mock-note i, .tw-mock-note svg { width: 13px; height: 13px; }

.tw-mock-chat { display: flex; flex-direction: column; gap: 8px; font-size: 12.5px; line-height: 1.4; }
.tw-mock-chat .me { align-self: flex-end; max-width: 85%; background: linear-gradient(135deg, #2B5BEE, #7B49DF); color: #fff; padding: 8px 12px; border-radius: 14px 14px 4px 14px; }
.tw-mock-chat .ai { align-self: flex-start; max-width: 90%; display: flex; gap: 8px; background: var(--secondary, rgba(127,127,127,.12)); padding: 8px 12px; border-radius: 14px 14px 14px 4px; }
.tw-mock-chat .ai i, .tw-mock-chat .ai svg { width: 15px; height: 15px; flex: none; color: #7B49DF; margin-top: 2px; }

.live-people-group { padding: 10px 12px 4px; font-size: 11px; font-weight: 800; letter-spacing: .4px; text-transform: uppercase; color: var(--muted-fg); }

.art-img { width: 120px; height: 120px; border-radius: 26px; object-fit: cover; display: block; margin: 0 auto 14px; box-shadow: 0 10px 26px rgba(43,91,238,.2); animation: art-pop .55s cubic-bezier(.2,.9,.3,1.2) both; }
.art-img.sm { width: 84px; height: 84px; border-radius: 20px; margin-bottom: 10px; }
@keyframes art-pop { from { opacity: 0; transform: scale(.9); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .art-img { animation: none; } }

.tw-welcome-art { height: 150px; margin: -4px -4px 18px; border-radius: 18px; overflow: hidden; }
.tw-welcome-art img { width: 100%; height: 100%; object-fit: cover; display: block; }

.live-empty-card { background: var(--card); border: 1px solid var(--border); border-radius: 22px; overflow: hidden; max-width: 760px; margin: 6px auto 0; }
.live-empty-art { height: 200px; overflow: hidden; }
.live-empty-art img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; display: block; animation: liveArtIn .8s ease both; }
.live-empty-body { padding: 20px 24px 24px; }
.live-empty-body h3 { margin: 0 0 6px; font-size: 20px; font-weight: 900; color: var(--fg); }
.live-empty-body p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--muted-fg); }
.live-empty-btn { margin-top: 16px; display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 12px; border: 1.5px solid var(--primary); color: var(--primary); font-size: 13px; font-weight: 800; transition: background .15s, color .15s; }
.live-empty-btn:hover { background: var(--primary); color: #fff; }
.live-empty-btn i { width: 16px; height: 16px; }
@media (prefers-reduced-motion: reduce) { .live-hero-art img, .live-empty-art img { animation: none; } }

.lc-banner { position: relative; height: 138px; margin: 0 0 18px; border-radius: 16px; overflow: hidden; background: #0C1230; }
.lc-banner img { position: absolute; top: 0; right: 0; width: 72%; height: 100%; object-fit: cover; object-position: right center; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 40%); mask-image: linear-gradient(90deg, transparent 0, #000 40%); }
.lc-banner-text { position: relative; z-index: 1; height: 100%; padding: 18px 22px; display: flex; flex-direction: column; justify-content: center; max-width: 66%; }
.lc-banner-ico { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; background: var(--grad); color: #fff; margin-bottom: 8px; box-shadow: 0 6px 14px rgba(43,91,238,.4); }
.lc-banner-ico i { width: 17px; height: 17px; }
.lc-banner h3 { margin: 0; font-size: 20px; font-weight: 900; color: #fff; line-height: 1.15; }
.lc-banner .lc-head-sub { margin: 4px 0 0; color: rgba(255,255,255,.72); font-size: 12.5px; line-height: 1.35; }
@media (max-width: 560px) { .lc-banner { height: 150px; } .lc-banner-text { max-width: 100%; } .lc-banner img { width: 100%; opacity: .5; } }

.lc-level-help { margin: 12px 0 18px; padding: 0 2px; font-size: 11.5px; line-height: 1.45; color: var(--muted-fg); }
.lc-level-help em { display: block; margin-top: 4px; font-style: normal; color: var(--muted-fg); opacity: .85; }
.lc-level-more { color: var(--primary); font-size: 11.5px; font-weight: 700; padding: 0; }

/* Foto manda: quando o avatar tem imagem, some o fundo e a borda coloridos de quando era só inicial. */
.rc-av:has(> img), .nav-user-btn:has(> img:not([style*="display:none"])), .profile-av:has(> img), .cc-av:has(> img), .uc-av:has(> img), .user-av:has(> img), .support-thread-av:has(> img) { background: transparent !important; border-color: transparent !important; }

.ep-cover { height: 116px; margin: 0 -20px; overflow: hidden; border-radius: 14px; }
.ep-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ep-cover-av { position: relative; width: 88px; height: 88px; margin: -46px auto 10px; border-radius: 50%; border: 4px solid var(--card); background: var(--grad); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 32px; font-weight: 800; overflow: hidden; box-shadow: 0 8px 22px rgba(0,0,0,.25); }
.ep-cover-av img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.ep-hero { margin: 0 -20px; }
.ep-hero .ep-cover { position: relative; display: block; width: 100%; height: 132px; margin: 0; padding: 0; border: 0; border-radius: 0; background: var(--muted); cursor: pointer; }
.ep-cover-edit { position: absolute; right: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 99px; background: rgba(0,0,0,.55); backdrop-filter: blur(6px); color: #fff; font-size: 12px; font-weight: 700; }
.ep-cover-edit i { width: 14px; height: 14px; }
.ep-av-wrap { position: relative; width: 92px; margin: -48px auto 0; }
.ep-av-wrap .ep-cover-av { margin: 0; width: 92px; height: 92px; }
.ep-av-btn { position: absolute; right: -2px; bottom: 2px; width: 30px; height: 30px; border-radius: 50%; border: 3px solid var(--card); background: var(--primary); color: #fff; display: flex; align-items: center; justify-content: center; padding: 0; cursor: pointer; }
.ep-av-btn i { width: 14px; height: 14px; }
.ep-av-hint { margin-top: 10px; display: flex; justify-content: center; gap: 14px; font-size: 12.5px; }
.ep-av-hint button { background: none; border: 0; color: var(--muted-fg); font-weight: 700; cursor: pointer; padding: 2px 0; }
.ep-av-hint button:hover { color: var(--fg); }

.bn-overlay { position: fixed; inset: 0; z-index: 10000; background: rgba(0,0,0,.72); display: flex; align-items: center; justify-content: center; padding: 16px; }
.bn-panel { position: relative; width: 100%; max-width: 620px; background: var(--card); border: 1px solid var(--border); border-radius: 22px; padding: 26px 0 22px; display: flex; flex-direction: column; align-items: center; overflow: hidden; }
.bn-close { position: absolute; top: 12px; right: 12px; width: 34px; height: 34px; border-radius: 50%; border: 0; background: var(--overlay-1); color: var(--fg); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.bn-close i { width: 18px; height: 18px; }
.bn-title { font-size: 18px; font-weight: 800; }
.bn-sub { font-size: 13px; color: var(--muted-fg); margin: 4px 0 18px; }
.bn-track { display: flex; gap: 14px; width: 100%; overflow-x: auto; scroll-snap-type: x mandatory; padding: 14px 0 18px; scrollbar-width: none; }
.bn-track::-webkit-scrollbar { display: none; }
.bn-pad { flex: 0 0 calc(50% - 215px); }
.bn-card { position: relative; flex: 0 0 430px; aspect-ratio: 3 / 1; scroll-snap-align: center; padding: 0; border: 0; border-radius: 16px; overflow: hidden; cursor: pointer; background: var(--muted); transform: scale(.82); opacity: .5; transition: transform .25s ease, opacity .25s ease, box-shadow .25s ease; }
.bn-card.on { transform: scale(1); opacity: 1; box-shadow: 0 14px 34px rgba(0,0,0,.4), 0 0 0 3px var(--primary); }
.bn-card img { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.bn-check { position: absolute; left: 10px; bottom: 10px; width: 24px; height: 24px; border-radius: 50%; background: var(--success); color: #fff; display: flex; align-items: center; justify-content: center; }
.bn-check i { width: 14px; height: 14px; }
.bn-name { font-size: 14px; font-weight: 800; min-height: 20px; }
.bn-dots { display: flex; gap: 6px; margin: 10px 0 14px; }
.bn-dots i { width: 6px; height: 6px; border-radius: 3px; background: var(--border); transition: width .2s, background .2s; }
.bn-dots i.on { width: 18px; background: var(--primary); }
.bn-status { min-height: 18px; font-size: 12.5px; color: var(--muted-fg); margin-bottom: 8px; }
.bn-status.error { color: var(--error, #d92626); }
.bn-panel > .memo-btn-primary { width: calc(100% - 48px); }
.bn-row { display: flex; gap: 10px; margin-top: 10px; }
@media (max-width: 560px) {
  .bn-card { flex-basis: 78vw; }
  .bn-pad { flex-basis: 8vw; }
}
.bn-row .memo-btn-outline { white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; padding-left: 16px; padding-right: 16px; }
.bn-row .memo-btn-outline i { width: 15px; height: 15px; }

.art-hero { position: relative; height: 128px; margin: 0 auto 20px; max-width: 760px; border-radius: 18px; overflow: hidden; }
.art-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: left center; }
.art-hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 30%, rgba(0,0,0,.6)); }
.art-hero-text { position: absolute; z-index: 1; right: 22px; top: 0; bottom: 0; width: min(46%, 280px); display: flex; flex-direction: column; justify-content: center; gap: 4px; color: #fff; }
.art-hero-text b { font-size: 18px; font-weight: 900; line-height: 1.15; }
.art-hero-text span { font-size: 12.5px; font-weight: 600; opacity: .78; line-height: 1.3; }
@media (max-width: 560px) { .art-hero { height: 104px; } .art-hero-text b { font-size: 15px; } .art-hero-text span { font-size: 11.5px; } }

.mc-wrap { max-width: 760px; margin: 0 auto; }
.mc-label { display: flex; align-items: center; gap: 8px; margin: 22px 0 10px; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted-fg); }
.mc-label span { padding: 2px 8px; border-radius: 99px; background: var(--muted); font-size: 10.5px; letter-spacing: 0; }
.mc-card { background: var(--card); border: 1px solid var(--border); border-radius: 18px; padding: 12px; margin-bottom: 12px; cursor: pointer; transition: border-color .15s, transform .15s; }
.mc-card:hover { border-color: var(--primary); transform: translateY(-1px); }
.mc-card-row { display: flex; align-items: flex-start; gap: 14px; }
.mc-thumb { position: relative; flex: none; width: 68px; height: 90px; border-radius: 12px; overflow: hidden; background: var(--muted); display: flex; align-items: center; justify-content: center; }
.mc-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mc-thumb.locked::after { content: ''; position: absolute; inset: 0; background: rgba(0,0,0,.5); }
.mc-thumb.locked i { position: relative; z-index: 1; width: 20px; height: 20px; color: #fff; }
.mc-info { flex: 1; min-width: 0; }
.mc-title { font-size: 15.5px; font-weight: 800; line-height: 1.25; }
.mc-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 7px 0 8px; }
.mc-chip { display: inline-flex; align-items: center; gap: 4px; padding: 4px 9px; border-radius: 99px; font-size: 11px; font-weight: 800; }
.mc-chip i { width: 12px; height: 12px; }
.mc-chip.own { color: var(--success); background: color-mix(in srgb, var(--success) 15%, transparent); }
.mc-chip.shared { color: var(--accent); background: color-mix(in srgb, var(--accent) 15%, transparent); }
.mc-chip.staff { color: var(--primary); background: color-mix(in srgb, var(--primary) 15%, transparent); }
.mc-chip.live { color: #EE831A; background: color-mix(in srgb, #EE831A 15%, transparent); }
.mc-lines { display: flex; flex-direction: column; gap: 2px; font-size: 12px; font-weight: 600; color: var(--muted-fg); }
.mc-go { flex: none; width: 20px; height: 20px; color: var(--muted-fg); margin-top: 2px; }
.mc-share { display: flex; align-items: center; gap: 10px; margin-top: 12px; padding: 8px 8px 8px 12px; border-radius: 12px; background: var(--muted); }
.mc-share > i { width: 18px; height: 18px; color: var(--muted-fg); }
.mc-share b { flex: 1; font-size: 12.5px; }
.mc-empty { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 48px 0; color: var(--muted-fg); text-align: center; }
.mc-empty i { width: 38px; height: 38px; }
.mc-empty b { color: var(--fg); font-size: 15px; }
.mc-empty span { font-size: 12.5px; }
.mc-share .memo-btn-outline { width: auto; flex: none; white-space: nowrap; }
.mc-share b { min-width: 0; }

.ai-overlay { position: fixed; inset: 0; z-index: 10001; background: rgba(0,0,0,.7); display: flex; align-items: flex-end; justify-content: center; opacity: 0; transition: opacity .25s ease; }
.ai-overlay.show { opacity: 1; }
.ai-panel { width: 100%; max-width: 480px; max-height: 94vh; overflow-y: auto; background: var(--card); border-radius: 26px 26px 0 0; transform: translateY(40px); transition: transform .32s cubic-bezier(.2,.8,.2,1); padding-bottom: env(safe-area-inset-bottom); }
.ai-overlay.show .ai-panel { transform: none; }
.ai-art { height: 190px; overflow: hidden; }
.ai-art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ai-body { padding: 20px 22px 18px; display: flex; flex-direction: column; }
.ai-kicker { align-self: flex-start; padding: 4px 10px; border-radius: 99px; background: color-mix(in srgb, #EE831A 18%, transparent); color: #EE831A; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.ai-body h2 { font-size: 23px; font-weight: 900; line-height: 1.15; margin: 10px 0 6px; }
.ai-body p { font-size: 13.5px; color: var(--muted-fg); line-height: 1.5; margin: 0 0 16px; }
.ai-list { list-style: none; margin: 0 0 20px; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.ai-list li { display: flex; gap: 12px; align-items: flex-start; }
.ai-list li > i { flex: none; width: 36px; height: 36px; padding: 9px; border-radius: 12px; background: var(--muted); color: var(--primary); }
.ai-list li span { font-size: 12.5px; color: var(--muted-fg); line-height: 1.4; }
.ai-list li b { display: block; color: var(--fg); font-size: 14px; margin-bottom: 1px; }
.ai-main { width: 100%; height: 50px; font-size: 15px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.ai-main i { width: 18px; height: 18px; }
.ai-sub { margin-top: 10px; font-size: 11.5px; color: var(--muted-fg); text-align: center; }
.ai-later { display: flex; justify-content: center; align-items: center; gap: 14px; margin-top: 8px; }
.ai-later span { width: 3px; height: 3px; border-radius: 50%; background: var(--border); }
.ai-later button { background: none; border: 0; padding: 8px 4px; color: var(--muted-fg); font-size: 13px; font-weight: 700; cursor: pointer; }
@media (min-width: 560px) { .ai-overlay { align-items: center; } .ai-panel { border-radius: 26px; } }

.lp-qr-row { display: flex; align-items: center; gap: 14px; margin: 4px 0 16px; padding: 12px; border-radius: 16px; background: var(--muted); }
.lp-qr-img { width: 72px; height: 72px; border-radius: 10px; background: #fff; padding: 6px; flex: none; }
.lp-qr-txt { font-size: 12px; color: var(--muted-fg); line-height: 1.45; }
@media (max-width: 380px) { .lp-qr-row { gap: 10px; padding: 10px; } .lp-qr-img { width: 60px; height: 60px; } }

.tr-module-card { display: flex; align-items: center; gap: 12px; width: 100%; margin: 4px 0 14px; padding: 10px; border-radius: 18px; background: var(--muted); border: 1px solid var(--border); cursor: pointer; transition: transform .15s ease, background .15s ease; text-align: left; }
.tr-module-card:hover { background: var(--card); transform: translateY(-1px); }
.tr-module-card:active { transform: scale(.98); }
.tr-module-thumb { position: relative; width: 76px; height: 76px; border-radius: 14px; overflow: hidden; flex: none; background: linear-gradient(135deg, #2B5BEE, #7C3AED); }
.tr-module-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tr-module-thumb-fallback { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
.tr-module-thumb-fallback i { width: 28px; height: 28px; color: #fff; opacity: .9; }
.tr-module-play { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,.28); }
.tr-module-play i { width: 22px; height: 22px; color: #fff; filter: drop-shadow(0 2px 4px rgba(0,0,0,.4)); }
.tr-module-info { flex: 1; min-width: 0; }
.tr-module-title { font-size: 14.5px; font-weight: 800; color: var(--fg); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tr-module-sub { font-size: 12px; color: var(--muted-fg); margin-top: 2px; }
.tr-module-chevron { width: 18px; height: 18px; color: var(--muted-fg); flex: none; }

.profile-banner { width: 100%; height: 118px; border-radius: 18px; overflow: hidden; background: var(--muted); }
.profile-banner img { width: 100%; height: 100%; object-fit: cover; display: block; }
.profile-hero.has-banner .profile-av-wrap { margin-top: -50px; }
.profile-hero.has-banner .profile-av { box-shadow: 0 0 0 4px var(--bg); }
.cert-ic { flex: none; width: 48px; height: 48px; border-radius: 14px; display: flex; align-items: center; justify-content: center; background: var(--grad); color: #fff; }
.cert-ic i { width: 24px; height: 24px; }
.cert-card .mc-card-row { flex-wrap: wrap; }
.cert-card .mc-info { flex: 1 1 180px; }
.cert-card .memo-btn-outline, .cert-card .memo-btn-primary { width: auto; flex: none; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; text-decoration: none; }
.cert-card { cursor: default; }
.cert-card:hover { transform: none; }

.profile-stat-card.shareable { cursor: pointer; transition: transform .15s, border-color .15s; }
.profile-stat-card.shareable:hover { transform: translateY(-2px); border-color: var(--primary); }

.rp-wrap { max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 24px; padding: 28px 16px 40px; }
.rp-tabs { margin-bottom: 2px; }
.rp-tabs { display: inline-flex; padding: 4px; border-radius: 99px; background: var(--muted); }
.rp-tab { border: 0; background: none; color: var(--muted-fg); font-weight: 800; font-size: 13px; padding: 8px 18px; border-radius: 99px; cursor: pointer; }
.rp-tab.on { background: var(--card); color: var(--fg); box-shadow: 0 2px 8px rgba(0,0,0,.2); }
.rp-preview { width: 100%; border-radius: 18px; overflow: hidden; box-shadow: 0 14px 40px rgba(0,0,0,.35); }
.rp-preview.story { width: min(320px, 100%); }
.rp-canvas { display: block; width: 100%; height: auto; }
.rp-share { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: min(360px, 100%); height: 48px; }
.rp-share i { width: 18px; height: 18px; }
.rp-note { font-size: 11.5px; color: var(--muted-fg); text-align: center; max-width: 420px; line-height: 1.45; margin: 0; }

.sc-panel { max-width: 420px; padding: 24px 22px 20px; gap: 14px; }
.sc-img { width: 100%; max-height: 52vh; object-fit: contain; border-radius: 14px; background: var(--muted); }
.sc-actions { width: 100%; }
.sc-actions .memo-btn-outline, .sc-actions .memo-btn-primary { flex: 1; justify-content: center; }

.profile-av.has-photo { border: 0; }

.av-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; width: 100%; }
.av-cell { position: relative; aspect-ratio: 1; padding: 0; border: 3px solid transparent; border-radius: 50%; overflow: hidden; background: var(--muted); cursor: pointer; transition: transform .15s, border-color .15s; }
.av-cell:hover { transform: scale(1.05); }
.av-cell.on { border-color: var(--primary); }
.av-cell.busy { opacity: .5; pointer-events: none; }
.av-cell img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ps-panel { max-width: 520px; max-height: 92vh; padding: 0; align-items: stretch; }
.ps-scroll { overflow-y: auto; padding: 26px 24px 8px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.ps-scroll .av-grid { margin-bottom: 14px; }
.ps-label { align-self: flex-start; margin: 22px 0 12px; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted-fg); }
.ps-preview { position: relative; width: 100%; border-radius: 16px; overflow: hidden; background: var(--bg); padding-bottom: 14px; }
.ps-banner { display: block; width: 100%; height: 96px; object-fit: cover; }
.ps-avatar { position: relative; width: 76px; height: 76px; margin: -38px auto 8px; border-radius: 50%; border: 4px solid var(--bg); background: var(--grad); overflow: hidden; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 800; font-size: 28px; }
.ps-avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ps-name { font-weight: 900; font-size: 16px; }
.ps-upload { align-self: stretch; justify-content: center; display: inline-flex; align-items: center; gap: 6px; }
.ps-banners { display: flex; gap: 10px; overflow-x: auto; width: 100%; padding: 4px 2px 8px; scrollbar-width: none; }
.ps-banners::-webkit-scrollbar { display: none; }
.ps-bn { flex: none; width: 210px; aspect-ratio: 3 / 1; padding: 0; border: 3px solid transparent; border-radius: 12px; overflow: hidden; cursor: pointer; background: var(--muted); }
.ps-bn.on { border-color: var(--primary); }
.ps-bn img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ps-foot { padding: 12px 24px 18px; display: flex; flex-direction: column; align-items: center; gap: 4px; border-top: 1px solid var(--border); }
.ps-foot .memo-btn-primary { width: 100%; height: 48px; }
.ps-skip { background: none; border: 0; color: var(--muted-fg); font-weight: 700; font-size: 13px; padding: 8px; cursor: pointer; }
.ps-scroll > * { flex-shrink: 0; }

.rb-list { display: flex; flex-direction: column; gap: 12px; }
.rb-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.rb-tile { position: relative; display: block; width: 100%; height: 112px; padding: 0; border: 0; border-radius: 16px; overflow: hidden; background: var(--tint); text-align: left; cursor: pointer; box-shadow: 0 8px 18px color-mix(in srgb, var(--tint) 35%, transparent); transition: transform .15s ease; }
.rb-tile:hover { transform: translateY(-2px); }
.rb-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: right center; }
.rb-shade { position: absolute; inset: 0; background: linear-gradient(90deg, color-mix(in srgb, var(--tint) 94%, transparent), color-mix(in srgb, var(--tint) 30%, transparent)); }
.rb-text { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 3px; height: 100%; padding: 14px 16px; box-sizing: border-box; }
.rb-chip { padding: 3px 8px; border-radius: 99px; background: rgba(255,255,255,.2); color: #fff; font-size: 9.5px; font-weight: 800; letter-spacing: .08em; margin-bottom: 4px; }
.rb-title { color: #fff; font-size: 19px; font-weight: 900; line-height: 1.1; }
.rb-sub { color: rgba(255,255,255,.75); font-size: 11.5px; line-height: 1.3; max-width: 62%; }
.rb-tile-sm { height: 104px; }
.rb-tile-sm .rb-title { font-size: 15px; }
.rb-tile-sm .rb-sub { font-size: 10.5px; max-width: 78%; }
@media (max-width: 420px) { .rb-grid { grid-template-columns: 1fr; } }

.sheet-body .rb-art { margin: 0; max-width: none; max-height: none; border-radius: 0; }
.rb-list { flex: 1 1 100%; width: 100%; max-width: 640px; margin: 0 auto; }
.rb-grid { max-width: 640px; margin: 0 auto; padding: 12px 24px 20px; box-sizing: border-box; }
.rb-grid > .rb-tile:last-child:nth-child(odd) { grid-column: 1 / -1; justify-self: center; width: calc(50% - 6px); }

.live-person-av.clickable { cursor: pointer; border-radius: 50%; }
.live-person-av.clickable:hover { box-shadow: 0 0 0 2px var(--primary); }

.hand-ic { width: 1em; height: 1em; vertical-align: -0.12em; margin-right: 3px; stroke-width: 2.2; }
.live-people-group .hand-ic, .live-chip .hand-ic { width: 13px; height: 13px; }

.live-react-pop { position: fixed; z-index: 9700; display: flex; gap: 4px; padding: 8px 10px; border-radius: 99px; background: rgba(28,28,34,.96); border: 1px solid var(--border); box-shadow: 0 12px 32px rgba(0,0,0,.5); }
.live-react-pop button { width: 42px; height: 42px; border: 0; border-radius: 50%; background: none; font-size: 26px; cursor: pointer; transition: transform .12s, background .12s; }
.live-react-pop button:hover { transform: scale(1.25); background: rgba(255,255,255,.08); }
.live-settings-pop { position: fixed; z-index: 9700; width: 260px; padding: 12px; border-radius: 14px; background: rgba(28,28,34,.98); border: 1px solid var(--border); box-shadow: 0 12px 32px rgba(0,0,0,.5); color: #fff; }
.live-settings-pop .live-toggle-row { background: rgba(255,255,255,.04); margin-bottom: 4px; color: #fff; }
.live-settings-pop .live-toggle-row span i { color: rgba(255,255,255,.7); }
.live-settings-pop .live-toggle-row small { opacity: .7; font-weight: 500; }
.live-settings-pop-title { font-size: 11.5px; font-weight: 700; color: rgba(255,255,255,.65); margin: 0 0 8px 2px; }
.live-react-float { position: fixed; bottom: 110px; z-index: 9650; pointer-events: none; display: flex; flex-direction: column; align-items: center; gap: 2px; animation: liveReactUp var(--dur, 2.6s) ease-out forwards; }
.live-react-float .e { font-size: 44px; filter: drop-shadow(0 4px 8px rgba(0,0,0,.4)); }
.live-react-float small { font-size: 10px; font-weight: 800; color: #fff; padding: 2px 7px; border-radius: 99px; background: rgba(0,0,0,.55); }
@keyframes liveReactUp { 0% { transform: translate(0,0) scale(.4); opacity: 0; } 12% { transform: translate(calc(var(--dx) * .1), -30px) scale(1.15); opacity: 1; } 100% { transform: translate(var(--dx), -62vh) scale(1); opacity: 0; } }

.live-poll { position: fixed; z-index: 9640; top: 84px; right: 16px; width: min(340px, calc(100vw - 24px)); border-radius: 18px; overflow: hidden; background: rgba(24,24,30,.97); border: 1px solid var(--border); box-shadow: 0 18px 44px rgba(0,0,0,.55); animation: lpIn .3s cubic-bezier(.2,.8,.2,1); }
@keyframes lpIn { from { opacity: 0; transform: translateY(-10px) scale(.97); } }
.lp-art { position: relative; height: 84px; }
.lp-art img { width: 100%; height: 100%; object-fit: cover; object-position: right center; display: block; }
.lp-art::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20,20,40,.85), transparent 70%); }
.lp-tag { position: absolute; z-index: 1; left: 14px; top: 14px; padding: 4px 10px; border-radius: 99px; background: #EB4D4D; color: #fff; font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.lp-x { position: absolute; z-index: 1; right: 10px; top: 10px; width: 28px; height: 28px; border: 0; border-radius: 50%; background: rgba(0,0,0,.45); color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.lp-x i { width: 15px; height: 15px; }
.lp-body { padding: 14px 16px 14px; }
.lp-q { font-size: 16px; font-weight: 800; line-height: 1.25; color: #fff; margin-bottom: 12px; }
.lp-opts { display: flex; flex-direction: column; gap: 8px; }
.lp-opt { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; padding: 11px 14px; border: 1.5px solid rgba(255,255,255,.14); border-radius: 12px; background: rgba(255,255,255,.04); color: #fff; font-size: 14px; font-weight: 700; text-align: left; cursor: pointer; overflow: hidden; transition: border-color .15s, background .15s; }
.lp-opt:hover:not(:disabled) { border-color: var(--primary); background: rgba(43,91,238,.12); }
.lp-opt.mine { border-color: var(--primary); }
.lp-opt.lead .lp-bar { background: rgba(43,91,238,.45); }
.lp-bar { position: absolute; left: 0; top: 0; bottom: 0; background: rgba(255,255,255,.12); transition: width .5s cubic-bezier(.2,.8,.2,1); }
.lp-t, .lp-p { position: relative; display: inline-flex; align-items: center; gap: 6px; }
.lp-t i { width: 16px; height: 16px; color: var(--primary); }
.lp-p { font-variant-numeric: tabular-nums; opacity: .85; }
.lp-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 12px; font-size: 11.5px; color: rgba(255,255,255,.6); }
.lp-act { display: inline-flex; gap: 10px; }
.lp-act button { background: none; border: 0; color: rgba(255,255,255,.75); font-weight: 800; font-size: 11.5px; cursor: pointer; padding: 2px 0; }
.lp-act button:hover { color: #fff; }
.lpc-panel { max-width: 440px; padding: 24px 24px 22px; align-items: stretch; }
.lpc-panel .bn-title, .lpc-panel .bn-sub { text-align: center; align-self: center; }
.lpc-form { display: flex; flex-direction: column; gap: 8px; }
.lpc-form input { padding: 12px 14px; border-radius: 12px; border: 1px solid var(--border); background: var(--bg); color: var(--fg); font-size: 14px; }
.lpc-form .memo-btn-primary { margin-top: 6px; height: 46px; }
@media (max-width: 700px) { .live-poll { top: auto; bottom: 96px; right: 12px; left: 12px; width: auto; } }

.ach-medal { flex: none; width: var(--s); height: var(--s); border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: #fff; background: linear-gradient(135deg, color-mix(in srgb, var(--c) 65%, #fff), var(--c) 55%, color-mix(in srgb, var(--c) 65%, #000)); border: calc(var(--s) * .04) solid rgba(255,255,255,.5); box-shadow: 0 calc(var(--s) * .08) calc(var(--s) * .3) color-mix(in srgb, var(--c) 55%, transparent); }
.ach-medal i, .ach-medal svg { width: calc(var(--s) * .46); height: calc(var(--s) * .46); }
.ach-medal.locked { box-shadow: none; color: rgba(255,255,255,.55); }
.ach-sum { position: relative; padding: 16px; border-radius: 16px; background: var(--card); border: 1px solid var(--border); margin-bottom: 8px; display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px; }
.ach-sum b { font-size: 28px; font-weight: 900; }
.ach-sum em { font-style: normal; font-weight: 900; color: var(--primary); }
.ach-sumbar { flex: 1 1 100%; height: 8px; border-radius: 6px; background: var(--muted); overflow: hidden; }
.ach-sumbar i { display: block; height: 100%; background: var(--primary); border-radius: 6px; }
.ach-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (max-width: 640px) { .ach-grid { grid-template-columns: 1fr; } }
.ach-card { position: relative; height: 96px; padding: 0; border: 1.5px solid color-mix(in srgb, var(--c) 70%, transparent); border-radius: 16px; overflow: hidden; cursor: pointer; text-align: left; background: color-mix(in srgb, var(--c) 28%, #14142a); transition: transform .15s; }
.ach-card:hover { transform: translateY(-2px); }
.ach-card.locked { border-color: var(--border); background: #2a2a33; }
.ach-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: right center; }
.ach-card.locked .ach-art { filter: grayscale(1); opacity: .4; }
.ach-shade { position: absolute; inset: 0; background: linear-gradient(90deg, color-mix(in srgb, var(--c) 28%, #14142a) 35%, transparent); }
.ach-card.locked .ach-shade { background: linear-gradient(90deg, #2a2a33 35%, transparent); }
.ach-row { position: relative; display: flex; align-items: center; gap: 14px; height: 100%; padding: 0 14px; }
.ach-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; color: #fff; }
.ach-text b { font-size: 15px; font-weight: 900; }
.ach-text small { font-size: 11.5px; opacity: .72; line-height: 1.25; }
.ach-prog { height: 5px; border-radius: 4px; background: rgba(255,255,255,.15); overflow: hidden; margin-top: 5px; }
.ach-prog i { display: block; height: 100%; background: var(--c); }
.ach-text em { font-style: normal; font-size: 10.5px; opacity: .6; font-weight: 700; }
.ach-panel { max-width: 400px; padding: 0 0 18px; align-items: center; text-align: center; border: 1.5px solid color-mix(in srgb, var(--c) 60%, transparent); }
.ach-hero { width: 100%; height: 170px; position: relative; }
.ach-hero img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ach-hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(transparent 40%, var(--card)); }
.ach-pop { margin-top: -50px; position: relative; }
.ach-panel.fresh .ach-pop { animation: achPop .8s cubic-bezier(.2,1.4,.4,1); }
@keyframes achPop { from { transform: scale(.2); opacity: 0; } }
.ach-kicker { margin-top: 10px; font-size: 11px; font-weight: 900; letter-spacing: .12em; color: var(--c); }
.ach-panel h2 { font-size: 22px; font-weight: 900; margin: 6px 24px 4px; }
.ach-panel p { font-size: 13.5px; color: var(--muted-fg); margin: 0 24px 14px; line-height: 1.4; }
.ach-need { font-weight: 800; font-size: 13px; margin-bottom: 14px; }
.ach-strip { display: flex; align-items: center; gap: 8px; margin-top: 12px; padding: 8px 12px; border-radius: 14px; background: var(--muted); }
.ach-strip em { margin-left: auto; font-style: normal; font-size: 11.5px; font-weight: 800; color: var(--muted-fg); }

.rec-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.rec-head > i { width: 28px; height: 28px; color: var(--primary); }
.rec-head h2 { font-size: 18px; font-weight: 900; margin: 0; }
.rec-head p { margin: 2px 0 0; font-size: 12.5px; color: var(--muted-fg); }
.rec-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
@media (max-width: 760px) { .rec-grid { grid-template-columns: 1fr; } }
.rec-card { position: relative; display: block; width: 100%; height: 150px; padding: 0; border: 0; border-radius: 18px; overflow: hidden; background: var(--tint); text-align: left; cursor: pointer; box-shadow: 0 10px 22px color-mix(in srgb, var(--tint) 35%, transparent); transition: transform .15s; }
.rec-card:hover:not(.empty) { transform: translateY(-3px); }
.rec-card.empty { cursor: default; opacity: .7; }
.rec-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: right center; }
.rec-shade { position: absolute; inset: 0; background: linear-gradient(90deg, color-mix(in srgb, var(--tint) 95%, transparent), color-mix(in srgb, var(--tint) 30%, transparent)); }
.rec-play { position: absolute; z-index: 1; right: 14px; bottom: 14px; width: 42px; height: 42px; border-radius: 50%; background: #fff; color: #111; display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 14px rgba(0,0,0,.35); }
.rec-play i { width: 18px; height: 18px; margin-left: 2px; }
.rec-text { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; height: 100%; padding: 14px 16px; box-sizing: border-box; justify-content: flex-end; color: #fff; max-width: 78%; }
.rec-chip { padding: 3px 8px; border-radius: 99px; background: rgba(255,255,255,.2); font-size: 9.5px; font-weight: 800; letter-spacing: .08em; }
.rec-text b { font-size: 16px; font-weight: 900; line-height: 1.15; }
.rec-text small { font-size: 11px; opacity: .8; }
.rec-manage { margin-top: 14px; padding: 12px 14px; border-radius: 14px; background: var(--muted); font-size: 12.5px; display: flex; flex-direction: column; gap: 8px; }
.rec-mrow { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.rec-mrow span { flex: 1 1 200px; }
.rec-mrow select, .rec-mrow button { padding: 6px 10px; border-radius: 8px; border: 1px solid var(--border); background: var(--card); color: var(--fg); font-size: 12px; cursor: pointer; }
.rec-modal { position: relative; width: min(960px, 100%); background: #000; border-radius: 16px; overflow: hidden; }
.rec-modal video { display: block; width: 100%; max-height: 78vh; background: #000; }
.rec-title { padding: 14px 54px 12px 18px; color: #fff; font-weight: 800; font-size: 15px; background: #15151b; }
.rec-modal .bn-close { z-index: 2; }
.live-rec-badge { display: inline-flex; align-items: center; gap: 6px; margin-left: 10px; padding: 3px 9px; border-radius: 99px; background: rgba(235,77,77,.18); color: #ff6b6b; font-size: 10.5px; font-weight: 800; letter-spacing: .06em; }
.live-rec-badge i { width: 7px; height: 7px; border-radius: 50%; background: #ff4d4d; animation: recBlink 1.2s infinite; }
@keyframes recBlink { 50% { opacity: .25; } }

.in-overlay { position: fixed; inset: 0; z-index: 9900; background: #0b0b12; opacity: 0; transition: opacity .35s; overflow: hidden; }
.in-overlay.show { opacity: 1; }
.in-art { position: absolute; inset: 0; background-size: cover; background-position: center; background-color: var(--tint); transition: background-image .4s; }
.in-shade { position: absolute; inset: 0; background: linear-gradient(to bottom, transparent 30%, color-mix(in srgb, var(--tint) 85%, transparent) 68%, #0b0b12 100%); }
.in-skip { position: absolute; top: 18px; right: 18px; z-index: 2; background: rgba(0,0,0,.35); border: 0; color: #fff; font-weight: 800; font-size: 13px; padding: 8px 16px; border-radius: 99px; cursor: pointer; }
.in-bottom { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; max-width: 560px; margin: 0 auto; padding: 0 28px 34px; display: flex; flex-direction: column; gap: 18px; }
.in-copy { color: #fff; opacity: 0; transform: translateY(14px); }
.in-copy.in { opacity: 1; transform: none; transition: opacity .5s, transform .5s cubic-bezier(.2,.8,.2,1); }
.in-ic { display: inline-flex; width: 48px; height: 48px; border-radius: 14px; background: rgba(255,255,255,.16); align-items: center; justify-content: center; margin-bottom: 14px; }
.in-ic i { width: 26px; height: 26px; }
.in-copy h1 { font-size: 32px; font-weight: 900; line-height: 1.1; margin: 0 0 10px; }
.in-copy p { font-size: 15.5px; line-height: 1.5; margin: 0; color: rgba(255,255,255,.82); }
.in-dots { display: flex; justify-content: center; gap: 6px; }
.in-dots i { width: 7px; height: 7px; border-radius: 4px; background: rgba(255,255,255,.3); transition: width .25s, background .25s; }
.in-dots i.on { width: 22px; background: #fff; }
.in-next { height: 52px; border: 0; border-radius: 16px; background: #fff; color: #111; font-weight: 900; font-size: 15px; cursor: pointer; }

.live-rec-pill { display: inline-flex; align-items: center; gap: 7px; padding: 9px 14px; border-radius: 99px; border: 1px solid rgba(255,255,255,.28); background: rgba(255,255,255,.08); color: #fff; font-size: 13px; font-weight: 700; cursor: pointer; backdrop-filter: blur(6px); }
.live-rec-pill:hover { background: rgba(255,255,255,.16); }
.live-rec-pill i { width: 15px; height: 15px; }
.rec-panel { max-width: 860px; width: 100%; padding: 26px 24px 22px; align-items: stretch; max-height: 92vh; overflow-y: auto; }
.rec-panel .bn-title, .rec-panel .bn-sub { align-self: center; text-align: center; }
.rec-panel .rec-grid { margin-top: 6px; }
.sheet-body .ep-cover img, .sheet-body .ep-cover-av img, .sheet-body .av-cell img, .sheet-body .ps-avatar img, .sheet-body .ps-banner, .sheet-body .ps-bn img { margin: 0; max-width: none; max-height: none; border-radius: 0; }
.sheet-body .ep-cover-av img { width: 100%; height: 100%; }

.hero-live-stack { position: absolute; top: 14px; right: 14px; z-index: 6; display: flex; flex-direction: column; gap: 8px; align-items: flex-end; }
.hero-live-stack:empty { display: none; }
.hero-live-pill { display: inline-flex; align-items: center; gap: 9px; max-width: min(280px, 70vw); padding: 7px 14px 7px 11px; border-radius: 999px; border: 1px solid rgba(255,255,255,.18); background: rgba(14,14,22,.62); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); color: #fff; cursor: pointer; font: inherit; text-align: left; animation: hero-live-in .45s ease both; }
.hero-live-pill:hover { background: rgba(14,14,22,.78); }
.hero-live-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.15; }
.hero-live-text b { font-size: 10.5px; letter-spacing: 1.2px; color: #ff6b6b; }
.hero-live-text small { font-size: 12px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; opacity: .95; }
@keyframes hero-live-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.live-cta-btn.is-live { position: relative; animation: live-cta-ring 2.2s ease-out infinite; }
.live-cta-btn.is-live .badge-live-dot { background: #ff4d4d; box-shadow: 0 0 0 0 rgba(255,77,77,.7); animation: live-dot-pulse 1.4s ease-out infinite; }
@keyframes live-cta-ring { 0% { box-shadow: 0 0 0 0 rgba(255,77,77,.45); } 70% { box-shadow: 0 0 0 10px rgba(255,77,77,0); } 100% { box-shadow: 0 0 0 0 rgba(255,77,77,0); } }
@keyframes live-dot-pulse { 0% { box-shadow: 0 0 0 0 rgba(255,77,77,.7); } 70% { box-shadow: 0 0 0 6px rgba(255,77,77,0); } 100% { box-shadow: 0 0 0 0 rgba(255,77,77,0); } }
@media (prefers-reduced-motion: reduce) { .live-cta-btn.is-live, .live-cta-btn.is-live .badge-live-dot { animation: none; } }

.live-chat-time { display: block; margin-top: 2px; font-size: 9.5px; line-height: 1; opacity: .55; color: var(--fg); text-align: right; font-variant-numeric: tabular-nums; }
.live-chat-msg.mine .live-chat-time { color: #fff; }

.rec-mrow { flex-wrap: wrap; }
.rec-people { flex: 1 0 100%; margin-top: 6px; font-size: 12px; }
.rec-people summary { cursor: pointer; opacity: .8; }
.rec-people ul { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.rec-person { display: flex; justify-content: space-between; gap: 10px; }
.rec-person em { font-style: normal; font-size: 10px; opacity: .6; margin-left: 4px; }
.rec-person small { opacity: .6; white-space: nowrap; }
.rec-people-note { margin: 8px 0 0; font-size: 10.5px; opacity: .5; }

/* ── Aviso em destaque do Rock Live ───────────────────────────────────────── */
.live-ann-add { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 18px; padding: 10px 16px; border-radius: 12px; border: 1px dashed rgba(123,73,223,.55); background: rgba(123,73,223,.08); color: #C9B3FF; font-size: 13px; font-weight: 800; cursor: pointer; }
.live-ann-add i { width: 16px; height: 16px; }
.live-ann { position: relative; overflow: hidden; display: flex; align-items: stretch; gap: 0; margin-bottom: 26px; border-radius: 22px; border: 1px solid transparent; background: linear-gradient(135deg, #1B1230 0%, #2A1B52 55%, #3B2170 100%); box-shadow: 0 18px 44px rgba(90,50,200,.35), 0 0 0 1px rgba(255,196,64,.12) inset; animation: liveAnnIn .6s ease both; }
@keyframes liveAnnIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
/* Linha de luz girando em volta do card — um anel fraco e constante por
   baixo + um "cometa" dourado/roxo mais brilhante passando por cima.
   @property anima o ângulo suavemente; sem suporte (Firefox < 128), o anel
   cai pra estático no ângulo inicial — ainda bonito, só sem girar. */
@property --live-ann-angle {
  syntax: '<angle>';
  inherits: false;
  initial-value: 0deg;
}
.live-ann::before {
  content: ''; position: absolute; inset: 0; z-index: 0;
  border-radius: inherit; padding: 1.6px;
  background: conic-gradient(from var(--live-ann-angle),
    rgba(255,196,64,.22) 0%, rgba(255,196,64,.22) 68%,
    #FFC440 78%, #7B49DF 87%, rgba(255,196,64,.22) 95%, rgba(255,196,64,.22) 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  animation: liveAnnBorderSpin 5s linear infinite;
  pointer-events: none;
}
@keyframes liveAnnBorderSpin { to { --live-ann-angle: 360deg; } }
@media (prefers-reduced-motion: reduce) { .live-ann::before { animation: none; } }
.live-ann.is-ended { opacity: .6; filter: grayscale(.4); }
.live-ann-glow { position: absolute; top: -40%; right: -8%; width: 320px; height: 320px; border-radius: 50%; background: radial-gradient(circle, rgba(255,196,64,.28), transparent 70%); pointer-events: none; animation: liveHeroFloat 7s ease-in-out infinite; }
.live-ann-media { position: relative; flex: 0 0 260px; min-height: 220px; background: #120C24; }
.live-ann-media img, .live-ann-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; -webkit-mask-image: linear-gradient(90deg, #000 70%, transparent); mask-image: linear-gradient(90deg, #000 70%, transparent); }
.live-ann-media-empty { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: rgba(255,196,64,.7); }
.live-ann-media-empty i { width: 64px; height: 64px; }
.live-ann-body { position: relative; z-index: 1; flex: 1; min-width: 0; padding: 24px 28px 24px 8px; display: flex; flex-direction: column; justify-content: center; gap: 10px; }
.live-ann-badge { align-self: flex-start; display: inline-flex; align-items: center; gap: 7px; padding: 5px 12px; border-radius: 20px; background: linear-gradient(135deg, #FFC440, #FF8A3D); color: #2B1500; font-size: 11px; font-weight: 900; letter-spacing: 1.2px; box-shadow: 0 6px 16px rgba(255,170,60,.35); }
.live-ann-badge i { width: 13px; height: 13px; }
.live-ann h2 { margin: 0; font-size: 26px; line-height: 1.15; font-weight: 900; color: #fff; letter-spacing: -.3px; }
.live-ann p { margin: 0; color: rgba(255,255,255,.78); font-size: 14.5px; line-height: 1.5; }
.live-ann-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.live-ann-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.16); color: #fff; font-size: 12.5px; font-weight: 600; }
.live-ann-chip i { width: 14px; height: 14px; }
.live-ann-when { background: rgba(255,196,64,.18); border-color: rgba(255,196,64,.5); color: #FFE2A0; font-weight: 800; }
.live-ann-admin { position: absolute; top: 12px; right: 12px; z-index: 2; display: flex; gap: 6px; }
.live-ann-admin button { width: 34px; height: 34px; border-radius: 10px; background: rgba(0,0,0,.45); border: 1px solid rgba(255,255,255,.2); color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.live-ann-admin button i { width: 16px; height: 16px; }
.live-ann-modal { max-width: 560px; }
.live-ann-modal textarea.live-input { resize: vertical; }
@media (max-width: 720px) {
  .live-ann { flex-direction: column; }
  .live-ann-media { flex: 0 0 auto; min-height: 0; aspect-ratio: 16 / 10; }
  .live-ann-media img, .live-ann-media video { -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent); mask-image: linear-gradient(180deg, #000 70%, transparent); }
  .live-ann-body { padding: 4px 20px 22px; }
  .live-ann h2 { font-size: 22px; }
}

.live-schedule-event { --slot-color: #FFC440; border-color: transparent; background: rgba(255,196,64,.1); box-shadow: 0 0 0 1px rgba(255,196,64,.35); }
.live-schedule-event::before {
  content: ''; position: absolute; inset: 0; z-index: 0;
  border-radius: inherit; padding: 1.3px;
  background: conic-gradient(from var(--live-ann-angle),
    rgba(255,196,64,.2) 0%, rgba(255,196,64,.2) 68%,
    #FFC440 78%, #7B49DF 87%, rgba(255,196,64,.2) 95%, rgba(255,196,64,.2) 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  animation: liveAnnBorderSpin 4s linear infinite;
  pointer-events: none;
}
@media (prefers-reduced-motion: reduce) { .live-schedule-event::before { animation: none; } }
.live-schedule-event-tag { position: absolute; top: -9px; right: 6px; padding: 1px 6px; border-radius: 999px; background: #FFC440; color: #2B1500; font-size: 8px; font-weight: 900; letter-spacing: .6px; }

.live-section-head-nav { justify-content: space-between; }
.live-section-head-nav > span { display: inline-flex; align-items: center; gap: 8px; }
.live-week-nav { display: flex; align-items: center; gap: 8px; }
.live-week-btn { width: 32px; height: 32px; border-radius: 10px; border: 1px solid var(--border); background: var(--card); color: var(--fg); display: flex; align-items: center; justify-content: center; cursor: pointer; transition: transform .12s, border-color .12s; }
.live-week-btn:hover { border-color: var(--primary); transform: translateY(-1px); }
.live-week-btn i { width: 18px; height: 18px; }
.live-week-label { font-size: 12px; font-weight: 700; color: var(--muted-fg); }

/* ── Chat da aula: painel mais largo, imagens, menu de mensagem ───────────── */
.live-panel { width: 372px; }
.live-panel-head-actions { display: flex; align-items: center; gap: 6px; }
.live-chat-msgs { gap: 12px; padding: 10px 18px; scroll-behavior: smooth; }
.live-chat-msg { max-width: 92%; }
.live-chat-bubble { position: relative; padding: 9px 13px 7px; border-radius: 16px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.05); min-width: 64px; }
.live-chat-msg.mine .live-chat-bubble { background: linear-gradient(135deg, rgba(43,91,238,.92), rgba(98,72,230,.92)); border-color: transparent; }
.live-chat-bubble.has-img { padding: 5px 5px 7px; }
.live-chat-bubble.has-img strong, .live-chat-bubble.has-img .live-chat-text, .live-chat-bubble.has-img .live-chat-time { padding: 0 8px; }
.live-chat-img { display: block; max-width: 100%; max-height: 280px; width: auto; border-radius: 12px; cursor: zoom-in; margin: 2px 0 4px; }
.live-chat-more { position: absolute; top: 4px; right: 4px; width: 24px; height: 24px; border-radius: 8px; background: rgba(0,0,0,.5); color: #fff; display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity .15s; z-index: 2; }
.live-chat-more i { width: 15px; height: 15px; }
.live-chat-bubble:hover .live-chat-more, .live-chat-more:focus-visible { opacity: 1; }
@media (hover: none) { .live-chat-more { opacity: .75; } }
.live-chat-menu { position: absolute; top: 30px; right: 4px; z-index: 5; min-width: 130px; padding: 5px; border-radius: 12px; background: #1B1B22; border: 1px solid rgba(255,255,255,.1); box-shadow: 0 12px 30px rgba(0,0,0,.5); display: flex; flex-direction: column; }
.live-chat-menu button { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 8px; color: #E8E8EE; font-size: 13px; font-weight: 600; text-align: left; }
.live-chat-menu button:hover { background: rgba(255,255,255,.08); }
.live-chat-menu button.danger { color: #FF7A7A; }
.live-chat-menu i { width: 15px; height: 15px; }
.live-chat-edit { display: flex; align-items: center; gap: 6px; min-width: 180px; }
.live-chat-edit input { flex: 1; min-width: 0; padding: 7px 10px; border-radius: 10px; border: 1px solid rgba(255,255,255,.25); background: rgba(0,0,0,.25); color: #fff; font-size: 13.5px; }
.live-chat-edit div { display: flex; gap: 4px; }
.live-chat-edit button { width: 28px; height: 28px; border-radius: 8px; background: rgba(255,255,255,.12); color: #fff; display: flex; align-items: center; justify-content: center; }
.live-chat-edit button.ok { background: #22C55E; }
.live-chat-edit i { width: 15px; height: 15px; }
.live-chat-attach { padding: 8px 14px 0; }
.live-chat-attach-thumb { position: relative; width: 76px; height: 76px; border-radius: 12px; overflow: hidden; border: 1px solid rgba(255,255,255,.15); }
.live-chat-attach-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.live-chat-attach-thumb button { position: absolute; top: 3px; right: 3px; width: 22px; height: 22px; border-radius: 50%; background: rgba(0,0,0,.7); color: #fff; display: flex; align-items: center; justify-content: center; }
.live-chat-attach-thumb button i { width: 13px; height: 13px; }
.live-chat-attach.uploading .live-chat-attach-thumb { opacity: .5; }
.live-chat-input-row { align-items: center; padding: 12px 14px; }
.live-chat-input-row .live-chat-attach-btn { width: 40px; height: 40px; background: rgba(255,255,255,.07); color: var(--fg); }
.live-chat-input-row .live-chat-send-btn { width: 42px; height: 42px; }
.live-chat-input-row .live-chat-attach-btn i { width: 19px; height: 19px; }
.live-chat-lightbox { position: fixed; inset: 0; z-index: 900; background: rgba(0,0,0,.88); display: flex; align-items: center; justify-content: center; padding: 24px; cursor: zoom-out; }
.live-chat-lightbox img { max-width: 100%; max-height: 100%; border-radius: 14px; }
@media (max-width: 720px) { .live-panel { width: 100%; } }

@media (max-width: 720px) {
  .live-ann { margin-bottom: 18px; border-radius: 18px; }
  .live-ann-media { aspect-ratio: 16 / 9; }
  .live-ann-body { gap: 8px; padding: 2px 16px 18px; }
  .live-ann h2 { font-size: 19px; }
  .live-ann p { font-size: 13.5px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  .live-ann-chip { padding: 5px 10px; font-size: 12px; }
}

/* ── Replay de aula gravada ─────────────────────────────────────────────── */
#live-replay .live-call { z-index: 700; }
#live-replay .live-panel { z-index: 710; }
.live-replay-badge { padding: 3px 9px; border-radius: 999px; background: rgba(255,255,255,.12); color: #fff; font-size: 10.5px; font-weight: 900; letter-spacing: 1.2px; }
.live-replay-seek { display: flex; align-items: center; gap: 12px; padding: 4px 18px 0; color: var(--muted-fg); font-size: 12px; font-variant-numeric: tabular-nums; }
.live-replay-seek input[type=range] { flex: 1; accent-color: var(--primary, #2B5BEE); height: 4px; }
#live-replay .live-tile-media video { width: 100%; height: 100%; object-fit: cover; cursor: pointer; }
#live-replay .live-screen-stage .live-tile-media { width: 100%; height: 100%; }
#live-replay .live-screen-stage .live-tile-media video { object-fit: contain; }
#live-replay .live-toasts { z-index: 720; }
#live-replay .clickable { cursor: pointer; }
.live-chat-day { align-self: center; padding: 3px 12px; border-radius: 999px; background: var(--overlay-3, rgba(255,255,255,.1)); color: var(--muted-fg); font-size: 11px; font-weight: 700; text-transform: capitalize; }

.live-rating-box { max-width: 420px; text-align: center; }
.live-rating-title { font-size: 20px; font-weight: 900; color: var(--fg); }
.live-rating-sub { margin: 4px 0 16px; font-size: 13px; color: var(--muted-fg); }
.live-rating-stars { display: flex; justify-content: center; gap: 6px; margin-bottom: 16px; }
.live-rating-stars button { width: 46px; height: 46px; border-radius: 12px; color: rgba(255,255,255,.3); display: flex; align-items: center; justify-content: center; transition: transform .12s, color .12s; }
.live-rating-stars button i, .live-rating-stars button svg { width: 34px; height: 34px; }
.live-rating-stars button:hover { transform: scale(1.1); }
.live-rating-stars button.on { color: #FFC440; }
.live-rating-stars button.on i, .live-rating-stars button.on svg { fill: #FFC440; }
.live-rating-box textarea { width: 100%; resize: none; }

.live-chat-imgwrap { position: relative; display: block; }
.live-chat-dl { position: absolute; top: 8px; right: 8px; width: 30px; height: 30px; border-radius: 9px; background: rgba(0,0,0,.55); color: #fff; display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity .15s; }
.live-chat-dl i, .live-chat-dl svg { width: 16px; height: 16px; }
.live-chat-imgwrap:hover .live-chat-dl, .live-chat-dl:focus-visible { opacity: 1; }
@media (hover: none) { .live-chat-dl { opacity: .85; } }
.live-chat-lightbox-dl { position: absolute; top: 18px; right: 18px; display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 12px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.25); color: #fff; font-size: 13px; font-weight: 700; cursor: pointer; }
.live-chat-lightbox-dl i, .live-chat-lightbox-dl svg { width: 16px; height: 16px; }
.live-chat-replybar { padding: 6px 14px 0; }
.live-chat-replybar-in { display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 10px; border-radius: 10px; background: rgba(255,255,255,.06); border-left: 3px solid var(--primary); }
.live-chat-replybar-in > div { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.live-chat-replybar-in b { font-size: 11.5px; color: #9DB4FF; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.live-chat-replybar-in span { font-size: 12px; color: rgba(255,255,255,.6); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.live-chat-replybar-in button { color: rgba(255,255,255,.6); display: flex; padding: 4px; }
.live-chat-replybar-in i { width: 16px; height: 16px; }
.live-chat-quote { display: flex; flex-direction: column; margin-bottom: 5px; padding: 4px 8px; border-radius: 8px; background: rgba(0,0,0,.22); border-left: 3px solid #9DB4FF; cursor: pointer; }
.live-chat-msg.mine .live-chat-quote { border-left-color: #fff; }
.live-chat-quote b { font-size: 11px; font-weight: 700; color: #9DB4FF; }
.live-chat-msg.mine .live-chat-quote b { color: #fff; }
.live-chat-quote span { font-size: 12px; color: rgba(255,255,255,.7); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.live-chat-msg.flash .live-chat-bubble { animation: liveChatFlash 1.2s ease; }
@keyframes liveChatFlash { 0%, 60% { box-shadow: 0 0 0 3px rgba(157,180,255,.7); } 100% { box-shadow: 0 0 0 0 transparent; } }
.live-tile-actions .wave-hand.mini { width: 15px; height: 15px; }

/* ══════════════════════════════════════════════════════════════════════════════
   ROCK LIVE · LOUSA, CADERNO, SELO NEW E TELAS DE PRIMEIRA VEZ
══════════════════════════════════════════════════════════════════════════════ */
.rl-new { position: absolute; top: -7px; left: 50%; transform: translateX(-50%); padding: 1px 5px; border-radius: 6px; background: linear-gradient(135deg, #FFD25C, #FF9F43); color: #2A1A00; font: 800 8.5px/1.35 var(--font); letter-spacing: .06em; box-shadow: 0 2px 6px rgba(0,0,0,.35), 0 0 0 2px var(--bg); pointer-events: none; animation: rlNewPulse 2.6s ease-in-out infinite; }
.rl-new.big { position: absolute; top: 10px; right: 10px; left: auto; transform: none; font-size: 11px; padding: 3px 8px; border-radius: 8px; box-shadow: 0 4px 12px rgba(0,0,0,.3); }
.live-ctrl-icon.bump { animation: lbBump .5s; }

.live-stage.board .live-screen-stage { background: var(--video-well); }
.lb-stage { position: absolute; inset: 0; display: flex; flex-direction: column; }
.lb-bar { display: flex; align-items: center; gap: 8px; padding: 8px 10px; flex-wrap: wrap; }
.lb-title { display: flex; align-items: center; gap: 7px; color: #fff; font-size: 13px; flex: 1; min-width: 0; }
.lb-title i { width: 16px; height: 16px; flex: none; }
.lb-live { display: inline-flex; align-items: center; gap: 6px; color: #8FE3B5; font-size: 12px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.lb-live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #3CCB8B; flex: none; animation: lbBlink 1.6s infinite; }
.lb-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.lb-btn { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; background: rgba(255,255,255,.1); color: #fff; font-size: 12.5px; font-weight: 700; white-space: nowrap; }
.lb-btn:hover { background: rgba(255,255,255,.17); }
.lb-btn:disabled { opacity: .4; cursor: default; }
.lb-btn i { width: 15px; height: 15px; }
.lb-btn.gold { background: #FFC94D; color: #241B02; }
.lb-btn.gold:hover { background: #FFD56E; }
.lb-btn.danger { background: #EB4D4D; }
.lb-wrap { flex: 1; min-height: 0; display: grid; place-items: center; padding: 6px 16px 18px; container-type: size; }
.lb-board { position: relative; width: min(100cqw, calc(100cqh * 16 / 9)); aspect-ratio: 16 / 9; max-width: 100%; border-radius: 10px; background: radial-gradient(120% 90% at 25% 10%, #1A3329, #13261F 60%); box-shadow: 0 0 0 7px #3B2E22, 0 0 0 8px rgba(255,255,255,.06), 0 18px 40px rgba(0,0,0,.5); }
.lb-text { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; padding: 4.5% 5.5%; overflow: hidden; white-space: pre-wrap; overflow-wrap: anywhere; color: #EEF4F0; font: 600 28px/1.38 var(--font); text-align: left; border: 0; background: transparent; resize: none; outline: none; }
textarea.lb-text::placeholder { color: #7A978A; }
.lb-text .lb-w { border-radius: .2em; cursor: pointer; transition: background .15s; }
.lb-text .lb-w:hover, .lb-text .lb-w.on { background: rgba(255,255,255,.16); }
.lb-text::selection, .lb-text *::selection { background: rgba(255,201,77,.45); }
.lb-empty { position: absolute; inset: 0; display: grid; place-items: center; color: #93AA9F; font-size: 15px; font-weight: 600; }
.lb-confirm { position: absolute; left: 12px; right: 12px; bottom: 12px; z-index: 3; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px; background: #2A1416; border: 1px solid rgba(240,82,92,.45); color: #FFD5D8; font-size: 13px; animation: lbPopIn .2s ease-out; }
.lb-confirm p { margin: 0; flex: 1; min-width: 200px; line-height: 1.45; }
.lb-confirm span { display: flex; gap: 6px; }
.lb-duck { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); z-index: 3; display: flex; align-items: center; gap: 8px; max-width: calc(100% - 24px); padding: 8px 14px; border-radius: 12px; background: rgba(20,18,10,.94); border: 1px solid rgba(255,201,77,.45); color: #fff; font-size: 12.5px; font-weight: 600; }
.lb-duck i { width: 16px; height: 16px; color: #FFC94D; flex: none; }
.lb-duck span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.lb-pop { position: fixed; z-index: 1200; width: 260px; padding: 12px; border-radius: 16px; background: var(--card-2); color: var(--fg); border: 1px solid var(--border); box-shadow: 0 20px 50px rgba(0,0,0,.45); animation: lbPopIn .18s ease-out; }
.lb-pop.sheet { left: 10px; right: 10px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); width: auto; animation: rlSheetUp .3s cubic-bezier(.2,.9,.3,1); }
.lb-pop-h { display: flex; align-items: flex-start; gap: 8px; margin-bottom: 10px; }
.lb-pop-h b { flex: 1; min-width: 0; font-size: 20px; line-height: 1.2; overflow-wrap: anywhere; }
.lb-pop-x { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; color: var(--muted-fg); flex: none; }
.lb-pop-x i { width: 16px; height: 16px; }
.lb-pop-acts { display: flex; gap: 8px; }
.lb-pop-acts button { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 11px 10px; border-radius: 11px; background: var(--overlay-2); color: var(--fg); font-size: 13px; font-weight: 700; }
.lb-pop-acts button i { width: 16px; height: 16px; }
.lb-pop-acts .lb-pop-say { background: #FFC94D; color: #241B02; }
.lb-pop-acts .done { color: #3CCB8B; }

.lb-fly { position: fixed; z-index: 1300; pointer-events: none; background: #fff; padding: 6px 6px 18px; border-radius: 4px; box-shadow: 0 20px 50px rgba(0,0,0,.5); transition: transform .7s cubic-bezier(.55,0,.25,1) .3s, opacity .6s ease-in .45s; }
.lb-fly::after { content: ""; position: absolute; inset: 0; background: #fff; animation: lbFlash .45s ease-out forwards; }

.nb-ov { position: fixed; inset: 0; z-index: 1100; display: flex; align-items: center; justify-content: center; background: rgba(4,4,7,.62); -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px); animation: lbFade .2s; }
.nb-ov.out { animation: lbFadeOut .22s forwards; }
.nb-book { position: relative; width: min(1060px, 94vw); height: min(820px, 88vh); display: flex; flex-direction: column; animation: nbIn .38s cubic-bezier(.2,.9,.3,1); }
.nb-grab { display: none; }
.nb-head { display: flex; align-items: flex-end; gap: 10px; height: 38px; padding: 0 2px 0 24px; }
.nb-tabs { flex: 1; min-width: 0; height: 38px; display: flex; align-items: flex-end; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.nb-tabs::-webkit-scrollbar { display: none; }
.nb-tab { flex: none; height: 30px; padding: 0 14px; border-radius: 10px 10px 0 0; background: var(--tc); color: #16181F; font-size: 12.5px; font-weight: 800; opacity: .72; transform: translateY(6px); transition: transform .2s, opacity .2s, height .2s; }
.nb-tab:hover { opacity: 1; }
.nb-tab[aria-pressed="true"] { opacity: 1; transform: none; height: 36px; }
.nb-limit { flex: none; align-self: center; margin-left: 8px; color: #B6BACB; font-size: 11.5px; white-space: nowrap; }
.nb-close { width: 34px; height: 34px; margin-bottom: 4px; border-radius: 50%; display: grid; place-items: center; background: #262A34; color: #fff; border: 1px solid rgba(255,255,255,.1) !important; flex: none; }
.nb-close i { width: 18px; height: 18px; }
.nb-pages { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0,1fr) 30px minmax(0,1fr); padding: 10px; border-radius: 18px; background: #262A34; box-shadow: 0 30px 80px rgba(0,0,0,.6), inset 0 0 0 1px rgba(255,255,255,.05); }
.nb-pages.turn .nb-right { animation: nbTurn .5s ease-out; transform-origin: left center; }
.nb-loading { grid-column: 1 / -1; display: grid; place-items: center; color: #C9CCD8; font-size: 14px; }
.nb-page { min-width: 0; min-height: 0; overflow: auto; display: flex; flex-direction: column; padding: 12px 18px 18px 64px; color: #1E2433; background-color: #FCFDFF; background-image: linear-gradient(90deg, transparent 50px, #EC8D8D 50px, #EC8D8D 51.5px, transparent 51.5px), repeating-linear-gradient(180deg, transparent 0 31px, #D5E1F5 31px 32px); background-attachment: local; }
.nb-left { border-radius: 10px 4px 4px 10px; }
.nb-right { border-radius: 4px 10px 10px 4px; }
.nb-spiral { display: flex; flex-direction: column; justify-content: space-evenly; align-items: center; overflow: hidden; padding: 10px 0; }
.nb-spiral i { display: block; width: 42px; height: 11px; flex: none; border-radius: 999px; border: 3px solid #B6BCC9; border-left-color: #7F8697; border-right-color: #7F8697; box-shadow: 0 2px 0 rgba(0,0,0,.35); }
.nb-pg-h { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; min-height: 52px; padding-top: 6px; flex-wrap: wrap; }
.nb-pg-h b { font: 700 31px/32px 'Caveat', 'Segoe Print', 'Bradley Hand', cursive; color: #1E2433; }
.nb-pg-h span { font: 600 21px/32px 'Caveat', 'Segoe Print', cursive; color: #5B6477; }
.nb-class { margin: 0; align-self: flex-start; padding: 0 8px; border-radius: 6px; background: color-mix(in srgb, var(--tc) 40%, transparent); font-size: 12px; font-weight: 700; line-height: 26px; color: #2B3245; }
.nb-sub { margin: 14px 0 0; font-size: 11px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; line-height: 32px; color: #5B6477; }
.nb-caps { display: flex; flex-direction: column; }
.nb-cap { position: relative; align-self: flex-start; width: min(330px, 100%); margin: 18px 0 6px 2px; padding: 8px 8px 4px; background: #fff; box-shadow: 0 8px 18px rgba(20,30,60,.2); transform: rotate(-1.4deg); transition: width .3s, transform .3s; }
.nb-cap:nth-child(even) { transform: rotate(1.1deg); }
.nb-cap::before { content: ""; position: absolute; top: -10px; left: 50%; width: 74px; height: 20px; margin-left: -37px; transform: rotate(-4deg); background: rgba(255,201,77,.6); }
.nb-cap.big { width: 100%; transform: none; }
.nb-cap figcaption { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 2px 4px 0; font: 600 18px/26px 'Caveat', 'Segoe Print', cursive; color: #5B6477; }
.nb-cap figcaption span:last-child { display: flex; gap: 12px; }
.nb-cap figcaption button { padding: 4px 0; font: 700 12px var(--font); color: #3557C9; }
.nb-cap figcaption button.rm { color: #A2505A; }
.nb-mini { position: relative; aspect-ratio: 16 / 9; border-radius: 4px; overflow: hidden; background: #13261F; container-type: inline-size; }
.nb-mini pre { margin: 0; padding: 4.5% 5.5%; white-space: pre-wrap; overflow-wrap: anywhere; color: #EEF4F0; font: 600 3.4cqw/1.38 var(--font); }
.nb-cap.big .nb-mini { aspect-ratio: auto; min-height: 120px; }
.nb-cap.big .nb-mini pre { font-size: max(13px, 2.4cqw); }
.lb-fly .nb-mini pre { font-size: 2.6cqw; }
.nb-words { list-style: none; margin: 0; padding: 4px 0 0; display: flex; flex-wrap: wrap; gap: 6px 8px; }
.nb-words li { display: inline-flex; align-items: center; gap: 2px; padding: 2px; border-radius: 999px; background: rgba(43,91,238,.07); }
.nb-words mark { padding: 0 2px; font-size: 15px; font-weight: 700; color: #1E2433; background: linear-gradient(transparent 42%, rgba(255,222,77,.7) 42%, rgba(255,222,77,.7) 92%, transparent 92%); }
.nb-words button { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; color: #3557C9; }
.nb-words button:hover { background: rgba(43,91,238,.1); }
.nb-words button.rm { width: 26px; color: #9AA1B2; }
.nb-words i { width: 15px; height: 15px; }
.nb-empty { margin: 16px 0; font: 600 23px/32px 'Caveat', 'Segoe Print', cursive; color: #5B6477; }
.nb-empty small { display: block; margin-top: 4px; font: 500 13px/1.5 var(--font); }
.nb-notes { flex: 1; width: 100%; min-height: 220px; padding: 0; border: 0; outline: none; resize: none; background: transparent; color: #24336B; font: 600 25px/32px 'Caveat', 'Segoe Print', 'Bradley Hand', cursive; }
.nb-notes::placeholder { color: #9BA6BF; }
.nb-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; font: 600 17px 'Caveat', cursive; color: #9AA1B2; }
.nb-saved { display: inline-flex; align-items: center; gap: 4px; font: 600 11.5px var(--font); color: #6C778E; }
.nb-saved i { width: 13px; height: 13px; color: #1D7A4E; }
.nb-dots { display: none; }

.rl-intro-ov { position: fixed; inset: 0; z-index: 1250; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(4,4,7,.6); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); animation: lbFade .2s; }
.rl-intro-ov.out { animation: lbFadeOut .22s forwards; }
.rl-intro { width: min(440px, 100%); max-height: 100%; overflow: auto; padding: 22px 22px 18px; border-radius: 24px; background: var(--card-2); color: var(--fg); border: 1px solid var(--border); box-shadow: 0 30px 80px rgba(0,0,0,.5); animation: rlPop .32s cubic-bezier(.2,.9,.3,1); }
.rl-intro-grab { display: none; }
.rl-intro-art { position: relative; height: 128px; margin-bottom: 18px; border-radius: 18px; display: grid; place-items: center; background: radial-gradient(120% 120% at 20% 0%, rgba(255,201,77,.22), transparent 55%), radial-gradient(120% 120% at 100% 100%, rgba(43,91,238,.3), transparent 60%), #15161C; }
.rl-art-board { width: 150px; aspect-ratio: 16 / 9; padding: 12px 14px; display: flex; flex-direction: column; gap: 7px; border-radius: 6px; background: #13261F; box-shadow: 0 0 0 5px #3B2E22, 0 12px 24px rgba(0,0,0,.4); }
.rl-art-board i { height: 6px; border-radius: 3px; background: rgba(238,244,240,.8); transform-origin: left; animation: rlWrite 2.6s ease-in-out infinite; }
.rl-art-board i:nth-child(1) { width: 82%; }
.rl-art-board i:nth-child(2) { width: 58%; animation-delay: .35s; }
.rl-art-board i:nth-child(3) { width: 70%; animation-delay: .7s; }
.rl-art-book { display: flex; height: 86px; filter: drop-shadow(0 12px 18px rgba(0,0,0,.4)); }
.rl-art-book span { width: 70px; border-radius: 6px 2px 2px 6px; background: #FCFDFF repeating-linear-gradient(180deg, transparent 0 11px, #D5E1F5 11px 12px); }
.rl-art-book span:last-child { border-radius: 2px 6px 6px 2px; transform-origin: left center; animation: rlPage 3.2s ease-in-out infinite; }
.rl-art-book b { width: 12px; background: repeating-linear-gradient(180deg, #B6BCC9 0 4px, transparent 4px 9px); }
.rl-intro h3 { margin: 0 0 14px; font-size: 21px; font-weight: 800; }
.rl-intro ul { list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 12px; }
.rl-intro li { display: flex; gap: 12px; align-items: flex-start; }
.rl-intro li span { width: 32px; height: 32px; flex: none; border-radius: 10px; display: grid; place-items: center; background: var(--overlay-1); color: #F0B429; }
.rl-intro li i { width: 17px; height: 17px; }
.rl-intro li p { margin: 5px 0 0; font-size: 14px; line-height: 1.5; color: var(--fg); }
.rl-intro-acts { display: flex; gap: 10px; justify-content: flex-end; }
.rl-intro-go { padding: 12px 20px; border-radius: 14px; background: var(--primary); color: #fff; font-size: 14px; font-weight: 700; }
.rl-intro-go:hover { filter: brightness(1.1); }
.rl-intro-later { padding: 12px 16px; border-radius: 14px; background: var(--overlay-1); color: var(--fg); font-size: 14px; font-weight: 600; }

@media (max-width: 720px) {
  .lb-bar { padding: 6px 8px; gap: 6px; }
  .lb-live { display: none; }
  .lb-btn { padding: 7px 10px; }
  .lb-wrap { padding: 4px 10px 12px; }
  .nb-ov { align-items: flex-end; background: rgba(4,4,7,.5); }
  .nb-book { width: 100%; height: calc(100dvh - 64px - var(--banner-h, 0px)); padding: 6px 8px 0; border-radius: 24px 24px 0 0; background: #262A34; box-shadow: 0 -20px 60px rgba(0,0,0,.5); animation: rlSheetUp .38s cubic-bezier(.2,.9,.3,1); }
  .nb-ov.out .nb-book { animation: rlSheetDown .22s ease-in forwards; }
  .nb-grab { display: block; width: 40px; height: 5px; margin: 4px auto 8px; border-radius: 999px; background: rgba(255,255,255,.25); flex: none; }
  .nb-head { height: auto; padding: 0 2px 8px; align-items: center; }
  .nb-tabs { height: auto; align-items: center; }
  .nb-tab, .nb-tab[aria-pressed="true"] { height: 32px; border-radius: 999px; transform: none; }
  .nb-tab { opacity: .6; }
  .nb-tab[aria-pressed="true"] { box-shadow: inset 0 0 0 2px #fff; }
  .nb-limit { display: none; }
  .nb-close { margin: 0; }
  .nb-pages { display: flex; gap: 10px; padding: 0; border-radius: 0; background: transparent; box-shadow: none; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .nb-pages::-webkit-scrollbar { display: none; }
  .nb-spiral { display: none; }
  .nb-loading { flex: 0 0 100%; }
  .nb-page, .nb-left, .nb-right { flex: 0 0 100%; scroll-snap-align: center; border-radius: 12px 12px 0 0; padding: 10px 14px 18px 50px; background-image: linear-gradient(90deg, transparent 38px, #EC8D8D 38px, #EC8D8D 39.5px, transparent 39.5px), repeating-linear-gradient(180deg, transparent 0 31px, #D5E1F5 31px 32px); }
  .nb-cap { width: 100%; }
  .nb-dots { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 4px calc(10px + env(safe-area-inset-bottom, 0px)); }
  .nb-dots span { display: flex; gap: 6px; }
  .nb-dots span button { padding: 7px 14px; border-radius: 999px; background: rgba(255,255,255,.07); color: #B6BACB; font-size: 12.5px; font-weight: 700; }
  .nb-dots span button[aria-current="true"] { background: #fff; color: #16181F; }
  .nb-arw { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.08); color: #fff; }
  .nb-arw i { width: 18px; height: 18px; }
  .rl-intro-ov { align-items: flex-end; padding: 0; }
  .rl-intro { width: 100%; max-height: 92dvh; padding: 8px 20px calc(18px + env(safe-area-inset-bottom, 0px)); border-radius: 24px 24px 0 0; border-bottom: 0; animation: rlSheetUp .36s cubic-bezier(.2,.9,.3,1); }
  .rl-intro-ov.out .rl-intro { animation: rlSheetDown .22s ease-in forwards; }
  .rl-intro-grab { display: block; width: 40px; height: 5px; margin: 4px auto 14px; border-radius: 999px; background: var(--overlay-3); }
  .rl-intro-acts button { flex: 1; }
}

@keyframes rlNewPulse { 0%, 100% { filter: none; } 50% { filter: brightness(1.15) drop-shadow(0 0 4px rgba(255,180,60,.7)); } }
@keyframes lbBump { 30% { transform: scale(1.18); } }
@keyframes lbBlink { 50% { opacity: .35; } }
@keyframes lbPopIn { from { opacity: 0; transform: translateY(6px) scale(.97); } }
@keyframes lbFlash { from { opacity: .95; } to { opacity: 0; } }
@keyframes lbFade { from { opacity: 0; } }
@keyframes lbFadeOut { to { opacity: 0; } }
@keyframes rlSheetUp { from { transform: translateY(100%); } }
@keyframes rlSheetDown { to { transform: translateY(100%); } }
@keyframes rlPop { from { opacity: 0; transform: translateY(16px) scale(.97); } }
@keyframes nbIn { from { opacity: 0; transform: translateY(26px) scale(.97); } }
@keyframes nbTurn { from { transform: perspective(1400px) rotateY(-70deg); opacity: .3; } }
@keyframes rlWrite { 0% { transform: scaleX(0); } 40%, 100% { transform: scaleX(1); } }
@keyframes rlPage { 0%, 55%, 100% { transform: none; } 75% { transform: perspective(300px) rotateY(-32deg); } }
@media (prefers-reduced-motion: reduce) {
  .rl-new, .rl-art-board i, .rl-art-book span, .lb-live::before, .nb-book, .nb-pages.turn .nb-right, .rl-intro, .lb-pop, .lb-fly { animation: none !important; transition: none !important; }
}
.lb-empty[hidden], .lb-confirm[hidden], .lb-duck[hidden] { display: none !important; }
.live-ann-modal .la-media-del-row { margin-top: 12px; }
.live-ann-modal .la-when-note { margin: 10px 2px 0; color: var(--muted-fg); font-size: 12px; line-height: 1.45; }
.lb-owner { color: #C9D6CF; font-weight: 500; font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.lpc-overlay { position: fixed; inset: 0; z-index: 10000; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(0,0,0,.66); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); animation: lbFade .2s; }
.lpc-overlay.out { animation: lbFadeOut .2s forwards; }
.lpc-card { width: min(440px, 100%); max-height: 100%; overflow: auto; border-radius: 22px; background: rgba(24,24,30,.98); border: 1px solid var(--border); box-shadow: 0 24px 60px rgba(0,0,0,.55); animation: lpIn .3s cubic-bezier(.2,.8,.2,1); }
.lpc-art { height: 110px; }
.lpc-body { display: flex; flex-direction: column; gap: 10px; padding: 18px 20px 20px; color: #fff; }
.lpc-body h3 { margin: 0; font-size: 19px; font-weight: 800; }
.lpc-sub { margin: -4px 0 4px; color: rgba(255,255,255,.6); font-size: 13px; }
#lpc-q { width: 100%; resize: none; padding: 12px 14px; border-radius: 14px; border: 1.5px solid rgba(255,255,255,.14); background: rgba(255,255,255,.04); color: #fff; font: 700 15px/1.4 var(--font); outline: none; transition: border-color .15s; }
#lpc-q:focus { border-color: var(--primary); }
.lpc-opts { display: flex; flex-direction: column; gap: 8px; }
.lpc-opt { display: flex; align-items: center; gap: 10px; padding: 4px 6px 4px 8px; border-radius: 12px; border: 1.5px solid rgba(255,255,255,.12); background: rgba(255,255,255,.03); transition: border-color .15s; animation: lpIn .25s ease-out; }
.lpc-opt:focus-within { border-color: var(--primary); }
.lpc-n { width: 24px; height: 24px; flex: none; border-radius: 50%; display: grid; place-items: center; background: rgba(43,91,238,.22); color: #9DB6FF; font-size: 12px; font-weight: 800; }
.lpc-o { flex: 1; min-width: 0; padding: 9px 2px; border: 0; background: transparent; color: #fff; font: 600 14px var(--font); outline: none; }
.lpc-rm { width: 30px; height: 30px; flex: none; border-radius: 8px; display: grid; place-items: center; color: rgba(255,255,255,.5); }
.lpc-rm:hover { color: #FF9AA1; background: rgba(240,82,92,.12); }
.lpc-rm i { width: 15px; height: 15px; }
.lpc-add { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; border: 1px dashed rgba(255,255,255,.25); color: rgba(255,255,255,.8); font-size: 13px; font-weight: 700; }
.lpc-add:hover { border-color: var(--primary); color: #fff; }
.lpc-add i { width: 15px; height: 15px; }
.lpc-add[hidden] { display: none; }
.lpc-go { margin-top: 6px; height: 48px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--primary); color: #fff; font-size: 15px; font-weight: 800; }
.lpc-go:hover { filter: brightness(1.1); }
.lpc-go i { width: 17px; height: 17px; }
@media (max-width: 720px) {
  .lpc-overlay { align-items: flex-end; padding: 0; }
  .lpc-card { width: 100%; border-radius: 22px 22px 0 0; padding-bottom: env(safe-area-inset-bottom, 0px); animation: rlSheetUp .32s cubic-bezier(.2,.9,.3,1); }
  .lpc-overlay.out .lpc-card { animation: rlSheetDown .2s ease-in forwards; }
}
.live-poll { max-height: calc(100dvh - 120px); overflow-y: auto; }
#live-replay ~ .rp-poll, .rp-poll { z-index: 9700; }
.rp-poll .lp-opt { cursor: default; }
.navbar-notebook-btn .rl-new { top: -4px; font-size: 7.5px; padding: 0 4px; }
.lb-text { touch-action: manipulation; }
.lb-pop.phrase { width: 340px; }
.lb-pop.phrase .lb-pop-h b { font-size: 16.5px; line-height: 1.4; font-weight: 700; }
.lb-pop-kind { display: inline-block; margin-bottom: 6px; padding: 2px 8px; border-radius: 999px; background: rgba(255,201,77,.16); color: #F0B429; font-size: 10.5px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.lb-pop-tip { margin: 10px 2px 0; color: var(--muted-fg); font-size: 11.5px; }

.nb-words li { max-width: 100%; }
.nb-words mark { white-space: normal; overflow-wrap: anywhere; }
.nb-foot-left { margin-top: auto; padding-top: 14px; }
.nb-del { display: inline-flex; align-items: center; gap: 5px; padding: 6px 0; font: 600 12px var(--font); color: #A7ADBB; }
.nb-del:hover { color: #A2505A; }
.nb-del i { width: 13px; height: 13px; }
.nb-del-ask { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; font: 600 12.5px/1.45 var(--font); color: #5B6477; }
.nb-del-ask > span:first-child { flex: 1; min-width: 180px; }
.nb-del-ask > span:last-child { display: flex; gap: 6px; }
.nb-del-yes { padding: 6px 12px; border-radius: 999px; background: #C2414B; color: #fff; font: 700 12px var(--font); }
.nb-del-no { padding: 6px 12px; border-radius: 999px; background: rgba(30,36,51,.07); color: #1E2433; font: 700 12px var(--font); }
.nb-cap figcaption button.rm.armed { color: #fff; background: #C2414B; padding: 3px 9px; border-radius: 999px; }
.nb-words button.rm.armed { width: auto; padding: 0 10px; border-radius: 999px; background: #C2414B; color: #fff; font: 700 11.5px var(--font); }
html.rl-overlay-open .coach-fab, html.rl-overlay-open .rocksby-fab, html.rl-overlay-open .dock-fab, html.rl-overlay-open .rocksby-fab-label { z-index: 1000 !important; }
.rl-intro-acts { position: sticky; bottom: calc(-18px - env(safe-area-inset-bottom, 0px)); margin: 0 -22px -18px; padding: 12px 22px 18px; background: var(--card-2); }
@media (max-width: 720px) { .rl-intro-acts { margin: 0 -20px calc(-18px - env(safe-area-inset-bottom, 0px)); padding: 12px 20px calc(18px + env(safe-area-inset-bottom, 0px)); } }
