/* ==================== FONTES E VARIÁVEIS ==================== */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;500;600;700&family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;1,300;1,400;1,500&family=EB+Garamond:ital,wght@0,400;0,500;1,400&display=swap');

:root {
  /* Paleta principal — dark purple + black + gold + wine */
  --bg:        #0f0520;
  --bg2:       #150830;
  --bg-card:   #1a0d35;
  --bg-card2:  #200e40;
  --bg-input:  rgba(255,255,255,0.04);
  --gold:      #d4a843;
  --gold-light:#f0c96a;
  --gold-pale: #f8e8c0;
  --gold-dim:  rgba(212,168,67,0.12);
  --gold-glow: rgba(212,168,67,0.25);
  --wine:      #7a1528;
  --wine-dim:  rgba(122,21,40,0.3);
  --magenta:   #c4287a;
  --pink:      #e82497;
  --pink-dim:  rgba(232,36,151,0.15);
  --text:      #f5ead8;
  --text-sub:  #cdb896;
  --text-muted:#8a7465;
  --border:    rgba(212,168,67,0.14);
  --border2:   rgba(212,168,67,0.32);
  --border3:   rgba(212,168,67,0.5);
  --radius:    14px;
  --radius-pill:50px;
  --shadow:    0 10px 40px rgba(0,0,0,0.7);
  --font-d:    'Cinzel', serif;
  --font-b:    'Cormorant Garamond', serif;
  --font-a:    'EB Garamond', serif;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-b);
  font-size: 15px;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
.hidden { display: none !important; }

/* ==================== PARTÍCULAS DOURADAS ==================== */
.particles-bg {
  position: fixed; inset: 0; pointer-events: none;
  overflow: hidden; z-index: 0;
}
.particle {
  position: absolute;
  width: var(--pw,3px); height: var(--ph,12px);
  background: var(--gold);
  opacity: var(--po,0.35);
  border-radius: 2px;
  transform: rotate(var(--pr,45deg));
  animation: particleFall var(--pd,8s) linear var(--pdelay,0s) infinite;
}
@keyframes particleFall {
  0%   { top:-20px; transform:rotate(var(--pr,45deg)) translateX(0); opacity:var(--po,0.35); }
  50%  { transform:rotate(calc(var(--pr,45deg)+20deg)) translateX(var(--drift,30px)); }
  100% { top:110vh; transform:rotate(calc(var(--pr,45deg)+40deg)) translateX(calc(var(--drift,30px)*2)); opacity:0; }
}

/* ==================== SPLASH ==================== */
#splash {
  position: fixed; inset: 0; z-index: 9999;
  background: radial-gradient(ellipse at 50% 40%, #1a063a 0%, #0f0520 70%);
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 1.5rem;
}
.splash-out { animation: splashOut 0.8s ease forwards; }
@keyframes splashOut { to { opacity:0; pointer-events:none; } }
.splash-inner { text-align: center; animation: fadeUp 0.9s ease; }
@keyframes fadeUp { from { opacity:0; transform:translateY(22px); } to { opacity:1; transform:translateY(0); } }
.splash-symbol {
  font-size: 3.2rem; color: var(--gold);
  animation: glowPulse 2.2s ease-in-out infinite alternate;
  display: block; margin-bottom: 1rem;
  filter: drop-shadow(0 0 20px var(--gold));
}
@keyframes glowPulse {
  from { filter: drop-shadow(0 0 8px var(--gold)); }
  to   { filter: drop-shadow(0 0 40px var(--gold-light)) drop-shadow(0 0 80px rgba(212,168,67,0.4)); }
}
.splash-name {
  font-family: var(--font-d); font-size: 1.35rem; font-weight: 600;
  color: var(--gold-light); letter-spacing: 0.28em; text-transform: uppercase;
  display: block; margin-bottom: 0.3rem;
  text-shadow: 0 0 40px rgba(212,168,67,0.5);
}
.splash-tagline {
  font-family: var(--font-b); font-style: italic;
  color: var(--text-muted); font-size: 0.8rem; letter-spacing: 0.18em;
  text-transform: uppercase;
}
.splash-dots { display: flex; gap: 8px; justify-content: center; margin-top: 0.5rem; }
.splash-dots span {
  width: 6px; height: 6px; border-radius: 50%; background: var(--gold); opacity: 0.4;
  animation: dotPulse 1.4s ease-in-out infinite;
}
.splash-dots span:nth-child(2) { animation-delay: 0.2s; }
.splash-dots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes dotPulse { 0%,80%,100% { transform:scale(0.6); opacity:0.3; } 40% { transform:scale(1); opacity:1; } }

