/* ═══════════════════════════════════════════════════════════
   SECRET SWING — Noir Édition
   Port do design system APROVADO (protótipo astryx-proto2).
   Fonte da verdade: css/style.css + css/app.css do protótipo.
   Aplicado só nas páginas de MEMBRO (layouts app/guest).
   Reverter: apagar este arquivo + o <link> das layouts.
   ═══════════════════════════════════════════════════════════ */

/* ── 1. TOKENS (iguais aos do protótipo aprovado) ──────────── */

:root {
  --radius-sm: 8px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius: 14px;

  --border-gold: 1px solid rgba(212, 175, 55, .22);
  --border-gold-strong: 1px solid rgba(212, 175, 55, .5);

  --ease: cubic-bezier(.22, 1, .36, 1);
  --container: 1160px;
}

/* Fundo editorial: brilho dourado no topo (aprovado em todas as telas) */
body.theme-dark,
body {
  background:
    radial-gradient(1100px 520px at 50% -180px, rgba(212, 175, 55, .09), transparent 65%),
    var(--bg-0) !important;
  background-attachment: scroll;
}

::selection { background: var(--gold-dim); color: var(--text-0); }

/* ── 2. TIPOGRAFIA EDITORIAL ──────────────────────────────── */

h1, h2, h3,
.tela-header h1,
.dash-header h1,
.rk-header-info h1,
.rk-section-head h2,
.risk-sub,
.watch-title,
.profile-username,
.pack-title,
.pln-name,
.balance-valor,
.settings-card-title,
.bm-section-title,
.post-title,
.card-title,
.section-title,
.modal-title {
  font-family: var(--font-display) !important;
  letter-spacing: .01em;
}

/* Eyebrow / rótulos de seção */
.sidebar-sep,
.sidebar-secao,
.balance-rotulo {
  font-size: .66rem !important;
  letter-spacing: .22em !important;
  text-transform: uppercase !important;
  color: var(--text-3) !important;
  font-weight: 600 !important;
}

/* ── 3. SHELL / SIDEBAR ───────────────────────────────────── */

.sidebar {
  width: 264px !important;
  background: var(--bg-1) !important;
  border-right: var(--border-gold) !important;
  padding: 18px 14px 24px !important;
  gap: 0 !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

/* Wordmark */
.sidebar-wordmark {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 10px 16px;
  text-decoration: none;
}
.sidebar-wordmark img { width: 34px; height: 34px; border-radius: 8px; object-fit: contain; }
.sidebar-wordmark span {
  font-family: var(--font-display);
  font-size: .95rem;
  letter-spacing: .14em;
  color: var(--text-0);
  white-space: nowrap;
}
.sidebar-wordmark:hover span { color: var(--gold-soft); }

/* Cartão do usuário (borda dourada, como o aprovado) */
.sidebar-brand-row { display: block; padding: 0; }
.nav-logged-user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px !important;
  border-radius: 12px !important;
  border: var(--border-gold) !important;
  background: transparent !important;
  margin-bottom: 10px;
  text-decoration: none;
}
.nav-logged-user:hover { border-color: rgba(212, 175, 55, .5) !important; }
.nav-logged-avatar { width: 38px !important; height: 38px !important; border-radius: 50%; object-fit: cover; }
.nav-logged-avatar-fallback {
  display: flex; align-items: center; justify-content: center;
  background: var(--grad-gold); color: #1a1406;
  font-family: var(--font-display); font-weight: 700;
}
.nav-logged-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.nav-logged-name { font-size: .9rem !important; font-weight: 600 !important; color: var(--text-0) !important; }
.nav-logged-sub { font-size: .74rem !important; color: var(--text-3) !important; }

/* Nav */
.sidebar-nav {
  gap: 2px !important;
  padding: 0 !important;
  overflow-y: auto;
  flex: 1;
  min-height: 0;
}
.sidebar-nav a {
  display: flex !important;
  align-items: center;
  gap: 11px !important;
  padding: 9px 10px !important;
  border-radius: 10px !important;
  color: var(--text-1) !important;
  font-size: .9rem !important;
  font-weight: 500 !important;
  box-shadow: none !important;
  background: transparent;
  transition: background .2s, color .2s !important;
}
.sidebar-nav a:hover { background: rgba(212, 175, 55, .07) !important; color: var(--gold-soft) !important; }
.sidebar-nav > a.is-active {
  background: rgba(212, 175, 55, .12) !important;
  color: var(--gold-soft) !important;
  font-weight: 600 !important;
  box-shadow: none !important;
}

/* Ícones: SVG de linha (o protótipo não usa quadradinhos) */
.nav-ico {
  width: 19px !important;
  height: 19px !important;
  flex-shrink: 0;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  border: none !important;
  border-radius: 0 !important;
  background: none !important;
  color: inherit;
  opacity: .92;
}
.nav-ico::after { content: none !important; display: none !important; }
.nav-ico svg { width: 19px; height: 19px; display: block; }
.sidebar-nav a:hover .nav-ico,
.sidebar-nav > a.is-active .nav-ico { opacity: 1; color: var(--gold-soft); }

/* Badges (pílula dourada) */
.sidebar-nav .notif-badge,
.sidebar-nav .nav-badge {
  margin-left: auto !important;
  background: var(--grad-gold) !important;
  color: #1a1406 !important;
  font-size: .68rem !important;
  font-weight: 700 !important;
  border-radius: 999px !important;
  padding: 1px 8px !important;
  min-width: 20px;
  text-align: center;
}

