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

:root {
  --bg-deep: #0a0015;
  --bg-dark: #0f001e;
  --bg-card: #130025;
  --bg-card2: #180030;
  --gold: #c9a84c;
  --gold-light: #e8c97a;
  --gold-pale: #f5e6b8;
  --wine: #4a0a18;
  --wine-light: #7a1428;
  --wine-vivid: #9b1a32;
  --text: #f0e8d0;
  --text-muted: #a89070;
  --border: rgba(201,168,76,0.2);
  --border-strong: rgba(201,168,76,0.4);
  --shadow: 0 4px 30px rgba(0,0,0,0.7);
  --radius: 14px;
  --radius-sm: 8px;
  --font-display: 'Cinzel', serif;
  --font-body: 'Cormorant Garamond', serif;
  --font-alt: 'EB Garamond', serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
  height: 100%;
  background: var(--bg-deep);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  overflow-x: hidden;
}

.hidden { display: none !important; }
.screen { min-height: 100vh; }

/* ==================== SPLASH ==================== */
#splash {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--bg-deep);
  display: flex; align-items: center; justify-content: center;
  animation: splashFade 0.6s ease 3s forwards;
}
@keyframes splashFade { to { opacity: 0; pointer-events: none; } }

.splash-content { text-align: center; animation: splashIn 0.8s ease; }
@keyframes splashIn { from { opacity:0; transform: scale(0.8); } to { opacity:1; transform: scale(1); } }

.splash-veil {
  font-size: 3.5rem; color: var(--gold);
  animation: splashGlow 1.5s ease-in-out infinite alternate;
  display: block; margin-bottom: 1rem;
}
@keyframes splashGlow {
  from { text-shadow: 0 0 20px var(--gold), 0 0 40px var(--gold-light); }
  to { text-shadow: 0 0 40px var(--gold), 0 0 80px var(--gold-light), 0 0 120px #fff8; }
}

.splash-title {
  font-family: var(--font-display);
  font-size: 1.6rem; font-weight: 600;
  color: var(--gold-light);
  letter-spacing: 0.1em;
  margin-bottom: 0.4rem;
}

.splash-sub {
  font-family: var(--font-body);
  font-style: italic; color: var(--text-muted);
  font-size: 0.95rem; letter-spacing: 0.2em;
  text-transform: uppercase;
}

.splash-loader {
  display: flex; gap: 0.6rem; justify-content: center; margin-top: 2.5rem;
}
.splash-loader span {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--gold);
  animation: bounce 1.2s ease-in-out infinite;
}
.splash-loader span:nth-child(2) { animation-delay: 0.2s; }
.splash-loader span:nth-child(3) { animation-delay: 0.4s; }
@keyframes bounce {
  0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
  40% { transform: scale(1); opacity: 1; }
}

/* ==================== CHUVA DE OURO ==================== */
.gold-rain {
  position: fixed; inset: 0; pointer-events: none; overflow: hidden; z-index: 0;
}
.gold-particle {
  position: absolute; top: -20px;
  width: var(--w, 6px); height: var(--w, 6px);
  border-radius: 50%;
  background: radial-gradient(circle, var(--gold-light), var(--gold));
  opacity: 0.7;
  animation: goldFall var(--dur, 4s) linear var(--delay, 0s) infinite;
}
@keyframes goldFall {
  0% { top: -20px; opacity: 0.8; transform: translateX(0) rotate(0deg); }
  50% { opacity: 1; transform: translateX(var(--drift, 20px)) rotate(180deg); }
  100% { top: 110vh; opacity: 0.2; transform: translateX(calc(var(--drift, 20px) * 2)) rotate(360deg); }
}

/* ==================== LOGIN ==================== */
#loginScreen {
  min-height: 100vh;
  background: radial-gradient(ellipse at 30% 20%, #1a003a 0%, var(--bg-deep) 70%);
  display: flex; align-items: center; justify-content: center;
  position: relative;
}

.login-container {
  position: relative; z-index: 1;
  width: 100%; max-width: 400px;
  padding: 2rem 1.5rem;
  text-align: center;
}

.login-veil {
  font-size: 3rem; color: var(--gold);
  animation: splashGlow 2s ease-in-out infinite alternate;
  margin-bottom: 0.8rem;
  display: block;
}

.login-title {
  font-family: var(--font-display);
  font-size: 1.5rem; font-weight: 600;
  color: var(--gold-light);
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
}

