/* ============================================
   CENTRAL DA PALAVRA — Design System
   Direção: tons quentes, acolhedor, editorial
   ============================================ */

:root {
  /* Tipografia */
  --font-serif: 'Fraunces', 'Newsreader', Georgia, serif;
  --font-body: 'DM Sans', 'Inter', -apple-system, sans-serif;
  --font-quote: 'Instrument Serif', 'Crimson Pro', Georgia, serif;

  /* Escalas de densidade */
  --density-scale: 1;
  --sp-1: calc(4px * var(--density-scale));
  --sp-2: calc(8px * var(--density-scale));
  --sp-3: calc(12px * var(--density-scale));
  --sp-4: calc(16px * var(--density-scale));
  --sp-5: calc(20px * var(--density-scale));
  --sp-6: calc(24px * var(--density-scale));
  --sp-8: calc(32px * var(--density-scale));
  --sp-10: calc(40px * var(--density-scale));
  --sp-12: calc(48px * var(--density-scale));
  --sp-16: calc(64px * var(--density-scale));

  /* Radii */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-full: 999px;

  /* Acento (default âmbar) */
  --accent-h: 32;
  --accent-s: 78%;
  --accent-l: 52%;
  --accent: hsl(var(--accent-h) var(--accent-s) var(--accent-l));
  --accent-soft: hsl(var(--accent-h) var(--accent-s) 92%);
  --accent-strong: hsl(var(--accent-h) var(--accent-s) 42%);
  --accent-ink: hsl(var(--accent-h) 60% 20%);

  /* Transições */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ===== TEMA CLARO (bege/creme acolhedor) ===== */
[data-theme="light"] {
  --bg: #f7f2ea;
  --bg-elev: #fdfaf4;
  --bg-elev-2: #ffffff;
  --bg-sidebar: #efe7d9;
  --bg-input: #ffffff;
  --bg-hover: rgba(120, 80, 40, 0.06);
  --bg-active: rgba(120, 80, 40, 0.10);

  --ink: #2a1f14;
  --ink-2: #4a3a2a;
  --ink-3: #7a6a58;
  --ink-4: #a89a86;

  --line: rgba(80, 55, 30, 0.10);
  --line-strong: rgba(80, 55, 30, 0.18);

  --card: #ffffff;
  --card-warm: #fdf6ea;

  --success: #4d7a4a;
  --warn: #b8763a;
  --danger: #a63838;

  --shadow-sm: 0 1px 2px rgba(70, 40, 15, 0.06);
  --shadow-md: 0 4px 20px -6px rgba(70, 40, 15, 0.12), 0 2px 6px rgba(70, 40, 15, 0.05);
  --shadow-lg: 0 20px 50px -20px rgba(70, 40, 15, 0.25), 0 8px 20px -8px rgba(70, 40, 15, 0.10);
}

/* ===== TEMA ESCURO (quente, aveludado) ===== */
[data-theme="dark"] {
  --bg: #171310;
  --bg-elev: #221c17;
  --bg-elev-2: #2a231d;
  --bg-sidebar: #14100d;
  --bg-input: #2a231d;
  --bg-hover: rgba(255, 220, 180, 0.05);
  --bg-active: rgba(255, 220, 180, 0.09);

  --ink: #f5ead8;
  --ink-2: #d8c9b2;
  --ink-3: #a89a86;
  --ink-4: #7a6d5a;

  --line: rgba(255, 220, 180, 0.08);
  --line-strong: rgba(255, 220, 180, 0.15);

  --card: #221c17;
  --card-warm: #2a221a;

  --success: #8fbb7f;
  --warn: #e0a460;
  --danger: #e07575;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 4px 20px -6px rgba(0, 0, 0, 0.4), 0 2px 6px rgba(0, 0, 0, 0.2);
  --shadow-lg: 0 20px 50px -20px rgba(0, 0, 0, 0.6), 0 8px 20px -8px rgba(0, 0, 0, 0.3);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  height: 100%;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow: hidden;
}

body {
  font-size: 15px;
  line-height: 1.55;
  transition: background 0.4s var(--ease), color 0.3s var(--ease);
}

#root { height: 100vh; overflow: hidden; }

button { font: inherit; color: inherit; cursor: pointer; border: none; background: none; }
input, textarea { font: inherit; color: inherit; }
a { color: var(--accent-strong); text-decoration: none; }

::selection { background: var(--accent); color: var(--accent-ink); }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 10px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: var(--ink-4); }

/* ========================================
   ONBOARDING
   ======================================== */
.onboarding {
  min-height: 100vh;
  overflow-y: auto;
  overflow-x: hidden;
  background: var(--bg);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.onboarding::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at top left, hsl(var(--accent-h) 50% 60% / 0.10), transparent 55%),
    radial-gradient(ellipse at bottom right, hsl(var(--accent-h) 40% 40% / 0.08), transparent 60%);
  pointer-events: none;
}

.onboarding-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: var(--sp-8) var(--sp-6) var(--sp-16);
  position: relative;
}

.onboarding-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--sp-16);
}

.onboarding-hero {
  text-align: center;
  max-width: 780px;
  margin: 0 auto var(--sp-12);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-strong);
  padding: var(--sp-2) var(--sp-4);
  border: 1px solid var(--accent);
  border-radius: var(--r-full);
  background: hsl(var(--accent-h) var(--accent-s) var(--accent-l) / 0.08);
  margin-bottom: var(--sp-4);
  white-space: nowrap;
}

.onboarding-hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(38px, 5.5vw, 68px);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: var(--sp-5);
  font-variation-settings: 'opsz' 96;
}

.onboarding-hero h1 em {
  font-family: var(--font-quote);
  font-style: italic;
  color: var(--accent-strong);
  font-weight: 400;
}

.onboarding-hero p {
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink-3);
  max-width: 560px;
  margin: 0 auto;
}

.translations-label {
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: var(--sp-6);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-4);
}

.translations-label::before, .translations-label::after {
  content: '';
  height: 1px;
  width: 40px;
  background: var(--line-strong);
}

.translations-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-5);
  margin-bottom: var(--sp-10);
}

@media (max-width: 860px) {
  .translations-grid { grid-template-columns: 1fr; }
}

.translation-card {
  background: var(--card);
  border: 1.5px solid var(--line);
  border-radius: var(--r-xl);
  padding: var(--sp-8);
  cursor: pointer;
  transition: all 0.3s var(--ease-out);
  text-align: left;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 340px;
}

.translation-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.translation-card.selected {
  border-color: var(--accent);
  background: linear-gradient(180deg, hsl(var(--accent-h) var(--accent-s) var(--accent-l) / 0.06), var(--card));
  box-shadow: 0 0 0 4px hsl(var(--accent-h) var(--accent-s) var(--accent-l) / 0.12), var(--shadow-md);
}

.translation-card .card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--r-md);
  background: hsl(var(--accent-h) var(--accent-s) var(--accent-l) / 0.12);
  color: var(--accent-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--sp-6);
}

.translation-card h3 {
  font-family: var(--font-serif);
  font-size: 30px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: var(--sp-1);
}

.translation-card .card-sub {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-3);
  margin-bottom: var(--sp-5);
  letter-spacing: 0.02em;
}

.translation-card .card-desc {
  color: var(--ink-2);
  font-size: 14.5px;
  line-height: 1.6;
  flex: 1;
  margin-bottom: var(--sp-5);
}

.translation-card .card-badge {
  display: inline-block;
  padding: var(--sp-2) var(--sp-3);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: var(--r-full);
  background: var(--bg-hover);
  color: var(--ink-3);
  align-self: flex-start;
}

.translation-card.selected .card-badge {
  background: var(--accent);
  color: var(--accent-ink);
}

.onboarding-cta {
  text-align: center;
  margin-top: var(--sp-8);
}

.onboarding-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-6);
  margin-top: var(--sp-16);
  padding-top: var(--sp-10);
  border-top: 1px solid var(--line);
}

@media (max-width: 780px) {
  .onboarding-steps { grid-template-columns: 1fr; }
}

.step {
  display: flex;
  gap: var(--sp-4);
  align-items: flex-start;
}

.step-num {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 15px;
}

.step-body h4 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 17px;
  margin-bottom: var(--sp-1);
  color: var(--ink);
}

.step-body p {
  color: var(--ink-3);
  font-size: 14px;
  line-height: 1.55;
}

/* ========================================
   BOTÕES
   ======================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: var(--sp-3) var(--sp-5);
  border-radius: var(--r-full);
  font-weight: 500;
  font-size: 14.5px;
  transition: all 0.2s var(--ease);
  white-space: nowrap;
  letter-spacing: 0.01em;
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: 0 1px 2px rgba(0,0,0,0.1), inset 0 1px 0 rgba(255,255,255,0.2);
}
.btn-primary:hover { background: var(--accent-strong); color: white; transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-primary:disabled { opacity: 0.4; cursor: not-allowed; transform: none; }

.btn-ghost { color: var(--ink-2); }
.btn-ghost:hover { background: var(--bg-hover); color: var(--ink); }

.btn-outline { border: 1px solid var(--line-strong); color: var(--ink); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent-strong); }

.btn-lg { padding: var(--sp-4) var(--sp-8); font-size: 15px; }

/* ========================================
   APP SHELL
   ======================================== */
.shell {
  display: grid;
  grid-template-columns: 280px 1fr;
  height: 100vh;
  background: var(--bg);
}

.shell.collapsed { grid-template-columns: 72px 1fr; }

.sidebar {
  background: var(--bg-sidebar);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  padding: var(--sp-5) var(--sp-4);
  overflow: hidden;
  transition: all 0.3s var(--ease);
  z-index: 30;
}

/* Backdrop mobile. Fica fora do grid para não roubar a coluna da sidebar */
.sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 20;
  animation: fadeIn 0.2s ease;
}

/* MOBILE: sidebar vira drawer sobreposto */
@media (max-width: 860px) {
  .shell, .shell.collapsed { grid-template-columns: 1fr; }
  .sidebar {
    position: fixed;
    top: 0; left: 0; bottom: 0;
    width: 280px;
    transform: translateX(-100%);
    box-shadow: var(--shadow-lg);
  }
  .shell.mobile-open .sidebar { transform: translateX(0); }
  .shell.mobile-open .sidebar-backdrop { display: block; }
  /* Em mobile a sidebar mostra sempre com texto */
  .sidebar.collapsed-inner .nav-label,
  .sidebar.collapsed-inner .nav-section-label,
  .sidebar.collapsed-inner .sidebar-brand,
  .sidebar.collapsed-inner .nav-indicator,
  .sidebar.collapsed-inner .sidebar-footer-text { display: initial; }
  .sidebar.collapsed-inner .nav-item { justify-content: flex-start; padding: var(--sp-3); }
}

.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--sp-2);
  margin-bottom: var(--sp-6);
  min-height: 44px;
}

.sidebar-close-mobile {
  display: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: var(--ink-2);
  background: var(--bg-hover);
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}
.sidebar-close-mobile:hover { background: var(--bg-active); color: var(--ink); }

@media (max-width: 860px) {
  .sidebar-close-mobile { display: inline-flex; }
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
}

.nav-section-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-4);
  padding: var(--sp-4) var(--sp-3) var(--sp-2);
}

.nav-item {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-3);
  border-radius: var(--r-md);
  color: var(--ink-2);
  font-size: 14.5px;
  font-weight: 500;
  transition: all 0.15s var(--ease);
  cursor: pointer;
  white-space: nowrap;
  text-align: left;
  width: 100%;
}

.nav-item svg { flex-shrink: 0; }

.nav-item:hover { background: var(--bg-hover); color: var(--ink); }
.nav-item.active {
  background: var(--bg-active);
  color: var(--ink);
}
.nav-item.active .nav-indicator {
  opacity: 1;
}

/* Hero CTA — Conversar (grande, dourado, sempre visível no topo da sidebar) */
.nav-hero {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-4);
  border-radius: var(--r-lg);
  background: linear-gradient(135deg,
    hsl(var(--accent-h) var(--accent-s) var(--accent-l) / 0.28),
    hsl(var(--accent-h) var(--accent-s) var(--accent-l) / 0.10));
  border: 1.5px solid hsl(var(--accent-h) var(--accent-s) var(--accent-l) / 0.55);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.2s var(--ease);
  margin-bottom: var(--sp-4);
  flex-shrink: 0; /* NUNCA encolhe — sempre visível */
  animation: hero-pulse 2.6s ease-in-out infinite;
}

.nav-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg,
    transparent 35%,
    hsl(var(--accent-h) var(--accent-s) var(--accent-l) / 0.20) 50%,
    transparent 65%);
  animation: hero-shine 3.5s linear infinite;
  pointer-events: none;
}

.nav-hero:hover {
  background: linear-gradient(135deg,
    hsl(var(--accent-h) var(--accent-s) var(--accent-l) / 0.38),
    hsl(var(--accent-h) var(--accent-s) var(--accent-l) / 0.16));
  border-color: hsl(var(--accent-h) var(--accent-s) var(--accent-l) / 0.75);
  transform: translateY(-1px);
}

.nav-hero.active {
  background: linear-gradient(135deg,
    hsl(var(--accent-h) var(--accent-s) var(--accent-l) / 0.35),
    hsl(var(--accent-h) var(--accent-s) var(--accent-l) / 0.14));
  border-color: var(--accent);
}

.nav-hero-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--r-md);
  background: var(--accent);
  color: var(--accent-ink);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  box-shadow: 0 4px 12px hsl(var(--accent-h) var(--accent-s) var(--accent-l) / 0.35);
}

.nav-hero-body {
  flex: 1;
  min-width: 0;
  position: relative;
  z-index: 1;
}

.nav-hero-label {
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
  line-height: 1.2;
}

.nav-hero-sub {
  font-size: 12px;
  color: var(--ink-3);
  margin-top: 2px;
  letter-spacing: 0.02em;
}

/* Ícone de Bíblia dourado no CTA Conversar */
.nav-hero-bible {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: hsl(var(--accent-h) var(--accent-s) var(--accent-l) / 0.15);
  color: var(--accent);
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  margin-right: 2px;
  transition: all 0.2s var(--ease);
}
.nav-hero:hover .nav-hero-bible {
  background: hsl(var(--accent-h) var(--accent-s) var(--accent-l) / 0.28);
  transform: rotate(-5deg) scale(1.05);
}

/* Sidebar collapsed: hero vira só o ícone quadrado */
.sidebar.collapsed-inner .nav-hero {
  padding: var(--sp-2);
  justify-content: center;
  margin-bottom: var(--sp-3);
}

@keyframes hero-pulse {
  0%, 100% { box-shadow: 0 0 0 0 hsl(var(--accent-h) var(--accent-s) var(--accent-l) / 0.35); }
  50% { box-shadow: 0 0 0 6px hsl(var(--accent-h) var(--accent-s) var(--accent-l) / 0); }
}

@keyframes hero-shine {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}
.nav-indicator {
  margin-left: auto;
  width: 4px;
  height: 20px;
  background: var(--accent);
  border-radius: 4px;
  opacity: 0;
  transition: opacity 0.2s;
}

.sidebar.collapsed-inner .nav-label,
.sidebar.collapsed-inner .nav-section-label,
.sidebar.collapsed-inner .sidebar-brand,
.sidebar.collapsed-inner .nav-indicator,
.sidebar.collapsed-inner .sidebar-footer-text { display: none; }

.sidebar.collapsed-inner .nav-item { justify-content: center; padding: var(--sp-3); }

.sidebar-footer {
  border-top: 1px solid var(--line);
  padding-top: var(--sp-4);
  margin-top: var(--sp-4);
}

