/* ============================================================================
   Portal do Membro — ADMissão Boas Novas
   Design system: tokens, base, layout e componentes.
   Tema claro por padrão, tema escuro via [data-theme="dark"].
   ========================================================================== */

/* ── 1. Tokens ─────────────────────────────────────────────────────────── */

:root {
  color-scheme: light;

  /* Superfícies */
  --bg: #f6f7f9;
  --bg-subtle: #eef0f4;
  --surface: #ffffff;
  --surface-2: #fbfcfe;
  --surface-hover: #f3f5f9;
  --surface-sunken: #f1f3f7;
  --overlay: rgba(16, 24, 40, 0.48);

  /* Linhas */
  --border: #e4e8ef;
  --border-strong: #d2d8e2;

  /* Texto */
  --ink: #0f1729;
  --ink-2: #475467;
  --ink-3: #667085;
  --ink-4: #98a2b3;
  --ink-invert: #ffffff;

  /* Marca: chama (laranja → vermelho) e fita (azul) */
  --brand: #e8590c;
  --brand-hover: #cf4c06;
  --brand-ink: #b84205;
  --brand-soft: #fff1e7;
  --brand-soft-border: #ffd9c2;
  --accent: #1556d1;
  --accent-soft: #eaf0ff;
  --fire-gradient: linear-gradient(135deg, #ff8a1f 0%, #ef4b12 48%, #c4161c 100%);
  --ribbon-gradient: linear-gradient(135deg, #22b3f2 0%, #1556d1 60%, #102a86 100%);
  --brand-gradient: linear-gradient(120deg, #ff8a1f 0%, #ef4b12 45%, #1556d1 100%);

  /* Estados */
  --danger: #cf2318;
  --danger-soft: #fef3f2;
  --danger-border: #fecdca;
  --success: #067a57;
  --success-soft: #ecfdf3;
  --success-border: #abefc6;
  --warning: #b54708;

  /* Forma */
  --r-xs: 8px;
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 18px;
  --r-xl: 24px;
  --r-pill: 999px;

  /* Elevação */
  --shadow-xs: 0 1px 2px rgba(16, 24, 40, 0.05);
  --shadow-sm: 0 1px 3px rgba(16, 24, 40, 0.07), 0 1px 2px rgba(16, 24, 40, 0.04);
  --shadow-md: 0 6px 16px -4px rgba(16, 24, 40, 0.1), 0 2px 6px -2px rgba(16, 24, 40, 0.05);
  --shadow-lg: 0 24px 48px -16px rgba(16, 24, 40, 0.2), 0 8px 20px -12px rgba(16, 24, 40, 0.12);
  --ring: 0 0 0 3px rgba(232, 89, 12, 0.22);
  --ring-blue: 0 0 0 3px rgba(21, 86, 209, 0.2);

  /* Tipografia */
  --font: "Segoe UI Variable Text", "Segoe UI", -apple-system, BlinkMacSystemFont, "Inter",
    Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "Cascadia Mono", "Segoe UI Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Medidas */
  --sidebar-w: 264px;
  --rail-w: 312px;
  --content-w: 656px;
  --header-h: 60px;
  --mobile-nav-h: 62px;
  --ease: cubic-bezier(0.2, 0, 0.15, 1);
}

[data-theme="dark"] {
  color-scheme: dark;

  --bg: #080d17;
  --bg-subtle: #0d1422;
  --surface: #111a2b;
  --surface-2: #162034;
  --surface-hover: #1a2740;
  --surface-sunken: #0c1320;
  --overlay: rgba(3, 6, 12, 0.72);

  --border: #23304a;
  --border-strong: #30425f;

  --ink: #f2f5fa;
  --ink-2: #c5d0e0;
  --ink-3: #94a3ba;
  --ink-4: #6d7e97;

  --brand: #ff8135;
  --brand-hover: #ff9350;
  --brand-ink: #ffb07a;
  --brand-soft: rgba(255, 129, 53, 0.13);
  --brand-soft-border: rgba(255, 129, 53, 0.32);
  --accent: #5c9dff;
  --accent-soft: rgba(92, 157, 255, 0.14);

  --danger: #ff6f63;
  --danger-soft: rgba(255, 111, 99, 0.12);
  --danger-border: rgba(255, 111, 99, 0.32);
  --success: #4ade9e;
  --success-soft: rgba(74, 222, 158, 0.12);
  --success-border: rgba(74, 222, 158, 0.3);

  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.45), 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 20px -6px rgba(0, 0, 0, 0.6), 0 2px 6px -2px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 28px 56px -20px rgba(0, 0, 0, 0.8), 0 10px 24px -14px rgba(0, 0, 0, 0.6);
  --ring: 0 0 0 3px rgba(255, 129, 53, 0.3);
  --ring-blue: 0 0 0 3px rgba(92, 157, 255, 0.28);
}

/* ── 2. Reset e base ───────────────────────────────────────────────────── */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "kern" 1, "liga" 1, "calt" 1;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
h4,
p,
figure,
blockquote {
  margin: 0;
}

h1,
h2,
h3,
h4 {
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: -0.019em;
  color: var(--ink);
  text-wrap: balance;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
}

img {
  max-width: 100%;
  display: block;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  background: none;
  border: 0;
  padding: 0;
}

::selection {
  background: var(--brand);
  color: #fff;
}

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
  border-radius: 4px;
}

[hidden] {
  display: none !important;
}

hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 0;
}

* {
  scrollbar-width: thin;
  scrollbar-color: var(--border-strong) transparent;
}

*::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

*::-webkit-scrollbar-thumb {
  background: var(--border-strong);
  border-radius: var(--r-pill);
  border: 3px solid transparent;
  background-clip: content-box;
}

/* ── 3. Ícones ─────────────────────────────────────────────────────────── */

.icon {
  width: 20px;
  height: 20px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: middle;
}

.icon-xs { width: 14px; height: 14px; stroke-width: 2; }
.icon-sm { width: 16px; height: 16px; }
.icon-lg { width: 24px; height: 24px; }
.icon-xl { width: 30px; height: 30px; stroke-width: 1.5; }
.icon-filled { fill: currentColor; }

/* ── 4. Marca ──────────────────────────────────────────────────────────── */

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  color: inherit;
}

.brand:hover {
  text-decoration: none;
}

.brand__mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-xs);
  padding: 4px;
  flex: none;
}