.login-tagline {
  font-style: italic; color: var(--text-muted);
  font-size: 0.9rem; margin-bottom: 2rem;
  line-height: 1.5;
}

.login-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  box-shadow: var(--shadow), 0 0 40px rgba(201,168,76,0.05);
}

.login-label {
  display: block;
  font-family: var(--font-display);
  font-size: 0.75rem; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--gold);
  margin-bottom: 0.6rem;
}

.login-input {
  width: 100%;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.75rem 1rem;
  outline: none;
  transition: border-color 0.3s;
  margin-bottom: 1rem;
}
.login-input:focus { border-color: var(--gold); }
.login-input::placeholder { color: var(--text-muted); }

.login-error {
  background: rgba(155,26,50,0.3);
  border: 1px solid var(--wine-vivid);
  border-radius: var(--radius-sm);
  padding: 0.6rem 1rem;
  color: #f08090;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.login-footer {
  margin-top: 1.5rem;
  color: var(--text-muted);
  font-size: 0.8rem;
  font-style: italic;
}

/* ==================== BOTÕES ==================== */
.btn-gold {
  display: block; width: 100%;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  border: none; border-radius: var(--radius-sm);
  color: var(--bg-deep);
  font-family: var(--font-display);
  font-size: 0.85rem; font-weight: 600;
  letter-spacing: 0.1em;
  padding: 0.85rem 1.5rem;
  cursor: pointer;
  transition: all 0.3s;
  text-align: center;
}
.btn-gold:hover { filter: brightness(1.1); transform: translateY(-1px); box-shadow: 0 4px 20px rgba(201,168,76,0.4); }
.btn-gold:disabled, .btn-disabled { opacity: 0.4; cursor: not-allowed; transform: none !important; }

.btn-wine {
  display: block; width: 100%;
  background: linear-gradient(135deg, var(--wine-vivid), var(--wine-light));
  border: none; border-radius: var(--radius-sm);
  color: var(--gold-pale);
  font-family: var(--font-display);
  font-size: 0.85rem; font-weight: 600;
  letter-spacing: 0.08em;
  padding: 0.85rem 1.5rem;
  cursor: pointer;
  transition: all 0.3s;
  margin-top: 0.8rem;
}
.btn-wine:hover { filter: brightness(1.15); }

.btn-sm {
  width: auto; display: inline-block;
  padding: 0.5rem 1.2rem; font-size: 0.8rem;
}
.btn-center { display: block; width: auto; margin: 1rem auto; }

/* ==================== MODAL ==================== */
.modal-overlay {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(0,0,0,0.85);
  display: flex; align-items: center; justify-content: center;
  padding: 1rem;
  backdrop-filter: blur(4px);
}

.modal-box {
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  width: 100%; max-width: 460px;
  max-height: 90vh;
  overflow: hidden;
  display: flex; flex-direction: column;
  box-shadow: var(--shadow), 0 0 60px rgba(201,168,76,0.1);
}

.modal-box-tall { max-height: 80vh; }

.modal-title {
  font-family: var(--font-display);
  font-size: 1.1rem; color: var(--gold-light);
  letter-spacing: 0.08em; margin-bottom: 1.2rem;
  text-align: center; flex-shrink: 0;
}

.modal-scroll {
  overflow-y: auto; flex: 1;
  padding-right: 0.5rem;
  font-size: 0.95rem; line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: 1rem;
}
.modal-scroll h3 {
  font-family: var(--font-display);
  color: var(--gold);
  font-size: 0.8rem; letter-spacing: 0.1em;
  text-transform: uppercase; margin: 1.2rem 0 0.4rem;
}
.modal-scroll p { margin-bottom: 0.6rem; }
.modal-final {
  margin-top: 1.5rem !important;
  color: var(--gold-pale) !important;
  font-style: italic;
  text-align: center;
}

.modal-textarea {
  width: 100%;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem; line-height: 1.6;
  padding: 0.75rem 1rem;
  outline: none;
  resize: vertical; min-height: 120px;
  margin-top: 0.8rem;
}
.modal-textarea:focus { border-color: var(--gold); }
.modal-textarea-sm { min-height: 80px; }
.modal-actions { display: flex; gap: 0.8rem; margin-top: 1rem; }
.modal-actions .btn-gold, .modal-actions .btn-wine { width: auto; flex: 1; }

