/* =============================================================================
   CuidarTEA Design System v2
   Paleta TEA: Azul #2A7DE1 | Vermelho #E53935 | Amarelo #FBC02D | Verde #43A047
   ============================================================================= */

/* Marca — logo PNG (fundo transparente em /public/brand/) */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.app-logo-img {
  height: 52px;
  width: auto;
  display: block;
  object-fit: contain;
}
/* Coração + wordmark no header azul */
.app-logo-img--heart {
  height: 40px;
  width: auto;
  max-height: 40px;
  flex-shrink: 0;
  vertical-align: middle;
}
.app-logo-wordmark {
  color: #fff;
  font-size: 1.12rem;
  font-weight: var(--fw-black);
  letter-spacing: -0.04em;
  line-height: 1;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
  white-space: nowrap;
}
/* Login / funil — coração + CuidarTEA por baixo (zona azul) */
.guest-brand-stack {
  text-align: center;
  margin-bottom: 28px;
}
.guest-brand-stack--compact {
  margin-bottom: 20px;
}
.guest-brand-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
a.guest-brand-top {
  text-decoration: none;
  color: inherit;
}
.guest-brand-heart {
  height: 88px;
  width: auto;
  max-height: 88px;
  display: block;
  margin: 0 auto;
  filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.2));
}
.guest-brand-stack--compact .guest-brand-heart {
  height: 76px;
  max-height: 76px;
}
.guest-brand-title {
  margin: 0;
  color: #fff;
  font-size: clamp(1.5rem, 4.5vw, 1.85rem);
  font-weight: var(--fw-black);
  letter-spacing: -0.04em;
  line-height: 1.15;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.18);
}
.guest-brand-tagline {
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.9rem;
  line-height: 1.45;
  margin: 12px 0 0;
  max-width: 320px;
  margin-left: auto;
  margin-right: auto;
}
.guest-brand-stack--compact .guest-brand-tagline {
  font-size: 0.85rem;
  margin-top: 10px;
}
/* Marca dentro do cartão branco (ex.: hub do funil) */
.funnel-card-brand {
  text-align: center;
  margin-bottom: 18px;
}
.funnel-card-brand__top {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.funnel-card-brand__heart {
  height: 64px;
  width: auto;
  max-height: 64px;
  display: block;
}
.funnel-card-brand__title {
  font-size: 1.5rem;
  font-weight: var(--fw-black);
  color: var(--blue-dark);
  letter-spacing: -0.04em;
  line-height: 1.15;
}
.guest-brand-logo {
  max-height: 120px;
  width: auto;
  display: block;
  margin: 0 auto 10px;
  filter: drop-shadow(0 4px 18px rgba(0, 0, 0, 0.18));
}
.guest-brand-logo--compact {
  max-height: 96px;
  margin-bottom: 8px;
}
.autist-header-logo {
  height: 40px;
  width: auto;
  display: block;
  max-height: 40px;
  flex-shrink: 0;
  filter: drop-shadow(0 1px 6px rgba(0, 0, 0, 0.2));
}
.autist-header-wordmark {
  color: #fff;
  font-size: 1.08rem;
  font-weight: var(--fw-black);
  letter-spacing: -0.04em;
  line-height: 1;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
  white-space: nowrap;
}
.error-page-logo {
  height: 72px;
  width: auto;
  margin: 0 auto 16px;
  display: block;
}

/* === 1. CSS Custom Properties ============================================== */
:root {
  /* Brand */
  --blue:          #2A7DE1;
  --blue-dark:     #1A5DBF;
  --blue-deeper:   #0D3F8F;
  --blue-light:    #EBF4FF;
  --blue-mid:      #C3DDF8;

  --red:           #E53935;
  --red-dark:      #B71C1C;
  --red-light:     #FFEBEE;

  --yellow:        #FBC02D;
  --yellow-dark:   #F57F17;
  --yellow-light:  #FFFDE7;

  --green:         #43A047;
  --green-dark:    #2E7D32;
  --green-light:   #E8F5E9;

  --purple:        #7B1FA2;
  --purple-light:  #F3E5F5;

  --orange:        #EF6C00;
  --orange-light:  #FFF3E0;

  --teal:          #00796B;
  --teal-light:    #E0F2F1;

  /* Neutral */
  --white:         #FFFFFF;
  --bg:            #F5F7FA;
  --bg-dark:       #EEF2F7;
  --surface:       #FFFFFF;
  --border:        #E2E8F0;
  --border-dark:   #CBD5E1;
  --text:          #2D3748;
  --text-md:       #4A5568;
  --text-sm:       #718096;
  --text-xs:       #9DA8B7;

  /* Semantic Roles */
  --primary:       var(--blue);
  --success:       var(--green);
  --warning:       var(--yellow);
  --danger:        var(--red);
  --info:          var(--blue-light);

  /* Shape */
  --r-xs:  8px;
  --r-sm:  12px;
  --r:     16px;
  --r-lg:  24px;
  --r-xl:  32px;
  --r-full:9999px;

  /* Shadows */
  --shadow-xs:  0 1px 3px rgba(0,0,0,0.06);
  --shadow-sm:  0 2px 8px rgba(0,0,0,0.08);
  --shadow:     0 4px 20px rgba(42,125,225,0.12);
  --shadow-md:  0 6px 24px rgba(42,125,225,0.14);
  --shadow-lg:  0 12px 40px rgba(42,125,225,0.18);
  --shadow-red: 0 4px 20px rgba(229,57,53,0.18);

  /* Transitions */
  --t-fast:  0.12s ease;
  --t:       0.2s ease;
  --t-slow:  0.35s ease;

  /* Typography */
  --font:  'Segoe UI', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;
  --fw-normal: 400;
  --fw-medium: 600;
  --fw-bold:   700;
  --fw-black:  800;
}

/* === 2. Base Reset ========================================================= */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  margin: 0;
}

body {
  margin: 0;
  font-family: var(--font);
  background-color: var(--bg);
  color: var(--text);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-tap-highlight-color: transparent;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }
button { cursor: pointer; font-family: var(--font); }
input, textarea, select { font-family: var(--font); }

/* === 3. Puzzle Background Pattern ========================================== */
.puzzle-bg {
  background-color: var(--bg);
  background-image:
    url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M22 2L58 2L58 22C63 20 68 23 68 30C68 37 63 40 58 38L58 58L38 58C36 63 32 67 26 67C20 67 16 63 15 58L2 58L2 38C-3 36 -3 28 2 26C7 24 12 27 12 22L22 22Z' fill='none' stroke='rgba(42%2C125%2C225%2C0.05)' stroke-width='1.5'/%3E%3C/svg%3E");
  background-size: 80px 80px;
}

/* Modo calmo: menos padrão e contraste suave */
body.theme-calm.puzzle-bg {
  background-image: none;
  background-color: #eef2f6;
}
body.theme-calm .app-header {
  box-shadow: 0 1px 0 var(--border);
}
body.theme-calm .hero-card,
body.theme-calm .card {
  box-shadow: var(--shadow-xs);
}

/* Nível de apoio — cuidador: botões e texto um pouco maiores */
body.profile-support-alto .btn-lg { min-height: 56px; font-size: 1.08rem; }
body.profile-support-alto .app-wrap { font-size: 1.04rem; }

/* Modo autista + apoio alto */
body.autist-layout.profile-support-alto { font-size: 1.22rem; }
body.autist-layout.profile-support-alto .abn-item { min-height: 68px; padding-top: 12px; padding-bottom: 12px; }
body.autist-layout.profile-support-alto .abn-item .abn-icon { font-size: 1.9rem; }