.brand__mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand__name {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.brand__name span {
  background: var(--fire-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand__sub {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-top: 3px;
}

/* ── 5. Layout geral ───────────────────────────────────────────────────── */

.app {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  min-height: 100dvh;
}

.shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 24px 16px 32px;
}

.main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-bottom: 24px;
}

/* O conteúdo recebe foco ao navegar (leitores de tela); o contêiner não precisa de anel. */
.main:focus,
.main:focus-visible {
  outline: none;
}

.sidebar,
.rail {
  display: none;
}

/* Navegação lateral fixa */
@media (min-width: 1024px) {
  .shell {
    grid-template-columns: var(--sidebar-w) minmax(0, 1fr);
    padding: 24px 24px 40px;
    gap: 28px;
  }

  .sidebar {
    display: block;
    position: sticky;
    top: 24px;
    align-self: start;
    height: calc(100dvh - 48px);
    max-height: 760px;
  }
}

@media (min-width: 1280px) {
  .shell {
    grid-template-columns: var(--sidebar-w) minmax(0, var(--content-w)) var(--rail-w);
    justify-content: center;
  }

  .rail {
    display: block;
    position: sticky;
    top: 24px;
    align-self: start;
  }
}

/* ── 6. Sidebar ────────────────────────────────────────────────────────── */

.sidebar__inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  gap: 18px;
}

.sidebar__nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sidebar__section {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-4);
  padding: 14px 12px 6px;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--r-md);
  color: var(--ink-2);
  font-size: 14.5px;
  font-weight: 600;
  transition: background 0.16s var(--ease), color 0.16s var(--ease);
  position: relative;
  width: 100%;
  text-align: left;
}

.nav-link:hover {
  background: var(--surface-hover);
  color: var(--ink);
  text-decoration: none;
}

.nav-link .icon {
  color: var(--ink-3);
  transition: color 0.16s var(--ease);
}

.nav-link:hover .icon {
  color: var(--ink-2);
}

.nav-link.is-active {
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-xs);
  border: 1px solid var(--border);
  padding: 9px 11px;
}

.nav-link.is-active .icon {
  color: var(--brand);
}

.nav-link.is-active::before {
  content: "";
  position: absolute;
  left: -1px;
  top: 50%;
  translate: 0 -50%;
  width: 3px;
  height: 20px;
  border-radius: var(--r-pill);
  background: var(--fire-gradient);
}

.nav-link__badge {
  margin-left: auto;
  font-size: 11px;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: var(--r-pill);
  background: var(--brand-soft);
  color: var(--brand-ink);
  border: 1px solid var(--brand-soft-border);
}

.sidebar__footer {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.user-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-xs);
  width: 100%;
  text-align: left;
  transition: border-color 0.16s var(--ease), box-shadow 0.16s var(--ease);
}

.user-chip:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-sm);
}

.user-chip__meta {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.user-chip__name {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-chip__role {
  font-size: 11.5px;
  color: var(--ink-3);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ── 7. Topbar mobile ──────────────────────────────────────────────────── */

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 10px;
  height: var(--header-h);
  padding: 0 14px;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(14px) saturate(1.6);
  -webkit-backdrop-filter: blur(14px) saturate(1.6);
  border-bottom: 1px solid var(--border);
}

.topbar__actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 6px;
}

.topbar .brand__mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  padding: 3px;
}

.topbar .brand__name { font-size: 15px; }
.topbar .brand__sub { font-size: 9px; letter-spacing: 0.14em; }

@media (min-width: 1024px) {
  .topbar {
    display: none;
  }
}

/* ── 8. Bottom navigation mobile ───────────────────────────────────────── */

.mobile-nav {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 45;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: center;
  height: calc(var(--mobile-nav-h) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: blur(16px) saturate(1.6);
  -webkit-backdrop-filter: blur(16px) saturate(1.6);
  border-top: 1px solid var(--border);
}

.mobile-nav__link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  height: 100%;
  color: var(--ink-3);
  font-size: 10.5px;
  font-weight: 650;
  letter-spacing: 0.01em;
  transition: color 0.15s var(--ease);
}

.mobile-nav__link:hover { text-decoration: none; }

.mobile-nav__link .icon {
  width: 22px;
  height: 22px;
  stroke-width: 1.8;
}

.mobile-nav__link.is-active {
  color: var(--brand);
}

.fab {
  position: fixed;
  right: 18px;
  bottom: calc(var(--mobile-nav-h) + env(safe-area-inset-bottom) + 16px);
  z-index: 46;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--fire-gradient);
  box-shadow: 0 10px 24px -6px rgba(239, 75, 18, 0.55), 0 2px 6px rgba(0, 0, 0, 0.16);
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease);
}

.fab:hover {
  transform: translateY(-2px) scale(1.03);
}

.fab:active {
  transform: scale(0.97);
}

.fab .icon {
  width: 26px;
  height: 26px;
  stroke-width: 2.2;
}

@media (min-width: 1024px) {
  .mobile-nav,
  .fab {
    display: none;
  }
}

@media (max-width: 1023px) {
  .main {
    padding-bottom: calc(var(--mobile-nav-h) + env(safe-area-inset-bottom) + 64px);
  }
}

/* ── 9. Cabeçalho de página ────────────────────────────────────────────── */

.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.page-head__title {
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 800;
  letter-spacing: -0.028em;
}

.page-head__desc {
  color: var(--ink-3);
  font-size: 14px;
  margin-top: 4px;
  max-width: 56ch;
}

.page-head__actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

@media (max-width: 1023px) {
  /* No celular a ação principal fica no botão flutuante. */
  .page-head__actions {
    display: none;
  }
}

/* ── 10. Botões ────────────────────────────────────────────────────────── */

.btn {
  --btn-h: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: var(--btn-h);
  padding: 0 16px;
  border-radius: var(--r-md);
  font-size: 14px;
  font-weight: 650;
  letter-spacing: -0.005em;
  white-space: nowrap;
  border: 1px solid transparent;
  transition: background 0.16s var(--ease), border-color 0.16s var(--ease),
    box-shadow 0.16s var(--ease), transform 0.12s var(--ease), color 0.16s var(--ease);
}

.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }

.btn .icon { width: 18px; height: 18px; }

