:root {
  --bg: #0a0c14;
  --bg-soft: #10131f;
  --panel: #12162494;
  --panel-solid: #12162a;
  --border: #23283d;
  --text: #eef0f8;
  --text-dim: #9198b5;
  --text-faint: #5c6288;
  --violet: #7c5cff;
  --cyan: #00d4ff;
  --gradient: linear-gradient(135deg, var(--violet), var(--cyan));
  --gradient-soft: linear-gradient(135deg, rgba(124, 92, 255, 0.16), rgba(0, 212, 255, 0.10));
  --ig-gradient: linear-gradient(135deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  --radius: 14px;
  --shadow: 0 20px 60px -20px rgba(0, 0, 0, 0.6);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
}

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

/* ================= LOGIN ================= */
.login-page {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 24px;
}

.login-page::before,
.login-page::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.35;
  z-index: 0;
}

.login-page::before {
  width: 480px;
  height: 480px;
  background: var(--violet);
  top: -160px;
  left: -140px;
  animation: float1 12s ease-in-out infinite;
}

.login-page::after {
  width: 420px;
  height: 420px;
  background: var(--cyan);
  bottom: -160px;
  right: -120px;
  animation: float2 14s ease-in-out infinite;
}

@keyframes float1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(40px, 30px) scale(1.08); }
}

@keyframes float2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-30px, -20px) scale(1.05); }
}

.login-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(circle at 50% 40%, rgba(0,0,0,0.9), transparent 70%);
  z-index: 0;
}

.login-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 400px;
  background: rgba(18, 20, 34, 0.72);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 44px 38px 36px;
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
  animation: rise 0.5s ease;
}

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

.brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin-bottom: 30px;
  text-align: center;
}

.brand-mark {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 20px;
  color: #fff;
  box-shadow: 0 8px 24px -6px rgba(124, 92, 255, 0.55);
  margin-bottom: 8px;
}

img.brand-mark {
  display: block;
  width: 76px;
  height: 76px;
  border-radius: 18px;
  object-fit: cover;
  background: #01060f;
  box-shadow: 0 10px 28px -8px rgba(41, 140, 255, 0.55);
}

.brand-name {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.5px;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-tagline {
  font-size: 13px;
  color: var(--text-dim);
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-dim);
  margin-bottom: 7px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

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

.input-wrap svg {
  position: absolute;
  left: 14px;
  width: 17px;
  height: 17px;
  color: var(--text-faint);
  pointer-events: none;
}

.input-wrap input {
  width: 100%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 10px;
  padding: 12px 14px 12px 40px;
  font-size: 14.5px;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.input-wrap input:focus {
  border-color: var(--violet);
  box-shadow: 0 0 0 3px rgba(124, 92, 255, 0.18);
}

.btn-primary {
  width: 100%;
  border: none;
  border-radius: 10px;
  padding: 13px 16px;
  font-size: 14.5px;
  font-weight: 600;
  color: #fff;
  background: var(--gradient);
  cursor: pointer;
  margin-top: 6px;
  transition: transform 0.15s, box-shadow 0.15s, filter 0.15s;
  box-shadow: 0 10px 24px -8px rgba(124, 92, 255, 0.55);
}

.btn-primary:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.btn-primary:active {
  transform: translateY(0);
}

.form-errors {
  background: rgba(220, 38, 38, 0.1);
  border: 1px solid rgba(220, 38, 38, 0.35);
  color: #ff8f8f;
  font-size: 13px;
  border-radius: 10px;
  padding: 10px 14px;
  margin-bottom: 18px;
}

.login-footnote {
  text-align: center;
  color: var(--text-faint);
  font-size: 12px;
  margin-top: 24px;
}

.login-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px 14px;
  margin-top: 10px;
  font-size: 12px;
}

.login-links a {
  color: var(--text-dim);
}

.login-links a:hover {
  color: var(--text);
}

/* ================= PÁGINAS PÚBLICAS (privacidade, termos, exclusão) ================= */
.legal-page {
  max-width: 820px;
  margin: 0 auto;
  padding: 24px 20px 40px;
}

.legal-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px 24px;
  margin-bottom: 24px;
}

.legal-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.legal-brand img.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  box-shadow: none;
}

.legal-brand .brand-name {
  font-size: 18px;
}

.legal-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.legal-nav a {
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 13px;
  color: var(--text-dim);
  border: 1px solid transparent;
}

.legal-nav a:hover {
  color: var(--text);
}

.legal-nav a[aria-current="page"] {
  color: var(--text);
  border-color: var(--border);
  background: rgba(255, 255, 255, 0.04);
}

.legal-card {
  background: var(--panel-solid);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 36px 40px;
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--text-dim);
}

.legal-card h1 {
  margin: 0;
  font-size: 26px;
  color: var(--text);
}

.legal-card h2 {
  margin: 32px 0 10px;
  font-size: 17px;
  color: var(--text);
}

.legal-card h3 {
  margin: 20px 0 6px;
  font-size: 14.5px;
  color: var(--text);
}

.legal-card p {
  margin: 0 0 12px;
}

.legal-card ul,
.legal-card ol {
  margin: 0 0 12px;
  padding-left: 22px;
}

.legal-card li + li {
  margin-top: 6px;
}

.legal-card strong {
  color: var(--text);
}

.legal-card a {
  color: var(--cyan);
}

.legal-card code {
  font-size: 13px;
  padding: 1px 6px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  overflow-wrap: anywhere;
}

.legal-updated {
  font-size: 12.5px;
  color: var(--text-faint);
  margin: 6px 0 24px !important;
}

.legal-status {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 16px;
  margin-bottom: 22px;
  border-radius: 12px;
  border: 1px solid rgba(255, 107, 107, 0.35);
  background: rgba(255, 107, 107, 0.08);
}

.legal-status--ok {
  border-color: rgba(61, 220, 132, 0.35);
  background: rgba(61, 220, 132, 0.08);
}

.legal-footer {
  margin-top: 24px;
  text-align: center;
  font-size: 12px;
  color: var(--text-faint);
}

.legal-footer a {
  color: var(--text-dim);
}

@media (max-width: 640px) {
  .legal-page {
    padding: 16px 16px 32px;
  }

  .legal-card {
    padding: 24px 20px;
    font-size: 14px;
  }

  .legal-card h1 {
    font-size: 22px;
  }
}

/* ================= APP LAYOUT ================= */
.app {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: 240px;
  flex-shrink: 0;
  transition: width 0.2s ease, transform 0.25s ease;
  z-index: 30;
  background: var(--bg-soft);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 22px 22px 20px;
  border-bottom: 1px solid var(--border);
}

.sidebar-brand .brand-mark {
  width: 38px;
  height: 38px;
  font-size: 14px;
  border-radius: 10px;
  margin-bottom: 0;
}

.sidebar-brand .brand-name {
  font-size: 18px;
}

.sidebar-nav {
  flex: 1;
  padding: 18px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nav-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.6px;
  color: var(--text-faint);
  text-transform: uppercase;
  padding: 8px 12px 6px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--text-dim);
  font-size: 14px;
  font-weight: 500;
  position: relative;
  transition: background 0.15s, color 0.15s;
}

.nav-item svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.nav-item:hover {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

.nav-item.active {
  background: var(--gradient-soft);
  color: #fff;
}

.nav-item.active::before {
  content: '';
  position: absolute;
  left: -12px;
  top: 8px;
  bottom: 8px;
  width: 3px;
  border-radius: 4px;
  background: var(--gradient);
}

.sidebar-footer {
  border-top: 1px solid var(--border);
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
  color: #fff;
  flex-shrink: 0;
}

.sidebar-footer .user-info {
  flex: 1;
  min-width: 0;
}

.sidebar-footer .user-name {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-footer .user-role {
  font-size: 11.5px;
  color: var(--text-faint);
}

.logout-btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-faint);
  transition: background 0.15s, color 0.15s;
  flex-shrink: 0;
}

.logout-btn:hover {
  background: rgba(255, 60, 60, 0.12);
  color: #ff6b6b;
}

.logout-btn svg {
  width: 17px;
  height: 17px;
}

/* ---------- Main content ---------- */
.main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.topbar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 22px 32px;
  border-bottom: 1px solid var(--border);
}

.topbar-title {
  flex: 1;
  min-width: 0;
}

.topbar h1 {
  font-size: 20px;
  font-weight: 700;
  margin: 0;
}

.topbar p {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--text-dim);
}

.content {
  flex: 1;
  padding: 32px;
}

.messages {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
}

.messages li {
  background: var(--gradient-soft);
  border: 1px solid rgba(124, 92, 255, 0.3);
  color: var(--text);
  font-size: 13.5px;
  border-radius: 10px;
  padding: 12px 16px;
  margin-bottom: 10px;
}

/* ---------- Empty state / cards ---------- */
.empty-state {
  max-width: 460px;
  margin: 60px auto 0;
  text-align: center;
  background: var(--panel-solid);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 44px 36px;
  box-shadow: var(--shadow);
}

.empty-icon {
  width: 72px;
  height: 72px;
  border-radius: 20px;
  margin: 0 auto 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ig-gradient);
}

.empty-icon svg {
  width: 36px;
  height: 36px;
  color: #fff;
}

.empty-state h2 {
  font-size: 18px;
  margin: 0 0 10px;
}

.empty-state p {
  font-size: 13.5px;
  color: var(--text-dim);
  line-height: 1.6;
  margin: 0 0 26px;
}

.btn-instagram {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: none;
  border-radius: 10px;
  padding: 12px 22px;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  background: var(--ig-gradient);
  cursor: pointer;
  transition: transform 0.15s, filter 0.15s;
  box-shadow: 0 10px 24px -8px rgba(220, 39, 67, 0.5);
}

.btn-instagram:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.btn-instagram svg {
  width: 18px;
  height: 18px;
}

.card {
  background: var(--panel-solid);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #3ddc84;
  box-shadow: 0 0 0 3px rgba(61, 220, 132, 0.15);
  display: inline-block;
  flex-shrink: 0;
}

/* ---------- Account chip (topbar) ---------- */
.account-chip {
  position: relative;
}

.account-chip summary {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 10px 4px 4px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.02);
  cursor: pointer;
  user-select: none;
  transition: border-color 0.15s, background 0.15s;
}

.account-chip summary::-webkit-details-marker {
  display: none;
}

.account-chip--estatico summary {
  pointer-events: none;
}

.account-chip summary:hover,
.account-chip[open] summary {
  border-color: var(--text-faint);
  background: rgba(255, 255, 255, 0.04);
}

.account-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  padding: 2px;
  background: var(--ig-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.account-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--bg);
  display: block;
}

.account-avatar--fallback svg {
  width: 15px;
  height: 15px;
  color: #fff;
}

.account-meta {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.account-handle {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text);
}

.account-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--text-faint);
}

.account-caret {
  width: 14px;
  height: 14px;
  color: var(--text-faint);
  transition: transform 0.15s;
}

.account-chip[open] .account-caret {
  transform: rotate(180deg);
}

.account-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 190px;
  background: var(--panel-solid);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 6px;
  box-shadow: var(--shadow);
  z-index: 20;
}

.account-menu form {
  margin: 0;
}

.status-dot--off {
  background: var(--text-faint);
  box-shadow: 0 0 0 3px rgba(92, 98, 136, 0.18);
}

/* Lista de contas da pessoa: trocar, desconectar e adicionar. */
.contas-menu {
  width: 290px;
  max-width: calc(100vw - 32px);
}

