/* ═══════════════════════════════════════════════════════
   VerseVault — CSS Reimaginado
   Estética: Luxury Literary Editorial
   Tipografia: Cormorant Garamond + DM Sans
   ═══════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,500;1,600;1,700&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,300;1,9..40,400&family=DM+Mono:wght@300;400;500&display=swap');

/* ── TOKENS ──────────────────────────────────────────── */
:root {
  /* Paleta principal */
  --ink-900: #0d0b08;
  --ink-800: #1c1710;
  --ink-700: #2e2618;
  --ink-600: #453a28;
  --ink-500: #5c4e38;
  --ink-400: #7a6a52;
  --ink-300: #a0906e;
  --ink-200: #c8b896;
  --ink-100: #e8ddc8;
  --ink-50:  #f4efe3;

  --paper-dark:  #f0e9d8;
  --paper:       #f8f3ea;
  --paper-light: #fdfaf4;
  --white:       #ffffff;

  --gold-900: #5a3c00;
  --gold-800: #7c5200;
  --gold-700: #9e6800;
  --gold-600: #b87d10;
  --gold-500: #c9941a;
  --gold-400: #d9aa3a;
  --gold-300: #e8c060;
  --gold-200: #f2d88a;
  --gold-100: #faeec0;
  --gold-50:  #fdf7e4;

  --sienna-700: #6b1a0a;
  --sienna-600: #8b2a12;
  --sienna-500: #a8391e;
  --sienna-400: #c4502e;
  --sienna-100: #fde8e0;

  --forest-700: #1a3018;
  --forest-600: #264a24;
  --forest-500: #346630;
  --forest-400: #4a8a44;
  --forest-100: #e4f0e2;

  --amethyst-700: #3a1a5e;
  --amethyst-600: #52287e;
  --amethyst-500: #6b3a9e;
  --amethyst-400: #8a56bc;
  --amethyst-100: #f0e8f8;

  --sky-100: #e4eef8;
  --sky-600: #2a5a9a;

  /* Semânticos */
  --bg:         var(--paper);
  --bg-alt:     var(--paper-light);
  --bg-deep:    var(--ink-800);
  --surface:    var(--paper-light);
  --surface-alt:var(--ink-50);
  --border:     var(--ink-100);
  --border-soft:rgba(200,184,150,.4);
  --border-gold:rgba(201,148,26,.35);

  --text-primary:  var(--ink-800);
  --text-secondary:var(--ink-500);
  --text-muted:    var(--ink-400);
  --text-on-dark:  var(--ink-50);
  --text-gold:     var(--gold-700);
  --text-link:     var(--gold-700);

  --accent:       var(--gold-500);
  --accent-hover: var(--gold-700);
  --premium:      var(--amethyst-500);

  /* Typography */
  --font-display: 'Cormorant Garamond', 'Palatino Linotype', Georgia, serif;
  --font-body:    'DM Sans', 'Helvetica Neue', Arial, sans-serif;
  --font-mono:    'DM Mono', 'Courier New', monospace;

  /* Spacing */
  --space-1:  4px;
  --space-2:  8px;
  --space-3:  12px;
  --space-4:  16px;
  --space-5:  20px;
  --space-6:  24px;
  --space-8:  32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;

  /* Radius */
  --r-sm:  3px;
  --r-md:  6px;
  --r-lg:  12px;
  --r-xl:  20px;
  --r-pill:9999px;

  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(13,11,8,.06);
  --shadow-sm: 0 2px 6px rgba(13,11,8,.08), 0 1px 2px rgba(13,11,8,.04);
  --shadow-md: 0 4px 16px rgba(13,11,8,.10), 0 2px 6px rgba(13,11,8,.06);
  --shadow-lg: 0 8px 32px rgba(13,11,8,.14), 0 4px 12px rgba(13,11,8,.08);
  --shadow-xl: 0 20px 60px rgba(13,11,8,.18), 0 8px 24px rgba(13,11,8,.10);
  --shadow-gold: 0 4px 20px rgba(201,148,26,.25);
  --shadow-inset: inset 0 1px 3px rgba(13,11,8,.08);

  /* Motion */
  --ease-out: cubic-bezier(.16,1,.3,1);
  --ease-in-out: cubic-bezier(.4,0,.2,1);
  --dur-fast:  .15s;
  --dur-base:  .25s;
  --dur-slow:  .45s;
}

/* Tema escuro */
[data-theme="dark"] {
  --bg:          var(--ink-900);
  --bg-alt:      var(--ink-800);
  --bg-deep:     #060504;
  --surface:     var(--ink-800);
  --surface-alt: var(--ink-700);
  --border:      var(--ink-600);
  --border-soft: rgba(90,78,56,.5);
  --text-primary: var(--ink-50);
  --text-secondary:var(--ink-200);
  --text-muted:  var(--ink-300);
  --paper:       var(--ink-900);
  --paper-light: var(--ink-800);
  --paper-dark:  var(--ink-700);
  --shadow-sm: 0 2px 6px rgba(0,0,0,.3);
  --shadow-md: 0 4px 16px rgba(0,0,0,.4);
  --shadow-lg: 0 8px 32px rgba(0,0,0,.5);
}

/* ── RESET + BASE ─────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0; padding: 0;
}
html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
body {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.65;
  background: var(--bg);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  transition: background var(--dur-slow) var(--ease-in-out),
              color var(--dur-slow) var(--ease-in-out);
}

/* Grain overlay para textura papel */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
  opacity: .4;
  mix-blend-mode: overlay;
}

h1,h2,h3,h4,h5,h6 {
  font-family: var(--font-display);
  line-height: 1.15;
  color: var(--text-primary);
  font-weight: 600;
}
p { color: var(--text-secondary); }
a { color: var(--text-link); text-decoration: none; transition: color var(--dur-fast); }
a:hover { color: var(--accent-hover); }
img { display: block; max-width: 100%; }
button { cursor: pointer; font-family: var(--font-body); border: none; background: none; }
input, textarea, select { font-family: var(--font-body); }
ul, ol { list-style: none; }
::selection { background: var(--gold-200); color: var(--ink-800); }