.btn--primary {
  color: #fff;
  background: linear-gradient(180deg, #f2701c 0%, var(--brand) 55%, #d94f08 100%);
  border-color: #cf4c06;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.btn--primary:hover {
  background: linear-gradient(180deg, #f97e2a 0%, #ec5f13 55%, #cf4c06 100%);
}

.btn--primary:disabled { box-shadow: none; }

.btn--secondary {
  color: var(--ink);
  background: var(--surface);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-xs);
}

.btn--secondary:hover {
  background: var(--surface-hover);
  border-color: var(--ink-4);
}

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

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

.btn--soft {
  color: var(--brand-ink);
  background: var(--brand-soft);
  border-color: var(--brand-soft-border);
}

.btn--soft:hover {
  background: color-mix(in srgb, var(--brand-soft) 70%, var(--brand) 12%);
}

.btn--danger {
  color: var(--danger);
  background: var(--danger-soft);
  border-color: var(--danger-border);
}

.btn--danger:hover {
  background: color-mix(in srgb, var(--danger-soft) 60%, var(--danger) 14%);
}

.btn--sm {
  --btn-h: 32px;
  padding: 0 12px;
  font-size: 13px;
  border-radius: var(--r-sm);
  gap: 6px;
}

.btn--sm .icon { width: 15px; height: 15px; }

.btn--lg {
  --btn-h: 46px;
  padding: 0 22px;
  font-size: 15px;
  border-radius: var(--r-md);
}

.btn--block { width: 100%; }

.btn--icon {
  --btn-h: 38px;
  width: 38px;
  padding: 0;
  color: var(--ink-2);
  border-radius: var(--r-sm);
  border-color: transparent;
}

.btn--icon:hover {
  background: var(--surface-hover);
  color: var(--ink);
}

.btn--icon.btn--bordered {
  border-color: var(--border);
  background: var(--surface);
}

.btn.is-loading {
  color: transparent !important;
  pointer-events: none;
  position: relative;
}

.btn.is-loading::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid currentColor;
  border-top-color: transparent;
  color: #fff;
  animation: spin 0.7s linear infinite;
}

/* ── 11. Avatares ──────────────────────────────────────────────────────── */

.avatar {
  --size: 40px;
  width: var(--size);
  height: var(--size);
  border-radius: 50%;
  flex: none;
  position: relative;
  overflow: hidden;
  background: var(--surface-sunken);
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 700;
  font-size: calc(var(--size) * 0.38);
  letter-spacing: 0;
  user-select: none;
  border: 1px solid var(--border);
  object-fit: cover;
}

.avatar--xs { --size: 28px; font-size: 10px; }
.avatar--sm { --size: 34px; }
.avatar--md { --size: 42px; }
.avatar--lg { --size: 56px; }
.avatar--xl { --size: 96px; }
.avatar--ring {
  border: 3px solid var(--surface);
  box-shadow: 0 0 0 1px var(--border);
}

.avatar > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.avatar-group {
  display: flex;
  align-items: center;
}

.avatar-group .avatar {
  margin-left: -8px;
  border: 2px solid var(--surface);
}

.avatar-group .avatar:first-child { margin-left: 0; }

/* ── 12. Cartões e blocos ──────────────────────────────────────────────── */

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-xs);
}

.card--flush { border-radius: var(--r-md); }

.card__head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
}

.card__title {
  font-size: 13px;
  font-weight: 750;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.card__body { padding: 16px; }

/* ── 13. Chips, badges, etiquetas ──────────────────────────────────────── */

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 26px;
  padding: 0 10px;
  border-radius: var(--r-pill);
  font-size: 12px;
  font-weight: 650;
  background: var(--surface-sunken);
  color: var(--ink-2);
  border: 1px solid var(--border);
  white-space: nowrap;
}

.chip--brand {
  background: var(--brand-soft);
  color: var(--brand-ink);
  border-color: var(--brand-soft-border);
}

.chip--accent {
  background: var(--accent-soft);
  color: var(--accent);
  border-color: color-mix(in srgb, var(--accent) 20%, transparent);
}

.chip--quiet {
  background: transparent;
  border-color: transparent;
  color: var(--ink-3);
  padding: 0 4px;
}

.chip .icon { width: 14px; height: 14px; }

.dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.5;
  flex: none;
}

/* Filtros do feed */
.filter-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
}

.filter-bar::-webkit-scrollbar { display: none; }

.filter {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 34px;
  padding: 0 14px;
  border-radius: var(--r-pill);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink-2);
  font-size: 13.5px;
  font-weight: 650;
  white-space: nowrap;
  transition: all 0.15s var(--ease);
}

.filter:hover {
  border-color: var(--border-strong);
  color: var(--ink);
}

.filter.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--surface);
}

.filter.is-active .icon { color: var(--brand); }

/* ── 14. Formulários ───────────────────────────────────────────────────── */

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field__label {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink-2);
  letter-spacing: 0.01em;
}

.field__hint {
  font-size: 12px;
  color: var(--ink-3);
}

.field__error {
  font-size: 12px;
  color: var(--danger);
  font-weight: 600;
}

.input,
.select,
.textarea {
  width: 100%;
  min-height: 42px;
  padding: 9px 12px;
  border-radius: var(--r-sm);
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--ink);
  font-size: 14.5px;
  transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease), background 0.15s var(--ease);
}

.textarea {
  resize: vertical;
  min-height: 92px;
  line-height: 1.55;
}

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

.input:hover,
.select:hover,
.textarea:hover { border-color: var(--ink-4); }

.input:focus,
.select:focus,
.textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: var(--ring);
}

.input-group {
  position: relative;
  display: flex;
  align-items: center;
}

.input-group .icon {
  position: absolute;
  left: 12px;
  color: var(--ink-4);
  pointer-events: none;
  width: 18px;
  height: 18px;
}

.input-group .input {
  padding-left: 38px;
}

.input-group__action {
  position: absolute;
  right: 6px;
  height: 30px;
  padding: 0 8px;
  border-radius: var(--r-xs);
  color: var(--ink-3);
  font-size: 12.5px;
  font-weight: 650;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.input-group__action:hover {
  background: var(--surface-hover);
  color: var(--ink);
}

.select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23667085' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 11px center;
  padding-right: 34px;
}

.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.45;
}

.checkbox input {
  width: 17px;
  height: 17px;
  margin: 1px 0 0;
  accent-color: var(--brand);
  flex: none;
}

/* ── 15. Tela de autenticação ──────────────────────────────────────────── */

.auth {
  min-height: 100dvh;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}