.contas-menu-titulo {
  margin: 4px 8px 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.contas-lista {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: min(320px, 60vh);
  overflow-y: auto;
}

.conta-linha {
  display: flex;
  align-items: center;
  gap: 4px;
  border-radius: 10px;
}

.conta-linha:hover,
.conta-linha.is-atual {
  background: rgba(255, 255, 255, 0.04);
}

.conta-trocar {
  flex: 1;
  min-width: 0;
}

.conta-trocar button {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  background: none;
  border: none;
  color: var(--text);
  padding: 8px;
  border-radius: 10px;
  cursor: pointer;
  font: inherit;
}

.conta-linha.is-atual .conta-trocar button {
  cursor: default;
}

.conta-trocar .account-avatar {
  width: 32px;
  height: 32px;
}

.conta-texto {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
  line-height: 1.3;
}

.conta-nome {
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.conta-papel {
  font-size: 11px;
  color: var(--text-faint);
}

.conta-check {
  width: 15px;
  height: 15px;
  color: var(--cyan);
  flex-shrink: 0;
}

.conta-desconectar {
  flex-shrink: 0;
  margin-right: 4px !important;
}

.conta-desconectar button {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  border-radius: 8px;
  color: var(--text-faint);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.conta-desconectar button:hover,
.conta-desconectar button:focus-visible {
  background: rgba(255, 60, 60, 0.12);
  color: #ff6b6b;
}

.conta-desconectar svg {
  width: 15px;
  height: 15px;
}

.conta-adicionar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
  padding: 10px 8px;
  border-top: 1px solid var(--border);
  border-radius: 0 0 8px 8px;
  color: var(--text-dim);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.15s, background 0.15s;
}

.conta-adicionar--so {
  margin-top: 0;
  border-top: none;
  border-radius: 8px;
}

.conta-adicionar:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.conta-adicionar svg {
  width: 32px;
  height: 16px;
  color: var(--cyan);
}

/* ---------- Dashboard ---------- */
.dash {
  max-width: 1000px;
  margin: 0 auto;
}

.dash-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.dash-head .section-title {
  margin: 0;
}

.dash-head-title {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.dash-head-hint {
  font-size: 12px;
  color: var(--text-faint);
}

.followers-total {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: var(--text-faint);
}

.followers-total strong {
  color: var(--text-dim);
  font-weight: 600;
}

.followers-total svg {
  width: 14px;
  height: 14px;
}

/* ---------- Perfil do Instagram no topo do dashboard ---------- */
.profile-hero {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-bottom: 30px;
}

.profile-hero-avatar {
  position: relative;
  flex-shrink: 0;
  width: 116px;
  height: 116px;
  padding: 4px;
  border-radius: 50%;
  background: var(--gradient);
  box-shadow: 0 0 28px -4px rgba(0, 212, 255, 0.45), 0 0 44px -10px rgba(124, 92, 255, 0.6);
}

.profile-hero-avatar img,
.profile-hero-fallback {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 3px solid var(--bg);
  object-fit: cover;
  background: var(--bg-soft);
}

.profile-hero-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
}

.profile-hero-fallback svg {
  width: 40%;
  height: 40%;
}

.profile-hero-dot {
  position: absolute;
  right: 9px;
  bottom: 9px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #3ddc84;
  border: 3px solid var(--bg);
}

.profile-hero-info {
  min-width: 0;
}

.profile-hero-name {
  margin: 0;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.3px;
  line-height: 1.15;
  color: var(--text);
  overflow-wrap: anywhere;
}

.profile-hero-handle {
  display: inline-block;
  margin-top: 4px;
  font-size: 15px;
  font-weight: 600;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.profile-hero-handle:hover {
  filter: brightness(1.2);
}

.profile-hero-stats {
  display: flex;
  gap: 34px;
  margin: 16px 0 0;
}

.profile-hero-stats div {
  display: flex;
  flex-direction: column-reverse;
}

.profile-hero-stats dd {
  margin: 0;
  font-size: 21px;
  font-weight: 700;
  color: var(--text);
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}

.profile-hero-stats dt {
  margin-top: 2px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--text-faint);
}

@media (max-width: 520px) {
  .profile-hero {
    gap: 16px;
    margin-bottom: 24px;
  }

  .profile-hero-avatar {
    width: 84px;
    height: 84px;
    padding: 3px;
  }

  .profile-hero-avatar img,
  .profile-hero-fallback {
    border-width: 2px;
  }

  .profile-hero-dot {
    right: 5px;
    bottom: 5px;
    width: 13px;
    height: 13px;
  }

  .profile-hero-name {
    font-size: 20px;
  }

  .profile-hero-handle {
    font-size: 13.5px;
  }

  .profile-hero-stats {
    gap: 20px;
    margin-top: 10px;
  }

  .profile-hero-stats dd {
    font-size: 17px;
  }

  .profile-hero-stats dt {
    font-size: 10px;
    letter-spacing: 0.5px;
  }
}

.period-filter {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 0;
}

.period-filter select,
.period-filter input[type="date"] {
  appearance: none;
  -webkit-appearance: none;
  background-color: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  color: var(--text-dim);
  border-radius: 999px;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 500;
  padding: 6px 12px;
  outline: none;
  cursor: pointer;
  color-scheme: dark;
  transition: border-color 0.15s, color 0.15s;
}

.period-filter select {
  padding-right: 30px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239198b5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 13px;
}

.period-filter select option {
  background: var(--panel-solid);
  color: var(--text);
}

.period-filter select:hover,
.period-filter input[type="date"]:hover,
.period-filter select:focus,
.period-filter input[type="date"]:focus {
  border-color: var(--text-faint);
  color: var(--text);
}

.period-range {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.period-sep {
  font-size: 12px;
  color: var(--text-faint);
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 16px;
}

.stat-card {
  --accent: var(--violet);
  --accent-soft: rgba(124, 92, 255, 0.14);
  position: relative;
  overflow: hidden;
  background: var(--panel-solid);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px 20px 16px;
  transition: border-color 0.2s, transform 0.2s;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.08;
  filter: blur(30px);
  pointer-events: none;
}

.stat-card:hover {
  border-color: var(--text-faint);
  transform: translateY(-2px);
}

.stat-card--likes {
  --accent: #f5426f;
  --accent-soft: rgba(245, 66, 111, 0.14);
}

.stat-card--views {
  --accent: #f5a524;
  --accent-soft: rgba(245, 165, 36, 0.14);
}

.stat-card--comments {
  --accent: var(--cyan);
  --accent-soft: rgba(0, 212, 255, 0.12);
}

.stat-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.stat-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.stat-icon svg {
  width: 14px;
  height: 14px;
}

.stat-label {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-dim);
}

.stat-value {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.5px;
  line-height: 1.1;
  color: var(--text);
}

.stat-value.is-up {
  color: #3ddc84;
}

.stat-value.is-down {
  color: #ff6b6b;
}

.stat-value--muted {
  color: var(--text-faint);
}

.stat-period {
  font-size: 12px;
  color: var(--text-faint);
  margin-top: 8px;
}

.stat-compare {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  margin-top: 8px;
  font-size: 12px;
}

.stat-compare-pill {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 8px 2px 6px;
  border-radius: 999px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.stat-compare-pill svg {
  width: 12px;
  height: 12px;
}

.stat-compare--up .stat-compare-pill {
  color: #3ddc84;
  background: rgba(61, 220, 132, 0.12);
}

.stat-compare--down .stat-compare-pill {
  color: #ff6b6b;
  background: rgba(255, 107, 107, 0.12);
}

.stat-compare--equal .stat-compare-pill {
  color: var(--text-dim);
  background: rgba(255, 255, 255, 0.06);
}

.stat-compare-label {
  color: var(--text-faint);
  white-space: nowrap;
}

.section-title {
  font-size: 15px;
  font-weight: 700;
  margin: 0 0 16px;
}

/* ---------- Gráficos de barras ---------- */
.chart-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 40px;
}

.chart-card {
  --bar: var(--violet);
  background: var(--panel-solid);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px 20px 14px;
  min-width: 0;
}

.chart-card--curtidas {
  --bar: #f5426f;
}

.chart-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.chart-title {
  margin: 0;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text);
}

.chart-sub {
  font-size: 12px;
  color: var(--text-faint);
}

@media (max-width: 520px) {
  .chart-head {
    flex-wrap: wrap;
    gap: 2px 12px;
  }

  .chart-title {
    white-space: nowrap;
  }
}

.chart-empty {
  margin: 0;
  min-height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 24px;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--text-faint);
}

.chart-plot {
  position: relative;
  height: 180px;
  margin-left: 40px;
}

.chart-gridline {
  position: absolute;
  left: 0;
  right: 0;
  height: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.chart-gridline.is-zero {
  border-top-color: rgba(255, 255, 255, 0.16);
}

.chart-tick {
  position: absolute;
  right: calc(100% + 8px);
  top: -7px;
  font-size: 11px;
  line-height: 14px;
  color: var(--text-faint);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.chart-bars {
  position: absolute;
  inset: 0;
  display: flex;
}

.chart-slot {
  position: relative;
  flex: 1;
  min-width: 0;
  border-radius: 6px;
  outline: none;
}

.chart-slot:hover,
.chart-slot:focus-visible {
  background: rgba(255, 255, 255, 0.035);
}

.chart-bar {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: min(24px, 62%);
  background: var(--bar);
  border-radius: 4px 4px 0 0;
}

.chart-bar.is-neg {
  border-radius: 0 0 4px 4px;
}

.chart-tip {
  display: none;
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  flex-direction: column;
  gap: 2px;
  min-width: 120px;
  padding: 8px 10px;
  background: #1b2036;
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: var(--shadow);
  font-size: 12px;
  color: var(--text-dim);
  white-space: nowrap;
  pointer-events: none;
}

.chart-tip strong {
  color: var(--text);
  font-weight: 600;
}

.chart-tip-title {
  color: var(--text-faint);
  font-size: 11px;
}

.chart-tip-note {
  color: var(--text-faint);
  font-size: 11px;
}

.chart-slot:first-child .chart-tip {
  left: 0;
  transform: none;
}

.chart-slot:last-child .chart-tip {
  left: auto;
  right: 0;
  transform: none;
}

.chart-slot:hover .chart-tip,
.chart-slot:focus-visible .chart-tip {
  display: flex;
}

.chart-xaxis {
  display: flex;
  margin: 8px 0 0 40px;
}

.chart-xaxis span {
  flex: 1;
  min-width: 0;
  text-align: center;
  font-size: 11px;
  color: var(--text-faint);
  white-space: nowrap;
}

@media (max-width: 640px) {
  .chart-xaxis span.so-desktop {
    visibility: hidden;
  }
}

@media (max-width: 1100px) {
  .stat-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

@media (max-width: 520px) {
  .stat-grid {
    gap: 10px;
  }

  .stat-card {
    padding: 14px 14px 12px;
  }

  .stat-card:hover {
    transform: none;
  }

  .stat-top {
    gap: 8px;
    margin-bottom: 10px;
  }

  .stat-icon {
    width: 24px;
    height: 24px;
    border-radius: 7px;
  }

  .stat-icon svg {
    width: 12px;
    height: 12px;
  }

  .stat-label {
    font-size: 12px;
  }

  .stat-value {
    font-size: 22px;
  }

  .stat-compare {
    font-size: 11px;
    gap: 4px 6px;
  }

  .stat-compare-label {
    white-space: normal;
  }
}

.media-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

@media (max-width: 1100px) {
  .media-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 860px) {
  .media-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
}

.media-notice {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: -4px 0 14px;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--text-dim);
}

.media-notice svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--text-faint);
}