/* ==================== CHUVA DE OURO (LOGIN) ==================== */
.gold-rain { position: fixed; inset: 0; pointer-events: none; overflow: hidden; z-index: 0; }
.gold-drop {
  position: absolute; top: -30px;
  width: var(--gw,3px); height: var(--gh,14px);
  background: linear-gradient(to bottom, transparent, var(--gold), transparent);
  border-radius: 2px;
  animation: goldDrop var(--gd,5s) linear var(--gdelay,0s) infinite;
  opacity: 0.5;
}
@keyframes goldDrop {
  0%   { top: -30px; opacity: 0.6; }
  80%  { opacity: 0.3; }
  100% { top: 110vh; opacity: 0; }
}

/* ==================== LOGIN ==================== */
#loginScreen {
  min-height: 100vh; position: relative; z-index: 1;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 2rem 1.5rem;
  background: radial-gradient(ellipse at 50% 30%, rgba(60,10,100,0.55) 0%, transparent 68%);
}
.login-brand { text-align: center; margin-bottom: 2rem; }
.login-brand-title {
  font-family: var(--font-d); font-size: 1.6rem; font-weight: 600;
  color: var(--gold-light); letter-spacing: 0.24em; text-transform: uppercase;
  line-height: 1.25; margin-bottom: 0.4rem;
  text-shadow: 0 0 30px rgba(212,168,67,0.35);
}
.login-brand-sub {
  font-family: var(--font-d); font-size: 0.6rem; letter-spacing: 0.38em;
  color: var(--text-muted); text-transform: uppercase;
}
.login-quote {
  font-family: var(--font-b); font-style: italic;
  color: var(--text-sub); font-size: 0.92rem; line-height: 1.65;
  text-align: center; max-width: 320px; margin-bottom: 1.8rem;
}
.login-box {
  width: 100%; max-width: 360px;
  background: rgba(26,13,53,0.75);
  border: 1px solid var(--border2);
  border-radius: var(--radius);
  padding: 1.8rem 1.5rem;
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow), 0 0 60px rgba(212,168,67,0.07);
}
.login-field-label {
  font-family: var(--font-d); font-size: 0.6rem; letter-spacing: 0.22em;
  color: var(--gold); text-transform: uppercase; display: block; margin-bottom: 0.5rem;
}
.login-input {
  width: 100%; padding: 0.82rem 1.1rem;
  background: var(--bg-input); border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  color: var(--text); font-family: var(--font-b); font-size: 1rem; font-style: italic;
  outline: none; transition: border-color 0.3s, box-shadow 0.3s;
  margin-bottom: 0.9rem;
  letter-spacing: 0.05em;
}
.login-input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(212,168,67,0.1); }
.login-input::placeholder { color: var(--text-muted); }
.btn-veu {
  width: 100%; padding: 0.9rem;
  background: linear-gradient(135deg, #b8942a, var(--gold-light), #b8942a);
  border: none; border-radius: var(--radius-pill);
  color: #1a0d2e; font-family: var(--font-d);
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.22em;
  cursor: pointer; transition: all 0.3s;
}
.btn-veu:hover { filter: brightness(1.1); box-shadow: 0 4px 22px rgba(212,168,67,0.45); transform: translateY(-1px); }
.login-note {
  text-align: center; margin-top: 1.1rem;
  color: var(--text-muted); font-size: 0.76rem; line-height: 1.55;
}
.login-error {
  background: rgba(122,21,40,0.3); border: 1px solid var(--wine);
  border-radius: 8px; padding: 0.6rem 1rem;
  color: #f09090; font-size: 0.85rem; margin-bottom: 0.8rem; text-align: center;
}
.login-links { margin-top: 1.4rem; text-align: center; font-size: 0.76rem; }
.login-links a { color: var(--gold); text-decoration: underline; margin: 0 0.5rem; }

/* ==================== MODAL TERMOS ==================== */
.modal-overlay {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(0,0,0,0.9);
  display: flex; align-items: center; justify-content: center;
  padding: 1rem; backdrop-filter: blur(8px);
}
.modal-box {
  background: var(--bg-card);
  border: 1px solid var(--border2);
  border-radius: var(--radius);
  padding: 1.7rem 1.5rem;
  width: 100%; max-width: 480px;
  max-height: 88vh;
  display: flex; flex-direction: column;
  box-shadow: var(--shadow), 0 0 60px rgba(212,168,67,0.08);
}
.modal-box-tall { max-height: 85vh; }
.modal-title {
  font-family: var(--font-d); font-size: 0.88rem; font-weight: 600;
  color: var(--gold-light); letter-spacing: 0.16em;
  text-align: center; margin-bottom: 1rem; flex-shrink: 0;
  text-transform: uppercase;
}
.modal-scroll {
  overflow-y: auto; flex: 1; padding-right: 0.4rem;
  font-size: 0.9rem; line-height: 1.8;
  color: var(--text-sub); margin-bottom: 1rem;
  scrollbar-width: thin; scrollbar-color: var(--border) transparent;
}
.modal-scroll h3 {
  font-family: var(--font-d); color: var(--gold); font-size: 0.68rem;
  letter-spacing: 0.15em; text-transform: uppercase; margin: 1.2rem 0 0.4rem;
}
.modal-scroll p { margin-bottom: 0.5rem; }
.modal-final {
  margin-top: 1.5rem !important; color: var(--gold-pale) !important;
  font-style: italic; text-align: center; border-top: 1px solid var(--border); padding-top: 1rem;
}
.modal-textarea {
  width: 100%; padding: 0.8rem 1rem;
  background: var(--bg-input); border: 1px solid var(--border);
  border-radius: 10px; color: var(--text);
  font-family: var(--font-b); font-size: 0.95rem; line-height: 1.65;
  outline: none; resize: vertical; min-height: 110px; margin-top: 0.8rem;
}
.modal-textarea:focus { border-color: var(--gold); }
.modal-textarea-sm { min-height: 75px; }
.modal-actions { display: flex; gap: 0.7rem; margin-top: 0.8rem; flex-shrink: 0; }
.modal-actions > * { flex: 1; }

/* ==================== BOTÕES ==================== */
.btn-gold {
  padding: 0.8rem 1.2rem;
  background: linear-gradient(135deg, #b8942a, var(--gold-light));
  border: none; border-radius: var(--radius-pill);
  color: #1a0d2e; font-family: var(--font-d); font-size: 0.73rem;
  font-weight: 700; letter-spacing: 0.16em; cursor: pointer; transition: all 0.3s;
  display: block; width: 100%; text-align: center;
}
.btn-gold:hover { filter: brightness(1.1); transform: translateY(-1px); box-shadow: 0 4px 20px rgba(212,168,67,0.35); }
.btn-gold:disabled { opacity: 0.4; cursor: not-allowed; transform: none; }
.btn-wine {
  padding: 0.8rem 1.2rem;
  background: rgba(122,21,40,0.35); border: 1px solid var(--wine);
  border-radius: var(--radius-pill);
  color: var(--gold-pale); font-family: var(--font-d); font-size: 0.73rem;
  font-weight: 600; letter-spacing: 0.12em; cursor: pointer; transition: all 0.3s;
  display: block; width: 100%; text-align: center;
}
.btn-wine:hover { background: rgba(122,21,40,0.55); }
.btn-sm { width: auto; display: inline-block; padding: 0.45rem 0.9rem; font-size: 0.68rem; }
.btn-center { display: block; width: auto; margin: 1rem auto; padding: 0.65rem 2rem; }

/* ==================== APP HEADER ==================== */
.app-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  height: 58px;
  background: rgba(12,4,24,0.94);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(18px);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 1rem;
}
.header-brand { display: flex; flex-direction: column; }
.header-brand-name {
  font-family: var(--font-d); font-size: 0.78rem; font-weight: 600;
  color: var(--gold-light); letter-spacing: 0.22em; text-transform: uppercase;
  line-height: 1;
}
.header-brand-sub {
  font-family: var(--font-b); font-style: italic;
  font-size: 0.65rem; color: var(--text-muted); letter-spacing: 0.1em;
  margin-top: 2px;
}
.header-actions { display: flex; align-items: center; gap: 0.55rem; }
.header-btn {
  position: relative; background: rgba(212,168,67,0.07);
  border: 1px solid var(--border); border-radius: 50%;
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--text-sub); font-size: 1rem;
  transition: all 0.3s;
}
.header-btn:hover { border-color: var(--gold); color: var(--gold); }
.notif-dot {
  position: absolute; top: 3px; right: 3px;
  width: 8px; height: 8px; background: var(--pink);
  border-radius: 50%; border: 2px solid var(--bg);
}
.header-avatar-btn {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--bg-card2); border: 2px solid var(--gold);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 1.1rem; transition: all 0.3s;
}
.header-avatar-btn:hover { box-shadow: 0 0 14px rgba(212,168,67,0.45); }