.auth__aside {
  display: none;
}

.auth__main {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 28px 20px 40px;
  min-width: 0;
}

.auth__card {
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
}

.auth__mobile-brand {
  display: flex;
  justify-content: center;
  margin-bottom: 22px;
}

@media (min-width: 900px) {
  .auth {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  }

  .auth__aside {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 40px;
    padding: 48px;
    position: relative;
    overflow: hidden;
    background:
      radial-gradient(900px 520px at 8% 0%, rgba(255, 138, 31, 0.26), transparent 60%),
      radial-gradient(760px 520px at 96% 92%, rgba(21, 86, 209, 0.34), transparent 62%),
      linear-gradient(160deg, #0b1220 0%, #101a2c 46%, #0a1120 100%);
    color: #fff;
  }

  .auth__aside::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
      linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
      linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(circle at 30% 20%, #000 0%, transparent 78%);
    -webkit-mask-image: radial-gradient(circle at 30% 20%, #000 0%, transparent 78%);
    pointer-events: none;
  }

  .auth__aside > * { position: relative; z-index: 1; }

  .auth__main {
    padding: 48px 56px;
  }

  .auth__mobile-brand { display: none; }
}

.auth__aside .brand__name { color: #fff; font-size: 17px; }
.auth__aside .brand__sub { color: rgba(255, 255, 255, 0.62); }
.auth__aside .brand__mark {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: none;
  backdrop-filter: blur(8px);
}

.auth-hero {
  max-width: 460px;
}

.auth-hero__logo {
  width: 112px;
  height: 112px;
  margin-bottom: 26px;
  filter: drop-shadow(0 18px 40px rgba(255, 106, 0, 0.3));
}

.auth-hero h1 {
  font-size: clamp(30px, 3.6vw, 42px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.08;
  color: #fff;
}

.auth-hero h1 em {
  font-style: normal;
  background: linear-gradient(120deg, #ffb066 0%, #ff7a2f 42%, #7fb3ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.auth-hero p {
  margin-top: 16px;
  font-size: 15.5px;
  line-height: 1.62;
  color: rgba(255, 255, 255, 0.72);
  max-width: 42ch;
}

.auth-features {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 34px;
  list-style: none;
  padding: 0;
}

.auth-features li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.45;
}

.auth-features .icon {
  color: #ff9a4a;
  margin-top: 1px;
}

.auth__aside footer {
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.45);
}

.auth-panel__head {
  margin-bottom: 22px;
}

.auth-panel__head h2 {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.auth-panel__head p {
  color: var(--ink-3);
  font-size: 14px;
  margin-top: 6px;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 4px;
  background: var(--surface-sunken);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  margin-bottom: 22px;
}

.auth-tab {
  height: 36px;
  border-radius: var(--r-sm);
  font-size: 14px;
  font-weight: 650;
  color: var(--ink-3);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  transition: all 0.16s var(--ease);
}

.auth-tab:hover { color: var(--ink); }

.auth-tab.is-active {
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.auth-note {
  margin-top: 18px;
  font-size: 12.5px;
  color: var(--ink-3);
  text-align: center;
  line-height: 1.5;
}

.password-meter {
  display: flex;
  gap: 4px;
  margin-top: 2px;
}

.password-meter span {
  height: 3px;
  flex: 1;
  border-radius: var(--r-pill);
  background: var(--surface-sunken);
  transition: background 0.2s var(--ease);
}

.password-meter[data-score="1"] span:nth-child(-n + 1) { background: var(--danger); }
.password-meter[data-score="2"] span:nth-child(-n + 2) { background: #e8a23a; }
.password-meter[data-score="3"] span:nth-child(-n + 3) { background: #59a83f; }
.password-meter[data-score="4"] span:nth-child(-n + 4) { background: var(--success); }

/* ── 16. Composer ──────────────────────────────────────────────────────── */

.composer {
  display: flex;
  gap: 12px;
  padding: 14px;
}

.composer__trigger {
  flex: 1;
  min-height: 42px;
  display: flex;
  align-items: center;
  padding: 0 16px;
  border-radius: var(--r-pill);
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--ink-3);
  font-size: 14.5px;
  text-align: left;
  transition: all 0.16s var(--ease);
}

.composer__trigger:hover {
  background: var(--surface-hover);
  border-color: var(--border-strong);
  color: var(--ink-2);
}

.composer__actions {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 8px 10px 10px;
  border-top: 1px solid var(--border);
  margin-top: 2px;
}

.composer__action {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 32px;
  padding: 0 10px;
  border-radius: var(--r-sm);
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 600;
  transition: background 0.15s var(--ease), color 0.15s var(--ease);
}

.composer__action:hover {
  background: var(--surface-hover);
  color: var(--ink);
}

.composer__action .icon { width: 17px; height: 17px; }

.composer__action--photo .icon { color: #12805c; }
.composer__action--video .icon { color: #c026d3; }
.composer__action--text .icon { color: var(--brand); }

/* ── 17. Publicações ───────────────────────────────────────────────────── */

.post {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-xs);
  transition: box-shadow 0.2s var(--ease), border-color 0.2s var(--ease);
  container-type: inline-size;
}

.post:hover {
  box-shadow: var(--shadow-sm);
  border-color: color-mix(in srgb, var(--border) 60%, var(--border-strong) 40%);
}

.post__head {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 16px 16px 0;
}

.post__author {
  min-width: 0;
  flex: 1;
}

.post__name {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--ink);
  display: block;
  line-height: 1.3;
}

.post__name--link,
.share-embed__name--link {
  padding: 0;
  border: 0;
  background: none;
  text-align: left;
  cursor: pointer;
}

.post__name--link:hover,
.share-embed__name--link:hover {
  color: var(--brand-ink);
  text-decoration: underline;
}

.post__meta {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: var(--ink-3);
  margin-top: 2px;
}

.post__role {
  color: var(--brand-ink);
  font-weight: 650;
}

.post__body {
  padding: 12px 16px 0;
}

.post__text {
  font-size: 15px;
  line-height: 1.62;
  color: var(--ink-2);
  white-space: pre-line;
  overflow-wrap: anywhere;
}

.post__text.is-clamped {
  display: -webkit-box;
  -webkit-line-clamp: 8;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post__more {
  margin-top: 6px;
  font-size: 13px;
  font-weight: 650;
  color: var(--brand-ink);
}

.post__media {
  margin: 12px 16px 0;
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface-sunken);
  position: relative;
}

.post__media img {
  width: 100%;
  max-height: 560px;
  object-fit: cover;
  cursor: zoom-in;
  transition: transform 0.4s var(--ease);
}

.post__media:hover img { transform: scale(1.006); }

.post__media .video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  width: 100%;
  border: 0;
  display: block;
}

.post__stats {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px 0;
  font-size: 12.5px;
  color: var(--ink-3);
  min-height: 20px;
}

.post__stats .likes-count {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-weight: 600;
}

.post__stats .likes-count .icon {
  width: 14px;
  height: 14px;
  color: var(--danger);
}

.post__actions {
  display: flex;
  align-items: center;
  gap: 2px;
  margin: 10px 10px 8px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}

.action-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 36px;
  padding: 0 12px;
  border-radius: var(--r-sm);
  color: var(--ink-3);
  font-size: 13.5px;
  font-weight: 650;
  transition: background 0.15s var(--ease), color 0.15s var(--ease);
}

.action-btn:hover {
  background: var(--surface-hover);
  color: var(--ink);
}

.action-btn .icon { width: 18px; height: 18px; }

.action-btn.is-liked {
  color: var(--danger);
}

.action-btn--follow.is-following {
  color: var(--brand-ink);
}

.action-btn--follow.is-following:hover {
  background: var(--brand-soft);
}

.action-btn.is-liked:hover {
  background: var(--danger-soft);
}

.action-btn--share { margin-left: auto; }

.action-btn.pop .icon {
  animation: pop 0.36s var(--ease);
}

.action-btn span { white-space: nowrap; }

/* Publicação compartilhada */
.post__share-label {
  display: inline;
  min-width: 0;
  color: var(--ink-3);
  font-weight: 550;
}

.post__share-label strong {
  display: inline-block;
  max-width: 18ch;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: bottom;
  font-weight: 700;
  color: var(--ink-2);
}

.post__share-label .icon {
  width: 13px;
  height: 13px;
  vertical-align: -2px;
  margin-right: 3px;
}

.share-embed {
  margin: 12px 16px 0;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--surface-2);
  overflow: hidden;
}

.share-embed__head {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}

/* Compartilhamento de um compartilhamento: cartão encaixado dentro do outro. */
.share-embed--nested {
  margin: 10px 0 0;
  padding: 10px;
  background: var(--surface);
  border-color: var(--border);
}

.share-embed__name {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.share-embed__time {
  font-size: 11.5px;
  color: var(--ink-4);
  white-space: nowrap;
}

.share-embed__text {
  margin-top: 8px;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--ink-2);
  white-space: pre-line;
  overflow-wrap: anywhere;
}

.share-embed__media {
  margin-top: 10px;
  border-radius: var(--r-sm);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface-sunken);
}

.share-embed__media img {
  display: block;
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  cursor: zoom-in;
}

.share-embed__media .video-frame {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
}

.share-embed__note {
  margin-top: 8px;
  font-size: 12px;
  font-style: italic;
  color: var(--ink-4);
}

.post__stats .shares-count {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-left: auto;
  font-weight: 600;
}

.post__stats .shares-count .icon {
  width: 13px;
  height: 13px;
  color: var(--ink-4);
}

/* Em telas estreitas os quatro botões da publicação precisam caber. */
@media (max-width: 480px) {
  .post__actions { gap: 0; margin: 10px 6px 8px; }
  .action-btn { padding: 0 8px; gap: 5px; font-size: 12.5px; }
  .action-btn .icon { width: 16px; height: 16px; }
}

@media (max-width: 360px) {
  .action-btn--share span { display: none; }
}

/* A coluna "Minhas publicações" é estreita mesmo no computador. */
@container (max-width: 400px) {
  .post__actions { gap: 0; margin: 10px 6px 8px; }
  .action-btn { padding: 0 7px; gap: 4px; font-size: 12.5px; }
  .action-btn .icon { width: 16px; height: 16px; }
  .action-btn--share span { display: none; }

  .post__meta--share { gap: 2px 6px; }
  .post__meta--share .dot { display: none; }
  .post__meta--share .post__share-label { flex: 1 1 100%; }
  .post__meta--share .post__share-label strong {
    display: inline;
    max-width: none;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
  }
}

/* No celular o "compartilhou de…" ocupa a linha inteira, sem ponto solto. */
@media (max-width: 480px) {
  .post__meta--share { gap: 2px 6px; }
  .post__meta--share .dot { display: none; }
  .post__meta--share .post__share-label { flex: 1 1 100%; }
  .post__meta--share .post__share-label strong {
    display: inline;
    max-width: none;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
  }
}

/* Comentários */
.comments {
  padding: 0 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.comments__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 4px;
}

.comment {
  display: flex;
  gap: 9px;
  align-items: flex-start;
}

.comment__bubble {
  background: var(--surface-sunken);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 9px 12px;
  min-width: 0;
  flex: 1;
}

.comment__author {
  font-size: 12.8px;
  font-weight: 700;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 7px;
}

.comment__author time {
  font-weight: 500;
  color: var(--ink-4);
  font-size: 11.5px;
}

.comment__text {
  font-size: 13.5px;
  color: var(--ink-2);
  line-height: 1.52;
  overflow-wrap: anywhere;
  white-space: pre-line;
}

.comment__delete {
  color: var(--ink-4);
  opacity: 0;
  transition: opacity 0.15s var(--ease), color 0.15s var(--ease);
  padding: 2px;
  border-radius: 6px;
}

.comment:hover .comment__delete { opacity: 1; }
.comment__delete:hover { color: var(--danger); }

.comment-form {
  display: flex;
  align-items: flex-end;
  gap: 9px;
}

.comment-form .textarea {
  min-height: 40px;
  height: 40px;
  padding: 9px 14px;
  border-radius: var(--r-pill);
  font-size: 13.5px;
  resize: none;
}

.comment-form__send {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--brand);
  box-shadow: var(--shadow-xs);
  transition: background 0.15s var(--ease), transform 0.15s var(--ease);
}

.comment-form__send:hover { background: var(--brand-hover); }
.comment-form__send:disabled { opacity: 0.4; cursor: not-allowed; }
.comment-form__send .icon { width: 17px; height: 17px; }

/* ── 18. Estados vazios e esqueletos ───────────────────────────────────── */

.empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  padding: 42px 24px;
  background: var(--surface);
  border: 1px dashed var(--border-strong);
  border-radius: var(--r-lg);
}