/* Card do usuário logado no rodapé da sidebar */
.sidebar-user-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: var(--r-md);
  background: var(--bg-hover);
  cursor: pointer;
  transition: all 0.15s;
  width: 100%;
  text-align: left;
  margin-bottom: 8px;
  border: 1px solid transparent;
}
.sidebar-user-card:hover {
  background: var(--bg-active);
  border-color: var(--line-strong);
}
.suc-avatar {
  position: relative;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 15px;
  overflow: hidden;
  flex-shrink: 0;
}
.suc-avatar img { width: 100%; height: 100%; object-fit: cover; }
.suc-avatar .provider-mini {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 15px;
  height: 15px;
  border-width: 1.5px;
}
.suc-info {
  flex: 1;
  min-width: 0;
}
.suc-name {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.suc-email {
  font-size: 11px;
  color: var(--ink-3);
  margin-top: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.translation-pill {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-3);
  border-radius: var(--r-md);
  background: var(--bg-hover);
  cursor: pointer;
  transition: all 0.15s;
  width: 100%;
  text-align: left;
}

.translation-pill:hover { background: var(--bg-active); }

.translation-pill .pill-badge {
  width: 32px;
  height: 32px;
  border-radius: var(--r-sm);
  background: var(--accent);
  color: var(--accent-ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 13px;
  flex-shrink: 0;
}

.translation-pill .pill-info { flex: 1; min-width: 0; }
.translation-pill .pill-label { font-size: 11px; color: var(--ink-3); letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 2px; }
.translation-pill .pill-name { font-size: 13.5px; font-weight: 500; color: var(--ink); }

/* ========================================
   MAIN AREA
   ======================================== */
.main {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  min-width: 0;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--sp-4) var(--sp-6);
  border-bottom: 1px solid var(--line);
  background: var(--bg);
  z-index: 5;
  gap: var(--sp-4);
}

.topbar-title {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  min-width: 0;
}

.topbar-title h1 {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
  font-variation-settings: 'opsz' 48;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}

/* Torre de Oração — controlada por breakpoint */
.topbar-tower-desktop { display: inline-flex; }
.topbar-tower-mobile { display: none; }

@media (max-width: 700px) {
  .topbar-tower-desktop { display: none; }
  .topbar-tower-mobile {
    display: flex;
    justify-content: center;
    padding: 8px var(--sp-4);
    border-bottom: 1px solid var(--line);
    background: var(--bg);
    z-index: 4;
    position: sticky;
    top: 0;
  }
  /* Botão ocupa toda a largura no mobile, mais destaque */
  .topbar-tower-mobile .tower-topbar-btn {
    width: 100%;
    max-width: 360px;
    justify-content: center;
    padding: 8px 14px !important;
    font-size: 13px !important;
  }
  .topbar-tower-mobile .tower-topbar-live {
    padding: 8px 14px 8px 16px !important;
  }
  .topbar-tower-mobile .tower-topbar-label { font-size: 13px !important; }
  .topbar-tower-mobile .live-tag-sm {
    padding: 4px 9px;
    font-size: 10.5px;
  }
}

.icon-btn {
  width: 38px;
  height: 38px;
  border-radius: var(--r-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-2);
  transition: all 0.15s;
}
.icon-btn:hover { background: var(--bg-hover); color: var(--ink); }
.icon-btn.active { background: var(--accent); color: var(--accent-ink); }

.user-chip-wrap {
  position: relative;
  padding: 4px 12px 4px 4px;
  border: 1.5px solid transparent;
  background: transparent;
  cursor: pointer;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: var(--r-full);
  transition: all 0.15s;
}
.user-chip-wrap:hover {
  background: var(--bg-hover);
  border-color: var(--line-strong);
}

.user-chip-name {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink);
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 640px) {
  .user-chip-name { display: none; }
  .user-chip-wrap { padding: 0; border: none; }
  .user-chip-wrap:hover { background: transparent; border-color: transparent; }
}

.user-chip {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  overflow: hidden;
  border: 1.5px solid var(--line-strong);
  background: var(--card);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s;
  flex-shrink: 0;
}
.user-chip-wrap:hover .user-chip { border-color: var(--accent); }
.user-chip img { width: 100%; height: 100%; object-fit: cover; }
.user-chip span {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 15px;
  color: var(--accent-strong);
}

/* Provider badge no canto do avatar (mini) */
.user-chip-wrap .provider-mini {
  position: absolute;
  bottom: -2px;
  right: -2px;
}

/* Mobile: mostra ícone + de nova conversa em vez do botão longo */
/* Nova conversa: texto completo no desktop, apenas "+" no mobile */
.topbar-new-chat-btn {
  padding: 7px 12px;
  font-size: 13px;
  gap: 5px;
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}
.topbar-new-chat-btn .tnc-short { display: none; }

@media (max-width: 700px) {
  /* No mobile: só o "+" (esconde AMBOS os textos) */
  .topbar-new-chat-btn .tnc-full,
  .topbar-new-chat-btn .tnc-short { display: none; }
  .topbar-new-chat-btn {
    width: 34px;
    height: 34px;
    padding: 0;
    justify-content: center;
    gap: 0;
    border-radius: 50%;
    background: hsl(var(--accent-h) var(--accent-s) var(--accent-l) / 0.12) !important;
    color: var(--accent-strong) !important;
    border: 1px solid hsl(var(--accent-h) var(--accent-s) var(--accent-l) / 0.28) !important;
  }
  .topbar-new-chat-btn:hover {
    background: hsl(var(--accent-h) var(--accent-s) var(--accent-l) / 0.22) !important;
  }
}

.main-scroll {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  position: relative;
}

/* ========================================
   CHAT
   ======================================== */
/* Layout tipo ChatGPT: messages rolam, composer fica fixo no bottom */
.chat-layout {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  background: var(--bg);
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  min-height: 0; /* CRITICAL: permite flex child rolar */
  scroll-behavior: smooth;
}

.chat {
  max-width: 1240px;
  margin: 0 auto;
  padding: var(--sp-6) var(--sp-6) var(--sp-8);
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

/* Mensagens do chat continuam com largura confortável de leitura */
.chat .msg,
.chat .verse-card {
  max-width: 780px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.chat-empty {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--sp-8) 0;
}

.chat-empty-header {
  text-align: center;
  margin-bottom: var(--sp-10);
}

.chat-empty h2 {
  font-family: var(--font-serif);
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: var(--sp-4);
  font-variation-settings: 'opsz' 96;
}

.chat-empty h2 em {
  font-family: var(--font-quote);
  color: var(--accent-strong);
}

.chat-empty p {
  color: var(--ink-3);
  font-size: 16px;
}

.quick-starts {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--sp-2);
  max-width: 1200px;
  margin: 0 auto;
}

/* Em laptops médios, 4 colunas */
@media (max-width: 1180px) {
  .quick-starts { grid-template-columns: repeat(4, 1fr); max-width: 960px; }
}

/* Em telas menores, 3 colunas */
@media (max-width: 900px) {
  .quick-starts { grid-template-columns: repeat(3, 1fr); max-width: 720px; }
}

@media (max-width: 780px) {
  .quick-starts { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .quick-starts { grid-template-columns: 1fr 1fr; gap: 6px; }
}

.quick-start {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-3);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  color: var(--ink);
  font-size: 13px;
  text-align: left;
  transition: all 0.15s var(--ease-out);
  cursor: pointer;
  min-height: 52px;
}

.quick-start:hover {
  border-color: var(--accent);
  background: var(--card-warm);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.quick-start .qs-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--bg-hover);
  color: var(--ink-2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.15s;
}

.quick-start .qs-label {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 500;
}

/* Tons de cor por categoria de dor */
.qs-tone-amber:hover .qs-icon { background: hsl(38 80% 55% / 0.18); color: hsl(38 80% 50%); }
.qs-tone-amber:hover { border-color: hsl(38 80% 55% / 0.45); }

.qs-tone-rose:hover .qs-icon { background: hsl(345 70% 60% / 0.18); color: hsl(345 70% 55%); }
.qs-tone-rose:hover { border-color: hsl(345 70% 60% / 0.45); }

.qs-tone-blue:hover .qs-icon { background: hsl(210 65% 55% / 0.18); color: hsl(210 65% 55%); }
.qs-tone-blue:hover { border-color: hsl(210 65% 55% / 0.45); }

.qs-tone-green:hover .qs-icon { background: hsl(140 45% 45% / 0.18); color: hsl(140 45% 50%); }
.qs-tone-green:hover { border-color: hsl(140 45% 45% / 0.45); }

.qs-tone-red:hover .qs-icon { background: hsl(0 65% 55% / 0.18); color: hsl(0 65% 55%); }
.qs-tone-red:hover { border-color: hsl(0 65% 55% / 0.45); }

.qs-tone-neutral:hover .qs-icon { background: var(--bg-active); color: var(--ink); }
.qs-tone-neutral:hover { border-color: var(--line-strong); }

.quick-starts-hint {
  max-width: 720px;
  margin: var(--sp-4) auto 0;
  padding: 10px 14px;
  background: hsl(var(--accent-h) var(--accent-s) var(--accent-l) / 0.08);
  border: 1px dashed hsl(var(--accent-h) var(--accent-s) var(--accent-l) / 0.30);
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--ink-3);
  font-size: 12.5px;
  line-height: 1.4;
  text-align: center;
}
.quick-starts-hint svg { color: var(--accent-strong); flex-shrink: 0; }

/* Bolhas de chat */
.msg {
  display: flex;
  gap: var(--sp-3);
  margin-bottom: var(--sp-6);
  animation: fadeUp 0.4s var(--ease-out);
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.msg-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
}

.msg-avatar.user {
  background: var(--bg-elev-2);
  border: 1px solid var(--line);
  color: var(--ink-2);
}

.msg-avatar.bot {
  background: var(--accent);
  color: var(--accent-ink);
}

.msg-body { flex: 1; min-width: 0; }
.msg-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: var(--sp-1);
}
.msg-content {
  color: var(--ink);
  font-size: 15.5px;
  line-height: 1.65;
}

.msg.user .msg-content { color: var(--ink-2); }

.msg-actions {
  display: flex;
  gap: var(--sp-1);
  margin-top: var(--sp-2);
  opacity: 0;
  transition: opacity 0.2s;
}
.msg:hover .msg-actions { opacity: 1; }

.msg-action-btn {
  padding: 4px 8px;
  border-radius: var(--r-sm);
  color: var(--ink-3);
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.msg-action-btn:hover { background: var(--bg-hover); color: var(--ink); }

/* Categoria de apoio */
.support-category {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-2) var(--sp-3);
  border-radius: var(--r-full);
  background: hsl(var(--accent-h) var(--accent-s) var(--accent-l) / 0.12);
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin: var(--sp-3) 0 var(--sp-4);
}

/* Cards de versículo */
.verse-card {
  background: var(--card-warm);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: var(--r-md);
  padding: var(--sp-5);
  margin: var(--sp-3) 0;
  transition: all 0.2s;
}

.verse-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-sm);
}

.verse-text {
  font-family: var(--font-quote);
  font-size: 19px;
  line-height: 1.5;
  color: var(--ink);
  margin-bottom: var(--sp-3);
  font-style: italic;
}

.verse-text::before { content: '“'; color: var(--accent); font-size: 28px; line-height: 0; vertical-align: -8px; margin-right: 2px; }
.verse-text::after { content: '”'; color: var(--accent); font-size: 28px; line-height: 0; vertical-align: -8px; margin-left: 2px; }

.verse-ref {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  flex-wrap: wrap;
}

.verse-ref-info {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: 13px;
  color: var(--ink-3);
}

.verse-ref-info strong {
  color: var(--ink);
  font-weight: 600;
}

.verse-ref-info .badge {
  padding: 2px 8px;
  background: var(--bg-elev-2);
  border: 1px solid var(--line);
  border-radius: var(--r-full);
  font-size: 11px;
  color: var(--ink-3);
  font-weight: 500;
}

.verse-actions {
  display: flex;
  gap: 4px;
}

.verse-action {
  padding: 6px 10px;
  border-radius: var(--r-sm);
  color: var(--ink-3);
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.15s;
}

.verse-action:hover { background: var(--bg-hover); color: var(--accent-strong); }
.verse-action.saved { color: var(--accent-strong); }

.verse-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--accent-strong);
  font-weight: 500;
  font-size: 13px;
  padding: 6px 10px;
  border-radius: var(--r-sm);
}
.verse-link:hover { background: hsl(var(--accent-h) var(--accent-s) var(--accent-l) / 0.10); }

/* Composer: fixo no bottom do chat-layout (estilo ChatGPT) */
.composer-wrap {
  flex-shrink: 0;
  padding: var(--sp-3) var(--sp-6) var(--sp-5);
  background: var(--bg);
  position: relative;
}
.composer-wrap::before {
  content: '';
  position: absolute;
  top: -30px;
  left: 0;
  right: 0;
  height: 30px;
  background: linear-gradient(180deg, transparent, var(--bg));
  pointer-events: none;
}

.composer {
  max-width: 1240px;
  margin: 0 auto;
  background: var(--bg-input);
  border: 1.5px solid var(--line-strong);
  border-radius: var(--r-xl);
  padding: var(--sp-3);
  display: flex;
  align-items: flex-end;
  gap: var(--sp-2);
  box-shadow: var(--shadow-md);
  transition: border-color 0.2s;
}

.composer:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px hsl(var(--accent-h) var(--accent-s) var(--accent-l) / 0.15), var(--shadow-md);
}

.composer textarea {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  resize: none;
  padding: var(--sp-2) var(--sp-3);
  font-size: 15.5px;
  line-height: 1.5;
  color: var(--ink);
  max-height: 200px;
  min-height: 24px;
  font-family: inherit;
}

.composer textarea::placeholder { color: var(--ink-4); }

.composer-actions { display: flex; align-items: center; gap: 4px; }

.send-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.send-btn:hover { background: var(--accent-strong); color: white; }
.send-btn:disabled { opacity: 0.3; cursor: not-allowed; background: var(--ink-4); color: var(--bg); }

.composer-note {
  max-width: 780px;
  margin: var(--sp-2) auto 0;
  font-size: 11px;
  color: var(--ink-4);
  text-align: center;
}

/* Typing indicator */
.typing {
  display: inline-flex;
  gap: 4px;
  padding: var(--sp-3) 0;
}
.typing span {
  width: 7px;
  height: 7px;
  background: var(--ink-4);
  border-radius: 50%;
  animation: blink 1.4s infinite;
}
.typing span:nth-child(2) { animation-delay: 0.2s; }
.typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes blink { 0%, 60%, 100% { opacity: 0.3; } 30% { opacity: 1; } }

/* ========================================
   LEITOR LATERAL (Reader)
   ======================================== */
.reader-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  z-index: 40;
  animation: fadeIn 0.2s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.reader-panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(560px, 92vw);
  background: var(--bg-elev);
  border-left: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  z-index: 50;
  display: flex;
  flex-direction: column;
  animation: slideIn 0.3s var(--ease-out);
}
@keyframes slideIn { from { transform: translateX(100%); } to { transform: translateX(0); } }

.reader-header {
  padding: var(--sp-5) var(--sp-6);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
}

.reader-header .reader-title {
  display: flex;
  flex-direction: column;
}
.reader-header .reader-book {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 500;
  color: var(--ink);
}
.reader-header .reader-meta {
  font-size: 12px;
  color: var(--ink-3);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.reader-body {
  flex: 1;
  overflow-y: auto;
  padding: var(--sp-6) var(--sp-8);
}

.reader-chapter-heading {
  font-family: var(--font-serif);
  font-size: 48px;
  font-weight: 300;
  color: var(--accent-strong);
  margin-bottom: var(--sp-6);
  text-align: center;
  font-variation-settings: 'opsz' 96;
}

.reader-verse {
  margin-bottom: var(--sp-3);
  font-family: var(--font-quote);
  font-size: 19px;
  line-height: 1.7;
  color: var(--ink);
  transition: background 0.3s;
  padding: var(--sp-2) var(--sp-3);
  border-radius: var(--r-sm);
  margin-left: -12px;
}

.reader-verse:hover { background: var(--bg-hover); }
.reader-verse.highlighted {
  background: hsl(var(--accent-h) var(--accent-s) var(--accent-l) / 0.15);
}

.reader-verse .v-num {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  color: var(--accent-strong);
  vertical-align: super;
  margin-right: 6px;
  font-style: normal;
}

.reader-footer {
  border-top: 1px solid var(--line);
  padding: var(--sp-4) var(--sp-6);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--sp-3);
}