.sidebar-sep {
  display: block;
  margin: 14px 10px 6px !important;
  padding: 0 !important;
}

.sidebar-search { margin: 6px 0 2px !important; border-bottom: none !important; }
/* Busca empilhada: com 264px o input + botão lado a lado corta o placeholder */
.sidebar-search-row {
  display: flex !important;
  flex-direction: column !important;
  gap: 6px !important;
}
.sidebar-search-row input {
  width: 100% !important;
  padding: 9px 12px !important;
  font-size: .82rem !important;
  border-radius: 10px !important;
}
.sidebar-search-row .btn {
  width: 100%;
  justify-content: center !important;
  padding: 7px 12px !important;
  font-size: .8rem !important;
  border: 1px solid rgba(212, 175, 55, .28) !important;
  border-radius: 10px !important;
}
.sidebar-search-row .btn:hover {
  border-color: var(--gold) !important;
  color: var(--gold-soft) !important;
}
.sidebar-logout { border-top: 1px solid rgba(212, 175, 55, .12); padding-top: 14px; margin-top: 8px; }
.sidebar-logout .btn {
  width: 100%;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(212, 175, 55, .28);
}

/* Botão convite: discreto (o aprovado não tem pílula dourada na sidebar) */
.nav-invite-btn {
  background: transparent !important;
  border: 1px dashed rgba(212, 175, 55, .3) !important;
  color: var(--gold-soft) !important;
  border-radius: 10px !important;
  padding: 9px 10px !important;
  font-size: .86rem !important;
  justify-content: flex-start;
  margin: 2px 0 6px;
}
.nav-invite-btn:hover {
  background: rgba(212, 175, 55, .07) !important;
  border-style: solid !important;
}

/* Conteúdo */
.app-shell-side { margin-left: 264px !important; }
.app-content, .app-shell { padding: 28px 36px 60px !important; }

/* ── 4. BOTÕES ────────────────────────────────────────────── */

.btn { border-radius: 999px !important; font-weight: 600; }
.btn-sm { padding: 9px 20px !important; font-size: .85rem !important; }
.btn-lg { padding: 15px 34px !important; font-size: .95rem !important; }