.empty__icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--brand-soft);
  color: var(--brand-ink);
  margin-bottom: 4px;
}

.empty h3 {
  font-size: 16px;
  font-weight: 700;
}

.empty p {
  font-size: 13.5px;
  color: var(--ink-3);
  max-width: 40ch;
  line-height: 1.55;
}

.empty .btn { margin-top: 8px; }

.skeleton {
  position: relative;
  overflow: hidden;
  background: var(--surface-sunken);
  border-radius: var(--r-sm);
}

.skeleton::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--surface) 70%, transparent), transparent);
  animation: shimmer 1.5s infinite;
}

.skeleton-post {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
}

.skeleton-post__row {
  display: flex;
  align-items: center;
  gap: 11px;
}

.skeleton--circle { border-radius: 50%; width: 42px; height: 42px; }
.skeleton--line { height: 11px; }
.skeleton--title { height: 13px; width: 42%; }
.skeleton--block { height: 180px; border-radius: var(--r-md); margin-top: 4px; }

/* ── 19. Perfil ────────────────────────────────────────────────────────── */

.profile-card {
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-xs);
}

.profile-cover {
  position: relative;
  height: 132px;
  background:
    radial-gradient(600px 200px at 12% 120%, rgba(255, 138, 31, 0.4), transparent 65%),
    radial-gradient(500px 220px at 92% -10%, rgba(21, 86, 209, 0.45), transparent 60%),
    linear-gradient(115deg, #101a2c 0%, #16233a 52%, #0d1626 100%);
  overflow: hidden;
}

.profile-cover::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, #000, transparent 88%);
  -webkit-mask-image: linear-gradient(to bottom, #000, transparent 88%);
}

.profile-cover__logo {
  position: absolute;
  right: 20px;
  top: 50%;
  translate: 0 -50%;
  width: 74px;
  height: 74px;
  opacity: 0.55;
  filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.4));
}