/* ========================================
   MINHA BÍBLIA
   ======================================== */
.page {
  max-width: 1080px;
  margin: 0 auto;
  padding: var(--sp-8) var(--sp-6) var(--sp-16);
}

.page-header {
  margin-bottom: var(--sp-8);
}

.page-header h2 {
  font-family: var(--font-serif);
  font-size: 40px;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: var(--sp-2);
  font-variation-settings: 'opsz' 96;
}

.page-header p {
  color: var(--ink-3);
  font-size: 16px;
  max-width: 640px;
}

/* ═══════════════════════════════════════
   MINHA BÍBLIA v2 — layout editorial
   ═══════════════════════════════════════ */

.bible-page { max-width: 1280px; }

.bible-page-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: var(--sp-6);
  flex-wrap: wrap;
}

.bible-testament-toggle {
  display: flex;
  gap: var(--sp-2);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-full);
  padding: 4px;
}

.bible-testament-toggle button {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 8px 18px;
  border-radius: var(--r-full);
  color: var(--ink-3);
  transition: all 0.2s;
  min-width: 130px;
}

.bible-testament-toggle .tt-num {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 500;
  line-height: 1;
  color: var(--ink-2);
}

.bible-testament-toggle .tt-label {
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
}

.bible-testament-toggle button:hover { color: var(--ink); }
.bible-testament-toggle button:hover .tt-num { color: var(--ink); }

.bible-testament-toggle button.active {
  background: var(--accent);
  color: var(--accent-ink);
}
.bible-testament-toggle button.active .tt-num,
.bible-testament-toggle button.active .tt-label {
  color: var(--accent-ink);
}

.bible-layout-v2 {
  display: grid;
  grid-template-columns: 1fr 460px;
  gap: var(--sp-6);
  align-items: start;
}

/* ─── Painel esquerdo: busca + grupos + livros ─── */
.bible-books-panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: var(--sp-5);
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}

.bible-search {
  position: relative;
  display: flex;
  align-items: center;
}
.bible-search > svg:first-child {
  position: absolute;
  left: 14px;
  color: var(--ink-3);
  pointer-events: none;
}
.bible-search input {
  width: 100%;
  padding: 12px 40px 12px 40px;
  background: var(--bg-input);
  border: 1.5px solid var(--line);
  border-radius: var(--r-full);
  color: var(--ink);
  font-size: 14px;
  transition: all 0.15s;
}
.bible-search input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px hsl(var(--accent-h) var(--accent-s) var(--accent-l) / 0.15);
}
.bible-search-clear {
  position: absolute;
  right: 8px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  color: var(--ink-3);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}
.bible-search-clear:hover { background: var(--bg-hover); color: var(--ink); }

.bible-groups {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.bible-group-chip {
  padding: 5px 11px;
  border-radius: var(--r-full);
  background: var(--bg-hover);
  border: 1px solid transparent;
  color: var(--ink-2);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: all 0.15s;
}
.bible-group-chip:hover { background: var(--bg-active); color: var(--ink); }
.bible-group-chip.active {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: var(--accent);
}

.bible-books-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-3);
}

.bible-books-col {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.bible-book-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 12px;
  border-radius: var(--r-sm);
  color: var(--ink-2);
  font-size: 14px;
  transition: all 0.12s;
  width: 100%;
  text-align: left;
  min-height: 38px;
}

.bible-book-row:hover {
  background: var(--bg-hover);
  color: var(--ink);
}

.bible-book-row.active {
  background: linear-gradient(90deg,
    hsl(var(--accent-h) var(--accent-s) var(--accent-l) / 0.18),
    hsl(var(--accent-h) var(--accent-s) var(--accent-l) / 0.06));
  color: var(--ink);
  font-weight: 500;
  border-left: 3px solid var(--accent);
  padding-left: 9px;
}

.book-row-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.book-row-count {
  font-size: 11px;
  color: var(--ink-4);
  font-variant-numeric: tabular-nums;
  padding-left: 8px;
}
.bible-book-row.active .book-row-count {
  color: var(--accent-strong);
  font-weight: 600;
}

.bible-empty {
  padding: var(--sp-8) var(--sp-4);
  text-align: center;
  color: var(--ink-3);
  font-size: 14px;
}
.bible-empty svg { color: var(--ink-4); margin-bottom: var(--sp-3); }
.bible-empty strong { color: var(--ink); }

/* ─── Painel direito: hero do livro + prévia + capítulos ─── */
.bible-reader-panel {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  position: sticky;
  top: 0;
}

.bible-hero {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: var(--sp-6);
  position: relative;
  overflow: hidden;
}
.bible-hero::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -20%;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  opacity: 0.12;
  pointer-events: none;
  transition: background 0.3s;
}
.bible-hero.tone-amber::before  { background: radial-gradient(circle, hsl(38 80% 55%), transparent 65%); }
.bible-hero.tone-rose::before   { background: radial-gradient(circle, hsl(345 70% 60%), transparent 65%); }
.bible-hero.tone-blue::before   { background: radial-gradient(circle, hsl(210 65% 55%), transparent 65%); }
.bible-hero.tone-green::before  { background: radial-gradient(circle, hsl(140 45% 45%), transparent 65%); }
.bible-hero.tone-purple::before { background: radial-gradient(circle, hsl(280 50% 55%), transparent 65%); }

.bible-hero-eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-strong);
  padding: 3px 10px;
  background: hsl(var(--accent-h) var(--accent-s) var(--accent-l) / 0.12);
  border-radius: var(--r-full);
  margin-bottom: var(--sp-3);
  position: relative;
  z-index: 1;
}

.bible-hero-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--sp-3);
  margin-bottom: var(--sp-5);
  position: relative;
  z-index: 1;
}
.bible-hero-title h3 {
  font-family: var(--font-serif);
  font-size: 44px;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1;
  font-variation-settings: 'opsz' 96;
}
.bible-hero-chapters {
  font-size: 12px;
  color: var(--ink-3);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 500;
  flex-shrink: 0;
}

.bible-hero-meta {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: var(--sp-3);
  padding-top: var(--sp-4);
  border-top: 1px dashed var(--line);
  position: relative;
  z-index: 1;
}

.bible-hero-meta-item .bhm-label {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-4);
  font-weight: 600;
  margin-bottom: 3px;
}
.bible-hero-meta-item .bhm-value {
  font-family: var(--font-serif);
  font-size: 14px;
  color: var(--ink);
  font-weight: 500;
  line-height: 1.2;
}

.bible-preview {
  background: var(--card-warm);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--sp-5);
  position: relative;
}
.bible-preview-label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-strong);
  margin-bottom: 10px;
}
.bible-preview-text {
  font-family: var(--font-quote);
  font-style: italic;
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  margin-bottom: var(--sp-3);
}
.bible-preview-text::before { content: '"'; color: var(--accent); font-size: 22px; line-height: 0; vertical-align: -6px; margin-right: 2px; }
.bible-preview-text::after { content: '"'; color: var(--accent); font-size: 22px; line-height: 0; vertical-align: -6px; margin-left: 2px; }
.bible-preview-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--accent-strong);
  font-size: 13px;
  font-weight: 600;
  padding: 4px 0;
}
.bible-preview-link:hover { text-decoration: underline; }

.bible-chapters-section {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--sp-5);
}

.bible-chapters-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: var(--sp-4);
}
.bible-chapters-header h4 {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 500;
  color: var(--ink);
}
.bible-chapters-header span {
  font-size: 12px;
  color: var(--ink-3);
}

.bible-chapter-grid-v2 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(42px, 1fr));
  gap: 6px;
}

.bible-chapter-num-v2 {
  aspect-ratio: 1;
  border-radius: 8px;
  background: var(--bg-hover);
  border: 1px solid transparent;
  color: var(--ink-2);
  font-family: var(--font-serif);
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.12s;
  min-height: 40px;
}
.bible-chapter-num-v2:hover {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: var(--accent);
  transform: scale(1.05);
}

/* Responsivo Bíblia */
@media (max-width: 1100px) {
  .bible-layout-v2 { grid-template-columns: 1fr; gap: var(--sp-4); }
  .bible-reader-panel { position: static; order: -1; }
  .bible-hero-title h3 { font-size: 36px; }
}

@media (max-width: 640px) {
  .bible-page-header { flex-direction: column; align-items: stretch; }
  .bible-testament-toggle { width: 100%; }
  .bible-testament-toggle button { flex: 1; min-width: 0; padding: 8px 10px; }
  .bible-books-grid { grid-template-columns: 1fr; }
  .bible-hero { padding: var(--sp-4); }
  .bible-hero-title h3 { font-size: 30px; }
  .bible-hero-meta { grid-template-columns: 1fr; gap: var(--sp-2); }
  .bible-hero-meta-item { display: flex; justify-content: space-between; align-items: baseline; gap: var(--sp-3); }
  .bible-hero-meta-item .bhm-label { margin-bottom: 0; }
  .bible-books-panel { padding: var(--sp-4); }
  .bible-chapters-section { padding: var(--sp-4); }
  .bible-chapter-grid-v2 { grid-template-columns: repeat(auto-fill, minmax(38px, 1fr)); }
}

/* ========================================
   PLANO DE LEITURA
   ======================================== */
.plan-hero {
  background: linear-gradient(135deg, var(--card-warm), var(--card));
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: var(--sp-8);
  margin-bottom: var(--sp-8);
  position: relative;
  overflow: hidden;
}

.plan-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 60%;
  height: 200%;
  background: radial-gradient(ellipse, hsl(var(--accent-h) var(--accent-s) var(--accent-l) / 0.12), transparent 70%);
  pointer-events: none;
}

.plan-hero-inner { position: relative; }

.plan-hero h3 {
  font-family: var(--font-serif);
  font-size: 32px;
  font-weight: 400;
  color: var(--ink);
  margin-bottom: var(--sp-2);
  font-variation-settings: 'opsz' 96;
}

.plan-progress-bar {
  height: 6px;
  background: var(--bg-hover);
  border-radius: var(--r-full);
  overflow: hidden;
  margin-top: var(--sp-5);
}

.plan-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-strong));
  border-radius: var(--r-full);
  transition: width 0.5s var(--ease-out);
}

.plan-days {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-5);
}

@media (max-width: 860px) { .plan-days { grid-template-columns: 1fr; } }

.plan-day {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--sp-6);
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  transition: all 0.2s;
}

.plan-day:hover { border-color: var(--line-strong); box-shadow: var(--shadow-sm); }

.plan-day.completed {
  border-color: var(--accent);
  background: linear-gradient(180deg, hsl(var(--accent-h) var(--accent-s) var(--accent-l) / 0.05), var(--card));
}

.plan-day-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.plan-day-num {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.plan-day-check {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid var(--line-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  color: transparent;
  transition: all 0.2s;
}
.plan-day.completed .plan-day-check { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }

.plan-day h4 {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.plan-day p { color: var(--ink-3); font-size: 14px; line-height: 1.55; }

.plan-day-refs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: var(--sp-2);
}

.plan-ref-chip {
  padding: 4px 10px;
  background: var(--bg-hover);
  border-radius: var(--r-full);
  font-size: 12px;
  color: var(--ink-2);
  border: 1px solid var(--line);
}

/* ========================================
   MURAL
   ======================================== */
.wall-tabs {
  display: flex;
  gap: var(--sp-1);
  border-bottom: 1px solid var(--line);
  margin-bottom: var(--sp-6);
  overflow-x: auto;
  scrollbar-width: none;
}
.wall-tabs::-webkit-scrollbar { display: none; }

/* ═══════════════════════════════════════════
   WALL V2 — Mural da Vida redesenhado
   ═══════════════════════════════════════════ */
.wall-page { max-width: 1280px; }

.wall-hero {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--sp-6);
  align-items: end;
  padding: var(--sp-6);
  background: linear-gradient(135deg, var(--card-warm), var(--card));
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  margin-bottom: var(--sp-5);
  position: relative;
  overflow: hidden;
}
.wall-hero::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -10%;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, hsl(var(--accent-h) var(--accent-s) var(--accent-l) / 0.12), transparent 65%);
  pointer-events: none;
}
.wall-hero-main { position: relative; z-index: 1; }
.wall-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: hsl(var(--accent-h) var(--accent-s) var(--accent-l) / 0.12);
  color: var(--accent-strong);
  border-radius: var(--r-full);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: var(--sp-3);
}
.wall-hero-main h2 {
  font-family: var(--font-serif);
  font-size: 40px;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: var(--sp-2);
  font-variation-settings: 'opsz' 96;
}
.wall-hero-main p {
  color: var(--ink-3);
  font-size: 15px;
  line-height: 1.55;
  max-width: 560px;
}

.wall-hero-stats {
  display: grid;
  grid-template-columns: repeat(2, auto);
  gap: var(--sp-3);
  position: relative;
  z-index: 1;
}
.wall-stat {
  padding: 12px 18px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  text-align: center;
  min-width: 110px;
}
.wall-stat .ws-value {
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 500;
  color: var(--ink);
  line-height: 1;
}
.wall-stat .ws-label {
  font-size: 10.5px;
  color: var(--ink-3);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 5px;
}

/* Toolbar */
.wall-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--sp-4);
  margin-bottom: var(--sp-5);
  flex-wrap: wrap;
}
.wall-tabs-v2 {
  display: flex;
  gap: 4px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-full);
  padding: 4px;
}
.wall-tab-v2 {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: var(--r-full);
  color: var(--ink-3);
  font-size: 13.5px;
  font-weight: 500;
  transition: all 0.2s;
}
.wall-tab-v2:hover { color: var(--ink); }
.wall-tab-v2.active {
  background: var(--accent);
  color: var(--accent-ink);
}
.wt-count {
  padding: 1px 7px;
  background: rgba(0,0,0,0.15);
  border-radius: var(--r-full);
  font-size: 11px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.wall-tab-v2:not(.active) .wt-count {
  background: var(--bg-hover);
}

.wall-search {
  position: relative;
  display: flex;
  align-items: center;
  min-width: 280px;
  flex: 1;
  max-width: 380px;
}
.wall-search > svg:first-child {
  position: absolute;
  left: 12px;
  color: var(--ink-3);
  pointer-events: none;
}
.wall-search input {
  width: 100%;
  padding: 9px 34px 9px 36px;
  background: var(--bg-input);
  border: 1.5px solid var(--line);
  border-radius: var(--r-full);
  color: var(--ink);
  font-size: 13.5px;
  font-family: inherit;
  transition: all 0.15s;
}
.wall-search input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px hsl(var(--accent-h) var(--accent-s) var(--accent-l) / 0.15);
}
.ws-clear {
  position: absolute;
  right: 6px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  color: var(--ink-3);
  display: flex;
  align-items: center;
  justify-content: center;
}
.ws-clear:hover { background: var(--bg-hover); color: var(--ink); }

/* Grid masonry */
.wall-grid-v2 {
  columns: 3;
  column-gap: var(--sp-4);
}
@media (max-width: 1100px) { .wall-grid-v2 { columns: 2; } }
@media (max-width: 640px)  { .wall-grid-v2 { columns: 1; } }