.media-card {
  display: block;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: var(--panel-solid);
  transition: transform 0.15s, border-color 0.15s;
}

.media-card:hover {
  transform: translateY(-2px);
  border-color: var(--text-faint);
}

.media-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  background-size: cover;
  background-position: center;
  background-color: var(--bg-soft);
}

.media-type {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 24px;
  height: 24px;
  border-radius: 7px;
  background: rgba(10, 12, 20, 0.6);
  backdrop-filter: blur(6px);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.media-type svg {
  width: 13px;
  height: 13px;
}

.media-stats {
  display: flex;
  flex-wrap: nowrap;
  gap: 12px;
  padding: 10px 12px;
  font-size: 12px;
  color: var(--text-dim);
  font-variant-numeric: tabular-nums;
}

.media-stats span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.media-stats svg {
  width: 13px;
  height: 13px;
  color: var(--text-faint);
}

@media (max-width: 860px) {
  .media-stats {
    gap: 8px;
    padding: 8px 10px;
    font-size: 11.5px;
  }

  .media-stats span {
    gap: 3px;
  }

  .media-stats svg {
    width: 12px;
    height: 12px;
  }
}

@media (max-width: 520px) {
  .media-stats {
    justify-content: space-between;
    gap: 4px;
    padding: 7px 8px;
    font-size: 11px;
  }

  .media-stats span {
    gap: 2px;
  }

  .media-stats svg {
    width: 11px;
    height: 11px;
  }

  .media-type {
    top: 6px;
    right: 6px;
    width: 22px;
    height: 22px;
  }
}

/* ---------- Público ---------- */
.aud-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 14px;
}

.aud-card {
  min-width: 0;
  padding: 18px 20px;
  background: var(--panel-solid);
  border: 1px solid var(--border);
  border-radius: 14px;
}

.aud-title {
  min-height: 28px;
  display: flex;
  align-items: center;
  margin: 0 0 12px;
  font-size: 13.5px;
  font-weight: 600;
}

.aud-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.aud-head .aud-title {
  margin: 0;
}

.segmented {
  display: inline-flex;
  padding: 2px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.02);
}

.segmented-btn {
  padding: 4px 10px;
  border: none;
  border-radius: 999px;
  background: none;
  color: var(--text-faint);
  font-family: inherit;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.segmented-btn:hover {
  color: var(--text);
}

.segmented-btn[aria-pressed="true"] {
  background: rgba(124, 92, 255, 0.18);
  color: var(--text);
}

.aud-empty {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--text-faint);
}

.aud-count {
  font-size: 11.5px;
  color: var(--text-faint);
  font-variant-numeric: tabular-nums;
}

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

.hbar-label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
  font-size: 13px;
}

.hbar-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--text-dim);
}

.hbar-value {
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}

.hbar-value strong {
  font-weight: 600;
  color: var(--text);
}

.hbar-track {
  height: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.05);
  overflow: hidden;
}

.hbar-fill {
  height: 100%;
  border-radius: 3px;
  background: var(--violet);
}

.gender-bar {
  display: flex;
  gap: 2px;
  height: 12px;
  margin-bottom: 18px;
  border-radius: 6px;
  overflow: hidden;
}

.gender-seg--f {
  background: #f5426f;
}

.gender-seg--m {
  background: #3b82f6;
}

.gender-seg--u {
  background: #5c6288;
}

.gender-legend {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.gender-legend li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
}

.gender-swatch {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  flex-shrink: 0;
}

.gender-name {
  flex: 1;
  color: var(--text-dim);
}

.gender-legend strong {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

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

/* ---------- Usuários ---------- */
.access-legend {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  font-size: 12.5px;
  color: var(--text-faint);
}

.access-legend li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.role-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 600;
  white-space: nowrap;
}

.role-badge--admin {
  background: rgba(124, 92, 255, 0.18);
  color: #b9a8ff;
}

.role-badge--editor {
  background: rgba(0, 212, 255, 0.14);
  color: #7fe6ff;
}

.role-badge--visualizador {
  background: rgba(255, 255, 255, 0.07);
  color: var(--text-dim);
}

.user-list {
  list-style: none;
  margin: 0;
  padding: 0;
  background: var(--panel-solid);
  border: 1px solid var(--border);
  border-radius: 14px;
}

.user-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
}

.user-row + .user-row {
  border-top: 1px solid var(--border);
}