/* Custom scrollbar */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--surface); }
::-webkit-scrollbar-thumb { background: var(--ink-200); border-radius: var(--r-pill); border: 2px solid var(--surface); }
::-webkit-scrollbar-thumb:hover { background: var(--ink-300); }

/* ── ANIMAÇÕES ────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes slideIn {
  from { opacity: 0; transform: translateX(-12px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes scaleIn {
  from { opacity: 0; transform: scale(.96); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes shimmer {
  0%   { background-position: -200% center; }
  100% { background-position:  200% center; }
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.5} }
@keyframes ripple {
  to { transform: scale(4); opacity: 0; }
}

.fade-up   { animation: fadeUp  var(--dur-slow) var(--ease-out) both; }
.fade-in   { animation: fadeIn  var(--dur-base) var(--ease-out) both; }
.scale-in  { animation: scaleIn var(--dur-base) var(--ease-out) both; }

/* Stagger para filhos */
.stagger > * { animation: fadeUp var(--dur-slow) var(--ease-out) both; }
.stagger > *:nth-child(1) { animation-delay: .05s; }
.stagger > *:nth-child(2) { animation-delay: .10s; }
.stagger > *:nth-child(3) { animation-delay: .15s; }
.stagger > *:nth-child(4) { animation-delay: .20s; }
.stagger > *:nth-child(5) { animation-delay: .25s; }
.stagger > *:nth-child(6) { animation-delay: .30s; }

/* ── LAYOUT ───────────────────────────────────────────── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 var(--space-6); }
.container-sm { max-width: 860px; margin: 0 auto; padding: 0 var(--space-6); }
.container-xs { max-width: 560px; margin: 0 auto; padding: 0 var(--space-6); }

.section { padding: var(--space-20) var(--space-6); }
.section-sm { padding: var(--space-12) var(--space-6); }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-6); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-6); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-5); }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: var(--space-6); }

.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-end { display: flex; align-items: center; justify-content: flex-end; }
.flex-col { display: flex; flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.gap-2 { gap: var(--space-2); }
.gap-3 { gap: var(--space-3); }
.gap-4 { gap: var(--space-4); }
.gap-6 { gap: var(--space-6); }

.divider {
  border: none;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
  margin: var(--space-8) 0;
}

/* ── TIPOGRAFIA ───────────────────────────────────────── */
.display-1 { font-family: var(--font-display); font-size: clamp(48px, 8vw, 96px); font-weight: 300; line-height: 1; letter-spacing: -.02em; }
.display-2 { font-family: var(--font-display); font-size: clamp(36px, 6vw, 72px); font-weight: 400; line-height: 1.05; }
.display-3 { font-family: var(--font-display); font-size: clamp(28px, 4vw, 52px); font-weight: 500; line-height: 1.1; }
.heading-1 { font-family: var(--font-display); font-size: clamp(24px, 3vw, 38px); font-weight: 600; }
.heading-2 { font-family: var(--font-display); font-size: clamp(20px, 2.5vw, 28px); font-weight: 600; }
.heading-3 { font-family: var(--font-display); font-size: 20px; font-weight: 600; }
.label-sm  { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); }
.label-md  { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--text-muted); }
.text-sm   { font-size: 13px; }
.text-xs   { font-size: 11px; }
.text-lg   { font-size: 17px; }
.text-muted { color: var(--text-muted); }
.text-gold  { color: var(--gold-700); }
.text-center { text-align: center; }
.text-italic { font-style: italic; font-family: var(--font-display); }
.font-display { font-family: var(--font-display); }

/* Ornamento tipográfico */
.ornament {
  display: flex; align-items: center; gap: var(--space-4);
  color: var(--gold-400); font-size: 20px; letter-spacing: .3em;
}
.ornament::before, .ornament::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-300));
}
.ornament::after { background: linear-gradient(90deg, var(--gold-300), transparent); }

/* ── BOTÕES ───────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 10px 22px;
  border-radius: var(--r-sm);
  font-family: var(--font-body);
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: .02em;
  line-height: 1;
  transition: all var(--dur-fast) var(--ease-in-out);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  white-space: nowrap;
  border: 1.5px solid transparent;
  text-decoration: none;
}
.btn:focus-visible {
  outline: 2px solid var(--gold-400);
  outline-offset: 2px;
}

/* Ripple effect */
.btn .ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,.3);
  width: 10px; height: 10px;
  transform: scale(0);
  animation: ripple .5s linear;
  pointer-events: none;
}

.btn-primary {
  background: var(--gold-600);
  color: #fff;
  border-color: var(--gold-600);
  box-shadow: 0 1px 3px rgba(180,120,16,.3), inset 0 1px 0 rgba(255,255,255,.12);
}
.btn-primary:hover {
  background: var(--gold-700);
  border-color: var(--gold-700);
  color: #fff;
  box-shadow: 0 4px 12px rgba(180,120,16,.4), inset 0 1px 0 rgba(255,255,255,.12);
  transform: translateY(-1px);
}
.btn-primary:active { transform: translateY(0); }

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--border);
  box-shadow: var(--shadow-xs);
}
.btn-secondary:hover {
  border-color: var(--gold-400);
  color: var(--gold-700);
  background: var(--gold-50);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border-color: transparent;
  padding-left: var(--space-3);
  padding-right: var(--space-3);
}
.btn-ghost:hover { color: var(--text-primary); background: var(--surface-alt); }

.btn-dark {
  background: var(--ink-800);
  color: var(--paper-light);
  border-color: var(--ink-800);
}
.btn-dark:hover { background: var(--ink-900); color: var(--paper-light); box-shadow: var(--shadow-md); transform: translateY(-1px); }