.wall-card-v2 {
  break-inside: avoid;
  margin-bottom: var(--sp-4);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--sp-5);
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  transition: all 0.2s;
  position: relative;
  overflow: hidden;
}
.wall-card-v2::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  border-radius: var(--r-lg) var(--r-lg) 0 0;
}
.wall-card-v2.tone-amber::before  { background: hsl(38 80% 55%); }
.wall-card-v2.tone-rose::before   { background: hsl(345 70% 60%); }
.wall-card-v2.tone-blue::before   { background: hsl(210 65% 55%); }
.wall-card-v2.tone-green::before  { background: hsl(140 45% 50%); }
.wall-card-v2.tone-purple::before { background: hsl(280 50% 55%); }

.wall-card-v2:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.wall-card-quote {
  font-family: var(--font-quote);
  font-style: italic;
  font-size: 17.5px;
  line-height: 1.5;
  color: var(--ink);
  position: relative;
  padding-left: var(--sp-2);
}
.wall-card-mark {
  position: absolute;
  left: -8px;
  top: -14px;
  font-family: var(--font-quote);
  font-size: 50px;
  color: var(--accent);
  opacity: 0.35;
  line-height: 1;
}

.wall-card-ref-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.wall-card-ref {
  font-size: 13.5px;
  color: var(--accent-strong);
  font-weight: 600;
}
.wall-card-badge {
  padding: 2px 8px;
  background: var(--bg-hover);
  border-radius: var(--r-full);
  font-size: 10px;
  color: var(--ink-3);
  font-weight: 700;
  letter-spacing: 0.06em;
}

.wall-card-note {
  border-top: 1px dashed var(--line);
  padding-top: var(--sp-3);
}
.wcn-label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10.5px;
  color: var(--ink-3);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.wcn-text {
  color: var(--ink-2);
  font-size: 13.5px;
  line-height: 1.55;
}

.wall-note-editor {
  border-top: 1px dashed var(--line);
  padding-top: var(--sp-3);
}
.wall-note-editor textarea {
  width: 100%;
  min-height: 84px;
  padding: 10px 12px;
  background: var(--bg-input);
  border: 1.5px solid var(--line);
  border-radius: var(--r-sm);
  color: var(--ink);
  font-family: inherit;
  font-size: 13.5px;
  resize: vertical;
}
.wall-note-editor textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.wne-actions {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
  margin-top: 8px;
}

.wall-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--line);
  padding-top: var(--sp-3);
  margin-top: auto;
}
.wcf-date {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: var(--ink-4);
  letter-spacing: 0.04em;
}
.wcf-actions { display: flex; gap: 4px; }
.wcf-btn {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  color: var(--ink-3);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}
.wcf-btn:hover { background: var(--bg-hover); color: var(--ink); }
.wcf-btn-danger:hover { background: hsl(0 60% 55% / 0.15); color: var(--danger); }

.wall-empty-v2 {
  text-align: center;
  padding: var(--sp-16) var(--sp-6);
  background: var(--card);
  border: 1px dashed var(--line-strong);
  border-radius: var(--r-xl);
}
.wall-empty-v2 .we-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--bg-hover);
  color: var(--ink-4);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--sp-4);
}
.wall-empty-v2 h3 {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 6px;
}
.wall-empty-v2 p { color: var(--ink-3); font-size: 14px; max-width: 400px; margin: 0 auto; }

@media (max-width: 780px) {
  .wall-hero { grid-template-columns: 1fr; }
  .wall-hero-stats { grid-template-columns: repeat(4, 1fr); }
  .wall-stat { min-width: 0; padding: 10px 8px; }
  .wall-stat .ws-value { font-size: 22px; }
  .wall-toolbar { flex-direction: column; align-items: stretch; }
  .wall-search { max-width: none; }
}
@media (max-width: 480px) {
  .wall-hero-main h2 { font-size: 28px; }
  .wall-hero-stats { grid-template-columns: repeat(2, 1fr); }
}

/* ═══════════════════════════════════════════
   EMERGENCY V2 — Apoio Emocional redesenhado
   ═══════════════════════════════════════════ */
.emergency-page { max-width: 1280px; }

.emergency-hero {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: var(--sp-6);
  padding: var(--sp-8);
  background: linear-gradient(135deg, var(--card-warm), var(--card));
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  margin-bottom: var(--sp-6);
  position: relative;
  overflow: hidden;
}
.emergency-hero::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, hsl(var(--accent-h) var(--accent-s) var(--accent-l) / 0.14), transparent 60%);
  pointer-events: none;
}
.emergency-hero-content { position: relative; z-index: 1; }
.emergency-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  background: hsl(var(--accent-h) var(--accent-s) var(--accent-l) / 0.15);
  color: var(--accent-strong);
  border-radius: var(--r-full);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: var(--sp-4);
}
.emergency-hero-title {
  font-family: var(--font-serif);
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1.1;
  margin-bottom: var(--sp-4);
  font-variation-settings: 'opsz' 96;
}
.emergency-hero-title em {
  font-family: var(--font-quote);
  color: var(--accent-strong);
  font-style: italic;
}
.emergency-hero-desc {
  color: var(--ink-2);
  font-size: 15.5px;
  line-height: 1.6;
  max-width: 500px;
}

.emergency-hero-verse {
  padding: var(--sp-5);
  background: var(--bg-elev);
  border-left: 3px solid var(--accent);
  border-radius: var(--r-md);
  position: relative;
  z-index: 1;
  align-self: center;
}
.ehv-quote {
  font-family: var(--font-quote);
  font-style: italic;
  font-size: 18px;
  line-height: 1.5;
  color: var(--ink);
  margin-bottom: 8px;
}
.ehv-ref { font-size: 13px; color: var(--accent-strong); font-weight: 600; }

.emergency-triggered {
  background: linear-gradient(135deg, hsl(0 60% 55% / 0.14), hsl(0 60% 55% / 0.04));
  border: 1px solid hsl(0 60% 55% / 0.35);
  border-radius: var(--r-lg);
  padding: var(--sp-5);
  display: flex;
  gap: var(--sp-4);
  align-items: flex-start;
  margin-bottom: var(--sp-5);
}
.emergency-triggered .et-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: hsl(0 60% 55% / 0.20);
  color: var(--danger);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.et-title {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 4px;
}
.et-desc { color: var(--ink-2); font-size: 14px; line-height: 1.55; }

/* Seções agrupadas */
.emergency-section { margin-bottom: var(--sp-8); }

.emergency-section-header {
  margin-bottom: var(--sp-5);
}
.es-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  background: var(--bg-hover);
  color: var(--ink-2);
  border-radius: var(--r-full);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.es-badge.urgent {
  background: hsl(0 60% 55% / 0.15);
  color: var(--danger);
}
.emergency-section-header h3 {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.01em;
  margin-bottom: 4px;
}
.emergency-section-header p { color: var(--ink-3); font-size: 14px; }

.emergency-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-4);
}
.emergency-cards-urgent { grid-template-columns: repeat(3, 1fr); }

@media (max-width: 900px) { .emergency-cards, .emergency-cards-urgent { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .emergency-cards, .emergency-cards-urgent { grid-template-columns: 1fr; } }

.channel-card-v2 {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--sp-5);
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  transition: all 0.2s;
}
.channel-card-v2:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.channel-card-v2.urgent {
  border-color: hsl(0 60% 55% / 0.30);
}
.channel-card-v2.urgent:hover {
  border-color: hsl(0 60% 55% / 0.55);
}
.channel-urgent-stripe {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, hsl(0 60% 55%), hsl(0 60% 45%));
  border-radius: var(--r-lg) var(--r-lg) 0 0;
}
.channel-card-name {
  font-family: var(--font-serif);
  font-size: 19px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.channel-card-desc {
  color: var(--ink-3);
  font-size: 13.5px;
  line-height: 1.55;
  flex: 1;
}
.channel-card-contacts {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 4px;
}
.channel-pill-v2 {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: var(--r-sm);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  align-self: flex-start;
  max-width: 100%;
}
.channel-pill-v2 svg { flex-shrink: 0; color: var(--ink-3); }
.channel-pill-v2 span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.channel-pill-v2.kind-phone {
  background: hsl(140 45% 50% / 0.12);
  color: hsl(140 45% 45%);
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.channel-pill-v2.kind-phone svg { color: hsl(140 45% 45%); }
.channel-pill-v2.kind-link {
  background: hsl(210 65% 55% / 0.12);
  color: hsl(210 65% 55%);
}
.channel-pill-v2.kind-link svg { color: hsl(210 65% 55%); }
.channel-pill-v2.kind-address {
  background: var(--bg-hover);
  font-size: 12.5px;
}
.channel-pill-v2.kind-tag {
  background: hsl(var(--accent-h) var(--accent-s) var(--accent-l) / 0.12);
  color: var(--accent-strong);
}
.channel-pill-v2.kind-tag svg { color: var(--accent-strong); }

@media (max-width: 780px) {
  .emergency-hero { grid-template-columns: 1fr; padding: var(--sp-5); }
}

/* ═══════════════════════════════════════════
   SETTINGS V2 — Configurações redesenhadas
   ═══════════════════════════════════════════ */
.settings-page { max-width: 1200px; }

.settings-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: var(--sp-6);
  align-items: start;
}

.settings-nav {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: var(--sp-3);
  display: flex;
  flex-direction: column;
  gap: 2px;
  position: sticky;
  top: 0;
}

.settings-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--r-md);
  color: var(--ink-2);
  text-align: left;
  transition: all 0.15s;
  width: 100%;
  cursor: pointer;
}
.settings-nav-item:hover { background: var(--bg-hover); color: var(--ink); }

.settings-nav-item.active {
  background: linear-gradient(135deg,
    hsl(var(--accent-h) var(--accent-s) var(--accent-l) / 0.18),
    hsl(var(--accent-h) var(--accent-s) var(--accent-l) / 0.06));
  color: var(--ink);
}
.settings-nav-item.active .snav-icon {
  background: var(--accent);
  color: var(--accent-ink);
}
.settings-nav-item.active .snav-chev {
  color: var(--accent-strong);
}

.snav-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--bg-hover);
  color: var(--ink-2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.15s;
}

.snav-body { flex: 1; min-width: 0; }
.snav-label {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.2;
}
.snav-desc {
  font-size: 11.5px;
  color: var(--ink-3);
  margin-top: 2px;
  line-height: 1.2;
}
.snav-chev {
  color: var(--ink-4);
  flex-shrink: 0;
  transition: transform 0.15s;
}
.settings-nav-item:hover .snav-chev { transform: translateX(2px); }

/* Painel de conteúdo */
.settings-content { min-height: 400px; }
.settings-panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: var(--sp-6);
}
.settings-panel-header { margin-bottom: var(--sp-5); }
.settings-panel-header h3 {
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.01em;
  margin-bottom: 4px;
}
.settings-panel-header p { color: var(--ink-3); font-size: 14px; }

.setting-row-v2 {
  padding: var(--sp-4) 0;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--sp-4);
  flex-wrap: wrap;
}
.setting-row-v2:first-of-type { border-top: none; padding-top: 0; }

.setting-label-v2 { flex: 1; min-width: 200px; }
.setting-label-v2 .label {
  font-size: 15px;
  color: var(--ink);
  font-weight: 500;
}
.setting-label-v2 .desc {
  font-size: 13px;
  color: var(--ink-3);
  margin-top: 4px;
  line-height: 1.45;
}

/* Theme swatch preview */
.theme-swatch-group {
  display: flex;
  gap: var(--sp-3);
}
.theme-swatch {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 8px;
  border: 2px solid transparent;
  border-radius: var(--r-md);
  background: transparent;
  transition: all 0.15s;
}
.theme-swatch:hover { background: var(--bg-hover); }
.theme-swatch.active { border-color: var(--accent); background: hsl(var(--accent-h) var(--accent-s) var(--accent-l) / 0.08); }

.theme-preview {
  width: 96px;
  height: 64px;
  border-radius: 8px;
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  border: 1px solid rgba(0,0,0,0.1);
  overflow: hidden;
}
.theme-preview-light { background: #f7f2ea; }
.theme-preview-dark { background: #171310; }
.theme-preview .tp-bar {
  width: 100%;
  height: 6px;
  border-radius: 2px;
  background: rgba(0,0,0,0.06);
}
.theme-preview-dark .tp-bar { background: rgba(255,255,255,0.1); }
.theme-preview .tp-content { display: flex; flex-direction: column; gap: 4px; padding-top: 3px; }
.theme-preview .tp-line {
  height: 4px;
  border-radius: 1px;
  background: #dc9a3a;
}
.theme-preview-dark .tp-line { background: #dc9a3a; }

.theme-name {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: var(--ink-2);
  font-weight: 500;
}
.theme-swatch.active .theme-name { color: var(--accent-strong); font-weight: 600; }

/* Font size picker */
.font-size-picker {
  display: flex;
  gap: 6px;
  background: var(--bg-hover);
  border-radius: var(--r-md);
  padding: 4px;
}
.font-size-opt {
  padding: 8px 14px;
  border-radius: var(--r-sm);
  color: var(--ink-3);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  transition: all 0.15s;
  min-width: 60px;
}
.font-size-opt:hover { color: var(--ink); }
.font-size-opt.active {
  background: var(--card);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}
.fso-preview {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1;
  color: var(--accent-strong);
}
.fso-name {
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 600;
}

.reading-preview {
  margin-top: var(--sp-5);
  padding: var(--sp-5);
  background: var(--card-warm);
  border: 1px dashed var(--line-strong);
  border-radius: var(--r-md);
}
.reading-preview-label {
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 10px;
}
.reading-preview-text {
  font-family: var(--font-quote);
  font-style: italic;
  font-size: 18px;
  line-height: 1.55;
  color: var(--ink);
  margin-bottom: 6px;
}
.reading-preview-ref {
  font-size: 13px;
  color: var(--accent-strong);
  font-weight: 600;
}

/* Translation cards v2 */
.translation-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-3);
}
@media (max-width: 780px) { .translation-cards { grid-template-columns: 1fr; } }

.translation-card-v2 {
  padding: var(--sp-5);
  background: var(--bg-elev);
  border: 1.5px solid var(--line);
  border-radius: var(--r-lg);
  text-align: left;
  transition: all 0.2s;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.translation-card-v2:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.translation-card-v2.active {
  border-color: var(--accent);
  background: linear-gradient(180deg,
    hsl(var(--accent-h) var(--accent-s) var(--accent-l) / 0.06),
    var(--bg-elev));
  box-shadow: 0 0 0 3px hsl(var(--accent-h) var(--accent-s) var(--accent-l) / 0.15);
}
.tc-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.tc-badge {
  width: 44px;
  height: 44px;
  border-radius: var(--r-md);
  background: var(--accent);
  color: var(--accent-ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 15px;
}
.tc-check {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  display: flex;
  align-items: center;
  justify-content: center;
}
.tc-name {
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.2;
}
.tc-variants { font-size: 12px; color: var(--ink-3); margin-top: -4px; }
.tc-desc {
  font-size: 12.5px;
  color: var(--ink-3);
  line-height: 1.5;
  margin-top: 6px;
  flex: 1;
}
.tc-badge-bottom {
  padding: 4px 10px;
  background: var(--bg-hover);
  border-radius: var(--r-full);
  font-size: 10.5px;
  color: var(--ink-2);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  align-self: flex-start;
}

/* iOS-style toggle */
.ios-toggle { padding: 0; }
.ios-toggle-track {
  width: 46px;
  height: 26px;
  border-radius: var(--r-full);
  background: var(--line-strong);
  padding: 2px;
  position: relative;
  transition: background 0.2s;
}
.ios-toggle-track.on { background: var(--accent); }
.ios-toggle-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: white;
  box-shadow: 0 1px 3px rgba(0,0,0,0.25);
  transition: transform 0.2s;
}
.ios-toggle-track.on .ios-toggle-thumb { transform: translateX(20px); }

/* Account panel */
.account-hero {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  padding: var(--sp-4);
  background: var(--card-warm);
  border-radius: var(--r-md);
  margin-bottom: var(--sp-4);
}
.account-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 24px;
  overflow: hidden;
  flex-shrink: 0;
}
.account-avatar img { width: 100%; height: 100%; object-fit: cover; }
.account-info { flex: 1; min-width: 0; }
.account-name {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.2;
}
.account-email {
  font-size: 13.5px;
  color: var(--ink-3);
  margin-top: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.account-role {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 6px;
  padding: 3px 10px;
  background: var(--accent);
  color: var(--accent-ink);
  border-radius: var(--r-full);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.account-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-3);
  margin-bottom: var(--sp-4);
}
.account-stat {
  padding: var(--sp-3);
  background: var(--bg-hover);
  border-radius: var(--r-md);
  text-align: center;
}
.account-stat-value {
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
  text-transform: capitalize;
}
.account-stat-label {
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-top: 3px;
}

.account-actions { padding-top: var(--sp-3); border-top: 1px solid var(--line); }

/* Privacy */
.privacy-danger {
  margin-top: var(--sp-5);
  padding: var(--sp-4);
  background: hsl(0 60% 55% / 0.08);
  border: 1px solid hsl(0 60% 55% / 0.25);
  border-radius: var(--r-md);
  display: flex;
  gap: var(--sp-3);
  align-items: center;
  flex-wrap: wrap;
}
.pd-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: hsl(0 60% 55% / 0.15);
  color: var(--danger);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.pd-body { flex: 1; min-width: 200px; }
.pd-title { font-weight: 600; color: var(--ink); font-size: 14px; margin-bottom: 2px; }
.pd-desc { font-size: 12.5px; color: var(--ink-3); line-height: 1.45; }

.privacy-info {
  margin-top: var(--sp-4);
  padding: 12px 14px;
  background: var(--card-warm);
  border: 1px dashed var(--line-strong);
  border-radius: var(--r-md);
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--ink-3);
  font-size: 12.5px;
  line-height: 1.5;
}
.privacy-info svg { color: var(--accent-strong); flex-shrink: 0; margin-top: 2px; }
.privacy-info strong { color: var(--ink); font-weight: 600; }