/* ==================== APP HEADER ==================== */
.app-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: 56px;
  background: rgba(10,0,21,0.95);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center;
  padding: 0 1rem;
  backdrop-filter: blur(8px);
}
.header-left { width: 44px; }
.header-avatar {
  width: 36px; height: 36px;
  background: var(--bg-card2);
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; cursor: pointer;
  transition: border-color 0.3s;
}
.header-avatar:hover { border-color: var(--gold); }
.header-title {
  flex: 1; text-align: center;
  font-family: var(--font-display);
  font-size: 0.85rem; font-weight: 600;
  color: var(--gold-light); letter-spacing: 0.1em;
  cursor: pointer;
}
.header-right { width: 44px; display: flex; justify-content: flex-end; }
.header-notif {
  background: none; border: none; cursor: pointer;
  color: var(--text-muted); font-size: 1.1rem;
  position: relative;
}
.notif-badge {
  position: absolute; top: -4px; right: -4px;
  background: var(--wine-vivid);
  color: white; border-radius: 50%;
  width: 16px; height: 16px;
  font-size: 0.65rem;
  display: flex; align-items: center; justify-content: center;
}

/* ==================== NAV TABS ==================== */
.app-nav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 100;
  background: rgba(10,0,21,0.97);
  border-top: 1px solid var(--border);
  display: flex;
  backdrop-filter: blur(8px);
}
.nav-btn {
  flex: 1; background: none; border: none; cursor: pointer;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 0.5rem 0.2rem;
  color: var(--text-muted);
  transition: color 0.3s;
  min-height: 56px;
}
.nav-btn.active { color: var(--gold); }
.nav-icon { font-size: 1.1rem; }
.nav-label { font-family: var(--font-display); font-size: 0.55rem; letter-spacing: 0.05em; margin-top: 2px; }

/* ==================== APP SCREENS ==================== */
.app-screen {
  padding: 72px 1rem 70px;
  min-height: 100vh;
}
.app-screen.active { display: block; }
.app-screen.hidden { display: none; }

.section-header { margin-bottom: 0.8rem; }
.section-title {
  font-family: var(--font-display);
  font-size: 0.9rem; font-weight: 600;
  color: var(--gold-light); letter-spacing: 0.12em;
}
.section-sub {
  color: var(--text-muted); font-size: 0.85rem;
  font-style: italic; margin-top: 0.2rem;
}

/* ==================== CATEGORIAS ==================== */
.categorias-scroll {
  display: flex; gap: 0.5rem;
  overflow-x: auto; padding-bottom: 0.5rem;
  margin-bottom: 1rem; scrollbar-width: none;
}
.categorias-scroll::-webkit-scrollbar { display: none; }
.cat-btn {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  color: var(--text-muted);
  font-family: var(--font-display);
  font-size: 0.7rem; letter-spacing: 0.08em;
  padding: 0.4rem 0.9rem;
  cursor: pointer; white-space: nowrap;
  transition: all 0.3s;
}
.cat-btn.active, .cat-btn:hover {
  background: var(--wine-light);
  border-color: var(--wine-vivid);
  color: var(--gold-pale);
}

/* ==================== DESTAQUE ==================== */
.destaque-card {
  background: linear-gradient(135deg, var(--bg-card2), var(--wine) 60%, var(--bg-card2));
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  position: relative;
  overflow: hidden;
}
.destaque-card::before {
  content: '✦'; position: absolute; right: 1rem; top: 0.8rem;
  color: var(--gold); opacity: 0.2; font-size: 3rem;
}
.destaque-label {
  font-family: var(--font-display);
  font-size: 0.65rem; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--gold);
  margin-bottom: 0.5rem;
}
.destaque-texto {
  font-style: italic; font-size: 1rem;
  line-height: 1.7; color: var(--text);
}
.destaque-cat {
  font-family: var(--font-display);
  font-size: 0.65rem; letter-spacing: 0.1em;
  color: var(--wine-vivid); margin-top: 0.8rem;
  text-transform: uppercase;
}

/* ==================== FEED / RELATOS ==================== */
.feed-list { display: flex; flex-direction: column; gap: 1rem; padding-bottom: 5rem; }

.relato-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.2rem;
  transition: border-color 0.3s;
}
.relato-card:hover { border-color: var(--border-strong); }
.relato-card.destaque-semana {
  border-color: var(--gold);
  background: linear-gradient(135deg, var(--bg-card), rgba(201,168,76,0.05));
}