.btn-danger  { background: var(--sienna-500); color: #fff; border-color: var(--sienna-500); }
.btn-danger:hover { background: var(--sienna-600); color: #fff; transform: translateY(-1px); }

.btn-premium { background: var(--amethyst-500); color: #fff; border-color: var(--amethyst-500); box-shadow: 0 2px 8px rgba(107,58,158,.3); }
.btn-premium:hover { background: var(--amethyst-600); color: #fff; box-shadow: 0 4px 16px rgba(107,58,158,.4); transform: translateY(-1px); }

.btn-forest { background: var(--forest-500); color: #fff; border-color: var(--forest-500); }
.btn-forest:hover { background: var(--forest-600); color: #fff; transform: translateY(-1px); }

.btn-sm  { padding: 7px 14px; font-size: 12.5px; }
.btn-lg  { padding: 13px 28px; font-size: 15px; letter-spacing: .03em; }
.btn-xl  { padding: 16px 36px; font-size: 16px; letter-spacing: .04em; }
.btn-block { width: 100%; }
.btn-icon { padding: 8px; width: 36px; height: 36px; }
.btn-icon-sm { padding: 6px; width: 30px; height: 30px; }

/* ── FORMULÁRIOS ──────────────────────────────────────── */
.field {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-bottom: var(--space-5);
}
.label {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.input-field {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--r-sm);
  background: var(--surface);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.5;
  transition: border-color var(--dur-fast), box-shadow var(--dur-fast), background var(--dur-fast);
  outline: none;
  -webkit-appearance: none;
}
.input-field::placeholder { color: var(--ink-300); }
.input-field:hover { border-color: var(--ink-200); }
.input-field:focus {
  border-color: var(--gold-500);
  box-shadow: 0 0 0 3px rgba(201,148,26,.15);
  background: var(--bg-alt);
}
.input-field.error { border-color: var(--sienna-500); }
.input-field.error:focus { box-shadow: 0 0 0 3px rgba(168,57,30,.15); }

textarea.input-field { min-height: 110px; resize: vertical; line-height: 1.7; }
select.input-field { cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%237a6a52'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 32px; }

.form-group { margin-bottom: var(--space-5); }
.error-msg  { font-size: 12px; color: var(--sienna-500); margin-top: var(--space-1); display: flex; align-items: center; gap: var(--space-1); }
.help-text  { font-size: 12px; color: var(--text-muted); margin-top: var(--space-1); line-height: 1.5; }

/* Toggle / checkbox estilizados */
.toggle {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  cursor: pointer;
  user-select: none;
}
.toggle input { display: none; }
.toggle-track {
  width: 40px; height: 22px;
  background: var(--border);
  border-radius: var(--r-pill);
  position: relative;
  transition: background var(--dur-fast);
  flex-shrink: 0;
}
.toggle-track::after {
  content: '';
  position: absolute;
  top: 3px; left: 3px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: white;
  box-shadow: 0 1px 3px rgba(0,0,0,.2);
  transition: transform var(--dur-fast) var(--ease-out);
}
.toggle input:checked + .toggle-track { background: var(--gold-500); }
.toggle input:checked + .toggle-track::after { transform: translateX(18px); }

/* ── CARDS ────────────────────────────────────────────── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--space-6);
  transition: box-shadow var(--dur-base) var(--ease-out),
              transform var(--dur-base) var(--ease-out),
              border-color var(--dur-base);
}
.card-hover:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
  border-color: var(--border-gold);
}
.card-flat { box-shadow: none; border-color: var(--border-soft); }
.card-dark {
  background: var(--ink-800);
  border-color: var(--ink-700);
  color: var(--ink-50);
}
.card-gold {
  background: linear-gradient(135deg, var(--gold-50) 0%, #fff8e8 100%);
  border-color: var(--border-gold);
}

/* ── BADGES ───────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: var(--r-pill);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  line-height: 1.5;
  white-space: nowrap;
}
.badge-open     { background: var(--forest-100); color: var(--forest-600); }
.badge-member   { background: var(--sky-100);    color: var(--sky-600); }
.badge-premium  { background: var(--amethyst-100); color: var(--amethyst-600); }
.badge-gold     { background: var(--gold-100);   color: var(--gold-800); }
.badge-danger   { background: var(--sienna-100); color: var(--sienna-600); }
.badge-neutral  { background: var(--surface-alt);color: var(--text-muted); }
.badge-dark     { background: var(--ink-800);    color: var(--ink-100); }

/* ── NAVEGAÇÃO ────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 200;
  height: 68px;
  display: flex;
  align-items: center;
  padding: 0 var(--space-8);
  background: rgba(248,243,234,.92);
  backdrop-filter: blur(16px) saturate(1.5);
  -webkit-backdrop-filter: blur(16px) saturate(1.5);
  border-bottom: 1px solid var(--border-soft);
  transition: background var(--dur-slow), box-shadow var(--dur-slow);
}
[data-theme="dark"] .nav {
  background: rgba(28,23,16,.92);
}
.nav.scrolled {
  box-shadow: var(--shadow-md);
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -.01em;
  text-decoration: none;
  flex-shrink: 0;
}
.nav-brand-icon {
  width: 34px;
  height: 34px;
  background: var(--gold-600);
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  box-shadow: 0 2px 6px rgba(180,120,16,.3);
}
.nav-brand span { color: var(--gold-700); }

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  margin: 0 var(--space-8);
  flex: 1;
}
.nav-link {
  padding: var(--space-2) var(--space-3);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--r-sm);
  transition: all var(--dur-fast);
  text-decoration: none;
  white-space: nowrap;
}
.nav-link:hover { color: var(--text-primary); background: var(--surface-alt); }
.nav-link.active {
  color: var(--gold-700);
  background: var(--gold-50);
  font-weight: 600;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-shrink: 0;
}

.nav-search {
  position: relative;
}
.nav-search input {
  width: 180px;
  padding: 7px 12px 7px 34px;
  font-size: 13px;
  border-radius: var(--r-pill);
  transition: width var(--dur-base) var(--ease-out);
}
.nav-search input:focus { width: 240px; }
.nav-search-icon {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 14px;
  pointer-events: none;
}

.nav-notif {
  position: relative;
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--r-sm);
  color: var(--text-secondary);
  transition: all var(--dur-fast);
  font-size: 18px;
}
.nav-notif:hover { background: var(--surface-alt); color: var(--text-primary); }
.nav-notif-badge {
  position: absolute;
  top: 2px; right: 2px;
  min-width: 17px; height: 17px;
  background: var(--sienna-500);
  color: #fff;
  font-size: 9.5px;
  font-weight: 700;
  border-radius: var(--r-pill);
  display: flex; align-items: center; justify-content: center;
  padding: 0 3px;
  border: 2px solid var(--bg);
  font-family: var(--font-body);
}

.nav-avatar {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: 5px 10px 5px 5px;
  border-radius: var(--r-pill);
  border: 1.5px solid var(--border);
  transition: all var(--dur-fast);
  text-decoration: none;
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 500;
}
.nav-avatar:hover { border-color: var(--gold-400); background: var(--gold-50); color: var(--text-primary); }
.nav-avatar img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }

/* Mobile hamburger */
.nav-mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 36px; height: 36px;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-sm);
  color: var(--text-primary);
  font-size: 20px;
}

/* ── HERO ─────────────────────────────────────────────── */
.hero {
  position: relative;
  background: var(--ink-900);
  color: var(--text-on-dark);
  padding: var(--space-20) var(--space-8) calc(var(--space-20) + var(--space-6));
  overflow: hidden;
  text-align: center;
}

/* Fundo texturizado do hero */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 40%, rgba(201,148,26,.12) 0%, transparent 60%),
    radial-gradient(ellipse 60% 80% at 80% 20%, rgba(139,58,26,.10) 0%, transparent 60%),
    radial-gradient(ellipse 40% 40% at 50% 80%, rgba(107,58,158,.06) 0%, transparent 60%);
}
/* Grid decorativo */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(248,243,234,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(248,243,234,.03) 1px, transparent 1px);
  background-size: 60px 60px;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 820px;
  margin: 0 auto;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--gold-300);
  margin-bottom: var(--space-5);
  padding: 6px 14px;
  border: 1px solid rgba(232,192,96,.25);
  border-radius: var(--r-pill);
  background: rgba(232,192,96,.08);
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(48px, 8vw, 96px);
  font-weight: 300;
  line-height: 1.0;
  letter-spacing: -.03em;
  color: var(--ink-50);
  margin-bottom: var(--space-5);
}
.hero-title em {
  font-style: italic;
  color: var(--gold-300);
  font-weight: 400;
}
.hero-subtitle {
  font-size: clamp(15px, 2vw, 18px);
  color: rgba(232,221,200,.7);
  max-width: 520px;
  margin: 0 auto var(--space-8);
  line-height: 1.75;
  font-weight: 300;
}
.hero-actions {
  display: flex;
  gap: var(--space-4);
  justify-content: center;
  flex-wrap: wrap;
}
.hero-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero-stat-num {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 600;
  color: var(--gold-300);
  line-height: 1;
}
.hero-stat-label {
  font-size: 11px;
  color: rgba(232,221,200,.5);
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-top: 4px;
}
.hero-stats {
  display: flex;
  gap: var(--space-12);
  justify-content: center;
  margin-top: var(--space-12);
  padding-top: var(--space-8);
  border-top: 1px solid rgba(255,255,255,.08);
  position: relative;
  z-index: 1;
}

/* ── POST CARDS ───────────────────────────────────────── */
.post-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow var(--dur-base) var(--ease-out),
              transform var(--dur-base) var(--ease-out),
              border-color var(--dur-base);
  text-decoration: none;
  color: inherit;
}
.post-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  border-color: var(--border-gold);
}