@media (min-width: 640px) {
  .profile-cover { height: 156px; }
  .profile-cover__logo { width: 92px; height: 92px; right: 32px; }
}

.profile-head {
  padding: 0 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.profile-head__top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-top: -44px;
}

.profile-avatar {
  position: relative;
  flex: none;
}

.profile-avatar .avatar {
  --size: 88px;
  border: 4px solid var(--surface);
  box-shadow: 0 0 0 1px var(--border), var(--shadow-md);
}

@media (min-width: 640px) {
  .profile-avatar .avatar { --size: 104px; }
}

.profile-avatar__btn {
  position: absolute;
  right: 0;
  bottom: 2px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--ink);
  border: 2px solid var(--surface);
  box-shadow: var(--shadow-sm);
  transition: transform 0.16s var(--ease), background 0.16s var(--ease);
}

.profile-avatar__btn:hover {
  transform: scale(1.08);
  background: var(--brand);
}

.profile-avatar__btn .icon { width: 14px; height: 14px; }

.profile-identity h1 {
  font-size: clamp(21px, 2.6vw, 26px);
  font-weight: 800;
  letter-spacing: -0.028em;
}

.profile-identity__tags {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 7px;
}

.profile-bio {
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.6;
  max-width: 62ch;
}

.profile-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(78px, 1fr));
  gap: 8px;
  border-top: 1px solid var(--border);
  margin-top: 2px;
  padding-top: 14px;
}

.profile-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 8px 4px;
  border-radius: var(--r-sm);
  border: 1px solid var(--border);
  background: var(--surface-2);
}

.profile-stat__value {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.profile-stat__label {
  font-size: 10.5px;
  font-weight: 600;
  color: var(--ink-3);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-align: center;
  line-height: 1.3;
}

.info-list {
  display: flex;
  flex-direction: column;
  gap: 13px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.info-list li {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  font-size: 13.5px;
  color: var(--ink-2);
  line-height: 1.45;
}

.info-list .icon {
  color: var(--brand);
  width: 17px;
  height: 17px;
  margin-top: 1px;
}

.info-list__label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink-4);
  margin-bottom: 1px;
}

/* ── 20. Rail ──────────────────────────────────────────────────────────── */

.rail__inner {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.rail-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-xs);
  overflow: hidden;
}

.rail-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 13px 15px;
  border-bottom: 1px solid var(--border);
}

.rail-card__title {
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.rail-card__body { padding: 14px 15px; }

.verse {
  background:
    radial-gradient(420px 180px at 100% 0%, rgba(255, 138, 31, 0.16), transparent 62%),
    linear-gradient(160deg, #101a2c, #0b1220);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.08);
}

.verse .rail-card__title { color: rgba(255, 255, 255, 0.55); }
.verse .rail-card__head { border-color: rgba(255, 255, 255, 0.1); }

.verse__text {
  font-size: 14.5px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
  letter-spacing: -0.005em;
}

.verse__ref {
  display: block;
  margin-top: 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #ffab66;
}

.rail-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
}

.rail-stat {
  background: var(--surface);
  padding: 13px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.rail-stat__value {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.rail-stat__label {
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-3);
  text-align: center;
}

.rail-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 15px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-2);
  border-top: 1px solid var(--border);
  transition: background 0.15s var(--ease);
  width: 100%;
  text-align: left;
}

.rail-link:hover {
  background: var(--surface-hover);
  color: var(--ink);
  text-decoration: none;
}

.rail-link .icon { color: var(--ink-3); width: 17px; height: 17px; }
.rail-link .icon:last-child { margin-left: auto; color: var(--ink-4); width: 15px; height: 15px; }

.rail-footer {
  font-size: 11.5px;
  color: var(--ink-4);
  line-height: 1.55;
  padding: 0 4px;
}

/* ── 21. Membros ───────────────────────────────────────────────────────── */

.members-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 12px;
}

.member-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: var(--shadow-xs);
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease), border-color 0.18s var(--ease);
  width: 100%;
  text-align: left;
  font: inherit;
  color: inherit;
}

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

.member-card__open {
  display: block;
  width: auto;
  padding: 0;
  border: 0;
  background: none;
  text-align: left;
  font: inherit;
  color: inherit;
  cursor: pointer;
  border-radius: var(--r-sm);
}

.member-card__open:focus-visible {
  outline: none;
  box-shadow: var(--ring);
}