.relato-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 0.6rem;
}
.relato-codinome {
  font-family: var(--font-display);
  font-size: 0.7rem; letter-spacing: 0.1em;
  color: var(--gold);
}
.relato-cat-tag {
  background: rgba(122,20,40,0.4);
  border: 1px solid var(--wine-light);
  border-radius: 12px;
  color: var(--gold-pale);
  font-family: var(--font-display);
  font-size: 0.6rem; letter-spacing: 0.08em;
  padding: 0.2rem 0.6rem;
}
.relato-texto {
  font-size: 0.95rem; line-height: 1.7;
  color: var(--text); margin-bottom: 0.8rem;
  font-style: italic;
}
.relato-actions {
  display: flex; gap: 0.6rem; align-items: center;
  border-top: 1px solid var(--border);
  padding-top: 0.6rem;
  flex-wrap: wrap;
}
.relato-btn {
  background: none; border: none; cursor: pointer;
  color: var(--text-muted);
  font-size: 0.8rem; padding: 0.3rem 0.5rem;
  border-radius: var(--radius-sm);
  transition: color 0.3s;
  display: flex; align-items: center; gap: 0.3rem;
}
.relato-btn:hover { color: var(--gold); }
.relato-btn.liked { color: var(--wine-vivid); }
.relato-btn.denuncia:hover { color: #e05060; }
.relato-time {
  margin-left: auto;
  font-size: 0.7rem; color: var(--text-muted);
  font-style: italic;
}

/* ==================== FAB ==================== */
.fab-write {
  position: fixed; bottom: 70px; right: 1.2rem; z-index: 50;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  border: none; border-radius: 28px;
  color: var(--bg-deep);
  font-family: var(--font-display);
  font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.08em;
  padding: 0.7rem 1.2rem;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(201,168,76,0.4);
  transition: all 0.3s;
}
.fab-write:hover { transform: translateY(-2px); box-shadow: 0 6px 30px rgba(201,168,76,0.5); }

/* ==================== GLOSSÁRIO ==================== */
.glossario-search { margin-bottom: 1rem; }
.glossario-list { display: flex; flex-direction: column; gap: 0.8rem; padding-bottom: 5rem; }

.glossario-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.2rem;
}
.glossario-card-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 0.4rem;
}
.glossario-nome-real {
  font-family: var(--font-display);
  font-size: 0.8rem; letter-spacing: 0.1em;
  color: var(--gold-light);
}
.glossario-categoria {
  font-family: var(--font-display);
  font-size: 0.6rem; color: var(--wine-vivid);
  letter-spacing: 0.1em; text-transform: uppercase;
}
.glossario-desc {
  font-size: 0.85rem; color: var(--text-muted);
  font-style: italic; margin-bottom: 0.8rem;
  line-height: 1.5;
}
.glossario-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.glossario-tag {
  background: rgba(201,168,76,0.1);
  border: 1px solid rgba(201,168,76,0.25);
  border-radius: 16px;
  color: var(--gold-pale);
  font-size: 0.78rem; font-style: italic;
  padding: 0.25rem 0.7rem;
  cursor: pointer;
  transition: all 0.3s;
  position: relative;
}
.glossario-tag:hover { background: rgba(201,168,76,0.2); }
.glossario-tag::after {
  content: 'Copiar';
  position: absolute; bottom: -22px; left: 50%; transform: translateX(-50%);
  background: var(--bg-card2); border: 1px solid var(--border);
  border-radius: 4px; font-size: 0.65rem; color: var(--text-muted);
  padding: 2px 6px; white-space: nowrap;
  opacity: 0; pointer-events: none; transition: opacity 0.2s;
}
.glossario-tag:hover::after { opacity: 1; }
.copied-flash { color: var(--gold) !important; border-color: var(--gold) !important; }

/* ==================== CLUBE LIVROS/FILMES ==================== */
.clube-list { display: flex; flex-direction: column; gap: 1rem; padding-bottom: 5rem; }

.clube-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.2rem;
}
.clube-tipo-icon { font-size: 1.2rem; margin-right: 0.4rem; }
.clube-titulo {
  font-family: var(--font-display);
  font-size: 0.9rem; color: var(--gold-light);
  margin-bottom: 0.2rem;
}
.clube-autor {
  font-size: 0.78rem; color: var(--text-muted);
  font-style: italic; margin-bottom: 0.6rem;
}
.clube-resenha {
  font-size: 0.92rem; line-height: 1.7;
  color: var(--text); font-style: italic;
  margin-bottom: 0.8rem;
}
.clube-footer {
  display: flex; justify-content: space-between; align-items: center;
  border-top: 1px solid var(--border); padding-top: 0.5rem;
  font-size: 0.75rem; color: var(--text-muted);
}