body.autist-layout.profile-support-autonomo { font-size: 1.08rem; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* === 4. Layout ============================================================= */
.app-wrap {
  max-width: 900px;
  margin: 0 auto;
  padding: 24px 16px;
  padding-bottom: calc(116px + env(safe-area-inset-bottom, 0px));
}

/* Dashboard / lista de perfis / conta do cuidador: sem barra inferior — menos espaço em baixo */
body.layout-profile-hub .app-wrap,
body.layout-no-bottom-nav .app-wrap {
  padding-bottom: 28px;
}

.page-section { margin-bottom: 28px; }

/* === 5. Typography ========================================================= */
.page-title {
  font-size: 1.65rem;
  font-weight: var(--fw-black);
  color: var(--text);
  line-height: 1.25;
}
.page-subtitle {
  font-size: 0.95rem;
  color: var(--text-sm);
  margin-top: 4px;
}
.section-title {
  font-size: 1.1rem;
  font-weight: var(--fw-bold);
  color: var(--text);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.section-title .icon {
  font-size: 1.2rem;
}

/* === Títulos em cartão (hero / secção / painel) ============================= */
.ui-title-card {
  background: var(--white);
  border-radius: var(--r-lg);
  border: 1px solid rgba(42, 125, 225, 0.14);
  box-shadow: 0 8px 32px rgba(26, 93, 191, 0.09);
  overflow: hidden;
  margin-bottom: 18px;
}
.ui-title-card--hero {
  background: linear-gradient(155deg, #ffffff 0%, #e8f2fc 38%, #f5f9ff 100%);
  box-shadow: 0 12px 40px rgba(42, 125, 225, 0.11);
}
/* Barra superior removida: cartões ficam só com cantos arredondados e fundo em gradiente suave */
.ui-title-card__accent {
  display: none;
}
.ui-title-card__body {
  padding: 16px 18px 18px;
}
@media (min-width: 520px) {
  .ui-title-card__body {
    padding: 18px 22px 20px;
  }
}
.ui-title-card__title {
  margin: 0;
  font-size: 1.48rem;
  font-weight: var(--fw-black);
  color: var(--text);
  letter-spacing: -0.03em;
  line-height: 1.18;
}
.ui-title-card--section .ui-title-card__title {
  font-size: 1.14rem;
  font-weight: var(--fw-black);
  letter-spacing: -0.02em;
}
.ui-title-card__subtitle {
  margin: 10px 0 0;
  font-size: 0.88rem;
  color: var(--text-sm);
  line-height: 1.5;
  max-width: 36rem;
}
.ui-title-card--section {
  margin-bottom: 14px;
  background: linear-gradient(145deg, #ffffff, #f3f8ff);
}
.ui-title-card__toolbar {
  margin-top: 16px;
  padding-top: 4px;
}

.ui-panel-title {
  margin: 0;
  padding: 13px 18px 14px;
  background: linear-gradient(90deg, var(--blue-light) 0%, rgba(255, 255, 255, 0.65) 92%);
}
.ui-panel-title__text {
  margin: 0;
  font-size: 1.02rem;
  font-weight: var(--fw-black);
  color: var(--text);
  letter-spacing: -0.02em;
  line-height: 1.25;
}

/* === 6. Cards ============================================================== */
.card {
  background: var(--white);
  border-radius: var(--r);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: box-shadow var(--t), transform var(--t);
}
.card:hover { box-shadow: var(--shadow); }
.card-body { padding: 20px; }
.card-header {
  padding: 14px 20px;
  font-weight: var(--fw-bold);
  display: flex;
  align-items: center;
  gap: 8px;
}

.card-blue   { border-left: 4px solid var(--blue);   }
.card-green  { border-left: 4px solid var(--green);  }
.card-yellow { border-left: 4px solid var(--yellow); }
.card-red    { border-left: 4px solid var(--red);    }
.card-purple { border-left: 4px solid var(--purple); }

.card-flat {
  background: var(--white);
  border-radius: var(--r);
  border: 2px solid var(--border);
  padding: 20px;
}

/* === 7. Module Cards (large action tiles) ================================== */
.module-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 20px;
  border-radius: var(--r);
  border: 2px solid transparent;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: all var(--t);
  text-decoration: none;
  cursor: pointer;
  min-height: 120px;
}
.module-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.module-card:active { transform: scale(0.98); }
.module-card .mod-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
}
.module-card .mod-label {
  font-size: 1rem;
  font-weight: var(--fw-bold);
  color: var(--text);
  line-height: 1.3;
}
.module-card .mod-desc {
  font-size: 0.8rem;
  color: var(--text-sm);
}

.mc-blue   { border-color: var(--blue-mid);  background: linear-gradient(135deg, #fff 60%, var(--blue-light)); }
.mc-blue   .mod-icon { background: var(--blue-light);   color: var(--blue);   }
.mc-green  { border-color: #B8E0BB;          background: linear-gradient(135deg, #fff 60%, var(--green-light)); }
.mc-green  .mod-icon { background: var(--green-light);  color: var(--green);  }
.mc-yellow { border-color: #FAE4A0;          background: linear-gradient(135deg, #fff 60%, var(--yellow-light)); }
.mc-yellow .mod-icon { background: var(--yellow-light); color: var(--yellow-dark); }
.mc-red    { border-color: #F5B0AF;          background: linear-gradient(135deg, #fff 60%, var(--red-light)); }
.mc-red    .mod-icon { background: var(--red-light);    color: var(--red);    }
.mc-purple { border-color: #D9B8E8;          background: linear-gradient(135deg, #fff 60%, var(--purple-light)); }
.mc-purple .mod-icon { background: var(--purple-light); color: var(--purple); }
.mc-teal   { border-color: #A5D6D0;          background: linear-gradient(135deg, #fff 60%, var(--teal-light)); }
.mc-teal   .mod-icon { background: var(--teal-light);   color: var(--teal);   }
.mc-orange { border-color: #FAC896;          background: linear-gradient(135deg, #fff 60%, var(--orange-light)); }
.mc-orange .mod-icon { background: var(--orange-light); color: var(--orange); }

/* Painel estilo module-card (ex.: Hoje — rotina/emoção), sem hover de “clique no card inteiro” */
.module-card.module-card-panel {
  cursor: default;
  min-height: 0;
  width: 100%;
  box-sizing: border-box;
}
.module-card.module-card-panel:hover {
  transform: none;
  box-shadow: var(--shadow-sm);
}
.module-card.module-card-panel .mod-icon {
  flex-shrink: 0;
}
.module-card-panel .hoje-card-divider {
  width: 100%;
  height: 1px;
  background: var(--border);
  margin: 14px 0;
  flex-shrink: 0;
}
.module-card-panel .hoje-card-meta {
  font-size: 0.8rem;
  color: var(--text-sm);
  margin-top: 6px;
  line-height: 1.3;
}
.module-card-panel .hoje-step-list {
  list-style: none;
  padding: 0;
  margin: 0 0 14px;
  width: 100%;
}
.module-card-panel .hoje-step-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.module-card-panel .hoje-step-list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

/* Hoje: card inteiro ou faixa superior clicável → volta feedback de toque */
a.module-card.module-card-panel.hub-card-tap {
  cursor: pointer;
}
a.module-card.module-card-panel.hub-card-tap:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
a.hub-card-tap:not(.module-card) {
  cursor: pointer;
  border-radius: var(--r-sm);
  transition: background var(--t);
}
a.hub-card-tap:not(.module-card):hover {
  background: rgba(42, 125, 225, 0.06);
}
.mc-teal a.hub-card-tap:not(.module-card):hover {
  background: rgba(0, 128, 128, 0.06);
}

/* Hoje — cartão de perfil (gradiente suave, chips legíveis) */
.hoje-profile-card {
  position: relative;
  border-radius: var(--r-lg);
  border: 1px solid rgba(42, 125, 225, 0.14);
  box-shadow: 0 10px 36px rgba(26, 93, 191, 0.1);
  background: linear-gradient(155deg, #ffffff 0%, #e8f2fc 42%, #f5f9ff 100%);
  overflow: hidden;
}
.hoje-profile-card--editable .hoje-profile-card__body {
  padding-right: 40px;
}
@media (min-width: 420px) {
  .hoje-profile-card--editable .hoje-profile-card__body {
    padding-right: 42px;
  }
}
.hoje-profile-card__inner {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 18px 16px 20px;
}
@media (min-width: 420px) {
  .hoje-profile-card__inner {
    padding: 22px 20px 24px;
    gap: 18px;
  }
}
.hoje-profile-card__avatar {
  flex-shrink: 0;
}
.hoje-profile-card__avatar img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #fff;
  box-shadow: 0 4px 16px rgba(42, 125, 225, 0.22);
  display: block;
}
.hoje-profile-card__avatar .avatar {
  width: 72px;
  height: 72px;
  font-size: 1.85rem;
  border: 3px solid #fff;
  box-shadow: 0 4px 16px rgba(42, 125, 225, 0.22);
}
.hoje-profile-card__body {
  flex: 1;
  min-width: 0;
}
.hoje-profile-card__name {
  margin: 0;
  font-size: 1.38rem;
  font-weight: var(--fw-black);
  letter-spacing: -0.03em;
  color: var(--text);
  line-height: 1.2;
  min-width: 0;
  word-break: break-word;
}
@media (min-width: 420px) {
  .hoje-profile-card__name {
    font-size: 1.48rem;
  }
}
.hoje-profile-card__edit {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border-radius: 10px;
  font-size: 0.88rem;
  text-decoration: none;
  color: var(--text);
  background: rgba(255, 255, 255, 0.96);
  border: 1.5px solid rgba(42, 125, 225, 0.28);
  box-shadow: 0 2px 8px rgba(42, 125, 225, 0.1);
  transition: background var(--t-fast), border-color var(--t-fast), color var(--t-fast), transform var(--t-fast);
}
@media (min-width: 420px) {
  .hoje-profile-card__edit {
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    font-size: 0.92rem;
  }
}
.hoje-profile-card__edit:hover {
  background: var(--blue-light);
  border-color: var(--blue-mid);
  color: var(--blue-dark);
}
.hoje-profile-card__edit:active {
  transform: scale(0.96);
}
.hoje-profile-card__edit:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}
.hoje-profile-card__chips-wrap {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.hoje-profile-card__chips {
  list-style: none;
  margin: 0;
  padding: 0;
}
.hoje-profile-card__chips--row {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 8px;
}
.hoje-profile-card__chips--row .hoje-profile-chip {
  flex: 1 1 0;
  min-width: 0;
}
.hoje-profile-card__chips--row .hoje-profile-chip:only-child {
  flex: 0 1 auto;
}
.hoje-profile-card__chips--stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.hoje-profile-card__chips--stack .hoje-profile-chip {
  width: 100%;
  box-sizing: border-box;
}
.hoje-profile-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  min-width: 0;
  padding: 8px 10px;
  border-radius: var(--r-full);
  font-size: 0.78rem;
  font-weight: var(--fw-bold);
  line-height: 1.35;
  color: var(--text);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(42, 125, 225, 0.16);
  box-shadow: 0 1px 4px rgba(42, 125, 225, 0.06);
}
.hoje-profile-card__chips--stack .hoje-profile-chip {
  align-items: flex-start;
}
.hoje-profile-chip span:last-child {
  flex: 1;
  min-width: 0;
  white-space: normal;
  word-break: break-word;
}
.hoje-profile-chip__emoji {
  flex-shrink: 0;
  font-size: 0.95rem;
  line-height: 1.35;
}

/* Perfil TEA — foto (preview + botão, input escondido) */
.profile-photo-picker {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}
.profile-photo-picker__input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
  opacity: 0;
}
.profile-photo-picker__thumb {
  width: 80px;
  height: 80px;
  flex-shrink: 0;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--blue-light), #fff);
  border: 2px solid rgba(42, 125, 225, 0.22);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.profile-photo-picker__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}
.profile-photo-picker__img[hidden] {
  display: none !important;
}
.profile-photo-picker__ph {
  font-size: 1.75rem;
  line-height: 1;
  opacity: 0.5;
  user-select: none;
}
.profile-photo-picker__ph[hidden] {
  display: none !important;
}
.profile-photo-picker__btn {
  font-weight: var(--fw-bold);
}

/* Hoje: respiro entre SOS e os cards de rotina/emoção */
.hoje-sos-spacing {
  margin-bottom: 22px;
}

/* === 8. Buttons ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--r-sm);
  font-size: 0.95rem;
  font-weight: var(--fw-bold);
  border: none;
  transition: all var(--t-fast);
  text-decoration: none;
  cursor: pointer;
  min-height: 48px;
  white-space: nowrap;
  line-height: 1;
}
.btn:active { transform: scale(0.97); }

.btn-primary { background: var(--blue);   color: white; box-shadow: 0 4px 14px rgba(42,125,225,0.3); }
.btn-primary:hover { background: var(--blue-dark); box-shadow: 0 6px 18px rgba(42,125,225,0.4); }

.btn-success { background: var(--green);  color: white; box-shadow: 0 4px 14px rgba(67,160,71,0.3); }
.btn-success:hover { background: var(--green-dark); }

.btn-warning { background: var(--yellow); color: var(--text); box-shadow: 0 4px 14px rgba(251,192,45,0.3); }
.btn-warning:hover { background: var(--yellow-dark); color: white; }

.btn-danger  { background: var(--red);    color: white; box-shadow: 0 4px 14px rgba(229,57,53,0.3); }
.btn-danger:hover  { background: var(--red-dark); }

.btn-ghost  { background: var(--bg);    color: var(--text-md); border: 2px solid var(--border); box-shadow: none; }
.btn-ghost:hover  { background: var(--blue-light); border-color: var(--blue-mid); color: var(--blue); }

.btn-outline-blue { background: transparent; color: var(--blue); border: 2px solid var(--blue); box-shadow: none; }
.btn-outline-blue:hover { background: var(--blue); color: white; }

.btn-sm { padding: 8px 16px; font-size: 0.85rem; min-height: 36px; border-radius: var(--r-xs); }
.btn-lg { padding: 16px 32px; font-size: 1.1rem; min-height: 58px; border-radius: var(--r); }
.btn-pill { border-radius: var(--r-full); }
.btn-full { width: 100%; }
.btn-icon { padding: 10px; min-width: 48px; border-radius: var(--r-xs); }

/* Ações rápidas: editar/excluir por ícone */
.action-icon-btn {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  border: 1.5px solid var(--blue-mid);
  background: var(--blue-light);
  color: var(--blue-dark);
  text-decoration: none;
  transition: transform var(--t-fast), background var(--t-fast), border-color var(--t-fast), color var(--t-fast);
}
.action-icon-btn:hover {
  background: #dcecff;
  border-color: var(--blue);
}
.action-icon-btn:active {
  transform: scale(0.95);
}
.action-icon-btn--delete {
  border-color: #f4b6b5;
  background: #fff1f1;
  color: var(--red);
}
.action-icon-btn--delete:hover {
  background: #ffe6e6;
  border-color: #e88f8d;
  color: var(--red-dark);
}

/* === 9. Badges / Tags ====================================================== */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 12px;
  border-radius: var(--r-full);
  font-size: 0.78rem;
  font-weight: var(--fw-bold);
  line-height: 1;
}
.badge-blue   { background: var(--blue-light);  color: var(--blue-dark);  }
.badge-green  { background: var(--green-light); color: var(--green-dark); }
.badge-yellow { background: var(--yellow-light);color: var(--yellow-dark);}
.badge-red    { background: var(--red-light);   color: var(--red-dark);   }
.badge-purple { background: var(--purple-light);color: var(--purple);     }
.badge-teal   { background: var(--teal-light);  color: var(--teal);       }
.badge-orange { background: var(--orange-light);color: var(--orange);     }
.badge-gray   { background: var(--bg-dark);     color: var(--text-md);    }

/* === 10. Activity Card ===================================================== */
.activity-card {
  background: var(--white);
  border-radius: var(--r);
  box-shadow: var(--shadow-sm);
  border: 1.5px solid var(--border);
  overflow: hidden;
  transition: all var(--t);
  display: flex;
  flex-direction: column;
}
.activity-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.activity-card .ac-header {
  padding: 10px 16px;
  font-size: 0.8rem;
  font-weight: var(--fw-bold);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.activity-card .ac-body { padding: 16px; flex: 1; }
.activity-card .ac-emoji { font-size: 2.8rem; line-height: 1; margin-bottom: 10px; }
.activity-card .ac-name { font-size: 1.05rem; font-weight: var(--fw-bold); color: var(--text); }
.activity-card .ac-obj  { font-size: 0.83rem; color: var(--text-sm); margin-top: 4px; line-height: 1.5; }
.activity-card .ac-meta { display: flex; gap: 12px; font-size: 0.78rem; color: var(--text-xs); margin-top: 10px; }
.activity-card .ac-footer { padding: 12px 16px; border-top: 1px solid var(--border); display: flex; gap: 8px; }

/* === Biblioteca de brincadeiras (lista) — layout e cards ===================== */
.lib-activities-page {
  max-width: 960px;
  margin: 0 auto;
}
.lib-act-back {
  margin-bottom: 14px;
}
.lib-act-back a {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--blue);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.lib-act-hero-icon {
  font-size: 2.5rem;
  line-height: 1;
  flex-shrink: 0;
}
.lib-act-filter-card {
  background: var(--white);
  border-radius: var(--r-lg);
  padding: 16px 18px 18px;
  border: 1px solid var(--border);
  box-shadow: 0 4px 18px rgba(42, 125, 225, 0.07);
  margin-bottom: 26px;
}
.lib-act-filter-label {
  margin: 0 0 10px;
  font-size: 0.72rem;
  font-weight: var(--fw-black);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-sm);
}
.lib-act-filter-label--spaced {
  margin-top: 18px;
}
.lib-act-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.lib-act-pills--compact {
  gap: 6px;
}
.lib-act-pill {
  padding: 9px 16px;
  border-radius: var(--r-full);
  font-size: 0.84rem;
  font-weight: 700;
  text-decoration: none;
  border: 2px solid var(--border);
  background: var(--white);
  color: var(--text-md);
  transition: color var(--t-fast), background var(--t-fast), border-color var(--t-fast), box-shadow var(--t-fast);
}
.lib-act-pill:hover {
  border-color: var(--blue-mid);
  color: var(--blue);
}
.lib-act-pill.is-active {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
  box-shadow: 0 4px 14px rgba(42, 125, 225, 0.35);
}
.lib-act-pill--lvl {
  padding: 7px 14px;
  font-size: 0.78rem;
}
.lib-act-pill--lvl.is-active {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
  box-shadow: 0 4px 14px rgba(42, 125, 225, 0.35);
}
.lib-act-section {
  margin-bottom: 32px;
}
.lib-act-section-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--border);
}
.lib-act-sec-emoji {
  font-size: 1.45rem;
  line-height: 1;
}
.lib-act-section-title {
  margin: 0;
  font-size: 1.12rem;
  font-weight: var(--fw-black);
  color: var(--text);
  flex: 1;
}
.lib-act-sec-count {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-sm);
  background: var(--bg-dark);
  padding: 4px 10px;
  border-radius: var(--r-full);
}
.lib-act-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 520px) {
  .lib-act-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
  }
}
@media (min-width: 860px) {
  .lib-act-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
.activity-card.lib-act-card {
  border-radius: var(--r-lg);
  border: none;
  box-shadow: 0 6px 22px rgba(26, 93, 191, 0.1);
  background: var(--white);
}
.activity-card.lib-act-card:hover {
  box-shadow: 0 10px 28px rgba(26, 93, 191, 0.14);
}
.activity-card.lib-act-card--done {
  opacity: 0.88;
}
.lib-act-card .ac-header {
  padding: 11px 14px;
  font-size: 0.78rem;
}
.lib-act-card-cat {
  font-weight: var(--fw-black);
}
.lib-act-card-lvl {
  font-size: 0.72rem;
  opacity: 0.85;
  font-weight: 700;
}
.lib-act-badge-done {
  font-size: 0.68rem;
  background: var(--green);
  color: #fff;
  padding: 3px 9px;
  border-radius: var(--r-full);
  font-weight: 800;
}
.lib-act-card-body {
  padding: 18px 16px 12px !important;
  text-align: center;
}
.lib-act-emoji-ring {
  width: 76px;
  height: 76px;
  margin: 0 auto 14px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.35rem;
  line-height: 1;
  background: linear-gradient(160deg, var(--blue-light), #fff);
  box-shadow: inset 0 2px 6px rgba(255, 255, 255, 0.85), 0 4px 12px rgba(42, 125, 225, 0.12);
  border: 1.5px solid rgba(42, 125, 225, 0.12);
}
.lib-act-card[data-cat="sensorial"] .lib-act-emoji-ring {
  background: linear-gradient(160deg, var(--yellow-light), #fff);
  border-color: rgba(251, 192, 45, 0.25);
  box-shadow: inset 0 2px 6px rgba(255, 255, 255, 0.9), 0 4px 12px rgba(251, 192, 45, 0.15);
}
.lib-act-card[data-cat="cognitiva"] .lib-act-emoji-ring {
  background: linear-gradient(160deg, var(--blue-light), #fff);
}
.lib-act-card[data-cat="motora"] .lib-act-emoji-ring {
  background: linear-gradient(160deg, var(--green-light), #fff);
  border-color: rgba(67, 160, 71, 0.2);
}
.lib-act-card[data-cat="social"] .lib-act-emoji-ring {
  background: linear-gradient(160deg, var(--purple-light), #fff);
  border-color: rgba(142, 36, 170, 0.15);
}
.lib-act-card[data-cat="alimentacao"] .lib-act-emoji-ring {
  background: linear-gradient(160deg, var(--orange-light), #fff);
  border-color: rgba(245, 124, 0, 0.2);
}
.lib-act-card[data-cat="regulacao_emocional"] .lib-act-emoji-ring {
  background: linear-gradient(160deg, var(--teal-light), #fff);
  border-color: rgba(0, 150, 136, 0.2);
}
.lib-act-card-title {
  font-size: 1.02rem !important;
  text-align: center;
  line-height: 1.3;
  margin: 0;
}
.lib-act-card-desc {
  text-align: center;
  margin-top: 8px !important;
  font-size: 0.8rem !important;
  line-height: 1.5 !important;
  color: var(--text-sm);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.lib-act-card-meta {
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 12px !important;
  font-size: 0.74rem !important;
}
.lib-act-card-footer {
  padding: 12px 14px !important;
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.9), var(--white));
}
.lib-act-btn-main {
  flex: 1;
  font-weight: 800 !important;
}
.lib-act-empty {
  text-align: center;
  padding: 48px 24px;
  background: var(--white);
  border-radius: var(--r-lg);
  border: 2px dashed var(--border);
}
.lib-act-empty-icon {
  font-size: 3rem;
  margin-bottom: 12px;
}
.lib-act-empty-text {
  color: var(--text-sm);
  margin: 0 0 16px;
  font-size: 1rem;
}

/* === Hub Materiais de Impressão (/imprimir) ================================= */
.print-hub-page {
  max-width: 960px;
  margin: 0 auto;
  padding-bottom: 8px;
}
.print-hub-banner {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border-radius: var(--r);
  margin-bottom: 22px;
  font-size: 0.9rem;
  line-height: 1.45;
}
.print-hub-banner--ok {
  background: linear-gradient(90deg, #ecfdf5, #f0fdf4);
  border: 1.5px solid #6ee7b7;
  color: #065f46;
}
.print-hub-banner--warn {
  background: linear-gradient(90deg, #fffbeb, #fff7ed);
  border: 1.5px solid #fcd34d;
  color: #92400e;
}
.print-hub-banner-ico {
  font-size: 1.35rem;
  line-height: 1;
}
.print-hub-banner-link {
  display: inline-block;
  margin-top: 6px;
  font-weight: 800;
  color: var(--blue);
  text-decoration: none;
}
.print-hub-banner-link:hover {
  text-decoration: underline;
}
.print-hub-section {
  margin-bottom: 32px;
}
.print-hub-section-head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 16px;
  padding: 16px 18px;
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}
.print-hub-section-head--kid {
  border-left: 5px solid #a855f7;
  background: linear-gradient(90deg, #faf5ff, #fff);
}
.print-hub-section-head--support {
  border-left: 5px solid #22c55e;
  background: linear-gradient(90deg, #f0fdf4, #fff);
}
.print-hub-section-emoji {
  font-size: 1.75rem;
  line-height: 1;
}
.print-hub-section-title {
  margin: 0;
  font-size: 1.08rem;
  font-weight: var(--fw-black);
  color: var(--text);
}
.print-hub-section-sub {
  margin: 6px 0 0;
  font-size: 0.82rem;
  color: var(--text-sm);
  line-height: 1.45;
}
.print-hub-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
@media (min-width: 540px) {
  .print-hub-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 900px) {
  .print-hub-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }
}
.print-hub-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-decoration: none;
  color: inherit;
  padding: 16px 16px 14px;
  border-radius: var(--r-lg);
  border: 2px solid var(--border);
  background: var(--white);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
  transition: transform var(--t-fast), box-shadow var(--t-fast), border-color var(--t-fast);
  min-height: 148px;
}
.print-hub-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(26, 93, 191, 0.12);
}
.print-hub-card--wide {
  grid-column: 1 / -1;
}
@media (min-width: 540px) {
  .print-hub-card--wide {
    grid-column: 1 / -1;
    flex-direction: row;
    align-items: center;
    gap: 18px;
    min-height: 0;
  }
  .print-hub-card--wide .print-hub-card-body {
    flex: 1;
  }
  .print-hub-card--wide .print-hub-card-tag {
    margin-top: 0;
    margin-left: auto;
  }
}
.print-hub-card-icon {
  font-size: 2.1rem;
  line-height: 1;
  margin-bottom: 10px;
}
.print-hub-card-body {
  flex: 1;
}
.print-hub-card-title {
  margin: 0;
  font-size: 1.02rem;
  font-weight: var(--fw-black);
  color: var(--text);
  line-height: 1.25;
}
.print-hub-card-desc {
  margin: 6px 0 0;
  font-size: 0.8rem;
  color: var(--text-sm);
  line-height: 1.45;
}
.print-hub-card-tag {
  margin-top: auto;
  padding-top: 10px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-xs);
}
.print-hub-card--sun {
  border-color: #fcd34d;
  background: linear-gradient(160deg, #fffbeb, #fff);
}
.print-hub-card--coral {
  border-color: #fb923c;
  background: linear-gradient(160deg, #fff7ed, #fff);
}
.print-hub-card--leaf {
  border-color: #4ade80;
  background: linear-gradient(160deg, #f0fdf4, #fff);
}
.print-hub-card--violet {
  border-color: #c084fc;
  background: linear-gradient(160deg, #faf5ff, #fff);
}
.print-hub-card--sky {
  border-color: #38bdf8;
  background: linear-gradient(160deg, #f0f9ff, #fff);
}
.print-hub-card--ocean {
  border-color: #60a5fa;
  background: linear-gradient(160deg, #eff6ff, #fff);
}
.print-hub-card--grape {
  border-color: #a78bfa;
  background: linear-gradient(160deg, #f5f3ff, #fff);
}
.print-hub-card--mint {
  border-color: #2dd4bf;
  background: linear-gradient(160deg, #f0fdfa, #fff);
}
.print-hub-card--rose {
  border-color: #fb7185;
  background: linear-gradient(160deg, #fff1f2, #fff);
}
.print-hub-tip {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 16px 18px;
  border-radius: var(--r-lg);
  background: var(--blue-light);
  border: 1.5px solid rgba(42, 125, 225, 0.25);
  font-size: 0.86rem;
  color: var(--text);
  line-height: 1.5;
}
.print-hub-tip-ico {
  font-size: 1.35rem;
  flex-shrink: 0;
}
.print-hub-kbd {
  display: inline-block;
  padding: 2px 8px;
  margin: 0 2px;
  font-size: 0.78rem;
  font-weight: 700;
  font-family: inherit;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 6px;
}

/* Category colors for activity cards */
.ac-sensorial   { background: var(--yellow-light); color: var(--yellow-dark); }
.ac-cognitiva   { background: var(--blue-light);   color: var(--blue-dark);   }
.ac-motora      { background: var(--green-light);  color: var(--green-dark);  }
.ac-social      { background: var(--purple-light); color: var(--purple);      }
.ac-alimentacao { background: var(--orange-light); color: var(--orange);      }
.ac-regulacao   { background: var(--teal-light);   color: var(--teal);        }

/* === 11. Emotion Card ====================================================== */
.emotion-card {
  background: var(--white);
  border: 2.5px solid var(--border);
  border-radius: var(--r);
  padding: 16px 10px;
  text-align: center;
  transition: all var(--t);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.emotion-card:hover { transform: scale(1.04); box-shadow: var(--shadow); }
.emotion-card.selected {
  border-color: var(--blue);
  background: var(--blue-light);
  box-shadow: 0 0 0 3px rgba(42,125,225,0.2);
  transform: scale(1.06);
}
.emotion-card .ec-emoji { font-size: 3rem; line-height: 1; }
.emotion-card .ec-label { font-size: 0.9rem; font-weight: var(--fw-bold); color: var(--text); }

/* === 12. Form Elements ===================================================== */
.form-group { margin-bottom: 18px; }
.form-label {
  display: block;
  font-size: 0.9rem;
  font-weight: var(--fw-medium);
  color: var(--text-md);
  margin-bottom: 6px;
}
.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--border);
  border-radius: var(--r-sm);
  font-size: 1rem;
  color: var(--text);
  background: var(--white);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(42,125,225,0.15);
}
.form-textarea { resize: vertical; min-height: 80px; }

/* Plano de desenvolvimento: textareas e blocos do formulário */
.plano-semanal-page .plano-form-card .form-textarea {
  width: 100%;
  max-width: 100%;
  min-height: 100px;
  box-sizing: border-box;
  display: block;
}
.plano-semanal-page .plano-form-section + .plano-form-section {
  margin-top: 4px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.plano-semanal-page .plano-form-hint {
  font-size: 0.88rem;
  color: var(--text-md);
  margin: 0 0 10px;
  line-height: 1.45;
}
.plano-semanal-page .plano-form-section-title {
  font-size: 0.8rem;
  font-weight: var(--fw-bold);
  color: var(--text-sm);
  margin: 0 0 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.plano-semanal-page .plano-sugestao-bloco + .plano-sugestao-bloco {
  margin-top: 14px;
}
.plano-semanal-page .plano-sugestao-bloco ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.plano-semanal-page .plano-sugestao-bloco li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 14px;
  background: var(--yellow-light);
  border: 2px solid #FAE4A0;
  border-radius: var(--r-sm);
  font-size: 0.9rem;
  color: var(--yellow-dark);
  line-height: 1.4;
}
.plano-semanal-page .plano-sugestao-bloco .plano-sug-ico {
  flex-shrink: 0;
  font-size: 1.1rem;
  line-height: 1.2;
}
@media (max-width: 520px) {
  .plano-semanal-page .plano-atividades-grid {
    grid-template-columns: 1fr !important;
  }
}

/* === Manual interativo (dashboard — hub de perfis) ========================= */
.manual-app-wrap {
  margin-top: 28px;
  margin-bottom: 8px;
}
.manual-app {
  background: var(--white);
  border-radius: var(--r-lg);
  border: 2px solid var(--border);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.manual-app__head {
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 55%, var(--blue-deeper) 100%);
  color: white;
  padding: 18px 20px 20px;
  position: relative;
}
.manual-app__head::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M22 2L58 2L58 22C63 20 68 23 68 30C68 37 63 40 58 38L58 58L38 58C36 63 32 67 26 67C20 67 16 63 15 58L2 58L2 38C-3 36 -3 28 2 26C7 24 12 27 12 22L22 22Z' fill='none' stroke='rgba(255%2C255%2C255%2C0.12)' stroke-width='1.2'/%3E%3C/svg%3E");
  background-size: 56px 56px;
  opacity: 0.9;
  pointer-events: none;
}
.manual-app__head-inner {
  position: relative;
  z-index: 1;
}
.manual-app__title {
  font-size: 1.2rem;
  font-weight: var(--fw-black);
  margin: 0 0 6px;
  line-height: 1.25;
}
.manual-app__lead {
  margin: 0;
  font-size: 0.88rem;
  opacity: 0.95;
  line-height: 1.45;
  max-width: 36rem;
}
.manual-app__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.manual-app__action {
  padding: 8px 14px;
  border-radius: var(--r-full);
  border: 2px solid rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.15);
  color: white;
  font-size: 0.8rem;
  font-weight: var(--fw-bold);
  cursor: pointer;
  font-family: var(--font);
  transition: background var(--t-fast), border-color var(--t-fast);
}
.manual-app__action:hover {
  background: rgba(255, 255, 255, 0.28);
  border-color: rgba(255, 255, 255, 0.7);
}
.manual-app__list {
  padding: 12px 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.manual-acc {
  border: 2px solid var(--border);
  border-radius: var(--r-sm);
  background: var(--bg);
  overflow: hidden;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.manual-acc[open] {
  border-color: var(--blue-mid);
  box-shadow: var(--shadow-xs);
  background: var(--white);
}
.manual-acc summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 14px 14px 16px;
  font-weight: var(--fw-bold);
  font-size: 0.92rem;
  color: var(--text);
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.manual-acc summary::-webkit-details-marker { display: none; }
.manual-acc__num {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: var(--r-full);
  background: var(--blue-light);
  color: var(--blue-dark);
  font-size: 0.8rem;
  font-weight: var(--fw-black);
  display: flex;
  align-items: center;
  justify-content: center;
}
.manual-acc[open] .manual-acc__num {
  background: var(--blue);
  color: white;
}
.manual-acc__label { flex: 1; text-align: left; line-height: 1.3; }
.manual-acc__chev {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: var(--r-full);
  background: var(--blue-light);
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  transition: transform var(--t);
}
.manual-acc[open] .manual-acc__chev {
  transform: rotate(180deg);
  background: var(--blue);
  color: white;
}
.manual-acc__body {
  padding: 0 16px 16px 56px;
  font-size: 0.88rem;
  color: var(--text-md);
  line-height: 1.55;
}
.manual-acc__body p { margin: 0 0 10px; }
.manual-acc__body p:last-child { margin-bottom: 0; }
.manual-acc__body ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.manual-acc__body li {
  position: relative;
  padding-left: 22px;
}
.manual-acc__body li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--blue);
  font-weight: var(--fw-bold);
  font-size: 0.85rem;
}
.manual-acc__tip {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: var(--r-xs);
  background: var(--blue-light);
  border-left: 3px solid var(--blue);
  font-size: 0.82rem;
  color: var(--blue-dark);
}
.manual-acc__tip strong { font-weight: var(--fw-bold); }

/* === 13. Alerts / Flash Messages ========================================== */
.alert {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 18px;
  border-radius: var(--r-sm);
  font-size: 0.95rem;
  margin-bottom: 16px;
  border-width: 1px;
  border-style: solid;
}
.alert-success {
  background: var(--green-light);
  border-color: #A8D5AA;
  color: var(--green-dark);
}
.alert-error {
  background: var(--red-light);
  border-color: #F5B0AF;
  color: var(--red-dark);
}
.alert-warning {
  background: var(--yellow-light);
  border-color: #FAE4A0;
  color: var(--yellow-dark);
}
.alert-info {
  background: var(--blue-light);
  border-color: var(--blue-mid);
  color: var(--blue-dark);
}
.alert-icon { font-size: 1.2rem; flex-shrink: 0; }

/* === 14. Profile Avatar ==================================================== */
.avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: var(--fw-black);
  color: white;
  flex-shrink: 0;
}
.avatar-lg { width: 68px; height: 68px; font-size: 1.8rem; }
.avatar-sm { width: 38px; height: 38px; font-size: 1rem; }

.avatar-blue   { background: linear-gradient(135deg, var(--blue),   var(--blue-dark));  }
.avatar-green  { background: linear-gradient(135deg, var(--green),  var(--green-dark)); }
.avatar-yellow { background: linear-gradient(135deg, var(--yellow), var(--yellow-dark)); color: white; }
.avatar-red    { background: linear-gradient(135deg, var(--red),    var(--red-dark));   }
.avatar-purple { background: linear-gradient(135deg, #9C27B0, var(--purple));           }

/* === 15. Situation Card ==================================================== */
.sit-card {
  display: block;
  border-radius: var(--r);
  padding: 18px 20px;
  transition: all var(--t);
  text-decoration: none;
  border: 2px solid transparent;
}
.sit-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

/* === 16. Step List (activity passo a passo) ================================ */
.step-list { list-style: none; padding: 0; margin: 0; }
.step-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.step-list li:last-child { border-bottom: none; }
.step-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--blue);
  color: white;
  font-weight: var(--fw-bold);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* === 17. Bottom Navigation ================================================= */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--white);
  border-top: 1.5px solid var(--border);
  display: flex;
  z-index: 200;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.06);
}
.bn-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 2px;
  color: var(--text-xs);
  font-size: 0.62rem;
  font-weight: var(--fw-bold);
  text-decoration: none;
  transition: color var(--t-fast);
  gap: 3px;
  min-height: 60px;
}
.bn-item .bn-icon { font-size: 1.35rem; transition: transform var(--t-fast); }
.bn-item .bn-label {
  white-space: nowrap;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.15;
  text-align: center;
}
.bn-item:hover .bn-icon { transform: scale(1.12); }
.bn-item.active { color: var(--blue); }
.bn-item.active .bn-icon { filter: drop-shadow(0 2px 6px rgba(42,125,225,0.3)); }

button.bn-item {
  border: none;
  margin: 0;
  padding: 10px 2px;
  background: transparent;
  background-color: transparent;
  cursor: pointer;
  font: inherit;
  color: var(--text-xs);
  width: 100%;
  box-shadow: none;
  -webkit-tap-highlight-color: transparent;
  -webkit-appearance: none;
  appearance: none;
  border-radius: 0;
  outline: none;
}
/* Evita “caixa”/foco preso após toque (mobile) — só mostra foco por teclado */
button.bn-item:focus {
  outline: none;
  background: transparent;
}
button.bn-item:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: -2px;
}
button.bn-item:active {
  background: transparent;
  opacity: 1;
}

/* === 18. App Header ======================================================== */
.app-header {
  width: 100%;
  margin: 0;
  padding: 0;
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%);
  color: white;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(26,93,191,0.25);
}
.app-header-inner {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0 max(16px, env(safe-area-inset-right, 0px)) 0 max(16px, env(safe-area-inset-left, 0px));
  min-height: 56px;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-sizing: border-box;
}
.app-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  font-size: 1.25rem;
  font-weight: var(--fw-black);
  color: white;
  text-decoration: none;
  letter-spacing: -0.3px;
}
.header-actions { display: flex; align-items: center; gap: 6px; }
.header-btn {
  padding: 7px 12px;
  border-radius: 10px;
  background: rgba(255,255,255,0.15);
  color: white;
  font-size: 0.8rem;
  font-weight: var(--fw-bold);
  border: none;
  cursor: pointer;
  transition: background var(--t-fast);
  display: flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  backdrop-filter: blur(4px);
}
.header-btn:hover { background: rgba(255,255,255,0.28); }
.header-btn-autist {
  background: rgba(123,31,162,0.8);
  border: 1.5px solid rgba(255,255,255,0.25);
}
.header-btn-autist:hover { background: rgba(123,31,162,1); }
.header-btn-sos {
  background: rgba(229,57,53,0.92);
  border: 1.5px solid rgba(255,255,255,0.35);
  padding: 7px 11px;
  font-size: 1rem;
}
.header-btn-sos:hover {
  background: rgba(183,28,28,0.95);
}

/* Perfil TEA ativo (contexto global) */
.tea-active-strip {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 10px max(16px, env(safe-area-inset-right, 0px)) 10px max(16px, env(safe-area-inset-left, 0px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 0 rgba(0,0,0,0.04);
  box-sizing: border-box;
}
.tea-active-strip-main {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  text-decoration: none;
  color: var(--text);
  flex: 1;
}
.tea-active-strip-main:hover { opacity: 0.92; }
.tea-active-avatar {
  width: 36px;
  height: 36px;
  font-size: 0.95rem;
  flex-shrink: 0;
}
.tea-active-avatar-img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--blue-mid);
  flex-shrink: 0;
}
.tea-active-name {
  font-weight: var(--fw-black);
  font-size: 0.95rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tea-active-switch {
  flex-shrink: 0;
  font-size: 0.82rem;
  font-weight: var(--fw-bold);
  color: var(--blue);
  text-decoration: none;
  padding: 6px 10px;
  border-radius: var(--r-xs);
  border: 1.5px solid var(--blue-mid);
  background: var(--blue-light);
}
.tea-active-switch:hover {
  background: var(--blue-mid);
  color: white;
}

/* === 19. More Menu Drawer ================================================== */
.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.35);
  z-index: 300;
  backdrop-filter: blur(2px);
  display: none;
}
.drawer-overlay.open { display: block; }
.drawer-panel {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--white);
  border-radius: var(--r-lg) var(--r-lg) 0 0;
  z-index: 400;
  padding: 20px 16px 32px;
  max-height: 72vh;
  overflow-y: auto;
  transform: translateY(100%);
  transition: transform var(--t-slow);
}
.drawer-panel.open { transform: translateY(0); }
.drawer-handle {
  width: 40px;
  height: 4px;
  background: var(--border-dark);
  border-radius: var(--r-full);
  margin: 0 auto 20px;
}
.drawer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.drawer-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 14px 6px;
  border-radius: var(--r-sm);
  background: var(--bg);
  text-decoration: none;
  color: var(--text-md);
  font-size: 0.72rem;
  font-weight: var(--fw-bold);
  transition: all var(--t-fast);
}
.drawer-item .di-icon { font-size: 1.6rem; }
.drawer-item:hover { background: var(--blue-light); color: var(--blue); }

/* === 20. FAB Suporte / legado assistente — mesma posição ================= */
.assistant-fab,
.support-fab {
  position: fixed;
  bottom: calc(88px + env(safe-area-inset-bottom, 0px));
  right: calc(18px + env(safe-area-inset-right, 0px));
  z-index: 220;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--purple) 0%, #5E1480 100%);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  box-shadow: 0 4px 22px rgba(123,31,162,0.35);
  border: 3px solid white;
  transition: transform var(--t), box-shadow var(--t), opacity 0.2s ease, visibility 0.2s ease;
  text-decoration: none;
  animation: pulse-assistant 2.5s infinite;
  cursor: pointer;
  padding: 0;
  font-family: inherit;
  -webkit-appearance: none;
  appearance: none;
}
.assistant-fab:hover,
.support-fab:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 28px rgba(123,31,162,0.45);
}

@keyframes pulse-assistant {
  0%   { box-shadow: 0 0 0 0 rgba(123,31,162,0.38); }
  70%  { box-shadow: 0 0 0 10px rgba(123,31,162,0); }
  100% { box-shadow: 0 0 0 0 rgba(123,31,162,0);   }
}

/* Com o modal aberto, o FAB some: evita o círculo roxo por cima do formulário.
   Fechar: X no cabeçalho, clique fora ou ESC. */
.support-fab.support-fab--modal-open {
  animation: none !important;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: scale(0.92);
}
body.autist-layout .support-fab {
  bottom: calc(76px + env(safe-area-inset-bottom, 0px));
}

/* --- Modal de suporte (FAB → popup) ------------------------------------ */
body.support-modal--body-open {
  overflow: hidden;
  touch-action: none;
}

.support-modal[hidden] {
  display: none !important;
}

.support-modal {
  position: fixed;
  inset: 0;
  z-index: 330;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.22s ease;
}

.support-modal.support-modal--visible {
  opacity: 1;
  pointer-events: auto;
}

.support-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.48);
  backdrop-filter: blur(2px);
}