.btn-primary {
  background: linear-gradient(135deg, #d4af37 0%, #f0d575 50%, #a8872a 100%) !important;
  color: #1a1406 !important;
  border-color: transparent !important;
  box-shadow: 0 8px 24px -10px rgba(212, 175, 55, .55), inset 0 1px 0 rgba(255, 255, 255, .35) !important;
  transition: transform .25s var(--ease), box-shadow .25s, filter .25s !important;
}
.btn-primary:hover {
  transform: translateY(-2px);
  color: #1a1406 !important;
  box-shadow: 0 14px 32px -10px rgba(212, 175, 55, .65), inset 0 1px 0 rgba(255, 255, 255, .35) !important;
  filter: brightness(1.04) !important;
}
.btn-primary:active { transform: translateY(1px) scale(.99); }

.btn-outline {
  border-color: rgba(212, 175, 55, .45) !important;
  color: var(--gold-soft) !important;
  background: transparent !important;
}
.btn-outline:hover {
  border-color: var(--gold-soft) !important;
  background: rgba(212, 175, 55, .06) !important;
  color: var(--gold-soft) !important;
}
.btn-ghost { color: var(--text-1); border-radius: 999px !important; }
.btn-ghost:hover { color: var(--gold-soft) !important; background: rgba(212, 175, 55, .07) !important; }

/* ── 5. CARTÕES E SUPERFÍCIES ─────────────────────────────── */

.card,
.post-card,
.pack-card,
.lv-card,
.pln-card,
.settings-card,
.conv-row,
.empty-state,
.notif-item,
.chat-inbox-item,
.watch-chat,
.live-panel,
.profile-stats-card,
.faq-item,
.tr-card {
  background: var(--bg-2) !important;
  border: var(--border-gold) !important;
  border-radius: var(--radius-lg) !important;
}

.card { padding: 22px !important; }
.card-title, .card h2, .card h3 { font-family: var(--font-display); }

.post-card { margin-bottom: 18px !important; overflow: hidden; }
.post-header { padding: 14px 18px !important; }
.post-body { padding: 0 18px 8px !important; }
.post-title { font-size: 1.1rem !important; font-weight: 600 !important; margin-bottom: 10px !important; }
.post-media {
  border: 1px solid rgba(212, 175, 55, .18) !important;
  border-radius: 12px !important;
  overflow: hidden;
  margin-bottom: 10px;
}
.post-actions { padding: 6px 14px 14px !important; }
.post-action {
  border-radius: 999px !important;
  padding: 6px 10px !important;
  transition: background .2s !important;
}
.post-action:hover { background: rgba(212, 175, 55, .08) !important; }

.pack-card:hover,
.lv-card:hover,
.pln-card:hover,
.tr-card:hover,
.recurso:hover {
  transform: translateY(-3px);
  border-color: rgba(212, 175, 55, .5) !important;
}
.pack-card, .lv-card, .pln-card, .tr-card { transition: transform .3s var(--ease), border-color .3s !important; }

.pack-price, .lv-price, .podium-score, .pln-preco, .pack-price { color: var(--gold-soft) !important; }
.pack-title, .lv-title, .pln-name { font-family: var(--font-display) !important; }
.pack-buy-row { margin-top: 12px; }

/* ── 6. HEADERS DE TELA ──────────────────────────────────── */

/* Feed: logo pequena + título editorial (como no aprovado) */
.feed-title {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  margin: 0;
}
.feed-title img { height: 34px; width: auto; object-fit: contain; }
.feed-title span {
  font-family: var(--font-display) !important;
  font-size: 1.75rem;
  font-weight: 600;
  letter-spacing: .06em;
  color: var(--text-0);
  line-height: 1;
}

.tela-header, .dash-header, .feed-head, .live-hero, .watch-header {
  margin-bottom: 24px !important;
}
.tela-header h1, .dash-header h1 {
  font-size: 1.6rem !important;
  font-weight: 600 !important;
  color: var(--text-0);
}
.risk-sub { font-size: 1.1rem !important; font-weight: 600 !important; margin: 28px 0 14px !important; }

/* Títulos de seção: TEXTO CLARO (o dourado é só para acentos/preços).
   Vencia o `color: var(--gold)` que vinha de regras antigas de .risk-sub. */
.risk-sub,
.live-section-toggle,
h2.risk-sub,
summary.risk-sub {
  color: var(--text-0) !important;
  font-family: var(--font-display) !important;
}
.risk-sub .live-section-count,
.live-section-count {
  color: var(--text-2) !important;
  font-family: var(--font-body) !important;
  font-weight: 500;
  font-size: .85rem;
}

/* Estado vazio: ícone de linha em vez de emoji */
.empty-state-icon {
  display: flex;
  justify-content: center;
  margin-bottom: 12px;
  color: rgba(212, 175, 55, .55);
  font-size: 0;
}
.empty-state-icon::before {
  content: '';
  width: 46px; height: 46px;
  background-color: currentColor;
  opacity: .8;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'><rect x='2' y='7' width='20' height='13' rx='2.5'/><path d='m8 3 4 4 4-4'/></svg>") center/contain no-repeat;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'><rect x='2' y='7' width='20' height='13' rx='2.5'/><path d='m8 3 4 4 4-4'/></svg>") center/contain no-repeat;
}
.empty-state h3 { font-family: var(--font-display) !important; color: var(--text-0) !important; font-size: 1.05rem !important; }
.empty-state p { color: var(--text-2) !important; font-size: .88rem !important; }

/* Bloco de tempo grátis: no aprovado é um painel DOURADO (não vermelho) */
.feed-free-timer, .profile-free-timer {
  background: rgba(212, 175, 55, .08) !important;
  border: var(--border-gold) !important;
  border-radius: 14px !important;
  padding: 14px 18px !important;
}
.feed-free-timer .free-timer-text,
.profile-free-timer .free-timer-text { font-size: .85rem; color: var(--text-1); }
.feed-free-timer .free-timer-countdown,
.profile-free-timer .free-timer-countdown {
  color: var(--gold-soft) !important;
  font-weight: 700 !important;
  letter-spacing: .02em !important;
  font-variant-numeric: tabular-nums;
}
/* Só vermelho quando REALMENTE acabou/urgente */
.feed-free-timer.free-timer-expired, .profile-free-timer.free-timer-expired {
  background: rgba(239, 68, 68, .08) !important;
  border-color: rgba(239, 68, 68, .35) !important;
}
.feed-free-timer.free-timer-expired .free-timer-countdown,
.profile-free-timer.free-timer-expired .free-timer-countdown { color: var(--danger) !important; }

/* ── 7. STORIES (anel dourado) ───────────────────────────── */

.stories-carousel { gap: 14px !important; padding: 4px 2px 14px !important; }
.stories-carousel-ring,
.stories-ring {
  background: linear-gradient(135deg, #d4af37, #f0d575 50%, #a8872a) !important;
  padding: 3px !important;
}
.stories-carousel-ring .stories-carousel-avatar,
.stories-ring .avatar { border: 3px solid var(--bg-0); }
.stories-carousel-nome, .stories-nome { font-size: .72rem; color: var(--text-2); }

/* Títulos de vitrine (créditos de live, mimos): claros + serifada.
   O app.css pinta .pkg-title de dourado; no aprovado o dourado é acento,
   não a cor do título. */
.pkg-title,
.pkg-title-label {
  color: var(--text-0) !important;
  font-family: var(--font-display) !important;
  font-weight: 600 !important;
  letter-spacing: .01em !important;
}
.pkg-title-icon {
  display: inline-flex;
  align-items: center;
  color: var(--gold) !important;
  font-size: 1rem !important;
  filter: none !important;
}
.pkg-title-icon svg { width: 22px; height: 22px; display: block; }
.pkg-sub { color: var(--text-2) !important; font-size: .9rem !important; }
.pkg-card {
  background: var(--bg-2) !important;
  border: var(--border-gold) !important;
  border-radius: 16px !important;
}
.pkg-card:hover { border-color: rgba(212, 175, 55, .5) !important; }
.pkg-card-star {
  border-color: var(--gold) !important;
  background: linear-gradient(160deg, rgba(212, 175, 55, .1), var(--bg-2) 55%) !important;
}
.pkg-price { color: var(--gold-soft) !important; font-family: var(--font-display) !important; }

/* ── 8. RANKING (pódio com moldura dourada) ──────────────── */

.ranking-podium, .rk-podium { margin-bottom: 24px; }
.podium-avatar-lg { border-color: var(--gold) !important; }
.podium-crown { color: var(--gold); }

/* ATENÇÃO: `.rk-section-head` tem DOIS donos no app.css — o acordeão da
   "Lista de Risco" (com fundo/borda de cartão) e o título de seção do
   ranking. Aqui só o segundo é resetado, escopado na página do ranking. */
.rk-page .rk-section-head {
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
  width: auto !important;
  cursor: default;
  transition: none;
}
.rk-page .rk-section-head h2 {
  font-family: var(--font-display) !important;
  font-size: 1.1rem !important;
  font-weight: 600 !important;
  letter-spacing: .01em;
}
.rk-section-icon { color: var(--gold) !important; }

/* ── 9. PLANOS ───────────────────────────────────────────── */

.pln-card.destacado {
  border-color: var(--gold) !important;
  background: linear-gradient(160deg, rgba(212, 175, 55, .1), var(--bg-2) 55%) !important;
  box-shadow: 0 0 0 1px rgba(212, 175, 55, .25), 0 18px 50px -18px rgba(212, 175, 55, .3);
  position: relative;
}
.pln-btn {
  width: 100%;
  padding: 14px 18px !important;
  font-size: .95rem !important;
  font-weight: 800 !important;
  letter-spacing: .04em;
  border-radius: 14px !important;
  box-shadow: 0 10px 30px -10px rgba(212, 175, 55, .55) !important;
}
.pln-btn:hover { transform: translateY(-2px); }

/* ── 10. CARTEIRA ────────────────────────────────────────── */

.balance-card {
  background: linear-gradient(150deg, rgba(212, 175, 55, .16), rgba(10, 10, 12, .1) 60%), var(--bg-2) !important;
  border: var(--border-gold) !important;
  border-radius: 18px !important;
  padding: 26px !important;
}
.balance-valor {
  font-size: 2.6rem !important;
  margin-top: 6px;
  background: linear-gradient(135deg, #d4af37 0%, #f0d575 50%, #a8872a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* ── 11. CHAT / NOTIFICAÇÕES ─────────────────────────────── */

/* Caixa de entrada (classes próprias `dm-*`, não `conv-row`) */
.dm-inbox-item {
  background: var(--bg-2) !important;
  border: var(--border-gold) !important;
  border-radius: 12px !important;
  padding: 12px 14px !important;
  margin: 0 0 8px !important;
  border-bottom: 1px solid rgba(212, 175, 55, .22) !important;
  transition: border-color .2s, background .2s !important;
}
.dm-inbox-item:hover {
  border-color: rgba(212, 175, 55, .5) !important;
  background: rgba(212, 175, 55, .04) !important;
}
.dm-inbox-item.dm-unread {
  background: rgba(212, 175, 55, .07) !important;
  border-color: rgba(212, 175, 55, .38) !important;
}
.dm-inbox-list { gap: 0 !important; }
.dm-title { font-family: var(--font-display) !important; font-weight: 600 !important; }
.dm-inbox-name { font-weight: 600 !important; font-size: .92rem !important; }
.dm-inbox-preview { font-size: .84rem !important; color: var(--text-2) !important; }
.dm-unread-badge {
  background: var(--grad-gold) !important;
  color: #1a1406 !important;
  font-weight: 700 !important;
  border-radius: 999px !important;
}
.dm-avatar-img { border: 1px solid rgba(212, 175, 55, .3) !important; }
.dm-unread-item { border-radius: 12px !important; }

.conv-row { padding: 12px 14px !important; transition: border-color .2s !important; }
.conv-row:hover { border-color: rgba(212, 175, 55, .5) !important; }
.conv-nome { font-weight: 600; display: flex; align-items: center; gap: 8px; }
.conv-preview { font-size: .84rem; color: var(--text-2); }
.conv-unread {
  background: var(--grad-gold); color: #1a1406;
  font-size: .7rem; font-weight: 700; border-radius: 999px;
  min-width: 20px; height: 20px; display: flex; align-items: center; justify-content: center; padding: 0 6px;
}
.notif-icon { color: var(--gold-soft); }
.chat-inbox-item { position: relative; }
.chat-inbox-item:hover { background: rgba(212, 175, 55, .05); }
.chat-msg.in, .chat-bubble.in { border-color: rgba(212, 175, 55, .25) !important; }
.chat-bubble.out { background: var(--grad-gold) !important; color: #1a1406 !important; }

/* ── 12. LIVES ───────────────────────────────────────────── */

.watch-video-container, .broadcast-video-container {
  border: var(--border-gold) !important;
  border-radius: 16px !important;
  background: #000 !important;
}
.watch-chat, .live-panel { border-radius: 16px !important; }
.watch-chat-header, .broadcast-chat-header {
  border-bottom: 1px solid rgba(212, 175, 55, .14) !important;
}
.live-tab.is-active, .lv-tab.ativo {
  color: var(--gold-soft) !important;
  border-bottom-color: var(--gold) !important;
}
.mimo-btn { border-radius: 14px; }
.mimo-btn:hover { border-color: var(--gold); transform: translateY(-2px); }

/* ── 13. PLANOS ──────────────────────────────────────────── */
/* O print aprovado (antes/plans-desktop.png + plans-mobile.png) não tem
   NADA de verde nem de roxo: hero alinhado à ESQUERDA, "Plano atual"
   como texto simples (sem pílula), nota em cartão de borda dourada e
   cards com preço em serifada. O dev tinha pílula verde (.pln-current-pill),
   nota roxa (.pln-note), selos verdes/roxos (.pln-badge-*) e bolha de
   ícone (.pln-icon) que o protótipo não tem.                      */

/* Hero: esquerda, sem selo "SECRET SWING" e sem parágrafo de venda */
.pln-page {
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  max-width: none !important;
  padding: 0 !important;
  overflow: visible !important;
  min-height: 0 !important;
}
.pln-hero {
  text-align: left !important;
  padding: 0 0 1.1rem !important;
}
.pln-hero::before { display: none !important; }
.pln-brand { display: none !important; }
.pln-hero h1 {
  font-family: var(--font-display) !important;
  font-size: clamp(1.7rem, 3.2vw, 2.15rem) !important;
  font-weight: 700 !important;
  line-height: 1.15 !important;
  letter-spacing: -.01em;
  margin: 0 0 .5rem !important;
}
/* No aprovado "sem limite de tempo" é ITÁLICO da mesma cor do título
   (não gradiente dourado). */
.pln-hero h1 em {
  font-style: italic !important;
  background: none !important;
  -webkit-text-fill-color: currentColor !important;
  color: inherit !important;
}
/* O parágrafo de venda não existe no aprovado — a nota faz esse papel. */
.pln-hero p { display: none !important; }

/* "✓ Plano atual: …" — texto simples, check dourado, sem caixa */
.pln-current-pill {
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
  background: none !important;
  border: none !important;
  border-radius: 0 !important;
  color: var(--text-1) !important;
  font-size: .85rem !important;
  font-weight: 400 !important;
  line-height: 1.5;
}
.pln-current-pill strong { color: var(--text-0) !important; font-weight: 700 !important; }
.pln-current-pill svg {
  width: 13px !important; height: 13px !important;
  color: var(--gold) !important;
  margin-right: 3px;
  vertical-align: -1px;
}
/* Estado "acabou o acesso": âmbar continua fazendo sentido semântico,
   mas sem pílula — só o texto âmbar. */
.pln-pill-warn {
  background: none !important;
  border: none !important;
  color: #e8c96a !important;
  font-weight: 600 !important;
}

/* Nota de transparência: cartão escuro com borda dourada (aprovado) */
.pln-note {
  background: var(--bg-2) !important;
  border: var(--border-gold) !important;
  border-radius: 14px !important;
  color: var(--text-1) !important;
  padding: 16px 18px !important;
  gap: 10px !important;
  margin: 0 0 1.4rem !important;
  max-width: none !important;
}
.pln-note svg { color: var(--gold-dim) !important; }
.pln-note strong { color: var(--text-0) !important; font-weight: 700 !important; }

/* Grid dos planos: o aprovado é 3 colunas. Mas a base tem 5 planos (Free +
   4 ciclos), e `repeat(3)` deixa a última linha com 2 cards alinhados à
   ESQUERDA e um buraco à direita — feio e nada editorial. Flex com
   `justify-content:center` mantém 3 por linha no desktop e CENTRALIZA a
   última fileira incompleta. minmax(0,1fr) evita estouro. */
.pln-grid {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  gap: 1rem !important;
  max-width: none !important;
  margin: 0 0 1.8rem !important;
}
.pln-grid > * {
  flex: 1 1 calc((100% - 2rem) / 3) !important;
  min-width: 240px !important;
  max-width: calc((100% - 2rem) / 3) !important;
}

/* Cards: fundo chapado --bg-2 + borda dourada (aprovado) */
.pln-card {
  background: var(--bg-2) !important;
  border: var(--border-gold) !important;
  border-radius: 18px !important;
  padding: 22px 20px 20px !important;
  overflow: visible !important;
}
.pln-card::before { display: none !important; }
.pln-card:hover {
  transform: none !important;
  border-color: rgba(212, 175, 55, .5) !important;
  box-shadow: none !important;
}
/* Destaque: borda dourada cheia + leve gradiente (igual .destacado) */
.pln-card-current {
  border-color: var(--gold) !important;
  background: linear-gradient(160deg, rgba(212, 175, 55, .1), var(--bg-2) 55%) !important;
}

/* Selos: só dourado. O aprovado não mostra selo em card nenhum, mas se
   houver (plano atual / melhor custo / % OFF) tem de seguir o ouro. */
.pln-badge {
  background: linear-gradient(135deg, var(--gold-soft), var(--gold)) !important;
  color: #0a0a0c !important;
  box-shadow: none !important;
  top: 12px !important; right: 12px !important;
  font-size: .64rem !important;
  padding: 3px 9px !important;
}
.pln-badge-current,
.pln-badge-best {
  background: linear-gradient(135deg, var(--gold-soft), var(--gold)) !important;
  color: #0a0a0c !important;
  box-shadow: none !important;
}

/* Bolha de ícone: não existe no aprovado */
.pln-icon { display: none !important; }

.pln-name {
  font-family: var(--font-display) !important;
  font-size: 1.22rem !important;
  font-weight: 700 !important;
  margin: 0 0 .5rem !important;
}
.pln-desc {
  color: var(--text-2) !important;
  font-size: .84rem !important;
  min-height: 0 !important;
  margin: 0 0 1.2rem !important;
}
/* "⏱ Limite de acesso…" é texto discreto, não etiqueta âmbar.
   display:inline é obrigatório: com inline-flex os 3 pedaços (ícone,
   "Limite de acesso:", "5 minutos por dia") viravam COLUNAS quando o
   card estreita — no aprovado isso é uma frase que quebra em 2 linhas. */
.pln-free-limit {
  display: inline !important;
  background: none !important;
  border: none !important;
  padding: 0 !important;
  margin: 10px 0 0 !important;
  color: var(--text-3) !important;
  font-weight: 400 !important;
  font-size: .78rem !important;
  line-height: 1.45 !important;
}
.pln-free-limit strong { color: var(--text-2) !important; font-weight: 600 !important; }
.pln-free-limit svg {
  display: inline-block !important;
  width: 12px !important; height: 12px !important;
  color: var(--text-3) !important;
  vertical-align: -1px;
  margin-right: 3px;
}

/* Preço em serifada (aprovado: "R$ 19,90" com display font) */
.pln-price { gap: 5px !important; margin-bottom: .25rem !important; }
.pln-currency { font-size: 1rem !important; color: var(--gold) !important; }
.pln-amount {
  font-family: var(--font-display) !important;
  font-size: 2.05rem !important;
  font-weight: 700 !important;
  letter-spacing: -.01em !important;
}
.pln-period { font-size: .82rem !important; color: var(--text-3) !important; }
.pln-equiv { color: var(--text-3) !important; font-size: .78rem !important; margin-top: 5px !important; }
.pln-equiv strong { color: var(--text-2) !important; font-weight: 600 !important; }

/* Botões: gold preenchido / ghost de borda fina (aprovado usa <button
   disabled> com contorno dourado apagado, não cinza) */
.pln-action { padding-top: 1.1rem !important; }
.pln-btn {
  border-radius: 10px !important;
  padding: 11px 16px !important;
  font-size: .86rem !important;
  font-weight: 700 !important;
  letter-spacing: .005em;
  box-shadow: none !important;
}
.pln-btn:hover { transform: none !important; box-shadow: none !important; filter: brightness(1.06); }
.pln-btn-ghost,
.pln-btn[disabled] {
  background: transparent !important;
  border: 1px solid rgba(212, 175, 55, .4) !important;
  color: var(--gold-soft) !important;
  opacity: 1 !important;
  cursor: default !important;
}

/* Rodapé de confiança e FAQ */
.pln-trust { padding: 0 0 1.4rem !important; gap: 1.1rem !important; justify-content: flex-start !important; }
.pln-trust span {
  font-size: .78rem !important;
  color: var(--text-2) !important;   /* era --text-3 (quase ilegível no fundo) */
  align-items: center;
}
/* Ícones das bullets de confiança: estavam em --gold-dim (#6b5720), que
   sobre o fundo #0f0f12 some — pareciam "símbolos estranhos" em vez de
   escudo/cadeado/relógio. Em --gold eles leem como ícone. */
.pln-trust svg {
  color: var(--gold) !important;
  flex: none !important;
  opacity: .85;
}
.pln-faq { max-width: none !important; margin: 0 0 1.6rem !important; }
.pln-faq h3 {
  font-family: var(--font-display) !important;
  font-size: 1.15rem !important;
  margin: 0 0 .8rem !important;
}
.pln-faq-item,
.faq-item {
  background: var(--bg-2) !important;
  border: var(--border-gold) !important;
  border-radius: 14px !important;
  padding: 14px 18px !important;
  margin-bottom: 10px !important;
}
.pln-faq-item h4,
.faq-item h4 {
  font-family: var(--font-display) !important;
  font-size: 1rem !important;
  font-weight: 700 !important;
  margin: 0 0 .35rem !important;
  color: var(--text-0) !important;
}
.pln-faq-item p,
.faq-item p { margin: 0 !important; font-size: .84rem !important; color: var(--text-2) !important; }

/* Carrossel do VISUALIZADOR do perfil (abre no grid → "POSTS").
   Régua do feed principal: dots CENTRALIZADOS ABAIXO da mídia (o
   `.fv-carousel-dots` era absoluto com bottom:8px e ficava POR BAIXO da
   imagem, invisível) e na cor da marca (era #0095f6, azul do Instagram). */
.fv-carousel-dots {
  position: static !important;
  left: auto !important;
  transform: none !important;
  justify-content: center !important;
  gap: 6px !important;
  padding: 10px 0 6px !important;
}
.fv-dot {
  width: 7px !important; height: 7px !important;
  background: rgba(255, 255, 255, .3) !important;
  transition: all .4s ease !important;
  cursor: pointer;
}
.fv-dot.active {
  background: var(--gold) !important;
  width: 22px !important; border-radius: 4px !important;
  transform: none !important;
  box-shadow: 0 0 6px rgba(212, 175, 55, .4);
}
/* Setas: mesmo desenho do feed, em ouro em vez de branco/cinza */
.fv-carousel-prev,
.fv-carousel-next {
  background: rgba(10, 10, 12, .72) !important;
  border: 1px solid rgba(212, 175, 55, .45) !important;
  color: var(--gold-soft) !important;
  width: 32px !important; height: 32px !important;
  backdrop-filter: blur(8px);
}
.fv-carousel-prev svg,
.fv-carousel-next svg { stroke: var(--gold-soft) !important; }

/* ── 14. FORMULÁRIOS ─────────────────────────────────────── */
.field input, .field select, .field textarea,
.field-input, .sort-select, .sidebar-search input {
  border-radius: 10px !important;
  border: 1px solid rgba(212, 175, 55, .25) !important;
  background: var(--bg-1) !important;
  transition: border-color .25s, box-shadow .25s !important;
}
.field input:focus, .field select:focus, .field textarea:focus,
.field-input:focus, .sidebar-search input:focus {
  border-color: var(--gold) !important;
  box-shadow: 0 0 0 3px rgba(212, 175, 55, .14) !important;
  outline: none;
}
.auth-card .field input:focus, .auth-card input:focus {
  border-color: var(--gold) !important;
  box-shadow: 0 0 0 3px rgba(212, 175, 55, .15) !important;
}

/* Chips / filtros em pílula */
.chip, .ntf-filter, .live-tab, .conv-chip, .tag-chip, .filter-chip {
  border-radius: 999px !important;
}
.chip.is-selected, .ntf-filter.ativo, .filter-chip.ativo {
  background: var(--grad-gold) !important;
  border-color: transparent !important;
  color: #1a1406 !important;
  font-weight: 600;
}

/* ── 13b. PERFIL ─────────────────────────────────────────── */

.profile-username {
  font-family: var(--font-display) !important;
  font-size: 1.7rem !important;
  font-weight: 600 !important;
  color: var(--text-0);
  letter-spacing: .01em;
}
.profile-top-row { align-items: center; }
.profile-stat-item strong {
  font-family: var(--font-display) !important;
  font-size: 1.3rem !important;
  color: var(--gold-soft) !important;
  font-weight: 600;
}
.profile-stat-item span { font-size: .76rem; color: var(--text-3); }
.profile-cover {
  border: var(--border-gold) !important;
  border-radius: 18px !important;
}
.profile-bio { color: var(--text-1); }
.profile-code {
  background: var(--bg-2) !important;
  border: var(--border-gold) !important;
  border-radius: 8px !important;
  color: var(--gold-soft) !important;
}
.seller-badge {
  background: rgba(212, 175, 55, .12) !important;
  border: 1px solid rgba(212, 175, 55, .4) !important;
  color: var(--gold-soft) !important;
  border-radius: 999px !important;
}

/* ── 15. AUTH / GUEST ────────────────────────────────────── */

.auth-card {
  border: 1px solid rgba(212, 175, 55, .32) !important;
  border-radius: 20px !important;
  box-shadow: 0 24px 80px rgba(0, 0, 0, .6), 0 0 70px rgba(212, 175, 55, .12) !important;
}
.auth-brand img { animation: noirFlutuar 3.6s ease-in-out infinite; }
@keyframes noirFlutuar {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.reg-radio-card {
  border: 1px solid rgba(212, 175, 55, .25) !important;
  border-radius: 999px !important;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 18px !important;
  transition: border-color .2s, background .2s, box-shadow .2s;
  cursor: pointer;
}
.reg-radio-card:hover { border-color: var(--gold) !important; }
.reg-radio-card:has(input:checked) {
  border-color: var(--gold) !important;
  background: rgba(212, 175, 55, .12) !important;
  box-shadow: 0 0 0 2px rgba(212, 175, 55, .18);
}

/* ── 16. MODAIS / DIALOGS ────────────────────────────────── */

.modal, .ss-dialog, .cp-modal {
  background: var(--bg-2) !important;
  border: var(--border-gold) !important;
  border-radius: 20px !important;
  box-shadow: 0 30px 80px -24px rgba(0, 0, 0, .9) !important;
}
.ss-dialog-title, .modal-title { font-family: var(--font-display) !important; font-size: 1.5rem !important; }

/* ── 17. BARRA MOBILE ────────────────────────────────────── */

.mobile-bottom-bar {
  background: rgba(10, 10, 12, .94) !important;
  border-top: var(--border-gold) !important;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.mobile-bottom-bar a { color: var(--text-2); font-size: .66rem; }
.mobile-bottom-bar a.ativo, .mobile-bottom-bar a.is-active { color: var(--gold-soft) !important; }

/* ── 18b. ÁREA ADMIN ──────────────────────────────────────────
   O admin compartilha o shell (sidebar) e agora herda a paleta pelos
   aliases de `app.css`, mas os componentes de gestão (`.section-card`,
   `.table-wrap`, `.metric-card`, `.cfg-card`, `.store-filters`,
   `.empty-state`) ainda eram retângulos cinzentos sem a moldura
   dourada do protótipo. Esta seção aplica a MESMA linguagem dos
   cartões de membro (--bg-2 + --border-gold + raio 16) para que o
   painel não pareça outro produto.

   Sem `!important` na tipografia: `.dash-head h1` já é serifado por
   `app.css`; aqui só garantimos a fonte de display onde o admin usa
   títulos próprios. */

.section-card,
.adm-panel,
.metric-card,
.cfg-card,
.table-wrap,
.store-filters,
.dash-filters,
.empty-state,
.sg-preview-card,
.sg-table-wrap {
  background: var(--bg-2) !important;
  border: var(--border-gold) !important;
  border-radius: var(--radius-lg) !important;
}

.section-card { padding: 24px !important; }
.section-card h2,
.adm-panel-title,
.cfg-card-title,
.fr-sec-title,
.sales-panel h2 {
  font-family: var(--font-display) !important;
  color: var(--text-0) !important;
  letter-spacing: .01em;
}

/* KPI do dashboard: mesmo tratamento dos cards de membro */
.metric-card {
  padding: 18px 20px !important;
  transition: border-color .25s var(--ease), transform .25s var(--ease);
}
.metric-card:hover {
  transform: translateY(-2px);
  border-color: rgba(212, 175, 55, .45) !important;
}
.metric-card.metric-highlight {
  border-color: rgba(212, 175, 55, .5) !important;
  background: rgba(212, 175, 55, .05) !important;
}
.metric-card .metric-value,
.metric-card .metric-label { color: var(--text-0) !important; }
.metric-card .metric-label {
  color: var(--text-2) !important;
  font-size: .68rem !important;
  letter-spacing: .1em !important;
  text-transform: uppercase;
}

/* Cabeçalhos de gestão: título serifado, subtítulo esmaecido */
.dash-head h1,
.adm-head h1,
.store-filters h1 { font-family: var(--font-display) !important; }

/* Tabelas: cabeçalho em versalete dourado, linhas com hover quente */
.table-wrap table thead th,
.sg-table-wrap table thead th {
  background: rgba(212, 175, 55, .05) !important;
  color: var(--gold) !important;
  font-size: .68rem !important;
  letter-spacing: .1em !important;
  text-transform: uppercase !important;
  border-bottom: 1px solid rgba(212, 175, 55, .22) !important;
}
.table-wrap table tbody tr:hover { background: rgba(212, 175, 55, .04) !important; }
.table-wrap table tbody td { border-bottom: 1px solid rgba(255, 255, 255, .04) !important; }

/* Badges de status do admin: pílula, não caixa quadrada.
   `status-ok` era verde (#22c55e). O protótipo aprovado não tem verde em
   lugar nenhum: o selo de "ok" dele é DOURADO (`.modal-badge.ok` usa
   `--grad-gold`). Aqui o "Ativo" da gestão acompanha o aprovado; `status-warn`
   (âmbar) e `status-danger` (vermelho) continuam, porque vermelho É a única
   cor semântica que o protótipo usa (dívida, live no ar, like). */
.adm-chip,
.store-filters .badge {
  border-radius: 999px !important;
  font-size: .7rem !important;
  letter-spacing: .04em !important;
}
.table-wrap .status-ok,
.sg-table-wrap .status-ok {
  background: rgba(212, 175, 55, .12) !important;
  color: var(--gold-soft) !important;
  border: 1px solid rgba(212, 175, 55, .38) !important;
}

/* Wrapper de convites e blocos de ação */
.adm-invites-wrap,
.adm-sec,
.fr-section,
.sales-panel {
  background: var(--bg-2) !important;
  border: var(--border-gold) !important;
  border-radius: var(--radius-lg) !important;
}

/* ── 18. SCROLLBAR DOURADA ───────────────────────────────── */

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--bg-0); }
::-webkit-scrollbar-thumb { background: rgba(212, 175, 55, .25); border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: rgba(212, 175, 55, .4); }

/* ── 19. RESPONSIVO ─────────────────────────────────────── */

@media (max-width: 860px) {
  /* Planos: no mobile o aprovado é 1 COLUNA. Como a seção 13 usa flex com
     `max-width`, o override tem de zerar o max-width E a base flexível,
     senão os cards continuam em 3 colunas apertadas. */
  .pln-grid > * {
    flex: 1 1 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }
  .pln-hero h1 { font-size: 1.5rem !important; }
  .pln-hero { text-align: center !important; }
  .pln-current-pill { text-align: center !important; }

  /* CARD DE POST = IGUAL AO DESKTOP (pedido do dono, 04/12) — MEDIDO.
     Este bloco já teve `.post-card { border-radius: 0 !important }` numa
     tentativa de "desarredondar" o mobile. Estava ERRADO e foi revertido:
     o desktop NÃO renderiza raio 0. A regra `@media (min-width: 681px)`
     pede `border-radius: 0`, mas perde para o grupo do topo deste arquivo
     (`.post-card { border-radius: var(--radius-lg) !important }`), então o
     desktop computa 16px — conferido por CDP em getMatchedStylesForNode.
     Zerar só no mobile criava exatamente a divergência que o dono reclamou,
     e no sentido inverso. Hoje o mobile herda o MESMO grupo do topo (16px),
     sem override aqui: nada a declarar, só o registro do porquê. */
  .pack-card, .lv-card, .notif-item { border-radius: 16px !important; }
  .app-content, .app-shell { padding: 20px 16px 90px !important; }
  .app-shell-side { margin-left: 0 !important; }

  /* O hambúrguer é FIXO (top:14 left:14). Sem folga, o título da tela
     ficava POR BAIXO dele. Empurra o conteúdo para a direita do botão. */
  .app-shell,
  .app-shell-side,
  .dash {
    padding-top: 62px !important;
  }
  .dash-header,
  .tela-header,
  .feed-head {
    padding-left: 52px;
  }
  .sidebar-toggle {
    background: rgba(15, 15, 18, .92) !important;
    border: 1px solid rgba(212, 175, 55, .35) !important;
    border-radius: 10px !important;
    color: var(--gold-soft) !important;
    box-shadow: 0 6px 20px -6px rgba(0, 0, 0, .7) !important;
    backdrop-filter: blur(10px);
  }
}

/* Ranking no mobile: nome não pode invadir o selo de tier nem o score */
@media (max-width: 680px) {
  .rk-row { gap: 8px !important; padding: 10px 10px !important; }
  .rk-row-pos { width: 26px !important; font-size: .82rem !important; }
  .rk-row-avatar { width: 30px !important; height: 30px !important; }
  .rk-row-info { gap: 3px !important; }
  .rk-row-name {
    font-size: .82rem !important;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .rk-row-tier { display: none !important; }
  .rk-row-bar { max-width: 100% !important; }
  .rk-row-metrics span { font-size: .72rem !important; }
  .rk-row-metrics .rk-m-dim { display: none !important; }
}

@media (max-width: 480px) {
  .rk-podium { gap: 8px !important; }
  .rk-hero { padding: 12px 8px !important; }
  .rk-hero-name { font-size: .8rem !important; }
}