.member-card__top {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-width: 0;
}

.member-card__identity {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  min-width: 0;
}

.member-card__name {
  display: block;
  max-width: 100%;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.member-card__role {
  display: block;
  font-size: 12px;
  color: var(--brand-ink);
  font-weight: 650;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-top: 1px;
}

.member-card__bio {
  font-size: 13px;
  color: var(--ink-3);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 39px;
}

.member-card__foot {
  display: flex;
  align-items: center;
  gap: 8px;
  border-top: 1px solid var(--border);
  padding-top: 9px;
  margin-top: auto;
}

.member-card__meta {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  font-size: 11.5px;
  color: var(--ink-4);
}

.member-card__meta .icon { width: 13px; height: 13px; flex: none; }

.member-card.is-me {
  border-color: var(--brand-soft-border);
  background: linear-gradient(180deg, var(--brand-soft), var(--surface) 62%);
}

/* Seguir: lista de pessoas acompanhadas */
.friend-list {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.friend-row {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 6px 4px;
  border-radius: var(--r-sm);
  transition: background 0.15s var(--ease);
}

.friend-row:hover { background: var(--surface-hover); }

.friend-row__name {
  display: block;
  font-size: 13px;
  font-weight: 650;
  color: var(--ink);
}

.friend-row__role {
  display: block;
  font-size: 11.5px;
  color: var(--ink-3);
  margin-top: 1px;
}

.friend-row__btn {
  width: 30px;
  height: 30px;
  flex: none;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--brand);
  background: var(--brand-soft);
  border: 1px solid var(--brand-soft-border);
  transition: background 0.15s var(--ease);
}

.friend-row__btn:hover {
  background: color-mix(in srgb, var(--brand-soft) 60%, var(--brand) 14%);
}

.friend-row__btn .icon { width: 15px; height: 15px; }

/* Busca */
.search {
  position: relative;
  display: flex;
  align-items: center;
}

.search .icon {
  position: absolute;
  left: 13px;
  width: 17px;
  height: 17px;
  color: var(--ink-4);
  pointer-events: none;
}

.search input {
  width: 100%;
  height: 40px;
  padding: 0 38px 0 38px;
  border-radius: var(--r-pill);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink);
  font-size: 14px;
  transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease);
}

.search input::placeholder { color: var(--ink-4); }

.search input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: var(--ring);
}

.search__clear {
  position: absolute;
  right: 8px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--ink-3);
}

.search__clear:hover { background: var(--surface-hover); color: var(--ink); }
.search__clear .icon { width: 14px; height: 14px; }

/* ── 22. Modais ────────────────────────────────────────────────────────── */

.modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: var(--overlay);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: fade-in 0.18s var(--ease);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.modal__panel {
  width: 100%;
  max-width: 520px;
  max-height: calc(100dvh - 32px);
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg);
  animation: modal-in 0.22s var(--ease);
  overflow: hidden;
}

.modal__panel--sm { max-width: 420px; }
.modal__panel--member-profile { max-width: 720px; }

.member-profile__head .avatar {
  flex: none;
}

.member-profile__head #member-profile-follow {
  flex: none;
}

.member-profile__body {
  gap: 16px;
}

.member-profile__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  color: var(--ink-3);
  font-size: 13px;
}

.member-profile__stats strong {
  color: var(--ink);
  font-size: 15px;
}

.member-profile__posts-title {
  padding-top: 4px;
  border-top: 1px solid var(--border);
  font-size: 15px;
}

.modal__head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--border);
  flex: none;
}

.modal__head h2 {
  font-size: 16.5px;
  font-weight: 750;
  letter-spacing: -0.02em;
}

.modal__head p {
  font-size: 12.5px;
  color: var(--ink-3);
  margin-top: 1px;
}

.modal__close {
  margin-left: auto;
  width: 32px;
  height: 32px;
  border-radius: var(--r-sm);
  display: grid;
  place-items: center;
  color: var(--ink-3);
  transition: background 0.15s var(--ease), color 0.15s var(--ease);
}

.modal__close:hover { background: var(--surface-hover); color: var(--ink); }

.modal__body {
  padding: 18px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.modal__foot {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  padding: 14px 18px;
  border-top: 1px solid var(--border);
  background: var(--surface-2);
  flex: none;
}

.modal__foot .btn--ghost { margin-right: auto; }

/* Compartilhar: prévia e opções */
.share-preview .share-embed { margin: 0; }

.share-preview .share-embed__media img { max-height: 220px; }

.share-options {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.share-option {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  padding: 9px 12px;
  text-align: left;
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink-2);
  transition: background 0.15s var(--ease), border-color 0.15s var(--ease);
}

.share-option:hover {
  background: var(--surface-hover);
  border-color: var(--border-strong);
}

.share-option__icon {
  width: 34px;
  height: 34px;
  flex: none;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--surface-sunken);
  color: var(--brand);
}

.share-option__icon--whatsapp {
  background: #e7f8ee;
  color: #128c4a;
}

[data-theme="dark"] .share-option__icon--whatsapp {
  background: rgba(37, 211, 102, 0.16);
  color: #4ade9e;
}

.share-option__icon .icon { width: 17px; height: 17px; }

.share-option__title {
  display: block;
  font-size: 13.5px;
  font-weight: 650;
  color: var(--ink);
}

.share-option__desc {
  display: block;
  font-size: 11.8px;
  color: var(--ink-3);
  margin-top: 1px;
}

.share-option > .icon:last-child { color: var(--ink-4); flex: none; }

/* Lightbox de imagem */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(4, 8, 16, 0.92);
  backdrop-filter: blur(4px);
  animation: fade-in 0.16s var(--ease);
}

.lightbox img {
  max-width: min(100%, 1100px);
  max-height: calc(100dvh - 40px);
  object-fit: contain;
  border-radius: var(--r-md);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}

.lightbox__close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.lightbox__close:hover { background: rgba(255, 255, 255, 0.22); }

/* Prévia de imagem no formulário */
.image-preview {
  position: relative;
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface-sunken);
}

.image-preview img {
  width: 100%;
  max-height: 240px;
  object-fit: cover;
}