.support-modal__panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 440px;
  max-height: min(92vh, 640px);
  overflow: auto;
  margin: 0 auto;
  padding: 0 0 calc(12px + env(safe-area-inset-bottom, 0));
  background: var(--white);
  border-radius: 22px 22px 0 0;
  box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.18);
  border: 1px solid var(--border);
  transform: translateY(100%);
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.support-modal.support-modal--visible .support-modal__panel {
  transform: translateY(0);
}

@media (min-width: 520px) {
  .support-modal {
    align-items: center;
    padding: 24px 16px;
  }
  .support-modal__panel {
    border-radius: 22px;
    margin: 0;
    padding-bottom: 0;
    transform: translateY(16px) scale(0.96);
    opacity: 0;
    transition: transform 0.26s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.22s ease;
  }
  .support-modal.support-modal--visible .support-modal__panel {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

.support-modal__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 18px 12px;
  background: linear-gradient(145deg, var(--purple) 0%, #5e1480 100%);
  color: #fff;
}

.support-modal__title {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 800;
  line-height: 1.2;
}

.support-modal__subtitle {
  margin: 6px 0 0;
  font-size: 0.8rem;
  line-height: 1.45;
  opacity: 0.95;
}

.support-modal__x {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.support-modal__x:hover {
  background: rgba(255, 255, 255, 0.28);
}

.support-modal__alert {
  margin: 12px 18px 0;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.4;
}

.support-modal__alert--ok {
  background: var(--green-light);
  color: var(--green-dark);
  border: 1.5px solid var(--green);
}

.support-modal__alert--err {
  background: var(--red-light);
  color: var(--red-dark);
  border: 1.5px solid var(--red);
}

.support-modal__thread {
  margin: 12px 18px 0;
  max-height: 140px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.support-modal__bubble {
  border-radius: 14px;
  padding: 10px 12px;
  font-size: 0.88rem;
  line-height: 1.45;
}

.support-modal__bubble--user {
  background: var(--blue-light);
  border: 1px solid var(--blue-mid);
  align-self: flex-end;
  max-width: 95%;
}

.support-modal__bubble-meta {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--blue-dark);
  margin-bottom: 4px;
  opacity: 0.85;
}

.support-modal__bubble-body {
  color: var(--text-md);
  white-space: pre-wrap;
  word-break: break-word;
}

.support-modal__form {
  padding: 14px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.support-modal__label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-md);
  margin-bottom: 4px;
}

.support-modal__select,
.support-modal__textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 14px;
  border: 2px solid var(--border);
  border-radius: 14px;
  font-size: 0.95rem;
  font-family: inherit;
  background: var(--bg);
}

.support-modal__textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.45;
}