.post-card-cover {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/9;
  flex-shrink: 0;
}
.post-card-cover img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s var(--ease-out);
}
.post-card:hover .post-card-cover img { transform: scale(1.04); }

.post-card-cover-placeholder {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, var(--ink-100) 0%, var(--ink-50) 100%);
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-200);
  font-size: 36px;
}

.post-card-access {
  position: absolute;
  top: var(--space-3);
  left: var(--space-3);
}

.post-card-body {
  padding: var(--space-5);
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.post-card-meta {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-wrap: wrap;
}
.post-card-category {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--gold-700);
}
.post-card-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.25;
  transition: color var(--dur-fast);
}
.post-card:hover .post-card-title { color: var(--gold-700); }

.post-card-excerpt {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.65;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.post-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-3);
  border-top: 1px solid var(--border-soft);
  font-size: 12px;
  color: var(--text-muted);
  gap: var(--space-2);
}
.post-card-author {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
.post-card-author img {
  width: 22px; height: 22px;
  border-radius: 50%;
  object-fit: cover;
}

/* ── READING ──────────────────────────────────────────── */
.reading-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2.5px;
  background: linear-gradient(90deg, var(--gold-600), var(--gold-300));
  z-index: 9998;
  transition: width .08s linear;
  box-shadow: 0 0 8px rgba(201,148,26,.5);
}
.reading-mode { max-width: 700px; margin: 0 auto; padding: var(--space-10) var(--space-6) var(--space-20); }
.reading-content {
  font-family: var(--font-display);
  font-size: 20px;
  line-height: 1.85;
  color: var(--ink-700);
  font-weight: 400;
}
[data-theme="dark"] .reading-content { color: var(--ink-100); }
.reading-content p { margin-bottom: 1.5em; }
.reading-content h2 { font-size: 28px; margin: 2em 0 .6em; font-weight: 600; }
.reading-content h3 { font-size: 22px; margin: 1.8em 0 .5em; }
.reading-content blockquote {
  border-left: 3px solid var(--gold-400);
  margin: 2em 0;
  padding: var(--space-4) var(--space-6);
  color: var(--text-muted);
  font-style: italic;
  background: var(--gold-50);
  border-radius: 0 var(--r-md) var(--r-md) 0;
}
.reading-content hr {
  border: none;
  text-align: center;
  margin: 2.5em 0;
  color: var(--gold-400);
  font-size: 20px;
  letter-spacing: .5em;
}
.reading-content hr::after { content: '✦  ✦  ✦'; }
.reading-content img { border-radius: var(--r-lg); box-shadow: var(--shadow-lg); margin: 2em 0; }