/* ==================== NAV INFERIOR ==================== */
.app-nav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 200;
  background: rgba(8,2,18,0.97);
  border-top: 1px solid var(--border);
  backdrop-filter: blur(18px);
  display: flex; align-items: stretch;
}
.nav-item {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 0.5rem 0.2rem 0.6rem;
  cursor: pointer; background: none; border: none;
  color: var(--text-muted); transition: color 0.3s;
  min-height: 56px;
}
.nav-item.active { color: var(--gold); }
.nav-item.active .nav-icon { text-shadow: 0 0 12px rgba(212,168,67,0.6); }
.nav-item:hover { color: var(--text-sub); }
.nav-icon { font-size: 1.1rem; line-height: 1; }
.nav-label {
  font-family: var(--font-d); font-size: 0.48rem;
  letter-spacing: 0.08em; text-transform: uppercase;
  margin-top: 3px; line-height: 1;
}

/* ==================== SCREENS ==================== */
.app-screen {
  padding-top: 66px; padding-bottom: 64px;
  min-height: 100vh;
}
.app-screen.hidden { display: none; }

/* ==================== DESTAQUE DIÁRIO ==================== */
.destaque-wrap { padding: 0.9rem 1rem 0; }
.destaque-label {
  font-family: var(--font-d); font-size: 0.58rem; letter-spacing: 0.26em;
  color: var(--gold); text-transform: uppercase; margin-bottom: 0.5rem;
  display: flex; align-items: center; gap: 0.5rem;
}
.destaque-label::before, .destaque-label::after { content:''; flex:1; height:1px; background:var(--border); }
.destaque-card {
  background: linear-gradient(135deg, rgba(32,14,64,0.9) 0%, rgba(50,16,80,0.8) 50%, rgba(32,14,64,0.9) 100%);
  border: 1px solid var(--border2);
  border-radius: var(--radius);
  padding: 1.2rem 1.2rem;
  position: relative; overflow: hidden; margin-bottom: 0.5rem;
  box-shadow: 0 4px 24px rgba(0,0,0,0.5), inset 0 1px 0 rgba(212,168,67,0.08);
}
.destaque-card::after {
  content: '✦'; position: absolute; right: 0.8rem; top: 50%; transform: translateY(-50%);
  font-size: 4.5rem; color: var(--gold); opacity: 0.045; pointer-events: none;
}
.destaque-title {
  font-family: var(--font-d); font-size: 0.65rem; letter-spacing: 0.22em;
  color: var(--gold); text-transform: uppercase; margin-bottom: 0.55rem;
}
.destaque-text {
  font-family: var(--font-b); font-style: italic;
  font-size: 0.98rem; line-height: 1.78; color: var(--text);
}
.destaque-meta {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 0.75rem; padding-top: 0.65rem; border-top: 1px solid var(--border);
}
.destaque-cat {
  font-family: var(--font-d); font-size: 0.58rem; letter-spacing: 0.12em;
  color: var(--wine); text-transform: uppercase;
}
.destaque-counts { font-size: 0.75rem; color: var(--text-muted); display: flex; gap: 0.8rem; }