.support-modal__submit {
  width: 100%;
  padding: 14px 16px;
  border: none;
  border-radius: 16px;
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  color: #fff;
  background: linear-gradient(145deg, var(--blue) 0%, #144da0 100%);
  box-shadow: 0 4px 16px rgba(42, 125, 225, 0.35);
}

.support-modal__submit:hover:not(:disabled) {
  filter: brightness(1.05);
}

.support-modal__submit:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.support-modal__footer {
  text-align: center;
  font-size: 0.82rem;
  margin: 0 18px 16px;
}

.support-modal__link {
  color: var(--blue);
  font-weight: 700;
  text-decoration: none;
}

.support-modal__link:hover {
  text-decoration: underline;
}

/* === 21. Progress Bar ====================================================== */
.progress-track {
  background: var(--bg-dark);
  border-radius: var(--r-full);
  height: 8px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  border-radius: var(--r-full);
  background: linear-gradient(90deg, var(--blue), var(--green));
  transition: width 0.6s ease;
}

/* === 22. Divider =========================================================== */
.divider {
  border: none;
  border-top: 1.5px solid var(--border);
  margin: 20px 0;
}

/* === 23. Skeleton Loading ================================================== */
.skeleton {
  background: linear-gradient(90deg, var(--bg) 25%, var(--bg-dark) 50%, var(--bg) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--r-sm);
}
@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* === 24. Animations ======================================================== */
.fade-up {
  animation: fadeUp 0.4s ease both;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.bounce-in {
  animation: bounceIn 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
}
@keyframes bounceIn {
  from { opacity: 0; transform: scale(0.85); }
  to   { opacity: 1; transform: scale(1); }
}

/* === 25. Utility Helpers =================================================== */
.flex-center  { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-start   { display: flex; align-items: center; gap: 10px; }
.gap-sm  { gap: 8px;  }
.gap     { gap: 14px; }
.gap-lg  { gap: 20px; }
.mt-sm   { margin-top: 8px;  }
.mt      { margin-top: 16px; }
.mt-lg   { margin-top: 24px; }
.mb-sm   { margin-bottom: 8px;  }
.mb      { margin-bottom: 16px; }
.mb-lg   { margin-bottom: 24px; }
.text-center { text-align: center; }
.w-full  { width: 100%; }
.truncate { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.grid-2  { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.grid-3  { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; }

@media (min-width: 480px) {
  .sm-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
  .sm-grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; }
  .sm-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
}
@media (min-width: 640px) {
  .md-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
  .md-grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
}

/* === 26. Autist Mode ======================================================= */
.autist-layout {
  background: linear-gradient(180deg, #F0EBFF 0%, #F5F7FA 100%);
  min-height: 100vh;
}
.autist-header {
  width: 100%;
  margin: 0;
  box-sizing: border-box;
  background: linear-gradient(135deg, #6A1B9A, #4A148C);
  color: white;
  padding: 14px max(16px, env(safe-area-inset-right, 0px)) 14px max(16px, env(safe-area-inset-left, 0px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 16px rgba(106,27,154,0.3);
}
.autist-header-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  text-decoration: none;
  color: inherit;
}
.autist-content { padding: 20px 16px 100px; max-width: 520px; margin: 0 auto; }
.autist-big-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 22px 16px;
  border-radius: 20px;
  border: none;
  cursor: pointer;
  transition: all 0.15s;
  text-decoration: none;
  font-size: 1.3rem;
  font-weight: var(--fw-black);
  min-height: 110px;
  text-align: center;
  line-height: 1.3;
}
.autist-big-btn .abb-icon { font-size: 2.8rem; line-height: 1; }
.autist-big-btn:active { transform: scale(0.95); }
.autist-big-btn:hover  { transform: translateY(-2px); box-shadow: var(--shadow-lg); }

.abb-purple { background: linear-gradient(135deg, #EDE7F6, #D1C4E9); color: #4A148C; }
.abb-green  { background: linear-gradient(135deg, #E8F5E9, #C8E6C9); color: #1B5E20; }
.abb-red    { background: linear-gradient(135deg, #FFEBEE, #FFCDD2); color: #B71C1C; }
.abb-yellow { background: linear-gradient(135deg, #FFFDE7, #FFF9C4); color: #E65100; }
.abb-blue   { background: linear-gradient(135deg, #E3F2FD, #BBDEFB); color: #0D47A1; }
/* Brincar (grid na home do Modo Autista — mesmo tom do antigo CTA largura total) */
.abb-play {
  background: linear-gradient(135deg, #f3e5f5, #e1bee7);
  color: #4a148c;
  border: 2px solid #ce93d8;
  box-shadow: 0 4px 14px rgba(106, 27, 154, 0.12);
}

/* CTA largura total — Modo Autista (ex.: Brincar agora) */
.autist-play-cta {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  box-sizing: border-box;
  margin: 0 0 8px;
  padding: 16px 20px;
  border-radius: 16px;
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: var(--fw-black);
  color: #4a148c;
  background: linear-gradient(135deg, #f3e5f5, #e1bee7);
  border: 2px solid #ce93d8;
  box-shadow: 0 4px 14px rgba(106, 27, 154, 0.15);
  transition: transform 0.15s, box-shadow 0.15s;
}
.autist-play-cta:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}
.autist-play-cta:active {
  transform: scale(0.98);
}
.autist-play-cta-ico {
  font-size: 1.5rem;
  line-height: 1;
}

.autist-card {
  background: white;
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 4px 16px rgba(106,27,154,0.08);
  margin-bottom: 16px;
}

.autist-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: white;
  border-top: 2px solid #EDE7F6;
  display: flex;
  box-shadow: 0 -4px 16px rgba(106,27,154,0.08);
  z-index: 200;
}
.abn-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 4px;
  text-decoration: none;
  color: #7E57C2;
  font-size: 0.65rem;
  font-weight: var(--fw-black);
  gap: 3px;
  min-height: 64px;
  justify-content: center;
  transition: all 0.15s;
}
.abn-item .abn-icon { font-size: 1.7rem; }
.abn-item.active  { color: #4A148C; background: #F3E5F5; }
.abn-item:hover   { background: #F3E5F5; }

/* === 27. Hero Welcome Card ================================================= */
.hero-card {
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 60%, var(--blue-deeper) 100%);
  border-radius: var(--r-lg);
  padding: 28px 24px;
  color: white;
  position: relative;
  overflow: hidden;
  margin-bottom: 24px;
}
.hero-card::before {
  content: '🧩';
  position: absolute;
  right: -10px;
  top: -10px;
  font-size: 5rem;
  opacity: 0.12;
  transform: rotate(15deg);
}
.hero-card::after {
  content: '🧩';
  position: absolute;
  right: 50px;
  bottom: -20px;
  font-size: 4rem;
  opacity: 0.08;
  transform: rotate(-10deg);
}
.hero-greeting { font-size: 0.9rem; opacity: 0.85; margin-bottom: 4px; }
.hero-name     { font-size: 1.9rem; font-weight: var(--fw-black); line-height: 1.15; }
.hero-date     { font-size: 0.85rem; opacity: 0.7; margin-top: 6px; }

/* === 28. Profile Card ====================================================== */
.profile-card {
  background: var(--white);
  border-radius: var(--r);
  border: 2px solid var(--border);
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: all var(--t);
  text-decoration: none;
  cursor: pointer;
}
.profile-card:hover { border-color: var(--blue-mid); box-shadow: var(--shadow); transform: translateY(-1px); }
.profile-info { flex: 1; min-width: 0; }
.profile-name { font-size: 1.1rem; font-weight: var(--fw-bold); color: var(--text); }
.profile-meta { font-size: 0.82rem; color: var(--text-sm); margin-top: 2px; }

/* === 29. Routine Item ====================================================== */
.routine-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: var(--r-sm);
  border: 2px solid var(--border);
  background: var(--white);
  transition: all var(--t-fast);
  margin-bottom: 8px;
}
.routine-item.done {
  background: var(--green-light);
  border-color: #A8D5AA;
}
.routine-item .ri-check {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 2.5px solid var(--border-dark);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--t-fast);
}
.routine-item.done .ri-check {
  background: var(--green);
  border-color: var(--green);
  color: white;
}

/* === 30. Print Layout Override ============================================= */
@media print {
  .app-header, .bottom-nav, .assistant-fab, .support-fab, .support-modal, .broadcast-float, .no-print { display: none !important; }
  body { background: white; font-size: 12px; }
  .app-wrap { padding: 0; max-width: 100%; }
}

/* === 31. Focus / Accessibility ============================================= */
:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 2px;
  border-radius: var(--r-xs);
}

/* === 32. Scrollbar ========================================================= */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border-dark); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--blue-mid); }

/* === 33. Funil (quiz / landing) ============================================= */
.funnel-progress-wrap {
  margin-bottom: 18px;
}
.funnel-progress-bar {
  height: 8px;
  border-radius: var(--r-full);
  background: var(--bg-dark);
  overflow: hidden;
}
.funnel-progress-fill {
  height: 100%;
  border-radius: var(--r-full);
  background: linear-gradient(90deg, var(--blue-dark), var(--blue));
  transition: width var(--t-slow);
}
.funnel-progress-label {
  font-size: 0.75rem;
  color: var(--text-sm);
  margin-top: 6px;
  text-align: right;
}
.funnel-q-title {
  font-size: 1.05rem;
  font-weight: var(--fw-black);
  color: var(--text);
  margin-bottom: 14px;
  line-height: 1.35;
}
.funnel-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: var(--r-sm);
  border: 2px solid var(--border);
  background: var(--white);
  cursor: pointer;
  transition: border-color var(--t-fast), background var(--t-fast);
  font-size: 0.92rem;
  color: var(--text-md);
}
.funnel-option:hover {
  border-color: var(--blue-mid);
  background: var(--blue-light);
}
.funnel-option input { accent-color: var(--blue); flex-shrink: 0; }
.funnel-option:has(input:checked) {
  border-color: var(--blue);
  background: var(--blue-light);
}
.funnel-sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  border-top: 1px solid var(--border);
  box-shadow: 0 -8px 32px rgba(42, 125, 225, 0.12);
  display: flex;
  justify-content: center;
}
.funnel-sticky-cta .btn { max-width: 400px; }
.funnel-section {
  margin-bottom: 22px;
}
.funnel-section h2 {
  font-size: 1.05rem;
  font-weight: var(--fw-black);
  color: var(--text);
  margin-bottom: 10px;
}
.funnel-section p, .funnel-section li {
  font-size: 0.9rem;
  color: var(--text-md);
  line-height: 1.55;
}
.funnel-badge-hot {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: var(--fw-bold);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: var(--green-light);
  color: var(--green-dark);
  padding: 4px 10px;
  border-radius: var(--r-full);
  margin-bottom: 8px;
}
.funnel-price-old {
  text-decoration: line-through;
  color: var(--text-xs);
  font-size: 0.85rem;
}
.funnel-price-now {
  font-size: 1.65rem;
  font-weight: var(--fw-black);
  color: var(--blue-dark);
}
.funnel-plan-card {
  border: 2px solid var(--border);
  border-radius: var(--r);
  padding: 16px;
  background: var(--white);
  position: relative;
}
.funnel-plan-card--featured {
  border-color: var(--blue);
  box-shadow: var(--shadow);
}
.funnel-plan-featured-tag {
  position: absolute;
  top: -11px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--blue);
  color: white;
  font-size: 0.7rem;
  font-weight: var(--fw-bold);
  padding: 4px 12px;
  border-radius: var(--r-full);
  white-space: nowrap;
}

/* Landing /lp/venda — cards, ícones e preview do app */
.funnel-landing {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.funnel-lp-hero {
  text-align: center;
  margin-bottom: 4px;
}
.funnel-lp-hero__chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
}
.funnel-lp-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: var(--fw-bold);
  color: var(--blue-dark);
  background: var(--blue-light);
  border: 1px solid var(--blue-mid);
  padding: 6px 10px;
  border-radius: var(--r-full);
}
.funnel-lp-chip i {
  font-size: 0.8rem;
  opacity: 0.9;
}
.funnel-lp-card {
  background: linear-gradient(145deg, var(--white) 0%, var(--bg) 100%);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 18px 16px;
  box-shadow: var(--shadow-xs);
}
.funnel-lp-card__head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}
.funnel-lp-card__icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  color: var(--blue-dark);
  background: var(--blue-light);
  border: 1px solid var(--blue-mid);
}
.funnel-lp-card__icon--amber {
  color: var(--yellow-dark);
  background: var(--yellow-light);
  border-color: rgba(251, 192, 45, 0.45);
}
.funnel-lp-card__icon--green {
  color: var(--green-dark);
  background: var(--green-light);
  border-color: rgba(67, 160, 71, 0.35);
}
.funnel-lp-card__icon--teal {
  color: var(--teal);
  background: var(--teal-light);
  border-color: rgba(0, 121, 107, 0.25);
}
.funnel-lp-card__icon--purple {
  color: var(--purple);
  background: var(--purple-light);
  border-color: rgba(123, 31, 162, 0.2);
}
.funnel-lp-card__titles h2 {
  font-size: 1.05rem;
  font-weight: var(--fw-black);
  color: var(--text);
  margin: 0 0 2px;
  line-height: 1.25;
}
.funnel-lp-card__sub {
  font-size: 0.78rem;
  font-weight: var(--fw-bold);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-sm);
  margin: 0;
}
.funnel-lp-card__body p,
.funnel-lp-card__body li {
  font-size: 0.9rem;
  color: var(--text-md);
  line-height: 1.55;
}
.funnel-lp-card__body p {
  margin: 0 0 10px;
}
.funnel-lp-card__body p:last-child {
  margin-bottom: 0;
}
.funnel-lp-quiz-teaser {
  display: block;
  margin-top: 14px;
  padding: 14px;
  border-radius: var(--r);
  border: 2px dashed var(--blue-mid);
  background: var(--white);
  text-decoration: none;
  color: inherit;
  transition: border-color var(--t), background var(--t), box-shadow var(--t);
}
.funnel-lp-quiz-teaser:hover {
  border-color: var(--blue);
  background: var(--blue-light);
  box-shadow: var(--shadow-sm);
}
.funnel-lp-quiz-teaser__label {
  font-size: 0.68rem;
  font-weight: var(--fw-bold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--blue-dark);
  margin-bottom: 8px;
}
.funnel-lp-quiz-teaser__q {
  font-size: 0.95rem;
  font-weight: var(--fw-bold);
  color: var(--text);
  margin-bottom: 10px;
  line-height: 1.35;
}
.funnel-lp-quiz-teaser__opts {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}
.funnel-lp-quiz-teaser__opt {
  flex: 1;
  text-align: center;
  font-size: 0.8rem;
  font-weight: var(--fw-bold);
  color: var(--text-md);
  padding: 8px 6px;
  border-radius: var(--r-sm);
  background: var(--bg);
  border: 1px solid var(--border);
}
.funnel-lp-quiz-teaser__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: var(--fw-bold);
  color: var(--blue);
}
.funnel-lp-quiz-teaser__cta i {
  font-size: 0.75rem;
}
.funnel-lp-phone-wrap {
  margin-top: 16px;
  display: flex;
  justify-content: center;
}
.funnel-lp-phone-shot {
  margin: 16px 0 0;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  background: var(--border);
}
.funnel-lp-phone-shot img {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: middle;
}
.funnel-lp-phone {
  width: 100%;
  max-width: 260px;
  background: linear-gradient(160deg, #334155 0%, #1e293b 100%);
  border-radius: 28px;
  padding: 10px;
  box-shadow: var(--shadow-md), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
.funnel-lp-phone__notch {
  width: 36%;
  height: 22px;
  margin: 0 auto 8px;
  background: #0f172a;
  border-radius: 0 0 14px 14px;
}
.funnel-lp-phone__screen {
  background: var(--white);
  border-radius: 18px;
  overflow: hidden;
  min-height: 200px;
}
.funnel-lp-ui-bar {
  background: linear-gradient(90deg, var(--blue-dark), var(--blue));
  color: white;
  font-size: 0.65rem;
  font-weight: var(--fw-bold);
  padding: 8px 12px;
  letter-spacing: 0.02em;
}
.funnel-lp-ui-body {
  padding: 10px 12px 14px;
}
.funnel-lp-ui-title {
  font-size: 0.72rem;
  font-weight: var(--fw-bold);
  color: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}
.funnel-lp-ui-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: var(--r-sm);
  background: var(--bg);
  border: 1px solid var(--border);
  margin-bottom: 6px;
  font-size: 0.82rem;
  font-weight: var(--fw-medium);
  color: var(--text);
}
.funnel-lp-ui-row:last-child {
  margin-bottom: 0;
}
.funnel-lp-ui-row time {
  margin-left: auto;
  font-size: 0.7rem;
  color: var(--text-sm);
  font-weight: var(--fw-bold);
}
.funnel-lp-ui-row--done {
  background: var(--green-light);
  border-color: rgba(67, 160, 71, 0.35);
}
.funnel-lp-ui-emo {
  display: flex;
  gap: 6px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}
.funnel-lp-ui-emo span {
  flex: 1;
  text-align: center;
  font-size: 1.15rem;
  padding: 6px 4px;
  border-radius: var(--r-sm);
  background: var(--yellow-light);
  border: 1px solid rgba(251, 192, 45, 0.4);
}
.funnel-lp-features {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}
.funnel-lp-feature {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0;
}
.funnel-lp-feature__ico {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: var(--r-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  color: var(--blue-dark);
  background: var(--blue-light);
}
.funnel-lp-feature:nth-child(2) .funnel-lp-feature__ico {
  color: var(--teal);
  background: var(--teal-light);
}
.funnel-lp-feature:nth-child(3) .funnel-lp-feature__ico {
  color: var(--purple);
  background: var(--purple-light);
}
.funnel-lp-feature:nth-child(4) .funnel-lp-feature__ico {
  color: var(--green-dark);
  background: var(--green-light);
}
.funnel-lp-feature:nth-child(5) .funnel-lp-feature__ico {
  color: var(--orange);
  background: var(--orange-light);
}
.funnel-lp-feature__text {
  font-size: 0.9rem;
  color: var(--text-md);
  line-height: 1.5;
  padding-top: 6px;
}
.funnel-lp-benefits {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.funnel-lp-benefit {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-md);
  line-height: 1.5;
}
.funnel-lp-benefit i {
  flex-shrink: 0;
  margin-top: 3px;
  color: var(--green);
  font-size: 1rem;
}

/* Funil quiz: telas inativas ficam fora do layout (evita vazar conteúdo da tela de resultado) */
.quiz-screen.quiz-screen--off {
  display: none !important;
}

/* Quiz funil — carregamento: % + barra estilo “pill” (duração = LOADING_MS no quiz.php, hoje 3s) */
.funnel-quiz-loading {
  text-align: center;
  padding: 28px 16px 40px;
  max-width: 420px;
  margin: 0 auto;
  width: 100%;
}
.funnel-quiz-loading__title {
  margin: 0 0 8px;
  font-size: 1.15rem;
  font-weight: var(--fw-black);
  color: var(--text);
  line-height: 1.3;
}
.funnel-quiz-loading__sub {
  margin: 0 0 14px;
  font-size: 0.9rem;
  color: var(--text-sm);
  line-height: 1.45;
}
.funnel-quiz-loading__percent {
  margin: 0 0 12px;
  font-size: clamp(1.35rem, 5vw, 1.65rem);
  font-weight: var(--fw-black);
  letter-spacing: -0.03em;
  color: var(--text);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.funnel-quiz-loading__bar-track {
  text-align: left;
  padding: 5px;
  border-radius: 999px;
  background: var(--white);
  border: 3px solid var(--text);
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.06);
}
.funnel-quiz-loading__bar-inner {
  height: 16px;
  border-radius: 999px;
  overflow: hidden;
  background: var(--bg-dark);
}
.funnel-quiz-loading__bar-fill {
  display: block;
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--blue-mid) 0%, var(--blue) 50%, var(--blue-dark) 100%);
  transition: width 3s cubic-bezier(0.33, 1, 0.68, 1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.funnel-quiz-loading.is-animating .funnel-quiz-loading__bar-fill {
  width: 100%;
}
@media (prefers-reduced-motion: reduce) {
  .funnel-quiz-loading__bar-fill {
    transition-duration: 0.08s;
  }
}

/* Quiz — tela de resultado (visual, alinhado à landing) */
.funnel-quiz-result {
  --quiz-accent: var(--blue-dark);
  --quiz-accent-bg: var(--blue-light);
  --quiz-accent-mid: var(--blue-mid);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.funnel-quiz-result--rotina_desorganizada {
  --quiz-accent: #C17800;
  --quiz-accent-bg: var(--yellow-light);
  --quiz-accent-mid: rgba(251, 192, 45, 0.5);
}
.funnel-quiz-result--comunicacao_desenvolvimento {
  --quiz-accent: var(--teal);
  --quiz-accent-bg: var(--teal-light);
  --quiz-accent-mid: rgba(0, 121, 107, 0.28);
}
.funnel-quiz-result--sobrecarga_emocional {
  --quiz-accent: #5e35b1;
  --quiz-accent-bg: #ede7f6;
  --quiz-accent-mid: rgba(94, 53, 177, 0.22);
}
.funnel-quiz-result--alta_dependencia {
  --quiz-accent: var(--purple);
  --quiz-accent-bg: var(--purple-light);
  --quiz-accent-mid: rgba(123, 31, 162, 0.22);
}
.funnel-quiz-result--desenvolvimento_equilibrado {
  --quiz-accent: var(--green-dark);
  --quiz-accent-bg: var(--green-light);
  --quiz-accent-mid: rgba(67, 160, 71, 0.35);
}
.funnel-quiz-result__hero {
  text-align: center;
  padding: 8px 4px 4px;
}
.funnel-quiz-result__icon-wrap {
  width: 64px;
  height: 64px;
  margin: 0 auto 12px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.65rem;
  color: var(--quiz-accent);
  background: var(--quiz-accent-bg);
  border: 2px solid var(--quiz-accent-mid);
  box-shadow: var(--shadow-xs);
}
.funnel-quiz-result__title {
  margin: 0 !important;
  font-size: 1.28rem !important;
  line-height: 1.3 !important;
  color: var(--text) !important;
}
.funnel-quiz-result__badge {
  display: inline-block;
  margin-top: 8px;
  font-size: 0.68rem;
  font-weight: var(--fw-bold);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--quiz-accent);
  background: var(--quiz-accent-bg);
  padding: 4px 10px;
  border-radius: var(--r-full);
  border: 1px solid var(--quiz-accent-mid);
}
.funnel-quiz-result__grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.funnel-quiz-result-card {
  background: linear-gradient(145deg, var(--white) 0%, var(--bg) 100%);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 14px 14px 16px;
  box-shadow: var(--shadow-xs);
  border-left: 4px solid var(--quiz-accent);
}
.funnel-quiz-result-card__head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  font-size: 0.72rem;
  font-weight: var(--fw-black);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-sm);
}
.funnel-quiz-result-card__head i {
  width: 28px;
  height: 28px;
  border-radius: var(--r-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: var(--quiz-accent);
  background: var(--quiz-accent-bg);
  border: 1px solid var(--quiz-accent-mid);
}
.funnel-quiz-result-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-md);
  line-height: 1.55;
}
.funnel-quiz-result__pillars {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}
.funnel-quiz-result-pillar {
  flex: 1 1 calc(33.333% - 8px);
  min-width: 92px;
  text-align: center;
  padding: 10px 8px;
  border-radius: var(--r);
  background: var(--white);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-xs);
}
.funnel-quiz-result-pillar i {
  display: block;
  margin: 0 auto 6px;
  font-size: 1.1rem;
  color: var(--blue);
}
.funnel-quiz-result-pillar span {
  font-size: 0.72rem;
  font-weight: var(--fw-bold);
  color: var(--text-md);
  line-height: 1.3;
}
.funnel-quiz-result__mock-wrap {
  display: flex;
  justify-content: center;
  margin: 2px 0;
}
.funnel-quiz-result__mock-wrap .funnel-lp-phone {
  max-width: 220px;
}
.funnel-quiz-result__mock-wrap .funnel-lp-phone__screen {
  min-height: 168px;
}
.funnel-quiz-result__summary {
  border-radius: var(--r-lg);
  padding: 16px;
  background: linear-gradient(135deg, var(--quiz-accent-bg) 0%, var(--blue-light) 100%);
  border: 2px solid var(--quiz-accent-mid);
  box-shadow: var(--shadow-xs);
}
.funnel-quiz-result__summary-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 12px;
}
.funnel-quiz-result__summary-top i {
  width: 36px;
  height: 36px;
  border-radius: var(--r-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  color: var(--blue-dark);
  background: var(--white);
  border: 2px solid var(--blue-mid);
  box-shadow: var(--shadow-xs);
}
.funnel-quiz-result__summary p {
  margin: 0;
  font-size: 0.9rem;
  font-weight: var(--fw-medium);
  color: var(--text);
  line-height: 1.5;
  text-align: center;
}
.funnel-quiz-result__cta {
  margin-top: 4px;
}

/* === Admin: aviso flutuante (broadcast) — topo, só área logada ============= */
.broadcast-float {
  position: fixed;
  z-index: 105;
  left: 12px;
  right: 12px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
  animation: broadcast-float-in-top 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.broadcast-float--top-main {
  top: calc(58px + env(safe-area-inset-top, 0px));
}
.broadcast-float--top-main-strip {
  top: calc(124px + env(safe-area-inset-top, 0px));
}
.broadcast-float--top-autist {
  top: calc(64px + env(safe-area-inset-top, 0px));
}
.broadcast-float__inner {
  position: relative;
  background: linear-gradient(145deg, #1a4d8f 0%, var(--blue) 100%);
  color: #fff;
  padding: 14px 40px 14px 16px;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(26, 93, 191, 0.35), 0 2px 12px rgba(0, 0, 0, 0.12);
  border: 2px solid rgba(255, 255, 255, 0.22);
}
.broadcast-float__title {
  margin: 0 0 6px;
  font-size: 0.95rem;
  font-weight: var(--fw-black);
  letter-spacing: -0.02em;
}
.broadcast-float__body {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.45;
  opacity: 0.95;
}
.broadcast-float__close {
  position: absolute;
  top: 8px;
  right: 10px;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: background var(--t-fast);
}
.broadcast-float__close:hover {
  background: rgba(255, 255, 255, 0.28);
}
@keyframes broadcast-float-in-top {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
body.theme-calm .broadcast-float__inner {
  background: linear-gradient(145deg, #37474f 0%, #546e7a 100%);
  border-color: rgba(255, 255, 255, 0.15);
}

/* === Página indisponível (503 — manutenção / atualização) =================== */
.app-unavailable-page {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  position: relative;
  overflow-x: hidden;
}

.app-unavailable-page--maintenance {
  background: linear-gradient(160deg, var(--blue-dark) 0%, var(--blue) 32%, var(--bg) 32%);
}

.app-unavailable-page--update {
  background: linear-gradient(160deg, #00695c 0%, var(--teal) 30%, var(--bg) 30%);
}

@media (max-width: 480px) {
  .app-unavailable-page--maintenance {
    background: linear-gradient(160deg, var(--blue-dark) 0%, var(--blue) 26%, var(--bg) 26%);
  }
  .app-unavailable-page--update {
    background: linear-gradient(160deg, #00695c 0%, var(--teal) 24%, var(--bg) 24%);
  }
}

.app-unavailable__deco {
  position: fixed;
  pointer-events: none;
  user-select: none;
  font-size: clamp(4rem, 18vw, 9rem);
  opacity: 0.07;
  z-index: 0;
}
.app-unavailable__deco--1 {
  top: -1rem;
  right: -1rem;
  transform: rotate(18deg);
}
.app-unavailable__deco--2 {
  top: 5rem;
  left: -2rem;
  transform: rotate(-12deg);
}

.app-unavailable__layout {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 1rem 2rem;
  gap: 1.5rem;
}

.app-unavailable__brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  color: var(--white);
  text-align: center;
}
.app-unavailable__logo-img {
  height: 64px;
  width: auto;
  display: block;
  filter: drop-shadow(0 2px 14px rgba(0, 0, 0, 0.15));
}

.app-unavailable__card {
  width: 100%;
  max-width: 420px;
  background: var(--surface);
  border-radius: var(--r-xl);
  padding: 1.75rem 1.5rem 1.5rem;
  box-shadow: var(--shadow-lg), 0 24px 48px rgba(26, 93, 191, 0.15);
  border: 1px solid var(--border);
  text-align: center;
  animation: app-unavailable-card-in 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.app-unavailable-page--update .app-unavailable__card {
  box-shadow: var(--shadow-lg), 0 24px 48px rgba(0, 121, 107, 0.14);
}

.app-unavailable__card-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1rem;
}

.app-unavailable__icon {
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.25rem;
  border-radius: var(--r-lg);
  background: var(--blue-light);
  box-shadow: var(--shadow-sm);
}

.app-unavailable-page--update .app-unavailable__icon {
  background: var(--teal-light);
}

.app-unavailable__badge {
  font-size: 0.72rem;
  font-weight: var(--fw-black);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.35rem 0.75rem;
  border-radius: var(--r-full);
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%);
  color: var(--white);
}

.app-unavailable-page--update .app-unavailable__badge {
  background: linear-gradient(135deg, var(--teal) 0%, #004d40 100%);
}

.app-unavailable__title {
  margin: 0 0 0.65rem;
  font-size: 1.35rem;
  font-weight: var(--fw-black);
  color: var(--text);
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.app-unavailable__text {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--text-md);
}

.app-unavailable__hint {
  margin: 1.15rem 0 0;
  font-size: 0.75rem;
  color: var(--text-xs);
}

.app-unavailable__footer {
  margin: 0;
  font-size: 0.8rem;
  color: var(--text-xs);
}

@keyframes app-unavailable-card-in {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Trial + modal de upgrade (plano expirado — somente leitura) */
.trial-banner {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
  padding: 0.65rem 1rem;
  margin-bottom: 1rem;
  border-radius: var(--r-md, 12px);
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.35;
  position: relative;
}
.trial-banner__text {
  flex: 1 1 10rem;
  min-width: 0;
}
.trial-banner--light {
  background: linear-gradient(135deg, #fff8e1 0%, #ffecb3 100%);
  color: #5d4037;
  border: 1px solid rgba(251, 192, 45, 0.45);
}
.trial-banner--strong {
  background: linear-gradient(135deg, #ffebee 0%, #ffcdd2 100%);
  color: #b71c1c;
  border: 1px solid rgba(229, 57, 53, 0.35);
}

.trial-banner--soft {
  background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
  color: #0d47a1;
  border: 1px solid rgba(33, 150, 243, 0.35);
}
.trial-banner__link {
  margin-left: auto;
  font-weight: 800;
  color: var(--blue, #2a7de1);
  text-decoration: underline;
}
.trial-banner__link:hover {
  opacity: 0.9;
}

.trial-banner__close {
  flex-shrink: 0;
  margin: 0;
  padding: 0.2rem 0.45rem;
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 1.35rem;
  line-height: 1;
  color: inherit;
  opacity: 0.65;
  border-radius: var(--r-xs, 6px);
}
.trial-banner__close:hover {
  opacity: 1;
  background: rgba(0, 0, 0, 0.06);
}

.trial-banner__progress {
  flex-basis: 100%;
  margin: 0.35rem 0 0;
  font-size: 0.82rem;
  font-weight: 600;
  opacity: 0.95;
}

.subscription-modal[hidden] {
  display: none !important;
}
.subscription-modal:not([hidden]) {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: fixed;
  inset: 0;
  z-index: 10050;
  box-sizing: border-box;
  padding: max(1rem, env(safe-area-inset-top, 0px))
    max(1.25rem, env(safe-area-inset-right, 0px))
    max(1.25rem, env(safe-area-inset-bottom, 0px))
    max(1.25rem, env(safe-area-inset-left, 0px));
}
.subscription-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
}
.subscription-modal__dialog {
  position: relative;
  z-index: 1;
  box-sizing: border-box;
  width: min(100%, 420px);
  max-width: 100%;
  max-height: min(90vh, calc(100dvh - 2.5rem));
  margin: 0;
  flex-shrink: 0;
  overflow-y: auto;
  padding: 1.5rem 1.35rem 1.25rem;
  background: var(--white, #fff);
  border-radius: var(--r-lg, 16px);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.18);
}
.subscription-modal__title {
  margin: 0 0 0.75rem;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text, #1e293b);
  line-height: 1.3;
}
.subscription-modal__text {
  margin: 0 0 1.25rem;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--text-md, #475569);
}
.subscription-modal__actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.subscription-modal__btn {
  text-align: center;
  justify-content: center;
}
.subscription-modal__close {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  width: 2rem;
  height: 2rem;
  border: 0;
  background: transparent;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  color: var(--text-xs, #64748b);
}
body.subscription-modal-open {
  overflow: hidden;
}