.reading-toolbar {
  position: sticky;
  bottom: var(--space-6);
  display: flex;
  align-items: center;
  gap: var(--space-1);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  padding: 6px 10px;
  box-shadow: var(--shadow-lg);
  width: fit-content;
  margin: var(--space-8) auto 0;
  backdrop-filter: blur(12px);
}
.reading-toolbar .btn-icon { font-size: 14px; border-radius: var(--r-pill); }

/* ── TABELAS ──────────────────────────────────────────── */
.table-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  overflow-x: auto;
}
table { width: 100%; border-collapse: collapse; }
thead { background: var(--surface-alt); }
th {
  padding: 11px 16px;
  text-align: left;
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
td {
  padding: 13px 16px;
  font-size: 13.5px;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-soft);
  vertical-align: middle;
}
tr:last-child td { border-bottom: none; }
tbody tr { transition: background var(--dur-fast); }
tbody tr:hover td { background: var(--gold-50); }
[data-theme="dark"] tbody tr:hover td { background: var(--ink-700); }

/* ── ADMIN LAYOUT ─────────────────────────────────────── */
.admin-layout { display: flex; min-height: 100vh; }

.sidebar {
  width: 252px;
  background: var(--ink-900);
  color: var(--ink-100);
  position: fixed;
  top: 0; left: 0;
  height: 100vh;
  overflow-y: auto;
  z-index: 300;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  border-right: 1px solid rgba(255,255,255,.05);
  transition: transform var(--dur-base) var(--ease-out);
}
.sidebar::-webkit-scrollbar { width: 4px; }
.sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,.1); }

.sidebar-header {
  padding: var(--space-5) var(--space-6);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.sidebar-logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  color: var(--ink-50);
  text-decoration: none;
  margin-bottom: 4px;
}
.sidebar-logo span { color: var(--gold-300); }
.sidebar-subtitle { font-size: 11px; color: rgba(255,255,255,.3); letter-spacing: .06em; text-transform: uppercase; }

.sidebar-section {
  padding: var(--space-4) var(--space-6) var(--space-2);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.25);
  margin-top: var(--space-2);
}
.sidebar-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: 9px var(--space-6);
  font-size: 13.5px;
  color: rgba(255,255,255,.55);
  text-decoration: none;
  transition: all var(--dur-fast);
  border-left: 2px solid transparent;
  cursor: pointer;
  position: relative;
}
.sidebar-item:hover {
  color: rgba(255,255,255,.85);
  background: rgba(255,255,255,.04);
}
.sidebar-item.active {
  color: var(--gold-300);
  background: rgba(201,148,26,.1);
  border-left-color: var(--gold-400);
}
.sidebar-item-icon { font-size: 15px; flex-shrink: 0; width: 18px; text-align: center; }
.sidebar-badge {
  margin-left: auto;
  background: var(--sienna-500);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: var(--r-pill);
  font-family: var(--font-body);
}
.sidebar-footer {
  margin-top: auto;
  padding: var(--space-5) var(--space-6);
  border-top: 1px solid rgba(255,255,255,.06);
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.admin-main {
  margin-left: 252px;
  flex: 1;
  background: var(--bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.admin-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-6) var(--space-8);
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
}
.admin-topbar-title { font-family: var(--font-display); font-size: 26px; font-weight: 600; }
.admin-content { padding: var(--space-8); flex: 1; }

/* Stat cards */
.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--space-6);
  position: relative;
  overflow: hidden;
  transition: box-shadow var(--dur-base), transform var(--dur-base);
}
.stat-card::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 80px; height: 80px;
  background: radial-gradient(circle, var(--gold-100) 0%, transparent 70%);
  opacity: .5;
  border-radius: 0 var(--r-lg) 0 0;
}
.stat-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.stat-icon { font-size: 22px; margin-bottom: var(--space-3); }
.stat-number {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
  margin-bottom: var(--space-1);
}
.stat-label { font-size: 12.5px; color: var(--text-muted); font-weight: 500; }
.stat-change { font-size: 12px; font-weight: 600; margin-top: var(--space-2); display: flex; align-items: center; gap: 4px; }
.stat-change.up   { color: var(--forest-500); }
.stat-change.down { color: var(--sienna-500); }

/* ── MODAL ────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(13,11,8,.6);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-5);
  animation: fadeIn var(--dur-fast);
}
.modal-overlay.hidden { display: none; }
.modal {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: var(--space-8);
  max-width: 520px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-xl);
  animation: scaleIn var(--dur-base) var(--ease-out);
}
.modal-lg { max-width: 760px; }
.modal-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: var(--space-6); gap: var(--space-4); }
.modal-title { font-family: var(--font-display); font-size: 24px; font-weight: 600; }
.modal-close { color: var(--text-muted); font-size: 20px; transition: color var(--dur-fast); border-radius: var(--r-sm); padding: 4px 8px; }
.modal-close:hover { color: var(--text-primary); background: var(--surface-alt); }

/* ── TOAST ────────────────────────────────────────────── */
.toast {
  position: fixed;
  bottom: var(--space-6);
  right: var(--space-6);
  z-index: 9999;
  padding: 13px 18px;
  border-radius: var(--r-lg);
  font-size: 13.5px;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  max-width: 360px;
  display: flex;
  align-items: center;
  gap: var(--space-3);
  animation: slideIn var(--dur-base) var(--ease-out);
  border: 1px solid transparent;
}
.toast-default {
  background: var(--ink-800);
  color: var(--ink-50);
  border-color: var(--ink-700);
}
.toast.success {
  background: #f0faf0;
  color: var(--forest-600);
  border-color: rgba(70,138,68,.25);
}
.toast.error {
  background: var(--sienna-100);
  color: var(--sienna-600);
  border-color: rgba(168,57,30,.25);
}
.toast-icon { font-size: 16px; flex-shrink: 0; }

