/* =========================================================
   HC Instituto Educacional — estilos
   Linguagem visual: editorial, neutra, inspirada no site da Apple.
   ========================================================= */
:root {
  --sb-collapsed: 88px;
  --sb-expanded: 288px;
  --header-h: 64px;

  /* neutros */
  --ink: #1d1d1f;
  --ink-2: #424245;
  --muted: #6e6e73;
  --faint: #86868b;
  --line: #d2d2d7;
  --line-soft: #e8e8ed;
  --bg: #f5f5f7;
  --card: #ffffff;
  --graphite: #161617;

  /* marca */
  --accent: #067a57;
  --accent-2: #0f9b6c;
  --accent-soft: #e3f4ec;
  --ok: #34c759;
  --danger: #e30000;

  /* compatibilidade com trechos antigos */
  --navy-900: #1d1d1f;
  --green-400: #34d399;
  --green-500: #22c55e;
  --teal-400: #2dd4bf;
  --mint: #34d399;

  --ease: cubic-bezier(.28, .11, .32, 1);
  --ring: 0 0 0 4px rgba(6, 122, 87, .22);
}

* { box-sizing: border-box; }
html, body { margin: 0; }
/* celular: sem zoom de pinça e sem arrastar a página para os lados */
html { touch-action: pan-x pan-y; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html, body { overflow-x: clip; }
body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", sans-serif;
  font-feature-settings: "cv11", "ss01";
  background: var(--bg);
  color: var(--ink);
  letter-spacing: -.011em;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; letter-spacing: inherit; cursor: pointer; }