.user-row-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.user-row-name {
  font-size: 14px;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.user-row-you {
  margin-left: 6px;
  font-size: 11px;
  font-weight: 500;
  color: var(--text-faint);
}

.user-row-login {
  font-size: 12px;
  color: var(--text-faint);
}

.icon-btn-placeholder {
  width: 28px;
  flex-shrink: 0;
}

.role-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.role-option {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 12.5px;
  color: var(--text-faint);
  cursor: pointer;
}

.role-option:has(input:checked) {
  border-color: var(--violet);
  background: rgba(124, 92, 255, 0.08);
}

.role-option input {
  margin-top: 2px;
  accent-color: var(--violet);
}

.role-option span {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.role-option strong {
  font-size: 13px;
  color: var(--text);
}

.field-error {
  margin: 0;
  font-size: 12px;
  color: #ff8f8f;
}

/* ---------- Campos e botões compartilhados ---------- */
.field {
  width: 100%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 10px;
  padding: 10px 12px;
  font-family: inherit;
  font-size: 13.5px;
  outline: none;
  color-scheme: dark;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.field::placeholder {
  color: var(--text-faint);
}

.field:focus {
  border-color: var(--violet);
  box-shadow: 0 0 0 3px rgba(124, 92, 255, 0.18);
}

.btn-sm {
  width: auto;
  margin-top: 0;
  padding: 10px 16px;
  font-size: 13px;
  box-shadow: none;
  white-space: nowrap;
}

.icon-btn {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  border: none;
  background: none;
  color: var(--text-faint);
  border-radius: 7px;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.icon-btn:hover {
  background: rgba(255, 60, 60, 0.1);
  color: #ff6b6b;
}

.icon-btn--neutral:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

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

/* ---------- Programação (calendário) ---------- */
.agenda {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 16px;
  align-items: start;
  max-width: 1200px;
  margin: 0 auto;
}

.cal {
  background: var(--panel-solid);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px;
}

.cal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.cal-title {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
}

.cal-nav {
  display: flex;
  gap: 6px;
}

.cal-btn {
  height: 32px;
  min-width: 32px;
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-dim);
  transition: border-color 0.15s, color 0.15s;
}

.cal-btn:hover {
  border-color: var(--text-faint);
  color: var(--text);
}

.cal-btn svg {
  width: 16px;
  height: 16px;
}

.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
}

.cal-weekday {
  padding: 2px 0 8px;
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: var(--text-faint);
}

.cal-day {
  min-height: 98px;
  min-width: 0;
  padding: 6px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.015);
  display: flex;
  flex-direction: column;
  gap: 3px;
  color: var(--text);
  transition: background 0.15s, border-color 0.15s;
}

.cal-day:hover {
  background: rgba(255, 255, 255, 0.035);
  border-color: var(--border);
}

.cal-day.is-outside {
  opacity: 0.35;
}

.cal-day.is-selected {
  border-color: var(--violet);
  background: rgba(124, 92, 255, 0.08);
}

.cal-num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 12.5px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.cal-day.is-today .cal-num {
  background: var(--gradient);
  color: #fff;
}

.cal-chip {
  padding: 2px 6px;
  border-radius: 5px;
  background: rgba(124, 92, 255, 0.16);
  font-size: 11px;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cal-chip.is-done {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-faint);
  text-decoration: line-through;
}

.cal-more {
  padding-left: 2px;
  font-size: 10.5px;
  color: var(--text-faint);
}

.cal-dot {
  display: none;
}

.day-panel {
  position: sticky;
  top: 20px;
}

.day-title {
  margin: 4px 2px 12px;
  font-size: 15px;
  font-weight: 700;
}

.day-list {
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Cada item é um card inteiro na cor escolhida, clicável em qualquer lugar. */
.day-item {
  position: relative;
  overflow: hidden;
  padding: 12px;
  border: 1px solid var(--cor, #7c5cff);
  border-radius: 12px;
  background: color-mix(in srgb, var(--cor, #7c5cff) 7%, var(--panel-solid));
  cursor: pointer;
  transition: background 0.3s, box-shadow 0.15s, border-color 0.3s;
}

@media (hover: hover) {
  .day-item:hover {
    background: color-mix(in srgb, var(--cor, #7c5cff) 12%, var(--panel-solid));
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--cor, #7c5cff) 18%, transparent);
  }
}

.day-item.is-done {
  border-color: color-mix(in srgb, var(--cor, #7c5cff) 45%, transparent);
  background: color-mix(in srgb, var(--cor, #7c5cff) 3%, var(--panel-solid));
}

.day-item:has(.day-item-body:focus-visible) {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

.day-item-body:focus-visible {
  outline: none;
}

.day-item form {
  margin: 0;
  display: flex;
}

.day-item-rodape {
  margin-top: 12px;
}

.day-item-rodape form {
  display: block;
}

.finalizar-btn {
  position: relative;
  z-index: 1;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 14px;
  border: 1px solid color-mix(in srgb, var(--cor, #7c5cff) 35%, var(--border));
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-dim);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.25s, color 0.25s, background 0.25s;
}

.finalizar-icone {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
}

.finalizar-icone circle {
  transition: fill 0.25s;
}

/* O ✓ se desenha quando marca e some quando desmarca. */
.finalizar-check {
  stroke-dasharray: 14;
  stroke-dashoffset: 14;
  transition: stroke-dashoffset 0.35s ease 0.05s;
}

.finalizar-btn.is-ativo .finalizar-check {
  stroke-dashoffset: 0;
}

.finalizar-btn.is-ativo .finalizar-icone circle {
  fill: rgba(61, 220, 132, 0.18);
}

.finalizar-btn.is-animando {
  animation: finalizar-pulo 0.4s ease-out;
}

@keyframes finalizar-pulo {
  0% { transform: scale(1); }
  35% { transform: scale(0.96); }
  70% { transform: scale(1.03); }
  100% { transform: scale(1); }
}

/* Onda verde que sai do botão e cobre o card ao finalizar. */
.finalizar-onda {
  position: absolute;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(61, 220, 132, 0.34) 0%, rgba(61, 220, 132, 0.18) 55%, rgba(61, 220, 132, 0) 72%);
  pointer-events: none;
  animation: finalizar-onda 0.7s ease-out forwards;
}

@keyframes finalizar-onda {
  0% { transform: scale(0); opacity: 1; }
  60% { opacity: 1; }
  100% { transform: scale(var(--escala, 30)); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .finalizar-check,
  .finalizar-btn {
    transition: none;
  }
}

.finalizar-btn:hover,
.finalizar-btn:focus-visible {
  border-color: rgba(61, 220, 132, 0.55);
  color: #3ddc84;
}

.finalizar-btn.is-ativo {
  border-color: rgba(61, 220, 132, 0.45);
  background: rgba(61, 220, 132, 0.14);
  color: #3ddc84;
}

.finalizar-btn.is-estatico {
  cursor: inherit;
}

.day-item-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.day-item-title {
  font-size: 13.5px;
  overflow-wrap: anywhere;
}

.day-item.is-done .day-item-title {
  color: var(--text-faint);
  text-decoration: line-through;
}

.day-empty {
  margin: 0 0 16px;
  font-size: 13px;
  color: var(--text-faint);
}

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

  .day-panel {
    position: static;
  }
}

@media (max-width: 640px) {
  .cal {
    padding: 14px 10px;
  }

  .cal-grid {
    gap: 2px;
  }

  .cal-day {
    min-height: 46px;
    padding: 4px 2px;
    align-items: center;
  }

  .cal-chip,
  .cal-more {
    display: none;
  }

  .cal-dot {
    display: block;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--cor, var(--violet));
  }
}

/* ---------- Tarefas (quadro) ---------- */
.board {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 12px;
}

.board-list {
  --cor-lista: var(--violet);
  position: relative;
  flex: 0 0 280px;
  max-height: calc(100vh - 190px);
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px;
  background: var(--panel-solid);
  border: 1px solid var(--border);
  border-radius: 14px;
}

.board-list::before {
  content: '';
  position: absolute;
  top: -1px;
  left: -1px;
  right: -1px;
  height: 4px;
  border-radius: 14px 14px 0 0;
  background: var(--cor-lista);
}

.board-list.is-dragging {
  opacity: 0.45;
}

.board-list--new {
  flex-basis: 220px;
  background: transparent;
  border-style: dashed;
}

.board-list--new::before {
  display: none;
}

.board-list form {
  margin: 0;
}

.board-list-head {
  display: flex;
  align-items: center;
  gap: 8px;
}

.board-list-name {
  flex: 1;
  min-width: 0;
}

.board-list-title {
  width: 100%;
  padding: 4px 6px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: var(--text);
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 600;
  outline: none;
}

.board-list-title:hover {
  background: rgba(255, 255, 255, 0.04);
}

.board-list-title:focus {
  border-color: var(--violet);
  background: rgba(255, 255, 255, 0.03);
}

.board-count {
  min-width: 22px;
  padding: 1px 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  font-size: 11.5px;
  font-weight: 600;
  text-align: center;
  color: var(--text-dim);
  font-variant-numeric: tabular-nums;
}

.board-cards {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 8px;
  overflow-y: auto;
}

.board-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 10px 6px 10px 12px;
  overflow: hidden;
  background: #1a1f36;
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: grab;
  transition: border-color 0.15s;
}

.board-card:hover {
  border-color: var(--text-faint);
}

.board-card--leitura {
  cursor: pointer;
}

span.board-list-title {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

span.board-list-title:hover {
  background: transparent;
}

.board-card.is-dragging {
  opacity: 0.35;
  border-style: dashed;
}

.board-card-title {
  flex: 1;
  min-width: 0;
  padding-top: 2px;
  font-size: 13.5px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.board-add-btn {
  width: 100%;
  padding: 9px 12px;
  border: 1px dashed var(--border);
  border-radius: 10px;
  background: transparent;
  color: var(--text-faint);
  font-family: inherit;
  font-size: 13px;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}

.board-add-btn:hover {
  border-color: var(--text-faint);
  color: var(--text);
}

.board-grip {
  width: 16px;
  height: 24px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  color: var(--text-faint);
  cursor: grab;
}

.board-grip:hover {
  color: var(--text);
}

.board-grip svg {
  width: 14px;
  height: 14px;
}

.board-card-cover {
  display: block;
  width: calc(100% + 18px);
  margin: -10px -6px 8px -12px;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 9px 9px 0 0;
  background: var(--bg-soft);
}

.board-card-cover--video {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--text-dim);
  font-size: 12px;
}

.board-card-cover--video svg {
  width: 18px;
  height: 18px;
}

.board-card-caption {
  margin: 4px 0 0;
  font-size: 12px;
  line-height: 1.45;
  color: var(--text-faint);
  white-space: pre-line;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ---------- Janelas (modal) ---------- */
.modal {
  width: min(520px, calc(100vw - 32px));
  max-height: calc(100vh - 48px);
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--panel-solid);
  color: var(--text);
  box-shadow: var(--shadow);
}

.modal::backdrop {
  background: rgba(5, 6, 12, 0.7);
  backdrop-filter: blur(3px);
}

.modal-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px 22px;
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.modal-head h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
}

.modal-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.modal-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.modal-foot-actions {
  display: flex;
  gap: 8px;
  margin-left: auto;
}

.field-label {
  margin-top: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-dim);
}

.field-hint {
  margin: 0;
  font-size: 11.5px;
  color: var(--text-faint);
}

textarea.field {
  resize: vertical;
  min-height: 96px;
  line-height: 1.5;
}

.field-file {
  padding: 8px;
  font-size: 12.5px;
  color: var(--text-dim);
}

.field-file::file-selector-button {
  margin-right: 10px;
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  font-family: inherit;
  cursor: pointer;
}

.midia-preview img,
.midia-preview video {
  display: block;
  width: 100%;
  max-height: 260px;
  object-fit: contain;
  border-radius: 10px;
  background: var(--bg-soft);
}

.check-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--text-dim);
}

.swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.swatch {
  position: relative;
  cursor: pointer;
}

.swatch input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.swatch span {
  display: block;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid transparent;
  box-shadow: 0 0 0 2px var(--panel-solid) inset;
}

.swatch input:checked + span {
  border-color: var(--text);
}

.swatch input:focus-visible + span {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

.btn-ghost {
  padding: 9px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: transparent;
  color: var(--text-dim);
  font-family: inherit;
  font-size: 13px;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}

.btn-ghost:hover:not(:disabled) {
  border-color: var(--text-faint);
  color: var(--text);
}

.btn-ghost:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.btn-text-danger {
  padding: 8px 0;
  border: none;
  background: none;
  color: #ff6b6b;
  font-family: inherit;
  font-size: 13px;
  cursor: pointer;
}

.btn-text-danger:hover {
  text-decoration: underline;
}

/* ---------- Menu lateral: recolher no computador, abrir por cima no celular ---------- */
.menu-btn,
.sidebar-close {
  display: none;
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  cursor: pointer;
}

.menu-btn svg,
.sidebar-close svg {
  width: 20px;
  height: 20px;
}

.sidebar-close {
  margin-left: auto;
  border: none;
  background: none;
  color: var(--text-dim);
}

.sidebar-toggle {
  position: absolute;
  top: 29px;
  right: -13px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-soft);
  color: var(--text-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
  transition: color 0.15s, border-color 0.15s, transform 0.2s;
}

.sidebar-toggle:hover {
  color: var(--text);
  border-color: var(--text-faint);
}

.sidebar-toggle svg {
  width: 14px;
  height: 14px;
}

.sidebar-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(3, 5, 12, 0.6);
  backdrop-filter: blur(2px);
}

@media (min-width: 861px) {
  .menu-recolhido .sidebar {
    width: 76px;
  }

  .menu-recolhido .sidebar-toggle {
    transform: rotate(180deg);
  }

  .menu-recolhido .sidebar-brand .brand-name,
  .menu-recolhido .nav-item span,
  .menu-recolhido .nav-label,
  .menu-recolhido .sidebar-footer .user-info {
    display: none;
  }

  .menu-recolhido .sidebar-brand,
  .menu-recolhido .nav-item {
    justify-content: center;
  }

  .menu-recolhido .sidebar-brand {
    padding-left: 0;
    padding-right: 0;
  }

  .menu-recolhido .sidebar-footer {
    flex-direction: column;
    padding: 14px 0;
  }
}

@media (max-width: 860px) {
  .menu-btn,
  .sidebar-close {
    display: flex;
  }

  .sidebar-toggle {
    display: none;
  }

  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    height: 100vh;
    height: 100dvh;
    width: min(280px, 84vw);
    z-index: 60;
    transform: translateX(-100%);
    box-shadow: none;
  }

  .menu-aberto .sidebar {
    transform: none;
    box-shadow: 0 0 60px rgba(0, 0, 0, 0.6);
  }

  .menu-aberto body {
    overflow: hidden;
  }

  .sidebar-nav {
    overflow-y: auto;
  }

  .nav-item {
    padding: 12px;
    font-size: 15px;
  }

  .topbar {
    position: sticky;
    top: 0;
    z-index: 40;
    padding: 12px 16px;
    background: rgba(10, 12, 20, 0.88);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }

  .topbar h1 {
    font-size: 18px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .topbar p {
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .content {
    padding: 18px 16px 32px;
  }

  .account-meta {
    display: none;
  }
}

@media (max-width: 860px) {
  .board {
    margin: 0 -16px;
    padding: 0 16px 12px;
    scroll-snap-type: x mandatory;
    scroll-padding: 0 16px;
    -webkit-overflow-scrolling: touch;
  }

  .board-list {
    flex-basis: min(300px, 82vw);
    max-height: calc(100dvh - 150px);
    scroll-snap-align: start;
  }

  .board-list--new {
    flex-basis: min(240px, 70vw);
  }
}

/* No iPhone, campo com letra menor que 16px faz a página dar zoom ao tocar. */
@supports (-webkit-touch-callout: none) {
  @media (max-width: 860px) {
    input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
    select,
    textarea {
      font-size: 16px !important;
    }
  }
}

/* ---------- Programação: cor de cada item e edição ---------- */
.cal-chip {
  background: color-mix(in srgb, var(--cor, #7c5cff) 22%, transparent);
  box-shadow: inset 2px 0 0 var(--cor, #7c5cff);
}

.cal-chip.is-done {
  box-shadow: inset 2px 0 0 color-mix(in srgb, var(--cor, #7c5cff) 45%, transparent);
}

.day-item-body {
  width: 100%;
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 8px;
  padding: 0;
  border: none;
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
}

button.day-item-body {
  cursor: pointer;
}

.day-item-body .day-item-text {
  flex: 1;
  gap: 3px;
}

.day-item-caption {
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--text-dim);
  white-space: pre-line;
  overflow-wrap: anywhere;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.day-item-lapis {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  margin-top: 3px;
  color: var(--text-faint);
  opacity: 0.6;
  transition: opacity 0.15s, color 0.15s;
}

.day-item:hover .day-item-lapis,
.day-item-body:focus-visible .day-item-lapis {
  opacity: 1;
  color: var(--text);
}

.day-add-btn {
  margin-top: 4px;
}

/* ---------- Tarefas: prioridade do cartão ---------- */
.board-prio {
  --prio: #3ddc84;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 5px;
  padding: 1px 7px 1px 6px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--prio) 12%, transparent);
  color: var(--prio);
  font-size: 10.5px;
  font-weight: 600;
  line-height: 1.6;
}

.board-prio::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--prio);
}

.board-prio--medio {
  --prio: #f5a524;
}

.board-prio--urgente {
  --prio: #ff6b6b;
}

.prio-options {
  display: flex;
  gap: 8px;
}

.prio-option {
  --prio: #3ddc84;
  flex: 1;
  position: relative;
  cursor: pointer;
}

.prio-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.prio-option span {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text-dim);
  font-size: 13px;
  font-weight: 500;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}

.prio-option span::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--prio);
}

.prio-option--medio {
  --prio: #f5a524;
}

.prio-option--urgente {
  --prio: #ff6b6b;
}

.prio-option input:checked + span {
  border-color: var(--prio);
  background: color-mix(in srgb, var(--prio) 12%, transparent);
  color: var(--text);
}

.prio-option input:focus-visible + span {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

.prio-option input:disabled + span {
  cursor: default;
}

/* ---------- Carregamento: esqueleto enquanto os dados do Instagram chegam ---------- */
.esqueleto-card {
  display: flex;
  flex-direction: column;
}

.esqueleto-card:hover {
  transform: none;
  border-color: var(--border);
}

.esqueleto {
  display: block;
  border-radius: 6px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.04) 25%, rgba(255, 255, 255, 0.09) 50%, rgba(255, 255, 255, 0.04) 75%);
  background-size: 200% 100%;
  animation: esqueleto-brilho 1.4s ease-in-out infinite;
}

.esqueleto-grafico {
  width: 100%;
  height: 180px;
  margin-top: 22px;
  border-radius: 10px;
}

.esqueleto-midia {
  aspect-ratio: 1;
  border-radius: 12px;
}

.carregando-aviso {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 4px 0 18px;
  font-size: 13px;
  color: var(--text-dim);
}

.carregando-giro {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.12);
  border-top-color: var(--cyan);
  animation: girar 0.8s linear infinite;
}

@keyframes esqueleto-brilho {
  from { background-position: 100% 0; }
  to { background-position: -100% 0; }
}

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

@media (prefers-reduced-motion: reduce) {
  .esqueleto,
  .carregando-giro {
    animation: none;
  }
}

/* ---------- Minigráfico de linha nos cards do resumo ---------- */
.stat-card {
  display: flex;
  flex-direction: column;
}

.spark {
  margin-top: auto;
  padding-top: 14px;
}

.spark-plot {
  position: relative;
  height: 48px;
}

.spark-plot svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.spark-linha {
  fill: none;
  stroke-width: 2px;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.spark-linha--atual {
  stroke: var(--accent);
}

.spark-linha--anterior {
  stroke: var(--text-faint);
  stroke-dasharray: 3 4;
}

.spark-final,
.spark-marca {
  position: absolute;
  width: 8px;
  height: 8px;
  margin: -4px 0 0 -4px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 2px var(--panel-solid), 0 0 10px var(--accent);
  pointer-events: none;
}

.spark-slots {
  position: absolute;
  inset: 0;
  display: flex;
}

.spark-slot {
  height: 100%;
  cursor: crosshair;
  outline: none;
}

.spark-marca {
  display: none;
  width: 10px;
  height: 10px;
  margin: -5px 0 0 -5px;
  box-shadow: 0 0 0 2px var(--panel-solid);
}

.spark-marca--anterior {
  background: var(--text-dim);
}

.spark-tip {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  display: none;
  justify-content: space-between;
  gap: 8px;
  font-size: 11px;
  line-height: 1.3;
  color: var(--text-dim);
  white-space: nowrap;
}

.spark-tip strong {
  color: var(--text);
  font-weight: 600;
}

.spark-slot:hover .spark-marca,
.spark-slot:focus-visible .spark-marca {
  display: block;
}

.spark-slot:hover .spark-tip,
.spark-slot:focus-visible .spark-tip {
  display: flex;
}

.spark-eixo {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  font-size: 11px;
  line-height: 1.3;
  color: var(--text-faint);
}

.spark:has(.spark-slot:hover) .spark-eixo,
.spark:has(.spark-slot:focus-visible) .spark-eixo {
  visibility: hidden;
}

@media (max-width: 520px) {
  .spark-plot {
    height: 40px;
  }

  .spark-tip span {
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

/* ---------- Programação: salvar com indicador e imagem em tela cheia ---------- */
.btn-com-giro {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 96px;
}

.btn-com-giro .carregando-giro {
  display: none;
  border-color: rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
}

.is-enviando .btn-com-giro .carregando-giro {
  display: inline-block;
}

.is-enviando .btn-com-giro:disabled {
  opacity: 1;
  cursor: progress;
}

.envio-progresso {
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.envio-progresso span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--gradient);
  transition: width 0.2s ease;
}

.lightbox {
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: none;
  background: rgba(3, 5, 12, 0.94);
}

.lightbox[open] {
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox::backdrop {
  background: rgba(3, 5, 12, 0.6);
}

.lightbox img,
.lightbox video {
  max-width: 96vw;
  max-height: 92vh;
  max-height: 92dvh;
  object-fit: contain;
  border-radius: 8px;
}

.lightbox-fechar {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 12, 20, 0.7);
  color: #fff;
  cursor: pointer;
}

.lightbox-fechar svg {
  width: 20px;
  height: 20px;
}

/* ---------- Programação: várias imagens e vídeos por item ---------- */
.visualmente-oculto {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.day-item-galeria {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px;
}

.day-item-galeria.is-unica {
  grid-template-columns: 1fr;
}

.day-item-midia {
  position: relative;
  display: block;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 8px;
  background: var(--bg-soft);
}

.day-item-galeria.is-unica .day-item-midia {
  aspect-ratio: 16 / 10;
}

.day-item-midia img,
.day-item-midia video,
.galeria-abrir img,
.galeria-abrir video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.midia-play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 34px;
  height: 34px;
  margin: -17px 0 0 -17px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 12, 20, 0.6);
  backdrop-filter: blur(6px);
  color: #fff;
  pointer-events: none;
}

.midia-play svg {
  width: 15px;
  height: 15px;
  margin-left: 2px;
}

.day-item-mais {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 12, 20, 0.6);
  color: #fff;
  font-size: 18px;
  font-weight: 700;
}

.galeria-edicao {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  gap: 8px;
}

.galeria-item {
  position: relative;
  aspect-ratio: 1;
}

.galeria-abrir {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-soft);
  cursor: zoom-in;
}

.galeria-abrir:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

.galeria-lixeira {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 28px;
  height: 28px;
  padding: 0;
  border: none;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 12, 20, 0.72);
  backdrop-filter: blur(6px);
  color: #fff;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.galeria-lixeira:hover,
.galeria-lixeira:focus-visible {
  background: #e5484d;
}

.galeria-lixeira svg {
  width: 14px;
  height: 14px;
}

.galeria-add {
  text-align: center;
}

/* ---------- Programação: formato do conteúdo e item finalizado ---------- */
.formato-opcoes {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.formato-opcao {
  position: relative;
  cursor: pointer;
}

.formato-opcao input {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.formato-opcao > span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 11px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-dim);
  font-size: 13px;
  font-weight: 500;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}

.formato-opcao:hover > span {
  border-color: var(--text-faint);
  color: var(--text);
}

.formato-opcao input:checked + span {
  border-color: var(--violet);
  background: var(--gradient-soft);
  color: var(--text);
  box-shadow: 0 0 0 1px var(--violet) inset;
}

.formato-opcao input:focus-visible + span {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

.formato-icone {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.formato-tag {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 3px;
  padding: 2px 9px 2px 7px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--cor, #7c5cff) 18%, transparent);
  border: 1px solid color-mix(in srgb, var(--cor, #7c5cff) 35%, transparent);
  color: var(--text);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.5;
}

.formato-tag .formato-icone {
  width: 12px;
  height: 12px;
}

/* Finalizado: título e legenda riscados, mídias apagadas com o selo "Finalizado". */
.day-item.is-done .day-item-caption {
  color: var(--text-faint);
  text-decoration: line-through;
}

.day-item.is-done .formato-tag {
  opacity: 0.55;
}

.day-item.is-done .day-item-galeria {
  position: relative;
}

.day-item-midia img,
.day-item-midia video {
  transition: filter 0.4s ease;
}

.day-item.is-done .day-item-midia img,
.day-item.is-done .day-item-midia video {
  filter: grayscale(1) brightness(0.4);
}

.day-item.is-done .midia-play {
  display: none;
}

.day-item.is-done .day-item-galeria::after {
  content: '✓ Finalizado';
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(61, 220, 132, 0.16);
  border: 1px solid rgba(61, 220, 132, 0.45);
  color: #3ddc84;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2px;
  white-space: nowrap;
  backdrop-filter: blur(4px);
  pointer-events: none;
}

/* Janela da programação: mais larga para os 5 formatos caberem numa linha. */
.modal--largo {
  width: min(600px, calc(100vw - 32px));
}

/* Quem só visualiza: janela aberta para ver, sem cara de clicável nos campos. */
.formato-opcao:has(input:disabled),
.swatch:has(input:disabled) {
  cursor: default;
}

.formato-opcao:has(input:disabled):hover > span {
  border-color: var(--border);
  color: var(--text-dim);
}

.formato-opcao input:disabled:checked + span {
  color: var(--text);
}

.formato-opcao input:disabled:not(:checked) + span,
.swatch input:disabled:not(:checked) + span {
  opacity: 0.45;
}

.field[readonly] {
  cursor: default;
}

.field[readonly]:focus {
  border-color: var(--border);
  box-shadow: none;
}

/* ================= LANDING PAGE (/plataforma/) ================= */
.lp {
  background: var(--bg);
  color: var(--text);
  scroll-behavior: smooth;
}

.lp section[id] {
  scroll-margin-top: 80px;
}

.lp-container {
  width: min(1140px, 100% - 40px);
  margin: 0 auto;
}

.lp-topo {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(10, 12, 20, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.lp-topo-linha {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 68px;
}

.lp-marca {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.lp-marca img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
}

.lp-marca span {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lp-menu {
  display: flex;
  gap: 26px;
  margin-left: auto;
  font-size: 14px;
  color: var(--text-dim);
}

.lp-menu a:hover {
  color: var(--text);
}

.lp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 22px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  transition: transform 0.15s, filter 0.15s, border-color 0.15s, background 0.15s;
}

.lp-btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.lp-btn:hover {
  transform: translateY(-1px);
}

.lp-btn--pequeno {
  padding: 9px 16px;
  font-size: 14px;
}

.lp-btn--contorno {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
}

.lp-btn--contorno:hover {
  border-color: var(--text-faint);
  background: rgba(255, 255, 255, 0.06);
}

/* Entrar: o ciano neon da marca. */
.lp-btn--neon {
  border: 1px solid var(--cyan);
  background: rgba(0, 212, 255, 0.12);
  color: var(--cyan);
  box-shadow: 0 0 18px -4px rgba(0, 212, 255, 0.65), inset 0 0 12px -6px rgba(0, 212, 255, 0.8);
  text-shadow: 0 0 10px rgba(0, 212, 255, 0.55);
}

.lp-btn--neon:hover {
  background: var(--cyan);
  color: #04121a;
  text-shadow: none;
  box-shadow: 0 0 26px -2px rgba(0, 212, 255, 0.8);
}

.lp-btn--whatsapp {
  background: #25d366;
  color: #062a14;
  box-shadow: 0 12px 30px -10px rgba(37, 211, 102, 0.6);
}

.lp-btn--whatsapp:hover {
  filter: brightness(1.06);
}

/* Hero */
/* O brilho do topo pode passar para a seção seguinte (sem corte reto); só o excesso lateral é cortado. */
.lp main {
  overflow-x: clip;
}

.lp-hero {
  position: relative;
  padding: 80px 0 90px;
}

.lp-hero::before,
.lp-hero::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.32;
  pointer-events: none;
}

.lp-hero::before {
  width: 520px;
  height: 520px;
  background: var(--violet);
  top: -200px;
  left: -160px;
}

.lp-hero::after {
  width: 480px;
  height: 480px;
  background: var(--cyan);
  bottom: -160px;
  right: -140px;
}

.lp-hero-grade {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
  gap: 56px;
}

.lp-selo {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid rgba(124, 92, 255, 0.4);
  background: var(--gradient-soft);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.3px;
  color: #c7bbff;
}

.lp h1 {
  margin: 18px 0 18px;
  font-size: clamp(34px, 4.6vw, 54px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -1.2px;
}

.lp h2 {
  margin: 14px 0 12px;
  font-size: clamp(26px, 3.2vw, 38px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.6px;
}

.lp h3 {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 700;
}

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

.lp-lead {
  max-width: 560px;
  margin: 0 0 30px;
  font-size: 17.5px;
  line-height: 1.65;
  color: var(--text-dim);
}

.lp-acoes {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.lp-garantias {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
  font-size: 13.5px;
  color: var(--text-dim);
}

.lp-garantias li::before,
.lp-lista-check li::before {
  content: '✓';
  margin-right: 7px;
  color: #3ddc84;
  font-weight: 700;
}

/* Prévia da plataforma no hero */
.lp-tela {
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(18, 20, 34, 0.86);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(124, 92, 255, 0.08);
  overflow: hidden;
  transform: perspective(1400px) rotateY(-6deg) rotateX(2deg);
}

.lp-tela-barra {
  display: flex;
  gap: 6px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
}

.lp-tela-barra span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
}

.lp-tela-corpo {
  padding: 20px;
}

.lp-perfil {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.lp-perfil-foto {
  width: 58px;
  height: 58px;
  padding: 3px;
  border-radius: 50%;
  background: var(--gradient);
  flex-shrink: 0;
}

.lp-perfil-foto img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2px solid var(--bg);
}

.lp-perfil strong {
  display: block;
  font-size: 16px;
}

.lp-perfil small {
  font-size: 12.5px;
  color: #a998ff;
}

.lp-perfil-numeros {
  display: flex;
  gap: 14px;
  margin-top: 4px;
  font-size: 11.5px;
  color: var(--text-faint);
}

.lp-perfil-numeros b {
  color: var(--text);
}

.lp-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.lp-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 12px 8px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--panel-solid);
}

.lp-card small {
  font-size: 11px;
  color: var(--text-dim);
}

.lp-card b {
  font-size: 19px;
}

.lp-positivo {
  color: #3ddc84;
}

.lp-card svg {
  width: 100%;
  height: 30px;
  margin-top: 2px;
  overflow: visible;
}

.lp-card path {
  fill: none;
  stroke: var(--cor);
  stroke-width: 2px;
  vector-effect: non-scaling-stroke;
  stroke-linecap: round;
}

.lp-barras {
  margin-top: 10px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--panel-solid);
}

.lp-barras small {
  font-size: 11px;
  color: var(--text-dim);
}

.lp-barras div {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 64px;
  margin-top: 10px;
}

.lp-barras span {
  flex: 1;
  border-radius: 4px 4px 0 0;
  background: var(--violet);
}

/* Seções */
.lp-secao {
  padding: 90px 0;
}

.lp-secao--faixa {
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.lp-cabecalho {
  max-width: 640px;
  margin: 0 auto 46px;
  text-align: center;
}

.lp-cabecalho p {
  margin: 0;
  font-size: 16.5px;
  color: var(--text-dim);
}

.lp-recursos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.lp-recurso {
  padding: 26px 24px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--panel-solid);
  transition: border-color 0.2s, transform 0.2s;
}

.lp-recurso:hover {
  border-color: color-mix(in srgb, var(--cor) 55%, transparent);
  transform: translateY(-3px);
}

.lp-recurso-icone {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 18px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--cor) 16%, transparent);
  color: var(--cor);
}

.lp-recurso-icone svg {
  width: 21px;
  height: 21px;
}

.lp-recurso p,
.lp-passos p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--text-dim);
}

.lp-passos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.lp-passos li {
  padding: 28px 24px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--panel-solid);
}

.lp-passo-numero {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  margin-bottom: 16px;
  border-radius: 50%;
  background: var(--gradient);
  font-weight: 800;
  color: #fff;
}

.lp-seguranca {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  gap: 48px;
}

.lp-seguranca p {
  margin: 0 0 18px;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-dim);
}

.lp-seguranca strong {
  color: var(--text);
}

.lp-link {
  font-weight: 600;
  color: var(--cyan);
}

.lp-lista-check {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
  padding: 26px;
  list-style: none;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--panel-solid);
  font-size: 15px;
}