/* ── PLANOS ───────────────────────────────────────────── */
.plan-card {
  border: 2px solid var(--border);
  border-radius: var(--r-xl);
  padding: var(--space-8);
  text-align: center;
  position: relative;
  background: var(--surface);
  transition: all var(--dur-base) var(--ease-out);
  display: flex;
  flex-direction: column;
}
.plan-card:hover {
  border-color: var(--gold-400);
  box-shadow: var(--shadow-gold);
  transform: translateY(-4px);
}
.plan-card.featured {
  border-color: var(--gold-500);
  background: linear-gradient(160deg, var(--gold-50) 0%, var(--surface) 60%);
}
.plan-popular {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gold-600);
  color: #fff;
  padding: 4px 16px;
  border-radius: var(--r-pill);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  box-shadow: 0 2px 8px rgba(180,120,16,.4);
  white-space: nowrap;
}
.plan-name { font-family: var(--font-display); font-size: 24px; font-weight: 600; margin-bottom: var(--space-3); }
.plan-price {
  font-family: var(--font-display);
  font-size: 52px;
  font-weight: 700;
  color: var(--gold-800);
  line-height: 1;
  margin-bottom: 4px;
}
.plan-price sup { font-size: 24px; vertical-align: super; }
.plan-period { font-size: 13px; color: var(--text-muted); margin-bottom: var(--space-5); }
.plan-features { text-align: left; margin-bottom: var(--space-6); flex: 1; }
.plan-features li {
  padding: 9px 0;
  font-size: 13.5px;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-soft);
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  line-height: 1.4;
}
.plan-features li:last-child { border-bottom: none; }
.plan-features-check { color: var(--gold-600); font-size: 13px; flex-shrink: 0; margin-top: 1px; }

/* ── EDITOR ───────────────────────────────────────────── */
.editor-wrap { border: 1.5px solid var(--border); border-radius: var(--r-md); overflow: hidden; transition: border-color var(--dur-fast); }
.editor-wrap:focus-within { border-color: var(--gold-500); box-shadow: 0 0 0 3px rgba(201,148,26,.15); }
.editor-toolbar {
  display: flex;
  gap: 2px;
  padding: var(--space-2) var(--space-3);
  background: var(--surface-alt);
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}
.editor-btn {
  padding: 5px 10px;
  border-radius: var(--r-sm);
  font-size: 13px;
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid transparent;
  transition: all var(--dur-fast);
  font-family: var(--font-body);
}
.editor-btn:hover { background: var(--surface); border-color: var(--border); color: var(--text-primary); }
.editor-btn.active { background: var(--surface); border-color: var(--gold-400); color: var(--gold-700); }
.editor-sep { width: 1px; background: var(--border); margin: var(--space-1) var(--space-1); align-self: stretch; }
.editor-content {
  width: 100%;
  min-height: 340px;
  padding: var(--space-5) var(--space-5);
  border: none;
  background: var(--surface);
  color: var(--text-primary);
  font-family: var(--font-display);
  font-size: 17px;
  line-height: 1.85;
  resize: vertical;
  outline: none;
}

/* ── COMENTÁRIOS ──────────────────────────────────────── */
.comment {
  display: flex;
  gap: var(--space-4);
  padding: var(--space-5) 0;
  border-bottom: 1px solid var(--border-soft);
}
.comment:last-child { border-bottom: none; }
.comment-avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-300), var(--gold-600));
  color: var(--ink-800);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  flex-shrink: 0;
}
.comment-body { flex: 1; }
.comment-header { display: flex; align-items: center; gap: var(--space-2); margin-bottom: 6px; flex-wrap: wrap; }
.comment-author { font-weight: 600; font-size: 13.5px; color: var(--text-primary); }
.comment-handle { font-size: 12px; color: var(--text-muted); }
.comment-time { font-size: 11.5px; color: var(--text-muted); margin-left: auto; }
.comment-text { font-size: 13.5px; color: var(--text-secondary); line-height: 1.65; }

/* ── ESTRELAS ─────────────────────────────────────────── */
.stars { display: flex; gap: 2px; }
.star {
  font-size: 22px;
  cursor: pointer;
  color: var(--border);
  transition: color var(--dur-fast), transform var(--dur-fast);
  background: none; border: none; padding: 2px; line-height: 1;
}
.star.filled { color: var(--gold-500); }
.star:hover  { transform: scale(1.15); }

/* ── PAGINAÇÃO ────────────────────────────────────────── */
.pagination { display: flex; gap: var(--space-1); justify-content: center; margin-top: var(--space-8); flex-wrap: wrap; }
.page-btn {
  min-width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border: 1.5px solid var(--border);
  border-radius: var(--r-sm);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--surface);
  text-decoration: none;
  transition: all var(--dur-fast);
  padding: 0 var(--space-2);
}
.page-btn:hover { border-color: var(--gold-400); color: var(--gold-700); background: var(--gold-50); }
.page-btn.active {
  background: var(--gold-600);
  border-color: var(--gold-600);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 2px 6px rgba(180,120,16,.3);
}

/* ── TABS ─────────────────────────────────────────────── */
.tabs {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--border);
  margin-bottom: var(--space-6);
  overflow-x: auto;
  scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
  padding: var(--space-3) var(--space-5);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-muted);
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  background: none;
  cursor: pointer;
  transition: all var(--dur-fast);
  white-space: nowrap;
  text-decoration: none;
  display: inline-block;
  letter-spacing: .01em;
}
.tab:hover { color: var(--text-primary); }
.tab.active { color: var(--gold-700); border-bottom-color: var(--gold-600); font-weight: 600; }

/* ── AUTH FORMS ───────────────────────────────────────── */
.auth-wrap {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--bg);
}
.auth-visual {
  background: var(--ink-900);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--space-10);
}
.auth-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 30% 40%, rgba(201,148,26,.12) 0%, transparent 60%),
    radial-gradient(ellipse 50% 80% at 80% 70%, rgba(107,58,158,.08) 0%, transparent 60%);
}
.auth-visual-quote {
  position: relative;
  z-index: 1;
  font-family: var(--font-display);
  font-size: clamp(28px,4vw,48px);
  font-weight: 300;
  font-style: italic;
  color: var(--ink-100);
  line-height: 1.2;
  margin-bottom: var(--space-5);
}
.auth-visual-attr { font-size: 13px; color: var(--gold-400); letter-spacing: .08em; text-transform: uppercase; font-style: normal; }
.auth-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-8);
}
.auth-card {
  width: 100%;
  max-width: 420px;
}
.auth-logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  color: var(--text-primary);
  text-decoration: none;
  margin-bottom: var(--space-8);
}
.auth-title { font-family: var(--font-display); font-size: 32px; font-weight: 600; margin-bottom: 6px; }
.auth-subtitle { color: var(--text-muted); font-size: 14px; margin-bottom: var(--space-8); line-height: 1.6; }