input, textarea, select { font: inherit; letter-spacing: inherit; }
i[data-icon] { display: inline-flex; flex: none; }
i[data-icon] svg { width: 100%; height: 100%; }
::selection { background: rgba(6, 122, 87, .18); }
html { scrollbar-color: #c7c7cc transparent; scrollbar-width: thin; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: #c7c7cc; border-radius: 99px; border: 3px solid var(--bg); }

/* ========== BARRA LATERAL ========== */
.sidebar {
  position: fixed; inset: 0 auto 0 0; z-index: 50;
  width: var(--sb-collapsed);
  display: flex; flex-direction: column;
  padding: 20px 16px 18px;
  background: var(--graphite);
  border-right: 1px solid rgba(255, 255, 255, .06);
  color: #f5f5f7;
  overflow: hidden;
  transition: width .45s var(--ease), box-shadow .45s var(--ease);
}
.sidebar:hover { width: var(--sb-expanded); box-shadow: 24px 0 60px rgba(0, 0, 0, .28); }

.sb-brand { display: flex; align-items: center; gap: 14px; height: 48px; margin: 0 0 36px 4px; }
.sb-logo {
  flex: none; width: 48px; height: 48px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 17px; letter-spacing: -.02em; color: #fff;
  background: linear-gradient(160deg, var(--accent-2), var(--accent));
}
.sb-logo.has-img { background: none; overflow: hidden; }
.sb-logo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.brand-row { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.brand-preview { width: 72px; height: 72px; border-radius: 18px; font-size: 24px; border: 0; cursor: pointer; transition: transform .3s var(--ease), box-shadow .3s; }
.brand-preview:hover { transform: scale(1.04); box-shadow: 0 12px 24px -14px rgba(0, 0, 0, .45); }
.sb-brand-text { display: flex; flex-direction: column; white-space: nowrap; }
.sb-brand-text strong { font-size: 15px; font-weight: 600; color: #fff; letter-spacing: -.01em; }
.sb-brand-text span { font-size: 12px; color: var(--faint); margin-top: 1px; }

.sb-nav { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.sb-section {
  height: 16px; padding: 0 16px; margin-bottom: 8px; white-space: nowrap;
  font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #6e6e73;
}
.sb-section-gap { margin-top: 32px; }
.sb-item {
  position: relative;
  display: flex; align-items: center; gap: 16px;
  height: 46px; padding: 0 17px; border-radius: 12px;
  color: #a1a1a6; font-size: 14px; font-weight: 500; white-space: nowrap;
  transition: background .2s, color .2s;
}
.sb-item i { width: 20px; height: 20px; }
.sb-item:hover { background: rgba(255, 255, 255, .06); color: #f5f5f7; }
.sb-item.active { background: rgba(255, 255, 255, .1); color: #fff; font-weight: 600; }
.sb-item.active i { color: var(--mint); }
.sb-item:focus-visible { outline: 2px solid var(--mint); outline-offset: -2px; }

.sb-section, .sb-item span, .sb-brand-text, .sb-footer small { opacity: 0; transition: opacity .2s; }
.sidebar:hover .sb-section,
.sidebar:hover .sb-item span,
.sidebar:hover .sb-brand-text,
.sidebar:hover .sb-footer small { opacity: 1; transition-delay: .1s; }
.sb-footer { border-top: 1px solid rgba(255, 255, 255, .08); padding-top: 12px; }
.sb-footer small { display: block; padding: 10px 16px 0; font-size: 11px; color: #6e6e73; white-space: nowrap; }

/* ========== CABEÇALHO ========== */
.topbar-wrap {
  position: sticky; top: 0; z-index: 40;
  margin-left: var(--sb-collapsed);
  padding: 16px 40px 0;
  pointer-events: none;
}
.topbar {
  pointer-events: auto;
  max-width: 1320px; margin: 0 auto;
  height: var(--header-h);
  display: flex; align-items: center; gap: 24px;
  padding: 0 14px 0 28px;
  border-radius: 999px;
  background: rgba(22, 22, 23, .9);
  backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px);
  border: 1px solid rgba(255, 255, 255, .08);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .08), 0 10px 30px -14px rgba(0, 0, 0, .35);
  color: #f5f5f7;
  transition: box-shadow .35s var(--ease);
}
.topbar-wrap.scrolled .topbar { box-shadow: 0 1px 2px rgba(0, 0, 0, .1), 0 16px 40px -16px rgba(0, 0, 0, .45); }
.tb-title { flex: 1; min-width: 0; }
.tb-title h1 { margin: 0; font-size: 19px; font-weight: 600; letter-spacing: -.02em; white-space: nowrap; }
.tb-title p { margin: 2px 0 0; font-size: 13px; color: var(--faint); white-space: nowrap; }
.tb-search {
  width: 300px; height: 36px;
  display: flex; align-items: center; gap: 10px;
  padding: 0 12px; border-radius: 999px;
  background: rgba(255, 255, 255, .08); color: var(--faint);
  transition: background .2s, box-shadow .2s;
}
.tb-search:hover { background: rgba(255, 255, 255, .11); }
.tb-search:focus-within { background: rgba(255, 255, 255, .13); box-shadow: 0 0 0 3px rgba(52, 211, 153, .35); }
.tb-search i { width: 16px; height: 16px; }
.tb-search input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; color: #fff; font-size: 14px; }
.tb-search input::placeholder { color: var(--faint); }
.tb-search kbd {
  font: 500 11px/1 "Inter", sans-serif; color: var(--faint);
  padding: 4px 8px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .14);
}
.tb-search:focus-within kbd { opacity: 0; }
/* ---- pesquisa de notícias ---- */
.tb-search-wrap { position: relative; }
.tb-search input::-webkit-search-cancel-button { filter: invert(1); opacity: .6; cursor: pointer; }
.tb-search-btn { display: none; }
.sr {
  position: absolute; top: calc(100% + 14px); right: -60px; z-index: 50; width: min(480px, calc(100vw - 32px));
  max-height: min(70vh, 620px); overflow-y: auto; overscroll-behavior: contain;
  padding: 10px; border-radius: 24px; color: var(--ink);
  background: rgba(255, 255, 255, .9);
  -webkit-backdrop-filter: saturate(180%) blur(24px); backdrop-filter: saturate(180%) blur(24px);
  border: 1px solid rgba(0, 0, 0, .06);
  box-shadow: 0 30px 70px -24px rgba(0, 0, 0, .45), 0 2px 8px rgba(0, 0, 0, .06);
  opacity: 0; transform: translateY(-8px) scale(.98); transform-origin: top right;
  transition: opacity .2s ease, transform .35s var(--ease);
}
.sr.in { opacity: 1; transform: none; }
.sr-head { padding: 6px 10px 8px; font-size: 12px; font-weight: 600; letter-spacing: .02em; text-transform: uppercase; color: var(--muted); }
.sr-head:empty { display: none; }
.sr-list { display: flex; flex-direction: column; gap: 2px; }
.sr-item {
  display: flex; align-items: center; gap: 14px; width: 100%; padding: 8px; border: 0; border-radius: 16px;
  background: none; color: inherit; text-align: left; cursor: pointer; transition: background .15s;
}
.sr-item.on { background: rgba(0, 0, 0, .05); }
.sr-thumb { flex: none; width: 88px; height: 64px; border-radius: 12px; overflow: hidden; background: #e8e8ed; }
.sr-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s var(--ease); }
.sr-item.on .sr-thumb img { transform: scale(1.05); }
.sr-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.sr-meta { font-size: 12px; font-weight: 600; color: var(--muted); }
.sr-title { font-size: 15px; font-weight: 600; line-height: 1.3; letter-spacing: -.01em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sr-excerpt { font-size: 13px; line-height: 1.4; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.sr mark { background: rgba(52, 211, 153, .3); color: inherit; border-radius: 3px; padding: 0 1px; }
.sr-go { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; color: var(--muted); opacity: 0; transform: translateX(-4px); transition: opacity .2s, transform .3s var(--ease); }
.sr-go svg { width: 15px; height: 15px; }
.sr-item.on .sr-go { opacity: 1; transform: none; background: #fff; color: var(--ink); box-shadow: 0 2px 6px rgba(0, 0, 0, .12); }
.sr-empty { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 26px 16px 22px; text-align: center; color: var(--muted); font-size: 14px; }
.sr-empty i { width: 26px; height: 26px; display: grid; opacity: .6; }
.sr-empty strong { color: var(--ink); font-size: 16px; }
.sr-all {
  display: flex; align-items: center; justify-content: center; gap: 4px; margin-top: 6px; padding: 12px; border-radius: 14px;
  font-size: 14px; font-weight: 600; color: var(--accent); text-decoration: none; border-top: 1px solid var(--line-soft);
}
.sr-all:hover { background: rgba(0, 0, 0, .04); }
.sr-all svg { width: 14px; height: 14px; }
.tb-user { display: flex; align-items: center; gap: 12px; }
.tb-user-text { display: flex; flex-direction: column; align-items: flex-end; }
.tb-user-text strong { font-size: 14px; font-weight: 600; }
.tb-user-text span { font-size: 12px; color: var(--faint); }
.tb-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center;
  font-size: 13px; font-weight: 600; color: #fff;
  background: linear-gradient(160deg, var(--accent-2), var(--accent));
}

/* ========== CONTEÚDO ========== */
.content { margin-left: var(--sb-collapsed); padding: 24px 40px 64px; }
.wrap { max-width: 1680px; margin: 0 auto; animation: pageIn .6s var(--ease) both; }
@keyframes pageIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* cabeçalho de página */
.page-head { margin: 8px 0 40px; }
.page-kicker { margin: 0 0 8px; font-size: 17px; font-weight: 600; color: var(--muted); }
.page-title { margin: 0; font-size: clamp(36px, 4.4vw, 56px); line-height: 1.06; font-weight: 700; letter-spacing: -.035em; }
.page-sub { margin: 14px 0 0; max-width: 640px; font-size: 19px; line-height: 1.45; color: var(--ink-2); font-weight: 500; }

.shelf-title {
  margin: 40px 0 20px;
  font-size: clamp(22px, 2vw, 28px); line-height: 1.12; font-weight: 700; letter-spacing: -.028em;
}
.shelf-title span { color: var(--muted); }
/* título com descrição logo abaixo */
.shelf-title:has(+ .shelf-sub) { margin-bottom: 8px; }
.shelf-sub { margin: 0 0 22px; max-width: 760px; font-size: clamp(16px, 1.2vw, 19px); line-height: 1.45; font-weight: 500; color: var(--muted); }

/* ---------- Carrossel ---------- */
.carousel {
  position: relative; isolation: isolate;
  aspect-ratio: 1597 / 420;
  border-radius: 28px; overflow: hidden;
  background: #111;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .04), 0 18px 40px -24px rgba(0, 0, 0, .35);
}
.carousel-track { display: flex; height: 100%; transition: transform 1s cubic-bezier(.65, 0, .35, 1); }
.slide { position: relative; flex: 0 0 100%; height: 100%; overflow: hidden; }
.slide-bg {
  position: absolute; inset: 0;
  background-image: var(--img); background-size: cover; background-position: center;
  transform: scale(1.05);
}
.slide.active .slide-bg,
.slide.leaving .slide-bg { animation: kenburns calc(var(--slide-ms, 10000ms) + 1500ms) linear forwards; }
/* o banner que está saindo congela o zoom onde estava (sem "pular" de volta ao tamanho inicial) */
.slide.leaving:not(.active) .slide-bg { animation-play-state: paused; }
@keyframes kenburns { from { transform: scale(1.05); } to { transform: scale(1); } }
.slide::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, rgba(0, 0, 0, .7) 0%, rgba(0, 0, 0, .46) 34%, rgba(0, 0, 0, .16) 52%, rgba(0, 0, 0, 0) 64%);
}
.slide-text { position: absolute; z-index: 2; left: 64px; top: 50%; transform: translateY(-50%); max-width: 44%; color: #fff; }
.slide-text > * { opacity: 0; transform: translateY(14px); transition: opacity .7s var(--ease), transform .8s var(--ease); }
.slide.active .slide-text > * { opacity: 1; transform: none; }
.slide.active .slide-text > :nth-child(1) { transition-delay: .35s; }
.slide.active .slide-text > :nth-child(2) { transition-delay: .45s; }
.slide.active .slide-text > :nth-child(3) { transition-delay: .55s; }
.pill { display: inline-block; font-size: 15px; font-weight: 600; color: rgba(255, 255, 255, .82); letter-spacing: -.005em; }
.slide.active .slide-text > :nth-child(4) { transition-delay: .65s; }
.slide-cta {
  display: inline-flex; align-items: center; gap: 4px; margin-top: 22px;
  height: 40px; padding: 0 16px 0 20px; border-radius: 999px;
  background: rgba(255, 255, 255, .94); color: #1d1d1f; text-decoration: none;
  font-size: 15px; font-weight: 600; letter-spacing: -.01em;
  box-shadow: 0 6px 18px -8px rgba(0, 0, 0, .45);
}
.slide-cta svg { width: 15px; height: 15px; transition: transform .35s var(--ease); }
.slide.active .slide-text > .slide-cta { transition: opacity .7s var(--ease) .65s, transform .8s var(--ease) .65s, background .2s; }
.slide-cta:hover { background: #fff; }
.slide-cta:hover svg { transform: translateX(3px); }
.slide-cta:focus-visible { outline: none; box-shadow: 0 0 0 4px rgba(255, 255, 255, .55); }
.slide-text h2 { margin: 8px 0 12px; font-size: clamp(26px, 3vw, 48px); line-height: 1.06; font-weight: 700; letter-spacing: -.032em; }
.slide-text p { margin: 0; max-width: 520px; font-size: clamp(14px, 1.2vw, 19px); line-height: 1.42; color: rgba(255, 255, 255, .88); }
.car-arrow {
  position: absolute; z-index: 4; bottom: 22px;
  width: 36px; height: 36px; border-radius: 50%; border: 0;
  display: grid; place-items: center;
  background: rgba(210, 210, 215, .64); color: rgba(0, 0, 0, .56);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  opacity: 0; transform: translateY(6px);
  transition: opacity .3s, transform .4s var(--ease), background .2s, color .2s;
}
.car-arrow i { width: 18px; height: 18px; }
.car-arrow.prev { right: 70px; }
.car-arrow.next { right: 24px; }
.carousel:hover .car-arrow { opacity: 1; transform: none; }
.car-arrow:hover { background: rgba(232, 232, 237, .85); color: #000; }
.car-arrow:focus-visible { opacity: 1; outline: 2px solid #fff; outline-offset: 2px; }
.carousel-empty { display: grid; place-items: center; height: 100%; color: #a1a1a6; text-align: center; padding: 20px; }
.carousel-empty > div { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.carousel-empty i { width: 32px; height: 32px; }
.carousel-empty strong { color: #fff; font-size: 19px; font-weight: 600; }
.carousel-empty a { color: #2997ff; font-size: 15px; }
.carousel-empty a:hover { text-decoration: underline; }

.dots { display: flex; justify-content: center; align-items: center; gap: 10px; margin-top: 20px; height: 8px; }
.dot {
  position: relative; overflow: hidden;
  width: 8px; height: 8px; border-radius: 999px; border: 0; padding: 0;
  background: #c7c7cc; transition: width .5s var(--ease), background .3s;
}
.dot:hover { background: #8e8e93; }
.dot.active { width: 40px; background: #d2d2d7; }
.dot-fill { position: absolute; inset: 0; border-radius: inherit; background: #1d1d1f; transform: translateX(-100%); will-change: transform; }
.dot.active .dot-fill { animation: dotfill var(--slide-ms, 10000ms) linear forwards; }
.paused .dot.active .dot-fill, .paused .slide.active .slide-bg { animation-play-state: paused; }
/* a barra enche com transform (subpixel, na GPU), em vez de width, para não andar "aos saltos" */
@keyframes dotfill { from { transform: translateX(-100%); } to { transform: translateX(0); } }
.carousel-track.jump, .carousel-track.jump *, .nm-track.jump, .nm-track.jump * { transition: none !important; }

/* ---------- Botões ---------- */
.btn-dark {
  display: inline-flex; align-items: center; gap: 8px;
  height: 38px; padding: 0 18px; border-radius: 999px; border: 0;
  background: var(--ink); color: #fff; font-weight: 500; font-size: 14px;
  transition: background .2s, transform .2s var(--ease);
}
.btn-dark:hover { background: #000; }
.btn-dark:active { transform: scale(.98); }
.btn-dark:focus-visible { outline: none; box-shadow: var(--ring); }
.btn-dark i { width: 16px; height: 16px; }
.btn-dark:disabled { opacity: .35; cursor: not-allowed; transform: none; }
.btn-soft {
  display: inline-flex; align-items: center; gap: 7px;
  height: 36px; padding: 0 14px; border-radius: 999px;
  border: 1px solid var(--line); background: #fff; color: var(--ink);
  font-weight: 500; font-size: 14px;
  transition: background .15s, border-color .15s;
}
.btn-soft:hover { background: var(--bg); }
.btn-soft i { width: 15px; height: 15px; }
.btn-soft.danger { color: var(--danger); }
.btn-soft.danger:hover { background: #fff1f0; border-color: #ffd0cc; }
.icon-btn {
  width: 34px; height: 34px; border-radius: 50%; border: 0;
  display: grid; place-items: center; background: transparent; color: var(--muted);
  transition: background .15s, color .15s;
}
.icon-btn i { width: 17px; height: 17px; }
.icon-btn:hover { background: #fff1f0; color: var(--danger); }
.icon-btn.neutral:hover { background: var(--line-soft); color: var(--ink); }
.icon-btn:disabled { opacity: .3; cursor: not-allowed; background: transparent; }

/* ---------- Acesso rápido ---------- */
.quick-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 16px; }
.ql {
  position: relative; isolation: isolate;
  display: flex; align-items: center; justify-content: center;
  height: 88px; padding: 0 18px;
  border-radius: 18px; border: 0; overflow: hidden;
  font-weight: 600; font-size: 16px; letter-spacing: .01em; text-align: center;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .06), 0 8px 20px -14px rgba(0, 0, 0, .35);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.ql-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.ql.has-img .ql-name { text-shadow: 0 1px 8px rgba(0, 0, 0, .45); }
.ql-go {
  position: absolute; top: 10px; right: 10px;
  width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255, 255, 255, .22);
  opacity: 0; transition: opacity .3s;
}
.ql-go i { width: 12px; height: 12px; }
.ql:hover, .ql:focus-visible { transform: scale(1.025); box-shadow: 0 2px 4px rgba(0, 0, 0, .06), 0 18px 32px -16px rgba(0, 0, 0, .4); outline: none; }
.ql:hover .ql-go, .ql:focus-visible .ql-go { opacity: 1; }
.ql:active { transform: scale(.99); }

/* ========== CONFIGURAÇÕES ========== */
.acc-list { max-width: 860px; display: flex; flex-direction: column; gap: 12px; }

/* ---- widgets ---- */
[data-acc="banners"] { --c: #5e5ce6; } [data-acc="links"] { --c: #0a84ff; } [data-acc="brand"] { --c: #30b0c7; }
[data-acc="news"] { --c: #ff9f0a; } [data-acc="connect"] { --c: #34c759; } [data-acc="exclusive"] { --c: #ff6b3d; }
[data-acc="prefs"] { --c: #8e8e93; }
.cfg-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 1400px) { .cfg-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 1050px) { .cfg-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .cfg-grid { grid-template-columns: 1fr; } }
.cfg-w {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; flex-direction: column; align-items: flex-start; gap: 6px;
  min-height: 196px; padding: 22px 22px 20px; border: 0; border-radius: 24px;
  background: var(--card); color: var(--ink); text-align: left; text-decoration: none; cursor: pointer;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 10px 30px -24px rgba(0, 0, 0, .3);
  transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}
.cfg-w::before { /* brilho suave da cor da seção */
  content: ""; position: absolute; z-index: -1; top: -70px; right: -70px; width: 220px; height: 220px; border-radius: 50%;
  background: var(--c, #8e8e93); opacity: .1; filter: blur(30px);
  transition: opacity .45s var(--ease), transform .6s var(--ease);
}
.cfg-w:hover { transform: translateY(-4px); box-shadow: 0 2px 6px rgba(0, 0, 0, .05), 0 24px 44px -26px rgba(0, 0, 0, .4); }
.cfg-w:hover::before { opacity: .2; transform: scale(1.15); }
.cfg-w:active { transform: translateY(-1px) scale(.99); }
.cfg-w:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--c, var(--accent)), 0 24px 44px -26px rgba(0, 0, 0, .4); }
.cfg-top { width: 100%; display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 14px; }
.cfg-ico { width: 46px; height: 46px; border-radius: 14px; background: var(--c, #8e8e93) !important; box-shadow: 0 8px 18px -10px var(--c, #000); }
.cfg-ico i { width: 22px; height: 22px; }
.cfg-title { font-size: 19px; font-weight: 700; letter-spacing: -.02em; }
.cfg-sub { font-size: 14px; line-height: 1.45; color: var(--muted); }
.cfg-open {
  margin-top: auto; padding-top: 14px; display: inline-flex; align-items: center; gap: 4px;
  font-size: 14px; font-weight: 600; color: var(--c, var(--accent));
}
.cfg-open svg { width: 15px; height: 15px; transition: transform .3s var(--ease); }
.cfg-w:hover .cfg-open svg { transform: translateX(3px); }

/* ---- pop-up de edição ---- */
.cfg-modal { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: 32px 24px; }
.cfg-modal[hidden] { display: none; }
.cfg-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, .42); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); opacity: 0; transition: opacity .3s ease; }
.cfg-dialog {
  position: relative; width: min(900px, 100%); max-height: calc(100vh - 64px); max-height: calc(100dvh - 64px);
  display: flex; flex-direction: column; overflow: hidden; border-radius: 26px;
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .5);
  opacity: 0; transform: translateY(18px) scale(.97);
  transition: opacity .3s ease, transform .5s var(--ease);
}
.cfg-modal.in .cfg-backdrop, .cfg-modal.in .cfg-dialog { opacity: 1; }
.cfg-modal.in .cfg-dialog { transform: none; }
.cfg-head { flex: none; display: flex; align-items: center; gap: 14px; padding: 18px 20px 16px 24px; border-bottom: 1px solid var(--line-soft); }
.cfg-head .cfg-ico { width: 40px; height: 40px; border-radius: 12px; }
.cfg-head .cfg-ico i { width: 20px; height: 20px; }
.cfg-head .acc-text strong { font-size: 18px; font-weight: 700; letter-spacing: -.015em; }
.cfg-close {
  flex: none; width: 36px; height: 36px; border-radius: 50%; border: 0; display: grid; place-items: center;
  background: var(--line-soft); color: var(--ink-2); cursor: pointer; transition: background .2s, transform .3s var(--ease);
}
.cfg-close:hover { background: #dcdce1; transform: rotate(90deg); }
.cfg-close i { width: 18px; height: 18px; }
.cfg-close:focus-visible { outline: none; box-shadow: var(--ring); }
.cfg-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 0 24px 24px; }
.cfg-body > div > .desc:first-child, .cfg-body > .desc:first-child { margin-top: 18px; }
.panel { background: var(--card); border-radius: 18px; }
.panel.acc { overflow: hidden; box-shadow: 0 1px 2px rgba(0, 0, 0, .04); transition: box-shadow .4s var(--ease); }
.panel.acc.open { box-shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 18px 40px -26px rgba(0, 0, 0, .3); }
.acc-head {
  width: 100%; display: flex; align-items: center; gap: 16px;
  padding: 18px 22px; border: 0; background: none; text-align: left; color: var(--ink);
}
.acc-head:focus-visible { outline: none; box-shadow: inset var(--ring); border-radius: 18px; }
.acc-icon {
  flex: none; width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center;
  color: #fff; background: #8e8e93;
}
.acc-icon i { width: 18px; height: 18px; }
[data-acc="banners"] .acc-icon { background: #5e5ce6; }
[data-acc="links"] .acc-icon { background: #0a84ff; }
[data-acc="brand"] .acc-icon { background: #30b0c7; }
[data-acc="news"] .acc-icon { background: #ff9f0a; }
[data-acc="connect"] .acc-icon { background: #34c759; }
[data-acc="exclusive"] .acc-icon { background: #ff6b3d; }
.acc-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.acc-text strong { font-size: 16px; font-weight: 600; }
.acc-text span { font-size: 13px; color: var(--muted); }
.count-badge { flex: none; min-width: 28px; padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; text-align: center; background: var(--line-soft); color: var(--ink-2); }
.acc-chev { flex: none; width: 24px; height: 24px; display: grid; place-items: center; color: #aeaeb2; transition: transform .45s var(--ease), color .2s; }
.acc-chev i { width: 18px; height: 18px; }
.acc-head:hover .acc-chev { color: var(--ink); }
.acc.open .acc-chev { transform: rotate(180deg); color: var(--ink); }
.acc-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .5s var(--ease); }
.acc.open .acc-body { grid-template-rows: 1fr; }
.acc-inner { overflow: hidden; min-height: 0; }
.acc-content {
  margin: 0 22px; padding: 4px 0 22px; border-top: 1px solid var(--line-soft);
  opacity: 0; transform: translateY(-6px); transition: opacity .3s, transform .45s var(--ease);
}
.acc.open .acc-content { opacity: 1; transform: none; transition-delay: .08s; }
.panel .desc { margin: 18px 0 18px; color: var(--muted); font-size: 14px; line-height: 1.5; }

.pref { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 14px; background: var(--bg); }
.pref-icon { width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; background: var(--ok); color: #fff; }
.pref-icon i { width: 17px; height: 17px; }
.pref-text { flex: 1; }
.pref-text strong { display: block; font-size: 15px; font-weight: 600; }
.pref-text span { font-size: 13px; color: var(--muted); }
.switch { position: relative; width: 51px; height: 31px; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch span { position: absolute; inset: 0; border-radius: 999px; background: #e9e9eb; transition: background .25s; cursor: pointer; }
.switch span::before {
  content: ""; position: absolute; left: 2px; top: 2px; width: 27px; height: 27px; border-radius: 50%;
  background: #fff; box-shadow: 0 3px 8px rgba(0, 0, 0, .15), 0 1px 1px rgba(0, 0, 0, .16);
  transition: transform .3s var(--ease);
}
.switch input:checked + span { background: var(--ok); }
.switch input:checked + span::before { transform: translateX(20px); }
.switch input:focus-visible + span { box-shadow: var(--ring); }

.banner-item { border-radius: 14px; background: var(--bg); padding: 14px; margin-bottom: 10px; }
.bi-head { display: flex; align-items: center; gap: 14px; }
.bi-thumb {
  position: relative; flex: none; width: 152px; height: 40px; border-radius: 8px; overflow: hidden;
  padding: 0; border: 0; background-size: cover; background-position: center;
}
.bi-thumb::after, .ni-thumb::after {
  content: "Trocar"; position: absolute; inset: 0; display: grid; place-items: center;
  font-size: 12px; font-weight: 600; color: #fff; background: rgba(0, 0, 0, .5); opacity: 0; transition: opacity .2s;
}
.bi-thumb:hover::after, .ni-thumb:hover::after { opacity: 1; }
.bi-meta { flex: 1; min-width: 0; }
.bi-badge { font-size: 12px; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.bi-meta p { margin: 2px 0 0; font-size: 15px; font-weight: 500; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bi-actions { display: flex; gap: 2px; }
.bi-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 14px; }
.field label { display: block; font-size: 13px; font-weight: 500; color: var(--muted); margin-bottom: 6px; }
.field label em { font-style: normal; color: var(--faint); }
.field input, .field textarea, .field select {
  width: 100%; border-radius: 10px; border: 1px solid var(--line); background: #fff; color: var(--ink);
  font-size: 15px; outline: none; transition: border-color .15s, box-shadow .15s;
}
.field input, .field select { height: 40px; padding: 0 12px; }
.field textarea { padding: 10px 12px; line-height: 1.55; resize: vertical; min-height: 64px; }
.field select { cursor: pointer; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--accent); box-shadow: var(--ring); }
.field.full, .ni-foot.full, .cx-hint.full { grid-column: 1 / -1; }
.bi-link { background: var(--card); border-radius: 12px; padding: 12px 14px; }
.bi-link-row { display: flex; align-items: center; gap: 14px; }
.bi-link-row .pref-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.bi-link-row .pref-text strong { font-size: 14px; font-weight: 600; }
.bi-link-row .pref-text span { font-size: 13px; color: var(--muted); }
.bi-link-url { display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows .45s var(--ease), opacity .3s; }
.bi-link-url > div { min-height: 0; overflow: hidden; padding: 0 3px; margin: 0 -3px; }
.bi-link-url label { display: block; margin: 12px 0 6px; }
.bi-link-url input { margin-bottom: 3px; }
.bi-link.on .bi-link-url { grid-template-rows: 1fr; opacity: 1; }
.img-row, .color-row { display: flex; align-items: center; gap: 8px; height: 40px; }
.color-row input[type=color] { flex: 1; height: 40px; padding: 3px; border-radius: 10px; border: 1px solid var(--line); background: #fff; cursor: pointer; }
.color-row input[type=color]::-webkit-color-swatch-wrapper { padding: 0; }
.color-row input[type=color]::-webkit-color-swatch { border: 0; border-radius: 7px; }
.color-row input[type=color]::-moz-color-swatch { border: 0; border-radius: 7px; }
.panel-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  margin-top: 16px; font-size: 13px; color: var(--muted);
}
.panel-foot b { color: var(--ink-2); font-weight: 600; }

.ql.ql-preview { width: 152px; height: 52px; flex: none; font-size: 13px; border-radius: 12px; cursor: pointer; padding: 0 10px; box-shadow: none; }
.ql.ql-preview:hover { transform: none; box-shadow: none; filter: brightness(1.05); }

/* editor de notícias */
.ni-foot { display: flex; justify-content: flex-end; }
.news-item { padding: 12px; }
.ni-thumb {
  position: relative; flex: none; width: 96px; height: 60px; border-radius: 10px; border: 0; padding: 0;
  background-size: cover; background-position: center; overflow: hidden;
}
.ni-main { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 2px 0; border: 0; background: none; text-align: left; color: var(--ink); }
.ni-title { max-width: 100%; font-size: 15px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ni-sub { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); flex-wrap: wrap; }
.ni-sub .cat { height: auto; padding: 0; background: none; color: var(--ink-2); font-size: 13px; font-weight: 600; letter-spacing: 0; text-transform: none; }
.ni-sub .cat::after { content: "·"; margin-left: 8px; color: var(--faint); font-weight: 400; }
.ni-chev i { transition: transform .4s var(--ease); }
.news-item.open .ni-chev i { transform: rotate(180deg); }
.ni-fields { animation: pageIn .4s var(--ease) both; }
/* galeria de imagens da notícia */
.ng-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.ng-item {
  position: relative; aspect-ratio: 16 / 10; border-radius: 12px; overflow: hidden;
  background: #e8e8ed center / cover no-repeat;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .06);
}
.ng-item.is-cover { box-shadow: 0 0 0 2px var(--accent); }
.ng-badge {
  position: absolute; top: 8px; left: 8px;
  display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 9px 0 7px; border-radius: 999px;
  font-size: 12px; font-weight: 600; color: #fff; background: var(--accent);
  box-shadow: 0 2px 8px rgba(0, 0, 0, .2);
}
.ng-badge i { width: 12px; height: 12px; }
.ng-badge i svg { fill: currentColor; }
.ng-actions {
  position: absolute; inset: 0; display: flex; align-items: flex-end; justify-content: space-between; gap: 6px; padding: 8px;
  background: linear-gradient(to top, rgba(0, 0, 0, .55), rgba(0, 0, 0, 0) 60%);
  opacity: 0; transition: opacity .25s;
}
.ng-item:hover .ng-actions, .ng-item:focus-within .ng-actions { opacity: 1; }
.ng-btn {
  display: inline-flex; align-items: center; gap: 5px; height: 28px; padding: 0 10px; border-radius: 999px; border: 0;
  font-size: 12px; font-weight: 600; color: #1d1d1f; background: rgba(255, 255, 255, .92); cursor: pointer;
  transition: background .2s, transform .2s var(--ease);
}
.ng-btn:hover { background: #fff; transform: translateY(-1px); }
.ng-btn i { width: 13px; height: 13px; }
.ng-rm { margin-left: auto; width: 28px; padding: 0; justify-content: center; }
.ng-focus { position: absolute; top: 8px; right: 8px; z-index: 1; width: 28px; padding: 0; justify-content: center; opacity: 0; transition: opacity .25s, background .2s, transform .2s var(--ease); }
.ng-item:hover .ng-focus, .ng-focus:focus-visible, .ng-focus.set { opacity: 1; }
.ng-focus.set { color: #fff; background: var(--accent); }
.ng-focus.set:hover { background: var(--accent-2); }
@media (hover: none) { .ng-focus { opacity: 1; } }
.ng-rm:hover { color: var(--danger); }
.ng-add {
  aspect-ratio: 16 / 10; border-radius: 12px; border: 1.5px dashed var(--line); background: #fff;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  font-size: 13px; font-weight: 600; color: var(--muted); cursor: pointer; transition: border-color .2s, color .2s, background .2s;
}
.ng-add i { width: 20px; height: 20px; }
.ng-add:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.ng-hint { margin: 8px 0 0; font-size: 13px; color: var(--faint); }
@media (hover: none) { .ng-actions { opacity: 1; } }

/* ========== PÁGINAS EM CONSTRUÇÃO ========== */
.soon { max-width: 860px; padding: 8px 0; }
.soon .page-title { font-size: clamp(48px, 7vw, 88px); }
.soon .btn-dark { margin-top: 32px; }

/* ========== AVISO (toast) ========== */
.toast {
  position: fixed; bottom: 28px; left: 50%; transform: translate(-50%, 16px); z-index: 400;
  display: flex; align-items: center; gap: 10px;
  padding: 11px 18px 11px 12px; border-radius: 999px;
  background: rgba(29, 29, 31, .92); color: #f5f5f7;
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  font-size: 14px; font-weight: 500;
  opacity: 0; pointer-events: none; transition: opacity .35s var(--ease), transform .45s var(--ease);
  box-shadow: 0 12px 32px -12px rgba(0, 0, 0, .45);
}
.toast-icon { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; background: var(--ok); color: #fff; }
.toast-icon svg { width: 12px; height: 12px; stroke-width: 3.2; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* Acessibilidade: reduz animações se o sistema pedir */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .dot.active .dot-fill { animation-duration: var(--slide-ms, 10000ms) !important; }
  .rn-card.on .rn-prog-fill { animation-duration: var(--rn-ms, 16000ms) !important; }
  .nm-dot.active .dot-fill { animation-duration: var(--nm-ms, 10000ms) !important; }
}

/* ========== NOTÍCIAS (estilo editorial) ========== */
:root {
  --ap-ink: var(--ink);
  --ap-ink-2: var(--ink-2);
  --ap-muted: var(--muted);
  --ap-line: var(--line);
  --ap-bg: var(--bg);
  --ap-link: var(--accent);
  --ap-ease: var(--ease);
}
.news-page, .nm {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", sans-serif;
  color: var(--ap-ink);
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
}
.news-page { max-width: 1180px; padding-bottom: 40px; }

/* categorias usadas nas configurações */
.cat {
  display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 999px;
  font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
}
.c-gold   { background: #fef3c7; color: #a16207; }
.c-teal   { background: #ccfbf1; color: #0f766e; }
.c-green  { background: #dcfce7; color: #15803d; }
.c-purple { background: #ede9fe; color: #6d28d9; }
.c-blue   { background: #dbeafe; color: #1d4ed8; }

/* revelar ao rolar */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ap-ease), transform .9s var(--ap-ease); }
.reveal.in { opacity: 1; transform: none; }

/* cabeçalho */
.ap-hero { text-align: center; padding: 28px 0 44px; }
.ap-kicker { margin: 0 0 10px; font-size: 21px; font-weight: 600; color: var(--ap-muted); letter-spacing: .005em; }
.ap-hero h1 {
  margin: 0; font-size: clamp(44px, 6.4vw, 80px); line-height: 1.04; font-weight: 700; letter-spacing: -.035em;
}
.ap-grad {
  background: linear-gradient(90deg, #0f9b6c 0%, #14b8a6 45%, #2563eb 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
/* início destacado dos títulos de seção, com o mesmo degradê do "HC" */
.shelf-title .ap-grad, .ap-shelf-head h2 .ap-grad { color: transparent; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.ap-sub {
  margin: 18px auto 0; max-width: 640px;
  font-size: 21px; line-height: 1.4; font-weight: 500; color: var(--ap-ink-2); letter-spacing: .002em;
}
/* categorias em cartões, como a fileira de produtos da Apple Store */
.ap-cats {
  display: flex; justify-content: center; gap: 14px; margin: -14px auto 22px; padding: 12px 4px 40px; /* folga para a sombra caber inteira */
  overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.ap-cats::-webkit-scrollbar { display: none; }
.ap-cat {
  flex: none; width: 148px; display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 20px 12px 16px; border: 0; border-radius: 22px; background: var(--card); cursor: pointer;
  font-family: inherit; color: var(--ap-ink); scroll-snap-align: center;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 10px 24px -16px rgba(0, 0, 0, .28);
  transition: transform .45s var(--ap-ease), box-shadow .45s var(--ap-ease);
}
.ap-cats.reveal .ap-cat { opacity: 0; transform: translateY(18px); }
.ap-cats.reveal.in .ap-cat { opacity: 1; transform: none; transition: opacity .6s ease calc(var(--k) * .06s), transform .7s var(--ap-ease) calc(var(--k) * .06s), box-shadow .45s var(--ap-ease); }
.ap-cats .ap-cat:hover { transform: translateY(-4px); box-shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 18px 34px -18px rgba(0, 0, 0, .35); }
.ap-cat-ico {
  width: 52px; height: 52px; margin-bottom: 10px; border-radius: 16px; display: grid; place-items: center; color: #fff;
  background: linear-gradient(150deg, var(--a), var(--b));
  box-shadow: 0 8px 18px -8px var(--b), inset 0 1px 0 rgba(255, 255, 255, .3);
  transition: transform .5s cubic-bezier(.34, 1.56, .64, 1);
}
.ap-cat-ico i { width: 26px; height: 26px; display: grid; }
.ap-cat:hover .ap-cat-ico { transform: scale(1.06) rotate(-4deg); }
.ap-cat-name { font-size: 15px; font-weight: 600; letter-spacing: -.01em; }
.ap-cat-count { font-size: 12.5px; color: var(--ap-muted); }
/* escolhida: contorno na cor da categoria */
.ap-cat.on { box-shadow: 0 0 0 2px var(--b), 0 14px 30px -16px var(--b); }
.ap-cat.on .ap-cat-count { color: var(--b); font-weight: 600; }
.ap-cat:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--b); }

.ap-eyebrow { display: inline-flex; align-items: center; font-size: 14px; font-weight: 600; color: var(--ap-muted); letter-spacing: -.005em; }
.ap-eyebrow.light { color: rgba(255, 255, 255, .78); }
.ap-sep { margin: 0 7px; opacity: .6; }
.ap-link { display: inline-flex; align-items: center; gap: 2px; font-size: 17px; font-weight: 500; color: var(--ap-link); }
.ap-link svg { width: 15px; height: 15px; transition: transform .3s var(--ap-ease); }
.ap-link.light { color: #fff; }

.nc { cursor: pointer; outline: none; position: relative; }
.nc-media { overflow: hidden; }
.nc-media img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* destaque */
.ap-feature {
  display: block; height: clamp(420px, 46vw, 600px);
  border-radius: 28px; overflow: hidden; color: #fff; isolation: isolate;
  background: #111;
}
.ap-feature-media { position: absolute; inset: 0; border-radius: 28px; }
.ap-feature-media img { transform: scale(1.02); transition: transform 1.4s var(--ap-ease); }
.ap-feature:hover .ap-feature-media img { transform: scale(1.06); }
.ap-feature::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 26%, rgba(0, 0, 0, .42) 52%, rgba(0, 0, 0, .66) 76%, rgba(0, 0, 0, .86) 100%);
}
.ap-feature-text {
  position: absolute; z-index: 2; left: 0; right: 0; bottom: 0;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 0 48px 52px;
}
.ap-feature-text h2 {
  margin: 12px 0 0; max-width: 820px;
  font-size: clamp(30px, 3.6vw, 48px); line-height: 1.08; font-weight: 700; letter-spacing: -.028em;
}
.ap-feature-text p { margin: 14px 0 0; max-width: 620px; font-size: 19px; line-height: 1.45; color: rgba(255, 255, 255, .86); }
.ap-feature-text .ap-link { margin-top: 20px; }
.ap-feature:hover .ap-link svg { transform: translateX(3px); }
.ap-feature:focus-visible { box-shadow: 0 0 0 4px rgba(6, 122, 87, .5); }

/* vitrine */
.ap-shelf { margin-top: 72px; }
.ap-shelf-head h2 {
  margin: 0 0 28px; max-width: 760px;
  font-size: clamp(28px, 3vw, 40px); line-height: 1.1; font-weight: 700; letter-spacing: -.028em;
}
.ap-shelf-head h2 span { color: var(--ap-muted); }
.ap-scroller {
  display: grid; grid-auto-flow: column; grid-auto-columns: 372px; gap: 20px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 4px;
  padding: 6px 4px 30px; margin: -6px -4px 0;
  scrollbar-width: none;
}
.ap-scroller::-webkit-scrollbar { display: none; }
.ap-card {
  scroll-snap-align: start;
  display: flex; flex-direction: column; height: 500px;
  background: #fff; border-radius: 28px; overflow: hidden;
  box-shadow: 2px 4px 12px rgba(0, 0, 0, .08);
  transition: transform .5s var(--ap-ease), box-shadow .5s var(--ap-ease);
}
.ap-card:hover { transform: scale(1.012); box-shadow: 2px 8px 24px rgba(0, 0, 0, .12); }
.ap-card:focus-visible { box-shadow: 0 0 0 4px rgba(6, 122, 87, .5); }
.ap-card-text { padding: 32px 32px 0; }
.ap-card h3 { margin: 10px 0 0; font-size: 24px; line-height: 1.17; font-weight: 700; letter-spacing: -.02em; }
.ap-card p {
  margin: 12px 0 0; font-size: 15px; line-height: 1.45; color: var(--ap-ink-2);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.ap-card-media { margin-top: auto; height: 210px; flex: none; border-radius: 0; }
.ap-card-media img { transition: transform 1s var(--ap-ease); }
.ap-card:hover .ap-card-media img { transform: scale(1.04); }
.ap-plus {
  position: absolute; right: 20px; bottom: 20px; z-index: 2;
  width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(29, 29, 31, .88); color: #fff;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, .9);
  transition: background .3s, transform .4s var(--ap-ease);
}
.ap-plus svg { width: 16px; height: 16px; }
.ap-card:hover .ap-plus { background: #000; transform: rotate(90deg); }
.ap-paddles { display: flex; justify-content: flex-end; gap: 14px; margin-top: 6px; }
.ap-paddle {
  width: 36px; height: 36px; border-radius: 50%; border: 0; display: grid; place-items: center;
  background: #e8e8ed; color: var(--ap-ink); transition: background .2s, opacity .2s;
}
.ap-paddle:hover:not(:disabled) { background: #dcdce1; }
.ap-paddle:disabled { opacity: .4; cursor: default; }
.ap-paddle svg { width: 18px; height: 18px; }
.ap-empty { text-align: center; color: var(--ap-muted); font-size: 17px; padding: 40px 0; }

/* ---------- Pop-up ---------- */
body.modal-open { overflow: hidden; }
.nm { position: fixed; inset: 0; z-index: 200; }
.nm-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, .5); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.nm-scroll { position: absolute; inset: 0; overflow-y: auto; padding: 40px 24px; display: flex; justify-content: center; align-items: center; }
.nm-panel {
  position: relative; width: min(980px, 100%);
  display: flex; flex-direction: column;
  max-height: calc(100vh - 80px); max-height: calc(100dvh - 80px);
  background: #fff; border-radius: 28px; overflow: hidden;
  box-shadow: 0 40px 100px -30px rgba(0, 0, 0, .5);
}
/* imagens fixas no topo; só o texto rola, passando por baixo delas */
.nm-top { position: relative; z-index: 2; flex: none; }
.nm-top::after {
  content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 18px; pointer-events: none;
  background: linear-gradient(to bottom, rgba(0, 0, 0, .12), rgba(0, 0, 0, 0));
  opacity: 0; transition: opacity .3s ease;
}
.nm-panel.scrolled .nm-top::after { opacity: 1; }
.nm-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
.nm-media { height: clamp(220px, 42vh, 480px); overflow: hidden; border-radius: 28px 28px 0 0; background: #111; }
.nm-media img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; /* fotos de pessoas: preserva o rosto */ }
/* várias imagens: passam como no banner */
.nm-media.multi { position: relative; isolation: isolate; }
.nm-track { display: flex; height: 100%; transition: transform .9s cubic-bezier(.65, 0, .35, 1); }
.nm-track img { flex: 0 0 100%; min-width: 0; }
.nm-dots {
  position: absolute; z-index: 2; left: 50%; bottom: 18px; transform: translateX(-50%);
  display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 999px;
  background: rgba(0, 0, 0, .28); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.nm-dot {
  position: relative; overflow: hidden; flex: none;
  width: 8px; height: 8px; border-radius: 999px; border: 0; padding: 0; cursor: pointer;
  background: rgba(255, 255, 255, .5); transition: width .5s var(--ease), background .3s;
}
.nm-dot:hover { background: rgba(255, 255, 255, .8); }
.nm-dot.active { width: 36px; background: rgba(255, 255, 255, .32); }
.nm-dot .dot-fill { background: #fff; }
.nm-dot.active .dot-fill { animation: dotfill var(--nm-ms, 10000ms) linear forwards; }
.nm-media.paused .nm-dot.active .dot-fill { animation-play-state: paused; }
.nm-dot:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.nm-arrow {
  position: absolute; z-index: 2; top: 50%; margin-top: -20px;
  width: 40px; height: 40px; border-radius: 50%; border: 0; display: grid; place-items: center;
  background: rgba(29, 29, 31, .5); color: #fff;
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  opacity: 0; transition: opacity .3s, transform .3s var(--ease), background .2s;
}
.nm-arrow i { width: 18px; height: 18px; }
.nm-arrow.prev { left: 20px; transform: translateX(-6px); }
.nm-arrow.next { right: 20px; transform: translateX(6px); }
.nm-media:hover .nm-arrow, .nm-arrow:focus-visible { opacity: 1; transform: none; }
.nm-arrow:hover { background: rgba(29, 29, 31, .78); }
.nm-arrow:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.nm-close {
  position: absolute; z-index: 2; top: 20px; right: 20px;
  width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; border: 0;
  background: rgba(29, 29, 31, .72); color: #fff;
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  transition: background .2s, transform .3s var(--ap-ease);
}
.nm-close:hover { background: #1d1d1f; transform: scale(1.06); }
.nm-close:focus-visible { outline: 3px solid rgba(6, 122, 87, .6); outline-offset: 2px; }
.nm-close i { width: 18px; height: 18px; }
.nm-close span { display: none; }
.nm-content { max-width: 720px; margin: 0 auto; padding: 52px 40px 64px; }
.nm-content h2 { margin: 12px 0 0; font-size: clamp(32px, 4vw, 48px); line-height: 1.08; font-weight: 700; letter-spacing: -.03em; }
.nm-lead { margin: 18px 0 0; font-size: 21px; line-height: 1.42; font-weight: 500; color: var(--ap-ink-2); }
.nm-byline { display: flex; align-items: center; gap: 12px; margin: 28px 0 36px; padding-bottom: 28px; border-bottom: 1px solid var(--ap-line); font-size: 14px; color: var(--ap-muted); }
.nm-by { display: flex; flex-direction: column; gap: 2px; line-height: 1.35; }
/* foto de perfil redonda (ou iniciais) */
.avatar {
  flex: none; width: 40px; height: 40px; border-radius: 50%; overflow: hidden;
  display: grid; place-items: center; color: #fff; font-size: 14px; font-weight: 700; letter-spacing: .02em;
  background: linear-gradient(160deg, var(--accent-2), var(--accent));
  box-shadow: 0 0 0 2px #fff, 0 2px 8px -2px rgba(0, 0, 0, .25);
}
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.nm-avatar { width: 46px; height: 46px; font-size: 16px; }
.nm-byline strong { color: var(--ap-ink); font-weight: 600; }
.nm-text p { margin: 0 0 22px; font-size: 18px; line-height: 1.65; color: var(--ap-ink); letter-spacing: -.003em; }
/* imagem completa no meio do texto (ex.: artes com informações) */
.nm-fig { margin: 8px 0 30px; border-radius: 20px; overflow: hidden; background: #f2f2f4; box-shadow: 0 1px 2px rgba(0, 0, 0, .05), 0 16px 36px -24px rgba(0, 0, 0, .35); }
.nm-fig img { display: block; width: 100%; height: auto; }
.ni-bodytools { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 8px; }
.ni-bodytools span { flex: 1 1 260px; font-size: 13px; color: var(--faint); }
.ni-bodytools b { color: var(--ink-2); font-weight: 600; }
.nm-related { margin-top: 48px; padding-top: 36px; border-top: 1px solid var(--ap-line); }
.nm-related h4 { margin: 0 0 22px; font-size: 24px; font-weight: 700; letter-spacing: -.02em; }
.nm-rel-list { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.nm-rel { display: flex; flex-direction: column; gap: 14px; padding: 0; border: 0; background: none; text-align: left; font-family: inherit; }
.nm-rel-img { display: block; aspect-ratio: 16 / 10; border-radius: 18px; overflow: hidden; background: #eee; }
.nm-rel-img img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ap-ease); }
.nm-rel:hover .nm-rel-img img { transform: scale(1.04); }
.nm-rel-txt { font-size: 15px; line-height: 1.45; color: var(--ap-muted); }
.nm-rel-txt strong { color: var(--ap-ink); font-weight: 600; }
.nm-ghost {
  position: fixed; z-index: 300; pointer-events: none;
  background-size: cover; background-position: center 30%;
}

@media (max-width: 860px) {
  .ap-hero { padding: 8px 0 32px; }
  .ap-kicker { font-size: 17px; }
  .ap-sub { font-size: 17px; }
  .ap-feature-text { padding: 0 22px 30px; }
  .ap-feature-text p { font-size: 16px; }
  .ap-shelf { margin-top: 48px; }
  .ap-scroller { grid-auto-columns: 82%; }
  .ap-card { height: 460px; }
  .ap-card-text { padding: 26px 24px 0; }
  /* no celular a notícia abre mais abaixo, longe da área da hora/bateria do iPhone */
  .nm-scroll { padding: calc(env(safe-area-inset-top) * 1.2 + 22px) 12px calc(12px + env(safe-area-inset-bottom)); align-items: flex-end; }
  .nm-panel {
    max-height: calc(100vh - 34px - env(safe-area-inset-top) * 1.2 - env(safe-area-inset-bottom));
    max-height: calc(100dvh - 34px - env(safe-area-inset-top) * 1.2 - env(safe-area-inset-bottom)); border-radius: 22px;
  }
  /* botão "Fechar" logo abaixo das imagens, no canto direito, onde começa o texto */
  .nm-close {
    top: calc(100% + 14px); right: 14px; width: auto; height: 34px; padding: 0 14px 0 10px; gap: 4px;
    display: inline-flex; align-items: center; border-radius: 999px;
    background: #f0f0f2; color: var(--ink); font: 600 14px/1 "Inter", sans-serif;
    -webkit-backdrop-filter: none; backdrop-filter: none;
    box-shadow: 0 0 0 4px #fff, 0 6px 16px -8px rgba(0, 0, 0, .35);
  }
  .nm-close:hover { background: #e8e8ed; transform: none; }
  .nm-close:active { transform: scale(.96); }
  .nm-close i { width: 16px; height: 16px; display: grid; }
  .nm-close span { display: inline; }
  .nm-media { height: clamp(200px, 34vh, 320px); border-radius: 22px 22px 0 0; }
  .nm-content { padding: 32px 22px 40px; }
  .nm-lead { font-size: 18px; }
  .nm-text p { font-size: 17px; }
  .nm-rel-list { grid-template-columns: 1fr; }
}

/* ========== NOTÍCIAS RECENTES (tela inicial) ========== */
/* ---------- Mantenha-se conectado ---------- */
.cx { position: relative; }
.cx-grid {
  display: grid; gap: 16px;
  grid-template-columns: 1fr .85fr .53fr;
  grid-template-rows: clamp(170px, 13vw, 230px) clamp(230px, 18vw, 310px);
}
.cx-tile {
  position: relative; isolation: isolate; overflow: hidden; border-radius: 28px;
  background: #1d1d1f; outline: none;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .04), 0 18px 40px -26px rgba(0, 0, 0, .4);
  transition: box-shadow .5s var(--ease);
}
.cx-1 { grid-row: 1 / 3; }
.cx-2 { grid-column: 2 / 4; }
.cx-tile.has-link { cursor: pointer; }
.cx-tile:focus-visible { box-shadow: 0 0 0 3px var(--accent), 0 18px 40px -26px rgba(0, 0, 0, .4); }
.cx-bg {
  position: absolute; inset: 0; z-index: -1;
  background-size: cover; background-position: center;
  transform: scale(1.01); transition: transform 1.4s var(--ease);
}
/* degradês usados enquanto o bloco não tem imagem */
.cx-1 .cx-bg:not([style]), .cx-thumb.cx-1:not([style]) { background: radial-gradient(120% 90% at 0% 100%, #2a2b22 0%, rgba(42, 43, 34, 0) 60%), linear-gradient(135deg, #1e3d2b 0%, #1d5a3a 100%); }
.cx-2 .cx-bg:not([style]), .cx-thumb.cx-2:not([style]) { background: radial-gradient(60% 120% at 100% 0%, #5ee7f5 0%, rgba(94, 231, 245, 0) 55%), radial-gradient(50% 90% at 80% 100%, #2a1fa0 0%, rgba(42, 31, 160, 0) 70%), linear-gradient(110deg, #00b2ef 0%, #0a57d6 45%, #0b48c9 100%); }
.cx-3 .cx-bg:not([style]), .cx-thumb.cx-3:not([style]) { background: radial-gradient(70% 90% at 70% 100%, #e3c4cf 0%, rgba(227, 196, 207, 0) 60%), radial-gradient(60% 70% at 85% 0%, #c3b4d6 0%, rgba(195, 180, 214, 0) 65%), linear-gradient(135deg, #1b1e3a 0%, #2b3580 45%, #6f7fb8 100%); }
.cx-4 .cx-bg:not([style]), .cx-thumb.cx-4:not([style]) { background: radial-gradient(70% 60% at 65% 20%, #f2414c 0%, rgba(242, 65, 76, 0) 70%), radial-gradient(60% 50% at 40% 75%, #ff1a2d 0%, rgba(255, 26, 45, 0) 70%), linear-gradient(160deg, #b3101f 0%, #d4151f 50%, #a00818 100%); }

/* faixa de vidro fosco (como o vidro opaco da Apple) */
.cx-glass {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 1;
  min-height: 52%;
  display: flex; flex-direction: column; justify-content: space-between; gap: 14px;
  padding: clamp(20px, 2.2vw, 34px) clamp(20px, 2.4vw, 36px) clamp(18px, 1.8vw, 26px);
  border-radius: 28px 28px 0 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, .62), rgba(255, 255, 255, .5));
  -webkit-backdrop-filter: blur(28px) saturate(170%); backdrop-filter: blur(28px) saturate(170%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .75), 0 -10px 30px -18px rgba(0, 0, 0, .3);
  color: var(--ink);
  transform: translateY(102%);
  transition: transform .75s cubic-bezier(.2, .8, .2, 1);
}
.cx-2 .cx-glass {
  top: 0; right: auto; bottom: 0; width: 62%; min-height: 0;
  border-radius: 28px;
  transform: translateX(-102%);
}
.cx-3 .cx-glass, .cx-4 .cx-glass { min-height: 54%; }
.cx-text h3 {
  margin: 0; font-size: clamp(20px, 2.1vw, 34px); line-height: 1.1; font-weight: 700; letter-spacing: -.025em;
}
.cx-text p { margin: 8px 0 0; font-size: clamp(13px, 1vw, 16px); line-height: 1.4; color: rgba(29, 29, 31, .72); }
.cx-2 .cx-text h3, .cx-3 .cx-text h3 { font-size: clamp(19px, 1.8vw, 28px); }
.cx-4 .cx-text h3 { font-size: clamp(16px, 1.3vw, 21px); }
.cx-4 .cx-text p { font-size: 13px; }
.cx-go {
  align-self: flex-end;
  display: inline-flex; align-items: center; gap: 6px;
  height: 38px; padding: 0 16px 0 20px; border-radius: 999px;
  font-size: 15px; font-weight: 600; color: #fff; background: #1d1d1f;
  box-shadow: 0 6px 16px -8px rgba(0, 0, 0, .5);
  transition: background .2s, transform .3s var(--ease);
}
.cx-go svg { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.cx-go:hover { background: #000; }
.cx-go:hover svg { transform: translateX(3px); }
.cx-go:focus-visible { outline: 3px solid rgba(6, 122, 87, .6); outline-offset: 2px; }
.cx-4 .cx-go { height: 32px; padding: 0 12px 0 16px; font-size: 13px; }
/* textos entram logo depois da faixa */
.cx-text > *, .cx-go { opacity: 0; transform: translateY(10px); transition: opacity .45s ease, transform .6s var(--ease), background .2s; }
.cx-2 .cx-text > *, .cx-2 .cx-go { transform: translateX(-12px); }

.cx-tile:hover .cx-glass, .cx-tile:focus-within .cx-glass, .cx-tile.shown .cx-glass { transform: none; }
.cx-tile:hover .cx-bg, .cx-tile:focus-within .cx-bg, .cx-tile.shown .cx-bg { transform: scale(1.06); }
.cx-tile:hover .cx-text > *, .cx-tile:hover .cx-go,
.cx-tile:focus-within .cx-text > *, .cx-tile:focus-within .cx-go,
.cx-tile.shown .cx-text > *, .cx-tile.shown .cx-go { opacity: 1; transform: none; }
.cx-tile:hover .cx-text > :nth-child(1), .cx-tile:focus-within .cx-text > :nth-child(1), .cx-tile.shown .cx-text > :nth-child(1) { transition-delay: .22s; }
.cx-tile:hover .cx-text > :nth-child(2), .cx-tile:focus-within .cx-text > :nth-child(2), .cx-tile.shown .cx-text > :nth-child(2) { transition-delay: .3s; }
.cx-tile:hover .cx-go, .cx-tile:focus-within .cx-go, .cx-tile.shown .cx-go { transition-delay: .38s, .38s, 0s; }
.cx-tile:hover { box-shadow: 0 4px 10px rgba(0, 0, 0, .06), 0 26px 50px -26px rgba(0, 0, 0, .5); }

/* telas de toque (sem mouse): a faixa já fica visível */
.cx-thumb { background-size: cover; background-position: center; }

/* ---- WhatsApp no bloco grande ---- */
.cx-1 .cx-glass { min-height: 58%; }
.cx-1 .cx-text p { max-width: 62ch; }
.cx-wa { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.cx-wa-num {
  display: inline-flex; align-items: center; gap: 14px; color: var(--ink);
  font-size: clamp(26px, 2.7vw, 44px); font-weight: 700; letter-spacing: -.02em; line-height: 1;
  font-variant-numeric: tabular-nums;
}
.cx-wa-ico {
  position: relative; flex: none; display: grid; place-items: center;
  width: 1.25em; height: 1.25em; border-radius: 50%; color: #fff; background: #1faa59;
  box-shadow: 0 8px 18px -8px rgba(31, 170, 89, .8);
  opacity: 0; transform: scale(.4) rotate(-20deg);
  transition: opacity .4s ease, transform .7s cubic-bezier(.34, 1.56, .64, 1);
}
.cx-wa-ico svg { width: 58%; height: 58%; }
.cx-wa-ico::after { /* onda que pulsa ao redor do ícone */
  content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #25d366; opacity: 0;
}
.cx-wa-digits { display: inline-flex; overflow: hidden; padding: .08em 0; }
.cx-wa-digits span {
  display: inline-block; opacity: 0; transform: translateY(.7em);
  transition: opacity .35s ease, transform .55s cubic-bezier(.2, .8, .2, 1);
}
.cx-wa-num:hover .cx-wa-digits { color: #148a46; }
.cx-wa-go { gap: 8px; padding: 0 20px 0 14px; background: #1faa59; box-shadow: 0 8px 20px -10px rgba(31, 170, 89, .9); }
.cx-wa-go svg { width: 20px; height: 20px; }
.cx-wa-go:hover { background: #178f4a; }
.cx-wa-go:hover svg { transform: none; }
.cx-tile:hover .cx-wa-ico, .cx-tile:focus-within .cx-wa-ico, .cx-tile.shown .cx-wa-ico { opacity: 1; transform: none; transition-delay: .32s; }
.cx-tile:hover .cx-wa-ico::after, .cx-tile:focus-within .cx-wa-ico::after, .cx-tile.shown .cx-wa-ico::after { animation: waPulse 2.4s ease-out 1s infinite; }
.cx-tile:hover .cx-wa-digits span, .cx-tile:focus-within .cx-wa-digits span, .cx-tile.shown .cx-wa-digits span {
  opacity: 1; transform: none; transition-delay: calc(.42s + var(--d) * 32ms);
}
/* blocos menores: número e botão proporcionais ao tamanho */
.cx-2 .cx-wa-num, .cx-3 .cx-wa-num { font-size: clamp(20px, 2vw, 32px); gap: 10px; }
.cx-4 .cx-wa-num { font-size: clamp(16px, 1.4vw, 22px); gap: 8px; }
.cx-2 .cx-wa, .cx-3 .cx-wa, .cx-4 .cx-wa { gap: 10px; }
.cx-2 .cx-text p, .cx-3 .cx-text p { margin-top: 4px; }
.cx-4 .cx-wa-go { height: 32px; padding: 0 12px 0 10px; font-size: 12px; }
.cx-4 .cx-wa-go svg { width: 16px; height: 16px; }
.cx-2 .cx-glass { gap: 10px; }
/* ---- Instagram: mesmo efeito, com as cores do Instagram ---- */
.cx-ig { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.cx-ig-num { font-size: clamp(18px, 1.7vw, 28px); gap: 10px; }
.cx-ig-ico {
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285aeb 90%);
  box-shadow: 0 8px 18px -8px rgba(214, 36, 159, .7);
}
.cx-ig-ico::after { display: none; } /* no Instagram, sem a onda pulsando */
.cx-ig-num:hover .cx-wa-digits { color: #c1358a; }
.cx-tile:hover .cx-ig-num .cx-wa-ico, .cx-tile:focus-within .cx-ig-num .cx-wa-ico, .cx-tile.shown .cx-ig-num .cx-wa-ico { transition-delay: calc(.32s + var(--row) * .2s); }
.cx-4 .cx-ig-num { font-size: clamp(15px, 1.3vw, 20px); }
@keyframes waPulse { 0% { opacity: .7; transform: scale(1); } 80%, 100% { opacity: 0; transform: scale(1.9); } }
.cx-hint { margin: -2px 0 0; font-size: 13px; color: var(--faint); }
.field input.invalid { border-color: var(--danger); box-shadow: 0 0 0 4px rgba(227, 0, 0, .1); }

.rn { --rn-h: 400px; --rn-closed: clamp(150px, 11vw, 210px); --rn-open: clamp(340px, 32vw, 540px); }
.rn-row {
  display: flex; gap: 16px; overflow-x: auto; scrollbar-width: none;
  /* espaço extra embaixo para a sombra do cartão aberto não ser cortada (compensado na margem) */
  margin: -10px -24px -64px; padding: 10px 24px 64px; scroll-padding: 0 24px;
}
.rn-row::-webkit-scrollbar { display: none; }
.rn-card {
  flex: 0 0 var(--rn-closed); height: var(--rn-h);
  border-radius: 24px; overflow: hidden; isolation: isolate;
  background: #e8e8ed;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .05);
  transition: flex-basis .7s var(--ease), box-shadow .5s var(--ease);
}
.rn-card.on { flex-basis: var(--rn-open); box-shadow: 0 2px 4px rgba(0, 0, 0, .05), 0 24px 44px -26px rgba(0, 0, 0, .45); }
.rn-card:focus-visible { box-shadow: var(--ring); }
.rn-media { position: absolute; inset: 0; border-radius: inherit; }
/* a imagem tem sempre a largura do cartão aberto: ao recolher, ela só é recortada (sem "esticar") */
.rn-media img {
  position: absolute; top: 0; left: 50%; width: max(100%, var(--rn-open)); height: 100%;
  transform: translateX(-50%) scale(1.04); transition: transform 1.2s var(--ease);
}
.rn-card.on .rn-media img { transform: translateX(-50%) scale(1); }
/* a notícia que recolhe só volta ao zoom inicial depois de fechar, quando já não está em destaque */
.rn-card:not(.on) .rn-media img { transition: transform 1.6s var(--ease) .8s; }
.rn-card::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 34%, rgba(0, 0, 0, .36) 56%, rgba(0, 0, 0, .62) 76%, rgba(0, 0, 0, .86) 100%);
  opacity: 0; transition: opacity .6s var(--ease);
}
.rn-card.on::after { opacity: 1; }
.rn-text {
  position: absolute; left: 28px; bottom: 28px; z-index: 2;
  width: calc(var(--rn-open) - 112px); color: #fff;
  opacity: 0; transform: translateY(14px);
  transition: opacity .25s ease, transform .5s var(--ease);
}
.rn-card.on .rn-text { opacity: 1; transform: none; transition: opacity .5s ease .22s, transform .7s var(--ease) .18s; }
.rn-text h3 {
  margin: 6px 0 6px; font-size: clamp(20px, 1.6vw, 26px); line-height: 1.14; font-weight: 700; letter-spacing: -.022em;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.rn-text p {
  margin: 0; font-size: 15px; line-height: 1.42; color: rgba(255, 255, 255, .82);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.rn-plus {
  position: absolute; right: 24px; bottom: 28px; z-index: 2;
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255, 255, 255, .92); color: #1d1d1f;
  opacity: 0; transform: scale(.6);
  transition: opacity .25s ease, transform .5s var(--ease), background .2s;
}
.rn-plus svg { width: 16px; height: 16px; transition: transform .5s var(--ease); }
.rn-card.on .rn-plus { opacity: 1; transform: none; transition-delay: .3s, .3s, 0s; }
.rn-card.on:hover .rn-plus { background: #fff; }
.rn-card.on:hover .rn-plus svg { transform: rotate(90deg); }
.rn { position: relative; display: flow-root; } /* flow-root: a margem do título fica dentro da seção, e as setas alinham com ele */
/* setas na mesma linha do título, para a seção não ganhar altura extra */
.rn-paddles { position: absolute; top: 38px; right: 0; margin: 0; }
/* barrinha de progresso dentro do cartão (como a do banner) */
.rn-prog {
  position: absolute; top: 18px; left: 50%; z-index: 3; transform: translateX(-50%);
  width: 8px; height: 6px; border-radius: 999px; overflow: hidden;
  background: rgba(255, 255, 255, .55);
  box-shadow: 0 1px 6px rgba(0, 0, 0, .25);
  opacity: 0;
  transition: width .6s var(--ease), opacity .25s ease, background .3s;
}
.rn-card.on .rn-prog { width: 44px; opacity: 1; background: rgba(255, 255, 255, .35); backdrop-filter: blur(6px); transition-delay: .2s; }
.rn-prog-fill { position: absolute; inset: 0; border-radius: inherit; background: #fff; transform: translateX(-100%); will-change: transform; }
.rn-card.on .rn-prog-fill { animation: dotfill var(--rn-ms, 16000ms) linear forwards; }
.rn.paused .rn-prog-fill, .modal-open .rn-prog-fill { animation-play-state: paused !important; }
/* da 6ª notícia em diante: abre só com o mouse, sem barrinha de troca automática */
.rn-card.manual .rn-prog { display: none; }

/* ========== CONFIGURAÇÕES › NOTÍCIAS ========== */
.back-link {
  display: inline-flex; align-items: center; gap: 2px; margin-bottom: 18px;
  font-size: 15px; font-weight: 500; color: var(--accent); text-decoration: none;
}
.back-link i { width: 18px; height: 18px; display: grid; }
.back-link:hover { text-decoration: underline; }
.acc-go { text-decoration: none; }
.acc-go:hover .acc-chev { color: var(--ink); transform: translateX(2px); }
.na-panel { margin-top: 20px; box-shadow: 0 1px 2px rgba(0, 0, 0, .04); }
.na-head { display: flex; align-items: center; gap: 16px; padding: 18px 22px 0; }
.na-star { background: #ffcc00; }
.na-news { background: #ff9f0a; }
.na-body { padding: 0 22px 22px; }
.na-body > .desc { padding-top: 16px; margin-top: 18px; border-top: 1px solid var(--line-soft); }
.star-inline { display: inline-grid; vertical-align: -3px; width: 16px; height: 16px; color: #ff9f0a; }
.star-inline svg { fill: currentColor; }

.star-btn { color: #aeaeb2; }
.star-btn:hover { background: #fff5d6; color: #ff9f0a; }
.star-btn.on { color: #ff9f0a; }
.star-btn.on svg { fill: currentColor; }
.star-btn svg { transition: transform .35s var(--ease); }
.star-btn:active svg { transform: scale(.8); }

.rk-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.rk-item {
  display: flex; align-items: center; gap: 14px;
  padding: 10px 12px 10px 8px; border-radius: 14px; background: var(--bg);
  cursor: grab; user-select: none; position: relative;
}
.rk-item:active { cursor: grabbing; }
.rk-item.dragging { opacity: .35; }
.rk-grip { flex: none; width: 22px; height: 22px; color: #aeaeb2; display: grid; }
.rk-num { flex: none; width: 22px; text-align: center; font-size: 15px; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }
.rk-thumb { flex: none; width: 76px; height: 48px; border-radius: 10px; background: #e8e8ed center / cover; }
.rk-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.rk-text strong { font-size: 15px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rk-text small { font-size: 13px; color: var(--muted); }
.rk-item .bi-actions { flex: none; }
.rk-up i { transform: rotate(180deg); }
.rk-empty {
  display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 32px 16px;
  border-radius: 14px; background: var(--bg); text-align: center; color: var(--muted); font-size: 14px;
}
.rk-empty i { width: 28px; height: 28px; color: #c7c7cc; display: grid; }
.rk-empty strong { color: var(--ink); font-size: 15px; }

/* ========== ACESSO RESTRITO (pop-up de senha) ========== */
.lk { position: fixed; inset: 0; z-index: 400; display: grid; place-items: center; padding: 24px; }
.lk-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, .45); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); opacity: 0; transition: opacity .3s ease; }
.lk-card {
  position: relative; width: min(400px, 100%); padding: 32px 28px 24px; border-radius: 24px;
  background: rgba(255, 255, 255, .96); text-align: center; color: var(--ink);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .45);
  opacity: 0; transform: translateY(14px) scale(.96);
  transition: opacity .3s ease, transform .45s var(--ease);
}
.lk.in .lk-backdrop, .lk.in .lk-card { opacity: 1; }
.lk.in .lk-card { transform: none; }
.lk-icon { width: 56px; height: 56px; margin: 0 auto 16px; border-radius: 16px; display: grid; place-items: center; color: #fff; background: linear-gradient(160deg, #3a3a3c, #1d1d1f); }
.lk-icon i { width: 26px; height: 26px; display: grid; }
.lk-card h2 { margin: 0; font-size: 22px; font-weight: 700; letter-spacing: -.022em; }
.lk-sub { margin: 8px 0 22px; font-size: 14px; line-height: 1.45; color: var(--muted); }
.lk-field { position: relative; }
.lk-field input {
  width: 100%; height: 48px; padding: 0 48px 0 16px; border-radius: 12px;
  border: 1px solid var(--line); background: #fff; color: var(--ink); font: inherit; font-size: 16px;
  transition: border-color .2s, box-shadow .2s;
}
.lk-field input:focus { outline: none; border-color: var(--accent); box-shadow: var(--ring); }
.lk-card.error .lk-field input { border-color: var(--danger); box-shadow: 0 0 0 4px rgba(227, 0, 0, .12); }
.lk-eye { position: absolute; right: 6px; top: 6px; width: 36px; height: 36px; border: 0; border-radius: 10px; background: none; color: var(--muted); display: grid; place-items: center; cursor: pointer; }
.lk-eye:hover { background: var(--line-soft); color: var(--ink); }
.lk-eye i { width: 18px; height: 18px; display: grid; }
.lk-msg { min-height: 20px; margin: 10px 0 14px; font-size: 13px; font-weight: 500; color: var(--danger); }
.lk-msg.ok a { color: var(--accent); font-weight: 600; }
.lk-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.lk-actions button { justify-content: center; height: 44px; }
.fe .lk-card.fe-card { width: min(860px, 100%); max-height: calc(100vh - 48px); overflow-y: auto; text-align: left; padding: 28px; }
.fe-card .lk-sub { margin-bottom: 18px; }
.fe-grid { display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: 20px; align-items: start; }
.fe-stage-wrap { display: grid; place-items: center; min-height: 200px; padding: 12px; border-radius: 16px; background: var(--bg); }
.fe-stage { position: relative; display: inline-block; max-width: 100%; line-height: 0; cursor: crosshair; touch-action: none; border-radius: 10px; outline: none; }
.fe-stage img { display: block; max-width: 100%; max-height: min(400px, 52vh); width: auto; height: auto; border-radius: 10px; user-select: none; -webkit-user-drag: none; }
.fe-stage:focus-visible { box-shadow: 0 0 0 3px var(--accent); }
.fe-dot {
  position: absolute; width: 30px; height: 30px; margin: -15px 0 0 -15px; border-radius: 50%; pointer-events: none;
  border: 3px solid #fff; background: rgba(6, 122, 87, .35);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .25), 0 0 0 9999px rgba(0, 0, 0, .18), 0 4px 12px rgba(0, 0, 0, .35);
  transition: transform .2s var(--ease);
}
.fe-stage.dragging .fe-dot { transform: scale(1.15); }
.fe-previews { display: grid; gap: 14px; }
.fe-previews figure { margin: 0; }
.fe-previews figcaption { margin-top: 6px; font-size: 12px; font-weight: 600; color: var(--muted); }
.fe-pv { border-radius: 12px; background-color: #111; background-size: cover; background-repeat: no-repeat; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .06); }
.fe-wide { aspect-ratio: 980 / 420; }
.fe-tall { aspect-ratio: 3 / 4; width: 62%; }
.fe-round { width: 150px; aspect-ratio: 1; border-radius: 50%; }
.fe-round-sm { width: 46px; }
.fe-previews figure:has(.fe-round) { display: flex; flex-direction: column; align-items: flex-start; }
.au-focus-set { color: #fff; background: var(--accent); }
.au-focus-set:hover { background: var(--accent-2); color: #fff; }
.fe-actions { display: flex; align-items: center; gap: 10px; margin-top: 22px; }
.fe-actions button { height: 44px; justify-content: center; }
.fe-actions .fe-save, .fe-actions .fe-cancel { min-width: 120px; }
.fe-space { flex: 1; }
@media (max-width: 700px) {
  .fe-grid { grid-template-columns: 1fr; }
  .fe-previews { grid-template-columns: 1.6fr 1fr; align-items: end; }
  .fe-tall { width: 100%; }
  .fe-actions { flex-wrap: wrap; }
  .fe-space { display: none; }
  .fe-actions .fe-reset { width: 100%; }
  .fe-actions .fe-save, .fe-actions .fe-cancel { flex: 1; min-width: 0; }
}
.btn-danger { background: var(--danger); }
.btn-danger:hover { background: #c40000; }
.cf-icon { color: var(--danger); background: rgba(227, 0, 0, .1); }
.cf-thumb {
  position: relative; display: block; width: 132px; height: 84px; margin: 0 auto 20px; border-radius: 16px;
  background: #e8e8ed center / cover no-repeat; box-shadow: 0 10px 24px -12px rgba(0, 0, 0, .4);
}
.cf-badge {
  position: absolute; right: -10px; bottom: -10px; width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; color: #fff; background: var(--danger);
  box-shadow: 0 0 0 4px #fff;
}
.cf-badge i { width: 16px; height: 16px; display: grid; }
.lk-confirm .lk-sub { margin-bottom: 24px; }
.lk-card.error { animation: lkshake .45s cubic-bezier(.36, .07, .19, .97); }
@keyframes lkshake {
  15%, 85% { transform: translateX(-2px); } 30%, 70% { transform: translateX(5px); }
  45% { transform: translateX(-7px); } 55% { transform: translateX(7px); }
}

/* ========== RESPONSIVO ========== */
@media (max-width: 1100px) {
  .tb-search { width: 240px; }
  .tb-user-text { display: none; }
  .content { padding: 32px 32px 60px; }
}
@media (max-width: 860px) {
  :root { --sb-collapsed: 68px; --header-h: 60px; }
  .sidebar { padding: 14px 10px; }
  .sb-brand { margin-left: 0; }
  .sb-logo { width: 44px; height: 44px; font-size: 15px; }
  .sb-item { padding: 0 14px; }
  .topbar-wrap { padding: 10px 12px 0; }
  .topbar { padding: 0 10px 0 20px; gap: 12px; }
  .tb-title h1 { font-size: 16px; }
  .tb-title p { font-size: 12px; }
  .tb-title h1, .tb-title p { overflow: hidden; text-overflow: ellipsis; }
  .tb-search, .car-arrow { display: none; }
  .content { padding: 20px 16px 40px; }
  .carousel { aspect-ratio: auto; height: 300px; border-radius: 20px; }
  .slide::before { background: linear-gradient(0deg, rgba(0, 0, 0, .7) 0%, rgba(0, 0, 0, .2) 70%); }
  .slide-text { left: 22px; right: 22px; top: auto; bottom: 26px; transform: none; max-width: none; }
  .slide-cta { margin-top: 14px; height: 36px; font-size: 14px; }
  .shelf-title { margin-top: 32px; }
  .shelf-title span { display: block; }
  .quick-links { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .ql { height: 72px; font-size: 14px; }
  .page-sub { font-size: 17px; }
  .bi-fields { grid-template-columns: 1fr; }
  .bi-head { flex-wrap: wrap; }
  .acc-head { padding: 16px; gap: 12px; }
  .cfg-grid { gap: 12px; }
  .cfg-w { min-height: 0; padding: 18px; border-radius: 20px; }
  .cfg-modal { padding: 0; place-items: end stretch; }
  .cfg-dialog { width: 100%; max-height: calc(100dvh - 24px); border-radius: 22px 22px 0 0; transform: translateY(40px); }
  .cfg-head { padding: 14px 14px 12px 16px; }
  .cfg-head .acc-text span { display: none; }
  .cfg-body { padding: 0 16px 20px; }
  .acc-text span { display: none; }
  .acc-content { margin: 0 16px; }
  .cx-grid { grid-template-columns: 1fr; grid-template-rows: none; grid-auto-rows: auto; gap: 12px; }
  .cx-1, .cx-2 { grid-row: auto; grid-column: auto; }
  .cx-tile { height: 260px; }
  .cx-1 { height: 320px; }
  .cx-tile { border-radius: 22px; }
  .cx-glass, .cx-2 .cx-glass { top: auto; right: 0; bottom: 0; width: auto; min-height: 0; border-radius: 22px 22px 0 0; transform: translateY(102%); }
  .cx-2 .cx-text > *, .cx-2 .cx-go { transform: translateY(10px); }
  .rn { --rn-h: 340px; --rn-closed: 96px; --rn-open: min(300px, 74vw); }
  .rn-row { gap: 10px; margin: -10px -16px -48px; padding: 10px 16px 48px; }
  .rn-paddles { display: none; }
  .rn-text { left: 20px; bottom: 22px; width: calc(var(--rn-open) - 84px); }
  .rn-plus { right: 16px; bottom: 22px; }
  .na-head, .na-body { padding-left: 16px; padding-right: 16px; }
  .na-head .acc-text span { display: none; }
  .rk-item { flex-wrap: wrap; gap: 10px; }
  .rk-thumb { width: 56px; height: 40px; }
  .rk-item .bi-actions { margin-left: auto; }
}


/* =========================================================
   CELULAR — barra de abas, banners em cartão e ajustes
   ========================================================= */
.tabbar, .more, .tb-logo { display: none; }
@media (max-width: 860px) {
  /* barra lateral sai; o conteúdo usa a largura toda */
  .sidebar { display: none; }
  :root { --sb-collapsed: 0px; }
  .content { padding-bottom: calc(106px + env(safe-area-inset-bottom)); }

  :root { --tb-top: calc(10px + env(safe-area-inset-top) * 1.2); }
  /* altura da barra de abas: no iPhone fica dentro da área do traço de início, como no Instagram */
  :root { --tab-b: max(16px, calc(env(safe-area-inset-bottom) - 12px)); --tab-b-mini: max(20px, calc(env(safe-area-inset-bottom) - 6px)); }
  /* barra de cima compacta, com o logo. Ela flutua um pouco abaixo do topo (e da área da hora/bateria),
     sem encostar na borda: assim o iPhone deixa o conteúdo passar por trás da barra de status ao rolar */
  .topbar-wrap {
    /* no iPhone o próprio sistema desfoca a área da hora/bateria e um pouco abaixo dela;
       a barra desce um pouco mais (≈ 20px além dessa área) para ficar livre desse desfoque */
    top: var(--tb-top); margin-top: var(--tb-top);
    padding: 0 max(12px, env(safe-area-inset-left)) 0 max(12px, env(safe-area-inset-right));
  }
  /* site instalado na tela de início (app): ali o iPhone desfoca uma faixa bem maior no topo,
     então a barra desce mais para ficar inteira abaixo dele */
  @media (display-mode: standalone) {
    :root { --tb-top: calc(10px + env(safe-area-inset-top) + env(safe-area-inset-top) * .45); }
  }
  .topbar { height: 56px; padding: 0 8px 0 8px; gap: 10px; }
  .tb-logo { display: flex; width: 40px; height: 40px; border-radius: 50%; font-size: 14px; overflow: hidden; }
  .tb-title h1 { font-size: 15px; }
  .tb-title p { font-size: 11.5px; }
  .tb-avatar { width: 40px; height: 40px; }

  /* barra de abas */
  .tabbar {
    /* mesma posição da barra do Instagram no iPhone: mais perto da borda de baixo */
    position: fixed; z-index: 60; left: 20px; right: 20px; bottom: var(--tab-b);
    display: grid; grid-template-columns: repeat(5, 1fr); align-items: center;
    height: 60px; padding: 0 6px; border-radius: 30px;
    background: rgba(22, 22, 23, .88);
    -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
    border: 1px solid rgba(255, 255, 255, .08);
    box-shadow: 0 12px 34px -12px rgba(0, 0, 0, .55);
    transition: left .5s var(--ease), right .5s var(--ease), height .5s var(--ease), border-radius .5s var(--ease), bottom .5s var(--ease);
  }
  .tab {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
    height: 50px; border: 0; border-radius: 18px; background: none; color: #a1a1a6;
    font: 600 10.5px/1 "Inter", sans-serif; letter-spacing: -.01em; text-decoration: none;
    -webkit-tap-highlight-color: transparent; transition: color .2s, background .2s, height .5s var(--ease), gap .5s var(--ease), border-radius .5s var(--ease);
  }
  .tab span { display: block; max-height: 12px; overflow: hidden; transition: max-height .45s var(--ease), opacity .25s ease, transform .45s var(--ease); }
  .tab i { width: 22px; height: 22px; display: grid; }
  /* cada aba tem a sua cor (tons que já aparecem no site): o ícone sempre colorido; a aba ativa ganha fundo e brilho da cor */
  .tab { --tc: 52, 211, 153; }
  .tab:nth-child(2) { --tc: 167, 139, 250; } /* Notícias: roxo */
  .tab:nth-child(3) { --tc: 251, 191, 36; }  /* Indicar: âmbar */
  .tab:nth-child(4) { --tc: 56, 189, 248; }  /* Agendar: azul-céu */
  .tab:nth-child(5) { --tc: 244, 114, 182; } /* Mais: rosa */
  .tab.active { color: #fff; background: rgba(var(--tc), .16); }
  .tab.active i { color: rgb(var(--tc)); filter: drop-shadow(0 0 6px rgba(var(--tc), .55)); }
  .tab i { color: rgba(var(--tc), .85); transition: color .2s, filter .2s; }
  /* ao descer a página a barra encolhe e mostra só os ícones; ao subir, volta com as legendas */
  .tabbar.compact { left: 50px; right: 50px; height: 48px; border-radius: 24px; bottom: var(--tab-b-mini); }
  .tabbar.compact .tab { height: 38px; gap: 0; border-radius: 19px; }
  .tabbar.compact .tab span { max-height: 0; opacity: 0; transform: scale(.8); }
  .tab:active { transform: scale(.94); }

  /* folha "Mais" */
  /* "Mais": a própria barra de abas cresce para cima e mostra as opções dentro dela */
  .more { display: block; position: fixed; inset: 0; z-index: 59; } /* logo abaixo da barra de abas */
  .more[hidden] { display: none; }
  .more-backdrop {
    position: absolute; inset: 0; background: rgba(0, 0, 0, .32);
    -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); opacity: 0; transition: opacity .35s ease;
  }
  .more-sheet {
    position: absolute; left: 20px; right: 20px; bottom: var(--tab-b);
    padding: 12px 8px 68px; border-radius: 30px; color: #f5f5f7;
    background: rgba(22, 22, 23, .94);
    -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
    border: 1px solid rgba(255, 255, 255, .08);
    box-shadow: 0 24px 60px -18px rgba(0, 0, 0, .6);
    /* fechado: só a faixa da barra aparece; aberto: o cartão inteiro, crescendo para cima */
    clip-path: inset(calc(100% - 60px) 0 0 0 round 30px);
    transition: clip-path .55s cubic-bezier(.32, .72, 0, 1);
  }
  .more.in .more-backdrop { opacity: 1; }
  .more.in .more-sheet { clip-path: inset(0 0 0 0 round 30px); }
  .more-sheet::after { /* linha discreta separando as opções das abas */
    content: ""; position: absolute; left: 18px; right: 18px; bottom: 60px; height: 1px; background: rgba(255, 255, 255, .09);
    opacity: 0; transition: opacity .3s ease;
  }
  .more.in .more-sheet::after { opacity: 1; transition-delay: .2s; }
  .more-grab { display: none; }
  .more-item {
    display: flex; align-items: center; gap: 14px; height: 50px; padding: 0 12px; border-radius: 16px;
    color: #f5f5f7; font-size: 16px; font-weight: 600; text-decoration: none; -webkit-tap-highlight-color: transparent;
    opacity: 0; transform: translateY(18px) scale(.96); filter: blur(4px);
    transition: opacity .2s ease, transform .2s ease, filter .2s ease, background .2s;
  }
  /* as opções surgem de baixo para cima, uma depois da outra */
  .more.in .more-item {
    opacity: 1; transform: none; filter: none;
    transition: opacity .45s ease, transform .6s cubic-bezier(.34, 1.4, .64, 1), filter .45s ease, background .2s;
    transition-delay: calc(.08s + var(--r) * .045s);
  }
  .more-item:nth-last-child(1) { --r: 0; } .more-item:nth-last-child(2) { --r: 1; } .more-item:nth-last-child(3) { --r: 2; }
  .more-item:nth-last-child(4) { --r: 3; } .more-item:nth-last-child(5) { --r: 4; } .more-item:nth-last-child(6) { --r: 5; }
  .more-item:active, .more-item.active { background: rgba(255, 255, 255, .1); }
  .more-item.danger { color: #ff6961; }
  .more-ico { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; color: #fff; background: var(--c); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25); }
  .more-ico i { width: 18px; height: 18px; display: grid; }
  /* com o menu aberto, a barra fica sem fundo próprio: o cartão que cresceu é o fundo dela */
  .tabbar { transition: left .5s var(--ease), right .5s var(--ease), height .5s var(--ease), border-radius .5s var(--ease), bottom .5s var(--ease), background .3s ease, border-color .3s ease, box-shadow .3s ease; }
  #tab-more[aria-expanded="true"] { color: #fff; background: rgba(var(--tc), .16); }
  #tab-more[aria-expanded="true"] i { color: rgb(var(--tc)); filter: drop-shadow(0 0 6px rgba(var(--tc), .55)); }
  .tabbar.menu-open { background: transparent; border-color: transparent; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }

  /* o aviso (toast) fica acima da barra de abas */
  .toast { bottom: calc(100px + env(safe-area-inset-bottom)); }

  /* banners grandes: imagem alta com o texto por cima. O do topo ocupa a tela de ponta a ponta,
     passando por trás da barra de cima e da área da hora do celular */
  .carousel { height: auto; aspect-ratio: 4 / 5; border-radius: 24px; }
  .car-box[data-car="top"] { margin: calc(-1 * (var(--tb-top) + 56px + 20px)) -16px 0; }
  .car-box[data-car="top"] .carousel { border-radius: 0; box-shadow: 0 18px 40px -26px rgba(0, 0, 0, .5); }
  /* primeira visita: o banner desce do topo, como uma cortina, e a imagem acomoda com um leve zoom */
  body.hero-intro .car-box[data-car="top"] .carousel { animation: heroDrop 1.25s cubic-bezier(.22, 1, .36, 1) both; }
  body.hero-intro .car-box[data-car="top"] .carousel-track { animation: heroSettle 1.6s cubic-bezier(.22, 1, .36, 1) both; }
  body.hero-intro .car-box[data-car="top"] .dots { animation: heroDots .6s ease .9s both; }
  .slide-bg { background-image: var(--img-m, var(--img)); background-position: var(--pos-m, center); }
  .slide::before {
    background:
      linear-gradient(to bottom, rgba(0, 0, 0, .38) 0%, rgba(0, 0, 0, 0) 24%),
      linear-gradient(to top, rgba(0, 0, 0, .82) 0%, rgba(0, 0, 0, .55) 26%, rgba(0, 0, 0, .12) 50%, rgba(0, 0, 0, 0) 62%);
  }
  .slide-text { left: 22px; right: 22px; top: auto; bottom: 26px; transform: none; max-width: none; }
  .slide-text .pill { font-size: 13px; }
  .slide-text h2 { margin: 4px 0 8px; font-size: 32px; letter-spacing: -.03em; }
  .slide-text p { font-size: 15px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  .slide-cta { margin-top: 16px; height: 38px; font-size: 14.5px; }
  .dots { margin-top: 16px; }

  /* notícias recentes: cartões grandes, lado a lado, passando com o dedo */
  .rn { --rn-h: 380px; --rn-open: 80vw; --rn-closed: 80vw; }
  .rn-row { scroll-snap-type: x mandatory; scroll-padding: 0 16px; }
  .rn-card { flex-basis: var(--rn-open) !important; scroll-snap-align: start; }
  .rn-card::after { opacity: 1; }
  .rn-card .rn-text { opacity: 1; transform: none; width: calc(var(--rn-open) - 84px); }
  .rn-card .rn-plus { opacity: 1; transform: none; }
  .rn-media img { transform: translateX(-50%) scale(1) !important; }
  .rn-card:not(.on) .rn-prog { display: none; }

  /* mantenha-se conectado: faixa mais baixa; a descrição aparece ao tocar no bloco */
  .cx-tile { height: 240px; }
  .cx-1 { height: 300px; }
  .cx-glass, .cx-2 .cx-glass { padding: 16px 18px 16px; gap: 10px; }
  .cx-text p { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  .cx-text h3, .cx-2 .cx-text h3, .cx-3 .cx-text h3, .cx-4 .cx-text h3 { font-size: 18px; }
  .cx-text p, .cx-4 .cx-text p { font-size: 13.5px; margin-top: 4px; }
  .cx-wa-num, .cx-2 .cx-wa-num, .cx-3 .cx-wa-num { font-size: 22px; }
  .cx-ig-num, .cx-4 .cx-ig-num { font-size: 17px; }
  .cx-go, .cx-wa-go { height: 34px; font-size: 13.5px; }
  .cx-4 .cx-wa-go { height: 36px; font-size: 13px; }
}


/* Telas de toque: a faixa do "Mantenha-se conectado" só sobe ao tocar no bloco
   (deslizar o dedo por cima não faz nada) */
@media (hover: none) {
  .cx-tile:not(.shown) .cx-glass { transform: translateY(102%) !important; }
  .cx-tile:not(.shown) .cx-bg { transform: scale(1.01) !important; }
  .cx-tile:not(.shown) .cx-text > *, .cx-tile:not(.shown) .cx-go,
  .cx-tile:not(.shown) .cx-wa-ico, .cx-tile:not(.shown) .cx-wa-digits span { opacity: 0 !important; transition-delay: 0s !important; }
  .cx-tile:not(.shown) .cx-wa-ico::after { animation: none !important; }
  .cx-tile { -webkit-tap-highlight-color: transparent; }
}
@media (hover: none) and (min-width: 861px) {
  .cx-2:not(.shown) .cx-glass { transform: translateX(-102%) !important; }
}

/* Celular: textos menores, no estilo dos apps da Apple */
@media (max-width: 860px) {
  body { -webkit-text-size-adjust: 100%; }
  .page-head { margin: 4px 0 24px; }
  .page-kicker { font-size: 14px; margin-bottom: 4px; }
  .page-title { font-size: 30px; letter-spacing: -.03em; }
  .page-sub { font-size: 15px; margin-top: 8px; }
  .shelf-title { margin: 32px 0 14px; font-size: 21px; letter-spacing: -.022em; }
  .shelf-title span { font-size: 15px; font-weight: 500; letter-spacing: -.005em; margin-top: 2px; }
  .shelf-sub { font-size: 14.5px; margin-bottom: 16px; }
  .shelf-title:has(+ .shelf-sub) { margin-bottom: 6px; }
  .ql { font-size: 13px; height: 64px; }

  .slide-text { padding: 14px 16px 16px; }
  .slide-text .pill { font-size: 12px; }
  .slide-text h2 { font-size: 19px; margin: 3px 0 6px; letter-spacing: -.02em; }
  .slide-text p { font-size: 14px; line-height: 1.4; }
  .slide-cta { height: 34px; margin-top: 12px; font-size: 13.5px; padding: 0 12px 0 16px; }

  .rn { --rn-h: 340px; }
  .rn-text { left: 18px; bottom: 20px; }
  .rn-text h3 { font-size: 18px; margin: 4px 0; }
  .rn-text p { font-size: 13px; }
  .ap-eyebrow { font-size: 12px; }
  .rn-plus { width: 32px; height: 32px; right: 14px; bottom: 20px; }

  .ap-kicker { font-size: 15px; margin-bottom: 4px; }
  .ap-hero h1 { font-size: 32px; }
  .ap-sub { font-size: 15px; margin-top: 10px; }
  .ap-cats { justify-content: flex-start; gap: 10px; margin: -20px -16px 4px; padding: 12px 16px 38px; scroll-padding: 0 16px; }
  .ap-cat { width: 112px; padding: 16px 8px 13px; border-radius: 20px; }
  .ap-cat-ico { width: 44px; height: 44px; border-radius: 13px; margin-bottom: 8px; }
  .ap-cat-ico i { width: 22px; height: 22px; }
  .ap-cat-name { font-size: 13.5px; }
  .ap-cat-count { font-size: 11.5px; }
  .ap-feature-text h2 { font-size: 22px; }
  .ap-feature-text p { font-size: 14px; margin-top: 8px; }
  .ap-link { font-size: 15px; }
  .ap-shelf-head h2 { font-size: 21px; margin-bottom: 16px; }
  .ap-card { height: 400px; }
  .ap-card-text { padding: 22px 20px 0; }
  .ap-card h3 { font-size: 19px; }
  .ap-card p { font-size: 13.5px; margin-top: 8px; }

  .nm-content { padding: 24px 20px 36px; }
  .nm-content h2 { font-size: 24px; }
  .nm-lead { font-size: 16px; margin-top: 10px; }
  .nm-byline { font-size: 12.5px; margin: 18px 0 22px; padding-bottom: 18px; }
  .nm-text p { font-size: 15.5px; line-height: 1.6; margin-bottom: 16px; }
  .nm-related h4 { font-size: 19px; }
  .nm-rel-txt { font-size: 14px; }

  .cfg-title { font-size: 17px; }
  .cfg-sub { font-size: 13.5px; }
  .cfg-ico { width: 40px; height: 40px; border-radius: 12px; }
}


/* ---------- Autores (Configurações › Notícias) ---------- */
.na-authors { background: #af52de !important; }
.au-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px; }
.au-item { display: flex; align-items: center; gap: 14px; padding: 12px 12px 12px 14px; border-radius: 16px; background: var(--bg); }
.au-photo { position: relative; flex: none; padding: 0; border: 0; background: none; border-radius: 50%; cursor: pointer; }
.au-avatar { width: 56px; height: 56px; font-size: 19px; }
.au-cam {
  position: absolute; inset: 0; border-radius: 50%; display: grid; place-items: center;
  background: rgba(0, 0, 0, .45); color: #fff; opacity: 0; transition: opacity .2s;
}
.au-cam i { width: 18px; height: 18px; display: grid; }
.au-photo:hover .au-cam, .au-photo:focus-visible .au-cam { opacity: 1; }
.au-photo:focus-visible { outline: none; box-shadow: var(--ring); }
.au-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.au-main input {
  width: 100%; height: 36px; padding: 0 10px; border-radius: 10px; border: 1px solid transparent; background: transparent;
  font: 600 15px/1 "Inter", sans-serif; color: var(--ink); outline: none; transition: border-color .15s, background .15s, box-shadow .15s;
}
.au-main input:hover { background: #fff; }
.au-main input:focus { background: #fff; border-color: var(--accent); box-shadow: var(--ring); }
.au-sub { padding: 0 10px; font-size: 12.5px; color: var(--muted); }
.au-actions { display: flex; gap: 2px; }
.ni-author { display: flex; align-items: center; gap: 10px; }
.ni-author select { flex: 1; min-width: 0; }
.ni-avatar { width: 40px; height: 40px; font-size: 14px; box-shadow: none; }
@media (hover: none) { .au-cam { opacity: .0; } }


/* Celular: lupa na barra de cima; ao tocar, o campo ocupa a barra */
@media (max-width: 860px) {
  .tb-search-btn {
    display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 50%; border: 0;
    background: rgba(255, 255, 255, .1); color: #fff; cursor: pointer;
  }
  .tb-search-btn i { width: 18px; height: 18px; display: grid; }
  .tb-search-wrap { display: none; }
  .topbar.searching .tb-title, .topbar.searching .tb-user, .topbar.searching .tb-logo { display: none; }
  .topbar.searching .tb-search-wrap { display: block; flex: 1; position: static; }
  .topbar.searching .tb-search { display: flex; width: 100%; height: 40px; }
  .topbar.searching .tb-search kbd { display: none; }
  .topbar.searching .tb-search-btn { background: rgba(255, 255, 255, .16); }
  .topbar { position: relative; }
  .sr { left: 0; right: 0; width: auto; top: calc(100% + 10px); max-height: calc(100dvh - 190px); border-radius: 22px; }
  .sr-thumb { width: 72px; height: 54px; }
  .sr-title { font-size: 14px; }
  .sr-excerpt { display: none; }
}


/* =========================================================
   HORÁRIO DE ATENDIMENTO — widget da barra de cima
   ========================================================= */
.hw { position: relative; flex: none; outline: none; cursor: default; --p: 0; }
.hw-pill { display: flex; align-items: center; gap: 8px; }
/* mini calendário (dia da semana e do mês) */
.hw-cal {
  flex: none; width: 40px; height: 40px; border-radius: 12px; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: #fff; color: #1d1d1f; line-height: 1;
}
.hw-wd { font-size: 9px; font-weight: 700; letter-spacing: .06em; color: #ff3b30; }
.hw-day { margin-top: 2px; font-size: 17px; font-weight: 700; letter-spacing: -.03em; }
/* barra: avança conforme o horário do turno */
.hw-track {
  position: relative; display: flex; align-items: center;
  width: 280px; height: 40px; border-radius: 999px; overflow: hidden;
  background: rgba(255, 255, 255, .08); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06);
}
.hw-fill { /* só o fundo colorido que avança, sempre por trás dos horários */
  --min: 100px;
  position: absolute; left: 0; top: 0; bottom: 0; z-index: 0;
  width: calc(var(--min) + (100% - var(--min)) * var(--p));
  border-radius: inherit;
  background: var(--hw-grad); box-shadow: 0 0 18px -2px var(--hw-glow);
  transition: width 1.2s var(--ease), background .8s ease, box-shadow .8s ease;
}
.hw-now { position: relative; z-index: 2; display: flex; align-items: center; gap: 6px; padding-left: 14px; }
.hw-time { font-size: 16px; font-weight: 700; letter-spacing: -.01em; color: #fff; font-variant-numeric: tabular-nums; text-shadow: 0 1px 2px rgba(0, 0, 0, .18); }
.hw-ico { flex: none; width: 26px; height: 26px; display: grid; place-items: center; }
.hw-ico svg { width: 24px; height: 24px; overflow: visible; }
.hw-end {
  position: absolute; right: 14px; z-index: 2; display: flex; align-items: baseline; gap: 5px;
  color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, .25);
}
.hw-end small { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: #fff; opacity: .95; }
.hw-end b { font-size: 16px; font-weight: 700; font-variant-numeric: tabular-nums; }
.hw:hover .hw-track, .hw.open .hw-track, .hw:focus-visible .hw-track { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14); }
.hw:focus-visible .hw-track { box-shadow: 0 0 0 3px rgba(52, 211, 153, .45); }

/* cores conforme o momento do dia */
.hw[data-tone="morning"]   { --hw-grad: linear-gradient(90deg, #0ea5e9, #22d3ee); --hw-glow: rgba(34, 211, 238, .55); }
.hw[data-tone="afternoon"] { --hw-grad: linear-gradient(90deg, #f59e0b, #fb7185); --hw-glow: rgba(251, 146, 60, .55); }
.hw[data-tone="break"]     { --hw-grad: linear-gradient(90deg, #8b5cf6, #c084fc); --hw-glow: rgba(167, 139, 250, .5); }
.hw[data-tone="dawn"]      { --hw-grad: linear-gradient(90deg, #f472b6, #fb923c); --hw-glow: rgba(251, 146, 60, .45); }
.hw[data-tone="closed"]    { --hw-grad: linear-gradient(90deg, #64748b, #94a3b8); --hw-glow: rgba(148, 163, 184, .35); }
.hw[data-tone="evening"]   { --hw-grad: linear-gradient(90deg, #4338ca, #a855f7); --hw-glow: rgba(168, 85, 247, .55); }
.hw[data-tone="night"]     { --hw-grad: linear-gradient(90deg, #312e81, #6366f1); --hw-glow: rgba(99, 102, 241, .55); }

/* sol animado: raios girando e brilho pulsando */
.hw-sun .hw-rays { fill: #ffd54a; transform-origin: 16px 16px; animation: hwSpin 14s linear infinite; }
.hw-sun .hw-core { fill: #ffcc33; filter: drop-shadow(0 0 4px rgba(255, 210, 74, .9)); animation: hwGlow 3s ease-in-out infinite; transform-origin: 16px 16px; }
.hw[data-tone="afternoon"] .hw-sun .hw-rays, .hw[data-tone="dawn"] .hw-sun .hw-rays { fill: #fff3c4; }
.hw[data-tone="afternoon"] .hw-sun .hw-core, .hw[data-tone="dawn"] .hw-sun .hw-core { fill: #fff1b8; }
@keyframes hwSpin { to { transform: rotate(360deg); } }
@keyframes hwGlow { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.12); } }
/* lua: balança devagar e as estrelas piscam */
.hw-moon { animation: hwFloat 5s ease-in-out infinite; }
.hw-crescent { fill: #fef3c7; filter: drop-shadow(0 0 5px rgba(254, 243, 199, .7)); }
.hw-star { fill: #fff; animation: hwTwinkle 2.4s ease-in-out infinite; }
.hw-star.s2 { animation-delay: 1.2s; }
@keyframes hwFloat { 0%, 100% { transform: translateY(0) rotate(-6deg); } 50% { transform: translateY(-2px) rotate(4deg); } }
@keyframes hwTwinkle { 0%, 100% { opacity: .2; } 50% { opacity: 1; } }

/* cartão que se expande ao passar o mouse */
.hw-card {
  position: absolute; top: calc(100% + 14px); left: 50%; z-index: 55; width: 360px;
  padding: 18px; border-radius: 26px; color: var(--ink);
  background: rgba(255, 255, 255, .92);
  -webkit-backdrop-filter: saturate(180%) blur(24px); backdrop-filter: saturate(180%) blur(24px);
  border: 1px solid rgba(0, 0, 0, .06);
  box-shadow: 0 30px 70px -24px rgba(0, 0, 0, .45), 0 2px 8px rgba(0, 0, 0, .06);
  opacity: 0; visibility: hidden; transform: translate(-50%, -10px) scale(.96); transform-origin: top center;
  transition: opacity .25s ease, transform .45s var(--ease), visibility 0s linear .45s;
}
.hw-card::before { content: ""; position: absolute; left: 0; right: 0; top: -16px; height: 16px; } /* ponte: o mouse não "perde" o cartão */
.hw:hover .hw-card, .hw.open .hw-card, .hw:focus-visible .hw-card {
  opacity: 1; visibility: visible; transform: translate(-50%, 0); transition: opacity .25s ease, transform .45s var(--ease), visibility 0s;
}
.hwc-top { display: flex; align-items: center; gap: 14px; }
.hwc-cal {
  flex: none; width: 54px; height: 58px; border-radius: 14px; background: #fff; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .06), 0 6px 16px -8px rgba(0, 0, 0, .3);
}
.hwc-cal span { font-size: 11px; font-weight: 700; letter-spacing: .06em; color: #ff3b30; }
.hwc-cal b { margin-top: 3px; font-size: 26px; font-weight: 700; letter-spacing: -.04em; }
.hwc-date { display: flex; flex-direction: column; gap: 2px; }
.hwc-date strong { font-size: 19px; font-weight: 700; letter-spacing: -.02em; }
.hwc-date span { font-size: 13.5px; color: var(--muted); }
.hwc-status { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-top: 16px; font-size: 13.5px; font-weight: 600; }
.hwc-status i { width: 8px; height: 8px; border-radius: 50%; background: #8e8e93; }
.hwc-status.ok i { background: #34c759; box-shadow: 0 0 0 4px rgba(52, 199, 89, .18); animation: hwDot 2s ease-in-out infinite; }
.hwc-status.class i { background: #8b5cf6; box-shadow: 0 0 0 4px rgba(139, 92, 246, .2); }
.hwc-status.wait i { background: #ff9f0a; box-shadow: 0 0 0 4px rgba(255, 159, 10, .18); }
.hwc-status span { font-weight: 500; color: var(--muted); }
@keyframes hwDot { 0% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.35); opacity: .7; } 100% { transform: scale(1); opacity: 1; } }
.hwc-msg { margin: 8px 0 0; font-size: 14.5px; line-height: 1.45; color: var(--ink-2); }
.hwc-line { margin-top: 16px; }
.hwc-bar { position: relative; height: 8px; border-radius: 999px; background: var(--line-soft); }
.hwc-seg { position: absolute; top: 0; bottom: 0; border-radius: 999px; background: #c7c7cc; }
.hwc-seg.now { background: var(--hw-grad); }
.hwc-seg.past { background: #aeaeb2; }
.hwc-dot { position: absolute; top: 50%; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 3px var(--ink), 0 2px 6px rgba(0, 0, 0, .3); }
.hwc-ticks { display: flex; justify-content: space-between; margin-top: 6px; font-size: 11px; font-weight: 600; color: var(--faint); }
.hwc-week { list-style: none; margin: 14px 0 0; padding: 4px 0 0; border-top: 1px solid var(--line-soft); }
.hwc-week li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 10px; margin: 0 -10px; border-radius: 10px; font-size: 13px; color: var(--muted); }
.hwc-week li b { font-weight: 600; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.hwc-week li.today { background: rgba(0, 0, 0, .045); color: var(--ink); font-weight: 600; }
.hwc-week li.today b { color: var(--ink); }

/* a barra de cima se ajusta conforme a largura da tela */
@media (max-width: 1400px) { .tb-title p { display: none; } .tb-search { width: 240px; } }
@media (max-width: 1200px) { .hw-cal { display: none; } .hw-track { width: 240px; } .tb-search { width: 200px; } }
@media (max-width: 1000px) { .tb-search kbd { display: none; } .hw-track { width: 210px; } }
/* celular: o nome do instituto aparece por 3 s e dá lugar ao relógio (classe .hw-in na barra) */
@media (max-width: 860px) {
  .hw { display: none; flex: 1; min-width: 0; position: static; }
  .tb-title { transition: opacity .35s ease, transform .45s var(--ease), filter .35s ease; }
  .topbar.hw-out .tb-title { opacity: 0; transform: translateY(-10px) scale(.96); filter: blur(4px); }
  .topbar.hw-in .tb-title { display: none; }
  .topbar.hw-in .hw { display: block; animation: hwIn .7s var(--ease) backwards; }
  .topbar.hw-in .hw-fill { animation: hwFillIn 1.1s var(--ease) .15s both; }
  .topbar.hw-in .hw-now, .topbar.hw-in .hw-end { animation: hwTextIn .5s ease .45s both; }
  .topbar.searching .hw { display: none; }
  .hw-cal { display: none; }
  .hw-track { width: 100%; height: 40px; }
  .hw-fill { --min: 80px; }
  .hw-now { padding-left: 12px; gap: 4px; }
  .hw-time, .hw-end b { font-size: 14.5px; }
  .hw-end { right: 12px; gap: 4px; }
  .hw-end small { font-size: 9.5px; }
  .hw-ico { width: 22px; height: 22px; }
  .hw-ico svg { width: 20px; height: 20px; }
  /* cartão ocupa a largura da tela, logo abaixo da barra */
  .hw-card { top: calc(100% + 10px); left: 0; right: 0; width: auto; max-height: calc(100dvh - 190px); overflow-y: auto; background: rgba(255, 255, 255, .98); transform: translateY(-10px) scale(.97); }
  .hw:hover .hw-card, .hw:focus-visible .hw-card { opacity: 0; visibility: hidden; transform: translateY(-10px) scale(.97); }
  .hw.open .hw-card { opacity: 1; visibility: visible; transform: none; transition: opacity .25s ease, transform .45s var(--ease), visibility 0s; }
}
@keyframes hwIn { from { opacity: 0; transform: translateY(10px) scale(.94); } to { opacity: 1; transform: none; } }
@keyframes hwFillIn { from { width: 0; } }
@keyframes hwTextIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .hw-rays, .hw-core, .hw-moon, .hw-star { animation: none !important; } }

/* aulas da noite na linha do dia e na tabela */
.hwc-seg.cls { background: repeating-linear-gradient(135deg, #c4b5fd 0 4px, #ddd6fe 4px 8px); }
.hwc-seg.cls.now { background: linear-gradient(90deg, #4338ca, #a855f7); }
.hwc-seg.cls.past { background: #c7c2e0; }
.hwc-legend { display: flex; gap: 14px; margin-top: 8px; font-size: 11.5px; color: var(--muted); }
.hwc-legend span { display: inline-flex; align-items: center; gap: 6px; }
.hwc-legend i { width: 14px; height: 6px; border-radius: 999px; }
.lg-att { background: #c7c7cc; }
.lg-cls { background: repeating-linear-gradient(135deg, #a78bfa 0 3px, #ddd6fe 3px 6px); }
.hwc-week li.cls b { color: #6d28d9; }
.hwc-week li em { font-style: normal; color: var(--faint); font-weight: 500; }

/* =========================================================
   CONTAS DE USUÁRIO — barra de cima, janelas, perfil e painel mestre
   ========================================================= */
.tb-user { position: relative; min-width: 40px; min-height: 40px; }
.tb-login {
  display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 18px 0 14px; border: 0; border-radius: 999px;
  background: #fff; color: var(--ink); font: 600 14px/1 "Inter", sans-serif; cursor: pointer;
  transition: transform .2s var(--ease), background .2s;
}
.tb-login:hover { background: #f0f0f2; }
.tb-login:active { transform: scale(.97); }
.tb-login i { width: 18px; height: 18px; display: grid; }
.tb-me {
  display: flex; align-items: center; gap: 12px; padding: 0; border: 0; background: none; color: inherit;
  font: inherit; text-align: right; cursor: pointer; border-radius: 999px;
}
.tb-me:focus-visible { outline: none; box-shadow: var(--ring); }
.tb-me .tb-user-text strong { max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tb-me-av { position: relative; display: grid; }
.avatar.tb-avatar { width: 36px; height: 36px; font-size: 13px; box-shadow: 0 0 0 2px rgba(255, 255, 255, .85); transition: transform .25s var(--ease); }
.tb-me:hover .avatar.tb-avatar { transform: scale(1.06); }
.tb-badge {
  position: absolute; top: -4px; right: -6px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px;
  display: grid; place-items: center; background: #ff3b30; color: #fff; font: 700 10.5px/1 "Inter", sans-serif; font-style: normal;
  box-shadow: 0 0 0 2px var(--graphite);
}

/* menu da conta */
.um {
  position: absolute; top: calc(100% + 14px); right: -6px; z-index: 56; width: 300px; padding: 8px;
  border-radius: 22px; background: rgba(255, 255, 255, .98); color: var(--ink);
  border: 1px solid rgba(0, 0, 0, .06); box-shadow: 0 30px 70px -24px rgba(0, 0, 0, .45), 0 2px 8px rgba(0, 0, 0, .06);
  opacity: 0; transform: translateY(-8px) scale(.97); transform-origin: top right;
  transition: opacity .2s ease, transform .35s var(--ease);
}
.um.in { opacity: 1; transform: none; }
.um-head { display: flex; align-items: center; gap: 12px; padding: 10px 10px 14px; border-bottom: 1px solid var(--line-soft); margin-bottom: 6px; }
.avatar.um-avatar { width: 48px; height: 48px; font-size: 17px; box-shadow: none; }
.um-who { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.um-who strong { font-size: 15px; font-weight: 700; letter-spacing: -.01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.um-who span { font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.um-state { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin: 0 4px 6px; padding: 10px 12px; border-radius: 14px; font-size: 13px; font-weight: 600; background: #fff7e8; color: #8a5300; }
.um-state i, .me-status i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.um-state span { flex-basis: 100%; font-weight: 500; color: #8a6a3a; }
.um-state.s-blocked { background: #fff1f0; color: var(--danger); }
.um-item {
  display: flex; align-items: center; gap: 12px; width: 100%; height: 44px; padding: 0 12px; border: 0; border-radius: 12px;
  background: none; color: var(--ink); font: 500 15px/1 "Inter", sans-serif; text-decoration: none; cursor: pointer;
}
.um-item:hover, .um-item:focus-visible { outline: none; background: var(--line-soft); }
.um-item i { width: 18px; height: 18px; display: grid; color: var(--muted); }
.um-item.danger, .um-item.danger i { color: var(--danger); }
.um-count { margin-left: auto; min-width: 22px; height: 22px; padding: 0 7px; border-radius: 999px; display: grid; place-items: center; background: #ff3b30; color: #fff; font-size: 12px; }

/* janelas de entrar / criar conta */
.au-card { text-align: left; width: min(420px, 100%); max-height: calc(100dvh - 32px); overflow-y: auto; }
.au-card h2, .au-card > .lk-sub { text-align: center; }
.au-card .lk-icon { margin-bottom: 14px; }
.au-ico.ok { background: linear-gradient(160deg, var(--accent-2), var(--accent)); }
.au-ico.wait { background: linear-gradient(160deg, #ffb340, #ff9500); }
.au-ico.warn { background: linear-gradient(160deg, #ff6961, #e30000); }
.au-card .lk-sub b { color: var(--ink); font-weight: 600; word-break: break-all; }
.au-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; margin: -6px 0 18px; border-radius: 14px; background: var(--line-soft); }
.au-tabs button { height: 36px; border: 0; border-radius: 10px; background: none; color: var(--muted); font: 600 14px/1 "Inter", sans-serif; cursor: pointer; transition: background .2s, color .2s; }
.au-tabs button.on { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }
.au-label { display: block; margin: 12px 0 6px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.au-link { display: inline-block; margin: 10px 0 0; padding: 0; border: 0; background: none; color: var(--accent); font: 600 13.5px/1.3 "Inter", sans-serif; cursor: pointer; }
.au-link:hover { text-decoration: underline; }
.au-forgot { float: right; }
.au-check { display: flex; align-items: flex-start; gap: 10px; margin-top: 16px; font-size: 13.5px; line-height: 1.4; color: var(--ink-2); cursor: pointer; }
.au-check input { flex: none; width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--accent); }
.au-check a { color: var(--accent); font-weight: 600; }
.au-card .lk-msg { clear: both; }
.lk-msg.ok { color: var(--accent); }
.lk-actions.one { grid-template-columns: 1fr; }

/* Meu perfil */
.me-loading { color: var(--muted); font-size: 15px; padding: 40px 0; }
.me-cta { display: flex; gap: 10px; margin-top: 32px; }
.me-cta .btn-dark, .me-cta .btn-soft { margin: 0; height: 44px; padding: 0 22px; }
.me-grid { display: grid; grid-template-columns: 320px 1fr 1fr; gap: 20px; align-items: start; max-width: 1200px; }
.me-card { padding: 24px; border-radius: 24px; background: var(--card); box-shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 12px 32px -18px rgba(0, 0, 0, .25); }
.me-card h3 { margin: 0 0 8px; font-size: 19px; font-weight: 700; letter-spacing: -.02em; }
.me-foot { display: flex; justify-content: flex-end; margin-top: 18px; }
.me-id { display: flex; flex-direction: column; align-items: center; text-align: center; }
.me-photo { position: relative; }
.avatar.me-avatar { width: 128px; height: 128px; font-size: 40px; box-shadow: 0 0 0 4px #fff, 0 10px 30px -10px rgba(0, 0, 0, .4); }
.me-cam {
  position: absolute; right: 2px; bottom: 2px; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  background: var(--ink); color: #fff; box-shadow: 0 0 0 3px #fff; cursor: pointer; transition: transform .2s var(--ease);
}
.me-cam:hover { transform: scale(1.08); }
.me-cam i { width: 18px; height: 18px; display: grid; }
.me-photo-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 20px; }
.me-photo-actions .btn-soft { cursor: pointer; height: 34px; font-size: 13.5px; }
.me-status { display: inline-flex; align-items: center; gap: 8px; margin: 18px 0 0; padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; }
.me-status.s-approved { background: var(--accent-soft); color: var(--accent); }
.me-status.s-pending { background: #fff7e8; color: #8a5300; }
.me-status.s-blocked { background: #fff1f0; color: var(--danger); }
.me-card .lk-field input:disabled { background: var(--bg); color: var(--muted); }

/* Painel mestre: usuários */
.us-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 18px; }
.us-filters { display: flex; flex-wrap: wrap; gap: 6px; }
.us-filters button {
  display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line);
  background: #fff; color: var(--ink-2); font: 600 13.5px/1 "Inter", sans-serif; cursor: pointer; transition: background .2s, color .2s, border-color .2s;
}
.us-filters button b { font-weight: 600; color: var(--faint); }
.us-filters button.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.us-filters button.on b { color: rgba(255, 255, 255, .6); }
.us-search { display: flex; align-items: center; gap: 8px; width: min(320px, 100%); height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: #fff; }
.us-search i { width: 16px; height: 16px; display: grid; color: var(--faint); }
.us-search input { flex: 1; min-width: 0; border: 0; outline: none; background: none; font: inherit; font-size: 14.5px; color: var(--ink); }
.us-list { display: flex; flex-direction: column; gap: 10px; }
.us-row {
  display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 16px; padding: 14px 16px; border-radius: 20px;
  background: var(--card); box-shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 8px 24px -18px rgba(0, 0, 0, .3);
}
.avatar.us-avatar { width: 48px; height: 48px; font-size: 16px; box-shadow: none; }
.us-who { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.us-who strong { font-size: 15.5px; font-weight: 700; letter-spacing: -.01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.us-who strong em { font-style: normal; font-weight: 500; color: var(--faint); }
.us-who span { font-size: 13.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.us-who small { font-size: 12px; color: var(--faint); }
.us-tags { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.us-pill { padding: 5px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.us-pill.s-approved { background: var(--accent-soft); color: var(--accent); }
.us-pill.s-pending { background: #fff7e8; color: #8a5300; }
.us-pill.s-blocked { background: #fff1f0; color: var(--danger); }
.us-pill.admin { background: #eef0ff; color: #3634a3; }
.us-pill.info { display: inline-flex; align-items: center; gap: 5px; background: #fff7e0; color: #8a5a00; }
.us-pill.info svg { width: 13px; height: 13px; }
.us-info-btn.on { background: #1d1d1f; color: #fff; border-color: #1d1d1f; }
.us-info-btn.on:hover { background: #333; }
.us-pill.ped { display: inline-flex; align-items: center; gap: 5px; background: #e6f7ef; color: #047857; }
.us-pill.ped svg { width: 13px; height: 13px; }
.us-ped-btn.on { background: #047857; color: #fff; border-color: #047857; }
.us-ped-btn.on:hover { background: #065f46; }
.us-actions { display: flex; align-items: center; gap: 4px; }
.us-actions .btn-dark.sm, .us-actions .btn-soft.sm { height: 34px; padding: 0 14px; font-size: 13.5px; margin-right: 4px; }
.us-actions .icon-btn:not(.danger):hover { background: var(--line-soft); color: var(--ink); }
.us-empty { padding: 40px 0; text-align: center; color: var(--muted); }

/* Política de Privacidade */
.pv-text { max-width: 760px; font-size: 17px; line-height: 1.6; color: var(--ink-2); }
.pv-text h3 { margin: 28px 0 6px; font-size: 21px; font-weight: 700; letter-spacing: -.02em; color: var(--ink); }
.pv-text p { margin: 0; }

@media (max-width: 1200px) { .me-grid { grid-template-columns: 1fr 1fr; } .me-id { grid-row: span 2; } }
@media (max-width: 1000px) {
  .us-row { grid-template-columns: auto 1fr; }
  .us-tags { grid-column: 2; justify-content: flex-start; }
  .us-actions { grid-column: 1 / -1; flex-wrap: wrap; padding-top: 10px; border-top: 1px solid var(--line-soft); }
}
@media (max-width: 860px) {
  .tb-user { position: static; }
  .tb-login { width: 40px; height: 40px; padding: 0; justify-content: center; border-radius: 50%; }
  .tb-login span { display: none; }
  .avatar.tb-avatar { width: 40px; height: 40px; }
  .um { left: 0; right: 0; width: auto; top: calc(100% + 10px); transform-origin: top center; }
  .me-grid { grid-template-columns: 1fr; }
  .me-id { grid-row: auto; }
  .me-card { padding: 20px; border-radius: 22px; }
  .avatar.me-avatar { width: 112px; height: 112px; font-size: 34px; }
  .us-search { width: 100%; }
  .us-filters { flex-wrap: nowrap; overflow-x: auto; margin: 0 -16px; padding: 0 16px; scrollbar-width: none; }
  .us-filters button { flex: none; }
  .pv-text { font-size: 16px; }
  .au-card { padding: 26px 20px 20px; }
}

/* =========================================================
   INDICAR — página "em breve" com entrada no estilo Apple
   ========================================================= */
.ref { max-width: 1120px; animation: none; }
.ref-hero { position: relative; isolation: isolate; text-align: center; padding: 24px 0 56px; }
/* luzes coloridas que respiram por trás: cada luz é um degradê radial que já termina transparente,
   então nenhuma borda aparece, em qualquer largura de tela */
.ref-glow { position: absolute; inset: -100px 0 0; z-index: -1; pointer-events: none; overflow: hidden; opacity: 0; animation: refFade 1.6s ease .1s forwards; }
.ref-glow span { position: absolute; width: 560px; height: 560px; border-radius: 50%; background: radial-gradient(circle closest-side, rgba(var(--g), .5), rgba(var(--g), .22) 45%, rgba(var(--g), 0)); animation: refDrift 14s ease-in-out infinite alternate; }
.ref-glow span:nth-child(1) { left: 4%; top: -40px; --g: 52, 211, 153; }
.ref-glow span:nth-child(2) { right: 4%; top: -10px; --g: 96, 165, 250; animation-delay: -5s; }
.ref-glow span:nth-child(3) { left: 32%; top: 130px; --g: 251, 191, 36; opacity: .8; animation-delay: -9s; }

/* ícone central com anéis e as iniciais dos amigos em órbita */
.ref-orb { position: relative; width: 220px; height: 220px; margin: 0 auto 26px; display: grid; place-items: center; }
.ref-ring { position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgba(6, 122, 87, .18); opacity: 0; transform: scale(.6); animation: refRing 1.2s var(--ease) forwards; }
.ref-ring.r2 { inset: 30px; border-color: rgba(6, 122, 87, .26); animation-delay: .12s; }
.ref-ring.r3 { inset: 60px; border-color: rgba(6, 122, 87, .34); animation-delay: .24s; }
.ref-core {
  position: relative; width: 84px; height: 84px; border-radius: 28px; display: grid; place-items: center; color: #fff;
  background: linear-gradient(150deg, #34d399, #0f9b6c 45%, #2563eb);
  box-shadow: 0 20px 44px -14px rgba(6, 122, 87, .65), inset 0 1px 0 rgba(255, 255, 255, .35);
  opacity: 0; transform: scale(.4) rotate(-25deg);
  animation: refPop .9s cubic-bezier(.34, 1.56, .64, 1) .2s forwards, refFloat 5s ease-in-out 1.4s infinite;
}
.ref-core svg { width: 40px; height: 40px; }
.ref-av {
  position: absolute; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  color: #fff; font-size: 14px; font-weight: 700; box-shadow: 0 0 0 3px var(--bg), 0 8px 20px -8px rgba(0, 0, 0, .4);
  opacity: 0; animation: refPop .7s cubic-bezier(.34, 1.56, .64, 1) forwards, refFloat 6s ease-in-out infinite;
}
.ref-av.a1 { left: 4px; top: 54px; background: linear-gradient(160deg, #a78bfa, #7c3aed); animation-delay: .55s, 1.6s; }
.ref-av.a2 { right: 0; top: 30px; background: linear-gradient(160deg, #38bdf8, #2563eb); animation-delay: .7s, 2.2s; }
.ref-av.a3 { right: 26px; bottom: 6px; background: linear-gradient(160deg, #fbbf24, #f97316); animation-delay: .85s, 2.8s; }

.ref-badge {
  display: inline-flex; align-items: center; gap: 8px; margin: 0 0 18px; padding: 7px 14px; border-radius: 999px;
  background: rgba(6, 122, 87, .1); color: var(--accent); font-size: 14px; font-weight: 700; letter-spacing: .02em;
  opacity: 0; animation: refUp .8s var(--ease) .45s forwards;
}
.ref-dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; animation: refBlink 1.8s ease-in-out infinite; }
/* título surge palavra a palavra, saindo do desfoque */
.ref-title { margin: 0; font-size: clamp(40px, 6.6vw, 84px); line-height: 1.04; font-weight: 700; letter-spacing: -.04em; }
.ref-title > span { display: inline-block; opacity: 0; filter: blur(12px); transform: translateY(24px); animation: refWord 1s var(--ease) forwards; }
.ref-title > span:nth-child(1) { animation-delay: .6s; }
.ref-title > span:nth-child(2) { animation-delay: .8s; }
.ref-title > span:nth-child(3) { animation-delay: 1s; }
.ref-sub { max-width: 640px; margin: 22px auto 0; font-size: 21px; line-height: 1.45; font-weight: 500; color: var(--ink-2); opacity: 0; animation: refUp .9s var(--ease) 1.25s forwards; }

/* os três passos sobem em sequência */
.ref-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.ref-step {
  position: relative; padding: 28px 26px 30px; border-radius: 28px; background: var(--card);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 18px 40px -24px rgba(0, 0, 0, .3);
  opacity: 0; transform: translateY(40px) scale(.97);
  animation: refCard 1s var(--ease) calc(1.45s + var(--k) * .14s) forwards;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.ref-step:hover { transform: translateY(-6px); box-shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 30px 60px -28px rgba(0, 0, 0, .4); }
.ref-num { position: absolute; top: 24px; right: 26px; font-size: 15px; font-weight: 700; color: var(--line); font-variant-numeric: tabular-nums; }
.ref-ico { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; color: #fff; margin-bottom: 20px; }
.ref-step:nth-child(1) .ref-ico { background: linear-gradient(160deg, #34d399, #0f9b6c); }
.ref-step:nth-child(2) .ref-ico { background: linear-gradient(160deg, #60a5fa, #2563eb); }
.ref-step:nth-child(3) .ref-ico { background: linear-gradient(160deg, #fbbf24, #f97316); }
.ref-ico i { width: 26px; height: 26px; display: grid; }
.ref-step h3 { margin: 0 0 8px; font-size: 22px; font-weight: 700; letter-spacing: -.02em; }
.ref-step p { margin: 0; font-size: 16px; line-height: 1.5; color: var(--muted); }
.ref-note { margin: 36px 0 0; text-align: center; font-size: 15px; color: var(--faint); opacity: 0; animation: refFade 1s ease 2.1s forwards; }

@keyframes refFade { to { opacity: 1; } }
@keyframes refUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes refWord { to { opacity: 1; filter: none; transform: none; } }
@keyframes refCard { to { opacity: 1; transform: none; } }
@keyframes refRing { to { opacity: 1; transform: none; } }
@keyframes refPop { to { opacity: 1; transform: none; } }
@keyframes refFloat { 50% { translate: 0 -8px; } }
@keyframes refBlink { 50% { opacity: .35; } }
@keyframes refDrift { to { transform: translate(36px, 22px) scale(1.08); } }

@media (max-width: 860px) {
  .ref-hero { padding: 8px 0 36px; }
  .ref-orb { width: 180px; height: 180px; margin-bottom: 20px; }
  .ref-ring.r2 { inset: 24px; } .ref-ring.r3 { inset: 48px; }
  .ref-core { width: 70px; height: 70px; border-radius: 22px; }
  .ref-core svg { width: 34px; height: 34px; }
  .ref-av { width: 38px; height: 38px; font-size: 12.5px; }
  .ref-av.a1 { top: 44px; }
  .ref-title { font-size: 36px; }
  .ref-sub { font-size: 16.5px; margin-top: 16px; }
  .ref-glow span { width: 380px; height: 380px; }
  .ref-steps { grid-template-columns: 1fr; gap: 14px; }
  .ref-step { padding: 22px 22px 24px; border-radius: 24px; }
  .ref-ico { width: 46px; height: 46px; border-radius: 14px; margin-bottom: 14px; }
  .ref-step h3 { font-size: 19px; }
  .ref-step p { font-size: 15px; }
  .ref-note { font-size: 13.5px; margin-top: 26px; }
}
@media (prefers-reduced-motion: reduce) {
  .ref *, .ref *::before { animation-duration: .01ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; }
}

/* =========================================================
   NOTÍCIAS — radar atrás do título: ondas que pulsam e usuários em órbita
   ========================================================= */
.news-page .ap-hero { position: relative; isolation: isolate; padding: 92px 0 84px; } /* espaço para o radar em volta do título */
.nr {
  --size: 470px;
  position: absolute; z-index: -1; left: 50%; top: 50%; width: var(--size); height: var(--size);
  margin: calc(var(--size) / -2) 0 0 calc(var(--size) / -2); pointer-events: none;
  opacity: 0; animation: nrIn 1.4s var(--ease) .15s forwards;
}
.nr > span { position: absolute; border-radius: 50%; }
/* brilho suave no centro, que já termina transparente (sem bordas) */
.nr-glow { inset: 8%; background: radial-gradient(circle closest-side, rgba(52, 211, 153, .22), rgba(96, 165, 250, .12) 55%, rgba(96, 165, 250, 0)); animation: nrBreath 6s ease-in-out infinite; }
/* anéis fixos */
.nr-ring { inset: 0; border: 1px solid rgba(6, 122, 87, .13); }
.nr-ring:nth-of-type(3) { inset: 17%; border-color: rgba(6, 122, 87, .17); }
.nr-ring:nth-of-type(4) { inset: 33%; border-color: rgba(6, 122, 87, .21); }
/* ondas que saem do centro, como um radar */
.nr-wave { inset: 0; border: 1.5px solid rgba(15, 155, 108, .45); background: radial-gradient(circle closest-side, rgba(52, 211, 153, 0) 70%, rgba(52, 211, 153, .08)); transform: scale(.2); opacity: 0; animation: nrWave 7s cubic-bezier(.2, .6, .35, 1) infinite; }
/* uma onda nova a cada 3,5 s (duas ondas revezando num ciclo de 7 s) */
.nr-wave:nth-of-type(6) { animation-delay: 3.5s; }
.nr-wave:nth-of-type(7) { display: none; }
/* órbitas girando com os "usuários conectados". Órbitas e braços são pontos sem tamanho no centro:
   assim, ao girar, nada ocupa espaço extra e a página nunca fica mais larga que a tela */
.nr-orbit { left: 50%; top: 50%; width: 0; height: 0; animation: nrSpin var(--t) linear infinite; }
.nr-orbit.o1 { --t: 46s; --r: calc(var(--size) / 2); }
.nr-orbit.o2 { --t: 34s; --r: calc(var(--size) * .33); animation-direction: reverse; }
.nr-orbit.o3 { --t: 26s; --r: calc(var(--size) * .17); }
.nr-arm { position: absolute; left: 0; top: 0; width: 0; height: 0; transform: rotate(var(--deg)); }
.nr-user {
  position: absolute; left: 0; top: calc(var(--r) * -1); width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%;
  display: grid; place-items: center; color: #fff; font: 700 11.5px/1 "Inter", sans-serif;
  background: linear-gradient(160deg, var(--a), var(--b));
  box-shadow: 0 0 0 3px var(--bg), 0 8px 18px -8px var(--b);
  /* gira ao contrário da órbita para as letras ficarem sempre em pé */
  animation: nrUpright var(--t) linear infinite;
}
.nr-orbit.o2 .nr-user { animation-direction: reverse; }
.nr-user { rotate: calc(var(--deg) * -1); }
/* bolinha verde de "online" que pisca */
.nr-user i { position: absolute; right: -1px; bottom: -1px; width: 10px; height: 10px; border-radius: 50%; background: #34c759; box-shadow: 0 0 0 2px var(--bg); }
/* pulso da bolinha "online": anel que cresce e some (só transform/opacity, leve no iPhone) */
.nr-user i::after { content: ""; position: absolute; inset: -3px; border-radius: 50%; background: rgba(52, 199, 89, .35); animation: nrOnline 2.4s ease-out infinite; animation-delay: inherit; }
.nr-arm:nth-child(2n) .nr-user i { animation-delay: .8s; }
.nr-arm:nth-child(3n) .nr-user i { animation-delay: 1.6s; }
.nr-spark { position: absolute; left: 0; top: calc(var(--r) * -1); width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 3px rgba(52, 211, 153, .2), 0 0 12px 2px rgba(52, 211, 153, .6); }
.nr-orbit.o3 .nr-spark { background: #60a5fa; box-shadow: 0 0 0 3px rgba(96, 165, 250, .2), 0 0 12px 2px rgba(96, 165, 250, .6); }

@keyframes nrIn { from { opacity: 0; transform: scale(.85); } to { opacity: 1; transform: none; } }
@keyframes nrWave { 0% { transform: scale(.2); opacity: 0; } 15% { opacity: 1; } 100% { transform: scale(1); opacity: 0; } }
@keyframes nrSpin { to { transform: rotate(360deg); } }
@keyframes nrUpright { from { transform: rotate(0deg); } to { transform: rotate(-360deg); } }
@keyframes nrBreath { 50% { transform: scale(1.08); opacity: .75; } }
@keyframes nrOnline { 0% { transform: scale(.6); opacity: .8; } 70%, 100% { transform: scale(1.8); opacity: 0; } }

@media (max-width: 860px) {
  .nr { --size: min(300px, calc(100vw - 40px)); }
  .news-page .ap-hero { padding: 66px 0 60px; } /* espaço para o radar aparecer inteiro em volta do título */
  .nr-user { width: 28px; height: 28px; margin: -14px 0 0 -14px; font-size: 10px; box-shadow: 0 0 0 2px var(--bg), 0 6px 14px -6px var(--b); }
  .nr-user i { width: 8px; height: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .nr, .nr * { animation: none !important; }
  .nr { opacity: 1; }
}
/* os cartões de categoria ficam na frente do radar (as bolinhas passam por trás deles) */
.news-page .ap-cats { position: relative; z-index: 1; }

/* fotos no radar e no editor das Preferências */
.nr-user { overflow: visible; }
.nr-user img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; }
.avatar.rd-avatar { background: linear-gradient(160deg, var(--a), var(--b)); }
.pref-h { margin: 28px 0 4px; font-size: 16px; font-weight: 700; letter-spacing: -.01em; }

/* itens do menu que só administradores veem (Configurações, Sistema Semipresencial) */
body:not(.is-admin) .admin-only { display: none !important; }

/* editor de banners: imagem do computador e (opcional) do celular */
.bi-thumb, .bi-mthumb { position: relative; }
.bi-mthumb {
  flex: none; width: 52px; height: 64px; border-radius: 10px; border: 1.5px dashed var(--line); cursor: pointer;
  display: grid; place-items: center; color: var(--faint); background: #fff center / cover no-repeat;
}
.bi-mthumb.has { border: 0; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08); }
.bi-mthumb i { width: 18px; height: 18px; display: grid; margin-bottom: 12px; }
.bi-mthumb:hover { border-color: var(--accent); color: var(--accent); }
.bi-tag {
  position: absolute; left: 50%; bottom: 4px; transform: translateX(-50%); padding: 2px 6px; border-radius: 999px;
  background: rgba(0, 0, 0, .62); color: #fff; font-size: 9.5px; font-weight: 700; white-space: nowrap; pointer-events: none;
}
.bi-mthumb:not(.has) .bi-tag { background: none; color: inherit; }
.bi-mtools { display: flex; flex-direction: column; gap: 2px; }

@keyframes heroDrop { from { clip-path: inset(0 0 100% 0); transform: translateY(-36px); } to { clip-path: inset(0 0 0 0); transform: none; } }
@keyframes heroSettle { from { scale: 1.12; } to { scale: 1; } }
@keyframes heroDots { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { body.hero-intro .car-box * , body.hero-intro .car-box .carousel { animation: none !important; } }

/* =========================================================
   CELULAR — ao rolar, a barra de cima se recolhe para a direita,
   ficando só a pesquisa e a foto de perfil.
   Os itens não mudam de tamanho (nada "pula"): só o fundo escuro desliza
   da esquerda para a direita, enquanto logo e relógio somem suavemente.
   ========================================================= */
@media (max-width: 860px) {
  .topbar { isolation: isolate; background: transparent; border-color: transparent; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .topbar::before {
    content: ""; position: absolute; z-index: -1; top: 0; bottom: 0; left: 0; right: 0; border-radius: 999px;
    background: rgba(22, 22, 23, .9);
    -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
    border: 1px solid rgba(255, 255, 255, .08);
    box-shadow: 0 1px 2px rgba(0, 0, 0, .08), 0 10px 30px -14px rgba(0, 0, 0, .35);
    transition: left .9s cubic-bezier(.45, 0, .15, 1), box-shadow .35s var(--ease);
  }
  .topbar-wrap.scrolled .topbar { box-shadow: none; }
  .topbar-wrap.scrolled .topbar::before { box-shadow: 0 1px 2px rgba(0, 0, 0, .1), 0 16px 40px -16px rgba(0, 0, 0, .45); }
  .topbar :is(.tb-logo, .tb-title, .hw) {
    transition: opacity .45s ease .18s, transform .9s cubic-bezier(.45, 0, .15, 1), filter .45s ease .18s;
  }
  /* recolhida */
  .topbar-wrap.mini .topbar:not(.searching) { pointer-events: none; }
  .topbar-wrap.mini .topbar:not(.searching) :is(.tb-search-btn, .tb-user) { pointer-events: auto; }
  .topbar-wrap.mini .topbar:not(.searching)::before { left: calc(100% - 106px); }
  .topbar-wrap.mini .topbar:not(.searching) :is(.tb-logo, .tb-title, .hw) {
    opacity: 0; transform: translateX(36px) scale(.96); filter: blur(4px);
    transition: opacity .3s ease, transform .9s cubic-bezier(.45, 0, .15, 1), filter .3s ease;
  }
  .topbar-wrap.mini .topbar:not(.searching) .hw-card { display: none; }
}
@media (max-width: 860px) and (prefers-reduced-motion: reduce) { .topbar::before, .topbar > * { transition: none !important; } }

/* =========================================================
   CELULAR — escolher a aba arrastando o dedo (lente de vidro)
   ========================================================= */
@media (max-width: 860px) {
  .tabbar { touch-action: none; -webkit-user-select: none; user-select: none; }
  .tab { position: relative; z-index: 1; -webkit-touch-callout: none; }
  .tab i { transition: color .2s, filter .2s, transform .35s cubic-bezier(.34, 1.56, .64, 1); }
  .tab-lens {
    position: absolute; z-index: 0; left: 0; top: 5px; bottom: 5px; width: 60px; border-radius: 22px; pointer-events: none;
    background: rgba(255, 255, 255, .15);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2), inset 0 1px 0 rgba(255, 255, 255, .25), 0 8px 20px -8px rgba(0, 0, 0, .6);
    opacity: 0; transform: translateX(0);
    transition: transform .45s cubic-bezier(.34, 1.4, .64, 1), width .3s ease, opacity .35s ease .12s;
  }
  /* enquanto o dedo arrasta: a lente acompanha rápido e o ícone embaixo dela cresce */
  .tabbar.dragging .tab-lens { opacity: 1; transition: transform .14s ease-out, width .2s ease, opacity .15s ease; }
  .tabbar.dragging .tab.pressing { color: #fff; }
  .tabbar.dragging .tab.pressing i { transform: scale(1.2); color: rgb(var(--tc)); }
  .tabbar.compact .tab-lens { top: 4px; bottom: 4px; border-radius: 18px; }
}

/* =========================================================
   AGENDAR — formulário público e painel dos administradores
   ========================================================= */
.ag-page { max-width: 980px; }
.ag-hero { position: relative; isolation: isolate; text-align: center; padding: 36px 0 34px; }
.ag-hero-glow {
  position: absolute; inset: -120px -40px -280px; z-index: -1; overflow: hidden; pointer-events: none;
  /* o degradê desce por trás do texto e do cartão e vai sumindo, sem corte */
  -webkit-mask-image: linear-gradient(to bottom, #000 45%, transparent 100%); mask-image: linear-gradient(to bottom, #000 45%, transparent 100%);
}
.ag-hero-glow span { position: absolute; width: 520px; height: 520px; border-radius: 50%; background: radial-gradient(circle closest-side, rgba(var(--g), .32), rgba(var(--g), 0)); }
.ag-hero-glow span:nth-child(1) { --g: 52, 211, 153; left: 6%; top: -80px; }
.ag-hero-glow span:nth-child(2) { --g: 96, 165, 250; right: 6%; top: -40px; }
.ag-kicker { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 14px; padding: 7px 14px; border-radius: 999px; background: rgba(6, 122, 87, .1); color: var(--accent); font-size: 14px; font-weight: 700; }
.ag-kicker i { width: 16px; height: 16px; display: grid; }
.ag-hero h1 { margin: 0; font-size: clamp(36px, 5.4vw, 64px); line-height: 1.05; font-weight: 700; letter-spacing: -.04em; }
.ag-lead { max-width: 660px; margin: 18px auto 0; font-size: 19px; line-height: 1.45; font-weight: 500; color: var(--ink-2); }
.ag-admin-link { margin-top: 22px; height: 40px; }

.ag-card { padding: 30px; border-radius: 30px; background: var(--card); box-shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 24px 60px -32px rgba(0, 0, 0, .35); }
.ag-step { display: flex; align-items: center; gap: 12px; margin: 28px 0 14px; }
.ag-step:first-child { margin-top: 0; }
.ag-step h3 { margin: 0; font-size: 20px; font-weight: 700; letter-spacing: -.02em; }
.ag-n { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 14px; font-weight: 700; color: #fff; background: linear-gradient(150deg, #34d399, #0f9b6c); }
.ag-kinds { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ag-opt {
  position: relative; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 14px; align-items: center; text-align: left;
  padding: 18px; border-radius: 20px; border: 1.5px solid var(--line); background: #fff; color: var(--ink); font: inherit; cursor: pointer;
  transition: border-color .25s, box-shadow .35s var(--ease), transform .35s var(--ease);
}
.ag-opt:hover { transform: translateY(-2px); }
.ag-opt-ico { grid-row: span 2; width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; color: #fff; background: linear-gradient(160deg, #60a5fa, #2563eb); }
.ag-opt[data-kind="tutoria"] .ag-opt-ico { background: linear-gradient(160deg, #a78bfa, #7c3aed); }
.ag-opt-ico i { width: 22px; height: 22px; display: grid; }
.ag-opt strong { font-size: 17px; font-weight: 700; letter-spacing: -.01em; }
.ag-opt small { font-size: 13px; color: var(--muted); }
.ag-opt.on { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(6, 122, 87, .12), 0 14px 30px -18px rgba(6, 122, 87, .6); }
.ag-opt.on::after { content: ""; position: absolute; top: 14px; right: 14px; width: 20px; height: 20px; border-radius: 50%; background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5 9-10'/%3E%3C/svg%3E") center / 12px no-repeat; }
.ag-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.ag-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.ag-field.full { grid-column: 1 / -1; }
.ag-field > span { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.ag-field input, .ag-field select, .ag-select {
  width: 100%; height: 48px; padding: 0 14px; border-radius: 14px; border: 1px solid var(--line); background: #fff;
  font: inherit; font-size: 16px; color: var(--ink); transition: border-color .2s, box-shadow .2s;
}
.ag-field input:focus, .ag-field select:focus, .ag-select:focus { outline: none; border-color: var(--accent); box-shadow: var(--ring); }
.ag-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ag-chips button { height: 42px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font: 600 15px/1 "Inter", sans-serif; color: var(--ink-2); cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .3s var(--ease); }
.ag-chips button:active { transform: scale(.96); }
.ag-chips button.on { background: var(--ink); border-color: var(--ink); color: #fff; }

.ag-when { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.ag-cal { padding: 16px; border-radius: 22px; background: var(--bg); }
.ag-cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.ag-cal-head strong { font-size: 17px; font-weight: 700; text-transform: capitalize; }
.ag-nav { width: 34px; height: 34px; border-radius: 50%; border: 0; display: grid; place-items: center; background: #fff; color: var(--ink); cursor: pointer; box-shadow: 0 1px 3px rgba(0, 0, 0, .1); }
.ag-nav:disabled { opacity: .3; cursor: default; }
.ag-nav i { width: 16px; height: 16px; display: grid; }
.ag-wk, .ag-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; text-align: center; }
.ag-wk span { font-size: 12px; font-weight: 600; color: var(--faint); padding: 4px 0; }
.ag-day {
  position: relative; aspect-ratio: 1; border: 0; border-radius: 50%; background: none; font: 600 15px/1 "Inter", sans-serif; color: var(--ink); cursor: pointer;
  transition: background .2s, color .2s, transform .3s var(--ease);
}
.ag-day:not(:disabled):hover { background: #fff; }
.ag-day:not(:disabled)::after { content: ""; position: absolute; left: 50%; bottom: 14%; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--accent); }
.ag-day:disabled { color: #c7c7cc; cursor: default; font-weight: 500; }
.ag-day.blocked { text-decoration: line-through; }
.ag-day.today { box-shadow: inset 0 0 0 1.5px var(--line); }
.ag-day.on { background: var(--accent) !important; color: #fff; transform: scale(1.06); box-shadow: 0 8px 18px -8px var(--accent); }
.ag-day.on::after { background: #fff; }
.ag-shifts { display: flex; flex-direction: column; gap: 10px; }
.ag-hint { display: flex; align-items: flex-start; gap: 10px; margin: 0; padding: 18px; border-radius: 18px; background: var(--bg); color: var(--muted); font-size: 15px; line-height: 1.4; }
.ag-hint i { flex: none; width: 20px; height: 20px; display: grid; }
.ag-date-t { margin: 2px 0 2px; font-size: 15px; font-weight: 700; }
.ag-date-t::first-letter, .ag-ticket-top strong::first-letter { text-transform: uppercase; }
.ag-shift {
  display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto auto; align-items: center; text-align: left; gap: 2px 10px;
  padding: 16px 18px; border-radius: 18px; border: 1.5px solid var(--line); background: #fff; font: inherit; color: var(--ink); cursor: pointer;
  transition: border-color .25s, box-shadow .35s var(--ease), transform .35s var(--ease); animation: pageIn .45s var(--ease) both;
}
.ag-shift:nth-of-type(3) { animation-delay: .06s; }
.ag-shift strong { font-size: 17px; font-weight: 700; }
.ag-shift small { grid-column: 1; font-size: 13px; color: var(--muted); }
.ag-shift em { grid-row: span 2; grid-column: 2; font-style: normal; font-size: 13px; font-weight: 700; padding: 6px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); }
.ag-shift em.few { background: #fff4e5; color: #b45309; }
.ag-shift:disabled { opacity: .5; cursor: default; }
.ag-shift:disabled em { background: var(--line-soft); color: var(--muted); }
.ag-shift.on { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(6, 122, 87, .12); }
.ag-msg { min-height: 20px; margin: 18px 0 10px; font-size: 14px; font-weight: 600; color: var(--danger); text-align: center; }
.ag-submit {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%; height: 54px; border: 0; border-radius: 18px;
  background: linear-gradient(150deg, #0f9b6c, #067a57); color: #fff; font: 700 17px/1 "Inter", sans-serif; text-decoration: none; cursor: pointer;
  box-shadow: 0 14px 30px -14px rgba(6, 122, 87, .8); transition: transform .3s var(--ease), filter .2s;
}
.ag-submit:hover { filter: brightness(1.06); }
.ag-submit:active { transform: scale(.98); }
.ag-submit:disabled { opacity: .6; }
.ag-submit svg { width: 20px; height: 20px; }

/* confirmação */
.ag-done { text-align: center; padding: 10px 0; animation: pageIn .6s var(--ease) both; }
.ag-check { display: inline-grid; width: 76px; height: 76px; margin-bottom: 14px; }
.ag-check svg { width: 100%; height: 100%; fill: none; stroke: var(--accent); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.ag-check circle { stroke-dasharray: 151; stroke-dashoffset: 151; animation: agDraw .8s var(--ease) forwards; fill: var(--accent-soft); }
.ag-check path { stroke-dasharray: 40; stroke-dashoffset: 40; animation: agDraw .5s var(--ease) .55s forwards; }
@keyframes agDraw { to { stroke-dashoffset: 0; } }
.ag-done h2 { margin: 0; font-size: 28px; font-weight: 700; letter-spacing: -.03em; }
.ag-done > p { margin: 8px 0 0; color: var(--ink-2); }
.ag-ticket { max-width: 520px; margin: 22px auto 0; border-radius: 22px; overflow: hidden; text-align: left; background: var(--bg); }
.ag-ticket-top { padding: 20px 22px; color: #fff; background: linear-gradient(150deg, #0f9b6c, #065f46); }
.ag-ticket-top span { font-size: 13px; font-weight: 700; opacity: .85; }
.ag-ticket-top strong { display: block; margin: 4px 0; font-size: 22px; letter-spacing: -.02em; }
.ag-ticket-top em { font-style: normal; font-weight: 600; opacity: .9; }
.ag-ticket dl { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 0; padding: 18px 22px 20px; }
.ag-ticket dt { font-size: 12px; color: var(--muted); }
.ag-ticket dd { margin: 2px 0 0; font-weight: 600; word-break: break-word; }
.ag-small { font-size: 13.5px; color: var(--muted); margin: 18px 0 12px !important; }
.ag-done-actions { display: flex; flex-direction: column; align-items: center; gap: 10px; max-width: 520px; margin: 0 auto; }
.ag-done-actions .btn-soft { height: 44px; padding: 0 22px; }

/* polo */
.ag-polo { margin: 56px 0 24px; text-align: center; }
.ag-polo h2 { margin: 0; font-size: 30px; font-weight: 700; letter-spacing: -.03em; }
.ag-polo > p { margin: 6px 0 22px; color: var(--muted); }
.ag-info { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; text-align: left; }
.ag-info div { display: flex; flex-direction: column; gap: 4px; padding: 18px; border-radius: 20px; background: var(--card); box-shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 12px 28px -20px rgba(0, 0, 0, .3); }
.ag-info i { width: 22px; height: 22px; display: grid; color: var(--accent); margin-bottom: 4px; }
.ag-info span { font-size: 13px; color: var(--muted); }
.ag-info strong { font-size: 16px; line-height: 1.35; }
.ag-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 18px; }
.ag-links .btn-dark, .ag-links .btn-soft { height: 44px; padding: 0 20px; text-decoration: none; }
.ag-links svg, .ag-links i { width: 18px; height: 18px; display: grid; }

/* painel */
.ag-adm { max-width: 1240px; }
.ag-back { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 8px; color: var(--accent); font-weight: 600; text-decoration: none; }
.ag-back i { width: 16px; height: 16px; display: grid; }
.ag-panel { margin-bottom: 18px; padding: 22px; border-radius: 26px; background: var(--card); box-shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 14px 34px -24px rgba(0, 0, 0, .3); }
.ag-panel h3 { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; font-size: 18px; font-weight: 700; letter-spacing: -.01em; }
.ag-panel h3 i { width: 20px; height: 20px; display: grid; color: var(--accent); }
.ag-desc { margin: -6px 0 14px; color: var(--muted); font-size: 14px; }
.ag-row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; }
.ag-row .ag-field { flex: 1 1 160px; }
.ag-row .ag-field input, .ag-row .ag-field select { height: 44px; font-size: 15px; }
.ag-row > .btn-dark { height: 44px; }
.ag-row-btns { display: flex; gap: 8px; }
.ag-row-btns .btn-soft { height: 44px; }
.ag-slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.ag-slot { padding: 14px; border-radius: 18px; background: var(--bg); }
.ag-slot.blocked { opacity: .6; }
.ag-slot-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.ag-slot-r { display: grid; grid-template-columns: 1fr auto; gap: 2px 8px; align-items: center; margin-top: 6px; font-size: 14px; }
.ag-slot-r b.full { color: var(--danger); }
.ag-slot-r i { grid-column: 1 / -1; height: 4px; border-radius: 999px; background: linear-gradient(90deg, var(--accent) calc(var(--p) * 100%), var(--line-soft) 0); }
.ag-slot-bl { margin: 6px 0 0; font-size: 13px; color: var(--muted); }
.ag-tag { padding: 4px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 700; background: var(--accent-soft); color: var(--accent); white-space: nowrap; }
.ag-tag.t-prova { background: #e0ecff; color: #1d4ed8; }
.ag-tag.t-tutoria { background: #efe7ff; color: #6d28d9; }
.ag-blocks { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }
.ag-block { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 16px; background: var(--bg); }
.ag-block em { flex: 1; font-style: normal; color: var(--muted); font-size: 14px; }
.ag-block .btn-soft.sm { height: 34px; }
.ag-tabs { display: flex; flex-wrap: wrap; gap: 4px; padding: 4px; margin-bottom: 14px; border-radius: 16px; background: var(--line-soft); width: fit-content; }
.ag-tabs button { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px; border: 0; border-radius: 12px; background: none; font: 600 14px/1 "Inter", sans-serif; color: var(--muted); cursor: pointer; }
.ag-tabs button b { font-weight: 700; color: var(--ink-2); }
.ag-tabs button b small { margin-left: 6px; font-size: 11px; font-weight: 600; color: var(--faint); }
.ag-tabs button.on { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }
.ag-tr { display: grid; grid-template-columns: 1.4fr 1.2fr .7fr 1fr .9fr minmax(300px, 1.6fr); gap: 12px; align-items: center; padding: 14px 10px; border-top: 1px solid var(--line-soft); }
.ag-th { border-top: 0; padding-top: 0; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--faint); }
.ag-who, .ag-c { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ag-who strong, .ag-c strong { font-size: 14.5px; font-weight: 600; overflow-wrap: anywhere; }
.ag-who small, .ag-c small { font-size: 12.5px; color: var(--muted); }
.ag-st { display: inline-block; padding: 5px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.ag-st.s-confirmado { background: var(--accent-soft); color: var(--accent); }
.ag-st.s-compareceu { background: #e0ecff; color: #1d4ed8; }
.ag-st.s-faltou { background: #fff1f0; color: var(--danger); }
.ag-st.s-cancelado { background: var(--line-soft); color: var(--muted); }
.ag-acts { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.ag-acts .sm { height: 34px; padding: 0 12px; font-size: 13px; }
.ag-acts .btn-dark.ok { background: var(--accent); }
.ag-acts .btn-soft.no { color: var(--danger); }
.ag-hist { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; text-align: left; font-size: 13.5px; }

@media (max-width: 1100px) {
  .ag-tr { grid-template-columns: 1fr 1fr; }
  .ag-th { display: none; }
  .ag-acts { grid-column: 1 / -1; justify-content: flex-start; }
}
@media (max-width: 860px) {
  .ag-hero { padding: 4px 0 20px; }
  .ag-hero-glow { inset: -140px -16px -260px; }
  .ag-hero-glow span { width: 380px; height: 380px; }
  .ag-kicker { margin-bottom: 10px; padding: 5px 11px; font-size: 12px; gap: 6px; }
  .ag-kicker i { width: 13px; height: 13px; }
  .ag-hero h1 { font-size: 26px; letter-spacing: -.03em; }
  .ag-lead { margin-top: 10px; font-size: 14.5px; line-height: 1.45; padding: 0 6px; }
  .ag-card { padding: 20px 16px; border-radius: 24px; }
  .ag-kinds, .ag-grid, .ag-when, .ag-info { grid-template-columns: 1fr; }
  .ag-field.full { grid-column: auto; }
  .ag-step h3 { font-size: 18px; }
  .ag-cal { padding: 12px; }
  .ag-polo h2 { font-size: 26px; }
  .ag-ticket dl { grid-template-columns: 1fr; }
  .ag-panel { padding: 16px; border-radius: 22px; }
  .ag-tabs { width: auto; }
}

/* =========================================================
   NOTÍCIAS — categorias em pílulas (cada uma na sua cor), estilo Apple
   ========================================================= */
.ap-pills {
  position: relative; z-index: 1; isolation: isolate;
  display: flex; width: fit-content; max-width: 100%; gap: 2px; margin: -12px auto 44px; padding: 5px;
  border-radius: 999px; background: rgba(255, 255, 255, .72);
  -webkit-backdrop-filter: saturate(180%) blur(18px); backdrop-filter: saturate(180%) blur(18px);
  border: 1px solid rgba(0, 0, 0, .06);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 12px 30px -18px rgba(0, 0, 0, .35);
  overflow-x: auto; scrollbar-width: none; scroll-behavior: smooth;
}
.ap-pills::-webkit-scrollbar { display: none; }
.ap-pill-ind {
  position: absolute; z-index: -1; top: 5px; bottom: 5px; left: 0; width: 0; border-radius: 999px;
  background: linear-gradient(150deg, var(--a, #3a3a3c), var(--b, #1d1d1f));
  box-shadow: 0 8px 18px -8px var(--b, #000), inset 0 1px 0 rgba(255, 255, 255, .25);
  transition: transform .55s cubic-bezier(.3, 1.25, .5, 1), width .55s cubic-bezier(.3, 1.25, .5, 1), background .4s ease, box-shadow .4s ease;
}
.ap-pill {
  flex: none; display: inline-flex; align-items: center; gap: 7px; height: 40px; padding: 0 16px 0 13px; border: 0; border-radius: 999px;
  background: none; font: 600 14.5px/1 "Inter", sans-serif; color: var(--ink-2); cursor: pointer; white-space: nowrap;
  transition: color .3s ease, transform .3s var(--ease);
}
.ap-pill:active { transform: scale(.96); }
.ap-pill i { width: 17px; height: 17px; display: grid; color: var(--b); transition: color .3s ease, transform .45s cubic-bezier(.34, 1.56, .64, 1); }
.ap-pill small { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; display: grid; place-items: center; font-size: 11.5px; font-weight: 700; background: rgba(0, 0, 0, .06); color: var(--muted); transition: background .3s, color .3s; }
.ap-pill:hover:not(.on) { color: var(--ink); }
.ap-pill:hover:not(.on) i { transform: scale(1.12) rotate(-6deg); }
.ap-pill.on { color: #fff; }
.ap-pill.on i { color: #fff; }
.ap-pill.on small { background: rgba(255, 255, 255, .24); color: #fff; }
.ap-pill:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(0, 0, 0, .15); }
.ap-pills.reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s ease .1s, transform .8s var(--ease) .1s; }
.ap-pills.reveal.in { opacity: 1; transform: none; }
@media (max-width: 860px) {
  .ap-pills { margin: -18px auto 26px; }
  .ap-pill { height: 38px; padding: 0 12px 0 10px; gap: 6px; font-size: 14px; }
  .ap-pill small { display: none; } /* no celular, sem a contagem: as categorias cabem numa linha só */
  .ap-pill i { display: none; width: 15px; height: 15px; } /* no celular o ícone aparece só na categoria escolhida */
  .ap-pill.on i { display: grid; }
  .ap-pills { width: 100%; }
  .ap-pill { flex: 1 1 auto; justify-content: center; padding: 0 8px; font-size: 13.5px; letter-spacing: -.01em; }
}

/* =========================================================
   AGENDAR — assistente em etapas
   ========================================================= */
.ag-wiz { position: relative; overflow: hidden; max-width: 720px; margin: 0 auto; padding: 22px 26px 30px; }
.ag-prog { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; min-height: 36px; }
.ag-backbtn { flex: none; width: 36px; height: 36px; border-radius: 50%; border: 0; display: grid; place-items: center; background: var(--bg); color: var(--ink); cursor: pointer; transition: opacity .25s, transform .3s var(--ease); }
.ag-backbtn:disabled { opacity: 0; pointer-events: none; transform: translateX(-8px); }
.ag-backbtn i { width: 18px; height: 18px; display: grid; }
.ag-bars { flex: 1; display: grid; grid-auto-flow: column; gap: 6px; }
.ag-bars span { height: 6px; border-radius: 999px; background: var(--line-soft); position: relative; overflow: hidden; }
.ag-bars span::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(90deg, var(--a), var(--b)); transform: translateX(-101%); transition: transform .6s var(--ease); }
.ag-bars span.done::after, .ag-bars span.now::after { transform: none; }
.ag-bars span.now::after { animation: agBarIn .7s var(--ease); }
@keyframes agBarIn { from { transform: translateX(-101%); } }
.ag-count { flex: none; font-size: 13px; font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; }
.ag-stage { position: relative; display: flow-root; } /* as margens internas não "escapam": nada pula quando a animação de altura termina */
.ag-pane { text-align: center; }
.ag-pane.from-r { animation: agInR .55s var(--ease) both; }
.ag-pane.from-l { animation: agInL .55s var(--ease) both; }
@keyframes agInR { from { opacity: 0; transform: translateX(46px); } to { opacity: 1; transform: none; } }
@keyframes agInL { from { opacity: 0; transform: translateX(-46px); } to { opacity: 1; transform: none; } }
.ag-pane-ico { width: 58px; height: 58px; margin: 4px auto 14px; border-radius: 18px; display: grid; place-items: center; color: #fff; background: linear-gradient(150deg, var(--a), var(--b)); box-shadow: 0 14px 28px -12px var(--b), inset 0 1px 0 rgba(255, 255, 255, .3); }
.ag-pane-ico i { width: 28px; height: 28px; display: grid; }
.ag-pane h2 { margin: 0; font-size: clamp(26px, 3.4vw, 34px); font-weight: 700; letter-spacing: -.03em; }
.ag-pane-sub { margin: 6px 0 0; color: var(--muted); font-size: 16px; }
.ag-pane-sub::first-letter { text-transform: uppercase; }
.ag-pane-body { margin-top: 24px; text-align: left; }
.ag-pane .ag-msg { margin: 16px 0 8px; }
.ag-pane > .ag-submit { margin-top: 4px; }

/* cartões coloridos de escolha */
.ag-big2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.ag-big4 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ag-tile {
  position: relative; overflow: hidden; isolation: isolate; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-height: 170px;
  padding: 20px; border: 0; border-radius: 24px; text-align: left; color: #fff; font: inherit; cursor: pointer;
  background: linear-gradient(150deg, var(--a), var(--b));
  box-shadow: 0 16px 34px -18px var(--b), inset 0 1px 0 rgba(255, 255, 255, .28);
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), filter .3s;
}
.ag-tile::before { content: ""; position: absolute; z-index: -1; right: -40px; top: -40px; width: 160px; height: 160px; border-radius: 50%; background: radial-gradient(circle closest-side, rgba(255, 255, 255, .3), rgba(255, 255, 255, 0)); }
.ag-tile:hover { transform: translateY(-4px); box-shadow: 0 24px 44px -20px var(--b), inset 0 1px 0 rgba(255, 255, 255, .28); }
.ag-tile:active { transform: scale(.97); }
.ag-tile.sm { min-height: 96px; justify-content: flex-end; }
.ag-tile-ico { width: 46px; height: 46px; margin-bottom: auto; border-radius: 14px; display: grid; place-items: center; background: rgba(255, 255, 255, .22); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.ag-tile-ico i { width: 24px; height: 24px; display: grid; }
.ag-tile strong { margin-top: 18px; font-size: 21px; font-weight: 700; letter-spacing: -.02em; }
.ag-tile.sm strong { margin-top: 0; font-size: 19px; }
.ag-tile small { font-size: 13.5px; line-height: 1.35; opacity: .88; }
.ag-tile em { margin-top: 8px; padding: 5px 10px; border-radius: 999px; font-style: normal; font-size: 12.5px; font-weight: 700; background: rgba(255, 255, 255, .24); }
.ag-tile-go { position: absolute; right: 16px; bottom: 16px; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .24); transition: transform .4s var(--ease), background .3s; }
.ag-tile-go i { width: 16px; height: 16px; display: grid; }
.ag-tile:hover .ag-tile-go { transform: translateX(3px); }
.ag-tile.on { box-shadow: 0 0 0 4px #fff, 0 0 0 7px var(--b), 0 20px 40px -18px var(--b); }
.ag-tile.on .ag-tile-go { background: #fff; color: var(--b); }
.ag-tile:disabled { filter: grayscale(1) opacity(.45); cursor: default; transform: none; box-shadow: none; }
.ag-legend { display: flex; justify-content: center; gap: 16px; margin: 12px 0 0; font-size: 12.5px; color: var(--muted); }
.ag-legend span { display: inline-flex; align-items: center; gap: 6px; }
.ag-legend i { width: 8px; height: 8px; border-radius: 50%; background: #c7c7cc; }
.ag-legend i.ok { background: var(--accent); }
.ag-wiz .ag-cal { max-width: 420px; margin: 0 auto; }

/* revisão */
.ag-review { border-radius: 22px; background: var(--bg); padding: 6px 18px; }
.ag-rv { display: grid; grid-template-columns: 96px 1fr auto; align-items: center; gap: 12px; padding: 13px 0; border-top: 1px solid var(--line-soft); }
.ag-rv:first-child { border-top: 0; }
.ag-rv span { font-size: 13px; color: var(--muted); }
.ag-rv strong { font-size: 15.5px; font-weight: 600; overflow-wrap: anywhere; }
.ag-rv strong::first-letter { text-transform: uppercase; }
.ag-rv button { border: 0; background: none; color: var(--accent); font: 600 13.5px/1 "Inter", sans-serif; cursor: pointer; padding: 6px 0; }

@media (max-width: 860px) {
  .ag-wiz { padding: 16px 14px 22px; }
  .ag-big2 { grid-template-columns: 1fr; gap: 12px; }
  .ag-tile { min-height: 132px; padding: 18px; border-radius: 22px; }
  .ag-tile.sm { min-height: 84px; }
  .ag-pane-body { margin-top: 18px; }
  .ag-rv { grid-template-columns: 76px 1fr auto; gap: 8px; }
}
@media (prefers-reduced-motion: reduce) { .ag-pane { animation: none !important; } }

/* =========================================================
   AGENDAR — animação de entrada (estilo Apple)
   ========================================================= */
/* peça central: calendário que "carimba" o dia, com anéis e etiquetas em órbita */
.ag-orb { position: relative; width: 200px; height: 170px; margin: 0 auto 14px; display: grid; place-items: center; }
.ag-ring { position: absolute; left: 50%; top: 50%; border-radius: 50%; border: 1px solid rgba(6, 122, 87, .16); opacity: 0; transform: translate(-50%, -50%) scale(.6); animation: agRing 1.2s var(--ease) forwards; }
.ag-ring.r1 { width: 170px; height: 170px; }
.ag-ring.r2 { width: 118px; height: 118px; border-color: rgba(6, 122, 87, .26); animation-delay: .1s; }
.ag-core {
  position: relative; width: 78px; height: 84px; border-radius: 22px; display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: #fff; color: var(--ink); box-shadow: 0 18px 40px -16px rgba(6, 122, 87, .55), 0 0 0 1px rgba(0, 0, 0, .04);
  opacity: 0; transform: translateY(-30px) rotate(-12deg) scale(.6);
  animation: agDrop .9s cubic-bezier(.34, 1.56, .64, 1) .15s forwards, refFloat 5s ease-in-out 1.6s infinite;
}
.ag-core-top { position: absolute; left: 0; right: 0; top: 0; height: 22px; border-radius: 22px 22px 0 0; background: linear-gradient(150deg, #34d399, #0f9b6c 50%, #2563eb); }
.ag-core-day { margin-top: 16px; font-size: 32px; font-weight: 800; letter-spacing: -.04em; line-height: 1; }
.ag-core small { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.ag-core-check { position: absolute; right: -11px; bottom: -11px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: #34c759; box-shadow: 0 0 0 3px #fff; opacity: 0; transform: scale(0); animation: agPop .5s cubic-bezier(.34, 1.56, .64, 1) .95s forwards; }
.ag-core-check svg { width: 18px; height: 18px; fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 24; stroke-dashoffset: 24; animation: agDraw .4s ease 1.2s forwards; }
.ag-chip {
  position: absolute; display: inline-flex; align-items: center; gap: 5px; height: 28px; padding: 0 10px 0 8px; border-radius: 999px;
  font-size: 12px; font-weight: 700; color: #fff; white-space: nowrap; box-shadow: 0 10px 22px -10px var(--cb, rgba(0, 0, 0, .4));
  opacity: 0; transform: scale(.4); animation: agPop .6s cubic-bezier(.34, 1.56, .64, 1) forwards, refFloat 6s ease-in-out infinite;
}
.ag-chip i { width: 14px; height: 14px; display: grid; }
.ag-chip.c1 { left: -18px; top: 26px; background: linear-gradient(150deg, #60a5fa, #2563eb); --cb: #2563eb; animation-delay: .5s, 1.4s; }
.ag-chip.c2 { right: -20px; top: 14px; background: linear-gradient(150deg, #a78bfa, #7c3aed); --cb: #7c3aed; animation-delay: .62s, 2s; }
.ag-chip.c3 { right: -6px; bottom: 18px; background: linear-gradient(150deg, #fbbf24, #f97316); --cb: #f97316; animation-delay: .74s, 2.6s; }
.ag-chip.c4 { left: -10px; bottom: 8px; background: linear-gradient(150deg, #34d399, #059669); --cb: #059669; animation-delay: .86s, 3.2s; }
@keyframes agRing { to { opacity: 1; transform: translate(-50%, -50%) scale(1); } }
@keyframes agDrop { to { opacity: 1; transform: none; } }
@keyframes agPop { to { opacity: 1; transform: none; } }

/* textos: sobem e saem do desfoque, palavra por palavra no título */
.ag-in { opacity: 0; animation: agUp .8s var(--ease) var(--d, 0s) forwards; }
.ag-words > span { display: inline-block; opacity: 0; filter: blur(10px); transform: translateY(18px); animation: refWord .9s var(--ease) var(--d, 0s) forwards; }
/* sem desfoque (filter): no Safari do iPhone o texto podia ficar borrado depois da animação */
@keyframes agUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
/* cartão do agendamento sobe e o conteúdo da primeira etapa entra em sequência */
.ag-rise { opacity: 0; transform: translateY(40px) scale(.97); animation: agRise .9s var(--ease) 1.35s forwards; }
@keyframes agRise { to { opacity: 1; transform: none; } }
.ag-pane > *, .ag-big2 > *, .ag-big4 > * { animation: agUp .6s var(--ease) backwards; }
.ag-pane > :nth-child(1) { animation-delay: .05s; } .ag-pane > :nth-child(2) { animation-delay: .1s; } .ag-pane > :nth-child(3) { animation-delay: .15s; }
.ag-pane > :nth-child(4) { animation-delay: .2s; } .ag-pane > :nth-child(5), .ag-pane > :nth-child(6) { animation-delay: .25s; }
.ag-big2 > :nth-child(1), .ag-big4 > :nth-child(1) { animation-delay: .25s; } .ag-big2 > :nth-child(2), .ag-big4 > :nth-child(2) { animation-delay: .33s; }
.ag-big4 > :nth-child(3) { animation-delay: .41s; } .ag-big4 > :nth-child(4) { animation-delay: .49s; }
/* na primeira abertura, tudo isso espera o cartão chegar */
.ag-pane.first > *, .ag-pane.first .ag-big2 > * { animation-delay: calc(1.6s + var(--i, 0) * .08s); }
.ag-pane.first > :nth-child(2) { --i: 1; } .ag-pane.first > :nth-child(3) { --i: 2; } .ag-pane.first > :nth-child(4) { --i: 3; }
.ag-pane.first .ag-big2 > :nth-child(1) { --i: 4; } .ag-pane.first .ag-big2 > :nth-child(2) { --i: 5; }
.ag-reveal { opacity: 0; transform: translateY(30px); transition: opacity .8s ease, transform .9s var(--ease); }
.ag-reveal.in { opacity: 1; transform: none; }

@media (max-width: 860px) {
  .ag-orb { width: 170px; height: 140px; margin-bottom: 8px; transform: scale(.88); }
  .ag-ring.r1 { width: 140px; height: 140px; } .ag-ring.r2 { width: 100px; height: 100px; }
}
@media (prefers-reduced-motion: reduce) {
  .ag-page *, .ag-page { animation-duration: .01ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition: none !important; }
  .ag-reveal { opacity: 1; transform: none; }
}

/* =========================================================
   AGENDAR — cartão expandido ocupando a tela
   ========================================================= */
.ag-backdrop { position: fixed; inset: 0; z-index: 205; background: rgba(0, 0, 0, .38); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); opacity: 0; transition: opacity .45s ease; }
.ag-backdrop.in { opacity: 1; }
.ag-wiz.expanded {
  position: fixed; z-index: 210; margin: 0; max-width: none; overflow-y: auto; overscroll-behavior: contain;
  top: 32px; left: calc((100vw + var(--sb-collapsed)) / 2 - min(380px, (100vw - 48px - var(--sb-collapsed)) / 2)); width: min(760px, 100vw - 48px - var(--sb-collapsed)); height: calc(100vh - 64px); height: calc(100dvh - 64px);
  border-radius: 30px; box-shadow: 0 40px 100px -30px rgba(0, 0, 0, .55);
  animation: none; opacity: 1; transform: none;
}
.ag-wiz.closing { overflow: hidden; }
.ag-wiz.expanded .ag-prog { position: sticky; top: -22px; z-index: 3; margin: -22px -26px 18px; padding: 18px 26px 12px; background: rgba(255, 255, 255, .92); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
.ag-closebtn { display: none; flex: none; width: 36px; height: 36px; border-radius: 50%; border: 0; place-items: center; background: var(--bg); color: var(--ink); cursor: pointer; }
.ag-closebtn i { width: 18px; height: 18px; display: grid; }
.ag-wiz.expanded .ag-closebtn { display: grid; }
.ag-ph { pointer-events: none; }
@media (max-width: 860px) {
  .ag-wiz.expanded {
    top: calc(env(safe-area-inset-top) * 1.2 + 16px); left: 10px; width: calc(100vw - 20px);
    height: calc(100vh - env(safe-area-inset-top) * 1.2 - 26px - env(safe-area-inset-bottom));
    height: calc(100dvh - env(safe-area-inset-top) * 1.2 - 26px - env(safe-area-inset-bottom));
    border-radius: 26px;
  }
  .ag-wiz.expanded .ag-prog { top: -16px; margin: -16px -14px 14px; padding: 14px 14px 10px; }
}

/* =========================================================
   AGENDAR — no computador: título à esquerda, agendamento à direita
   ========================================================= */
@media (min-width: 1100px) {
  .ag-page { max-width: 1320px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 640px); column-gap: 56px; align-items: start; }
  .ag-hero { grid-column: 1; grid-row: 1; align-self: center; text-align: left; padding: 24px 0 0; }
  .ag-hero .ag-orb { margin: 0 0 18px -6px; }
  .ag-hero h1 { font-size: clamp(42px, 4.2vw, 64px); }
  .ag-lead { margin-left: 0; margin-right: 0; max-width: 520px; }
  .ag-hero-glow { inset: -140px -80px -200px -120px; }
  #ag-box, .ag-ph { grid-column: 2; grid-row: 1; margin: 24px 0 0; width: 100%; max-width: none; }
  .ag-polo { grid-column: 1 / -1; }
}

/* =========================================================
   DESEMPENHO — pausa animações fora da tela, com a guia escondida
   e o relógio escondido na barra recolhida do celular
   ========================================================= */
.offscreen, .offscreen *, .offscreen *::before, .offscreen *::after,
html.tab-hidden *, html.tab-hidden *::before, html.tab-hidden *::after,
.topbar-wrap.mini .hw * { animation-play-state: paused !important; }
/* o cartão do horário, fechado, não precisa animar a bolinha de "aberto agora" */
.hw:not(.open):not(:hover):not(:focus-within) .hw-card * { animation-play-state: paused !important; }

/* =========================================================
   DESEMPENHO NO CELULAR (iPhone): menos trabalho de desenho por quadro
   ========================================================= */
/* elementos que se movem o tempo todo ganham camada própria na GPU */
.slide.active .slide-bg, .slide.leaving .slide-bg, .nr-orbit, .nr-wave, .nr-glow, .nr-user,
.ref-glow span, .ref-core, .ref-av, .ag-core, .ag-chip, .dot.active .dot-fill { will-change: transform; }
@media all { /* modo leve: vale para celular e computador */
  /* sem vidro desfocado sobre o radar animado (refazer o desfoque a cada quadro pesa) */
  .ap-pills { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(255, 255, 255, .95); }
  /* relógio da barra fixa: sol e lua parados (a barra de vidro não precisa ser redesenhada sem parar) */
  .hw-rays, .hw-core, .hw-moon, .hw-star { animation: none !important; }
  .hw-sun .hw-core, .hw-crescent { filter: none; }
  /* títulos entram sem desfoque, só subindo e aparecendo */
  .ag-words > span, .ref-title > span { filter: none !important; }
}

/* =========================================================
   CELULAR — MODO LEVE
   No iPhone, o desfoque "ao vivo" (backdrop-filter) é refeito a cada quadro
   enquanto a página rola ou algo se mexe atrás dele. No celular ele sai e os
   fundos ficam um pouco mais opacos; as animações usam só movimento e
   transparência, que rodam direto no processador gráfico.
   ========================================================= */
@media all { /* modo leve: vale para celular e computador */
  *, *::before, *::after { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
  .topbar::before { background: rgba(22, 22, 23, .96); }
  .tabbar { background: rgba(22, 22, 23, .95); }
  .cx-glass { background: linear-gradient(180deg, rgba(255, 255, 255, .92), rgba(255, 255, 255, .86)); }
  .nm-backdrop, .lk-backdrop, .cfg-backdrop, .ag-backdrop { background: rgba(0, 0, 0, .55); }
  .more-backdrop { background: rgba(0, 0, 0, .45); }
  .nm-dots { background: rgba(0, 0, 0, .4); }
  /* entradas sem desfoque: só sobem/deslizam e aparecem */
  .more-item, .topbar.hw-out .tb-title, .topbar-wrap.mini .topbar :is(.tb-logo, .tb-title, .hw) { filter: none !important; }
  /* luzes de fundo paradas (o degradê continua, só não fica se mexendo) */
  .ref-glow span, .nr-glow { animation: none !important; }

  /* --- barra de cima: recolhe só com movimento e transparência ---
     a barra inteira desliza para a direita e se dissolve enquanto uma pílula pequena
     (pesquisa + foto) surge no canto; nada muda de tamanho, então não há trabalho de layout */
  .topbar::before { transition: transform .7s cubic-bezier(.32, .72, 0, 1), opacity .45s ease; transform-origin: right center; }
  .topbar::after {
    content: ""; position: absolute; z-index: -1; top: 0; bottom: 0; right: 0; width: 106px; border-radius: 999px; pointer-events: none;
    background: rgba(22, 22, 23, .96); border: 1px solid rgba(255, 255, 255, .08);
    box-shadow: 0 1px 2px rgba(0, 0, 0, .1), 0 16px 40px -16px rgba(0, 0, 0, .45);
    opacity: 0; transform: scale(.94); transition: opacity .45s ease .12s, transform .7s cubic-bezier(.32, .72, 0, 1);
  }
  .topbar-wrap.mini .topbar:not(.searching)::before { left: 0; opacity: 0; transform: translateX(28%) scaleX(.9); transition: transform .7s cubic-bezier(.32, .72, 0, 1), opacity .4s ease .08s; }
  .topbar-wrap.mini .topbar:not(.searching)::after { opacity: 1; transform: none; transition: opacity .35s ease, transform .7s cubic-bezier(.32, .72, 0, 1); }

  /* --- barra de abas: encolhe com escala (sem mexer em largura/altura) --- */
  .tabbar { transform-origin: 50% 100%; transition: transform .55s cubic-bezier(.32, .72, 0, 1), background .3s ease, border-color .3s ease, box-shadow .3s ease; }
  .tabbar.compact { left: 20px; right: 20px; height: 60px; border-radius: 30px; bottom: var(--tab-b); transform: translateY(-6px) scale(.82); }
  .tabbar.compact .tab { height: 50px; gap: 3px; border-radius: 18px; }
  .tab span { transition: opacity .25s ease, transform .45s cubic-bezier(.32, .72, 0, 1); }
  .tab i { transition: color .2s, transform .45s cubic-bezier(.32, .72, 0, 1); }
  .tabbar.compact .tab span { max-height: 12px; opacity: 0; transform: translateY(4px) scale(.8); }
  .tabbar.compact .tab i { transform: translateY(7px) scale(1.12); }
  .tabbar.dragging.compact .tab.pressing i { transform: translateY(7px) scale(1.3); }
}

/* =========================================================
   AGENDAR — MODO LEVE NO CELULAR
   Sombras grandes e desfocadas são caras para desenhar no iPhone (ainda mais
   coloridas e em elementos que se movem). Aqui elas viram sombras curtas ou
   contornos finos, as órbitas param de flutuar e o fundo vira um degradê simples.
   ========================================================= */
@media all { /* modo leve: vale para celular e computador */
  /* fundo: degradê simples, sem máscara e sem círculos sobrepostos */
  .ag-hero-glow { -webkit-mask-image: none; mask-image: none; inset: -140px -16px -120px;
    /* "closest-side": cada luz termina transparente antes da borda da área, então nunca aparece corte */
    background: radial-gradient(ellipse closest-side at 38% 42%, rgba(52, 211, 153, .24), rgba(52, 211, 153, 0)), radial-gradient(ellipse closest-side at 70% 34%, rgba(96, 165, 250, .18), rgba(96, 165, 250, 0)); }
  .ag-hero-glow span { display: none; }

  /* peça central: entra uma vez e fica parada (sem flutuar sem parar) */
  .ag-core { animation: agDrop .8s cubic-bezier(.34, 1.4, .64, 1) .1s forwards; box-shadow: 0 6px 14px -8px rgba(6, 122, 87, .5), 0 0 0 1px rgba(0, 0, 0, .05); will-change: auto; }
  .ag-chip { animation: agPop .5s cubic-bezier(.34, 1.4, .64, 1) forwards; box-shadow: none; will-change: auto; }
  .ag-chip.c1 { animation-delay: .4s; } .ag-chip.c2 { animation-delay: .48s; } .ag-chip.c3 { animation-delay: .56s; } .ag-chip.c4 { animation-delay: .64s; }
  .ag-core-check { box-shadow: 0 0 0 2px #fff; }

  /* cartões e botões: sombras curtas ou só contorno */
  .ag-card { box-shadow: 0 1px 2px rgba(0, 0, 0, .05), 0 0 0 1px rgba(0, 0, 0, .04); }
  .ag-wiz.expanded { box-shadow: 0 10px 30px -14px rgba(0, 0, 0, .45); }
  .ag-pane-ico { box-shadow: none; }
  .ag-tile { box-shadow: none; transition: transform .3s var(--ease); }
  .ag-tile::before { display: none; }
  .ag-tile:hover { transform: none; box-shadow: none; }
  .ag-tile.on { box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--b); }
  .ag-tile-ico { background: rgba(255, 255, 255, .24); }
  .ag-submit { box-shadow: none; }
  .ag-info div { box-shadow: 0 0 0 1px rgba(0, 0, 0, .06); }
  .ag-day.on { box-shadow: none; transform: none; }
  .ag-opt.on { box-shadow: 0 0 0 3px rgba(6, 122, 87, .14); }
  .ag-check circle { fill: var(--accent-soft); }

  /* entradas mais curtas e só com movimento/transparência */
  .ag-words > span { animation-duration: .6s; transform: translateY(10px); }
  .ag-pane > *, .ag-big2 > *, .ag-big4 > * { animation-duration: .4s; }
  .ag-pane.from-r, .ag-pane.from-l { animation-duration: .4s; }
  .ag-rise { animation-duration: .6s; animation-delay: .9s; }
  .ag-pane.first > *, .ag-pane.first .ag-big2 > * { animation-delay: calc(1.05s + var(--i, 0) * .06s); }
  .ag-reveal { transition-duration: .5s; }
}
/* cartão do agendamento no celular: abre como uma folha que sobe (só transform/opacidade) */
.ag-wiz.sheet-in { animation: agSheetIn .5s cubic-bezier(.32, .72, 0, 1) both; }
.ag-wiz.sheet-out { animation: agSheetOut .36s cubic-bezier(.4, 0, 1, 1) both; }
@keyframes agSheetIn { from { opacity: 0; transform: translateY(40px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes agSheetOut { to { opacity: 0; transform: translateY(30px) scale(.98); } }

/* =========================================================
   INDICAR — MODO LEVE NO CELULAR
   As letras do título "travavam" porque cada palavra (algumas com texto em
   degradê) subia com movimento; no iPhone o texto em degradê é redesenhado a
   cada quadro. Aqui as palavras só aparecem (opacidade), a peça central entra
   uma vez e para, e as sombras grandes viram sombras curtas.
   ========================================================= */
@keyframes refFadeIn { to { opacity: 1; } }
@media all { /* modo leve: vale para celular e computador */
  .ref-title > span, .ag-words > span { transform: none !important; filter: none !important; animation-name: refFadeIn !important; animation-duration: .7s !important; }
  .ref-sub, .ref-badge { animation-name: refFadeIn !important; transform: none; }
  .ref-core { animation: refPop .8s cubic-bezier(.34, 1.4, .64, 1) .2s forwards !important; box-shadow: 0 8px 18px -10px rgba(6, 122, 87, .6); will-change: auto; }
  .ref-av { animation: refPop .6s cubic-bezier(.34, 1.4, .64, 1) forwards !important; box-shadow: 0 0 0 3px var(--bg); will-change: auto; }
  .ref-av.a1 { animation-delay: .5s !important; } .ref-av.a2 { animation-delay: .6s !important; } .ref-av.a3 { animation-delay: .7s !important; }
  .ref-dot { animation: none; }
  .ref-glow { animation: none; opacity: 1; }
  .ref-glow span { will-change: auto; }
  .ref-step { box-shadow: 0 1px 2px rgba(0, 0, 0, .05), 0 0 0 1px rgba(0, 0, 0, .04); transform: translateY(18px); transition: none; }
  .ref-step:hover { transform: none; box-shadow: 0 1px 2px rgba(0, 0, 0, .05), 0 0 0 1px rgba(0, 0, 0, .04); }
  .ref-ico { box-shadow: none; }
  .ref-num { color: var(--line); }
}

/* computador: sem o vidro desfocado, a barra de cima fica um pouco mais opaca */
@media (min-width: 861px) { .topbar { background: rgba(22, 22, 23, .96); } }
/* sem o desfoque, os botões redondos sobre fotos ficam um pouco mais opacos para continuar legíveis */
.nm-arrow, .nm-close { background-color: rgba(29, 29, 31, .8); }
.car-arrow { background-color: rgba(220, 220, 225, .9); }
/* computador: a área das luzes do Agendar é bem maior que o título, para o degradê sumir sem corte */
@media (min-width: 1100px) { .ag-hero-glow { inset: -220px -260px -260px -220px; } }

/* =========================================================
   CELULAR — barra de cima: volta o recolhimento deslizante
   (o fundo escuro desliza da esquerda para a direita em curva suave)
   e, recolhida, sobra só a foto de perfil. Sem desfoque por trás,
   o deslize é leve de desenhar.
   ========================================================= */
@media (max-width: 860px) {
  .topbar::before { left: 0; opacity: 1; transform: none; transition: left .9s cubic-bezier(.45, 0, .15, 1); }
  .topbar::after { display: none; }
  .topbar-wrap.mini .topbar:not(.searching)::before { left: calc(100% - 56px); opacity: 1; transform: none; transition: left .9s cubic-bezier(.45, 0, .15, 1); }
  .tb-search-btn { transition: opacity .45s ease .18s, transform .9s cubic-bezier(.45, 0, .15, 1), background .2s; }
  .topbar-wrap.mini .topbar:not(.searching) .tb-search-btn { opacity: 0; transform: translateX(30px) scale(.9); pointer-events: none; transition: opacity .3s ease, transform .9s cubic-bezier(.45, 0, .15, 1); }
  .topbar :is(.tb-logo, .tb-title, .hw) { transition: opacity .45s ease .18s, transform .9s cubic-bezier(.45, 0, .15, 1); }
  .topbar-wrap.mini .topbar:not(.searching) :is(.tb-logo, .tb-title, .hw) { transition: opacity .3s ease, transform .9s cubic-bezier(.45, 0, .15, 1); }
}

/* =========================================================
   CELULAR — cartão do horário e menu da conta saem de dentro da barra de cima
   (mesmo tema escuro e mesmo jeito do menu "Mais": a barra cresce para baixo
   e os itens entram um a um)
   ========================================================= */
@media (max-width: 860px) {
  .topbar > .tb-logo, .topbar > .tb-title, .hw-pill, .tb-search-btn, .tb-me, .tb-login, .topbar > .tb-search-wrap { position: relative; z-index: 2; }
  .topbar .hw-card, .topbar .um {
    position: absolute; z-index: 1; top: -1px; left: -1px; right: -1px; width: auto; max-height: calc(100dvh - var(--tb-top) - 110px); overflow-y: auto; overscroll-behavior: contain;
    margin: 0; padding: 66px 16px 16px; border-radius: 28px; color: #f5f5f7;
    background: rgba(22, 22, 23, .97); border: 1px solid rgba(255, 255, 255, .08);
    box-shadow: 0 24px 50px -22px rgba(0, 0, 0, .65);
    opacity: 1; visibility: hidden; transform: none;
    clip-path: inset(0 0 calc(100% - 58px) 0 round 28px);
    transition: clip-path .55s cubic-bezier(.32, .72, 0, 1), visibility 0s linear .55s;
  }
  .topbar .hw.open .hw-card, .topbar .um.in {
    visibility: visible; transform: none; opacity: 1; clip-path: inset(0 0 0 0 round 28px);
    transition: clip-path .55s cubic-bezier(.32, .72, 0, 1), visibility 0s;
  }
  .topbar .hw-card::before { display: none; }
  .topbar .um[hidden] { display: block; } /* mantém para a animação de fechar */
  /* itens entram um depois do outro */
  .topbar .hw-card > *, .topbar .um > * { opacity: 0; transform: translateY(-8px); transition: opacity .2s ease, transform .2s ease; }
  .topbar .hw.open .hw-card > *, .topbar .um.in > * { opacity: 1; transform: none; transition: opacity .4s ease calc(.1s + var(--r, 0) * .05s), transform .5s cubic-bezier(.32, .72, 0, 1) calc(.1s + var(--r, 0) * .05s); }
  .topbar :is(.hw-card, .um) > :nth-child(2) { --r: 1; } .topbar :is(.hw-card, .um) > :nth-child(3) { --r: 2; }
  .topbar :is(.hw-card, .um) > :nth-child(4) { --r: 3; } .topbar :is(.hw-card, .um) > :nth-child(5) { --r: 4; }
  .topbar :is(.hw-card, .um) > :nth-child(n+6) { --r: 5; }

  /* tema escuro do cartão do horário */
  .hw-card .hwc-cal { box-shadow: none; }
  .hw-card .hwc-cal b { color: #1d1d1f; }
  .hw-card .hwc-date span, .hw-card .hwc-status span, .hw-card .hwc-ticks, .hw-card .hwc-legend, .hw-card .hwc-week li { color: rgba(235, 235, 245, .6); }
  .hw-card .hwc-msg { color: rgba(235, 235, 245, .9); }
  .hw-card .hwc-bar { background: rgba(255, 255, 255, .12); }
  .hw-card .hwc-seg { background: rgba(255, 255, 255, .28); }
  .hw-card .hwc-seg.past { background: rgba(255, 255, 255, .18); }
  .hw-card .hwc-dot { box-shadow: 0 0 0 3px #f5f5f7, 0 2px 6px rgba(0, 0, 0, .4); background: #1d1d1f; }
  .hw-card .hwc-week { border-top-color: rgba(255, 255, 255, .1); }
  .hw-card .hwc-week li b { color: #f5f5f7; }
  .hw-card .hwc-week li.today { background: rgba(255, 255, 255, .08); color: #fff; }
  .hw-card .hwc-week li.today b { color: #fff; }

  /* tema escuro do menu da conta */
  .um .um-head { border-bottom-color: rgba(255, 255, 255, .1); }
  .um .um-who span { color: rgba(235, 235, 245, .6); }
  .um .um-item { color: #f5f5f7; }
  .um .um-item i { color: rgba(235, 235, 245, .6); }
  .um .um-item:hover, .um .um-item:focus-visible { background: rgba(255, 255, 255, .08); }
  .um .um-item.danger, .um .um-item.danger i { color: #ff6961; }
  .um .um-state { background: rgba(255, 159, 10, .16); color: #ffb340; }
  .um .um-state span { color: rgba(255, 214, 153, .85); }
  .um .avatar.um-avatar { box-shadow: 0 0 0 2px rgba(255, 255, 255, .15); }
}
/* celular: depois do toque o relógio fica "com o mouse em cima" (hover preso do toque);
   isso escondia o cartão na hora, sem a animação de fechar. Aqui só o recorte anima. */
@media (max-width: 860px) {
  .topbar .hw:hover .hw-card, .topbar .hw:focus-visible .hw-card, .topbar .hw:focus-within .hw-card { opacity: 1; transform: none; }
}

/* =========================================================
   CELULAR — "Mantenha-se conectado" no estilo dos cartões da App Store
   ========================================================= */
.cx-app { display: none; }
.cx-av-btn {
  position: relative; flex: none; width: 52px; height: 52px; border-radius: 14px; border: 1.5px dashed var(--line); background: #fff;
  display: grid; place-items: center; color: var(--faint); cursor: pointer; overflow: hidden; padding: 0;
}
.cx-av-btn.has { border: 0; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08); }
.cx-av-btn img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cx-av-btn i { width: 18px; height: 18px; display: grid; margin-bottom: 12px; }
.cx-av-btn:not(.has) .bi-tag { background: none; color: inherit; }
@media (max-width: 860px) {
  .cx-grid { gap: 16px; }
  .cx-tile, .cx-1 { --tint: 22, 60, 48; height: auto; aspect-ratio: 4 / 5; border-radius: 26px; background: rgb(var(--tint)); }
  .cx-tile .cx-glass { display: none; }
  .cx-tile .cx-bg, .cx-tile:not(.shown) .cx-bg, .cx-tile.shown .cx-bg { transform: none !important; inset: 0 0 18% 0; }
  .cx-app {
    position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; justify-content: flex-end; color: #fff;
    /* degradê na cor da própria imagem, como na App Store */
    background: linear-gradient(to bottom, rgba(var(--tint), 0) 30%, rgba(var(--tint), .78) 54%, rgb(var(--tint)) 72%);
  }
  .cx-app-text { padding: 0 20px 16px; }
  .cx-app-tag { display: block; font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; opacity: .78; }
  .cx-app-text h3 { margin: 4px 0 6px; font-size: 28px; line-height: 1.08; font-weight: 700; letter-spacing: -.025em; }
  .cx-app-text p { margin: 0; font-size: 15px; line-height: 1.35; opacity: .86; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .cx-app-bar { display: flex; align-items: center; gap: 12px; padding: 14px 16px 16px; background: rgba(0, 0, 0, .16); border-top: 1px solid rgba(255, 255, 255, .1); }
  .cx-app-av { flex: none; width: 52px; height: 52px; border-radius: 13px; overflow: hidden; display: grid; place-items: center; background: rgba(255, 255, 255, .2); font-weight: 700; font-size: 17px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .14); }
  .cx-app-av img { width: 100%; height: 100%; object-fit: cover; display: block; }
  .cx-app-who { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
  .cx-app-who strong { font-size: 15.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .cx-app-who small { font-size: 13.5px; opacity: .75; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .cx-app-go { flex: none; display: inline-grid; place-items: center; height: 36px; padding: 0 18px; border-radius: 999px; background: rgba(255, 255, 255, .26); color: #fff; font-weight: 700; font-size: 15px; text-decoration: none; transition: transform .2s ease, background .2s; }
  .cx-app-go:active { transform: scale(.95); background: rgba(255, 255, 255, .36); }
}
/* celular: blocos de contato com imagem própria para o celular (opcional) */
@media (max-width: 860px) {
  .cx-bg[style*="--img-m"] { background-image: var(--img-m) !important; background-position: var(--pos-m, center) !important; }
}

/* =========================================================
   PAINEL DE AGENDAMENTOS — layout mais claro
   ========================================================= */
.aa-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin: 4px 0 22px; }
.aa-head .page-title { margin: 0; }
.aa-head .page-kicker { margin-bottom: 4px; }
.aa-head-btns { display: flex; gap: 8px; }
.aa-head-btns .btn-soft, .aa-head-btns .btn-dark { height: 40px; }
.aa-head-btns i { width: 16px; height: 16px; display: grid; }
.aa-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 16px; }
.aa-kpi { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto auto; column-gap: 12px; align-items: center; padding: 16px 18px; border-radius: 22px; background: var(--card); box-shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 0 0 1px rgba(0, 0, 0, .04); }
.aa-kpi-ico { grid-row: span 3; width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; color: #fff; background: linear-gradient(150deg, var(--a), var(--b)); }
.aa-kpi-ico i { width: 22px; height: 22px; display: grid; }
.aa-kpi b { font-size: 28px; line-height: 1; font-weight: 800; letter-spacing: -.03em; }
.aa-kpi span:not(.aa-kpi-ico) { font-size: 14px; font-weight: 600; }
.aa-kpi small { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.aa-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 18px; }
.aa-seg { display: inline-flex; padding: 4px; gap: 2px; border-radius: 999px; background: var(--line-soft); }
.aa-seg button { height: 34px; padding: 0 14px; border: 0; border-radius: 999px; background: none; font: 600 13.5px/1 "Inter", sans-serif; color: var(--muted); cursor: pointer; transition: background .2s, color .2s; }
.aa-seg button.on { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }
.aa-search { flex: 1 1 200px; width: auto; height: 42px; }
.aa-more { position: relative; }
.aa-more summary { list-style: none; display: inline-flex; align-items: center; gap: 6px; height: 42px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-weight: 600; font-size: 14px; cursor: pointer; }
.aa-more summary::-webkit-details-marker { display: none; }
.aa-more summary i { width: 16px; height: 16px; display: grid; }
.aa-more[open] summary { background: var(--ink); color: #fff; border-color: var(--ink); }
.aa-more-box { position: absolute; right: 0; top: calc(100% + 8px); z-index: 20; width: 300px; display: grid; gap: 10px; padding: 16px; border-radius: 20px; background: #fff; box-shadow: 0 20px 44px -18px rgba(0, 0, 0, .35), 0 0 0 1px rgba(0, 0, 0, .05); }
.aa-more-box .ag-field input, .aa-more-box .ag-field select { height: 42px; font-size: 15px; }

.aa-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 16px; align-items: start; }
.aa-title { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.aa-title h3 { margin-bottom: 4px; }
.aa-legend { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.aa-legend i { width: 10px; height: 10px; border-radius: 3px; margin-left: 6px; }
.l-free { background: #34c759; } .l-mid { background: #ff9f0a; } .l-full { background: #ff3b30; }
.aa-days { display: flex; flex-direction: column; gap: 8px; max-height: 620px; overflow-y: auto; margin: 0 -6px; padding: 2px 6px; }
.aa-day { display: grid; grid-template-columns: 62px 1fr; gap: 14px; align-items: center; width: 100%; padding: 10px 14px 10px 10px; border: 1px solid transparent; border-radius: 18px; background: var(--bg); text-align: left; font: inherit; color: inherit; cursor: pointer; transition: background .2s, border-color .2s; }
.aa-day:hover { background: #eeeef2; }
.aa-day.on { background: #fff; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(6, 122, 87, .12); }
.aa-date { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 62px; border-radius: 14px; background: #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, .06); line-height: 1; }
.aa-date small { font-size: 11px; font-weight: 700; text-transform: uppercase; color: var(--muted); letter-spacing: .04em; }
.aa-date small:first-child { color: #ff3b30; }
.aa-date b { margin: 3px 0; font-size: 24px; font-weight: 800; letter-spacing: -.03em; }
.aa-day.today .aa-date { background: var(--accent); box-shadow: none; }
.aa-day.today .aa-date small, .aa-day.today .aa-date b { color: #fff; }
.aa-date.sm { width: 48px; height: 50px; flex: none; }
.aa-date.sm b { font-size: 19px; }
.aa-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.aa-k { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.aa-k .ag-tag { align-self: flex-start; }
.aa-k.off em { display: inline-flex; align-items: center; gap: 4px; font-style: normal; font-size: 12.5px; color: var(--faint); }
.aa-k.off em i { width: 13px; height: 13px; display: grid; }
.aa-s { display: grid; grid-template-columns: 52px 1fr auto; align-items: center; gap: 8px; font-size: 13px; }
.aa-s > span:first-child { color: var(--muted); }
.aa-s b { font-variant-numeric: tabular-nums; font-size: 13px; }
.aa-meter { height: 6px; border-radius: 999px; background: #e5e5ea; overflow: hidden; }
.aa-meter i { display: block; height: 100%; width: calc(var(--p) * 100%); min-width: 0; border-radius: inherit; background: #34c759; }
.aa-meter.mid i { background: #ff9f0a; }
.aa-meter.full i { background: #ff3b30; }

.aa-side h3 { margin-bottom: 4px; }
.aa-block-form { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.aa-block-form .full { grid-column: 1 / -1; }
.aa-block-form .ag-field input, .aa-block-form .ag-field select { height: 42px; font-size: 15px; }
.aa-block-form .btn-dark { justify-content: center; height: 42px; }
.aa-side .ag-blocks { margin-top: 14px; }
.aa-side .ag-block { flex-wrap: nowrap; gap: 12px; padding: 10px; }
.aa-bl-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.aa-bl-txt strong { font-size: 14px; }
.aa-bl-txt em { font-style: normal; font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.aa-list-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 6px; }
.aa-list-head .ag-tabs { margin-bottom: 0; }
.aa-chip { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 6px 0 14px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-weight: 600; font-size: 13.5px; }
.aa-chip button { width: 24px; height: 24px; border-radius: 50%; border: 0; display: grid; place-items: center; background: rgba(6, 122, 87, .15); color: var(--accent); cursor: pointer; }
.aa-chip i { width: 13px; height: 13px; display: grid; }
.aa-group { margin-top: 16px; }
.aa-gh { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 0 0 6px; padding: 0 4px 8px; border-bottom: 1px solid var(--line-soft); font-size: 16px; font-weight: 700; letter-spacing: -.01em; }
.aa-gh b { color: var(--accent); }
.aa-gh small { font-size: 12.5px; font-weight: 600; color: var(--muted); }
.aa-row { display: grid; grid-template-columns: 42px minmax(0, 1.6fr) minmax(0, 1fr) auto auto; align-items: center; gap: 14px; padding: 10px 4px; border-bottom: 1px solid var(--line-soft); }
.aa-row:last-child { border-bottom: 0; }
.aa-av { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 14px; background: linear-gradient(150deg, var(--a), var(--b)); }
.aa-who { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.aa-who strong { font-size: 15px; font-weight: 600; overflow-wrap: anywhere; }
.aa-who small { font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* agendamento de aluno com cadastro (logado ao agendar) x de visitante sem conta:
   cada aluno vira um cartão — verde-escuro em degradê para quem tem cadastro, cinza para quem não tem */
.aa-row { position: relative; margin-top: 10px; padding: 14px 16px; border: 0; border-radius: 20px; }
.aa-row:last-child { border-bottom: 0; }
.aa-av { position: relative; }
.aa-av > img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; }
.aa-row.reg .aa-av:has(> img) { box-shadow: 0 0 0 2px #6ee7b7, 0 6px 16px -6px rgba(0, 0, 0, .5); }

.aa-row.reg {
  color: #fff; overflow: hidden; isolation: isolate;
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(52, 211, 153, .35), transparent 55%),
    linear-gradient(135deg, #064e3b 0%, #065f46 45%, #047857 100%);
  box-shadow: 0 14px 30px -18px rgba(6, 78, 59, .8), inset 0 1px 0 rgba(255, 255, 255, .12);
}
/* metade esquerda (foto e nome) no mesmo preto do Acesso rápido, com corte diagonal e um filete verde-menta na divisa */
.aa-row.reg::before, .aa-row.reg::after { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: var(--cut, 41%); pointer-events: none; }
.aa-row.reg::before { z-index: -1; background: radial-gradient(90% 120% at 0% 0%, rgba(255, 255, 255, .07), transparent 60%), linear-gradient(135deg, #1c1c1e, #161617 60%, #0f0f10); clip-path: polygon(0 0, 100% 0, calc(100% - 40px) 100%, 0 100%); }
.aa-row.reg::after { z-index: -2; left: 3px; background: linear-gradient(180deg, #a7f3d0, #34d399 60%, #10b981); clip-path: polygon(0 0, 100% 0, calc(100% - 40px) 100%, 0 100%); filter: blur(.3px); }
.aa-row.reg .aa-av { width: 46px; height: 46px; font-size: 15px; background: rgba(255, 255, 255, .14); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .35); backdrop-filter: blur(6px); }
.aa-row.reg .aa-who strong { font-size: 18px; font-weight: 700; letter-spacing: -.01em; color: #fff; text-shadow: 0 1px 10px rgba(0, 0, 0, .18); }
.aa-row.reg .aa-who small { color: rgba(236, 253, 245, .72); }
.aa-row.reg .aa-time, .aa-row.reg .aa-time i { color: rgba(236, 253, 245, .9); }
.aa-row.reg .icon-btn { color: rgba(255, 255, 255, .85); background: rgba(255, 255, 255, .1); }
.aa-row.reg .icon-btn:hover { background: rgba(255, 255, 255, .2); color: #fff; }
.aa-row.reg .btn-soft { background: rgba(255, 255, 255, .12); border-color: transparent; color: #fff; }
.aa-row.reg .aa-btn.ok { background: #fff; color: #065f46; }
.aa-row.reg .aa-btn.no { background: rgba(255, 255, 255, .14); color: #fecaca; }
.aa-av-badge { position: absolute; right: -3px; bottom: -3px; width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; background: #34d399; color: #064e3b; box-shadow: 0 0 0 2px #065f46; }
.aa-av-badge > i { display: inline-flex; width: 11px; height: 11px; }
.aa-av-badge svg { stroke-width: 3.4; }

.aa-row.guest { background: #ececf0; }
.aa-row.guest .aa-av { background: #d6d6dc; color: var(--ink-2); }
.aa-row.guest .aa-who strong { color: var(--ink-2); }

.aa-row.reg .aa-who strong, .aa-row.guest .aa-who strong { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.aa-acc { display: inline-flex; align-items: center; gap: 4px; margin-left: 0; padding: 3px 9px; border-radius: 999px; font-size: 10.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; text-shadow: none; }
.aa-acc > i { display: inline-flex; width: 11px; height: 11px; }
.aa-acc.reg { color: #064e3b; background: linear-gradient(135deg, #a7f3d0, #6ee7b7); }
.aa-acc.guest { color: var(--muted); background: rgba(0, 0, 0, .06); }
.aa-when { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.aa-time { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.aa-time i { width: 15px; height: 15px; display: grid; color: var(--muted); }
.aa-btn { display: inline-flex; align-items: center; gap: 5px; height: 34px; padding: 0 12px; border-radius: 999px; border: 0; font: 600 13px/1 "Inter", sans-serif; cursor: pointer; transition: transform .15s; }
.aa-btn:active { transform: scale(.95); }
.aa-btn i { width: 15px; height: 15px; display: grid; }
.aa-btn.ok { background: var(--accent-soft); color: var(--accent); }
.aa-btn.no { background: #fff1f0; color: var(--danger); }
.aa-row .ag-acts { flex-wrap: nowrap; }
.aa-dlg { border: 0; padding: 0; background: none; }
.aa-dlg::backdrop { background: rgba(0, 0, 0, .45); }
.aa-dlg-card { width: min(380px, 92vw); display: grid; gap: 12px; padding: 22px; border-radius: 24px; background: #fff; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .45); }
.aa-dlg-card h3 { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 19px; }
.aa-dlg-card h3 i { width: 20px; height: 20px; display: grid; color: var(--accent); }
.aa-dlg-card .ag-desc { margin: 0; }
.aa-dlg-card .ag-field input, .aa-dlg-card .ag-field select { height: 44px; }
.aa-dlg-btns { display: flex; justify-content: flex-end; gap: 8px; margin-top: 4px; }

@media (max-width: 1200px) { .aa-grid { grid-template-columns: 1fr; } .aa-kpis { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 1000px) {
  .aa-row { grid-template-columns: 42px minmax(0, 1fr) auto; }
  /* no celular a parte preta fica em cima (foto, nome e situação) e o verde embaixo (botões) */
  .aa-row.reg::before, .aa-row.reg::after { width: 100%; bottom: auto; height: 100px; clip-path: polygon(0 0, 100% 0, 100% 74%, 0 100%); }
  .aa-row.reg::after { left: 0; height: 103px; }
  .aa-when { grid-column: 2; }
  .aa-row > .ag-st { grid-column: 3; grid-row: 1; }
  .aa-row .ag-acts { grid-column: 1 / -1; justify-content: flex-start; padding-left: 56px; flex-wrap: wrap; }
}
@media (max-width: 860px) {
  .aa-head { flex-direction: column; align-items: flex-start; }
  .aa-kpi { padding: 14px; }
  .aa-kpi b { font-size: 24px; }
  .aa-kpi-ico { width: 38px; height: 38px; border-radius: 12px; }
  .aa-bar .aa-seg { max-width: 100%; overflow-x: auto; }
  .aa-cols { grid-template-columns: 1fr; gap: 8px; }
  .aa-day { grid-template-columns: 54px 1fr; padding: 10px; }
  .aa-date { height: 56px; }
  .aa-more-box { left: 0; right: auto; width: min(300px, 86vw); }
}
.aa-seg button { white-space: nowrap; }
@media (max-width: 860px) {
  .aa-bar .aa-seg { width: 100%; }
  .aa-bar .aa-seg button { flex: 1; padding: 0 6px; font-size: 13px; }
  .aa-kpi { grid-template-columns: auto minmax(0, 1fr); }
  .aa-kpi span:not(.aa-kpi-ico) { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}
@media (max-width: 860px) { .aa-days { max-height: none; overflow: visible; } }
/* painel: mais respiro entre título, descrição e campos */
.aa-agenda .aa-title h3, .aa-side h3 { margin-bottom: 8px; }
.aa-agenda .ag-desc, .aa-side .ag-desc { margin: 0 0 18px; line-height: 1.5; }
.aa-side .ag-desc { max-width: 280px; }
.aa-block-form { gap: 14px 10px; }
.aa-block-form .ag-field > span { margin-bottom: 2px; }
.me-hint { margin: 18px 0 2px; padding-top: 14px; border-top: 1px solid var(--line-soft); font-size: 13px; color: var(--muted); }

/* =========================================================
   ÓRBITAS (Agendar e Indicar): etiquetas e amigos girando em volta
   do centro, como no radar de Notícias. Só rotação (leve, na GPU).
   ========================================================= */
.orb-spin { position: absolute; left: 50%; top: 50%; width: 0; height: 0; z-index: 2; animation: nrSpin var(--t) linear infinite; }
.orb-arm { position: absolute; left: 0; top: 0; width: 0; height: 0; transform: rotate(var(--deg)); }
.orb-up { position: absolute; left: 0; top: calc(var(--r) * -1); width: 0; height: 0; rotate: calc(var(--deg) * -1); animation: nrUpright var(--t) linear infinite; }
.orb-up > .ag-chip, .orb-up > .ref-av { left: 0 !important; top: 0 !important; right: auto !important; bottom: auto !important; translate: -50% -50%; }
@media (max-width: 860px) { .ag-orb .orb-spin { --r: 88px !important; } .ref-orb .orb-spin, .ref-hero .orb-spin { --r: 82px !important; } }
@media (prefers-reduced-motion: reduce) { .orb-spin, .orb-up { animation: none !important; } }
/* em órbita, cada item só "salta" ao aparecer (sem flutuar, que usaria a mesma propriedade da centralização) */
.orb-up > .ag-chip { animation: agPop .6s cubic-bezier(.34, 1.4, .64, 1) forwards !important; }
.orb-up > .ag-chip.c1 { animation-delay: .5s !important; } .orb-up > .ag-chip.c2 { animation-delay: .62s !important; }
.orb-up > .ag-chip.c3 { animation-delay: .74s !important; } .orb-up > .ag-chip.c4 { animation-delay: .86s !important; }
.orb-up > .ref-av { animation: refPop .6s cubic-bezier(.34, 1.4, .64, 1) forwards !important; }
.orb-up > .ref-av.a1 { animation-delay: .55s !important; } .orb-up > .ref-av.a2 { animation-delay: .7s !important; } .orb-up > .ref-av.a3 { animation-delay: .85s !important; }
/* Indicar no celular: as luzes de fundo viram degradês que terminam transparentes antes da
   borda da tela (sem os círculos que eram cortados nas laterais) */
@media (max-width: 860px) {
  .ref { overflow-x: visible; }
  .ref-glow { inset: -150px -16px -40px; overflow: visible;
    background:
      radial-gradient(ellipse closest-side at 30% 42%, rgba(52, 211, 153, .3), rgba(52, 211, 153, 0)),
      radial-gradient(ellipse closest-side at 74% 36%, rgba(96, 165, 250, .24), rgba(96, 165, 250, 0)),
      radial-gradient(ellipse closest-side at 60% 68%, rgba(251, 191, 36, .2), rgba(251, 191, 36, 0)); }
  .ref-glow span { display: none; }
}

/* =========================================================
   AGENDAR NO CELULAR — 1ª etapa compacta: o tipo vira duas pílulas
   lado a lado, para escolher sem precisar rolar a tela
   ========================================================= */
.ag-tile-mini { display: none; }
@media (max-width: 860px) {
  .ag-wiz:not(.expanded) { padding-top: 12px; padding-bottom: 16px; }
  .ag-wiz:not(.expanded) .ag-prog { margin-bottom: 8px; min-height: 28px; }
  .step-tipo .ag-pane-ico { display: none; }
  .step-tipo h2 { font-size: 21px; }
  .step-tipo .ag-pane-sub { margin-top: 4px; font-size: 13.5px; }
  .step-tipo .ag-pane-body { margin-top: 14px; }
  .step-tipo .ag-big2 { grid-template-columns: 1fr 1fr; gap: 10px; }
  .step-tipo .ag-tile {
    min-height: 0; flex-direction: row; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 20px;
    display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 10px; row-gap: 1px;
  }
  .step-tipo .ag-tile-ico { grid-row: span 2; width: 34px; height: 34px; margin: 0; border-radius: 11px; }
  .step-tipo .ag-tile-ico i { width: 18px; height: 18px; }
  .step-tipo .ag-tile strong { margin: 0; font-size: 14.5px; line-height: 1.15; letter-spacing: -.01em; }
  .step-tipo .ag-tile small, .step-tipo .ag-tile-go { display: none; }
  .step-tipo .ag-tile-mini { display: block; font-style: normal; font-size: 11.5px; opacity: .85; line-height: 1.2; }
  .step-tipo .ag-tile.on { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--b); }
}
@media (max-width: 860px) {
  .step-tipo .ag-tile-long { display: none; }
  .step-tipo .ag-tile strong { font-size: 16px; }
  .step-tipo .ag-tile .ag-tile-mini { margin: 0; padding: 0; background: none; border-radius: 0; font-weight: 600; }
}
@media (max-width: 860px) { .step-tipo .ag-tile .ag-tile-mini { white-space: nowrap; } }

/* =========================================================
   INDICAR — página do aluno e painel de indicações
   ========================================================= */
.rf-hero { padding-bottom: 36px; }
.ref-core.rf-core { width: 96px; height: 96px; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; line-height: 1; }
.rf-core b { font-size: 34px; font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.rf-core small { font-size: 8.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; opacity: .9; }
.ref-prize { display: inline-flex; align-items: center; gap: 10px; margin: 22px auto 0; padding: 7px 18px 7px 7px; border-radius: 999px; background: var(--card, #fff); box-shadow: 0 1px 0 rgba(0,0,0,.04), 0 8px 24px rgba(16,120,90,.12); border: 1px solid rgba(16,150,110,.18); font-size: 15.5px; font-weight: 500; color: var(--ink-2); opacity: 0; animation: refUp .9s var(--ease) 1.35s forwards; }
.ref-prize b { font-weight: 700; }
.ref-prize-ico { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; color: #fff; background: radial-gradient(circle at 50% 55%, rgba(252,211,77,.38), rgba(252,211,77,0) 62%), #111; box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); flex: none; }
.ref-prize .ref-prize-ico svg { width: 17px; height: 17px; fill: #fcd34d; filter: drop-shadow(0 0 3px rgba(252,211,77,.85)) drop-shadow(0 0 7px rgba(251,191,36,.5)); }
@media (max-width: 860px) { .ref-prize { font-size: 13px; gap: 8px; margin-top: 16px; padding: 5px 14px 5px 5px; white-space: nowrap; letter-spacing: -.01em; } .ref-prize-ico { width: 28px; height: 28px; } .ref-prize .ref-prize-ico svg { width: 15px; height: 15px; } }
.rf-cta { justify-content: center; opacity: 0; animation: refFade .8s ease 1.4s forwards; }

/* aviso de meta: aparece quando chega às confirmadas necessárias */
.rf-goal {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 18px;
  margin: 0 auto 18px; max-width: 760px; padding: 22px 24px; border-radius: 26px; color: #fff;
  background: linear-gradient(140deg, #0f9b6c, #059669 45%, #2563eb);
  box-shadow: 0 18px 40px -22px rgba(6, 122, 87, .8);
}
.rf-goal-ico { width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; background: rgba(255, 255, 255, .2); }
.rf-goal-ico i { width: 28px; height: 28px; display: grid; }
.rf-goal-txt h2 { margin: 0 0 4px; font-size: 21px; font-weight: 700; letter-spacing: -.02em; line-height: 1.2; }
.rf-goal-txt p { margin: 0; font-size: 15.5px; line-height: 1.45; opacity: .95; }
.rf-goal-txt small { display: block; margin-top: 6px; font-size: 12.5px; opacity: .8; }
.rf-goal .rf-goal-btn { background: #fff; color: #0b3d2e; height: 44px; padding: 0 18px; text-decoration: none; white-space: nowrap; }
.rf-goal .rf-goal-btn:hover { background: #f0fdf7; }

/* cartão com o progresso e a lista */
.rf-card { max-width: 760px; margin: 0 auto 40px; padding: 24px; border-radius: 28px; background: var(--card); box-shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 14px 34px -24px rgba(0, 0, 0, .3); }
.rf-prog-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.rf-prog-head span { font-size: 16px; font-weight: 600; color: var(--ink-2); }
.rf-prog-head b { font-size: 26px; font-weight: 800; color: var(--ink, #1d1d1f); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.rf-prog-head small { font-size: 13px; font-weight: 600; color: var(--muted); }
.rf-meter { display: block; height: 10px; border-radius: 999px; background: #e9e9ee; overflow: hidden; }
.rf-meter i { display: block; height: 100%; width: 100%; border-radius: inherit; background: linear-gradient(90deg, #34d399, #059669); transform-origin: left; transform: scaleX(var(--p)); animation: rfGrow 1.1s var(--ease) .3s both; }
.rf-meter.full i { background: linear-gradient(90deg, #34d399, #2563eb); }
.rf-meter.sm { width: 90px; height: 6px; }
@keyframes rfGrow { from { transform: scaleX(0); } }
.rf-counts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 16px; }
.rf-counts span { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: 16px; background: var(--line-soft, #f2f2f5); font-size: 12.5px; font-weight: 600; color: var(--muted); }
.rf-counts b { font-size: 22px; font-weight: 800; color: var(--ink, #1d1d1f); font-variant-numeric: tabular-nums; }
.rf-counts .c-pend b { color: #c2410c; }
.rf-counts .c-conf b { color: #047857; }
.rf-list-title { margin: 26px 0 6px; font-size: 18px; font-weight: 700; letter-spacing: -.01em; }
.rf-row { display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line-soft, #eee); }
.rf-row:last-child { border-bottom: 0; }
.rf-who { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.rf-who strong { font-size: 15px; font-weight: 600; overflow-wrap: anywhere; }
.rf-who small { font-size: 13px; color: var(--muted); }
.rf-st { display: inline-flex; align-items: center; gap: 5px; padding: 5px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.rf-st i { width: 13px; height: 13px; display: grid; }
.rf-st.s-pendente { background: #fff4e5; color: #c2410c; }
.rf-st.s-confirmada { background: var(--accent-soft); color: var(--accent); }
.rf-st.s-meta { background: #f1ecff; color: #6d28d9; }
.rf-empty { text-align: center; padding: 26px 10px 10px; }
.rf-empty-ico { width: 52px; height: 52px; margin: 0 auto 12px; border-radius: 16px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.rf-empty-ico i { width: 26px; height: 26px; display: grid; }
.rf-empty strong { display: block; font-size: 16px; margin-bottom: 4px; }
.rf-empty p { margin: 0 auto; max-width: 380px; font-size: 14.5px; line-height: 1.5; color: var(--muted); }

/* painel */
.rf-gh { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto auto; align-items: center; gap: 12px; padding: 8px 4px 10px; border-bottom: 1px solid var(--line-soft); }
.avatar.rf-gav { width: 44px; height: 44px; font-size: 15px; }
.rf-gwho { min-width: 0; display: flex; flex-direction: column; gap: 2px; text-align: left; }
.rf-gwho strong { font-size: 16px; font-weight: 700; letter-spacing: -.01em; overflow-wrap: anywhere; }
.rf-gwho small { font-size: 12.5px; color: var(--muted); }
.rf-gprog { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-variant-numeric: tabular-nums; }
.rf-adm .rf-group { margin-top: 10px; padding-bottom: 6px; }
.rf-adm .rf-group + .rf-group { margin-top: 22px; }
.aa-row.rf-arow { grid-template-columns: 42px minmax(0, 1fr) auto auto; }
.rf-dlg { max-height: calc(100dvh - 32px); overflow-y: auto; }
.rf-pick { margin-bottom: 4px; }
.rf-chosen, .rf-hit { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 16px; background: var(--line-soft, #f2f2f5); }
.rf-hits { display: grid; gap: 4px; margin-top: 6px; max-height: 196px; overflow-y: auto; }
.rf-hit { grid-template-columns: 44px minmax(0, 1fr); width: 100%; border: 0; background: none; font: inherit; color: inherit; cursor: pointer; transition: background .15s; }
.rf-hit:hover, .rf-hit:focus-visible { background: var(--line-soft, #f2f2f5); outline: none; }
.rf-check { display: flex; align-items: center; gap: 10px; margin: 10px 0 0; font-size: 14.5px; font-weight: 500; cursor: pointer; text-align: left; }
.rf-check input { width: 20px; height: 20px; accent-color: var(--accent); }

@media (max-width: 1000px) {
  .aa-row.rf-arow { grid-template-columns: 42px minmax(0, 1fr) auto; }
  .aa-row.rf-arow > .rf-st { grid-column: 3; grid-row: 1; }
  .aa-row.rf-arow .ag-acts { grid-column: 1 / -1; justify-content: flex-start; padding-left: 56px; }
}
@media (max-width: 860px) {
  .ref-core.rf-core { width: 84px; height: 84px; border-radius: 50%; }
  .rf-core small { font-size: 7.5px; }
  .rf-core b { font-size: 28px; }
  .rf-goal { grid-template-columns: auto minmax(0, 1fr); padding: 18px; gap: 14px; border-radius: 22px; }
  .rf-goal-ico { width: 46px; height: 46px; border-radius: 14px; }
  .rf-goal-txt h2 { font-size: 18px; }
  .rf-goal-txt p { font-size: 14.5px; }
  .rf-goal .rf-goal-btn { grid-column: 1 / -1; justify-content: center; }
  .rf-card { padding: 18px; border-radius: 22px; margin-bottom: 28px; }
  .rf-counts { gap: 8px; }
  .rf-counts span { padding: 10px; font-size: 11.5px; }
  .rf-counts b { font-size: 19px; }
  .rf-gh { grid-template-columns: 40px minmax(0, 1fr) auto; }
  .rf-gh .rf-gprog { grid-column: 2; grid-row: 2; }
  .rf-gh [data-rf="add"] { grid-column: 3; grid-row: 1 / 3; }
  .avatar.rf-gav { width: 40px; height: 40px; font-size: 14px; }
}

/* dados das indicações: surgem abaixo da animação quando chegam */
.rf-in { opacity: 0; transform: translateY(18px); animation: rfIn .7s var(--ease) calc(var(--d, 0) * .1s) forwards; }
@keyframes rfIn { to { opacity: 1; transform: none; } }
.rf-err { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.rf-err p { margin: 0; font-size: 15px; color: var(--ink-2); }
@media (prefers-reduced-motion: reduce) { .rf-in { animation: none; opacity: 1; transform: none; } }
/* título com degradê: estica a pintura para baixo para não cortar o "ç" e outras letras com perna */
.ref-title .ap-grad { padding-bottom: .14em; margin-bottom: -.14em; }

/* =========================================================
   NOTÍCIAS NO CELULAR — cartões estilo "Hoje" da App Store
   ========================================================= */
.td-list { display: grid; gap: 22px; }
.td {
  --tint: 40, 40, 44;
  position: relative; display: flex; flex-direction: column; justify-content: flex-end;
  aspect-ratio: 343 / 440; overflow: hidden; isolation: isolate; border-radius: 22px; color: #fff; cursor: pointer;
  background: rgb(var(--tint)); box-shadow: 0 14px 30px -18px rgba(0, 0, 0, .45);
  -webkit-tap-highlight-color: transparent; transition: transform .35s cubic-bezier(.32, .72, 0, 1);
}
.td-list .td { opacity: 0; transform: translateY(18px); animation: rfIn .6s var(--ease) calc(var(--k) * .07s + .05s) forwards; }
.td-list .td:active { transform: scale(.97); transition-duration: .18s; }
.td-media { position: absolute; inset: 0; z-index: -2; border-radius: 0; }
.td-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.td-shade { position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgba(var(--tint), 0) 30%, rgba(var(--tint), .55) 50%, rgba(var(--tint), .92) 66%, rgb(var(--tint)) 82%); }
.td-text { padding: 0 18px 14px; }
.td-kick { display: block; font-size: 11.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: rgba(255, 255, 255, .78); }
.td-kick .ap-sep, .ts-rel-txt .ap-sep { margin: 0 5px; }
.td-title { margin: 4px 0 0; font-size: 25px; line-height: 1.12; font-weight: 800; letter-spacing: -.025em; text-wrap: balance; }
.td-sub { margin: 7px 0 0; font-size: 14.5px; line-height: 1.38; color: rgba(255, 255, 255, .86); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.td-strip { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; align-items: center; gap: 11px; padding: 12px 16px 14px; background: rgba(0, 0, 0, .16); border-top: 1px solid rgba(255, 255, 255, .1); }
.avatar.td-av { width: 40px; height: 40px; font-size: 14px; border-radius: 11px; box-shadow: none; }
.avatar.td-av img { border-radius: inherit; }
.td-who { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.td-who strong { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.td-who small { font-size: 12.5px; color: rgba(255, 255, 255, .72); }
.td-btn { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 16px; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .24); color: #fff; font: 700 14px/1 "Inter", sans-serif; white-space: nowrap; cursor: pointer; }
.td-btn i { width: 15px; height: 15px; display: grid; }

/* tela cheia */
.ts { position: fixed; inset: 0; z-index: 260; background: var(--bg, #f5f5f7); transform-origin: 0 0; will-change: transform; }
.ts.flying { overflow: hidden; }
.ts-scroll { position: absolute; inset: 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.ts-hero { aspect-ratio: auto; border-radius: 0; box-shadow: none; cursor: default; }
.ts-hero .td-text { padding: 0 20px 16px; }
.ts-hero .td-sub { -webkit-line-clamp: unset; }
.ts-hero .td-strip { padding: 12px 18px 16px; }
.ts-body { padding: 26px 20px calc(110px + env(safe-area-inset-bottom)); background: var(--bg, #f5f5f7); }
.ts-text p { margin: 0 0 18px; font-size: 17.5px; line-height: 1.55; color: var(--ink-2); }
.ts-text p:first-child::first-line { font-weight: 700; color: var(--ink); }
.ts-fig { margin: 8px 0 22px; }
.ts-fig img { width: 100%; display: block; border-radius: 18px; }
.ts-end { display: flex; flex-direction: column; align-items: center; gap: 4px; margin: 34px -20px 0; padding: 30px 20px 28px; background: var(--card); text-align: center; }
.avatar.ts-end-av { width: 72px; height: 72px; font-size: 24px; border-radius: 20px; margin-bottom: 8px; box-shadow: 0 10px 22px -12px rgba(0, 0, 0, .45); }
.avatar.ts-end-av img { border-radius: inherit; }
.ts-end strong { font-size: 17px; }
.ts-end span { font-size: 13.5px; color: var(--muted); }
.share-pill { display: inline-flex; align-items: center; gap: 7px; height: 40px; margin-top: 18px; padding: 0 20px; border: 0; border-radius: 999px; background: var(--line-soft); color: var(--accent); font: 600 15px/1 "Inter", sans-serif; cursor: pointer; transition: transform .15s, background .2s; }
.share-pill:hover { background: var(--accent-soft); }
.share-pill:active { transform: scale(.96); }
.share-pill i { width: 17px; height: 17px; display: grid; }
.ts-rel { margin-top: 30px; }
.ts-rel h4 { margin: 0 0 10px; font-size: 21px; font-weight: 800; letter-spacing: -.02em; }
.ts-rel-item { display: grid; grid-template-columns: 74px minmax(0, 1fr); gap: 14px; align-items: center; width: 100%; padding: 10px 0; border: 0; border-bottom: 1px solid var(--line-soft); background: none; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.ts-rel-item:last-child { border-bottom: 0; }
.ts-rel-img { width: 74px; height: 74px; border-radius: 16px; overflow: hidden; background: var(--line-soft); }
.ts-rel-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ts-rel-txt { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.ts-rel-txt small { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.ts-rel-txt strong { font-size: 15.5px; line-height: 1.3; font-weight: 700; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ts-close {
  position: absolute; top: calc(14px + env(safe-area-inset-top)); right: 14px; z-index: 3; width: 34px; height: 34px; border: 0; border-radius: 50%;
  display: grid; place-items: center; background: rgba(245, 245, 247, .88); color: #1d1d1f; cursor: pointer; box-shadow: 0 4px 14px -6px rgba(0, 0, 0, .4);
}
.ts-close i { width: 17px; height: 17px; display: grid; }
.ts-close:active { transform: scale(.9); }
.ts-bar {
  position: absolute; left: 12px; right: 12px; bottom: calc(14px + env(safe-area-inset-bottom)); z-index: 3;
  display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 8px 10px 8px 8px; border-radius: 20px;
  background: rgba(255, 255, 255, .96); box-shadow: 0 10px 30px -12px rgba(0, 0, 0, .35), 0 0 0 1px rgba(0, 0, 0, .04);
  opacity: 0; transform: translateY(24px); pointer-events: none; transition: opacity .3s ease, transform .4s cubic-bezier(.32, .72, 0, 1);
}
.ts-bar.on { opacity: 1; transform: none; pointer-events: auto; }
.ts-bar-img { width: 44px; height: 44px; border-radius: 12px; overflow: hidden; }
.ts-bar-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ts-bar-t { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.ts-bar-t strong { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ts-bar-t small { font-size: 12.5px; color: var(--muted); }
.ts-bar .td-btn { background: var(--line-soft); color: var(--accent); padding: 0 14px; }

/* compartilhar no pop-up do computador */
.nm-share { display: flex; justify-content: center; margin: 8px 0 6px; }

/* janela de compartilhar (computador) */
.sh-card { width: min(420px, 100%); text-align: left; }
.sh-head { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 12px; align-items: center; margin-bottom: 18px; }
.sh-img { width: 56px; height: 56px; border-radius: 14px; overflow: hidden; }
.sh-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sh-t { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.sh-t small { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.sh-t strong { font-size: 16px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sh-nets { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.sh-net { display: flex; flex-direction: column; align-items: center; gap: 7px; padding: 10px 4px; border-radius: 16px; color: var(--ink); font-size: 12.5px; font-weight: 600; text-decoration: none; transition: background .2s; }
.sh-net:hover, .sh-net:focus-visible { background: var(--line-soft); outline: none; }
.sh-net span { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--c); color: #fff; }
.sh-net i { width: 26px; height: 26px; display: grid; }
.sh-copy { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; margin-top: 16px; padding: 6px 6px 6px 14px; border-radius: 16px; background: var(--line-soft); align-items: center; }
.sh-copy input { min-width: 0; border: 0; background: none; font: 500 13.5px/1 "Inter", sans-serif; color: var(--ink-2); outline: none; }
.sh-copy .btn-dark { height: 36px; padding: 0 14px; font-size: 13.5px; }
.sh-more { display: block; margin: 12px auto 0; border: 0; background: none; color: var(--accent); font: 600 14px/1 "Inter", sans-serif; cursor: pointer; }
.sh-close { width: 100%; justify-content: center; margin-top: 14px; height: 44px; }

@media (prefers-reduced-motion: reduce) { .td-list .td { animation: none; opacity: 1; transform: none; } }

/* =========================================================
   ACESSO RÁPIDO NO CELULAR — cartões estilo Apple
   A arte aparece inteira (logo à direita), o nome fica à esquerda
   com um botão "Abrir ↗". Entrada em cascata, um brilho que passa
   uma vez e um toque com mola.
   (vale também no computador, dentro do painel escuro)
   ========================================================= */
@media all {
  .quick-links { gap: 10px; }
  .ql {
    height: auto; aspect-ratio: 2 / 1; padding: 12px 12px 11px;
    flex-direction: column; align-items: flex-start; justify-content: space-between;
    border-radius: 18px; text-align: left; font-size: 13.5px; font-weight: 700; letter-spacing: .015em;
    box-shadow: 0 1px 1px rgba(0, 0, 0, .05), 0 10px 22px -14px rgba(0, 0, 0, .55), inset 0 0 0 .5px rgba(255, 255, 255, .18);
    transition: transform .55s cubic-bezier(.32, .72, 0, 1), box-shadow .4s ease;
    -webkit-tap-highlight-color: transparent;
  }
  /* arte inteira: só um véu suave à esquerda para o nome ficar legível */
  .ql.has-img { background: linear-gradient(90deg, rgba(3, 8, 20, .5), rgba(3, 8, 20, .18) 48%, rgba(3, 8, 20, 0) 70%), var(--img) right center / cover no-repeat !important; }
  /* brilho de vidro no topo, como os cartões da Apple */
  .ql::before {
    content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; border-radius: inherit;
    background: linear-gradient(180deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, 0) 42%);
  }
  .ql-name { max-width: 56%; white-space: normal; line-height: 1.15; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; text-shadow: 0 1px 6px rgba(0, 0, 0, .35); }
  .ql.has-img .ql-name { text-shadow: 0 1px 6px rgba(0, 0, 0, .45); }
  .ql-go { display: none; }
  .ql-cta {
    display: inline-flex; align-items: center; height: 22px; padding: 0 10px; border-radius: 999px;
    background: rgba(255, 255, 255, .24); font-size: 11px; font-weight: 700; letter-spacing: .01em;
    box-shadow: inset 0 0 0 .5px rgba(255, 255, 255, .25);
  }
  /* toque: afunda com mola e a setinha aponta para fora */
  .ql:hover { transform: none; }
  .ql:active { transform: scale(.955); transition-duration: .16s; box-shadow: 0 1px 1px rgba(0, 0, 0, .05), 0 4px 10px -8px rgba(0, 0, 0, .5), inset 0 0 0 .5px rgba(255, 255, 255, .18); }

  /* entrada em cascata (só quando a seção aparece) */
  .quick-links.ql-in .ql {
    animation: qlIn .75s cubic-bezier(.32, .72, 0, 1) calc(var(--k) * 55ms + 80ms) backwards;
  }
  /* brilho que atravessa o cartão uma vez, logo depois de entrar */
  .ql::after {
    content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 60%; z-index: 0; pointer-events: none;
    background: linear-gradient(105deg, rgba(255, 255, 255, 0) 20%, rgba(255, 255, 255, .38) 50%, rgba(255, 255, 255, 0) 80%);
    transform: translateX(-120%) skewX(-12deg); opacity: 0;
  }
  .quick-links.ql-in .ql::after { animation: qlShine 1.1s cubic-bezier(.4, 0, .2, 1) calc(var(--k) * 60ms + .35s) both; }
  .ql-name, .ql-cta { position: relative; z-index: 1; }
}
@keyframes qlIn { from { opacity: 0; transform: translateY(18px) scale(.94); } to { opacity: 1; transform: none; } }
@keyframes qlShine { 0% { opacity: 1; transform: translateX(-120%) skewX(-12deg); } 100% { opacity: 1; transform: translateX(260%) skewX(-12deg); } }
@media (prefers-reduced-motion: reduce) { .quick-links .ql, .quick-links .ql::after { animation: none !important; opacity: 1; } }

/* =========================================================
   ACESSO RÁPIDO — menu escuro que abre e fecha (só no celular)
   Mesmo vidro escuro da barra de cima. No computador já abre expandido.
   ========================================================= */
.qa-head { display: none; }
@media all {
  .qa {
    margin-top: 22px; border-radius: 26px; overflow: hidden; color: #fff;
    background: rgba(22, 22, 23, .96); border: 1px solid rgba(255, 255, 255, .08);
    box-shadow: 0 1px 2px rgba(0, 0, 0, .08), 0 14px 34px -16px rgba(0, 0, 0, .5);
    transition: box-shadow .4s ease;
  }
  .qa-title { display: none; }
  .qa-head {
    display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px;
    width: 100%; padding: 14px 14px 14px 16px; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer;
    -webkit-tap-highlight-color: transparent; transition: transform .45s cubic-bezier(.32, .72, 0, 1);
  }
  .qa-head:active { transform: scale(.98); transition-duration: .15s; }
  .qa-head:focus-visible { outline: none; box-shadow: inset 0 0 0 2px rgba(52, 211, 153, .7); border-radius: 26px; }

  /* logos das instituições empilhados */
  .qa-stack { display: flex; padding-left: 2px; }
  .qa-dot {
    width: 32px; height: 32px; border-radius: 50%; margin-left: -11px; display: grid; place-items: center;
    background-size: auto 100%; background-position: right center; background-repeat: no-repeat; background-color: #2c2c2e;
    box-shadow: 0 0 0 2.5px rgb(22, 22, 23); font-size: 12px; font-weight: 700; color: #fff;
    transition: transform .55s cubic-bezier(.32, .72, 0, 1);
    transition-delay: calc(var(--i) * 30ms);
  }
  .qa-dot:first-child { margin-left: 0; }
  .qa-more { background: #3a3a3c; font-size: 11px; }
  .qa.open .qa-dot { transform: translateX(calc(var(--i) * -4px)) scale(.92); }

  .qa-txt { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
  .qa-txt strong { font-size: 16px; font-weight: 700; letter-spacing: -.01em; }
  .qa-txt small { font-size: 12.5px; line-height: 1.3; color: rgba(255, 255, 255, .6); }
  .qa-chev {
    width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .12);
    transition: transform .55s cubic-bezier(.32, .72, 0, 1), background .3s;
  }
  .qa-chev svg { width: 15px; height: 15px; transform: rotate(90deg); }
  .qa.open .qa-chev { transform: rotate(180deg); background: rgba(255, 255, 255, .2); }

  /* corpo: abre com altura suave */
  .qa-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .55s cubic-bezier(.32, .72, 0, 1); }
  .qa.open .qa-body { grid-template-rows: 1fr; }
  .qa-inner { min-height: 0; overflow: hidden; visibility: hidden; transition: visibility 0s linear .55s; }
  .qa.open .qa-inner { visibility: visible; transition-delay: 0s; }
  .qa .quick-links { padding: 2px 12px 12px; }
  .qa .ql { box-shadow: inset 0 0 0 .5px rgba(255, 255, 255, .16); }
  .qa .ql:active { box-shadow: inset 0 0 0 .5px rgba(255, 255, 255, .16); }
}
@media (max-width: 860px) {
  .qa .quick-links { gap: 8px; }
  .qa .ql { padding: 11px 10px 10px 11px; }
  .qa .ql-name { max-width: 72%; font-size: 13px; letter-spacing: 0; }
}
/* computador: painel mais largo, cartões maiores e passar o mouse levanta o cartão */
.qa-txt .qa-desk { display: none; }
@media (min-width: 861px) {
  .qa { margin-top: 34px; border-radius: 28px; }
  .qa-head { padding: 18px 20px 16px 22px; gap: 14px; }
  .qa-head:active { transform: none; }
  .qa-dot { width: 36px; height: 36px; margin-left: -12px; }
  .qa-txt strong { font-size: 18px; }
  .qa-txt small { font-size: 13.5px; }
  .qa-txt .qa-mob { display: none; }
  .qa-txt .qa-desk { display: inline; }
  .qa-chev { width: 34px; height: 34px; }
  .qa-chev:hover { background: rgba(255, 255, 255, .2); }
  .qa .quick-links { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; padding: 2px 16px 16px; }
  .qa .ql { padding: 16px 16px 14px 18px; border-radius: 20px; }
  .qa .ql-name { max-width: 60%; font-size: 16px; letter-spacing: .01em; }
  .qa .ql-cta { height: 26px; padding: 0 12px; font-size: 12.5px; transition: background .3s ease; }
  .qa .ql:hover, .qa .ql:focus-visible {
    transform: translateY(-3px) scale(1.015); outline: none;
    box-shadow: inset 0 0 0 .5px rgba(255, 255, 255, .22), 0 18px 30px -18px rgba(0, 0, 0, .8);
  }
  .qa .ql:hover .ql-cta, .qa .ql:focus-visible .ql-cta { background: rgba(255, 255, 255, .38); }
  .qa .ql:active { transform: scale(.97); }
}

/* =========================================================
   TÍTULOS DE SEÇÃO NO CELULAR — mais presença, com divisória
   ========================================================= */
.shelf-head { position: relative; }
.shelf-more { display: none; }
@media (max-width: 860px) {
  .shelf-title { position: relative; margin: 36px 0 16px; padding-top: 24px; }
  .shelf-title::before {
    content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, .12) 18%, rgba(0, 0, 0, .12) 82%, rgba(0, 0, 0, 0));
    transform-origin: center;
  }
  .shelf-title .ap-grad {
    display: block; font-size: 27px; line-height: 1.1; font-weight: 800; letter-spacing: -.032em;
    padding-bottom: .12em; margin-bottom: -.12em; /* não corta letras com perna, como "ç" e "g" */
  }
  .shelf-title > span:not(.ap-grad) { display: block; margin-top: 6px; font-size: 15.5px; line-height: 1.35; font-weight: 500; letter-spacing: -.01em; color: var(--muted); }
  .shelf-title:has(+ .shelf-sub) { margin-bottom: 6px; }
  .shelf-title + .shelf-sub { font-size: 15.5px; line-height: 1.4; }
  /* "Ver tudo" à direita do título, como na App Store */
  .shelf-head .shelf-title { padding-right: 84px; }
  .shelf-more {
    display: inline-flex; align-items: center; position: absolute; right: 0; top: 30px;
    height: 30px; padding: 0 13px; border-radius: 999px; background: var(--accent-soft); color: var(--accent);
    font-size: 14px; font-weight: 600; text-decoration: none; -webkit-tap-highlight-color: transparent;
    transition: transform .3s cubic-bezier(.32, .72, 0, 1);
  }
  .shelf-more:active { transform: scale(.94); }

  /* entrada: a linha se desenha do centro e o título sobe */
  .shelf-title.st-wait::before { transform: scaleX(0); }
  .shelf-title.st-wait > span, .shelf-title.st-wait + .shelf-more { opacity: 0; transform: translateY(12px); }
  .shelf-title.st-in::before { animation: stLine .9s cubic-bezier(.32, .72, 0, 1) both; }
  .shelf-title.st-in > span { animation: stUp .7s cubic-bezier(.32, .72, 0, 1) both; }
  .shelf-title.st-in > span + span { animation-delay: .08s; }
  .shelf-title.st-in + .shelf-more { animation: stUp .7s cubic-bezier(.32, .72, 0, 1) .14s both; }
}
@keyframes stLine { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes stUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

.st-mob { display: none; }
.shelf-title i.st-mob { font-style: normal; }
@media (max-width: 860px) {
  .shelf-title > .st-desk { display: none !important; }
  .shelf-title > span.st-mob { display: block; }
  .shelf-title i.st-mob { display: inline; }
}

/* Logo do banner: só no celular, onde a barra de cima cobre a logo que vem na imagem */
.slide-logo { display: none; }
.bi-logo { display: flex; align-items: center; gap: 12px; background: var(--card); border-radius: 12px; padding: 10px 12px; }
.bi-logo .pref-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.bi-logo .pref-text em { font-style: normal; font-weight: 500; color: var(--ink-3, #888); }
.bi-logo .pref-text span { font-size: 12.5px; color: var(--ink-2); }
.bi-logo .btn-soft { margin: 0; height: 36px; padding: 0 14px; flex: none; }
.bi-logo-prev { display: grid; place-items: center; width: 56px; height: 44px; border-radius: 10px; flex: none; color: var(--ink-3, #999);
  background: repeating-conic-gradient(#e6e6e9 0 25%, #fff 0 50%) 0 0 / 12px 12px; }
.bi-logo-prev img { max-width: 48px; max-height: 36px; object-fit: contain; }
@media (max-width: 860px) {
  .slide.has-logo .slide-logo { display: block; margin-bottom: 4px; opacity: 1; transform: none; transition: none; }
  .slide-logo img { display: block; height: 76px; width: auto; max-width: 78%; object-fit: contain; object-position: left center;
    opacity: 0; backface-visibility: hidden; }
  .slide.active .slide-logo img, .slide.leaving .slide-logo img { animation: bannerLogo 1.1s cubic-bezier(.45, 0, .2, 1) .95s both; /* sobe quando o banner termina de entrar */ }
  .slide.leaving:not(.active) .slide-logo img { animation-play-state: paused; }
  /* o texto só aparece depois que a logo sobe */
  .slide.has-logo.active .slide-text > * { transition-duration: .85s, .95s; }
  .slide.has-logo.active .slide-text > :nth-child(2) { transition-delay: 1.65s; }
  .slide.has-logo.active .slide-text > :nth-child(3) { transition-delay: 1.77s; }
  .slide.has-logo.active .slide-text > :nth-child(4) { transition-delay: 1.89s; }
  .slide.has-logo.active .slide-text > .slide-cta { transition: opacity .85s var(--ease) 2.01s, transform .95s var(--ease) 2.01s, background .2s; }
}
@keyframes bannerLogo {
  from { opacity: 1; transform: translateY(var(--ly, 0)); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .slide.active .slide-logo img { animation: none; opacity: 1; }
}

.bi-secs input { max-width: 120px; }
.bi-secs label em { font-style: normal; font-weight: 500; color: var(--ink-3, #888); }

/* =========================================================
   PLATAFORMA DE INFORMÁTICA — pré-acesso (informatica.js)
   ========================================================= */
.inf { max-width: 1040px; animation: none; }
.inf-hero { position: relative; isolation: isolate; text-align: center; padding: 28px 0 40px; }
.inf-logo { display: block; width: min(380px, 78%); height: auto; margin: 0 auto 22px; filter: drop-shadow(0 10px 18px rgba(249, 115, 22, .22));
  opacity: 0; transform: translateY(14px) scale(.92); animation: infLogoIn .9s cubic-bezier(.2, .9, .3, 1.2) .25s forwards; }
@keyframes infLogoIn { to { opacity: 1; transform: none; } }
.inf-title { margin: 0; font-size: clamp(38px, 6.2vw, 78px); line-height: 1.04; font-weight: 700; letter-spacing: -.04em; }
.inf-title > span { display: inline-block; opacity: 0; filter: blur(12px); transform: translateY(24px); animation: refWord 1s var(--ease) forwards; }
.inf-title > span:nth-child(1) { animation-delay: .55s; }
.inf-title > span:nth-child(2) { animation-delay: .75s; }
.inf-sub { max-width: 640px; margin: 20px auto 0; font-size: 20px; line-height: 1.45; text-align: justify; text-align-last: center; hyphens: auto; -webkit-hyphens: auto; font-weight: 500; color: var(--ink-2); opacity: 0; animation: refUp .9s var(--ease) 1.1s forwards; }

/* código correndo ao fundo do topo */
.inf-code { position: absolute; inset: -40px -40px 0; z-index: -1; display: flex; flex-direction: column; justify-content: space-around; overflow: hidden; pointer-events: none;
  font: 500 14px/1 ui-monospace, "SF Mono", Menlo, monospace; opacity: 0; animation: infCodeIn 2s ease .3s forwards;
  -webkit-mask-image: radial-gradient(ellipse 75% 70% at 50% 45%, rgba(0, 0, 0, .25), #000 75%); mask-image: radial-gradient(ellipse 75% 70% at 50% 45%, rgba(0, 0, 0, .25), #000 75%); }
@keyframes infCodeIn { to { opacity: .34; } }
.inf-code-row { white-space: nowrap; }
.inf-code-row > div { display: inline-block; will-change: transform; animation: infMarquee calc(60s + var(--r) * 9s) linear infinite; }
.inf-code-row:nth-child(even) > div { animation-direction: reverse; }
@keyframes infMarquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.inf-sep { display: inline-block; width: 64px; }
.inf-code .t-k { color: #059669; } .inf-code .t-f { color: #2563eb; } .inf-code .t-s { color: #d97706; }
.inf-code .t-n { color: #7c3aed; } .inf-code .t-c { color: #9ca3af; } .inf-code .t-v { color: #6e6e73; }
/* símbolos que sobem */
.inf-glyphs { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.inf-glyphs span { position: absolute; bottom: 8%; left: calc(4% + var(--k) * 10%); font: 700 calc(14px + var(--k) % 3 * 5px) ui-monospace, Menlo, monospace; color: #059669; opacity: 0;
  animation: infFloat calc(7s + var(--k) % 4 * 1.6s) ease-in infinite; animation-delay: calc(var(--k) * -1.3s + 1s); }
.inf-glyphs span:nth-child(3n+2) { color: #2563eb; } .inf-glyphs span:nth-child(3n) { color: #d97706; }
@keyframes infFloat { 0% { opacity: 0; transform: translateY(0) rotate(0); } 20% { opacity: .5; } 80% { opacity: .35; } 100% { opacity: 0; transform: translateY(-420px) rotate(14deg); } }

/* aviso no topo (título + botões), acima do notebook */
.inf-gate { margin: 30px auto 0; opacity: 0; animation: refUp .9s var(--ease) 1.25s forwards; }
.inf-gate h2 { display: inline-flex; align-items: center; gap: 12px; margin: 0; font-size: 26px; line-height: 1.2; letter-spacing: -.025em; }
.inf-gate-ico { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; color: #fff; background: #1d1d1f; }
.inf-gate-ico.gold { background: #111; color: #fcd34d; }
.inf-gate-ico.ok { background: linear-gradient(160deg, #34d399, #059669); }
.inf-gate-ico i[data-icon], .inf-gate-ico svg { width: 19px; height: 19px; }
.inf-gate .inf-cta { margin-top: 18px; }
/* botão principal: faixas verdes passando de um lado a outro, convidando ao clique */
.inf-shine { position: relative; overflow: hidden; isolation: isolate; animation: infRing 2.8s ease-out 2.4s infinite; }
.inf-shine::before { content: ''; position: absolute; z-index: -1; top: -20%; bottom: -20%; left: 0; width: 45%; transform: translateX(-120%) skewX(-22deg);
  background: linear-gradient(90deg, transparent, rgba(52, 211, 153, .18) 30%, rgba(52, 211, 153, .65) 50%, rgba(52, 211, 153, .18) 70%, transparent);
  animation: infShine 2.8s cubic-bezier(.45, 0, .2, 1) 2.2s infinite; }
.inf-shine::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; pointer-events: none;
  background: linear-gradient(90deg, transparent, #34d399 45%, #2dd4bf 55%, transparent) no-repeat; background-size: 40% 100%; background-position: -60% 0;
  animation: infLine2 2.8s cubic-bezier(.45, 0, .2, 1) 2.35s infinite; }
@keyframes infShine { 0% { transform: translateX(-120%) skewX(-22deg); } 55%, 100% { transform: translateX(330%) skewX(-22deg); } }
@keyframes infLine2 { 0% { background-position: -60% 0; } 55%, 100% { background-position: 170% 0; } }
@keyframes infRing { 0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, .55); } 70%, 100% { box-shadow: 0 0 0 12px rgba(52, 211, 153, 0); } }
.inf-shine:hover { background: #062e22; }

/* tela do notebook: mostra "Carregando curso…" e depois o código começa a ser digitado
   linha do tempo: 1.2s tela aparece · 1.5s carregando · 3.3s some o carregando e o teclado sobe · 3.7s digitação */
.inf-mac { position: relative; width: min(620px, 100%); aspect-ratio: 16 / 10; margin: 34px auto 26px;
  opacity: 0; transform: translateY(24px) scale(.97); animation: infRise 1s var(--ease) 1.2s forwards; }
.inf-lid-front { position: absolute; inset: 0; padding: 12px 12px 18px; border-radius: 20px 20px 6px 6px; background: #0b0b0d;
  box-shadow: 0 0 0 2px #c9cacf, 0 0 0 3px #9fa1a8, 0 40px 80px -40px rgba(5, 150, 105, .6); }
.inf-lid-front::before { content: ''; position: absolute; top: 5px; left: 50%; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: #1f2a33; box-shadow: inset 0 0 1px 1px #2c3e50; }
.inf-lid-front::after { content: 'MacBook'; position: absolute; bottom: 3px; left: 0; right: 0; text-align: center; font: 600 8px/1 -apple-system, "SF Pro Text", sans-serif; letter-spacing: .08em; color: rgba(255, 255, 255, .28); }
.inf-screen { position: relative; height: 100%; border-radius: 6px; overflow: hidden; background: #000; }
.inf-screen::after { content: ''; position: absolute; inset: 0; z-index: 3; pointer-events: none; background: linear-gradient(115deg, rgba(255, 255, 255, .07), transparent 40%); }
/* tela de carregamento */
.inf-boot { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; background: #0d1117; color: #e6edf3;
  opacity: 0; animation: infBootOn .5s ease 1.5s forwards, infBootOff .45s ease 3.25s forwards; }
@keyframes infBootOn { 0% { opacity: 0; filter: brightness(3) saturate(0); } 40% { opacity: 1; } 100% { opacity: 1; filter: none; } }
@keyframes infBootOff { from { opacity: 1; } to { opacity: 0; transform: scale(1.06); } }
.inf-boot-msg { position: relative; height: 1.3em; width: 100%; font: 500 16px/1.3 ui-monospace, "SF Mono", Menlo, monospace; text-align: center; }
.inf-boot-msg em { position: absolute; inset: 0; font-style: normal; animation: infMsgA .3s ease 2.6s forwards; }
.inf-boot-msg em + em { opacity: 0; color: #34d399; animation: infMsgB .3s ease 2.7s forwards; }
@keyframes infMsgA { to { opacity: 0; transform: translateY(-8px); } }
@keyframes infMsgB { from { transform: translateY(8px); } to { opacity: 1; transform: none; } }
.inf-boot-bar { width: 46%; height: 5px; border-radius: 5px; overflow: hidden; background: rgba(255, 255, 255, .12); }
.inf-boot-bar i { display: block; height: 100%; width: 100%; border-radius: 5px; background: linear-gradient(90deg, #34d399, #2dd4bf, #60a5fa); transform-origin: 0 50%; transform: scaleX(0);
  animation: infLoad 1.5s cubic-bezier(.5, .1, .3, 1) 1.65s forwards; }
@keyframes infLoad { 60% { transform: scaleX(.72); } to { transform: scaleX(1); } }

/* terminal: o código entra sendo digitado (dentro da tela do notebook) */
.inf-term { position: relative; display: flex; flex-direction: column; height: 100%; text-align: left; background: #0d1117;
  opacity: 0; animation: infPowerOn .6s ease 1.5s forwards; }
@keyframes infPowerOn { 0% { opacity: 0; filter: brightness(3) saturate(0); } 30% { opacity: 1; } 100% { opacity: 1; filter: none; } }
.inf-term::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(180deg, rgba(255, 255, 255, .025) 0 1px, transparent 1px 3px); }
.inf-term::before { content: ''; position: absolute; left: 0; right: 0; top: -40%; height: 40%; pointer-events: none; background: linear-gradient(180deg, transparent, rgba(52, 211, 153, .07), transparent); animation: infScan 4.5s linear infinite; }
@keyframes infScan { to { top: 110%; } }
.inf-term-bar { display: flex; align-items: center; gap: 7px; padding: 11px 14px; background: #161b22; border-bottom: 1px solid rgba(255, 255, 255, .06); }
.inf-term-bar i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.inf-term-bar i:nth-child(2) { background: #febc2e; } .inf-term-bar i:nth-child(3) { background: #28c840; }
.inf-term-bar span { flex: 1; margin-right: 47px; text-align: center; font: 500 12px ui-monospace, "SF Mono", Menlo, monospace; color: rgba(255, 255, 255, .45); }
.inf-term-body { flex: 1; padding: 14px 18px; font: 500 16px/1.75 ui-monospace, "SF Mono", Menlo, monospace; color: #e6edf3; transition: opacity .4s ease, transform .4s ease; }
.inf-term-body.wipe { opacity: 0; transform: translateY(-10px); filter: blur(2px); }
.inf-term .tl { display: flex; white-space: pre; animation: infLine .25s ease-out; }
@keyframes infLine { from { opacity: 0; transform: translateX(-6px); } }
.inf-term .ln { flex: 0 0 26px; font-weight: 500; color: rgba(255, 255, 255, .22); user-select: none; }
.inf-term .tc { display: inline-flex; align-items: center; min-width: 0; overflow: hidden; }
.inf-term .t-k { color: #34d399; } .inf-term .t-f { color: #60a5fa; } .inf-term .t-s { color: #fbbf24; }
.inf-term .t-n { color: #c4b5fd; } .inf-term .t-c { color: #6b7280; } .inf-term .t-p { color: #2dd4bf; font-weight: 700; }
.inf-term .t-o { color: rgba(230, 237, 243, .6); } .inf-term .t-bar { color: #34d399; } .inf-term .t-ok { color: #34d399; font-weight: 700; }
.inf-term .t-h { color: #fff; font-weight: 700; }
.inf-term .tl.hl.lit .t-h { color: #34d399; text-shadow: 0 0 12px rgba(52, 211, 153, .75), 0 0 28px rgba(52, 211, 153, .35); }
.inf-term .tl.hl.lit { animation: infLit .6s ease-out; }
@keyframes infLit { 0% { filter: brightness(2); } }
.inf-caret { display: inline-block; flex: none; width: .55em; height: 1.15em; margin-left: 1px; border-radius: 2px; background: #34d399; box-shadow: 0 0 10px rgba(52, 211, 153, .8); animation: infBlink 1s steps(1) infinite; }
@keyframes infBlink { 50% { opacity: 0; } }
.inf-kb { display: inline-flex; flex-direction: column; align-items: center; gap: 7px; padding: 16px; border-radius: 22px; background: #1d1d1f;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 255, 255, .08); opacity: 0; transform: translateY(70px) scale(.94); animation: infRise .9s var(--ease) 3.3s forwards; }
@keyframes infRise { to { opacity: 1; transform: none; } }
.inf-row { display: flex; gap: 7px; }
.inf-row:nth-child(2) { margin-left: 18px; }
.inf-row:nth-child(3) { margin-left: -26px; }
.inf-key { position: relative; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 9px; background: #2c2c2e; color: rgba(255, 255, 255, .78);
  font-size: 13px; font-weight: 600; box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .06); transition: background .35s ease, color .35s ease, transform .35s ease; }
.inf-key.nub::after { content: ''; position: absolute; bottom: 7px; width: 10px; height: 2px; border-radius: 2px; background: rgba(255, 255, 255, .45); }
.inf-key.space { width: 260px; }
.inf-key.hit { animation: infHit .45s ease-out; }
@keyframes infHit { 0% { background: #34d399; color: #04241a; transform: translateY(2px) scale(.94); box-shadow: 0 0 22px rgba(52, 211, 153, .7); } 100% { background: #2c2c2e; transform: none; } }

/* cartão que muda conforme quem está vendo */
.inf-card { max-width: 760px; margin: 8px auto 0; padding: 30px 32px; border-radius: 28px; background: var(--card); text-align: center;
  box-shadow: 0 1px 0 rgba(0, 0, 0, .03), 0 24px 50px -30px rgba(0, 0, 0, .25); opacity: 0; animation: refUp .9s var(--ease) 1.6s forwards; }
.inf-card-ico { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; color: #fff; background: #1d1d1f; margin-bottom: 14px; }
.inf-card-ico.gold { background: #111; color: #fcd34d; }
.inf-card-ico.gold svg { fill: #fcd34d; filter: drop-shadow(0 0 6px rgba(252, 211, 77, .7)); }
.inf-card-ico.ok { background: linear-gradient(160deg, #34d399, #059669); }
.inf-card-ico svg { width: 24px; height: 24px; }
.inf-card h2 { margin: 0 0 10px; font-size: 26px; line-height: 1.15; letter-spacing: -.025em; }
.inf-card p { margin: 0 auto; max-width: 600px; font-size: 17px; text-align: justify; text-align-last: center; hyphens: auto; -webkit-hyphens: auto; line-height: 1.5; color: var(--ink-2); }
.inf-cta { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.inf-cta .btn-dark, .inf-cta .btn-soft { margin: 0; height: 46px; padding: 0 22px; display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.inf-cta svg { width: 18px; height: 18px; }
.inf-note { font-size: 14px; color: var(--ink-3, #888); }

/* benefícios */
.inf-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 40px 0 20px; }
.inf-ben { padding: 22px; border-radius: 22px; background: var(--card); text-align: left; opacity: 0; animation: refUp .8s var(--ease) calc(1.8s + var(--k) * .1s) forwards; }
.inf-ben-ico { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 13px; color: #fff; margin-bottom: 14px; }
.inf-ben:nth-child(1) .inf-ben-ico { background: linear-gradient(160deg, #34d399, #059669); }
.inf-ben:nth-child(2) .inf-ben-ico { background: linear-gradient(160deg, #38bdf8, #2563eb); }
.inf-ben:nth-child(3) .inf-ben-ico { background: linear-gradient(160deg, #a78bfa, #7c3aed); }
.inf-ben:nth-child(4) .inf-ben-ico { background: linear-gradient(160deg, #fbbf24, #f97316); }
.inf-ben-ico svg { width: 22px; height: 22px; }
.inf-ben h3 { margin: 0 0 6px; font-size: 17px; letter-spacing: -.015em; }
.inf-ben p { margin: 0; font-size: 14.5px; line-height: 1.45; color: var(--ink-2); }

@media (max-width: 960px) { .inf-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 860px) {
  .inf-hero { padding: 6px 0 28px; }
  .inf-logo { width: min(270px, 80%); margin-bottom: 16px; }
  .inf-title { font-size: 32px; line-height: 1.06; }
  .inf-sub { font-size: 15px; line-height: 1.5; margin-top: 12px; padding: 0 2px; color: var(--muted); }
  .inf-mac { margin: 24px auto 18px; }
  .inf-gate { margin-top: 20px; }
  .inf-gate h2 { font-size: 16.5px; gap: 8px; letter-spacing: -.015em; }
  .inf-gate-ico { width: 28px; height: 28px; border-radius: 8px; }
  .inf-gate-ico i[data-icon], .inf-gate-ico svg { width: 15px; height: 15px; }
  .inf-gate .inf-cta { margin-top: 12px; gap: 8px; }
  .inf-gate .inf-cta .btn-dark, .inf-gate .inf-cta .btn-soft { height: 44px; font-size: 15px; }
  .inf-lid-front { padding: 7px 7px 11px; border-radius: 13px 13px 4px 4px; }
  .inf-lid-front::before { top: 2px; width: 3px; height: 3px; margin-left: -1.5px; }
  .inf-lid-front::after { font-size: 5px; bottom: 3px; }
  .inf-screen { border-radius: 4px; }
  .inf-boot { gap: 10px; }
  .inf-boot-msg { font-size: 11px; }
  .inf-term-bar { padding: 9px 12px; }
  .inf-term-bar i { width: 9px; height: 9px; }
  .inf-term-bar span { margin-right: 39px; font-size: 11px; }
  .inf-term-body { padding: 8px 10px; font-size: 11px; line-height: 1.7; }
  .inf-term .ln { flex-basis: 20px; }
  .inf-code { font-size: 12px; }
  .inf-sep { width: 40px; }
  .inf-kb { padding: 10px; gap: 5px; border-radius: 16px; }
  .inf-row { gap: 4px; }
  .inf-row:nth-child(2) { margin-left: 10px; }
  .inf-row:nth-child(3) { margin-left: -16px; }
  .inf-key { width: 27px; height: 32px; border-radius: 7px; font-size: 11px; }
  .inf-key.space { width: 150px; }
  .inf-key.nub::after { bottom: 5px; width: 8px; }
  .inf-card { padding: 24px 20px; border-radius: 24px; }
  .inf-card h2 { font-size: 21px; }
  .inf-card p { font-size: 15px; }
  .inf-cta { flex-direction: column; }
  .inf-cta .btn-dark, .inf-cta .btn-soft { justify-content: center; width: 100%; }
  .inf-grid { grid-template-columns: 1fr; gap: 12px; margin-top: 28px; }
  .inf-ben { padding: 18px; display: grid; grid-template-columns: 44px 1fr; column-gap: 14px; }
  .inf-ben-ico { grid-row: span 2; margin: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .inf-title > span, .inf-sub, .inf-term, .inf-kb, .inf-card, .inf-ben { animation: none; opacity: 1; filter: none; transform: none; }
  .inf-logo, .inf-gate, .inf-shine, .inf-shine::before, .inf-shine::after, .inf-mac, .inf-term, .inf-code-row > div, .inf-term::before { animation: none; opacity: 1; transform: none; filter: none; } .inf-boot, .inf-shine::before, .inf-shine::after { display: none; } .inf-code { animation: none; opacity: .34; } .inf-glyphs { display: none; }
}
.inf-card-ico i[data-icon] { width: 24px; height: 24px; }
.inf-cta i[data-icon] { width: 18px; height: 18px; }
.inf-ben-ico i[data-icon] { width: 22px; height: 22px; }

/* =========================================================
   JANELA DE ENTRAR — banner à esquerda que se revela ao abrir
   A janela aparece com o tamanho do formulário e, logo depois, abre para a
   esquerda mostrando o banner (a imagem desliza e se acomoda). Fica centralizada.
   ========================================================= */
.au-login .au-shell {
  --art-w: 400px; --form-w: 420px;
  position: relative; display: grid; grid-template-columns: 0px min(var(--form-w), calc(100vw - 48px));
  max-height: calc(100dvh - 48px); border-radius: 28px; overflow: hidden;
  background: #fff; color: var(--ink);
  box-shadow: 0 50px 100px -30px rgba(0, 0, 0, .6), 0 0 0 1px rgba(0, 0, 0, .04);
  opacity: 0; transform: translateY(22px) scale(.96);
  transition: opacity .3s ease, transform .55s var(--ease), grid-template-columns .5s var(--ease);
}
.au-login.in .au-shell {
  opacity: 1; transform: none; grid-template-columns: var(--art-w) min(var(--form-w), calc(100vw - 48px));
  transition: opacity .35s ease, transform .7s var(--ease), grid-template-columns 1s cubic-bezier(.7, 0, .2, 1) .28s;
}
.au-login .au-card {
  width: auto; max-height: none; min-height: 0; overflow-y: auto; padding: 40px 36px 30px;
  background: none; box-shadow: none; border-radius: 0; opacity: 1; transform: none; transition: none;
}
/* conteúdo do formulário entra em cascata */
.au-login .au-card > * { opacity: 0; transform: translateY(10px); transition: opacity .45s ease, transform .6s var(--ease); transition-delay: calc(.16s + var(--i, 0) * 35ms); }
.au-login.in .au-card > * { opacity: 1; transform: none; }
.au-login .au-card .lk-icon { width: 52px; height: 52px; border-radius: 15px; box-shadow: 0 10px 22px -10px rgba(0, 0, 0, .5); }
.au-login .au-card h2 { font-size: 26px; letter-spacing: -.028em; }
.au-login .lk-field input { height: 48px; border-radius: 14px; }
.au-login .lk-actions button { height: 48px; border-radius: 999px; }

.au-art { position: relative; min-width: 0; overflow: hidden; background: #0d1512; }
.au-art img, .au-art-def {
  position: absolute; top: 0; right: 0; bottom: 0; width: var(--art-w, 400px); height: 100%;
}
.au-art img { object-fit: cover; opacity: 0; transform: scale(1.14) translateX(28px); transition: opacity .6s ease .35s, transform 1.5s var(--ease) .28s; }
.au-login.in .au-art img.ld { opacity: 1; transform: none; }
.au-art::after { /* fio de luz na emenda com o formulário */
  content: ""; position: absolute; top: 0; right: 0; bottom: 0; width: 1px; background: rgba(255, 255, 255, .18); pointer-events: none;
}
.au-art-def {
  display: flex; flex-direction: column; justify-content: flex-end; gap: 10px; padding: 36px 34px; color: #fff;
  background:
    radial-gradient(120% 70% at 0% 0%, rgba(22, 199, 132, .38), transparent 60%),
    radial-gradient(90% 60% at 100% 100%, rgba(6, 122, 87, .55), transparent 65%),
    linear-gradient(160deg, #0f2a21, #0b0f0d 70%);
  opacity: 0; transform: translateX(28px); transition: opacity .6s ease .4s, transform 1.4s var(--ease) .3s;
}
.au-login.in .au-art-def { opacity: 1; transform: none; }
.au-art-logo { position: absolute; top: 32px; left: 34px; display: flex; gap: 1px; font: 800 30px/1 "Inter", sans-serif; letter-spacing: -.04em; }
.au-art-logo b:last-child { color: #34d399; }
.au-art-def strong { font-size: 32px; line-height: 1.05; font-weight: 700; letter-spacing: -.03em; }
.au-art-def small { max-width: 260px; font-size: 14px; line-height: 1.45; color: rgba(255, 255, 255, .7); }

/* botão de editar o banner (só administradores) */
.au-art-ed { position: absolute; top: 14px; right: 14px; z-index: 2; display: flex; gap: 6px; }
.au-art-ed button {
  height: 36px; padding: 0 14px; border: 0; border-radius: 999px; display: inline-flex; align-items: center; gap: 7px;
  background: rgba(0, 0, 0, .55); color: #fff; font: 600 13px/1 "Inter", sans-serif; cursor: pointer;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .18) inset; transition: background .2s;
}
.au-art-ed button[data-art="clear"] { width: 36px; padding: 0; justify-content: center; }
.au-art-ed button:hover { background: rgba(0, 0, 0, .78); }
.au-art-ed i { width: 16px; height: 16px; display: grid; }
.au-art-hint { position: absolute; left: 16px; bottom: 12px; z-index: 2; padding: 4px 9px; border-radius: 8px; background: rgba(0, 0, 0, .5); color: rgba(255, 255, 255, .85); font-size: 11.5px; }
.au-art.busy::before { content: ""; position: absolute; inset: 0; z-index: 3; background: rgba(0, 0, 0, .35); animation: auPulse 1s ease-in-out infinite alternate; }
@keyframes auPulse { to { background: rgba(0, 0, 0, .55); } }

/* telas médias: sem espaço para os dois lados, só o formulário */
@media (max-width: 900px) {
  .au-login.in .au-shell { grid-template-columns: 0px min(var(--form-w), calc(100vw - 48px)); }
}
/* celular: o banner vira uma faixa no alto da janela */
@media (max-width: 640px) {
  .au-login { padding: 16px; }
  .au-login .au-shell, .au-login.in .au-shell { grid-template-columns: calc(100vw - 32px); grid-template-rows: 0px auto; max-height: calc(100dvh - 32px); border-radius: 26px; }
  .au-login.in .au-shell { grid-template-rows: 132px auto; transition: opacity .35s ease, transform .7s var(--ease), grid-template-rows .9s cubic-bezier(.7, 0, .2, 1) .25s; }
  .au-login .au-shell { transition: opacity .3s ease, transform .55s var(--ease), grid-template-rows .45s var(--ease); }
  .au-art img, .au-art-def { width: 100%; }
  .au-art img { transform: scale(1.15) translateY(18px); }
  .au-art-def { transform: translateY(18px); padding: 20px 22px; gap: 4px; }
  .au-art-def strong { font-size: 22px; } .au-art-def small, .au-art-def strong br { display: none; }
  .au-art-logo { top: 18px; left: 22px; font-size: 22px; }
  .au-art::after { top: auto; left: 0; width: auto; height: 1px; }
  .au-art-hint { display: none; }
  .au-login .au-card { padding: 22px 20px 20px; }
  .au-login .au-card:is([data-mode="login"], [data-mode="signup"]) .lk-icon { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .au-login .au-shell, .au-login .au-card > *, .au-art img, .au-art-def { transition-duration: .01s !important; transition-delay: 0s !important; }
}

/* nome de usuário: "@" fixo antes do campo */
.au-at::before { content: "@"; position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: var(--muted); font-weight: 600; pointer-events: none; }
.au-at input { padding-left: 34px !important; }
.au-hint { display: block; margin-top: 6px; font-size: 12px; line-height: 1.4; color: var(--muted); }
.us-user { font-weight: 600; color: var(--ink-2); }
.icon-btn.us-at { font: 700 16px/1 "Inter", sans-serif; }
.au-art picture { display: contents; }
.au-art-ed { flex-wrap: wrap; justify-content: flex-end; max-width: calc(100% - 28px); }
@media (max-width: 640px) { .au-art-ed { top: 10px; right: 10px; } .au-art-ed button { height: 32px; padding: 0 11px; font-size: 12px; } .au-art-ed button[data-art="clear"] { width: 32px; } }

/* janela de entrar: o formulário rola dentro da janela (antes ficava cortado e quem rolava era o site do fundo) */
.au-login .au-card { max-height: calc(100dvh - 48px); overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.lk-backdrop { touch-action: none; }
html.lk-lock, html.lk-lock body { overflow: hidden; }
@media (max-width: 640px) {
  .au-login .au-shell, .au-login.in .au-shell { display: flex; flex-direction: column; width: calc(100vw - 32px); max-height: calc(100dvh - 32px); }
  .au-login .au-art { flex: none; height: 0; transition: height .45s var(--ease); }
  .au-login.in .au-art { height: 132px; transition: height .9s cubic-bezier(.7, 0, .2, 1) .25s; }
  .au-login .au-card { flex: 1 1 auto; min-height: 0; max-height: none; }
}

/* ===== Avisos no celular (avisos.js) ===== */
.ag-st.s-pendente { background: #fff4e0; color: #b45309; }
.ag-tabs button.hot b { min-width: 20px; height: 20px; padding: 0 6px; display: inline-grid; place-items: center; border-radius: 999px; background: #f59e0b; color: #fff; font-size: 12px; }
.pc { display: grid; grid-template-columns: auto 1fr; gap: 12px 14px; align-items: center; }
.pc-ico { position: relative; width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; color: #fff; background: linear-gradient(145deg, #fbbf24, #f97316); box-shadow: 0 8px 18px -10px rgba(249, 115, 22, .8); }
.pc-ico i { width: 22px; height: 22px; display: grid; }
.pc.s-on .pc-ico { background: linear-gradient(145deg, #34d399, #059669); box-shadow: 0 8px 18px -10px rgba(5, 150, 105, .8); }
.pc.s-denied .pc-ico, .pc.s-unsupported .pc-ico { background: linear-gradient(145deg, #a1a1aa, #71717a); box-shadow: none; }
.pc-dot { position: absolute; top: -3px; right: -3px; width: 12px; height: 12px; border-radius: 50%; background: #34d399; border: 2px solid var(--card); animation: pcPulse 2.4s ease-in-out infinite; }
@keyframes pcPulse { 50% { box-shadow: 0 0 0 5px rgba(52, 211, 153, .25); } }
.pc-txt { display: grid; gap: 3px; min-width: 0; }
.pc-txt strong { font-size: 15.5px; font-weight: 700; letter-spacing: -.01em; color: var(--ink); }
.pc-txt span { font-size: 13.5px; line-height: 1.4; color: var(--muted); }
.pc-btns { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; }
.pc-btns button { height: 40px; padding: 0 18px; }
.pc-btns i { width: 16px; height: 16px; display: grid; }
.pc.compact .pc-btns button { flex: 1; }
.pc-steps { display: grid; gap: 10px; text-align: left; }
.pc-steps > span { display: grid; grid-template-columns: 26px 1fr; gap: 10px; align-items: center; line-height: 1.45; }
.pc-steps strong { color: var(--ink); font-weight: 600; }
.pc-steps b { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); font-size: 13px; }
.pc-share { display: inline-block; width: 15px; height: 17px; vertical-align: -3px; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3v12M7 8l5-5 5 5M20 14v5a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2v-5'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3v12M7 8l5-5 5 5M20 14v5a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2v-5'/%3E%3C/svg%3E") center / contain no-repeat; }
@media (min-width: 1201px) { .me-grid { grid-template-rows: auto 1fr; } .me-grid > #me-form, .me-grid > .me-id { grid-row: span 2; } .me-grid > .me-push { grid-column: 3; } } /* avisos logo abaixo de "Trocar senha" */

/* aviso discreto para ativar as notificações, flutuando abaixo da barra do relógio */
.pb {
  position: absolute; top: calc(100% + 10px); left: 50%; z-index: 1;
  width: min(560px, calc(100% - 24px)); transform: translateX(-50%);
  display: flex; align-items: center; gap: 10px; padding: 7px 7px 7px 8px;
  border-radius: 22px; pointer-events: auto;
  background: rgba(22, 22, 23, .9); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px);
  border: 1px solid rgba(255, 255, 255, .08); box-shadow: 0 12px 30px -14px rgba(0, 0, 0, .45);
  color: #f5f5f7; animation: pbIn .55s cubic-bezier(.32, .72, 0, 1) both;
}
.pb.out { animation: pbOut .35s ease forwards; pointer-events: none; }
@keyframes pbIn { from { opacity: 0; transform: translate(-50%, -10px) scale(.96); } }
@keyframes pbOut { to { opacity: 0; transform: translate(-50%, -10px) scale(.96); } }
.pb-ico { flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: linear-gradient(145deg, #fbbf24, #f97316); }
.pb-ico i { width: 16px; height: 16px; display: grid; animation: pbRing 3s ease-in-out 1s infinite; transform-origin: 50% 10%; }
@keyframes pbRing { 0%, 12%, 100% { transform: none; } 3% { transform: rotate(14deg); } 6% { transform: rotate(-12deg); } 9% { transform: rotate(6deg); } }
.pb-txt { flex: 1; min-width: 0; font-size: 13px; line-height: 1.3; color: rgba(245, 245, 247, .72); }
.pb-txt strong { color: #fff; font-weight: 600; }
.pb-go { flex: none; height: 32px; padding: 0 15px; border: 0; border-radius: 999px; background: #fff; color: #1d1d1f; font: 600 13px/1 "Inter", sans-serif; cursor: pointer; transition: transform .15s; }
.pb-go:active { transform: scale(.95); }
.pb-go:disabled { opacity: .6; }
.pb-x { flex: none; width: 30px; height: 30px; border: 0; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .1); color: rgba(245, 245, 247, .8); cursor: pointer; }
.pb-x i { width: 14px; height: 14px; display: grid; }
@media (max-width: 860px) { .pb { top: calc(100% + 8px); width: calc(100% - 24px); gap: 8px; padding: 6px 6px 6px 7px; } .pb-ico { width: 28px; height: 28px; } .pb-txt { font-size: 12.5px; } .pb-go { padding: 0 13px; } .pb-x { width: 28px; height: 28px; } }
@media (prefers-reduced-motion: reduce) { .pb, .pb.out, .pb-ico i { animation: none; } }

/* comprovante do agendamento: botão ✕ no canto */
.ag-done { position: relative; }
.ag-done-x { position: absolute; top: 0; right: 0; width: 36px; height: 36px; border-radius: 50%; border: 0; display: grid; place-items: center; background: var(--bg); color: var(--ink); cursor: pointer; transition: transform .15s; }
.ag-done-x:active { transform: scale(.92); }
.ag-done-x i { width: 18px; height: 18px; display: grid; }
.ag-done .ag-done-actions { margin-top: 22px; }

/* ===== Meus agendamentos (página Agendar) ===== */
.ag-mine { margin: 40px 0 0; }
.am-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap; margin-bottom: 16px; }
.am-head h2 { margin: 0; font-size: 26px; font-weight: 700; letter-spacing: -.03em; }
.am-head p { margin: 4px 0 0; font-size: 14px; color: var(--muted); }
.am-note { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: var(--line-soft); color: var(--muted); font-size: 12.5px; font-weight: 500; }
.am-note i { width: 14px; height: 14px; display: grid; }
.am-list { display: grid; gap: 12px; }
.am-item {
  display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 16px; align-items: center;
  padding: 14px 18px 14px 14px; border-radius: 24px; background: var(--card);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 14px 34px -26px rgba(0, 0, 0, .35);
  animation: amIn .6s var(--ease) calc(var(--i) * .07s) both;
}
@keyframes amIn { from { opacity: 0; transform: translateY(14px); } }
.am-date { width: 64px; height: 72px; border-radius: 18px; display: grid; place-content: center; text-align: center; color: #fff; background: linear-gradient(150deg, var(--a), var(--b)); box-shadow: 0 10px 20px -12px var(--b); line-height: 1.05; }
.am-date small { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; opacity: .85; }
.am-date b { font-size: 26px; font-weight: 700; letter-spacing: -.03em; margin: 1px 0; }
.am-info { min-width: 0; display: grid; gap: 6px; }
.am-top { display: flex; align-items: center; justify-content: space-between; gap: 6px 10px; flex-wrap: wrap; }
.am-top strong { font-size: 16.5px; font-weight: 700; letter-spacing: -.02em; color: var(--ink); }
.am-st { display: inline-flex; align-items: center; gap: 5px; padding: 5px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.am-st i { width: 13px; height: 13px; display: grid; }
.s-pendente .am-st { background: #fff4e5; color: #c2410c; }
.s-pendente .am-st i { animation: amTick 2.4s ease-in-out infinite; }
@keyframes amTick { 50% { opacity: .35; } }
.s-confirmado .am-st { background: var(--accent-soft); color: var(--accent); }
.s-compareceu .am-st { background: #e0ecff; color: #1d4ed8; }
.s-faltou .am-st { background: #fff1f0; color: var(--danger); }
.s-cancelado .am-st { background: var(--line-soft); color: var(--muted); }
.am-sub { margin: 0; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13.5px; color: var(--ink-2); }
.am-sub > span:first-child { display: inline-flex; align-items: center; gap: 5px; }
.am-sub i { width: 14px; height: 14px; display: grid; color: var(--muted); }
.am-rel { padding: 2px 8px; border-radius: 999px; background: var(--bg); font-size: 12px; font-weight: 600; color: var(--muted); }
.am-item.next .am-rel { background: color-mix(in srgb, var(--a) 18%, transparent); color: var(--b); }
/* andamento: Recebido → Confirmado → Realizado */
.am-track { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 4px; }
.am-track span { position: relative; display: grid; justify-items: start; gap: 5px; font-size: 11.5px; font-weight: 600; color: var(--faint, #a1a1a6); }
.am-track span::before { content: ""; position: absolute; top: 4px; left: 12px; right: 0; height: 2px; border-radius: 2px; background: var(--line-soft); }
.am-track span:last-child::before { display: none; }
.am-track i { position: relative; width: 10px; height: 10px; border-radius: 50%; background: var(--line-soft); }
.am-track span.on { color: var(--ink-2); }
.am-track span.on i { background: var(--accent); }
.am-track span.on:not(.now)::before { background: var(--accent); }
.am-track span.now i { box-shadow: 0 0 0 4px var(--accent-soft); }
.s-pendente .am-track span.now i { background: #f59e0b; box-shadow: 0 0 0 4px #fff4e5; }
.am-item.past { box-shadow: none; background: color-mix(in srgb, var(--card) 70%, var(--bg)); }
.am-item.s-cancelado .am-date, .am-item.s-faltou .am-date { filter: grayscale(1); opacity: .55; box-shadow: none; }
.am-item.s-cancelado .am-top strong { color: var(--muted); text-decoration: line-through; text-decoration-thickness: 1px; }
@media (max-width: 860px) {
  .ag-mine { margin-top: 32px; }
  .am-head h2 { font-size: 22px; }
  .am-item { grid-template-columns: 56px minmax(0, 1fr); gap: 12px; padding: 12px 14px 12px 12px; border-radius: 22px; }
  .am-date { width: 56px; height: 64px; border-radius: 16px; }
  .am-date b { font-size: 22px; }
  .am-top strong { font-size: 15.5px; }
}
@media (prefers-reduced-motion: reduce) { .am-item, .s-pendente .am-st i { animation: none; } }
@media (min-width: 1100px) {
  .ag-mine { grid-column: 1 / -1; margin-top: 56px; }
  .am-list { grid-template-columns: repeat(auto-fill, minmax(380px, 1fr)); }
}

/* =========================================================
   Setor pedagógico: aviso ao vivo no lugar do nome do instituto (pedagogico.js)
   ========================================================= */
.pd { display: none; flex: 1; min-width: 0; }
@media (min-width: 861px) { .tb-title { transition: opacity .3s ease, transform .4s var(--ease), filter .3s ease; } }
.topbar.pd-out .tb-title { opacity: 0; transform: translateX(-12px); filter: blur(4px); }
.topbar.pd-on .tb-title { display: none; }
.topbar.pd-on .pd { display: flex; align-items: center; }
.pd-pill {
  position: relative; display: flex; align-items: center; gap: 10px;
  max-width: 100%; height: 44px; padding: 0 6px 0 5px; border-radius: 999px;
  background: linear-gradient(90deg, #047857, #10b981 60%, #34d399);
  box-shadow: 0 0 18px -2px rgba(16, 185, 129, .55), inset 0 0 0 1px rgba(255, 255, 255, .14);
  color: #fff; text-decoration: none; overflow: hidden;
  animation: pdGrow .7s var(--ease) both;
}
.pd-pill.link { cursor: pointer; }
.pd-pill.link:hover { box-shadow: 0 0 24px 0 rgba(16, 185, 129, .65), inset 0 0 0 1px rgba(255, 255, 255, .24); }
.pd-pill::after { /* brilho que passa uma vez quando a pílula abre */
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .35) 50%, transparent 70%);
  transform: translateX(-100%); animation: pdShine 1.2s ease .6s both;
}
.pd-bell {
  flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255, 255, 255, .22); animation: pdText .4s ease .35s both;
}
.pd-bell svg { width: 18px; height: 18px; transform-origin: 50% 10%; animation: pdRing 1.1s ease .7s 2; }
.pd-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; animation: pdText .45s ease .45s both; }
.pd-text b { font-size: 14px; font-weight: 600; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pd-text small { font-size: 11.5px; opacity: .92; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pd-count {
  flex: none; min-width: 26px; height: 26px; padding: 0 8px; margin-left: 4px; border-radius: 999px;
  display: grid; place-items: center; background: #fff; color: #047857;
  font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; animation: pdText .4s ease .55s both;
}
.pd-go {
  flex: none; width: 28px; height: 28px; margin-right: 2px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(0, 0, 0, .12); animation: pdText .4s ease .6s both; transition: transform .25s var(--ease), background .25s;
}
.pd-go svg { width: 15px; height: 15px; }
.pd-pill.link:hover .pd-go { transform: translateX(3px); background: rgba(0, 0, 0, .2); }
.pd-pill { padding-right: 8px; }
.pd.pd-bump .pd-pill { animation: pdBump .5s var(--ease); }
.topbar.pd-closing .pd-pill { animation: pdShrink .4s var(--ease) both; }
@keyframes pdGrow { from { clip-path: inset(0 100% 0 0 round 999px); opacity: .6; } to { clip-path: inset(0 0 0 0 round 999px); opacity: 1; } }
@keyframes pdShrink { from { clip-path: inset(0 0 0 0 round 999px); opacity: 1; } to { clip-path: inset(0 100% 0 0 round 999px); opacity: 0; } }
@keyframes pdText { from { opacity: 0; transform: translateX(-6px); } to { opacity: 1; transform: none; } }
@keyframes pdShine { to { transform: translateX(100%); } }
@keyframes pdRing { 0%, 100% { transform: rotate(0); } 15% { transform: rotate(16deg); } 30% { transform: rotate(-14deg); } 45% { transform: rotate(10deg); } 60% { transform: rotate(-6deg); } 75% { transform: rotate(3deg); } }
@keyframes pdBump { 0% { transform: scale(1); } 40% { transform: scale(1.04); } 100% { transform: scale(1); } }
@media (max-width: 860px) { .pd { display: none !important; } }
@media (prefers-reduced-motion: reduce) { .pd-pill, .pd-pill::after, .pd-bell svg, .pd-text, .pd-count, .pd-go { animation: none !important; } }

/* =========================================================
   FAIXA DE PAINÉIS (Acesso rápido, Financeiro...) — computador
   Lado a lado; o painel sob o mouse se alarga como as Notícias recentes
   e, ao clicar, abre ocupando a faixa inteira (os outros somem até ele recolher).
   Novos painéis dividem a largura sozinhos.
   ========================================================= */
.hub-ico { background: linear-gradient(135deg, #34d399, #047857); color: #fff; }
.hub-ico svg { width: 17px; height: 17px; }
@media (max-width: 860px) {
  .hub-only-desk { display: none; } /* celular: configurado depois */
}
@media (min-width: 861px) {
  .hub-row { display: flex; align-items: flex-start; gap: 14px; margin-top: 34px; }
  .hub-row > .qa {
    margin-top: 0; flex: 1 1 0; min-width: 0;
    transition: flex-grow .7s var(--ease), margin .7s var(--ease), opacity .4s ease .25s, visibility 0s, box-shadow .4s ease;
  }
  .hub-row:not(.has-open) > .hub:hover { flex-grow: 1.7; }
  .hub-row > .hub:hover { box-shadow: 0 1px 2px rgba(0, 0, 0, .08), 0 22px 40px -18px rgba(0, 0, 0, .6); }
  .hub-row .qa-head { overflow: hidden; }
  .hub-row .qa-txt strong, .hub-row .qa-txt small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

  /* um painel aberto: os outros somem por um momento e ele ocupa a faixa inteira;
     ao recolher, os outros voltam (a margem negativa engole o espaço entre eles) */
  .hub-row.has-open > .hub.wide { flex-grow: 1; }
  .hub-row.has-open > .hub:not(.wide) {
    flex-grow: 0; margin-right: -16px; opacity: 0; visibility: hidden; pointer-events: none;
    transition: flex-grow .7s var(--ease), margin .7s var(--ease), opacity .25s ease, visibility 0s linear .7s;
  }
  .hub-row.has-open > .hub:last-child:not(.wide) { margin-right: 0; margin-left: -16px; }

  /* a setinha gira já no clique, sem esperar o corpo abrir */
  .hub-row .qa-head[aria-expanded="true"] .qa-chev { transform: rotate(180deg); background: rgba(255, 255, 255, .2); }
  .hub-row .qa-head[aria-expanded="false"] .qa-chev { transform: none; }

  /* os cartões entram já na largura final, sem pular durante a expansão */
  .hub-row .qa .quick-links { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
}

/* ícone do painel (imagem enviada pelo administrador) */
.hub-ico.has-img { background-size: cover; background-position: center; }
/* Configurações › Painéis da tela inicial */
.hub-cfg { border: 1px solid var(--line); border-radius: 22px; padding: 16px; margin: 0 0 16px; background: var(--card, #fff); }
.hub-cfg-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.hub-cfg-head .bi-meta { flex: 1; min-width: 0; }
.hub-cfg-ico { flex: none; width: 52px; height: 52px; border-radius: 50%; border: 0; padding: 0; display: grid; place-items: center; background: rgb(22, 22, 23); cursor: pointer; }
.hub-cfg-ico .qa-dot { width: 40px; height: 40px; margin: 0; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 16px; box-shadow: none; }
.hub-cfg-ico:hover { filter: brightness(1.15); }
.hub-cfg-btns { margin-top: 14px; padding-left: 14px; border-left: 2px solid var(--line-soft, #eee); }
.hub-cfg .panel-foot { margin-top: 10px; }