/* ==================== FILTROS ==================== */
.filter-scroll {
  display: flex; gap: 0.5rem; padding: 0.65rem 1rem;
  overflow-x: auto; scrollbar-width: none;
}
.filter-scroll::-webkit-scrollbar { display: none; }
.filter-btn {
  display: flex; align-items: center; gap: 0.3rem;
  padding: 0.42rem 0.85rem; border-radius: var(--radius-pill);
  background: rgba(255,255,255,0.03); border: 1px solid var(--border);
  color: var(--text-muted); font-family: var(--font-d); font-size: 0.65rem;
  letter-spacing: 0.06em; white-space: nowrap; cursor: pointer; transition: all 0.3s;
}
.filter-btn.active {
  background: linear-gradient(135deg, #b8942a, var(--gold-light));
  border-color: transparent; color: #1a0d2e; font-weight: 700;
}
.filter-btn:not(.active):hover { border-color: var(--border2); color: var(--text-sub); }

/* ==================== FEED / CARDS ==================== */
.feed-list { padding: 0 1rem 2rem; display: flex; flex-direction: column; gap: 0.7rem; }
.relato-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.1rem 0.85rem;
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.2s;
}
.relato-card:hover { border-color: var(--border2); box-shadow: 0 6px 24px rgba(0,0,0,0.5); transform: translateY(-1px); }
.relato-card.top-semana { border-color: rgba(212,168,67,0.38); box-shadow: 0 2px 16px rgba(212,168,67,0.05); }
.relato-top {
  display: flex; align-items: flex-start; gap: 0.65rem; margin-bottom: 0.55rem;
}
.relato-avatar {
  width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0;
  background: var(--bg-card2); border: 1px solid var(--border2);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
}
.relato-meta { flex: 1; min-width: 0; }
.relato-anon {
  font-family: var(--font-b); font-style: italic; font-weight: 500;
  color: var(--gold); font-size: 0.86rem; letter-spacing: 0.03em;
  display: block; line-height: 1.3;
}
.relato-time { font-size: 0.7rem; color: var(--text-muted); margin-top: 1px; display: block; }
.relato-cat-badge {
  background: rgba(212,168,67,0.1); border: 1px solid rgba(212,168,67,0.22);
  border-radius: var(--radius-pill); padding: 0.18rem 0.55rem;
  font-family: var(--font-d); font-size: 0.56rem; letter-spacing: 0.07em;
  color: var(--gold); white-space: nowrap; flex-shrink: 0;
  display: flex; align-items: center; gap: 0.22rem;
}
.relato-titulo {
  font-family: var(--font-d); font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold-light);
  margin-bottom: 0.4rem; line-height: 1.4;
}
.relato-texto {
  font-family: var(--font-b); font-style: italic;
  font-size: 0.94rem; line-height: 1.78; color: var(--text-sub);
  margin-bottom: 0.25rem;
}
.relato-lermais {
  font-family: var(--font-b); font-style: italic; font-size: 0.8rem;
  color: var(--gold); cursor: pointer;
}
.relato-bottom {
  display: flex; align-items: center; gap: 0.5rem;
  padding-top: 0.65rem; border-top: 1px solid rgba(255,255,255,0.04);
  margin-top: 0.55rem;
}
.relato-action {
  background: none; border: none; cursor: pointer;
  display: flex; align-items: center; gap: 0.28rem;
  font-size: 0.78rem; color: var(--text-muted); padding: 0.22rem 0.4rem;
  border-radius: 6px; transition: color 0.2s, background 0.2s;
}
.relato-action:hover { color: var(--gold); background: var(--gold-dim); }
.relato-action.liked { color: var(--pink); }
.relato-action.denuncia:hover { color: #e05060; }
.relato-spacer { flex: 1; }
.relato-num {
  font-family: var(--font-d); font-size: 0.56rem; letter-spacing: 0.1em;
  color: var(--text-muted); text-transform: uppercase;
}

/* ==================== FAB ==================== */
.fab {
  position: fixed; bottom: 70px; right: 1.1rem; z-index: 150;
  width: 52px; height: 52px; border-radius: 50%;
  background: linear-gradient(135deg, #b8942a, var(--gold-light));
  border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; color: #1a0d2e;
  box-shadow: 0 4px 22px rgba(212,168,67,0.45), 0 2px 8px rgba(0,0,0,0.4);
  transition: all 0.3s;
}
.fab:hover { transform: scale(1.09); box-shadow: 0 6px 30px rgba(212,168,67,0.55); }

/* ==================== GLOSSÁRIO ==================== */
.gloss-tabs-wrap { padding: 0 1rem 0; overflow-x: auto; scrollbar-width: none; }
.gloss-tabs-wrap::-webkit-scrollbar { display: none; }
.gloss-tabs {
  display: flex; gap: 0; border-bottom: 1px solid var(--border);
  min-width: max-content;
}
.gloss-tab {
  padding: 0.6rem 0.85rem; background: none; border: none;
  border-bottom: 2px solid transparent; margin-bottom: -1px;
  font-family: var(--font-d); font-size: 0.58rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--text-muted); cursor: pointer;
  white-space: nowrap; transition: all 0.3s;
}
.gloss-tab.active { color: var(--gold); border-bottom-color: var(--gold); }
.gloss-tab:hover:not(.active) { color: var(--text-sub); }
.gloss-content { padding: 0.8rem 1rem 4rem; }
.gloss-search {
  display: flex; align-items: center; gap: 0.5rem;
  background: var(--bg-input); border: 1px solid var(--border);
  border-radius: var(--radius-pill); padding: 0.5rem 1rem;
  margin-bottom: 1rem;
}
.gloss-search input {
  background: none; border: none; color: var(--text);
  font-family: var(--font-b); font-size: 0.9rem; font-style: italic;
  outline: none; flex: 1;
}
.gloss-search input::placeholder { color: var(--text-muted); }
.gloss-search-icon { color: var(--gold); font-size: 0.8rem; }
.gloss-section { margin-bottom: 1.5rem; }
.gloss-section-head {
  display: flex; align-items: center; gap: 0.6rem;
  margin-bottom: 0.8rem;
}
.gloss-cat-badge {
  font-family: var(--font-d); font-size: 0.52rem; letter-spacing: 0.15em;
  color: var(--gold); text-transform: uppercase;
  background: var(--gold-dim); border: 1px solid var(--border2);
  border-radius: var(--radius-pill); padding: 0.2rem 0.6rem;
}
.gloss-cat-name {
  font-family: var(--font-d); font-size: 0.68rem; letter-spacing: 0.15em;
  color: var(--text-sub); text-transform: uppercase;
}
.gloss-tags { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-bottom: 0.45rem; }
.gloss-tag {
  display: inline-flex; align-items: center; gap: 0.3rem;
  background: rgba(255,255,255,0.03); border: 1px solid var(--border);
  border-radius: var(--radius-pill); padding: 0.28rem 0.7rem;
  font-family: var(--font-b); font-style: italic; font-size: 0.85rem;
  color: var(--text-sub); cursor: pointer; transition: all 0.25s;
  user-select: none;
}
.gloss-tag:hover { border-color: var(--border3); color: var(--gold-light); background: var(--gold-dim); }
.gloss-tag-copy { font-size: 0.65rem; opacity: 0.5; }
.gloss-desc {
  font-family: var(--font-b); font-style: italic;
  font-size: 0.82rem; color: var(--text-muted); line-height: 1.6;
  margin-bottom: 1rem; padding-left: 0.2rem;
}

/* ==================== SEÇÃO HEADER ==================== */
.section-hd { padding: 1.2rem 1rem 0.4rem; }
.section-hd-title {
  font-family: var(--font-d); font-size: 0.88rem; font-weight: 600;
  letter-spacing: 0.15em; text-transform: uppercase; color: var(--gold-light);
  margin-bottom: 0.25rem;
}
.section-hd-sub {
  font-family: var(--font-b); font-style: italic;
  font-size: 0.85rem; color: var(--text-muted);
}

/* ==================== CLUBE ==================== */
.clube-list { padding: 0 1rem 4rem; display: flex; flex-direction: column; gap: 0.8rem; }
.clube-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.1rem;
  transition: border-color 0.3s;
}
.clube-card:hover { border-color: var(--border2); }
.clube-header { display: flex; gap: 0.8rem; margin-bottom: 0.7rem; }
.clube-tipo { font-size: 1.4rem; line-height: 1.3; }
.clube-titulo {
  font-family: var(--font-d); font-size: 0.8rem; font-weight: 600;
  letter-spacing: 0.08em; color: var(--gold-light);
}
.clube-autor {
  font-family: var(--font-b); font-style: italic;
  font-size: 0.78rem; color: var(--text-muted); margin-top: 0.2rem;
}
.clube-resenha {
  font-family: var(--font-b); font-style: italic;
  font-size: 0.9rem; line-height: 1.7; color: var(--text-sub);
  margin-bottom: 0.7rem;
}
.clube-foot {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 0.6rem; border-top: 1px solid rgba(255,255,255,0.04);
  font-family: var(--font-d); font-size: 0.6rem; color: var(--text-muted); letter-spacing: 0.1em;
}