/* ── BALANCE CARD ─────────────────────────────────────── */
.balance-card {
  background: linear-gradient(135deg, var(--ink-800) 0%, var(--ink-700) 60%, #3d2e14 100%);
  border-radius: var(--r-xl);
  padding: var(--space-8);
  color: var(--ink-50);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(201,148,26,.2);
}
.balance-card::before {
  content: '';
  position: absolute;
  top: -40px; right: -40px;
  width: 160px; height: 160px;
  background: radial-gradient(circle, rgba(201,148,26,.15), transparent 70%);
  border-radius: 50%;
}
.balance-label { font-size: 12px; color: rgba(232,221,200,.5); letter-spacing: .08em; text-transform: uppercase; margin-bottom: var(--space-2); }
.balance-amount {
  font-family: var(--font-display);
  font-size: 52px;
  font-weight: 700;
  color: var(--gold-300);
  line-height: 1;
  margin-bottom: var(--space-5);
}
.balance-actions { display: flex; gap: var(--space-3); }

/* ── CONTENT LOCKED ───────────────────────────────────── */
.content-fade {
  position: relative;
  max-height: 280px;
  overflow: hidden;
}
.content-fade::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 140px;
  background: linear-gradient(to bottom, transparent, var(--bg));
  pointer-events: none;
}
.content-locked-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: var(--space-10) var(--space-8);
  text-align: center;
  max-width: 440px;
  margin: var(--space-6) auto 0;
  box-shadow: var(--shadow-lg);
}
.content-locked-icon { font-size: 44px; margin-bottom: var(--space-4); display: block; }
.content-locked-title { font-family: var(--font-display); font-size: 26px; font-weight: 600; margin-bottom: var(--space-3); }
.content-locked-text { color: var(--text-muted); font-size: 14px; line-height: 1.65; margin-bottom: var(--space-6); }

/* ── SPINNER ──────────────────────────────────────────── */
.spinner {
  width: 20px; height: 20px;
  border: 2px solid var(--border);
  border-top-color: var(--gold-500);
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
.spinner-lg { width: 40px; height: 40px; border-width: 3px; }

/* ── SEÇÕES ESPECIAIS ─────────────────────────────────── */
.section-heading {
  text-align: center;
  max-width: 600px;
  margin: 0 auto var(--space-12);
}
.section-heading .eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--gold-600);
  margin-bottom: var(--space-3);
  display: block;
}
.section-heading h2 {
  font-family: var(--font-display);
  font-size: clamp(28px,4vw,44px);
  font-weight: 500;
  line-height: 1.15;
  margin-bottom: var(--space-4);
}
.section-heading p { color: var(--text-muted); font-size: 16px; line-height: 1.7; }

/* Fundo alternado de seção */
.bg-paper { background: var(--paper-dark); }
.bg-dark   { background: var(--ink-900); color: var(--ink-50); }
.bg-dark p { color: rgba(232,221,200,.65); }
.bg-gold   { background: linear-gradient(135deg, var(--gold-50) 0%, var(--paper) 100%); }

/* Linha decorativa dourada */
.gold-line {
  display: block;
  width: 48px;
  height: 2px;
  background: linear-gradient(90deg, var(--gold-500), var(--gold-300));
  border-radius: var(--r-pill);
  margin: var(--space-3) auto;
}

/* ── CATEGORY PILL ────────────────────────────────────── */
.cat-pill {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 6px 14px;
  border-radius: var(--r-pill);
  font-size: 12.5px;
  font-weight: 600;
  border: 1.5px solid currentColor;
  text-decoration: none;
  transition: all var(--dur-fast);
  color: var(--gold-700);
  border-color: var(--border-gold);
  background: var(--gold-50);
}
.cat-pill:hover { background: var(--gold-600); color: #fff; border-color: var(--gold-600); }

/* ── AVATAR ───────────────────────────────────────────── */
.avatar { border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.avatar-xs { width: 24px; height: 24px; }
.avatar-sm { width: 32px; height: 32px; }
.avatar-md { width: 44px; height: 44px; }
.avatar-lg { width: 64px; height: 64px; }
.avatar-xl { width: 96px; height: 96px; border: 3px solid var(--gold-400); box-shadow: var(--shadow-gold); }

/* ── NOTIFICAÇÃO DOT ──────────────────────────────────── */
.unread-dot {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--gold-500);
  flex-shrink: 0;
  box-shadow: 0 0 0 2px var(--surface);
}

/* ── DROPDOWN ─────────────────────────────────────────── */
.dropdown { position: relative; display: inline-block; }
.dropdown-menu {
  position: absolute;
  top: calc(100% + var(--space-2));
  right: 0;
  min-width: 180px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  padding: var(--space-2) 0;
  z-index: 500;
  animation: scaleIn var(--dur-fast) var(--ease-out);
  transform-origin: top right;
}
.dropdown-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: 9px var(--space-4);
  font-size: 13.5px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: background var(--dur-fast);
  text-decoration: none;
}
.dropdown-item:hover { background: var(--gold-50); color: var(--text-primary); }
.dropdown-sep { height: 1px; background: var(--border-soft); margin: var(--space-2) 0; }