/* ==================== NOTIFICAÇÕES ==================== */
.notif-list { display: flex; flex-direction: column; gap: 0.8rem; padding-bottom: 5rem; }

.notif-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.2rem;
  display: flex; gap: 0.8rem; align-items: flex-start;
}
.notif-icon { font-size: 1.3rem; flex-shrink: 0; }
.notif-text { font-size: 0.9rem; color: var(--text); line-height: 1.5; }
.notif-time { font-size: 0.75rem; color: var(--text-muted); margin-top: 0.2rem; }
.notif-item.unread { border-color: rgba(201,168,76,0.4); background: rgba(201,168,76,0.04); }

/* ==================== PERFIL ==================== */
.perfil-header {
  text-align: center; padding: 1.5rem 0 1rem;
}
.perfil-avatar-wrap {
  display: inline-block; position: relative; margin-bottom: 0.8rem;
}
.perfil-avatar {
  width: 80px; height: 80px;
  background: var(--bg-card2);
  border: 2px solid var(--gold);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 2.5rem;
  box-shadow: 0 0 20px rgba(201,168,76,0.2);
}
.btn-avatar-change {
  position: absolute; bottom: 0; right: -4px;
  background: var(--gold); border: none; border-radius: 50%;
  width: 24px; height: 24px;
  display: flex; align-items: center; justify-content: center;
  color: var(--bg-deep); font-size: 0.75rem; cursor: pointer;
}
.perfil-nome {
  font-family: var(--font-display);
  font-size: 1.2rem; color: var(--gold-light);
  margin-bottom: 0.2rem;
}
.perfil-codigo { font-size: 0.8rem; color: var(--text-muted); letter-spacing: 0.1em; }
.perfil-plano {
  font-family: var(--font-display);
  font-size: 0.7rem; color: var(--wine-vivid);
  letter-spacing: 0.1em; text-transform: uppercase;
  margin-top: 0.3rem;
}
.perfil-boas {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.2rem;
  font-style: italic; color: var(--text-muted);
  font-size: 0.9rem; line-height: 1.6;
  margin-bottom: 1.5rem; text-align: center;
}

/* BADGES */
.badges-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem; margin-bottom: 1.5rem;
}
.badge-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.8rem 0.5rem;
  text-align: center;
  transition: all 0.3s;
}
.badge-item.earned {
  border-color: var(--gold);
  background: linear-gradient(135deg, var(--bg-card), rgba(201,168,76,0.08));
}
.badge-item.locked { opacity: 0.4; }
.badge-icon { font-size: 1.5rem; display: block; margin-bottom: 0.4rem; }
.badge-name {
  font-family: var(--font-display);
  font-size: 0.6rem; letter-spacing: 0.06em;
  color: var(--gold); display: block; margin-bottom: 0.2rem;
}
.badge-desc { font-size: 0.68rem; color: var(--text-muted); line-height: 1.3; }

.perfil-actions { display: flex; flex-direction: column; gap: 0.8rem; padding-bottom: 5rem; }

/* AVATAR MODAL */
.avatar-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem; margin-bottom: 1.2rem;
}
.avatar-opt {
  width: 100%; aspect-ratio: 1;
  background: var(--bg-card2);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem; cursor: pointer;
  transition: all 0.3s;
}
.avatar-opt.selected, .avatar-opt:hover { border-color: var(--gold); background: rgba(201,168,76,0.1); }

/* ==================== DIAMANTES ==================== */
.diamond-notif {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(0,0,0,0.9);
  display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(6px);
}
.diamond-rain {
  position: absolute; inset: 0; pointer-events: none; overflow: hidden;
}
.diamond-particle {
  position: absolute; top: -20px; font-size: 1.5rem;
  animation: diamondFall 3s linear infinite;
}
@keyframes diamondFall {
  0% { top: -40px; opacity: 1; }
  100% { top: 110vh; opacity: 0; }
}
.diamond-content {
  position: relative; z-index: 1; text-align: center;
  background: var(--bg-card);
  border: 2px solid var(--gold);
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  max-width: 300px; width: 90%;
  box-shadow: 0 0 60px rgba(201,168,76,0.3);
}
.diamond-icon { font-size: 3rem; margin-bottom: 0.8rem; }
.diamond-text {
  font-family: var(--font-display);
  font-size: 1.1rem; color: var(--gold-light);
  margin-bottom: 0.4rem;
}
.diamond-sub { font-style: italic; color: var(--text-muted); font-size: 0.85rem; margin-bottom: 1.2rem; }