/* About */
.about-hero {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  padding: var(--sp-4);
  background: var(--card-warm);
  border-radius: var(--r-md);
  margin-bottom: var(--sp-4);
}
.about-logo {
  width: 60px;
  height: 60px;
  color: var(--ink);
  flex-shrink: 0;
}
.about-title {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.1;
}
.about-title em {
  font-family: var(--font-quote);
  color: var(--accent-strong);
  font-style: italic;
}
.about-sub { font-size: 12px; color: var(--ink-3); margin-top: 2px; letter-spacing: 0.05em; }

.about-quote {
  padding: var(--sp-5);
  background: var(--bg-elev);
  border-left: 3px solid var(--accent);
  border-radius: var(--r-sm);
  font-family: var(--font-quote);
  font-style: italic;
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  margin-bottom: var(--sp-4);
}

.about-tech { margin-bottom: var(--sp-4); }
.about-tech-label {
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 8px;
}
.about-tech-list { display: flex; flex-wrap: wrap; gap: 6px; }
.about-tech-chip {
  padding: 4px 10px;
  background: var(--bg-hover);
  border-radius: var(--r-full);
  font-size: 11.5px;
  color: var(--ink-2);
  font-weight: 500;
}

.about-links {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: var(--sp-4);
  border-top: 1px solid var(--line);
}
.about-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: var(--r-sm);
  color: var(--ink-2);
  font-size: 13.5px;
  transition: all 0.15s;
}
.about-link:hover { background: var(--bg-hover); color: var(--ink); }
.about-link svg { color: var(--ink-4); }
.about-link:hover svg { color: var(--accent-strong); }

/* Responsive settings */
@media (max-width: 900px) {
  .settings-layout { grid-template-columns: 1fr; }
  .settings-nav { position: static; flex-direction: row; overflow-x: auto; padding: var(--sp-2); }
  .settings-nav-item { flex-direction: column; min-width: 130px; text-align: center; gap: 6px; padding: 10px; }
  .snav-body { text-align: center; }
  .snav-chev { display: none; }
  .snav-desc { display: none; }
}
@media (max-width: 640px) {
  .settings-panel { padding: var(--sp-4); }
  .settings-panel-header h3 { font-size: 22px; }
  .setting-row-v2 { flex-direction: column; align-items: stretch; }
}

.wall-tab {
  padding: var(--sp-3) var(--sp-4);
  color: var(--ink-3);
  font-size: 14px;
  font-weight: 500;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: all 0.2s;
  white-space: nowrap;
}

.wall-tab:hover { color: var(--ink); }
.wall-tab.active { color: var(--accent-strong); border-color: var(--accent); }

.wall-grid {
  columns: 2;
  column-gap: var(--sp-5);
}

@media (max-width: 760px) { .wall-grid { columns: 1; } }

.wall-item {
  break-inside: avoid;
  margin-bottom: var(--sp-5);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--sp-5);
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  transition: all 0.2s;
}

.wall-item:hover { box-shadow: var(--shadow-md); border-color: var(--line-strong); }

.wall-item-quote {
  font-family: var(--font-quote);
  font-style: italic;
  font-size: 18px;
  line-height: 1.5;
  color: var(--ink);
}

.wall-item-ref {
  font-size: 13px;
  color: var(--accent-strong);
  font-weight: 600;
}

.wall-item-note {
  border-top: 1px dashed var(--line);
  padding-top: var(--sp-3);
  color: var(--ink-2);
  font-size: 14px;
  line-height: 1.55;
}

.wall-item-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--ink-4);
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.wall-empty {
  text-align: center;
  padding: var(--sp-16) var(--sp-6);
  color: var(--ink-3);
}
.wall-empty svg { color: var(--ink-4); margin-bottom: var(--sp-4); }

/* ========================================
   CONFIGURAÇÕES
   ======================================== */
.settings-section {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--sp-6);
  margin-bottom: var(--sp-5);
}

.settings-section h3 {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: var(--sp-5);
}

.setting-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--sp-4) 0;
  gap: var(--sp-4);
  border-top: 1px solid var(--line);
}

.setting-row:first-of-type { border-top: none; padding-top: 0; }

.setting-label { flex: 1; }
.setting-label .label { font-size: 14.5px; color: var(--ink); font-weight: 500; }
.setting-label .desc { font-size: 13px; color: var(--ink-3); margin-top: 2px; }

.segmented {
  display: inline-flex;
  background: var(--bg-hover);
  border-radius: var(--r-full);
  padding: 3px;
}

.segmented button {
  padding: 6px 14px;
  border-radius: var(--r-full);
  font-size: 13px;
  color: var(--ink-3);
  font-weight: 500;
  transition: all 0.2s;
}

.segmented button.active {
  background: var(--card);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}

/* ========================================
   PROTOCOLO DE APOIO EMOCIONAL
   ======================================== */
.emergency-banner {
  background: linear-gradient(135deg, hsl(0 60% 55% / 0.08), hsl(0 60% 55% / 0.02));
  border: 1px solid hsl(0 60% 55% / 0.25);
  border-radius: var(--r-lg);
  padding: var(--sp-5);
  display: flex;
  gap: var(--sp-4);
  align-items: flex-start;
  margin-bottom: var(--sp-6);
}

.emergency-banner .banner-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: hsl(0 60% 55% / 0.15);
  color: var(--danger);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.emergency-banner h4 {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 4px;
}

.emergency-banner p {
  color: var(--ink-2);
  font-size: 14px;
  line-height: 1.55;
}

.emergency-channels {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--sp-4);
}

.channel-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--sp-5);
  transition: all 0.2s;
}

.channel-card:hover { border-color: var(--accent); box-shadow: var(--shadow-md); }

.channel-card .channel-name {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 4px;
}

.channel-card .channel-desc {
  font-size: 13.5px;
  color: var(--ink-3);
  line-height: 1.5;
  margin-bottom: var(--sp-4);
}

.channel-card .channel-cta {
  display: flex;
  gap: var(--sp-2);
  flex-wrap: wrap;
}

.channel-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: var(--bg-hover);
  border-radius: var(--r-full);
  font-size: 13px;
  color: var(--ink);
  font-weight: 500;
}

/* ========================================
   ÁUDIO PLAYER (mini)
   ======================================== */
.audio-player {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-4);
  background: var(--card-warm);
  border: 1px solid var(--line);
  border-radius: var(--r-full);
  margin: var(--sp-3) 0;
}

.play-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.audio-wave {
  flex: 1;
  height: 24px;
  display: flex;
  align-items: center;
  gap: 2px;
}

.audio-wave span {
  flex: 1;
  background: var(--ink-4);
  border-radius: 2px;
  min-height: 4px;
  transition: all 0.3s;
}

.audio-wave.playing span { animation: wave 1s infinite ease-in-out; }
.audio-wave span:nth-child(1) { animation-delay: 0s; }
.audio-wave span:nth-child(2) { animation-delay: 0.1s; }
.audio-wave span:nth-child(3) { animation-delay: 0.2s; }
.audio-wave span:nth-child(4) { animation-delay: 0.3s; }
.audio-wave span:nth-child(5) { animation-delay: 0.4s; }
.audio-wave span:nth-child(6) { animation-delay: 0.5s; }
.audio-wave span:nth-child(7) { animation-delay: 0.6s; }
.audio-wave span:nth-child(8) { animation-delay: 0.7s; }
@keyframes wave {
  0%, 100% { height: 6px; background: var(--ink-4); }
  50% { height: 20px; background: var(--accent-strong); }
}

.audio-time { font-size: 12px; color: var(--ink-3); font-variant-numeric: tabular-nums; }

.audio-progress {
  position: absolute;
  left: 0;
  bottom: -6px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
  transition: width 0.15s linear;
}

.audio-player.has-error .audio-time { color: var(--danger); }
.audio-error-text {
  font-size: 11px;
  color: var(--danger);
  max-width: 200px;
  display: inline-block;
  line-height: 1.3;
}

.audio-player.audio-player-error {
  color: var(--ink-3);
  font-size: 12px;
  padding: 8px 14px;
  gap: 8px;
}
.audio-player.audio-player-error svg { color: var(--warn); }

/* ========================================
   MODAL (troca de versão in-chat)
   ======================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--sp-6);
  animation: fadeIn 0.2s;
}

.modal {
  background: var(--bg-elev);
  border-radius: var(--r-xl);
  padding: var(--sp-6);
  max-width: 480px;
  width: 100%;
  box-shadow: var(--shadow-lg);
  animation: scaleIn 0.2s var(--ease-out);
}

@keyframes scaleIn { from { opacity: 0; transform: scale(0.96); } to { opacity: 1; transform: scale(1); } }

.modal h3 {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: var(--sp-2);
}

.modal p { color: var(--ink-3); margin-bottom: var(--sp-5); }

.modal-choice {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-4);
  border-radius: var(--r-md);
  border: 1.5px solid var(--line);
  cursor: pointer;
  width: 100%;
  margin-bottom: var(--sp-2);
  transition: all 0.15s;
  text-align: left;
}

.modal-choice:hover { border-color: var(--accent); background: var(--bg-hover); }
.modal-choice.selected { border-color: var(--accent); background: hsl(var(--accent-h) var(--accent-s) var(--accent-l) / 0.08); }

.modal-choice-badge {
  width: 32px;
  height: 32px;
  border-radius: var(--r-sm);
  background: var(--accent);
  color: var(--accent-ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 13px;
  flex-shrink: 0;
}

.modal-choice-info { flex: 1; }
.modal-choice-info .name { font-weight: 500; color: var(--ink); font-size: 14.5px; }
.modal-choice-info .sub { font-size: 12.5px; color: var(--ink-3); }

.modal-actions { display: flex; justify-content: flex-end; gap: var(--sp-2); margin-top: var(--sp-5); }

/* Focus styles */
button:focus-visible, textarea:focus-visible, input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: var(--r-sm);
}

.textarea-noborder:focus-visible, .composer textarea:focus-visible { outline: none; }

/* ========================================
   AUTH (login / cadastro) — centralizado
   ======================================== */
.auth-wrap {
  max-width: 460px;
  margin: 0 auto;
  padding: var(--sp-6) var(--sp-6);
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--sp-6);
}
.auth-wrap .onboarding-top {
  position: absolute;
  top: var(--sp-5);
  left: var(--sp-6);
  right: var(--sp-6);
  margin-bottom: 0 !important;
}

.auth-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: var(--sp-8);
  box-shadow: var(--shadow-lg);
}

.auth-header {
  text-align: center;
  margin-bottom: var(--sp-6);
}

.auth-header h2 {
  font-family: var(--font-serif);
  font-size: 30px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: var(--sp-3) 0 var(--sp-2);
}

.auth-header p {
  color: var(--ink-3);
  font-size: 14.5px;
  line-height: 1.55;
}

/* Saudação — texto comum, sem moldura de CTA */
.auth-welcome {
  margin-top: var(--sp-4);
  color: var(--ink-3);
  font-size: 14px;
  line-height: 1.5;
  letter-spacing: 0.01em;
}

/* --- Acesso negado (e-mail não cadastrado) ------------------------------- */
.auth-blocked-card {
  text-align: center;
}

.auth-blocked-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto var(--sp-4);
  border-radius: var(--r-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--danger);
  background: hsl(0 60% 55% / 0.12);
  border: 1px solid hsl(0 60% 55% / 0.28);
}

.auth-blocked-title {
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: var(--sp-3);
}

.auth-blocked-text {
  color: var(--ink-3);
  font-size: 14.5px;
  line-height: 1.6;
  margin-bottom: var(--sp-4);
}

.auth-blocked-email {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  padding: 8px 14px;
  border-radius: var(--r-full);
  border: 1px solid var(--line);
  background: var(--bg-hover);
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 500;
  margin-bottom: var(--sp-4);
  overflow-wrap: anywhere;
}

.auth-blocked-hint {
  color: var(--ink-4);
  font-size: 12.5px;
  line-height: 1.55;
  margin-bottom: var(--sp-5);
}

/* Providers de autenticação (Google, Apple, Guest) */
.auth-providers {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.provider-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-3);
  padding: var(--sp-4);
  border-radius: var(--r-full);
  font-size: 15px;
  font-weight: 500;
  transition: all 0.2s var(--ease);
  cursor: pointer;
  border: 1.5px solid transparent;
}

.provider-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Google — card branco no dark, cinza claro no light (padrão oficial) */
.provider-google {
  background: #ffffff;
  color: #1f1f1f;
  border-color: #dadce0;
}
.provider-google:hover:not(:disabled) {
  background: #f8faff;
  border-color: #d2e3fc;
  box-shadow: 0 1px 3px rgba(60, 64, 67, 0.15);
}

/* Apple — preto (padrão oficial Apple) */
.provider-apple {
  background: #000000;
  color: #ffffff;
  border-color: #000000;
}
.provider-apple:hover:not(:disabled) {
  background: #1a1a1a;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}
[data-theme="light"] .provider-apple {
  background: #000000;
  color: #ffffff;
}

/* Guest — sutil */
.provider-guest {
  background: transparent;
  color: var(--ink-2);
  border-color: var(--line-strong);
}
.provider-guest:hover:not(:disabled) {
  background: var(--bg-hover);
  color: var(--ink);
  border-color: var(--ink-4);
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  margin: var(--sp-5) 0;
  color: var(--ink-4);
  font-size: 12px;
  text-transform: lowercase;
  letter-spacing: 0.08em;
}
.auth-divider span {
  flex-shrink: 0;
}
.auth-divider::before, .auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--line);
  min-width: 20px;
}