.lp-rodape {
  padding: 26px 0;
  border-top: 1px solid var(--border);
  font-size: 13.5px;
  color: var(--text-faint);
}

.lp-rodape-linha {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
}

.lp-rodape nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

.lp-rodape a:hover {
  color: var(--text);
}

.lp-whatsapp-flutuante {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 50;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #25d366;
  color: #fff;
  box-shadow: 0 12px 30px -8px rgba(37, 211, 102, 0.7);
  transition: transform 0.15s;
}

.lp-whatsapp-flutuante:hover {
  transform: scale(1.06);
}

.lp-whatsapp-flutuante svg {
  width: 30px;
  height: 30px;
}

@media (max-width: 960px) {
  .lp-hero {
    padding: 48px 0 64px;
  }

  .lp-hero-grade,
  .lp-seguranca {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .lp-tela {
    transform: none;
  }

  .lp-recursos,
  .lp-passos {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .lp-menu {
    display: none;
  }

  .lp-topo-linha {
    justify-content: space-between;
  }

  .lp-recursos,
  .lp-passos {
    grid-template-columns: 1fr;
  }

  .lp-secao {
    padding: 64px 0;
  }

  .lp-lead {
    font-size: 16px;
  }

  .lp-acoes .lp-btn {
    flex: 1;
  }

}

@media (prefers-reduced-motion: reduce) {
  .lp {
    scroll-behavior: auto;
  }
}

/* ---------- Público: três destaques no topo ---------- */
.destaque-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 14px;
}

.destaque-card {
  --cor: var(--violet);
  position: relative;
  overflow: hidden;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--panel-solid);
}