/* ==================== COMENTÁRIOS ==================== */
.comentarios-list {
  overflow-y: auto; max-height: 280px;
  margin-bottom: 1rem; padding-right: 0.3rem;
}
.comentario-item {
  border-bottom: 1px solid var(--border);
  padding: 0.7rem 0;
}
.comentario-autor {
  font-family: var(--font-display);
  font-size: 0.65rem; color: var(--gold); margin-bottom: 0.2rem;
}
.comentario-texto { font-size: 0.88rem; color: var(--text); line-height: 1.5; font-style: italic; }
.comentarios-form { display: flex; gap: 0.6rem; align-items: flex-end; }
.comentarios-form .modal-textarea-sm { flex: 1; }

/* ==================== FOOTER ==================== */
.app-footer {
  display: none; /* apenas nas páginas legais aparece */
}

/* ==================== PÁGINAS LEGAIS ==================== */
.legal-page {
  background: var(--bg-deep) !important;
  font-family: var(--font-body) !important;
}
.legal-container {
  max-width: 680px; margin: 0 auto;
  padding: 3rem 1.5rem 5rem;
}
.legal-back {
  display: inline-block; color: var(--gold);
  font-family: var(--font-display);
  font-size: 0.8rem; letter-spacing: 0.1em;
  text-decoration: none; margin-bottom: 2rem;
}
.legal-back:hover { color: var(--gold-light); }
.legal-logo {
  font-size: 2.5rem; color: var(--gold);
  margin-bottom: 1rem; text-align: center;
}
.legal-title {
  font-family: var(--font-display);
  font-size: 1.6rem; color: var(--gold-light);
  text-align: center; margin-bottom: 0.4rem;
}
.legal-subtitle {
  font-style: italic; color: var(--text-muted);
  text-align: center; margin-bottom: 2.5rem;
}
.legal-container h2 {
  font-family: var(--font-display);
  font-size: 0.85rem; color: var(--gold);
  letter-spacing: 0.12em; text-transform: uppercase;
  margin: 1.8rem 0 0.6rem;
}
.legal-container p {
  color: var(--text-muted); font-size: 0.95rem; line-height: 1.8;
  margin-bottom: 0.6rem;
}
.legal-container ul {
  padding-left: 1.5rem; margin-bottom: 0.6rem;
}
.legal-container li {
  color: var(--text-muted); font-size: 0.95rem; line-height: 1.8;
  margin-bottom: 0.3rem;
}
.legal-final {
  margin-top: 2.5rem !important;
  color: var(--gold-pale) !important;
  font-style: italic; text-align: center;
  border-top: 1px solid var(--border); padding-top: 1.5rem;
}
.legal-footer {
  text-align: center; padding: 1.5rem;
  border-top: 1px solid var(--border);
  color: var(--text-muted); font-size: 0.85rem;
}
.legal-footer a { color: var(--gold); text-decoration: none; }
.legal-footer a:hover { color: var(--gold-light); }

/* ==================== TOAST ==================== */
.toast {
  position: fixed; bottom: 80px; left: 50%; transform: translateX(-50%);
  background: var(--bg-card2);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  color: var(--gold-pale); font-size: 0.85rem;
  padding: 0.7rem 1.5rem;
  z-index: 5000; opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none; white-space: nowrap;
  box-shadow: var(--shadow);
  font-family: var(--font-display); letter-spacing: 0.05em;
}
.toast.show { opacity: 1; }

/* ==================== SCROLLBAR ==================== */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }

/* ==================== MEDIA QUERIES ==================== */
@media (min-width: 600px) {
  .app-screen { max-width: 600px; margin: 0 auto; }
  .modal-box { max-width: 520px; }
  .fab-write { right: calc(50% - 300px + 1rem); }
  .destaque-card { max-width: 560px; }
}

/* ==================== AFETOS (RELACIONAMENTOS) ==================== */
.afetos-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.2rem;
  border-left: 3px solid var(--wine-vivid);
}
.afetos-header {
  display: flex; justify-content: space-between;
  margin-bottom: 0.5rem;
}
.afetos-cat {
  font-family: var(--font-display);
  font-size: 0.65rem; color: var(--wine-vivid);
  letter-spacing: 0.1em; text-transform: uppercase;
}
.afetos-texto {
  font-size: 0.95rem; line-height: 1.7;
  color: var(--text); font-style: italic;
}