/* ==================== NOTIFICAÇÕES ==================== */
.notif-list { padding: 0 1rem; display: flex; flex-direction: column; gap: 0.5rem; }
.notif-item {
  display: flex; gap: 0.8rem; align-items: flex-start;
  padding: 0.9rem 1rem; background: var(--bg-card);
  border: 1px solid var(--border); border-radius: var(--radius);
  transition: border-color 0.3s;
}
.notif-item.unread { border-color: var(--border2); background: rgba(32,14,56,0.8); }
.notif-icon { font-size: 1.1rem; flex-shrink: 0; padding-top: 0.1rem; }
.notif-text { font-family: var(--font-b); font-size: 0.9rem; line-height: 1.55; color: var(--text); }
.notif-time { font-size: 0.7rem; color: var(--text-muted); margin-top: 0.25rem; }

/* ==================== PERFIL ==================== */
.perfil-top {
  text-align: center; padding: 1.8rem 1rem 1.2rem;
  background: linear-gradient(180deg, rgba(30,14,60,0.9) 0%, transparent 100%);
  border-bottom: 1px solid var(--border);
}
.perfil-avatar-wrap { position: relative; display: inline-block; margin-bottom: 0.9rem; }
.perfil-avatar {
  width: 80px; height: 80px; border-radius: 50%;
  background: var(--bg-card2); border: 2px solid var(--gold);
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem; margin: 0 auto;
  box-shadow: 0 0 0 6px rgba(212,168,67,0.08);
}
.perfil-edit-btn {
  position: absolute; bottom: 0; right: 0;
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--gold); color: #1a0d2e;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem; cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}
.perfil-codinome-label {
  font-family: var(--font-d); font-size: 0.56rem; letter-spacing: 0.2em;
  color: var(--text-muted); text-transform: uppercase; margin-bottom: 0.25rem;
}
.perfil-codinome {
  font-family: var(--font-b); font-style: italic; font-size: 1.4rem;
  color: var(--gold-light); line-height: 1.2; margin-bottom: 0.2rem;
}
.perfil-code {
  font-family: var(--font-d); font-size: 0.62rem; letter-spacing: 0.18em;
  color: var(--text-muted); text-transform: uppercase; margin-bottom: 0.35rem;
}
.perfil-plano {
  display: inline-block;
  background: var(--gold-dim); border: 1px solid var(--border2);
  border-radius: var(--radius-pill); padding: 0.22rem 0.8rem;
  font-family: var(--font-d); font-size: 0.6rem; letter-spacing: 0.1em;
  color: var(--gold); text-transform: uppercase;
}
.perfil-welcome {
  font-family: var(--font-b); font-style: italic;
  font-size: 0.88rem; color: var(--text-muted); text-align: center;
  padding: 0.8rem 1.5rem; line-height: 1.55;
}