.destaque-card::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 170px;
  height: 170px;
  border-radius: 50%;
  background: var(--cor);
  opacity: 0.05;
  filter: blur(32px);
  pointer-events: none;
}

.destaque-card--feminino {
  --cor: #f5426f;
}

.destaque-card--masculino {
  --cor: #3b82f6;
}

.destaque-card--idade {
  --cor: #f5a524;
}

.destaque-card--local {
  --cor: var(--cyan);
}

.destaque-card--vazio {
  --cor: var(--text-faint);
}

.destaque-icone {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: color-mix(in srgb, var(--cor) 16%, transparent);
  color: var(--cor);
}

.destaque-icone svg {
  width: 16px;
  height: 16px;
}

.destaque-texto {
  min-width: 0;
}

.destaque-rotulo {
  margin: 0 0 2px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-faint);
}

.destaque-valor {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.3px;
  line-height: 1.2;
  color: var(--text);
  overflow-wrap: anywhere;
}

/* No gênero a cor diz quem é o público: rosa feminino, azul masculino. */
.destaque-card--feminino .destaque-valor,
.destaque-card--masculino .destaque-valor {
  color: var(--cor);
}

.destaque-valor--vazio {
  color: var(--text-faint);
}

.destaque-rank {
  display: inline-block;
  margin-right: 3px;
  padding: 0 7px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--cor) 16%, transparent);
  color: var(--cor);
  font-size: 11.5px;
  font-weight: 700;
  vertical-align: 2px;
}

/* ---------- Público: cards de gênero, idade e localização mais compactos ---------- */
.aud-card {
  padding: 16px 18px;
}

.aud-title {
  min-height: 24px;
  margin-bottom: 10px;
  font-size: 13px;
}

.aud-head {
  margin-bottom: 10px;
}

.hbar-list {
  gap: 8px;
}

.hbar-label {
  margin-bottom: 4px;
  font-size: 12.5px;
}

.hbar-track {
  height: 5px;
}

.aud-card--idade .hbar-fill {
  background: #f5a524;
}

.aud-card--local .hbar-fill {
  background: var(--cyan);
}

.gender-bar {
  height: 10px;
  margin-bottom: 14px;
}

.gender-legend {
  gap: 8px;
}

.gender-legend li {
  font-size: 12.5px;
}

/* ---------- Gráfico de linha (horários de atividade) ---------- */
.linha-plot {
  height: 220px;
}

.linha-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.linha-traco {
  fill: none;
  stroke: var(--violet);
  stroke-width: 2px;
  stroke-linejoin: round;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}

.linha-slots {
  position: absolute;
  inset: 0;
  display: flex;
}

.linha-slot {
  height: 100%;
  cursor: crosshair;
  outline: none;
}

.linha-mira {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  display: none;
  background: rgba(255, 255, 255, 0.22);
  pointer-events: none;
}

.linha-ponto,
.linha-pico {
  position: absolute;
  width: 10px;
  height: 10px;
  margin: -5px 0 0 -5px;
  border-radius: 50%;
  background: var(--violet);
  box-shadow: 0 0 0 2px var(--panel-solid);
  pointer-events: none;
}

.linha-ponto {
  display: none;
}

.linha-pico {
  width: 8px;
  height: 8px;
  margin: -4px 0 0 -4px;
  box-shadow: 0 0 0 2px var(--panel-solid), 0 0 12px var(--violet);
}

.linha-pico-rotulo {
  position: absolute;
  transform: translate(-50%, calc(-100% - 10px));
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #1b2036;
  font-size: 11px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  pointer-events: none;
  transition: opacity 0.15s;
}

.linha-tip {
  top: auto;
  bottom: auto;
  transform: translate(-50%, calc(-100% - 12px));
}

.linha-tip--esquerda {
  transform: translate(-12px, calc(-100% - 12px));
}

.linha-tip--direita {
  transform: translate(calc(-100% + 12px), calc(-100% - 12px));
}

.linha-slot:hover .linha-mira,
.linha-slot:focus-visible .linha-mira,
.linha-slot:hover .linha-ponto,
.linha-slot:focus-visible .linha-ponto {
  display: block;
}

.linha-slot:hover .linha-tip,
.linha-slot:focus-visible .linha-tip {
  display: flex;
}

.linha:has(.linha-slot:hover) .linha-pico-rotulo,
.linha:has(.linha-slot:focus-visible) .linha-pico-rotulo {
  opacity: 0;
}

.linha-eixo {
  position: relative;
  height: 14px;
  margin: 8px 0 0 40px;
  font-size: 11px;
  color: var(--text-faint);
}

.linha-eixo span {
  position: absolute;
  transform: translateX(-50%);
  white-space: nowrap;
}

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

  .destaque-card {
    padding: 12px 14px;
  }

  .destaque-valor {
    font-size: 17px;
  }

  .linha-plot {
    height: 180px;
  }
}

@media (max-width: 640px) {
  .linha-eixo span.so-desktop {
    display: none;
  }
}

/* ---------- Aviso de novidade (aparece uma vez por navegador) ---------- */
.novidade {
  width: min(560px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  border-color: rgba(124, 92, 255, 0.35);
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(124, 92, 255, 0.12);
}

.novidade[open] {
  animation: novidade-entrar 0.35s ease;
}

/* Clicar fora não fecha o aviso; também não deve deixar contorno de foco na janela. */
.novidade:focus,
.novidade:focus-visible {
  outline: none;
}

@keyframes novidade-entrar {
  from { opacity: 0; transform: translateY(14px) scale(0.98); }
  to { opacity: 1; transform: none; }
}

.novidade-imagem {
  position: relative;
  padding: 18px 18px 0;
  background: linear-gradient(135deg, rgba(124, 92, 255, 0.28), rgba(0, 212, 255, 0.14));
}

.novidade-imagem img {
  display: block;
  width: 100%;
  height: min(30vh, 220px);
  height: min(30dvh, 220px);
  object-fit: cover;
  object-position: top;
  border: 1px solid var(--border);
  border-bottom: none;
  border-radius: 10px 10px 0 0;
  box-shadow: 0 -10px 30px -10px rgba(0, 0, 0, 0.6);
}

.novidade-imagem::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 35%;
  background: linear-gradient(to bottom, transparent, var(--panel-solid));
  pointer-events: none;
}