.image-preview__remove {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background: rgba(12, 18, 28, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.image-preview__remove:hover { background: rgba(12, 18, 28, 0.9); }

.file-drop {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px;
  border-radius: var(--r-md);
  border: 1px dashed var(--border-strong);
  background: var(--surface-2);
  font-size: 13px;
  color: var(--ink-3);
  cursor: pointer;
  transition: border-color 0.15s var(--ease), background 0.15s var(--ease);
}

.file-drop:hover {
  border-color: var(--brand);
  background: var(--brand-soft);
  color: var(--ink-2);
}

.file-drop input { display: none; }

.file-drop .icon { color: var(--brand); }

/* Menu suspenso */
.menu-anchor {
  position: relative;
}

.menu {
  position: absolute;
  z-index: 60;
  min-width: 208px;
  padding: 6px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-lg);
  animation: modal-in 0.14s var(--ease);
}

.menu[data-align="right"] { right: 0; top: calc(100% + 6px); }
.menu[data-align="left"] { left: 0; top: calc(100% + 6px); }

.menu__item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 10px;
  border-radius: var(--r-xs);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-2);
  text-align: left;
  transition: background 0.13s var(--ease), color 0.13s var(--ease);
}

.menu__item:hover {
  background: var(--surface-hover);
  color: var(--ink);
  text-decoration: none;
}

.menu__item--danger { color: var(--danger); }
.menu__item--danger:hover { background: var(--danger-soft); color: var(--danger); }

.menu__item .icon { width: 16px; height: 16px; }

.menu__sep {
  height: 1px;
  background: var(--border);
  margin: 5px 4px;
}

/* ── 23. Toasts ────────────────────────────────────────────────────────── */

.toast-stack {
  position: fixed;
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 8px;
  left: 12px;
  right: 12px;
  bottom: calc(var(--mobile-nav-h) + env(safe-area-inset-bottom) + 78px);
  pointer-events: none;
}

@media (min-width: 1024px) {
  .toast-stack {
    left: auto;
    right: 24px;
    top: 24px;
    bottom: auto;
    width: 340px;
  }
}

.toast {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 11px 13px;
  border-radius: var(--r-md);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  font-size: 13.5px;
  font-weight: 550;
  color: var(--ink);
  animation: toast-in 0.24s var(--ease);
  pointer-events: auto;
}

.toast.is-leaving {
  animation: toast-out 0.2s var(--ease) forwards;
}

.toast .icon { margin-top: 1px; width: 17px; height: 17px; flex: none; }

.toast--success .icon { color: var(--success); }
.toast--error .icon { color: var(--danger); }
.toast--info .icon { color: var(--accent); }

.toast__text { flex: 1; min-width: 0; }

.toast__close {
  color: var(--ink-4);
  padding: 2px;
  border-radius: 4px;
  flex: none;
}

.toast__close:hover { color: var(--ink); }
.toast__close .icon { width: 14px; height: 14px; }

/* ── 24. Câmera ────────────────────────────────────────────────────────── */

.camera-stage {
  position: relative;
  aspect-ratio: 1;
  background: #000;
  overflow: hidden;
}

.camera-stage video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.camera-stage__mask {
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
}

.camera-stage__loading {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: rgba(8, 13, 23, 0.86);
  color: #fff;
  font-size: 13px;
}

.camera-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px;
}

.shutter {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  border: 4px solid rgba(255, 255, 255, 0.9);
  display: grid;
  place-items: center;
  background: transparent;
  transition: transform 0.14s var(--ease);
}

.shutter span {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--fire-gradient);
  display: block;
}

.shutter:hover { transform: scale(1.04); }
.shutter:active span { transform: scale(0.93); }

/* ── 25. Utilitários ───────────────────────────────────────────────────── */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 200;
  padding: 10px 16px;
  border-radius: var(--r-sm);
  background: var(--ink);
  color: var(--surface);
  font-weight: 650;
  font-size: 13.5px;
  transition: top 0.16s var(--ease);
}

.skip-link:focus {
  top: 12px;
  text-decoration: none;
}

.stack { display: flex; flex-direction: column; }
.stack--2 { gap: 8px; }
.stack--3 { gap: 12px; }
.stack--4 { gap: 16px; }
.stack--5 { gap: 20px; }

.row { display: flex; align-items: center; }
.row--between { justify-content: space-between; }
.row--wrap { flex-wrap: wrap; }
.row--2 { gap: 8px; }
.row--3 { gap: 12px; }

.grow { flex: 1; min-width: 0; }
.muted { color: var(--ink-3); }
.small { font-size: 12.5px; }
.center { text-align: center; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.divider { height: 1px; background: var(--border); }
.nowrap { white-space: nowrap; }

@media (min-width: 640px) {
  .only-sm { display: none !important; }
}

.text-gradient-fire {
  background: var(--fire-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ── 25b. Grade de duas colunas em formulários ─────────────────────────── */

.grid-2 {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
}

@media (min-width: 520px) {
  .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Coluna lateral + conteúdo (perfil) */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

@media (min-width: 900px) {
  .split { grid-template-columns: 288px minmax(0, 1fr); gap: 20px; }
}

/* ── 25c. Tela de abertura ─────────────────────────────────────────────── */

.boot {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  background: var(--bg);
  color: var(--ink-3);
  font-size: 13.5px;
  font-weight: 600;
  animation: fade-in 0.3s var(--ease) 0.28s both;
}

.boot img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  filter: drop-shadow(0 8px 22px rgba(239, 75, 18, 0.28));
}

.boot__spinner {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2.5px solid var(--border-strong);
  border-top-color: var(--brand);
  animation: spin 0.8s linear infinite;
}

.boot.is-done {
  animation: fade-in 0.22s var(--ease) reverse forwards;
}

/* ── 26. Animações ─────────────────────────────────────────────────────── */

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes shimmer {
  100% { transform: translateX(100%); }
}

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes modal-in {
  from { opacity: 0; transform: translateY(10px) scale(0.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

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

@keyframes toast-out {
  to { opacity: 0; transform: translateY(-6px); }
}

@keyframes pop {
  0% { transform: scale(1); }
  38% { transform: scale(1.32); }
  70% { transform: scale(0.94); }
  100% { transform: scale(1); }
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-in {
  animation: fade-up 0.3s var(--ease) both;
}

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

/* ── 27. Tema: transição suave ao alternar ─────────────────────────────── */

.theme-switch .icon-sun { display: none; }
.theme-switch .icon-moon { display: block; }

[data-theme="dark"] .theme-switch .icon-sun { display: block; }
[data-theme="dark"] .theme-switch .icon-moon { display: none; }