.auth-error {
  margin-top: var(--sp-4);
  padding: 10px 14px;
  background: hsl(0 60% 55% / 0.12);
  border: 1px solid hsl(0 60% 55% / 0.30);
  border-radius: var(--r-md);
  color: var(--danger);
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 8px;
  line-height: 1.4;
}

.auth-info {
  margin-top: var(--sp-3);
  padding: 8px 12px;
  background: hsl(var(--accent-h) var(--accent-s) var(--accent-l) / 0.08);
  border: 1px solid hsl(var(--accent-h) var(--accent-s) var(--accent-l) / 0.25);
  border-radius: var(--r-md);
  color: var(--ink-2);
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  line-height: 1.4;
}
.auth-info svg { color: var(--accent-strong); flex-shrink: 0; }

/* Campos de formulário (reusável) */
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.field label {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--ink-3);
  text-transform: uppercase;
}
.field input {
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: var(--r-md);
  background: var(--bg-input);
  color: var(--ink);
  font-size: 15px;
  font-family: inherit;
  transition: all 0.15s;
  width: 100%;
}
.field input::placeholder { color: var(--ink-4); }
.field input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px hsl(var(--accent-h) var(--accent-s) var(--accent-l) / 0.15);
}

/* Modal de login administrativo */
.admin-login-modal {
  max-width: 440px;
  padding: var(--sp-6);
}
.admin-login-header {
  text-align: center;
  margin-bottom: var(--sp-5);
}
.admin-login-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg,
    hsl(var(--accent-h) var(--accent-s) var(--accent-l) / 0.20),
    hsl(var(--accent-h) var(--accent-s) var(--accent-l) / 0.05));
  border: 1px solid hsl(var(--accent-h) var(--accent-s) var(--accent-l) / 0.35);
  color: var(--accent-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--sp-3);
}
.admin-login-header h3 {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 6px;
}
.admin-login-header p {
  font-size: 13.5px;
  color: var(--ink-3);
  line-height: 1.5;
  max-width: 340px;
  margin: 0 auto;
}

.admin-login-form { display: flex; flex-direction: column; gap: var(--sp-3); }

.admin-pass-wrap { position: relative; }
.admin-pass-toggle {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border-radius: var(--r-sm);
  color: var(--ink-3);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}
.admin-pass-toggle:hover { background: var(--bg-hover); color: var(--ink); }
.admin-pass-wrap input { padding-right: 44px; }

.admin-login-security {
  margin-top: var(--sp-4);
  padding: 10px 14px;
  background: var(--card-warm);
  border: 1px dashed var(--line-strong);
  border-radius: var(--r-md);
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: var(--ink-3);
  font-size: 11.5px;
  line-height: 1.45;
}
.admin-login-security svg { color: var(--accent-strong); flex-shrink: 0; margin-top: 2px; }

/* Apple button quando desabilitado (aguardando Google) */
.provider-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.provider-apple:disabled {
  background: #1a1a1a !important;
  opacity: 0.55;
}
.provider-apple:disabled svg[data-hidden] { display: none; }

.auth-terms {
  margin-top: var(--sp-5);
  font-size: 12px;
  color: var(--ink-4);
  line-height: 1.55;
  text-align: center;
  padding: 0 var(--sp-3);
}
.auth-terms a {
  color: var(--ink-3);
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-underline-offset: 2px;
}
.auth-terms a:hover { color: var(--accent-strong); text-decoration-color: var(--accent); }

/* Access Denied — mostrado quando não-admin tenta acessar /#admin */
.access-denied {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: var(--sp-12) var(--sp-8);
  text-align: center;
  margin-top: var(--sp-16);
}
.access-denied-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: hsl(0 60% 55% / 0.12);
  color: var(--danger);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--sp-5);
}
.access-denied h2 {
  font-family: var(--font-serif);
  font-size: 30px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: var(--sp-3);
}
.access-denied p {
  color: var(--ink-3);
  font-size: 15px;
  line-height: 1.6;
  max-width: 420px;
  margin: 0 auto var(--sp-6);
}

/* Botão de demo admin (só no protótipo — remover em produção) */
.auth-tip-btn {
  width: 100%;
  margin-top: var(--sp-6);
  padding: var(--sp-3) var(--sp-4);
  background: var(--card-warm);
  border: 1px dashed var(--line-strong);
  border-radius: var(--r-md);
  display: flex;
  gap: var(--sp-3);
  align-items: center;
  color: var(--ink-3);
  font-size: 12.5px;
  line-height: 1.4;
  cursor: pointer;
  transition: all 0.15s;
  text-align: left;
}
.auth-tip-btn:hover {
  border-color: var(--accent);
  color: var(--ink);
  background: hsl(var(--accent-h) var(--accent-s) var(--accent-l) / 0.06);
}
.auth-tip-btn > svg:first-child { color: var(--accent-strong); flex-shrink: 0; }
.auth-tip-btn > svg:last-child { color: var(--ink-4); flex-shrink: 0; margin-left: auto; }
.auth-tip-btn strong { color: var(--ink); font-weight: 600; }

/* ========================================
   ADMIN
   ======================================== */
.admin-stats {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--sp-3);
  margin-bottom: var(--sp-6);
}

/* Em telas médias, cai pra 3 */
@media (max-width: 1180px) {
  .admin-stats { grid-template-columns: repeat(3, 1fr); }
}
/* Em telas pequenas, cai pra 2 */
@media (max-width: 700px) {
  .admin-stats { grid-template-columns: repeat(2, 1fr); }
}

.stat-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0; /* permite conteúdo encolher */
}

.stat-icon {
  width: 34px;
  height: 34px;
  border-radius: var(--r-sm);
  background: hsl(var(--accent-h) var(--accent-s) var(--accent-l) / 0.12);
  color: var(--accent-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.stat-icon.tone-success { background: hsl(140 40% 50% / 0.12); color: var(--success); }
.stat-icon.tone-warn { background: hsl(35 60% 50% / 0.12); color: var(--warn); }

.stat-value {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 500;
  color: var(--ink);
  line-height: 1;
}
.stat-label {
  font-size: 11px;
  color: var(--ink-3);
  margin-top: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-table-wrap {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 780px;
}

.admin-table th {
  text-align: left;
  padding: var(--sp-3) var(--sp-4);
  background: var(--bg-hover);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
  border-bottom: 1px solid var(--line);
}

.admin-table td {
  padding: var(--sp-3) var(--sp-4);
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  color: var(--ink-2);
  vertical-align: middle;
}
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover { background: var(--bg-hover); }

.admin-select {
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--bg-input);
  font-size: 13px;
  color: var(--ink);
  cursor: pointer;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: var(--r-full);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.03em;
}
.status-badge svg { flex-shrink: 0; }
.status-active { background: hsl(140 40% 50% / 0.15); color: var(--success); }
.status-suspended { background: hsl(0 60% 55% / 0.15); color: var(--danger); }
.status-pending { background: hsl(35 60% 50% / 0.15); color: var(--warn); }

.admin-action-btn {
  width: 30px;
  height: 30px;
  border-radius: var(--r-sm);
  color: var(--ink-3);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}
.admin-action-btn:hover { background: var(--bg-hover); color: var(--ink); }
.admin-action-btn:disabled { opacity: 0.3; cursor: not-allowed; }
.admin-action-btn.admin-action-danger:hover { background: hsl(0 60% 55% / 0.15); color: var(--danger); }

.invite-form {
  display: grid;
  grid-template-columns: 1fr 200px auto;
  gap: var(--sp-3);
}

.invite-form input, .invite-form select {
  padding: var(--sp-3) var(--sp-4);
  border: 1.5px solid var(--line);
  border-radius: var(--r-md);
  background: var(--bg-input);
  font-size: 14.5px;
  color: var(--ink);
}
.invite-form input:focus, .invite-form select:focus {
  outline: none;
  border-color: var(--accent);
}

@media (max-width: 640px) {
  .invite-form { grid-template-columns: 1fr; }
}

.roles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-5);
}
@media (max-width: 860px) {
  .roles-grid { grid-template-columns: 1fr; }
}

.role-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--sp-5);
}

.role-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: var(--sp-4);
  padding-bottom: var(--sp-3);
  border-bottom: 1px solid var(--line);
}
.role-header h4 {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 500;
  color: var(--ink);
}
.role-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.role-card ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.role-card li {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--ink-2);
}
.role-card li svg { color: var(--accent-strong); flex-shrink: 0; margin-top: 3px; }

/* ═══════════════════════════════════════
   AVATAR + PROVIDER BADGES
   ═══════════════════════════════════════ */
.user-avatar-wrap {
  position: relative;
  flex-shrink: 0;
  display: inline-block;
}
.user-avatar-circle {
  border-radius: 50%;
  overflow: hidden;
  background: var(--accent);
  color: var(--accent-ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-weight: 600;
}
.user-avatar-circle img { width: 100%; height: 100%; object-fit: cover; }
.user-avatar-wrap .provider-mini {
  position: absolute;
  bottom: -2px;
  right: -2px;
}

/* Provider mini (bolinha no canto do avatar) */
.provider-mini {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: white;
  border: 2px solid var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.provider-mini.provider-google { background: white; }
.provider-mini.provider-apple { background: #000; color: white; }
.provider-mini.provider-email { background: var(--accent); color: var(--accent-ink); }
.provider-mini.provider-admin { background: var(--accent-strong); color: white; }

/* Provider badge (pill grande na tabela admin) */
.provider-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px 4px 6px;
  border-radius: var(--r-full);
  font-size: 12px;
  font-weight: 500;
  background: var(--bg-hover);
  color: var(--ink-2);
}
.provider-badge svg { flex-shrink: 0; }
.provider-badge.provider-google {
  background: hsl(210 65% 55% / 0.10);
  color: hsl(210 65% 55%);
}
.provider-badge.provider-apple {
  background: var(--ink);
  color: var(--bg);
}
[data-theme="light"] .provider-badge.provider-apple { background: #000; color: #fff; }
.provider-badge.provider-email {
  background: hsl(var(--accent-h) var(--accent-s) var(--accent-l) / 0.12);
  color: var(--accent-strong);
}
.provider-badge.provider-admin {
  background: var(--accent);
  color: var(--accent-ink);
}

/* ═══════════════════════════════════════
   ADMIN TOOLBAR + USER FORM MODAL
   ═══════════════════════════════════════ */
.admin-users-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--sp-4);
  margin-bottom: var(--sp-4);
  flex-wrap: wrap;
}

.admin-users-filters {
  display: flex;
  gap: var(--sp-3);
  align-items: center;
  flex-wrap: wrap;
  flex: 1;
}

.admin-role-filter {
  display: flex;
  gap: 4px;
  background: var(--bg-hover);
  border-radius: var(--r-full);
  padding: 3px;
}
.admin-role-filter button {
  padding: 5px 12px;
  border-radius: var(--r-full);
  color: var(--ink-3);
  font-size: 12.5px;
  font-weight: 500;
  transition: all 0.15s;
}
.admin-role-filter button:hover { color: var(--ink); }
.admin-role-filter button.active {
  background: var(--card);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}

.me-badge {
  padding: 1px 6px;
  background: hsl(var(--accent-h) var(--accent-s) var(--accent-l) / 0.15);
  color: var(--accent-strong);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: var(--r-full);
}

/* User Form Modal */
.user-form-modal { max-width: 560px; padding: var(--sp-6); }
.user-form-header { margin-bottom: var(--sp-5); }
.user-form-header h3 {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 4px;
}
.user-form-header p { color: var(--ink-3); font-size: 13.5px; }

.user-form { display: flex; flex-direction: column; gap: var(--sp-4); }

.user-form-photo {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  padding: var(--sp-4);
  background: var(--card-warm);
  border: 1px dashed var(--line-strong);
  border-radius: var(--r-md);
}
.user-form-avatar {
  position: relative;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-weight: 600;
  overflow: hidden;
  flex-shrink: 0;
}
.user-form-avatar img { width: 100%; height: 100%; object-fit: cover; }
.user-form-avatar .provider-mini {
  position: absolute;
  bottom: 0;
  right: 0;
}
.user-form-photo-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.user-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-3);
}
@media (max-width: 640px) { .user-form-grid { grid-template-columns: 1fr; } }

.user-form-info {
  padding: 10px 14px;
  background: hsl(35 60% 50% / 0.10);
  border: 1px solid hsl(35 60% 50% / 0.30);
  border-radius: var(--r-md);
  display: flex;
  gap: 8px;
  align-items: flex-start;
  color: var(--warn);
  font-size: 12.5px;
  line-height: 1.45;
}
.user-form-info svg { flex-shrink: 0; margin-top: 2px; }
.user-form-info strong { color: var(--ink); }

.user-form-actions {
  display: flex;
  justify-content: flex-end;
  gap: var(--sp-2);
  padding-top: var(--sp-3);
  border-top: 1px solid var(--line);
}

/* ========================================
   TORRE DE ORAÇÃO
   ======================================== */
.live-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: hsl(0 70% 55%);
  border-radius: 50%;
  position: relative;
  flex-shrink: 0;
}
.live-dot::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: hsl(0 70% 55% / 0.4);
  animation: pulse-ring 1.6s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}
@keyframes pulse-ring {
  0% { transform: scale(0.6); opacity: 1; }
  100% { transform: scale(2); opacity: 0; }
}

/* Botão Torre de Oração na TOPBAR */
.tower-topbar-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px 7px 12px;
  border-radius: var(--r-full);
  border: 1px solid var(--line-strong);
  background: var(--bg-hover);
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 500;
  transition: all 0.2s var(--ease);
  cursor: pointer;
  white-space: nowrap;
  position: relative;
}

.tower-topbar-btn:hover {
  color: var(--ink);
  border-color: var(--ink-4);
  background: var(--bg-active);
}

.tower-topbar-btn.active {
  border-color: var(--accent);
  color: var(--ink);
  background: hsl(var(--accent-h) var(--accent-s) var(--accent-l) / 0.10);
}

/* Estado AO VIVO: destaque vermelho pulsante — MESMO visual em PC e mobile */
.tower-topbar-live {
  background: linear-gradient(135deg, hsl(0 78% 55% / 0.28), hsl(0 78% 45% / 0.15)) !important;
  border-color: hsl(0 78% 55% / 0.65) !important;
  color: var(--ink) !important;
  overflow: hidden;
  padding-left: 14px;
  animation: pulse-btn 2.4s ease-in-out infinite;
}
.tower-topbar-live:hover {
  background: linear-gradient(135deg, hsl(0 78% 55% / 0.38), hsl(0 78% 45% / 0.22)) !important;
  border-color: hsl(0 78% 55% / 0.85) !important;
}

.tower-topbar-live::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 35%, hsl(0 70% 55% / 0.16) 50%, transparent 65%);
  animation: shine 3s linear infinite;
  pointer-events: none;
}