.novidade-corpo {
  padding: 4px 24px 22px;
}

.novidade-selo {
  display: inline-block;
  padding: 4px 11px;
  border-radius: 999px;
  border: 1px solid rgba(124, 92, 255, 0.45);
  background: var(--gradient-soft);
  font-size: 12px;
  font-weight: 600;
  color: #c7bbff;
}

.novidade h2 {
  margin: 10px 0 6px;
  font-size: 20px;
  line-height: 1.3;
  letter-spacing: -0.2px;
}

.novidade p {
  margin: 0 0 18px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-dim);
}

.novidade-acoes {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
}

.novidade-acoes .btn-primary {
  width: auto;
  margin: 0;
  text-decoration: none;
}

.novidade-fechar {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 12, 20, 0.7);
  color: #fff;
  cursor: pointer;
}

.novidade-fechar svg {
  width: 16px;
  height: 16px;
}

@media (max-width: 520px) {
  .novidade-corpo {
    padding: 4px 18px 18px;
  }

  .novidade h2 {
    font-size: 18px;
  }

  .novidade-acoes {
    flex-direction: column-reverse;
    align-items: stretch;
  }

  .novidade-acoes > * {
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .novidade[open] {
    animation: none;
  }
}

.novidade-ir {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.novidade h2:focus {
  outline: none;
}

/* Setas e contador da tela cheia: navegar entre as mídias do item sem fechar. */
.lightbox-nav {
  position: absolute;
  top: 50%;
  width: 48px;
  height: 48px;
  margin-top: -24px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 12, 20, 0.7);
  backdrop-filter: blur(6px);
  color: #fff;
  cursor: pointer;
  transition: background 0.15s, transform 0.15s;
}

.lightbox-nav[hidden] {
  display: none;
}

.lightbox-nav:hover,
.lightbox-nav:focus-visible {
  background: rgba(124, 92, 255, 0.55);
}

.lightbox-nav:active {
  transform: scale(0.94);
}

.lightbox-nav svg {
  width: 22px;
  height: 22px;
}

.lightbox-nav--anterior {
  left: 20px;
}

.lightbox-nav--proxima {
  right: 20px;
}

.lightbox-contador {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(10, 12, 20, 0.7);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 640px) {
  .lightbox-nav {
    width: 40px;
    height: 40px;
    margin-top: -20px;
  }

  .lightbox-nav--anterior {
    left: 8px;
  }

  .lightbox-nav--proxima {
    right: 8px;
  }
}

/* ---------- Programação: janela do item com os comentários ao lado ---------- */
.modal--duplo {
  background: transparent;
  border: none;
  box-shadow: none;
  overflow: visible;
}

.modal--duplo.tem-chat {
  width: min(1000px, calc(100vw - 32px));
}

.modal-duplo {
  display: flex;
  gap: 16px;
  align-items: stretch;
}

.tem-chat .modal-duplo {
  max-height: min(800px, calc(100vh - 48px));
}

.modal-painel {
  background: var(--panel-solid);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.modal--duplo .modal-body {
  flex: 1 1 600px;
  min-width: 0;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
}

.chat {
  flex: 0 0 360px;
  min-height: min(520px, calc(100vh - 48px));
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.chat[hidden] {
  display: none;
}

.chat-head {
  padding: 20px 20px 14px;
  border-bottom: 1px solid var(--border);
}

.chat-head h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
}

.chat-head p {
  margin: 3px 0 0;
  font-size: 12px;
  color: var(--text-faint);
}

.chat-lista {
  flex: 1 1 0;
  min-height: 160px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 16px;
}

.chat-vazio {
  margin: auto;
  max-width: 240px;
  text-align: center;
  color: var(--text-faint);
  font-size: 12.5px;
  line-height: 1.5;
}

.chat-vazio svg {
  width: 26px;
  height: 26px;
  margin-bottom: 6px;
  color: var(--text-faint);
}

.chat-vazio p {
  margin: 0 0 2px;
  color: var(--text-dim);
  font-weight: 600;
}

.chat-msg {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.chat-msg.is-minha {
  flex-direction: row-reverse;
}

.chat-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-soft);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
}

.chat-bolha {
  max-width: 82%;
  min-width: 0;
  padding: 8px 12px 9px;
  border: 1px solid var(--border);
  border-radius: 4px 12px 12px 12px;
  background: rgba(255, 255, 255, 0.035);
}

.is-minha .chat-bolha {
  border-radius: 12px 4px 12px 12px;
  border-color: rgba(124, 92, 255, 0.32);
  background: rgba(124, 92, 255, 0.13);
}

.chat-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--text-faint);
  white-space: nowrap;
}

.chat-meta strong {
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
}

.chat-apagar {
  display: flex;
  margin: -4px -6px -4px auto;
  padding: 4px;
  border: none;
  border-radius: 6px;
  background: none;
  color: var(--text-faint);
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.15s, color 0.15s, background 0.15s;
}

.chat-bolha:hover .chat-apagar,
.chat-apagar:focus-visible {
  opacity: 1;
}

.chat-apagar:hover {
  color: #ff6b6b;
  background: rgba(255, 60, 60, 0.12);
}

.chat-apagar svg {
  width: 13px;
  height: 13px;
}

.chat-texto {
  margin: 4px 0 0;
  font-size: 13.5px;
  line-height: 1.45;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.chat-form {
  padding: 12px 16px 14px;
  border-top: 1px solid var(--border);
}

.chat-erro {
  margin-bottom: 10px;
}

.chat-escrever {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  margin-bottom: 6px;
}

.chat-escrever .field {
  resize: none;
  min-height: 42px;
  max-height: 140px;
  line-height: 1.45;
}

.chat-enviar {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 10px;
  background: var(--gradient);
  color: #fff;
  cursor: pointer;
  transition: opacity 0.15s, transform 0.15s;
}

.chat-enviar:hover {
  transform: translateY(-1px);
}

.chat-enviar:disabled {
  opacity: 0.5;
  cursor: default;
  transform: none;
}

.chat-enviar svg {
  width: 17px;
  height: 17px;
}

.day-item-comentarios {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 2px;
  font-size: 11.5px;
  color: var(--text-dim);
}

.day-item-comentarios svg {
  width: 13px;
  height: 13px;
}

@media (hover: none) {
  .chat-apagar {
    opacity: 1;
  }
}

/* Janela aberta: a página de trás não rola. */
html:has(dialog[open]) {
  overflow: hidden;
}

/* Janela do item compacta: título e dia no topo, botões sempre à vista embaixo. */
.modal--duplo .modal-body {
  padding-top: 0;
  padding-bottom: 0;
  gap: 6px;
}

.item-topo {
  position: sticky;
  top: 0;
  z-index: 3;
  gap: 10px;
  margin: 0;
  padding: 18px 0 8px;
  background: var(--panel-solid);
}

.item-topo h2 {
  margin-right: auto;
  white-space: nowrap;
}

.item-dia {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 6px 5px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-dim);
  cursor: pointer;
  transition: border-color 0.15s;
}

.item-dia:focus-within {
  border-color: var(--violet);
}

.item-dia svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.item-dia input {
  min-width: 0;
  padding: 0;
  border: none;
  background: none;
  color: var(--text);
  font: inherit;
  font-size: 12.5px;
  font-weight: 500;
  color-scheme: dark;
  outline: none;
  cursor: pointer;
}

.item-dia input[readonly] {
  pointer-events: none;
}

.item-rotulo-linha {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0 10px;
}

.item-rotulo-linha .field-label {
  white-space: nowrap;
}

.item-rotulo-linha[hidden] {
  display: none;
}

.modal--duplo .galeria-edicao {
  grid-template-columns: repeat(auto-fill, minmax(78px, 1fr));
}

.galeria-add-tile {
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 0;
  border: 1px dashed var(--border);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-dim);
  font: inherit;
  font-size: 11.5px;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}

.galeria-add-tile:hover,
.galeria-add-tile:focus-visible {
  border-color: var(--violet);
  color: var(--text);
  background: var(--gradient-soft);
}

.galeria-add-tile svg {
  width: 20px;
  height: 20px;
  color: var(--cyan);
}

.item-cor {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-top: 6px;
}

.item-cor .field-label {
  margin: 0;
}

.item-cor .swatch span {
  width: 24px;
  height: 24px;
}

.item-rodape {
  position: sticky;
  bottom: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 8px;
  padding: 12px 0 16px;
  border-top: 1px solid var(--border);
  background: var(--panel-solid);
}

.item-rodape .form-errors {
  margin: 0;
}

.item-rodape .modal-foot {
  margin: 0;
  padding: 0;
  border: none;
}

/* Botão flutuante e "voltar" do chat: só existem no celular. */
.chat-flutuante,
.chat-voltar {
  display: none;
}

.chat-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.chat-head > div {
  min-width: 0;
}

#dialogItemTitulo:focus,
#itemChatTitulo:focus {
  outline: none;
}