/* Ranking / Stats perfil */
.perfil-stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.6rem;
  padding: 0.8rem 1rem;
}
.perfil-stat {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 10px; padding: 0.7rem 0.4rem;
  text-align: center;
}
.perfil-stat-num {
  font-family: var(--font-d); font-size: 1.1rem; color: var(--gold);
  font-weight: 600;
}
.perfil-stat-label {
  font-family: var(--font-d); font-size: 0.52rem; color: var(--text-muted);
  letter-spacing: 0.08em; text-transform: uppercase; margin-top: 0.2rem;
}

/* ==================== BADGES ==================== */
.badges-section { padding: 1rem; }
.badges-title {
  font-family: var(--font-d); font-size: 0.7rem; letter-spacing: 0.16em;
  color: var(--gold); text-transform: uppercase; margin-bottom: 0.8rem;
  text-align: center;
}
.badges-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.6rem;
}
.badge-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 10px; padding: 0.7rem 0.5rem;
  text-align: center; transition: all 0.3s;
  display: flex; flex-direction: column; gap: 0.2rem; align-items: center;
}
.badge-card.earned { border-color: var(--border2); background: linear-gradient(135deg, var(--bg-card) 0%, rgba(40,20,70,0.8) 100%); }
.badge-card.locked { opacity: 0.38; filter: grayscale(0.5); }
.badge-icon { font-size: 1.5rem; line-height: 1.2; }
.badge-name { font-family: var(--font-d); font-size: 0.55rem; letter-spacing: 0.08em; color: var(--gold); text-transform: uppercase; }
.badge-desc { font-family: var(--font-b); font-size: 0.68rem; color: var(--text-muted); font-style: italic; line-height: 1.3; }