@keyframes shine {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

@keyframes pulse-btn {
  0%, 100% { box-shadow: 0 0 0 0 hsl(0 70% 55% / 0.4); }
  50% { box-shadow: 0 0 0 6px hsl(0 70% 55% / 0); }
}

.tower-topbar-label {
  position: relative;
  z-index: 1;
}

.live-tag-sm {
  display: inline-block;
  padding: 3px 8px;
  background: hsl(0 78% 52%);
  color: white;
  border-radius: var(--r-full);
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.12em;
  position: relative;
  z-index: 1;
  box-shadow: 0 2px 6px hsl(0 78% 45% / 0.35);
}

/* Label label: full no desktop, "T.O" curto no mobile */
.tower-topbar-label .ttl-short { display: none; }

/* Mobile: quando AO VIVO — MESMO visual do desktop (pill vermelho + texto "AO VIVO") */
@media (max-width: 700px) {
  .tower-topbar-btn { padding: 5px 8px; gap: 4px; }
  /* Troca full → short */
  .tower-topbar-label .ttl-full { display: none; }
  .tower-topbar-label .ttl-short { display: inline; font-weight: 700; letter-spacing: 0.02em; }
  /* Quando NÃO está ao vivo: só ícone */
  .tower-topbar-btn:not(.tower-topbar-live) .tower-topbar-label { display: none; }
  .tower-topbar-btn:not(.tower-topbar-live)::before {
    content: '';
    display: inline-block;
    width: 16px; height: 16px;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 4V16a2 2 0 0 1-2 2H6l-4 4V4a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2Z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: contain;
    opacity: 0.85;
  }

  /* Quando AO VIVO: mostra "T.O" + tag AO VIVO */
  .tower-topbar-live {
    padding: 5px 8px 5px 10px !important;
  }
  .tower-topbar-live .tower-topbar-label {
    display: inline !important;
    font-size: 12px !important;
    font-weight: 700;
  }
  .tower-topbar-live .live-tag-sm {
    padding: 3px 7px;
    font-size: 9.5px;
    font-weight: 800;
    letter-spacing: 0.12em;
  }
}

/* Tower Live */
.tower-live {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.tower-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}
.tower-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.tower-live-meta {
  padding: var(--sp-5) var(--sp-6);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--sp-4);
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
}

/* Tower "em breve" (countdown) */
.tower-soon {
  background: linear-gradient(135deg, var(--card-warm), var(--card));
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: var(--sp-16) var(--sp-6);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.tower-soon::before {
  content: '';
  position: absolute;
  top: -30%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, hsl(var(--accent-h) var(--accent-s) var(--accent-l) / 0.10), transparent 60%);
  pointer-events: none;
}

.tower-soon-inner {
  position: relative;
  max-width: 640px;
  margin: 0 auto;
}

.tower-soon-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  background: hsl(var(--accent-h) var(--accent-s) var(--accent-l) / 0.15);
  color: var(--accent-strong);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: var(--sp-5);
}

/* ═══════════════════════════════════════
   TOWER PAGE HEADER com logo NCC
   ═══════════════════════════════════════ */
.tower-page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--sp-6);
  margin-bottom: var(--sp-6);
}
.tph-content {
  flex: 1;
  min-width: 0;
}
.tph-content h2 {
  font-family: var(--font-serif);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 6px;
  font-variation-settings: 'opsz' 96;
}
.tph-content p {
  color: var(--ink-3);
  font-size: 15px;
}

/* Versículo no header — pequeno, elegante, uma linha só (com quebra sutil se preciso) */
.tph-verse {
  font-family: var(--font-serif);
  font-size: 13px !important;
  color: var(--ink-2) !important;
  line-height: 1.5;
  margin-top: 4px;
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}
.tph-verse em {
  font-style: italic;
  font-family: 'Instrument Serif', var(--font-serif), Georgia, serif;
  font-weight: 400;
  color: var(--ink-2);
}
.tph-verse-ref {
  color: var(--accent-strong);
  font-weight: 600;
  font-size: 12px;
  font-family: var(--font-sans);
  letter-spacing: 0.02em;
  white-space: nowrap;
  flex-shrink: 0;
}

.tph-logo {
  flex-shrink: 0;
}

.ncc-logo-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  border-radius: var(--r-md);
  transition: transform 0.2s;
}
.ncc-logo-img {
  width: 110px;
  height: 110px;
  object-fit: contain;
  display: block;
}

/* Mobile: logo menor e alinhada ao lado do título */
@media (max-width: 640px) {
  .tower-page-header {
    flex-direction: row;
    align-items: center;
    gap: var(--sp-3);
    margin-bottom: var(--sp-4);
  }
  .ncc-logo-img { width: 64px; height: 64px; }
  .tph-content h2 {
    font-size: 24px !important;
    margin-bottom: 4px;
  }
  .tph-verse {
    font-size: 11.5px !important;
    line-height: 1.4;
    gap: 4px;
  }
  .tph-verse-ref { font-size: 10.5px; }
}

@media (max-width: 400px) {
  .ncc-logo-img { width: 48px; height: 48px; }
  .ncc-logo-wrap { padding: 3px; }
  .tph-content h2 { font-size: 20px !important; }
  .tph-verse { font-size: 11px !important; }
  .tph-verse em { font-size: 11px; }
  .tph-verse-ref { font-size: 10px; }
}

/* ═══════════════════════════════════════
   TOWER SCHEDULE + VERSE CARD (compartilhado)
   ═══════════════════════════════════════ */
.tower-schedule-verse-card {
  margin-top: var(--sp-4);
  padding: var(--sp-6);
  background: linear-gradient(135deg, var(--card-warm), var(--card));
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.tower-schedule-verse-card::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 1px;
  background: linear-gradient(90deg, transparent, hsl(var(--accent-h) var(--accent-s) var(--accent-l) / 0.35), transparent);
}

.tsv-countdown-section {
  margin-bottom: var(--sp-5);
}
.tsv-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  background: hsl(var(--accent-h) var(--accent-s) var(--accent-l) / 0.15);
  color: var(--accent-strong);
  border-radius: var(--r-full);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: var(--sp-4);
}

.tsv-schedule {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-full);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}
.tsv-schedule svg { color: var(--accent-strong); }

.tsv-desc {
  margin-top: 10px;
  font-size: 13px;
  color: var(--ink-3);
}

.tsv-divider {
  margin: var(--sp-5) auto;
  width: 60px;
  height: 1px;
  background: var(--line-strong);
}

.tsv-verse {
  max-width: 560px;
  margin: 0 auto;
}
.tsv-verse-text {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  font-variation-settings: 'opsz' 24;
}
.tsv-verse-ref {
  margin-top: 10px;
  color: var(--accent-strong);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.06em;
}

@media (max-width: 640px) {
  .tower-schedule-verse-card { padding: var(--sp-5) var(--sp-4); }
  .tsv-schedule { font-size: 12.5px; padding: 6px 12px; text-align: center; }
  .tsv-verse-text { font-size: 14.5px; }
  .tsv-eyebrow { font-size: 9.5px; }
}

/* ═══════════════════════════════════════
   TOWER TOAST (mudança de plataforma)
   ═══════════════════════════════════════ */
.tower-toast {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: linear-gradient(135deg, hsl(var(--accent-h) var(--accent-s) var(--accent-l) / 0.20), hsl(var(--accent-h) var(--accent-s) var(--accent-l) / 0.08));
  border: 1px solid hsl(var(--accent-h) var(--accent-s) var(--accent-l) / 0.45);
  border-radius: var(--r-md);
  margin-bottom: var(--sp-4);
  animation: toast-in 0.4s ease;
}
@keyframes toast-in {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}
.tt-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--r-sm);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 15px;
  font-family: var(--font-serif);
  flex-shrink: 0;
}
.tt-title { font-weight: 600; color: var(--ink); font-size: 14px; }
.tt-sub { font-size: 12px; color: var(--ink-2); margin-top: 2px; }
.tt-close {
  margin-left: auto;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: transparent;
  color: var(--ink-3);
  font-size: 14px;
  cursor: pointer;
  transition: background 0.15s;
}
.tt-close:hover { background: var(--bg-hover); color: var(--ink); }

/* ═══════════════════════════════════════
   ADMIN: URL INPUT COM BADGE DE PLATAFORMA
   ═══════════════════════════════════════ */
.url-input-wrap {
  position: relative;
}
.pbi {
  position: absolute;
  left: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border-radius: 6px;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 14px;
  font-family: var(--font-serif);
  transition: background 0.3s;
}

.platform-feedback {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  margin-top: 8px;
  border-radius: var(--r-sm);
  font-size: 12.5px;
  line-height: 1.4;
}
.platform-feedback svg { flex-shrink: 0; }
.pf-icon {
  width: 22px;
  height: 22px;
  border-radius: 5px;
  color: white;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 12px;
  font-family: var(--font-serif);
  flex-shrink: 0;
}
.platform-feedback strong { color: var(--ink); }
.platform-feedback em { font-style: normal; color: var(--accent-strong); font-weight: 500; }

.quick-platforms {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  flex-wrap: wrap;
}
.quick-platforms span {
  font-size: 11.5px;
  color: var(--ink-3);
  margin-right: 4px;
}
.quick-platforms button {
  padding: 4px 10px;
  background: var(--bg-hover);
  border: 1px solid var(--line);
  border-radius: var(--r-full);
  font-size: 11.5px;
  color: var(--ink-2);
  cursor: pointer;
  transition: all 0.15s;
}
.quick-platforms button:hover {
  background: var(--card);
  border-color: var(--accent-strong);
  color: var(--accent-strong);
}

/* ═══════════════════════════════════════
   TOWER CALL CARD (reunião ao vivo)
   ═══════════════════════════════════════ */
.tower-call-card {
  background: linear-gradient(135deg,
    hsl(0 60% 22% / 0.30),
    hsl(0 50% 15% / 0.10));
  border: 1.5px solid hsl(0 70% 55% / 0.45);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: 0 10px 40px hsl(0 60% 30% / 0.25);
  position: relative;
}
.tower-call-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, hsl(0 75% 55%), hsl(0 65% 45%));
  animation: pulse-bar 2s ease-in-out infinite;
}
@keyframes pulse-bar {
  0%, 100% { opacity: 0.7; }
  50% { opacity: 1; }
}

.tower-call-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--sp-4) var(--sp-6);
  border-bottom: 1px solid hsl(0 70% 55% / 0.20);
  background: hsl(0 60% 20% / 0.15);
  flex-wrap: wrap;
  gap: var(--sp-3);
}

.tower-call-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  background: hsl(0 78% 52%);
  color: white;
  border-radius: var(--r-full);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  box-shadow: 0 3px 10px hsl(0 70% 45% / 0.45);
}
.tower-call-badge .live-dot { background: white; }
.tower-call-badge .live-dot::before { background: rgba(255,255,255,0.6); }

.tower-call-platform {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-full);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink);
}
.tcp-icon {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: linear-gradient(135deg, #ea4335, #fbbc05);
  color: white;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 12px;
  font-family: var(--font-serif);
}

.tower-call-body {
  padding: var(--sp-8) var(--sp-6);
  text-align: center;
}
.tower-call-body h3 {
  font-family: var(--font-serif);
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 400;
  color: var(--ink);
  margin-bottom: var(--sp-3);
  letter-spacing: -0.01em;
  font-variation-settings: 'opsz' 96;
}
.tower-call-body p {
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.6;
  max-width: 520px;
  margin: 0 auto var(--sp-6);
}
.tower-call-body p strong { color: var(--ink); font-weight: 600; }

.tower-call-cta {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong)) !important;
  color: var(--accent-ink) !important;
  padding: 14px 32px !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  border: 1.5px solid hsl(var(--accent-h) var(--accent-s) var(--accent-l) / 0.6) !important;
  box-shadow: 0 6px 20px hsl(var(--accent-h) var(--accent-s) var(--accent-l) / 0.35) !important;
  letter-spacing: 0.01em;
}
.tower-call-cta:hover {
  background: linear-gradient(135deg, var(--accent-strong), var(--accent)) !important;
  transform: translateY(-1px);
  box-shadow: 0 8px 26px hsl(var(--accent-h) var(--accent-s) var(--accent-l) / 0.5) !important;
}

.tower-call-hint {
  margin-top: var(--sp-4);
  font-size: 12.5px;
  color: var(--ink-3);
}

/* Rodapé do card principal: countdown + horário + versículo (tudo junto) */
.tower-call-footer {
  padding: var(--sp-6);
  text-align: center;
  background: linear-gradient(180deg, transparent, hsl(0 30% 10% / 0.35));
  border-top: 1px solid hsl(0 70% 55% / 0.15);
  position: relative;
}
.tower-call-footer::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 1px;
  background: linear-gradient(90deg, transparent, hsl(0 70% 55% / 0.40), transparent);
}
.tower-call-footer .tsv-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  background: hsl(var(--accent-h) var(--accent-s) var(--accent-l) / 0.18);
  color: var(--accent-strong);
  border-radius: var(--r-full);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: var(--sp-3);
}
.tower-call-footer .countdown {
  margin-bottom: var(--sp-4);
}
.tower-call-footer .tsv-schedule {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-full);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}
.tower-call-footer .tsv-schedule svg { color: var(--accent-strong); }
.tower-call-footer .tsv-desc {
  margin-top: 10px;
  font-size: 13px;
  color: var(--ink-3);
}
.tower-call-footer .tsv-divider {
  margin: var(--sp-5) auto;
  width: 60px;
  height: 1px;
  background: var(--line-strong);
}
.tower-call-footer .tsv-verse {
  max-width: 560px;
  margin: 0 auto;
}
.tower-call-footer .tsv-verse-text {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  font-variation-settings: 'opsz' 24;
}
.tower-call-footer .tsv-verse-ref {
  margin-top: 10px;
  color: var(--accent-strong);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.06em;
}

@media (max-width: 640px) {
  .tower-call-footer { padding: var(--sp-5) var(--sp-4); }
  .tower-call-footer .tsv-schedule { font-size: 12.5px; padding: 6px 12px; }
  .tower-call-footer .tsv-verse-text { font-size: 14.5px; }
}

/* ═══════════════════════════════════════
   TOWER SECONDARY VIDEO (box expansível)
   ═══════════════════════════════════════ */
.tower-secondary {
  margin-top: var(--sp-4);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: border-color 0.2s;
}
.tower-secondary:hover { border-color: var(--line-strong); }
.tower-secondary.expanded {
  border-color: hsl(var(--accent-h) var(--accent-s) var(--accent-l) / 0.45);
}

.tower-secondary-header {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  padding: var(--sp-3) var(--sp-4);
  width: 100%;
  text-align: left;
  cursor: pointer;
  background: transparent;
  transition: background 0.15s;
}
.tower-secondary-header:hover { background: var(--bg-hover); }

.ts-thumb {
  position: relative;
  width: 128px;
  height: 72px;
  border-radius: var(--r-sm);
  overflow: hidden;
  flex-shrink: 0;
  background: var(--bg-hover);
  border: 1px solid var(--line);
}
.ts-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ts-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  background: rgba(0,0,0,0.35);
  transition: background 0.2s;
}
.ts-play svg {
  background: hsl(0 78% 52%);
  border-radius: 50%;
  padding: 6px;
  width: 32px;
  height: 32px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}
.tower-secondary-header:hover .ts-play { background: rgba(0,0,0,0.55); }

.ts-info { flex: 1; min-width: 0; }
.ts-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--accent-strong);
  margin-bottom: 4px;
}
.ts-title {
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.25;
  margin-bottom: 3px;
}
.ts-desc { font-size: 12px; color: var(--ink-3); }

.ts-toggle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-hover);
  color: var(--ink-2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.3s, background 0.2s;
}
.tower-secondary.expanded .ts-toggle {
  transform: rotate(180deg);
  background: hsl(var(--accent-h) var(--accent-s) var(--accent-l) / 0.15);
  color: var(--accent-strong);
}