/* Tela estreita: o chat abre por um botão flutuante, numa tela por cima da janela do post. */
@media (max-width: 900px) {
  .modal--duplo .chat {
    display: none;
  }

  .modal--duplo.tem-chat .chat-flutuante {
    position: fixed;
    right: 18px;
    bottom: calc(96px + env(safe-area-inset-bottom));
    z-index: 5;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: var(--gradient);
    color: #fff;
    box-shadow: 0 10px 28px -6px rgba(0, 0, 0, 0.7), 0 0 0 4px rgba(124, 92, 255, 0.18);
    cursor: pointer;
    animation: chat-flutuante-entrar 0.3s ease-out 0.15s both;
  }

  .chat-flutuante svg {
    width: 24px;
    height: 24px;
  }

  .chat-flutuante-total {
    position: absolute;
    top: -3px;
    right: -3px;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 999px;
    border: 2px solid var(--panel-solid);
    background: #f5426f;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    line-height: 18px;
    text-align: center;
  }

  .chat-flutuante-total[hidden] {
    display: none;
  }

  .modal--duplo.chat-aberto .chat-flutuante {
    display: none;
  }

  /* Espaço no fim do formulário para o botão flutuante não ficar em cima das cores. */
  .modal--duplo.tem-chat .item-cor {
    margin-bottom: 64px;
  }

  .modal--duplo.chat-aberto .chat {
    position: fixed;
    inset: 0;
    z-index: 6;
    display: flex;
    flex-direction: column;
    min-height: 0;
    height: 100%;
    border: none;
    border-radius: 0;
    padding-bottom: env(safe-area-inset-bottom);
    animation: chat-celular-entrar 0.25s ease-out;
  }

  .modal--duplo.chat-aberto .chat-lista {
    flex: 1 1 0;
    max-height: none;
  }

  .chat-voltar {
    display: flex;
    flex-shrink: 0;
  }

  .chat-head p {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  /* No celular quem abre o teclado é a pessoa; o atalho do Enter não se aplica. */
  .chat-form .field-hint {
    display: none;
  }
}

@keyframes chat-flutuante-entrar {
  from { opacity: 0; transform: scale(0.6) translateY(10px); }
  to { opacity: 1; transform: none; }
}

@keyframes chat-celular-entrar {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .modal--duplo.tem-chat .chat-flutuante,
  .modal--duplo.chat-aberto .chat {
    animation: none;
  }
}

/* Tela estreita: os comentários ficam embaixo do item, e a janela inteira rola. */
@media (max-width: 900px) {
  .modal--duplo {
    overflow-y: auto;
  }

  .modal-duplo,
  .tem-chat .modal-duplo {
    flex-direction: column;
    max-height: none;
  }

  .modal--duplo .modal-body {
    flex: none;
    max-height: none;
    overflow: visible;
  }

  /* A janela inteira rola: o topo do item não gruda, mas os botões continuam à vista enquanto o item aparece. */
  .item-topo {
    position: static;
  }

  .item-topo h2 {
    font-size: 15px;
  }

  .chat {
    flex: none;
    min-height: 0;
  }

  .chat-lista {
    flex: none;
    max-height: 55vh;
  }
}

/* Selo "Finalizado" sobre as mídias aparece com um leve zoom quando acabou de marcar. */
.day-item.is-done.recem-finalizado .day-item-galeria::after {
  animation: finalizado-selo 0.4s ease-out 0.12s both;
}

@keyframes finalizado-selo {
  from { opacity: 0; transform: translate(-50%, -50%) scale(0.8); }
  to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

/* ---------- Sininho de notificações (menu lateral) ---------- */
.nav-sininho {
  width: 100%;
  border: none;
  background: none;
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
}

.nav-sininho svg {
  transform-origin: 50% 10%;
}

.nav-badge {
  margin-left: auto;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: #f5426f;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 20px;
  text-align: center;
  box-shadow: 0 0 0 3px rgba(245, 66, 111, 0.18);
}

.nav-badge[hidden] {
  display: none;
}

/* Com novidade, o sino dá um pulinho de tempos em tempos para chamar atenção. */
.nav-sininho.tem-novas {
  color: var(--text);
}

.nav-sininho.tem-novas svg {
  animation: sininho-balanco 4s ease-in-out infinite;
}

.nav-sininho.tem-novas .nav-badge {
  animation: sininho-pulo 4s ease-in-out infinite;
}

.nav-sininho.acabou-de-chegar svg {
  animation: sininho-balanco 1.2s ease-in-out 2, sininho-balanco 4s ease-in-out 2.4s infinite;
}

@keyframes sininho-balanco {
  0%, 70%, 100% { transform: rotate(0); }
  74% { transform: rotate(16deg); }
  78% { transform: rotate(-14deg); }
  82% { transform: rotate(10deg); }
  86% { transform: rotate(-6deg); }
  90% { transform: rotate(3deg); }
}

@keyframes sininho-pulo {
  0%, 70%, 92%, 100% { transform: translateY(0) scale(1); }
  76% { transform: translateY(-4px) scale(1.12); }
  82% { transform: translateY(0) scale(0.96); }
  86% { transform: translateY(-1px) scale(1.03); }
}

/* Menu recolhido: o número vira uma bolinha em cima do sino. */
@media (min-width: 861px) {
  .menu-recolhido .nav-item .nav-badge {
    display: block;
    position: absolute;
    top: 4px;
    right: 14px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    font-size: 10px;
    line-height: 18px;
  }

  .menu-recolhido .nav-item .nav-badge[hidden] {
    display: none;
  }
}

/* Celular: o menu fica escondido, então o botão de abrir ganha uma bolinha quando há novidade. */
.menu-btn {
  position: relative;
}

.menu-btn-ponto {
  display: none;
}

.menu-btn.tem-novas .menu-btn-ponto {
  display: block;
  position: absolute;
  top: 6px;
  right: 6px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #f5426f;
  box-shadow: 0 0 0 2px var(--bg);
  animation: sininho-pulo 4s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
  .nav-sininho.tem-novas svg,
  .nav-sininho.tem-novas .nav-badge,
  .nav-sininho.acabou-de-chegar svg,
  .menu-btn.tem-novas .menu-btn-ponto {
    animation: none;
  }
}

/* ---------- Janela de notificações ---------- */
.notificacoes {
  width: min(440px, calc(100vw - 32px));
  max-height: min(620px, calc(100vh - 48px));
  max-height: min(620px, calc(100dvh - 48px));
  display: none;
  flex-direction: column;
  overflow: hidden;
}

.notificacoes[open] {
  display: flex;
}

.notificacoes-topo {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 16px 12px 20px;
  border-bottom: 1px solid var(--border);
}

.notificacoes-topo h2 {
  margin: 0 auto 0 0;
  font-size: 16px;
  font-weight: 700;
}

.notificacoes-ler-todas {
  border: none;
  background: none;
  padding: 6px 8px;
  border-radius: 8px;
  color: var(--cyan);
  font: inherit;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
}

.notificacoes-ler-todas:hover {
  background: rgba(0, 212, 255, 0.08);
}

.notificacoes-lista {
  overflow-y: auto;
  padding: 8px;
}

.notificacao {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px;
  border-radius: 12px;
  color: var(--text);
  text-decoration: none;
  transition: background 0.15s;
}

.notificacao:hover,
.notificacao:focus-visible {
  background: rgba(255, 255, 255, 0.04);
}

.notificacao + .notificacao {
  margin-top: 2px;
}

.notificacao .chat-avatar {
  width: 34px;
  height: 34px;
  font-size: 13px;
}

.notificacao-corpo {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.notificacao-linha {
  font-size: 13.5px;
  line-height: 1.4;
  color: var(--text-dim);
}

.notificacao-linha strong {
  color: var(--text);
  font-weight: 600;
}

.notificacao-texto {
  font-size: 13px;
  line-height: 1.4;
  color: var(--text-dim);
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow-wrap: anywhere;
}

.notificacao-meta {
  font-size: 11.5px;
  color: var(--text-faint);
}

.notificacao-novos {
  flex-shrink: 0;
  align-self: center;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(245, 66, 111, 0.16);
  color: #ff7a9a;
  font-size: 11.5px;
  font-weight: 700;
}

.notificacoes-vazio {
  padding: 36px 20px 40px;
  text-align: center;
  color: var(--text-faint);
  font-size: 12.5px;
  line-height: 1.5;
}

.notificacoes-vazio svg {
  width: 30px;
  height: 30px;
  margin-bottom: 8px;
}

.notificacoes-vazio p {
  margin: 0 0 2px;
  color: var(--text-dim);
  font-size: 14px;
  font-weight: 600;
}

/* ---------- Programação: compartilhar o post ---------- */
.item-compartilhar .icone-copiado,
.item-compartilhar.is-copiado .icone-compartilhar {
  display: none;
}

.item-compartilhar.is-copiado .icone-copiado {
  display: block;
  color: #3ddc84;
}

.item-compartilhar[hidden] {
  display: none;
}

/* ---------- Marca Hopkins: logo com o nome (fundo transparente) ---------- */
.brand-logo {
  display: block;
  width: auto;
  max-width: 100%;
}

.brand .brand-logo {
  height: 54px;
  margin-bottom: 2px;
  filter: drop-shadow(0 8px 26px rgba(91, 76, 255, 0.35));
}

.legal-brand .brand-logo {
  height: 30px;
}

.sidebar-brand {
  min-height: 81px;
}

.sidebar-brand .brand-logo {
  height: 32px;
}

/* Menu aberto mostra a logo com o nome; recolhido, só o "H". */
.sidebar-brand .brand-mark {
  display: none;
}

@media (min-width: 861px) {
  .menu-recolhido .sidebar-brand .brand-mark {
    display: block;
  }

  .menu-recolhido .sidebar-brand .brand-logo {
    display: none;
  }
}

.lp-marca img.brand-logo {
  width: auto;
  height: 30px;
  border-radius: 0;
}

/* ---------- Esqueci minha senha ---------- */
.login-esqueci {
  display: block;
  margin-top: 16px;
  text-align: center;
  font-size: 13px;
  color: var(--text-dim);
  text-decoration: none;
}

.login-esqueci:hover {
  color: var(--cyan);
}

.acesso-texto {
  margin-bottom: 20px;
}

.acesso-texto h1 {
  margin: 0 0 8px;
  font-size: 19px;
  font-weight: 700;
}

.acesso-texto p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--text-dim);
}

.acesso-texto p + p {
  margin-top: 10px;
}

.acesso-texto--centro {
  text-align: center;
}

.acesso-dica {
  font-size: 12.5px !important;
  color: var(--text-faint) !important;
}

.acesso-icone {
  width: 52px;
  height: 52px;
  margin: 0 auto 14px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-soft);
  border: 1px solid rgba(124, 92, 255, 0.35);
  color: var(--cyan);
}

.acesso-icone svg {
  width: 24px;
  height: 24px;
}

.acesso-icone--ok {
  background: rgba(61, 220, 132, 0.12);
  border-color: rgba(61, 220, 132, 0.4);
  color: #3ddc84;
}

a.acesso-botao {
  display: block;
  text-align: center;
  text-decoration: none;
  box-sizing: border-box;
}

/* ---------- Meu perfil ---------- */
.sidebar-perfil {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: -6px;
  padding: 6px;
  border-radius: 10px;
  color: inherit;
  text-decoration: none;
  transition: background 0.15s;
}

.sidebar-perfil:hover,
.sidebar-perfil.active {
  background: rgba(255, 255, 255, 0.05);
}

.user-sem-email {
  color: #f5b041;
}

@media (min-width: 861px) {
  .menu-recolhido .sidebar-perfil {
    flex: none;
    margin: 0;
  }
}

.perfil-pagina {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  align-items: start;
}

.perfil-bloco {
  background: var(--panel-solid);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
}

.perfil-bloco header {
  margin-bottom: 8px;
}

.perfil-bloco h2 {
  margin: 0 0 4px;
  font-size: 16px;
  font-weight: 700;
}

.perfil-bloco header p {
  margin: 0;
  font-size: 12.5px;
  color: var(--text-faint);
}

.perfil-bloco form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.perfil-alerta {
  margin: 4px 0 0;
  padding: 9px 12px;
  border-radius: 10px;
  border: 1px solid rgba(245, 176, 65, 0.35);
  background: rgba(245, 176, 65, 0.08);
  color: #f5c46b;
  font-size: 12.5px;
}

.perfil-acoes {
  display: flex;
  justify-content: flex-end;
  margin-top: 8px;
}

/* Lista curta de destaques dentro do aviso de novidade. */
.novidade-lista {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.novidade-lista li {
  display: flex;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--border);
  font-size: 13px;
  line-height: 1.45;
  color: var(--text-dim);
}

.novidade-lista strong {
  color: var(--text);
  font-weight: 600;
}

.novidade-lista + .novidade-acoes {
  margin-top: 16px;
}

/* Celular de tela baixa: imagem e destaques mais compactos para o aviso caber sem rolar. */
@media (max-height: 760px) {
  .novidade-imagem img {
    height: min(20vh, 150px);
    height: min(20dvh, 150px);
  }

  .novidade-lista {
    margin-top: 10px;
    gap: 6px;
  }

  .novidade-lista li {
    padding: 7px 10px;
    font-size: 12.5px;
  }
}