/* ==================== PERFIL ACTIONS ==================== */
.perfil-actions { padding: 0.5rem 1rem 2rem; display: flex; flex-direction: column; gap: 0.7rem; }

/* ==================== AVATAR MODAL ==================== */
.avatar-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.6rem;
  margin-bottom: 1rem;
}
.avatar-opt {
  width: 100%; aspect-ratio: 1; border-radius: 10px;
  background: var(--bg-input); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; cursor: pointer; transition: all 0.3s;
}
.avatar-opt:hover { border-color: var(--border2); background: var(--gold-dim); }
.avatar-opt.selected { border-color: var(--gold); background: var(--gold-dim); box-shadow: 0 0 0 3px rgba(212,168,67,0.2); }

/* ==================== COMENTÁRIOS ==================== */
.coment-list { overflow-y: auto; flex: 1; margin-bottom: 0.8rem; max-height: 42vh; }
.coment-item {
  padding: 0.7rem 0; border-bottom: 1px solid rgba(255,255,255,0.04);
}
.coment-anon {
  font-family: var(--font-d); font-size: 0.6rem; letter-spacing: 0.1em;
  color: var(--gold); text-transform: uppercase; margin-bottom: 0.3rem;
}
.coment-text {
  font-family: var(--font-b); font-style: italic;
  font-size: 0.9rem; line-height: 1.65; color: var(--text-sub);
}
.coment-form { display: flex; gap: 0.5rem; align-items: flex-end; margin-top: 0.5rem; flex-shrink: 0; }
.coment-form .modal-textarea { margin-top: 0; flex: 1; }