/* ── ALERT ────────────────────────────────────────────── */
.alert {
  padding: var(--space-4) var(--space-5);
  border-radius: var(--r-md);
  font-size: 13.5px;
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  border: 1.5px solid transparent;
  line-height: 1.5;
}
.alert-icon { font-size: 16px; flex-shrink: 0; margin-top: 1px; }
.alert-success { background: var(--forest-100); color: var(--forest-600); border-color: rgba(52,102,48,.2); }
.alert-error   { background: var(--sienna-100); color: var(--sienna-600); border-color: rgba(168,57,30,.2); }
.alert-warning { background: var(--gold-50);    color: var(--gold-800);   border-color: var(--border-gold); }
.alert-info    { background: var(--sky-100);    color: var(--sky-600);    border-color: rgba(42,90,154,.2); }

/* ── PROGRESS BAR ─────────────────────────────────────── */
.progress-bar {
  height: 4px;
  background: var(--border);
  border-radius: var(--r-pill);
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold-600), var(--gold-400));
  border-radius: var(--r-pill);
  transition: width var(--dur-slow) var(--ease-out);
}

/* ── SKELETON LOADING ─────────────────────────────────── */
.skeleton {
  background: linear-gradient(90deg, var(--border-soft) 25%, var(--border) 50%, var(--border-soft) 75%);
  background-size: 200% auto;
  animation: shimmer 1.5s linear infinite;
  border-radius: var(--r-sm);
}

/* ── FOOTER ───────────────────────────────────────────── */
.footer {
  background: var(--ink-900);
  color: var(--ink-200);
  padding: var(--space-16) var(--space-8) var(--space-8);
  border-top: 1px solid rgba(255,255,255,.04);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-10);
  margin-bottom: var(--space-12);
}
.footer-logo {
  font-family: var(--font-display);
  font-size: 24px;
  color: var(--ink-50);
  margin-bottom: var(--space-4);
}
.footer-logo span { color: var(--gold-400); }
.footer-desc { font-size: 13.5px; color: rgba(200,184,150,.6); line-height: 1.75; }
.footer-heading { font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.3); margin-bottom: var(--space-4); }
.footer-links { display: flex; flex-direction: column; gap: var(--space-3); }
.footer-link { font-size: 13.5px; color: rgba(200,184,150,.6); text-decoration: none; transition: color var(--dur-fast); }
.footer-link:hover { color: var(--gold-300); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.06);
  padding-top: var(--space-6);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: rgba(200,184,150,.35);
  flex-wrap: wrap;
  gap: var(--space-3);
}

/* ── UTILIDADES ───────────────────────────────────────── */
.hidden   { display: none !important; }
.sr-only  { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.break-all{ word-break: break-all; }
.rounded-full { border-radius: var(--r-pill); }
.overflow-hidden { overflow: hidden; }
.relative { position: relative; }
.absolute { position: absolute; }
.w-full { width: 100%; }
.h-full { height: 100%; }
.mt-auto { margin-top: auto; }
.ml-auto { margin-left: auto; }
.mb-0 { margin-bottom: 0; }
.p-0 { padding: 0; }
.inset-0 { inset: 0; }
.opacity-60 { opacity: .6; }

/* ══════════════════════════════════════════════════════
   RESPONSIVIDADE — Mobile-first refinements
   ══════════════════════════════════════════════════════ */

/* ── 1280px ── */
@media (max-width: 1280px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer-grid > *:first-child { grid-column: 1 / -1; }
}

/* ── 1024px ── */
@media (max-width: 1024px) {
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .hero-stats { gap: var(--space-8); }
  .auth-visual { display: none; }
  .auth-wrap { grid-template-columns: 1fr; min-height: 100vh; }
  .auth-panel { padding: var(--space-6) var(--space-5); align-items: flex-start; padding-top: var(--space-12); }
}

/* ── 768px ── */
@media (max-width: 768px) {
  :root {
    --space-20: 56px;
    --space-16: 48px;
    --space-12: 40px;
  }

  .nav { padding: 0 var(--space-4); height: 60px; }
  .nav-links { display: none; }
  .nav-search { display: none; }
  .nav-mobile-toggle { display: flex; }

  /* Nav mobile aberto */
  .nav-mobile-open .nav-links {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 60px; left: 0; right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: var(--space-4);
    gap: var(--space-1);
    box-shadow: var(--shadow-lg);
    z-index: 199;
  }
  .nav-mobile-open .nav-link { padding: var(--space-3) var(--space-4); width: 100%; }

  .hero { padding: var(--space-12) var(--space-5) var(--space-16); }
  .hero-stats { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-6); }

  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .grid-auto { grid-template-columns: 1fr; }

  .sidebar {
    transform: translateX(-100%);
    transition: transform var(--dur-base) var(--ease-out);
  }
  .sidebar.open { transform: translateX(0); }
  .admin-main { margin-left: 0; }
  .admin-topbar { padding: var(--space-4) var(--space-5); }
  .admin-content { padding: var(--space-5); }

  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > *:first-child { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; text-align: center; }

  .modal { padding: var(--space-6); border-radius: var(--r-lg); }

  .reading-toolbar { bottom: var(--space-4); }
  .plan-card { padding: var(--space-6); }

  .toast { right: var(--space-4); left: var(--space-4); max-width: none; }
}

/* ── 480px ── */
@media (max-width: 480px) {
  .section, .section-sm { padding-left: var(--space-4); padding-right: var(--space-4); }
  .container, .container-sm, .container-xs { padding: 0 var(--space-4); }

  .hero-title { font-size: clamp(36px, 10vw, 52px); letter-spacing: -.02em; }
  .hero-subtitle { font-size: 14px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { justify-content: center; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: var(--space-4); }

  .btn-xl, .btn-lg { padding: 12px 22px; font-size: 14px; }

  .card { padding: var(--space-4); }
  .reading-mode { padding: var(--space-6) var(--space-4) var(--space-16); }
  .reading-content { font-size: 18px; }

  .footer { padding: var(--space-10) var(--space-4) var(--space-6); }
  .footer-grid { grid-template-columns: 1fr; }

  .balance-amount { font-size: 40px; }
  .stat-number { font-size: 28px; }
  .plan-price { font-size: 40px; }
}

/* ── Print ── */
@media print {
  .nav, .footer, .reading-toolbar, .sidebar, .toast { display: none; }
  body { background: white; color: black; }
  .reading-content { font-size: 12pt; }
}