.tower-secondary-video {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-top: 1px solid var(--line);
  animation: expand-video 0.35s ease;
}
.tower-secondary-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
@keyframes expand-video {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Mobile: card horizontal vira vertical */
@media (max-width: 640px) {
  .tower-secondary-header { flex-direction: row; padding: var(--sp-3); }
  .ts-thumb { width: 88px; height: 52px; }
  .ts-title { font-size: 14.5px; }
  .ts-desc { font-size: 11px; }
  .ts-eyebrow { font-size: 9px; }
  .ts-toggle { width: 28px; height: 28px; }

  .tower-call-header { padding: var(--sp-3) var(--sp-4); }
  .tower-call-body { padding: var(--sp-6) var(--sp-4); }
  .tower-call-body p { font-size: 14px; }
  .tower-call-cta { padding: 12px 24px !important; font-size: 14px !important; }
}

/* Logo do parceiro (NCC) — abaixo do "Em breve" */
.tower-partner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-bottom: var(--sp-6);
}
.tower-partner-label {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.tower-partner-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  min-height: 56px;
  box-shadow: var(--shadow-sm);
}
.tower-partner-logo img {
  max-height: 40px;
  max-width: 200px;
  width: auto;
  height: auto;
  object-fit: contain;
}
.tower-partner-placeholder {
  display: flex;
  align-items: center;
  gap: 10px;
}
.tpp-mark {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.02em;
  color: var(--accent-strong);
  padding: 4px 10px;
  border: 1.5px solid var(--accent-strong);
  border-radius: 6px;
  line-height: 1;
}
.tpp-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.02em;
}

/* Upload de logo no admin */
.partner-logo-upload {
  display: flex;
  gap: var(--sp-4);
  align-items: flex-start;
  padding: var(--sp-3);
  background: var(--card-warm);
  border: 1px dashed var(--line-strong);
  border-radius: var(--r-md);
}
.plu-preview {
  flex-shrink: 0;
  width: 140px;
  height: 80px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 8px;
}
.plu-preview img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.plu-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--ink-3);
  font-size: 11px;
}
.plu-actions {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
}
@media (max-width: 640px) {
  .partner-logo-upload { flex-direction: column; }
  .plu-preview { width: 100%; }
}

.tower-soon h3 {
  font-family: var(--font-serif);
  font-size: clamp(26px, 4vw, 36px);
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: var(--sp-8);
  font-variation-settings: 'opsz' 96;
}

.countdown {
  display: flex;
  justify-content: center;
  gap: var(--sp-3);
  margin-bottom: var(--sp-6);
  flex-wrap: wrap;
}

.countdown-block {
  min-width: 88px;
  padding: var(--sp-4) var(--sp-3);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-sm);
}

.countdown-num {
  font-family: var(--font-serif);
  font-size: 42px;
  font-weight: 500;
  color: var(--ink);
  line-height: 1;
  font-variant-numeric: tabular-nums;
  font-variation-settings: 'opsz' 96;
}

.countdown-lbl {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-top: 6px;
}

.countdown-empty,
.countdown-live-soon {
  font-size: 15px;
  color: var(--ink-3);
  padding: var(--sp-6);
  font-style: italic;
}

.tower-schedule {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: var(--bg-hover);
  border-radius: var(--r-full);
  font-size: 14px;
  color: var(--ink);
  font-weight: 500;
}

.tower-schedule-desc {
  margin-top: var(--sp-3);
  font-size: 13px;
  color: var(--ink-3);
}

.tower-verse {
  margin-top: var(--sp-10);
  padding-top: var(--sp-6);
  border-top: 1px dashed var(--line);
}
.tower-verse .verse-text {
  font-family: var(--font-quote);
  font-style: italic;
  font-size: clamp(17px, 2vw, 20px);
  color: var(--ink);
  line-height: 1.5;
  max-width: 500px;
  margin: 0 auto;
}
.tower-verse .verse-text::before,
.tower-verse .verse-text::after {
  content: '';
  display: none;
}

/* Tower external (Google Meet / Zoom) */
.tower-external {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: var(--sp-16) var(--sp-6);
  text-align: center;
}

.tower-external-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: hsl(var(--accent-h) var(--accent-s) var(--accent-l) / 0.12);
  color: var(--accent-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--sp-5);
}

.tower-external h3 {
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: var(--sp-3);
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.tower-external p {
  color: var(--ink-3);
  font-size: 15px;
  max-width: 480px;
  margin: 0 auto var(--sp-5);
  line-height: 1.55;
}

/* Admin: Tower config */
.tower-status-active {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: hsl(0 70% 55% / 0.10);
  border: 1px solid hsl(0 70% 55% / 0.30);
  border-radius: var(--r-md);
  margin-bottom: var(--sp-4);
  font-size: 13.5px;
  color: var(--ink);
}

.admin-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-4);
}
@media (max-width: 640px) {
  .admin-form-grid { grid-template-columns: 1fr; }
}
.admin-form-grid .field:first-child {
  grid-column: 1 / -1; /* URL ocupa linha inteira */
}

/* ========================================
   RESPONSIVIDADE MOBILE
   ======================================== */
@media (max-width: 860px) {
  .topbar { padding: var(--sp-3) var(--sp-4); }
  .topbar-title h1 { font-size: 17px; line-height: 1.1; }
  .topbar-title > div > div { display: none; } /* esconde subtitle no mobile */
  .chat { padding: var(--sp-4) var(--sp-4) var(--sp-6); }
  .chat-empty h2 { font-size: 22px; line-height: 1.2; }
  .chat-empty > p { font-size: 13px; }
  .composer-wrap { padding: var(--sp-2) var(--sp-4) var(--sp-4); }
  .composer { border-radius: var(--r-lg); }

  .verse-card { padding: var(--sp-4); }
  .verse-text { font-size: 16px; }
  .verse-ref { flex-direction: column; align-items: flex-start; }
  .verse-actions { width: 100%; justify-content: flex-start; flex-wrap: wrap; }

  .page { padding: var(--sp-5) var(--sp-4) var(--sp-16); }
  .page-header h2 { font-size: 28px; }
  .page-header p { font-size: 14px; }

  .onboarding-inner { padding: var(--sp-5) var(--sp-4) var(--sp-12); }
  .onboarding-hero h1 { font-size: 32px; line-height: 1.1; }
  .onboarding-hero p { font-size: 15px; }
  .onboarding-steps { padding-top: var(--sp-6); margin-top: var(--sp-10); }
  .translations-grid { gap: var(--sp-4); }
  .translation-card { min-height: 260px; padding: var(--sp-5); }
  .translation-card h3 { font-size: 24px; }

  .reader-panel { width: 100vw; }
  .reader-body { padding: var(--sp-4) var(--sp-5); }
  .reader-chapter-heading { font-size: 36px; }
  .reader-verse { font-size: 16px; }

  .plan-hero { padding: var(--sp-5); }
  .plan-hero h3 { font-size: 24px; }
  .plan-day { padding: var(--sp-4); }

  .settings-section { padding: var(--sp-4); }
  .setting-row { flex-direction: column; align-items: flex-start; gap: var(--sp-2); padding: var(--sp-3) 0; }
  .setting-row .segmented { width: 100%; }
  .setting-row .segmented button { flex: 1; }

  .emergency-channels { grid-template-columns: 1fr; gap: var(--sp-3); }
  .channel-card { padding: var(--sp-4); }
  .channel-card .channel-name { font-size: 17px; }

  .wall-grid { columns: 1; }

  .book-list { max-height: 300px; }
  .modal { padding: var(--sp-5); border-radius: var(--r-lg); }
  .modal h3 { font-size: 20px; }

  /* Torre — responsivo mobile */
  .tower-soon { padding: var(--sp-8) var(--sp-4); }
  .tower-soon h3 { font-size: 22px; margin-bottom: var(--sp-5); }
  .countdown { gap: 8px; }
  .countdown-block { min-width: 62px; padding: 10px 6px; }
  .countdown-num { font-size: 26px; }
  .countdown-lbl { font-size: 9.5px; }
  .tower-external { padding: var(--sp-10) var(--sp-4); }
  .tower-external h3 { font-size: 20px; }
  .tower-live-meta { padding: var(--sp-4); flex-direction: column; align-items: flex-start; }
  .tower-partner-logo { padding: 10px 16px; min-height: 48px; }
  .tower-partner-logo img { max-height: 32px; }
  .tower-partner-label { font-size: 9.5px; }
  .tpp-mark { font-size: 18px; padding: 3px 8px; }
  .tpp-name { font-size: 13px; }
  .tower-schedule { padding: 8px 14px; font-size: 12.5px; text-align: center; }
  .tower-verse { padding: var(--sp-4); margin-top: var(--sp-5); }
  .tower-verse .verse-text { font-size: 15px; line-height: 1.5; }

  /* Admin stats */
  .admin-stats { grid-template-columns: 1fr 1fr; }
  .stat-card { padding: var(--sp-4); }
  .stat-value { font-size: 22px; }
}

  /* Sidebar hero mais compacto no mobile pra caber melhor */
  .nav-hero { padding: var(--sp-3); }
  .nav-hero-icon { width: 38px; height: 38px; }
  .nav-hero-label { font-size: 16px; }
  .nav-hero-sub { font-size: 11.5px; }

  /* Tipografia geral escala pra baixo */
  body { font-size: 15px; }
  .translation-pill .pill-name { font-size: 13px; }
  .translation-pill .pill-label { font-size: 10px; }

  /* Chat messages padding no mobile */
  .msg { gap: var(--sp-3); }
  .msg-content { font-size: 15px; }
  .msg-avatar { width: 32px; height: 32px; }

  /* Reader footer wraps */
  .reader-footer { flex-wrap: wrap; gap: var(--sp-2); }
  .reader-footer .btn { flex: 1; min-width: 0; padding: var(--sp-2) var(--sp-3); font-size: 13px; }

  /* Bíblia: layout empilhado */
  .bible-layout { grid-template-columns: 1fr; }

  /* Wall tabs com scroll horizontal suave */
  .wall-tabs { padding: 0 var(--sp-1); }

  /* Topbar user chip menor */
  .user-chip { width: 34px; height: 34px; }
  .icon-btn { width: 36px; height: 36px; }

  /* Tower topbar button mais compacto */
  .tower-topbar-btn { padding: 6px 10px; font-size: 12.5px; }

  /* Onboarding tem menos padding */
  .onboarding-top { margin-bottom: var(--sp-6) !important; }

  /* Auth: título não quebrar tão cedo */
  .auth-header h2 { font-size: 26px; line-height: 1.15; }
  .auth-header p { font-size: 14px; }
  .auth-card { padding: var(--sp-5); }
  .auth-wrap { padding: var(--sp-4) var(--sp-3) var(--sp-8); }
}

@media (max-width: 480px) {
  .onboarding-hero h1 { font-size: 28px; }
  .chat-empty h2 { font-size: 22px; }

  /* Quick-starts: SEMPRE 2 colunas no mobile, fonte cabe no box (permite quebra) */
  .quick-starts { grid-template-columns: repeat(2, 1fr) !important; gap: 6px; }
  .quick-start {
    padding: 10px 10px !important;
    min-height: 48px !important;
    align-items: center;
  }
  .quick-start .qs-label {
    font-size: 11.5px !important;
    white-space: normal !important;
    text-overflow: unset !important;
    line-height: 1.2 !important;
    text-align: left;
  }
  .quick-start .qs-icon {
    width: 22px; height: 22px;
    flex-shrink: 0;
  }
  .quick-start .qs-icon svg { width: 11px; height: 11px; }

  .translations-grid { grid-template-columns: 1fr; }

  /* Sidebar em telas muito pequenas ocupa quase toda a largura */
  .sidebar { width: 84vw; max-width: 300px; }

  /* Composer com pouca altura no mobile */
  .composer { padding: var(--sp-2); border-radius: var(--r-lg); }
  .composer textarea { font-size: 15px; padding: var(--sp-2); }
  .send-btn { width: 36px; height: 36px; }

  /* Topbar mais compacto */
  .topbar { padding: var(--sp-3); gap: var(--sp-2); }
  .topbar-title h1 { font-size: 17px; }
  .topbar-actions { gap: 4px; }

  /* Verse card mais compacto */
  .verse-card { padding: var(--sp-3) var(--sp-4); }
  .verse-text { font-size: 15px; line-height: 1.45; }
  .verse-actions { gap: 2px; }
  .verse-action { padding: 6px 8px; font-size: 11.5px; }
  .verse-link { padding: 6px 8px; font-size: 12px; }

  /* Admin stats vira uma coluna */
  .admin-stats { grid-template-columns: 1fr 1fr; gap: var(--sp-2); }
  .stat-card { padding: var(--sp-3); gap: var(--sp-3); }
  .stat-icon { width: 36px; height: 36px; }
  .stat-value { font-size: 20px; }
  .stat-label { font-size: 11px; }

  /* Admin table oculta colunas menos críticas */
  .admin-table th:nth-child(4), .admin-table td:nth-child(4),
  .admin-table th:nth-child(6), .admin-table td:nth-child(6) {
    display: none;
  }

  /* Page header mais compacto */
  .page-header h2 { font-size: 24px; }

  /* Countdown blocks alinhados */
  .countdown-block { min-width: 52px; padding: var(--sp-2); }
  .countdown-num { font-size: 22px; }
  .countdown-lbl { font-size: 8.5px; }
  .tower-soon { padding: var(--sp-6) var(--sp-3); }
  .tower-soon h3 { font-size: 18px; margin-bottom: var(--sp-4); }
  .tower-partner-logo { padding: 8px 12px; min-height: 42px; }
  .tower-schedule { padding: 6px 10px; font-size: 11.5px; }
  .tower-verse .verse-text { font-size: 13.5px; }

  /* Modal responsivo */
  .modal { max-width: calc(100vw - var(--sp-4)); padding: var(--sp-4); }
  .modal h3 { font-size: 18px; }
  .modal-choice { padding: var(--sp-3); }

  /* Sidebar footer menor */
  .translation-pill { padding: var(--sp-2) var(--sp-3); }
  .translation-pill .pill-badge { width: 28px; height: 28px; font-size: 12px; }
}

/* Touch targets: mínimo 44px em qualquer dispositivo de toque */
@media (hover: none) and (pointer: coarse) {
  .nav-item { padding: var(--sp-3) var(--sp-3); min-height: 44px; }
  .icon-btn { min-width: 40px; min-height: 40px; }
  .quick-start { min-height: 60px; }
  .chapter-num { min-height: 48px; }
  .book-item { min-height: 44px; }
  .verse-action, .verse-link { min-height: 34px; }
}

/* Otimizações extras para telas muito pequenas (iPhone SE, etc.) */
@media (max-width: 400px) {
  .auth-header h2 { font-size: 24px; }
  .auth-card { padding: var(--sp-4); border-radius: var(--r-lg); }
  .provider-btn { padding: var(--sp-3); font-size: 14.5px; }
  .eyebrow { font-size: 10px; padding: var(--sp-1) var(--sp-3); }

  /* Chat */
  .chat-empty h2 { font-size: 20px; line-height: 1.2; }
  .chat-empty > p { font-size: 12.5px; padding: 0 var(--sp-2); }
  /* Quick-starts continua 2 colunas mesmo em SE */
  .quick-starts { grid-template-columns: repeat(2, 1fr) !important; gap: 5px; }
  .quick-start { padding: 8px 8px !important; min-height: 42px !important; gap: 6px; }
  .quick-start .qs-label { font-size: 11px !important; line-height: 1.15 !important; }
  .quick-start .qs-icon { width: 20px; height: 20px; }

  /* Hero da sidebar mais compacto */
  .nav-hero { padding: 10px; margin-bottom: 12px; }
  .nav-hero-icon { width: 34px; height: 34px; }
  .nav-hero-label { font-size: 15px; }
  .nav-hero-sub { font-size: 11px; }

  /* Topbar mais compacta */
  .topbar { padding: 8px 10px !important; }
  .topbar-title h1 { font-size: 15px !important; }
  .icon-btn { width: 32px !important; height: 32px !important; }
  .icon-btn svg { width: 15px; height: 15px; }

  /* Composer menor */
  .composer textarea { font-size: 14px; }
  .send-btn { width: 34px; height: 34px; }

  /* Legal footer texto menor */
  .chat-legal { font-size: 10.5px !important; padding: var(--sp-1) var(--sp-3) !important; }
}

/* Prefer-reduced-motion: desativa animações pra usuários sensíveis */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