/* ==================== DIAMOND NOTIF ==================== */
.diamond-notif {
  position: fixed; inset: 0; z-index: 3000;
  background: rgba(0,0,0,0.88); backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
}
.diamond-rain { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.diamond-p {
  position: absolute; top: -40px; font-size: 1.2rem;
  animation: dFall linear infinite;
}
@keyframes dFall { to { top: 110%; opacity: 0; } }
.diamond-box {
  position: relative; z-index: 1; text-align: center;
  background: var(--bg-card); border: 1px solid var(--border2);
  border-radius: var(--radius); padding: 2rem 1.5rem;
  max-width: 300px; width: 90%;
  box-shadow: var(--shadow), 0 0 80px rgba(212,168,67,0.1);
}
.diamond-em { font-size: 2.5rem; display: block; margin-bottom: 0.7rem; }
.diamond-ttl { font-family: var(--font-d); font-size: 0.88rem; letter-spacing: 0.12em; color: var(--gold-light); text-transform: uppercase; margin-bottom: 0.4rem; }
.diamond-sub { font-family: var(--font-b); font-style: italic; font-size: 0.88rem; color: var(--text-muted); margin-bottom: 1rem; }

/* ==================== TOAST ==================== */
.toast {
  position: fixed; bottom: 80px; left: 50%; transform: translateX(-50%);
  background: rgba(26,13,53,0.95); border: 1px solid var(--border2);
  border-radius: var(--radius-pill); padding: 0.6rem 1.4rem;
  font-family: var(--font-b); font-size: 0.88rem; color: var(--text);
  z-index: 5000; white-space: nowrap; opacity: 0; pointer-events: none;
  backdrop-filter: blur(12px); box-shadow: 0 4px 20px rgba(0,0,0,0.5);
  transition: opacity 0.3s;
}
.toast.show { opacity: 1; pointer-events: auto; }

/* ==================== DISCLAIMER ANONIMATO ==================== */
.anon-disclaimer {
  margin: 0.4rem 1rem 0.2rem;
  padding: 0.55rem 0.9rem;
  background: rgba(212,168,67,0.06); border: 1px solid rgba(212,168,67,0.18);
  border-radius: 8px;
  font-family: var(--font-d); font-size: 0.55rem; letter-spacing: 0.08em;
  color: var(--text-muted); text-align: center; text-transform: uppercase;
}

/* ==================== COMPARTILHAR LINK (aba compra) ==================== */
.share-invite-wrap { padding: 1rem; }
.share-invite-card {
  background: var(--bg-card); border: 1px solid var(--border2);
  border-radius: var(--radius); padding: 1.3rem;
  text-align: center;
}
.share-invite-title {
  font-family: var(--font-d); font-size: 0.78rem; letter-spacing: 0.14em;
  color: var(--gold-light); text-transform: uppercase; margin-bottom: 0.6rem;
}
.share-invite-text {
  font-family: var(--font-b); font-style: italic;
  font-size: 0.9rem; color: var(--text-sub); line-height: 1.65; margin-bottom: 1rem;
}
.share-invite-url {
  background: var(--bg-input); border: 1px solid var(--border);
  border-radius: 8px; padding: 0.55rem 0.8rem;
  font-family: var(--font-d); font-size: 0.65rem; color: var(--gold);
  letter-spacing: 0.08em; margin-bottom: 1rem; word-break: break-all;
}

/* ==================== PÁGINAS LEGAIS ==================== */
body.legal-page {
  background: var(--bg);
  min-height: 100vh;
}
.legal-container {
  max-width: 680px; margin: 0 auto; padding: 3rem 1.5rem 4rem;
}
.legal-back {
  font-family: var(--font-d); font-size: 0.68rem; letter-spacing: 0.1em;
  color: var(--gold); text-decoration: none; text-transform: uppercase;
  display: inline-block; margin-bottom: 2rem;
  transition: color 0.2s;
}
.legal-back:hover { color: var(--gold-light); }
.legal-logo { font-size: 2rem; color: var(--gold); text-align: center; margin-bottom: 1rem; }
.legal-title {
  font-family: var(--font-d); font-size: 1.2rem; font-weight: 600;
  color: var(--gold-light); letter-spacing: 0.2em; text-transform: uppercase;
  text-align: center; margin-bottom: 0.3rem;
}
.legal-sub { text-align: center; color: var(--text-muted); font-style: italic; margin-bottom: 2rem; font-size: 0.85rem; }
.legal-container h2 {
  font-family: var(--font-d); font-size: 0.72rem; color: var(--gold);
  letter-spacing: 0.15em; text-transform: uppercase; margin: 1.5rem 0 0.5rem;
}
.legal-container p, .legal-container li {
  font-family: var(--font-b); font-size: 0.95rem; line-height: 1.75;
  color: var(--text-sub); margin-bottom: 0.5rem;
}
.legal-container ul { padding-left: 1.2rem; }
.legal-final {
  margin-top: 2rem; padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-style: italic; color: var(--gold-pale); text-align: center;
  font-size: 0.9rem;
}
.legal-footer {
  border-top: 1px solid var(--border); padding: 1.2rem;
  text-align: center; font-size: 0.75rem;
}
.legal-footer a { color: var(--gold); text-decoration: underline; margin: 0 0.5rem; }
