/*
 * SYMBOLON - MAIN STYLESHEET
 * Design System: Medieval Manuscript (Pergaminho Digital)
 * Consolidado de 9 arquivos CSS em um único arquivo otimizado
 * Última atualização: Novembro 2025
 */

/* ========================================
   1. VARIÁVEIS CSS (Design Tokens)
   ======================================== */

:root {
  /* ========================================
     SISTEMA DE CORES - TEMA CLARO (20 cores)
     Baseado em Design Tokens Semânticos
     ======================================== */

  /* 1. BRAND COLORS (Identidade) */
  /* NOTA: Cores principais agora vêm do banco de dados via base.html (SiteSettings) */
  /* Os valores comentados abaixo são APENAS para referência - NÃO estão em uso */
  /* --primary: #4A5D4F; */
  /* Moss Green - ações principais, CTA */
  /* --secondary: #6B3A3E; */
  /* Wine Red - ações secundárias, badges */
  /* --accent: #A68D5F; */
  /* Gold - destaques, elementos premium */

  /* 2. NEUTRAL COLORS (Fundos, Textos, Bordas) */
  /* NOTA: Cores neutras principais agora vêm do banco de dados via base.html */
  /* --bg-primary: #F5F1E8; */
  /* Fundo principal da página */
  /* --bg-secondary: #FAF7F0; */
  /* Fundo secundário - cards, elevados */
  --surface: #EBE5D9;
  /* Superfícies - modais, dropdowns (não configurável) */
  /* --text-primary: #2B2520; */
  /* Texto principal - hierarquia alta */
  /* --text-secondary: #4A4139; */
  /* Texto secundário - descrições */
  --text-disabled: #8B7E71;
  /* Texto desabilitado - inativos (não configurável) */
  /* --border: #6B5E52; */
  /* Bordas, divisores, separadores */
  --border-light: #D5CFC3;
  /* Bordas suaves - separadores leves (não configurável) */

  /* 2b. EXTENDED NEUTRALS (Cores adicionais do tema manuscrito) */
  --parchment-light: #FCF9F3;
  /* Pergaminho claro - fundos suaves */
  --parchment-dark: #E8DCC8;
  /* Pergaminho escuro - contraste sutil */
  --ink-primary: #2B2520;
  /* Tinta primária (alias de text-primary) */
  --ink-secondary: #4A4139;
  /* Tinta secundária (alias de text-secondary) */
  --ink-light: #6B5E52;
  /* Tinta clara - textos terciários */
  --ink-dark: #1A1512;
  /* Tinta escura - textos de alto contraste */
  --ink-faded: #8B7E71;
  /* Tinta desbotada - textos desativados */

  /* 2c. EXTENDED BRAND (Cores complementares) */
  --moss-green: #4A5D4F;
  /* Verde musgo (alias de primary) */
  --medieval-blue: #4A5D6F;
  /* Azul medieval (alias de info) */

  /* 3. INTERACTIVE STATES (Estados de Interação) */
  --hover: #5A6D5E;
  /* Hover - botões, links (não configurável) */
  /* --active: #3A4D3F; */
  /* Active/Pressed - elementos ativos (vem do DB) */
  --focus: #A68D5F;
  /* Focus - acessibilidade (não configurável, baseado em accent) */
  --disabled: #D5CFC3;
  /* Disabled - elementos desabilitados (não configurável) */

  /* 4. FEEDBACK/SEMANTIC (Status e Alertas) */
  /* NOTA: Cores semânticas agora vêm do banco de dados via base.html */
  /* --success: #5A7D5F; */
  /* Sucesso - confirmações */
  /* --warning: #C6AD7F; */
  /* Avisos - alertas não críticos */
  /* --error: #8B4A4E; */
  /* Erros - ações destrutivas */
  /* --info: #4A5D6F; */
  /* Informações - dicas */

  /* 5. OVERLAYS (Sombras e Sobreposições) */
  --overlay: #2B2520;
  /* Modais/dropdowns (usar com opacity) */
  --shadow-color: #2B2520;
  /* Cor das sombras (usar com opacity) */

  /* === TIPOGRAFIA === */

  /* Famílias de Fontes */
  --font-display: 'Modern Antiqua', 'Cinzel', 'Cormorant Garamond', Georgia, serif;
  --font-decorative: 'Modern Antiqua', cursive;
  --font-body: 'Crimson Text', 'Cormorant Garamond', Georgia, serif;
  --font-numbers: 'EB Garamond', Georgia, serif;

  /* Escala Tipográfica (Major Third - 1.250) */
  --font-size-xs: 0.64rem;
  /* 10.24px */
  --font-size-sm: 0.8rem;
  /* 12.8px */
  --font-size-base: 1rem;
  /* 16px */
  --font-size-md: 1.25rem;
  /* 20px */
  --font-size-lg: 1.563rem;
  /* 25px */
  --font-size-xl: 1.953rem;
  /* 31.25px */
  --font-size-2xl: 2.441rem;
  /* 39px */
  --font-size-3xl: 3.052rem;
  /* 48.83px */
  --font-size-4xl: 3.815rem;
  /* 61px */

  /* Pesos */
  --font-weight-light: 300;
  --font-weight-regular: 400;
  --font-weight-normal: 400;
  /* Alias de regular */
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  --font-weight-extrabold: 800;

  /* Line Heights */
  --line-height-tight: 1.2;
  --line-height-snug: 1.375;
  --line-height-normal: 1.6;
  --line-height-relaxed: 1.75;
  --line-height-loose: 2;
  --leading-relaxed: 1.75;
  /* Alias de line-height-relaxed */

  /* Letter Spacing */
  --letter-spacing-tight: -0.02em;
  --letter-spacing-normal: 0;
  --letter-spacing-wide: 0.03em;

  /* === ESPAÇAMENTO === */
  --space-1: 0.5rem;
  /* 8px */
  --space-2: 1rem;
  /* 16px */
  --space-3: 1.5rem;
  /* 24px */
  --space-4: 2rem;
  /* 32px */
  --space-5: 3rem;
  /* 48px */
  --space-6: 4rem;
  /* 64px */
  --space-7: 6rem;
  /* 96px */
  --space-8: 8rem;
  /* 128px */

  /* Container Máximo */
  --container-sm: 640px;
  --container-md: 768px;
  --container-lg: 1024px;
  --container-xl: 1280px;
  --container-xxl: 1320px;
  /* Container máximo - alinhado com Bootstrap XXL */

  /* === RAIOS DE BORDA === */
  --radius-sm: 0.25rem;
  --radius-base: 0.5rem;
  /* Alias de md - raio padrão */
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-full: 9999px;

  /* === SOMBRAS (Empilhamento de Papel) === */
  --shadow-sm: 2px 2px 0 color-mix(in srgb, var(--ink-primary) 5%, transparent);
  --shadow-md: 2px 2px 0 color-mix(in srgb, var(--ink-primary) 5%, transparent),
    4px 4px 0 color-mix(in srgb, var(--ink-primary) 3%, transparent);
  --shadow-lg: 4px 4px 0 color-mix(in srgb, var(--ink-primary) 8%, transparent),
    8px 8px 0 color-mix(in srgb, var(--ink-primary) 5%, transparent),
    12px 12px 0 color-mix(in srgb, var(--ink-primary) 3%, transparent);

  /* === ANIMAÇÕES === */
  --duration-fast: 150ms;
  --duration-base: 300ms;
  --duration-slow: 500ms;

  --ease-in: cubic-bezier(0.4, 0, 1, 1);
  --ease-out: cubic-bezier(0, 0, 0.2, 1);
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-natural: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-smooth: cubic-bezier(0.23, 1, 0.32, 1);
  /* Alias de ease-natural */

  /* === BREAKPOINTS === */
  --breakpoint-sm: 640px;
  --breakpoint-md: 768px;
  --breakpoint-lg: 1024px;
  --breakpoint-xl: 1280px;
  --text-muted: var(--text-secondary);
}

/* ========================================
   2. MODO ESCURO (Manuscrito Noturno)
   ======================================== */

[data-theme="dark"] {
  /* ========================================
     SISTEMA DE CORES - TEMA ESCURO (20 cores)
     ======================================== */

  /* 1. BRAND COLORS (Identidade) */
  /* NOTA: Cores principais dark agora vêm do banco de dados via base.html (SiteSettings) */
  /* --primary: #6B7D6E; */
  /* Moss Green Light - primária dark */
  /* --secondary: #8B5A5E; */
  /* Wine Red Light - secundária dark */
  /* --accent: #C6AD7F; */
  /* Gold Bright - destaque dark */

  /* 2. NEUTRAL COLORS (Fundos, Textos, Bordas) */
  /* NOTA: Cores neutras principais dark agora vêm do banco de dados via base.html */
  /* --bg-primary: #1A1614; */
  /* Fundo principal dark */
  /* --bg-secondary: #2B2520; */
  /* Fundo secundário dark */
  --surface: #3A3531;
  /* Superfícies dark (não configurável) */
  /* --text-primary: #E5DCC9; */
  /* Texto principal dark */
  /* --text-secondary: #C6B89D; */
  /* Texto secundário dark */
  --text-disabled: #6B5E52;
  /* Texto desabilitado dark (não configurável) */
  /* --border: #4A4139; */
  /* Bordas dark */
  --border-light: #3A3531;
  /* Bordas suaves dark (não configurável) */

  /* 2b. EXTENDED NEUTRALS (Cores adicionais do tema manuscrito dark) */
  --parchment-light: #2B2520;
  /* Pergaminho claro dark */
  --parchment-dark: #1A1614;
  /* Pergaminho escuro dark */
  --ink-primary: #E5DCC9;
  /* Tinta primária dark */
  --ink-secondary: #C6B89D;
  /* Tinta secundária dark */
  --ink-light: #8B7E71;
  /* Tinta clara dark */
  --ink-dark: #F5F1E8;
  /* Tinta escura (invertida para dark) */
  --ink-faded: #6B5E52;
  /* Tinta desbotada dark */

  /* 2c. EXTENDED BRAND (Cores complementares dark) */
  --moss-green: #6B7D6E;
  /* Verde musgo dark */
  --medieval-blue: #5A6D7F;
  /* Azul medieval dark */

  /* 3. INTERACTIVE STATES (Estados de Interação) */
  --hover: #7B8D7E;
  /* Hover dark (não configurável) */
  /* --active: #5B6D5E; */
  /* Active dark (vem do DB) */
  --focus: #C6AD7F;
  /* Focus dark (não configurável) */
  --disabled: #3A3531;
  /* Disabled dark (não configurável) */

  /* 4. FEEDBACK/SEMANTIC (Status e Alertas) */
  /* NOTA: Cores semânticas dark agora vêm do banco de dados via base.html */
  /* --success: #6A8D6F; */
  /* Sucesso dark */
  /* --warning: #D6BD8F; */
  /* Warning dark */
  /* --error: #9B5A5E; */
  /* Error dark */
  /* --info: #5A6D7F; */
  /* Info dark */

  /* 5. OVERLAYS (Sombras e Sobreposições) */
  --overlay: #000000;
  /* Modais dark */
  --shadow-color: #000000;
  /* Sombras dark */
}

/* ========================================
   3. RESET E BASE
   ======================================== */

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

body {
  font-family: var(--font-body);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-regular);
  line-height: var(--line-height-normal);
  color: var(--text-primary);
  background-color: var(--bg-primary);
  min-height: 100vh;
  overflow-x: hidden;
}

/* Textura sutil de papel (opcional) */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.02;
  z-index: -1;
}

img {
  max-width: 100%;
  height: auto;
}

p {
  font-family: var(--font-body);
  margin-bottom: var(--space-3);
  line-height: var(--line-height-normal);
}

p:last-child {
  margin-bottom: 0;
}

li {
  font-family: var(--font-body);
  line-height: 1.7;
}

/* ========================================
   4. TIPOGRAFIA
   ======================================== */

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display);
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-tight);
  color: var(--text-primary);
  margin-top: 0;
}

h1 {
  font-size: clamp(2rem, 5vw, var(--font-size-3xl));
  letter-spacing: var(--letter-spacing-tight);
  margin-bottom: var(--space-3);
}

h2 {
  font-size: clamp(1.5rem, 4vw, var(--font-size-2xl));
  margin-bottom: var(--space-3);
  margin-top: var(--space-5);
}

h3 {
  font-size: var(--font-size-xl);
  margin-bottom: var(--space-2);
  margin-top: var(--space-4);
}

h4 {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-semibold);
  margin-bottom: var(--space-2);
}

h5 {
  font-size: var(--font-size-md);
  font-weight: var(--font-weight-semibold);
  margin-bottom: var(--space-2);
}

h6 {
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-semibold);
  margin-bottom: var(--space-2);
}

/* Textos corridos usam Crimson Text */
label,
span:not(.badge):not(.hero-ornament):not(.section-ornament),
.text-body,
.card-text,
.info-value {
  font-family: var(--font-body);
}

/* Links */
a {
  color: var(--primary);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color var(--duration-base) var(--ease-out),
    color var(--duration-base) var(--ease-out);
}

a:hover {
  border-bottom-color: var(--primary);
  color: var(--hover);
}

/* Lead Paragraph */
.lead {
  font-size: var(--font-size-md);
  line-height: var(--line-height-relaxed);
  color: var(--text-secondary);
}

/* Small Text */
small,
.small {
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
}

.card-text.small {
  color: var(--text-secondary);
}

/* Texto Decorativo - Modern Antiqua */
.decorative-text,
.brand-name {
  font-family: var(--font-decorative) !important;
  letter-spacing: 0.02em;
}

/* Hero Title - Consolidated Definition */
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: var(--font-weight-bold);
  color: var(--text-primary);
  letter-spacing: 0.02em;
  margin-bottom: var(--space-3);
}

/* Section Titles for Home/Dashboard */
.section-title-display {
  font-family: var(--font-display);
  color: var(--text-primary);
  text-align: center;
  margin-bottom: var(--space-4);
}

.section-title-count {
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
  font-weight: normal;
}

/* ========================================
   5. HEADER / NAVEGAÇÃO
   ======================================== */

.navbar-mystical {
  background: var(--bg-primary);
  border-bottom: 1px solid color-mix(in srgb, var(--ink-light) 20%, transparent);
  padding: var(--space-3) 0;
  box-shadow: 0 2px 4px color-mix(in srgb, var(--ink-primary) 5%, transparent);
}

.navbar-brand {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: var(--font-weight-bold);
  letter-spacing: 0.1em;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  border-bottom: none;
  will-change: transform;
  transition: transform var(--duration-base) var(--ease-out);
}

.navbar-brand:hover {
  transform: translateY(-2px);
  border-bottom: none;
}

.navbar-brand i {
  color: var(--primary);
  font-size: 1.5rem;
  transition: color var(--duration-base);
}

.navbar-brand:hover i {
  color: var(--hover);
}

.navbar-nav .nav-link {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: var(--font-weight-medium);
  color: var(--text-secondary);
  position: relative;
  padding: 0.5rem 1rem;
  margin: 0 0.25rem;
  transition: color var(--duration-base) var(--ease-out);
  border-bottom: none;
}

.navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 1rem;
  right: 1rem;
  height: 1px;
  background-color: var(--primary);
  transform: scaleX(0);
  will-change: transform;
  transition: transform var(--duration-base) var(--ease-out);
}

.navbar-nav .nav-link:hover {
  color: var(--primary);
  border-bottom: none;
}

.navbar-nav .nav-link:hover::after {
  transform: scaleX(1);
}

.navbar-nav .nav-link.active {
  color: var(--text-primary);
  font-weight: var(--font-weight-semibold);
}

.navbar-nav .nav-link.active::after {
  transform: scaleX(1);
  background-color: var(--text-primary);
}

/* Navbar Divider */
.navbar-divider {
  border: 0;
  border-top: 1px solid var(--border-color, var(--border));
  margin: 0.5rem 1rem;
  opacity: 0.4;
}

/* Navbar Toggler */
.navbar-toggler {
  border-color: color-mix(in srgb, var(--primary) 30%, transparent);
}

.navbar-toggler-icon {
  filter: brightness(0.5);
}

/* Dropdown */
.dropdown-menu {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 0;
  box-shadow: var(--shadow-md);
  padding: 0.5rem 0;
}

.dropdown-item {
  font-family: var(--font-body);
  color: var(--text-secondary);
  padding: 0.75rem 1.5rem;
  will-change: transform, opacity;
  transition: all var(--duration-fast);
}

.dropdown-item:hover {
  background: color-mix(in srgb, var(--primary) 5%, transparent);
  color: var(--primary);
}

.dropdown-item.active {
  background: var(--primary);
  color: var(--bg-secondary);
}

.dropdown-divider {
  border-color: color-mix(in srgb, var(--ink-light) 20%, transparent);
}

.dropdown-menu form {
  margin: 0;
}

.dropdown-item-logout {
  color: var(--secondary);
}

.nav-link-register {
  background: color-mix(in srgb, var(--primary) 10%, transparent);
  border-radius: var(--radius-md);
}

/* Site Logo */
.site-logo-img {
  max-height: 40px;
}

/* ========================================
   6. BOTÕES
   ======================================== */

/* Botão Primário */
.btn-manuscript-primary,
.btn-primary {
  font-family: var(--font-display);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  letter-spacing: var(--letter-spacing-wide);
  text-transform: uppercase;

  color: var(--bg-secondary);
  background: var(--primary);
  border: 2px solid var(--active);

  padding: 0.875rem 2rem;
  cursor: pointer;
  position: relative;

  will-change: transform, opacity;
  transition: all var(--duration-base) var(--ease-in-out);

  display: inline-block;
  text-decoration: none;
}

.btn-manuscript-primary::before,
.btn-primary::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: var(--active);
  z-index: -1;
  transform: translate(4px, 4px);
  will-change: transform;
  transition: transform var(--duration-base) var(--ease-out);
}

.btn-manuscript-primary:hover,
.btn-primary:hover {
  transform: translate(2px, 2px);
  color: var(--bg-secondary);
  border-bottom: 2px solid var(--active);
}

.btn-manuscript-primary:hover::before,
.btn-primary:hover::before {
  transform: translate(2px, 2px);
}

.btn-manuscript-primary:active,
.btn-primary:active {
  transform: translate(4px, 4px);
}

.btn-manuscript-primary:active::before,
.btn-primary:active::before {
  transform: translate(0, 0);
}

/* Botão Secundário (Outline) */
.btn-manuscript-secondary,
.btn-secondary,
.btn-outline-primary {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: var(--font-weight-medium);

  color: var(--primary);
  background: transparent;
  border: 1px solid var(--primary);

  padding: 0.75rem 1.75rem;
  cursor: pointer;

  will-change: transform, opacity;
  transition: all var(--duration-base) var(--ease-out);

  display: inline-block;
  text-decoration: none;
}

.btn-manuscript-secondary:hover,
.btn-secondary:hover,
.btn-outline-primary:hover {
  background: color-mix(in srgb, var(--primary) 5%, transparent);
  border-width: 2px;
  padding: calc(0.75rem - 1px) calc(1.75rem - 1px);
  color: var(--primary);
  border-bottom: 2px solid var(--primary);
}

/* Botão Link */
.btn-manuscript-link,
.btn-link {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: var(--font-weight-medium);

  color: var(--text-secondary);
  background: transparent;
  border: none;
  border-bottom: 1px dashed var(--border);

  padding: 0.25rem 0;
  cursor: pointer;

  will-change: transform, opacity;
  transition: all var(--duration-base) var(--ease-out);
}

.btn-manuscript-link:hover,
.btn-link:hover {
  color: var(--primary);
  border-bottom-color: var(--primary);
  border-bottom-style: solid;
}

/* Tamanhos de Botão */
.btn-sm {
  padding: 0.5rem 1rem;
  font-size: var(--font-size-sm);
}

.btn-lg {
  padding: 1rem 2.5rem;
  font-size: var(--font-size-md);
}

/* Back Button */
.back-button {
  position: sticky;
  top: 20px;
  z-index: 10;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-secondary);
  border: 2px solid var(--border);
  padding: 0.625rem 1.25rem;
  border-radius: var(--radius-full);
  text-decoration: none;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-weight: var(--font-weight-medium);
  will-change: transform, opacity;
  transition: all var(--duration-base) var(--ease-natural);
  box-shadow: var(--shadow-sm);
}

.back-button:hover {
  background: var(--primary);
  color: var(--bg-secondary);
  border-color: var(--active);
  transform: translateX(-5px);
  box-shadow: var(--shadow-md);
}

/* Action Buttons */
.action-buttons {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.action-btn {
  flex: 1;
  min-width: 150px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-weight: var(--font-weight-semibold);
  will-change: transform, opacity;
  transition: all var(--duration-base) var(--ease-natural);
  border: 2px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.action-btn .action-btn-subtitle {
  font-size: 0.75rem;
  opacity: 0.85;
  color: var(--bg-secondary);
}

.action-btn.btn-primary {
  background: var(--primary);
  color: var(--bg-secondary);
  border-color: var(--primary);
}

.action-btn.btn-primary:hover {
  background: color-mix(in srgb, var(--primary) 85%, var(--active));
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.action-btn.btn-outline-primary {
  background: var(--bg-secondary);
  color: var(--text-primary);
  border-color: var(--border);
}

.action-btn.btn-outline-primary:hover {
  background: color-mix(in srgb, var(--primary) 10%, var(--bg-secondary));
  color: var(--text-primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* ========================================
   7. FORMULÁRIOS
   ======================================== */

.label-manuscript,
label {
  font-family: var(--font-display);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  letter-spacing: var(--letter-spacing-wide);
  text-transform: uppercase;
  color: var(--text-secondary);
  display: block;
  margin-bottom: 0.5rem;
}

.input-manuscript,
.form-control {
  font-family: var(--font-body);
  font-size: 1rem;

  color: var(--text-primary);
  background: var(--bg-secondary);

  border: none;
  border-bottom: 2px solid var(--border);
  border-radius: 0;

  padding: 0.75rem 0.5rem;
  width: 100%;

  will-change: transform, opacity;
  transition: all var(--duration-base) var(--ease-out);
}

.input-manuscript:focus,
.form-control:focus {
  outline: none;
  border-bottom-color: var(--primary);
  background: color-mix(in srgb, var(--bg-primary) 80%, transparent);
  box-shadow: none;
}

.input-manuscript::placeholder,
.form-control::placeholder {
  color: var(--text-disabled);
  font-style: italic;
}

/* Textarea */
.textarea-manuscript,
textarea.form-control {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: var(--line-height-normal);

  color: var(--text-primary);
  background: var(--bg-secondary);

  border: 1px solid var(--border);
  border-radius: 0;
  padding: 1rem;
  width: 100%;
  min-height: 150px;
  resize: vertical;

  will-change: transform, opacity;
  transition: all var(--duration-base) var(--ease-out);
}

.textarea-manuscript:focus,
textarea.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 10%, transparent);
}

/* Select */
.form-select {
  font-family: var(--font-body);
  color: var(--text-primary);
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 0;
  padding: 0.75rem 2.5rem 0.75rem 0.75rem;
}

.form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 10%, transparent);
}

.form-group {
  margin-bottom: var(--space-3);
}

.form-help {
  font-size: var(--font-size-sm);
  color: var(--border);
  margin-top: 0.5rem;
}

.form-error {
  font-size: var(--font-size-sm);
  color: var(--secondary);
  margin-top: 0.5rem;
}

/* ========================================
   8. CARDS
   ======================================== */

.card-manuscript,
.card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 0;
  padding: var(--space-4);
  box-shadow: var(--shadow-sm);
  will-change: transform;
  transition: transform var(--duration-slow) var(--ease-natural),
    box-shadow var(--duration-slow) var(--ease-natural);
}

.card-manuscript:hover,
.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.card-header {
  background: transparent;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  padding: var(--space-2) var(--space-3);
  font-family: var(--font-display);
  font-weight: var(--font-weight-semibold);
  color: var(--text-primary);
}

.card-body {
  padding: var(--space-3);
}

.card-footer {
  background: transparent;
  border-top: 1px solid var(--border);
  border-radius: 0;
  padding: var(--space-2) var(--space-3);
}

.card-title a {
  text-decoration: none;
  color: var(--ink-dark);
  transition: color 0.2s ease;
}

.card-title a:hover {
  color: var(--primary);
  text-decoration: underline;
}

/* Symbol Cards */
.symbol-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  padding: 0;
  will-change: transform, box-shadow;
  will-change: transform, opacity;
  transition: all var(--duration-slow) var(--ease-natural);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.symbol-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.symbol-image-wrapper {
  padding: var(--space-4);
  border-bottom: 1px solid var(--border);
  background: var(--bg-primary);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 200px;
  position: relative;
}

.symbol-image {
  max-width: 120px;
  max-height: 120px;
  object-fit: contain;
  filter: sepia(10%) contrast(1.05);
}

.symbol-content {
  padding: var(--space-3);
  flex-grow: 1;
}

.symbol-title {
  font-family: var(--font-display);
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-semibold);
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.symbol-meta {
  font-size: var(--font-size-sm);
  color: var(--secondary);
  margin-bottom: 1rem;
  font-style: italic;
}

.symbol-excerpt {
  font-size: 1rem;
  line-height: var(--line-height-normal);
  color: var(--text-secondary);
}

.symbol-footer {
  padding: var(--space-2) var(--space-3);
  border-top: 1px solid var(--border);
}

.symbol-link {
  font-family: var(--font-body);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--primary);
}

/* Symbol Image Placeholder */
.symbol-image-placeholder-icon {
  color: var(--text-secondary);
  font-size: 3rem;
  opacity: 0.3;
}

/* Home Page Specific Similarity Badge */
.similaridade-badge-home {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 0.75rem;
}

/* Small Tag Badge */
.badge-tag-small {
  font-size: 0.7rem;
}

/* Detail Card */
.detail-card {
  background: var(--bg-secondary);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  will-change: box-shadow;
  transition: box-shadow var(--duration-base) var(--ease-natural);
}

.detail-card:hover {
  box-shadow:
    0 20px 25px -5px color-mix(in srgb, var(--text-primary) 10%, transparent),
    0 10px 10px -5px color-mix(in srgb, var(--text-primary) 4%, transparent);
}

/* Result Cards */
.result-card {
  border: 1px solid var(--border);
  background: var(--bg-secondary);
  will-change: transform;
  transition: transform var(--duration-slow) var(--ease-natural),
    box-shadow var(--duration-slow) var(--ease-natural);
}

.result-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.result-card.border-3 {
  border: 3px solid var(--primary);
}

/* Thumb Wrap */
.thumb-wrap {
  position: relative;
  overflow: hidden;
  background: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-3);
  aspect-ratio: 1 / 1;
}

.thumb-wrap img,
.thumb-img {
  max-width: 100%;
  height: auto;
  object-fit: contain;
  filter: sepia(10%) contrast(1.05);
  will-change: transform;
  transition: transform var(--duration-slow) var(--ease-natural);
}

.card:hover .thumb-wrap img,
.card:hover .thumb-img {
  transform: scale(1.05);
}

.thumb-left-rounded {
  border-radius: 0;
}

/* ========================================
   9. BADGES E TAGS
   ======================================== */

.badge {
  font-family: var(--font-display);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-semibold);
  letter-spacing: var(--letter-spacing-wide);
  text-transform: uppercase;
  padding: 0.375rem 0.75rem;
  border-radius: 0;
  display: inline-block;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  vertical-align: baseline;
}

.badge-primary {
  background: var(--primary);
  color: var(--bg-secondary);
}

.badge-secondary {
  background: var(--border);
  color: var(--text-primary);
}

.badge-pro {
  display: inline-flex;
  align-items: center;
  background: var(--accent);
  color: var(--bg-secondary);

  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: var(--font-weight-bold);
  letter-spacing: var(--letter-spacing-wide);

  padding: 0.375rem 0.75rem;
  border: 1px solid rgb(0 0 0 / 10%);

  box-shadow: 0 2px 4px color-mix(in srgb, var(--secondary) 20%, transparent),
    inset 0 1px 0 rgb(255 255 255 / 20%);
}

.badge-tradition {
  background: var(--accent) !important;
  color: var(--bg-secondary) !important;
}

.text-bg-success {
  background-color: var(--primary);
  color: var(--bg-secondary) !important;
}

.text-bg-warning {
  background-color: var(--accent) !important;
  color: var(--text-primary);
}

.text-bg-secondary {
  background-color: var(--border) !important;
  color: var(--text-primary) !important;
}

.text-bg-dark {
  background-color: var(--text-primary);
  color: var(--bg-secondary) !important;
}

.bg-light {
  background-color: var(--surface) !important;
  color: var(--text-primary);
}

.bg-info {
  background-color: var(--info) !important;
}

.bg-warning {
  background-color: var(--accent) !important;
}

.bg-danger {
  background-color: var(--secondary);
}

.bg-success {
  background-color: var(--primary);
}

/* Tags */
.tag-badge {
  margin-right: .25rem;
  margin-bottom: .25rem;
  font-weight: 500;
}

.tag-item {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  background: var(--primary);
  color: var(--bg-secondary);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  margin-right: var(--space-2);
  margin-bottom: var(--space-2);
  font-family: var(--font-body);
  font-weight: var(--font-weight-medium);
  font-size: var(--font-size-sm);
  border: 1px solid var(--active);
  box-shadow: var(--shadow-sm);
  will-change: transform, opacity;
  transition: all var(--duration-base) var(--ease-natural);
}

.tag-item:hover {
  transform: translateY(-2px);
  background: var(--active);
  box-shadow: var(--shadow-md);
}

/* Category Badge */
.category-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-primary);
  border: 2px solid var(--border);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-weight: var(--font-weight-semibold);
  color: var(--text-primary);
  will-change: transform, opacity;
  transition: all var(--duration-base) var(--ease-natural);
  box-shadow: var(--shadow-sm);
}

.category-badge:hover {
  background: var(--primary);
  color: var(--bg-secondary);
  border-color: var(--active);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

/* Ranking Badges */
.ranking-badge {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  background: var(--text-primary);
  color: var(--bg-secondary);
  font-family: var(--font-display);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-bold);
  padding: 0.25rem 0.75rem;
  border-radius: 0;
}

.rank-1 {
  background: var(--accent);
}

.rank-2 {
  background: var(--text-secondary);
}

.rank-3 {
  background: var(--secondary);
}

/* Similaridade Badge */
.similaridade-badge {
  position: absolute;
  bottom: 0.5rem;
  right: 0.5rem;
  font-family: var(--font-numbers, sans-serif);
  font-size: var(--font-size-sm, 0.75rem);
  padding: 0.25rem 0.75rem;
  border-radius: 0.25rem;
  font-weight: 600;
  background: rgb(0 0 0 / 80%);
  backdrop-filter: blur(10px);
  line-height: 1;
  white-space: nowrap;
  z-index: 10;
}

/* ========================================
   10. HERO SECTIONS
   ======================================== */

.hero-manuscript {
  padding: var(--space-5) 0;
  text-align: center;
}

.hero-ornament {
  color: var(--border);
  opacity: 0.5;
  font-size: 1.5rem;
  margin: var(--space-4) 0;
  font-family: var(--font-decorative);
}


.hero-lead {
  font-size: var(--font-size-md);
  line-height: var(--line-height-relaxed);
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto var(--space-5);
}

.hero-actions {
  display: flex;
  gap: var(--space-3);
  justify-content: center;
  flex-wrap: wrap;
}

/* Detail Hero */
.detail-hero {
  background: var(--bg-secondary);
  border: 2px solid var(--border);
  border-left: none;
  border-right: none;
  border-top: none;
  position: relative;
  padding: var(--space-6) 0;
  margin: 0 0 var(--space-5);
  box-shadow:
    0 4px 6px -1px color-mix(in srgb, var(--ink-primary) 10%, transparent),
    0 2px 4px -1px color-mix(in srgb, var(--ink-primary) 6%, transparent),
    inset 0 1px 0 0 rgb(255 255 255 / 10%);
  background-image: none;
  text-align: center;
}

.detail-hero::before {
  content: '✦';
  position: absolute;
  top: var(--space-3);
  left: 50%;
  transform: translateX(-50%);
  font-size: 1.25rem;
  color: var(--primary);
  opacity: 0.6;
}

.detail-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--primary);
  opacity: 0.3;
}

.detail-hero h1 {
  font-family: var(--font-display);
  color: var(--text-primary);
  font-weight: var(--font-weight-bold);
  text-align: center;
  margin-bottom: var(--space-2);
  letter-spacing: 0.02em;
}

.detail-hero p {
  font-family: var(--font-body);
  color: var(--text-secondary);
  text-align: center;
  opacity: 0.85;
}

/* Feature Hero */
.feature-hero {
  text-align: center;
  padding: var(--space-7) 0;
  margin-bottom: var(--space-5);
}

.feature-hero .hero-ornament {
  font-size: 2rem;
  color: var(--border);
  opacity: 0.5;
  margin-bottom: var(--space-3);
}

.feature-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, var(--font-size-4xl));
  color: var(--text-primary);
  margin-bottom: var(--space-3);
}

.feature-hero .lead {
  font-size: var(--font-size-md);
  color: var(--text-secondary);
  max-width: 700px;
  margin: 0 auto var(--space-5);
  line-height: var(--line-height-relaxed);
}

/* ========================================
   11. UPLOAD AREA
   ======================================== */

.upload-area {
  position: relative;
  min-height: 300px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 2px dashed var(--border);
  padding: var(--space-5);
  will-change: transform, opacity;
  transition: all var(--duration-base) var(--ease-out);
  cursor: pointer;
  background: var(--bg-secondary);
  border-radius: 1rem;
}

.upload-area:hover {
  border-color: var(--primary);
  background: color-mix(in srgb, var(--primary) 2%, transparent);
}

.upload-area.dragover {
  border-color: var(--primary);
  background: color-mix(in srgb, var(--primary) 5%, transparent);
  transform: scale(1.02);
}

.upload-area.loading {
  pointer-events: none;
  opacity: 0.6;
}

.upload-icon {
  width: 64px;
  height: 64px;
  margin-bottom: var(--space-3);
  opacity: 0.6;
  color: var(--primary);
}

.upload-area-title {
  font-family: var(--font-display);
  color: var(--text-primary);
}

.upload-area-text {
  color: var(--border);
  font-size: var(--font-size-sm);
}

.upload-area input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

#imagePreview {
  max-width: 100%;
  max-height: 400px;
  margin: var(--space-3) 0;
  display: none;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  box-shadow: var(--shadow-sm);
}

#imagePreview.show {
  display: block;
}

/* ========================================
   12. BORDAS E DIVISORES
   ======================================== */

.border-simple {
  border: 1px solid var(--border);
  opacity: 0.3;
}

.border-manuscript {
  border: 1px solid var(--border);
}

hr.manuscript-divider {
  border: none;
  height: 1px;
  background: var(--border);
  opacity: 0.3;
  margin: var(--space-5) 0;
}

hr.ornate-divider {
  border: none;
  height: auto;
  text-align: center;
  margin: var(--space-5) 0;
}

hr.ornate-divider::after {
  content: '※ ※ ※';
  letter-spacing: 1rem;
  color: var(--border);
  opacity: 0.5;
  font-size: 0.75rem;
}

.divider-ornate {
  text-align: center;
  margin: var(--space-5) 0;
  color: var(--border);
  opacity: 0.5;
}

.divider-ornate::before {
  content: '※ ※ ※';
  letter-spacing: 1rem;
}

/* ========================================
   13. MODAL
   ======================================== */

.modal-backdrop {
  background: color-mix(in srgb, var(--ink-primary) 50%, transparent);
  backdrop-filter: blur(4px);
}

.modal-content {
  background: var(--bg-primary);
  border: 2px solid var(--border);
  border-radius: 0;
  box-shadow: var(--shadow-lg);
}

.modal-header {
  border-bottom: 1px solid var(--border);
  border-radius: 0;
}

.modal-footer {
  border-top: 1px solid var(--border);
  border-radius: 0;
}

.modal-title {
  font-family: var(--font-display);
  color: var(--text-primary);
}

/* Camera Modal Specific Styles */
.modal-camera-content {
  background: var(--bg-primary);
  /* Use base parchment for modal content */
}

.modal-camera-header {
  border-color: var(--border);
  /* Consistent border color */
}

.modal-camera-title {
  font-family: var(--font-display);
  color: var(--text-primary);
}

.camera-video-stream {
  max-width: 100%;
  max-height: 60vh;
  background: #000;
  /* Black background for video stream */
}

.modal-camera-footer {
  border-color: var(--border);
  /* Consistent border color */
}

/* ========================================
   14. ALERTS
   ======================================== */

/* Keyframe for alert slide-in animation */
@keyframes slideInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.alert {
  border-radius: 0;
  border: 1px solid;
  font-family: var(--font-body);
}

.alert-success {
  background: color-mix(in srgb, var(--primary) 10%, transparent);
  border-color: var(--primary);
  color: var(--active);
}

.alert-danger {
  background: rgb(107 58 62 / 10%);
  border-color: var(--secondary);
  color: var(--secondary);
}

.alert-info {
  background: rgb(58 74 93 / 10%);
  border-color: var(--info);
  color: var(--info);
}

.alert-warning {
  background: color-mix(in srgb, var(--secondary) 10%, transparent);
  border-color: var(--accent);
  color: #8B7245;
}

/* Enhanced alert styles for rate limiting messages */
.alert-enhanced {
  font-size: 1.1rem;
  padding: 1.5rem 2rem;
  border-left-width: 5px;
  box-shadow: var(--shadow-md);
  animation: slideInDown var(--duration-base) var(--ease-out);
}

.alert-enhanced.alert-danger {
  background: rgb(139 74 78 / 8%);
  border-left-color: var(--error);
}

.alert-enhanced.alert-warning {
  background: rgb(198 173 127 / 8%);
  border-left-color: var(--warning);
}

.alert-enhanced.alert-success {
  background: rgb(90 125 95 / 8%);
  border-left-color: var(--success);
}

.alert-enhanced.alert-info {
  background: rgb(74 93 111 / 8%);
  border-left-color: var(--info);
}

.alert-enhanced .alert-icon {
  font-size: 1.5rem;
  margin-right: 1rem;
  flex-shrink: 0;
}

.alert-enhanced.alert-danger .alert-icon {
  color: var(--error);
}

.alert-enhanced.alert-warning .alert-icon {
  color: var(--warning);
}

.alert-enhanced.alert-success .alert-icon {
  color: var(--success);
}

.alert-enhanced.alert-info .alert-icon {
  color: var(--info);
}

.alert-link {
  font-weight: var(--font-weight-semibold);
  text-decoration: underline;
  color: inherit;
  opacity: 0.9;
  transition: opacity var(--duration-fast);
}

.alert-link:hover {
  opacity: 1;
  color: inherit;
}

.alert-tip {
  background: var(--bg-primary);
  border: 2px solid var(--primary);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: var(--font-body);
}

.alert-tip strong {
  color: var(--primary);
  font-family: var(--font-display);
}

.icon-tip {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--primary);
}

/* ========================================
   15. LAYOUT E CONTAINERS
   ======================================== */

.manuscript-container {
  max-width: var(--container-xxl);
  margin: 0 auto;
  padding: 0 var(--space-4);
}

.manuscript-container-narrow {
  max-width: var(--container-md);
  margin: 0 auto;
  padding: 0 var(--space-4);
}

section {
  padding: var(--space-7) 0;
}

section+section {
  padding-top: var(--space-8);
}

.row {
  --bs-gutter-x: 1.5rem;
  --bs-gutter-y: 1.5rem;
}

/* ========================================
   16. FOOTER
   ======================================== */

.footer-mystical {
  background: var(--bg-secondary);
  border-top: 2px solid var(--border);
  padding: var(--space-7) 0 var(--space-4);
  margin-top: var(--space-8);
  text-align: center;
}

.footer-mystical p {
  margin-bottom: var(--space-2);
}

.footer-mystical a {
  color: var(--primary);
  transition: color var(--duration-base);
}

.footer-mystical a:hover {
  color: var(--active);
  border-bottom-color: var(--active);
}

.footer-brand {
  font-family: var(--font-decorative);
  font-size: 1.1rem;
}

.footer-brand-icon {
  color: var(--accent);
}

.footer-lead {
  opacity: 0.8;
}

.footer-contact-link {
  color: var(--accent);
  opacity: 0.9;
  text-decoration: none;
}

.footer-contact-link:hover {
  opacity: 1;
}

.footer-copyright {
  opacity: 0.6;
}

.footer-heart-icon {
  color: var(--secondary);
}

.footer-mystical .site-logo-img {
  max-height: 50px;
}

/* ========================================
   17. PAGINAÇÃO
   ======================================== */

.pagination {
  margin-top: var(--space-5);
  margin-bottom: var(--space-5);
  gap: var(--space-2);
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.page-link {
  font-family: var(--font-body);
  font-weight: var(--font-weight-medium);
  color: var(--text-primary);
  background: var(--bg-secondary);
  border: 2px solid var(--border);
  padding: 0.625rem 1.125rem;
  border-radius: var(--radius-md);
  will-change: transform, opacity;
  transition: all var(--duration-base) var(--ease-natural);
  box-shadow: var(--shadow-sm);
  min-width: 44px;
  text-align: center;
  text-decoration: none;
}

.page-link:hover {
  background: var(--primary);
  color: var(--bg-secondary);
  border-color: var(--active);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.page-link:focus {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 20%, transparent);
}

.page-item.active .page-link {
  background: var(--primary);
  border-color: var(--active);
  color: var(--bg-secondary);
  box-shadow: var(--shadow-md),
    inset 0 2px 4px rgb(0 0 0 / 10%);
  font-weight: var(--font-weight-semibold);
  pointer-events: none;
}

.page-item.disabled .page-link {
  color: var(--border);
  background: var(--surface);
  border-color: var(--border);
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

/* Ornamentos decorativos nos botões de navegação */
.page-item:first-child .page-link::before {
  content: '✦ ';
  font-size: 0.75rem;
  opacity: 0.5;
  margin-right: 0.25rem;
}

.page-item:last-child .page-link::after {
  content: ' ✦';
  font-size: 0.75rem;
  opacity: 0.5;
  margin-left: 0.25rem;
}

/* ========================================
   18. BREADCRUMBS
   ======================================== */

.breadcrumb {
  background-color: rgb(0 0 0 / 3%);
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--surface);
  font-family: var(--font-body);
  margin-bottom: var(--space-3);
}

.breadcrumb-item {
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
}

.breadcrumb-item a {
  color: var(--primary);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color var(--duration-base);
}

.breadcrumb-item a:hover {
  border-bottom-color: var(--primary);
}

.breadcrumb-item.active {
  color: var(--text-primary);
  font-weight: var(--font-weight-medium);
}

.breadcrumb-item+.breadcrumb-item::before {
  content: "›";
  color: var(--border);
  padding-right: 0.75rem;
  font-weight: var(--font-weight-bold);
}

/* ========================================
   19. INFO SECTIONS
   ======================================== */

.info-section {
  padding: var(--space-6);
  background: var(--bg-secondary);
}

.info-item {
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--border);
  transition: border-color var(--duration-base);
}

.info-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.info-label {
  font-family: var(--font-display);
  font-weight: var(--font-weight-semibold);
  color: var(--primary);
  font-size: var(--font-size-sm);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-2);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.info-value {
  font-family: var(--font-body);
  font-size: 1.1rem;
  color: var(--text-primary);
  font-weight: var(--font-weight-medium);
  line-height: var(--line-height-relaxed);
}

/* ========================================
   20. CATEGORIAS - MASONRY (PINTEREST)
   ======================================== */

.category-masonry {
  column-count: 1;
  column-gap: var(--space-4);
  margin-bottom: var(--space-5);
}

@media (min-width: 640px) {
  .category-masonry {
    column-count: 2;
  }
}

@media (min-width: 1024px) {
  .category-masonry {
    column-count: 3;
  }
}

@media (min-width: 1280px) {
  .category-masonry {
    column-count: 4;
  }
}

.category-masonry-item {
  display: inline-block;
  width: 100%;
  margin-bottom: var(--space-4);
  break-inside: avoid;
  text-decoration: none;
}

.category-card-pinterest {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  overflow: hidden;
  position: relative;
  will-change: transform, opacity;
  transition: all var(--duration-slow) var(--ease-natural);
  cursor: pointer;
}

.category-card-pinterest:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.category-preview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 2px;
  background: var(--border);
  min-height: 200px;
  aspect-ratio: 3 / 2;
}

.category-preview-image {
  background-image: var(--bg-url, none);
  background-size: cover;
  background-position: center;
  background-color: var(--surface);
  will-change: transform;
  transition: transform var(--duration-base);
  position: relative;
  overflow: hidden;
}

.category-card-pinterest:hover .category-preview-image {
  transform: scale(1.05);
}

.category-preview-empty {
  background: var(--surface);
  opacity: 0.3;
}

.category-preview-empty-state {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  color: var(--border);
  grid-column: 1 / -1;
  grid-row: 1 / -1;
}

.category-overlay {
  padding: var(--space-3);
  background: var(--bg-secondary);
  position: relative;
}

.category-title {
  font-family: var(--font-display);
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-semibold);
  color: var(--text-primary);
  margin-bottom: var(--space-2);
  transition: color var(--duration-base);
}

.category-card-pinterest:hover .category-title {
  color: var(--primary);
}

.category-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
}

.category-count-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-numbers);
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
  background: var(--surface);
  padding: 0.375rem 0.75rem;
  border: 1px solid var(--border);
  will-change: transform, opacity;
  transition: all var(--duration-base);
}

.category-card-pinterest:hover .category-count-badge {
  background: var(--primary);
  color: var(--bg-secondary);
  border-color: var(--active);
}

/* Barra de Busca de Categorias */
.category-search-container {
  max-width: 700px;
  margin: 0 auto var(--space-5) auto;
  animation: fadeIn var(--duration-slow) var(--ease-natural);
}

.category-search-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  background: var(--bg-secondary);
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-2) var(--space-3);
  will-change: transform, opacity;
  transition: all var(--duration-base) var(--ease-natural);
  box-shadow: var(--shadow-sm);
}

.category-search-wrapper:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 10%, transparent), var(--shadow-md);
  transform: translateY(-1px);
}

.category-search-icon {
  color: var(--primary);
  font-size: 1.1rem;
  margin-right: var(--space-3);
  opacity: 0.7;
}

.category-search-input {
  flex: 1;
  border: none;
  background: transparent;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text-primary);
  outline: none;
  padding: var(--space-1) 0;
}

.category-search-input::placeholder {
  color: var(--border);
  opacity: 0.7;
  font-style: italic;
}

.category-search-clear {
  display: none;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: none;
  background: var(--border);
  color: var(--bg-secondary);
  border-radius: 50%;
  cursor: pointer;
  will-change: transform, opacity;
  transition: all var(--duration-fast) var(--ease-natural);
  margin-left: var(--space-2);
}

.category-search-clear:hover {
  background: var(--text-secondary);
  transform: scale(1.1);
}

.category-search-clear:active {
  transform: scale(0.95);
}

.category-search-stats {
  margin-top: var(--space-3);
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--primary);
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn var(--duration-base);
}

/* ========================================
   21. DASHBOARD
   ======================================== */

.dashboard-container {
  padding: var(--space-5) 0;
}

.dashboard-header {
  margin-bottom: var(--space-5);
  text-align: center;
}

.dashboard-header h1 {
  font-family: var(--font-display);
  font-size: var(--font-size-3xl);
  color: var(--text-primary);
  margin-bottom: var(--space-2);
}

.dashboard-header p {
  font-family: var(--font-body);
  color: var(--text-secondary);
  font-style: italic;
}

/* Cards de Estatística */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-4);
  margin-bottom: var(--space-5);
}

.stat-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  background: var(--bg-primary);
  padding: var(--space-4);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  text-align: center;
}

.stat-card .icon,
.stat-icon {
  font-size: 2rem;
  margin-bottom: var(--space-3);
  color: var(--border);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--surface);
  border: 1px solid var(--text-disabled);
}

.stat-card h3,
.stat-value {
  font-family: var(--font-numbers);
  font-size: var(--font-size-3xl);
  color: var(--text-primary);
  margin: 0;
  font-weight: var(--font-weight-bold);
  margin-bottom: var(--space-1);
}

.stat-card p,
.stat-label {
  font-family: var(--font-body);
  color: var(--text-secondary);
}

.chart-card {
  padding: var(--space-4);
}

.chart-card h4 {
  font-family: var(--font-display);
  font-size: var(--font-size-lg);
  color: var(--text-primary);
  margin-bottom: var(--space-4);
}

.top-list {
  padding: var(--space-4);
}

.top-list h5 {
  font-family: var(--font-display);
  font-size: var(--font-size-lg);
  color: var(--text-primary);
  margin-bottom: var(--space-3);
}

.top-list-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-2) 0;
  border-bottom: 1px solid var(--surface);
  font-family: var(--font-body);
}

.top-list-item:last-child {
  border-bottom: none;
}

.activity-log {
  padding: var(--space-4);
}

.activity-log h5 {
  font-family: var(--font-display);
  font-size: var(--font-size-lg);
  color: var(--text-primary);
  margin-bottom: var(--space-3);
}

.activity-item {
  padding: var(--space-2) 0;
  border-bottom: 1px solid var(--surface);
}

.activity-item:last-child {
  border-bottom: none;
}

.activity-item strong {
  font-family: var(--font-body);
  font-weight: var(--font-weight-semibold);
  color: var(--text-primary);
}

.activity-item p {
  font-family: var(--font-body);
  color: var(--text-secondary);
  margin-bottom: 0.25rem;
}

.activity-item .time {
  font-family: var(--font-body);
  font-size: var(--font-size-sm);
  color: var(--border);
}

.symbol-table {
  padding: var(--space-4);
}

.symbol-table h5 {
  font-family: var(--font-display);
  font-size: var(--font-size-lg);
  color: var(--text-primary);
}

.symbol-table table {
  width: 100%;
}

.symbol-table th {
  font-family: var(--font-display);
  font-weight: var(--font-weight-semibold);
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: var(--font-size-sm);
}

.symbol-table td {
  font-family: var(--font-body);
  vertical-align: middle;
}

.symbol-table img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  background: var(--surface);
  border: 1px solid var(--border);
}

.symbol-table-placeholder {
  width: 40px;
  height: 40px;
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--border);
}

/* ========================================
   22. AUTHENTICATION & PROFILE PAGES
   ======================================== */

/* General Auth Body */
.auth-body {
  background-color: var(--surface);
}

/* Auth Hero Section */
.auth-hero {
  background: var(--bg-secondary);
  padding: var(--space-6) var(--space-4);
  text-align: center;
  border-bottom: 2px solid var(--border);
}

.auth-hero h1 {
  font-family: var(--font-display);
  font-size: var(--font-size-3xl);
  color: var(--text-primary);
}

.auth-hero p {
  font-size: var(--font-size-md);
  color: var(--text-secondary);
  max-width: 600px;
  margin: var(--space-2) auto 0;
}

/* Auth Form Container */
.auth-form-container {
  max-width: 480px;
  margin: var(--space-5) auto;
  background: var(--bg-primary);
  padding: var(--space-5);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
}

.auth-form-container h2 {
  text-align: center;
  font-family: var(--font-display);
  margin-bottom: var(--space-4);
}

/* Auth Divider */
.auth-divider {
  position: relative;
  text-align: center;
  margin: var(--space-4) 0;
}

.auth-divider::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--border-color, var(--border));
}

.auth-divider span {
  position: relative;
  display: inline-block;
  background: var(--bg-primary);
  padding: 0 var(--space-2);
  color: var(--text-muted);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
}

/* Social Login Buttons */
.social-login {
  margin: var(--space-3) 0;
}

.btn-google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3);
  background: white;
  color: #3c4043;
  border: 1px solid #dadce0;
  border-radius: 4px;
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-medium);
  font-family: var(--font-body);
  text-decoration: none;
  transition: all var(--duration-base) var(--ease-out);
  will-change: box-shadow, background;
}

.btn-google:hover {
  background: #f8f9fa;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  color: #3c4043;
  text-decoration: none;
}

.btn-google svg {
  flex-shrink: 0;
}

/* Social Login Page */
.social-login-container {
  text-align: center;
}

.social-provider-icon {
  margin-bottom: var(--space-4);
}

.social-provider-icon svg {
  width: 64px;
  height: 64px;
}

.social-login-title {
  font-family: var(--font-display);
  font-size: var(--font-size-xl);
  color: var(--text-primary);
  margin-bottom: var(--space-2);
}

.social-login-desc {
  color: var(--text-secondary);
  font-size: var(--font-size-base);
  max-width: 400px;
  margin: 0 auto var(--space-4);
  line-height: 1.6;
}

.social-login-benefits {
  background: var(--bg-secondary);
  border-radius: 8px;
  padding: var(--space-3);
  margin-bottom: var(--space-4);
}

.benefit-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) 0;
  color: var(--text-secondary);
  font-size: var(--font-size-sm);
}

.benefit-item i {
  color: var(--primary);
  width: 20px;
  text-align: center;
}

.social-login-form {
  margin-top: var(--space-4);
}

.btn-google-continue {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-4);
  background: #4285F4;
  color: white;
  border: none;
  border-radius: 4px;
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-medium);
  font-family: var(--font-body);
  text-decoration: none;
  cursor: pointer;
  transition: all var(--duration-base) var(--ease-out);
  will-change: background, box-shadow;
}

.btn-google-continue:hover {
  background: #3367D6;
  box-shadow: 0 2px 8px rgba(66, 133, 244, 0.4);
  color: white;
}

.btn-google-continue svg {
  background: white;
  border-radius: 2px;
  padding: 2px;
}

.social-privacy-notice {
  margin-top: var(--space-4);
  padding-top: var(--space-3);
  border-top: 1px solid var(--border-color, var(--border));
  color: var(--text-muted);
}

.social-privacy-notice a {
  color: var(--text-secondary);
  text-decoration: underline;
}

.social-privacy-notice a:hover {
  color: var(--primary);
}

/* Social Error State */
.auth-hero-error {
  background: var(--bg-secondary);
}

.social-error-icon {
  margin-bottom: var(--space-4);
}

.social-error-icon i {
  font-size: 64px;
  color: var(--warning);
}

.text-danger {
  color: var(--error) !important;
}

/* Auth Benefits Section */
.auth-benefits {
  max-width: 550px;
  margin: var(--space-5) auto;
  background: var(--bg-primary);
  padding: var(--space-5);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
}

.auth-benefits h3 {
  font-family: var(--font-display);
  text-align: center;
  margin-bottom: var(--space-4);
}

.auth-benefits ul {
  list-style: none;
  padding: 0;
}

.auth-benefits li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
  font-family: var(--font-body);
  color: var(--text-secondary);
}

.auth-benefits li i {
  color: var(--primary);
  font-size: 1.2rem;
  margin-top: 4px;
}

/* Profile Pages */
.profile-body {
  background-color: var(--surface);
}

.profile-hero {
  background: var(--bg-secondary);
  padding: var(--space-6) var(--space-4);
  text-align: center;
  border-bottom: 2px solid var(--border);
}

.profile-hero h1 {
  font-family: var(--font-display);
  font-size: var(--font-size-3xl);
  color: var(--text-primary);
}

.profile-hero p {
  font-size: var(--font-size-md);
  color: var(--text-secondary);
  max-width: 600px;
  margin: var(--space-2) auto 0;
}

.profile-container {
  max-width: 960px;
  margin: var(--space-5) auto;
}

.profile-header {
  background: var(--bg-primary);
  padding: var(--space-5);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  text-align: center;
  margin-bottom: var(--space-5);
  position: relative;
}

.profile-foto {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 4px solid var(--bg-secondary);
  box-shadow: 0 0 0 4px var(--primary);
  object-fit: cover;
  margin: -80px auto var(--space-3);
}

.profile-foto-placeholder {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--bg-secondary);
  font-size: 3rem;
  font-family: var(--font-display);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: -80px auto var(--space-3);
  border: 4px solid var(--bg-secondary);
  box-shadow: 0 0 0 4px var(--primary);
}

.profile-username {
  font-family: var(--font-display);
  font-size: var(--font-size-2xl);
  color: var(--text-primary);
  margin-bottom: var(--space-1);
}

.profile-nome {
  font-family: var(--font-body);
  font-size: var(--font-size-md);
  color: var(--text-secondary);
  margin-bottom: var(--space-3);
}

.profile-bio {
  font-family: var(--font-body);
  font-style: italic;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto var(--space-4);
}

.profile-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-4);
  margin-bottom: var(--space-4);
  color: var(--border);
}

.meta-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.btn-profile-edit {
  position: absolute;
  top: var(--space-3);
  right: var(--space-3);
  font-family: var(--font-body);
  color: var(--primary);
  text-decoration: none;
  padding: var(--space-2) var(--space-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  will-change: transform, opacity;
  transition: all var(--duration-base);
}

.btn-profile-edit:hover {
  background: var(--primary);
  color: var(--bg-secondary);
  border-color: var(--active);
}

.section-title {
  font-family: var(--font-display);
  font-size: var(--font-size-xl);
  text-align: center;
  margin-bottom: var(--space-4);
  color: var(--text-secondary);
}



.stat-icon {
  font-size: 2rem;
  margin-bottom: var(--space-2);
}

.stat-number {
  font-family: var(--font-numbers);
  font-size: var(--font-size-3xl);
  font-weight: var(--font-weight-bold);
  color: var(--text-primary);
}

.stat-label {
  font-family: var(--font-body);
  color: var(--text-secondary);
}

.preferences-card,
.activity-list {
  background: var(--bg-primary);
  padding: var(--space-4);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  margin-bottom: var(--space-5);
}

.preference-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-2) 0;
  border-bottom: 1px solid var(--surface);
}

.preference-item:last-child {
  border-bottom: none;
}

.preference-label {
  font-weight: var(--font-weight-semibold);
  color: var(--text-secondary);
}

.badge-signo {
  background: var(--info);
  color: var(--bg-secondary);
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-md);
  font-family: var(--font-display);
}

.activity-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--surface);
}

.activity-item:last-child {
  border-bottom: none;
}

.activity-icon {
  font-size: 1.5rem;
  margin-right: var(--space-3);
}

.activity-text {
  font-family: var(--font-body);
  color: var(--text-secondary);
}

.activity-date {
  font-family: var(--font-numbers);
  font-size: var(--font-size-sm);
  color: var(--border);
}


.empty-state-icon {
  font-size: 3rem;
  margin-bottom: var(--space-3);
  opacity: 0.5;
}

.profile-form-container {
  max-width: 800px;
  margin: 0 auto;
  background: var(--bg-primary);
  padding: var(--space-5);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
}

.section-header {
  font-family: var(--font-display);
  font-size: var(--font-size-lg);
  color: var(--text-secondary);
  margin-bottom: var(--space-3);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.section-divider {
  margin-top: var(--space-5);
  padding-top: var(--space-4);
  border-top: 1px solid var(--surface);
}

.foto-preview {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: var(--space-3);
  border: 3px solid var(--surface);
}

.btn-save-profile {
  width: 100%;
  padding: var(--space-3);
  font-size: var(--font-size-md);
  margin-top: var(--space-4);
}

.btn-cancel-profile {
  width: 100%;
  text-align: center;
  margin-top: var(--space-2);
}

.danger-zone {
  margin-top: var(--space-6);
  padding: var(--space-4);
  border: 2px solid var(--secondary);
  background: rgb(107 58 62 / 5%);
  text-align: center;
}

.danger-zone h3 {
  color: var(--secondary);
  font-family: var(--font-display);
}

.btn-delete-account {
  background: var(--secondary);
  border-color: #4d2326;
}

.btn-delete-account:hover {
  background: #4d2326;
}

/* ========================================


/* ========================================
   FORMULÁRIO ADICIONAR SÍMBOLO - BOTÕES +
   ======================================== */

/* Input group para Choices.js com botão + */
.input-group {
  display: flex;
  align-items: stretch;
}

.input-group .choices {
  flex: 1;
}

.input-group .btn {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
  min-width: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

#btn-add-categoria,
#btn-add-tag {
  border-left: 2px solid var(--border);
  will-change: transform, opacity;
  transition: all var(--duration-base);
}

#btn-add-categoria:hover,
#btn-add-tag:hover {
  background: var(--primary);
  color: var(--bg-secondary);
  border-left-color: var(--active);
}

/* Ajusta o Choices.js quando em input-group */
.input-group .choices__inner {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

/* ========================================
   BOTÃO DARK MODE TOGGLE
   ======================================== */

.theme-toggle-btn {
  position: fixed;
  bottom: var(--space-6);
  right: var(--space-6);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--border);
  color: var(--text-primary);
  font-size: 1.25rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgb(0 0 0 / 15%);
  will-change: transform, opacity;
  transition: all var(--duration-base) var(--ease-smooth);
  z-index: 1000;
}

.theme-toggle-btn:hover {
  background: var(--primary);
  color: var(--bg-secondary);
  border-color: var(--active);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgb(0 0 0 / 20%);
}

.theme-toggle-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgb(0 0 0 / 15%);
}

.theme-toggle-btn:focus {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* Responsive - Mobile Styles (max-width: 768px) - CONSOLIDATED */
@media (max-width: 768px) {

  /* Theme Toggle */
  .theme-toggle-btn {
    bottom: var(--space-4);
    right: var(--space-4);
    width: 48px;
    height: 48px;
    font-size: 1.1rem;
  }

  /* Image Zoom Modal */
  .image-zoom-close {
    top: var(--space-4);
    right: var(--space-4);
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
  }

  .image-zoom-img {
    max-width: 95%;
    max-height: 80vh;
  }

  /* Symbol Comparison Grid */
  .comparison-grid {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }
}

/* ========================================
   IMAGE ZOOM MODAL
   ======================================== */

.image-zoom-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
}

.image-zoom-modal.active {
  display: block;
}

.image-zoom-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgb(0 0 0 / 90%);
  cursor: zoom-out;
}

.image-zoom-content {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: var(--space-6);
}

.image-zoom-img {
  max-width: 90%;
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--radius-base);
  box-shadow: 0 8px 32px rgb(0 0 0 / 30%);
  cursor: zoom-out;
}

.image-zoom-caption {
  color: var(--bg-secondary);
  margin-top: var(--space-4);
  font-size: var(--font-size-base);
  text-align: center;
  max-width: 80%;
}

.image-zoom-close {
  position: absolute;
  top: var(--space-6);
  right: var(--space-6);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgb(255 255 255 / 10%);
  border: 2px solid rgb(255 255 255 / 30%);
  color: white;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  will-change: transform, opacity;
  transition: all var(--duration-base) var(--ease-smooth);
}

.image-zoom-close:hover {
  background: rgb(255 255 255 / 20%);
  border-color: rgb(255 255 255 / 50%);
  transform: scale(1.1);
}

.image-zoom-close:active {
  transform: scale(0.95);
}


/* ========================================
   ACCESSIBILITY UTILITIES
   ======================================== */

/* Skip to Content Link - Appears only when focused (keyboard navigation) */
.skip-to-content {
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10000;
  padding: var(--space-3) var(--space-5);
  background: var(--primary);
  color: var(--bg-primary);
  text-decoration: none;
  font-weight: 600;
  font-size: var(--font-size-base);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  transition: top var(--duration-fast) var(--ease-smooth);
}

.skip-to-content:focus {
  top: var(--space-4);
  outline: 3px solid var(--focus);
  outline-offset: 4px;
}

.skip-to-content:hover {
  background: var(--hover);
  color: var(--bg-primary);
}

/* ========================================
   PRICING PAGE
   ======================================== */

.pricing-hero {
  background: var(--bg-primary);
  color: var(--text-primary);
  padding: var(--space-8) 0;
  text-align: center;
  margin-bottom: var(--space-7);
}

.pricing-hero h1 {
  font-size: var(--font-size-4xl);
  font-weight: var(--font-weight-bold);
  margin-bottom: var(--space-4);
  font-family: var(--font-display);
}

.pricing-hero p {
  font-size: var(--font-size-xl);
  opacity: 0.9;
}

.pricing-container {
  max-width: var(--container-xl);
  margin: 0 auto;
  padding: 0 var(--space-4) var(--space-8);
}

.pricing-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-6);
  margin-bottom: var(--space-8);
}

.pricing-card {
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow-md);
  will-change: transform;
  transition: transform var(--duration-base), box-shadow var(--duration-base);
  position: relative;
  border: 1px solid var(--border);
}

.pricing-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.pricing-card.featured {
  border: 3px solid var(--accent);
  transform: scale(1.05);
}

.pricing-card.featured::before {
  content: "MAIS POPULAR";
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: var(--text-primary);
  padding: var(--space-1) var(--space-4);
  border-radius: var(--radius-full);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-bold);
}

.plan-name {
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-bold);
  margin-bottom: var(--space-2);
  text-align: center;
  font-family: var(--font-display);
  color: var(--text-primary);
}

.plan-price {
  font-size: var(--font-size-4xl);
  font-weight: var(--font-weight-extrabold);
  text-align: center;
  color: var(--accent);
  margin-bottom: var(--space-2);
}

.plan-price small {
  font-size: var(--font-size-base);
  color: var(--text-secondary);
  font-weight: var(--font-weight-normal);
}

.plan-description {
  text-align: center;
  color: var(--text-secondary);
  margin-bottom: var(--space-5);
  font-size: var(--font-size-sm);
}

.plan-features {
  list-style: none;
  padding: 0;
  margin: var(--space-5) 0;
}

.plan-features li {
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  color: var(--text-primary);
}

.plan-features li:last-child {
  border-bottom: none;
}

.plan-features li.included::before {
  content: "✓";
  color: var(--success);
  font-weight: var(--font-weight-bold);
  font-size: var(--font-size-xl);
}

.plan-features li.excluded {
  color: var(--text-secondary);
  opacity: 0.6;
}

.plan-features li.excluded::before {
  content: "✗";
  color: var(--error);
  font-weight: var(--font-weight-bold);
  font-size: var(--font-size-xl);
}

.plan-cta {
  text-align: center;
  margin-top: var(--space-5);
}

.plan-cta .btn {
  width: 100%;
  padding: var(--space-3);
  font-weight: var(--font-weight-semibold);
  border-radius: var(--radius-md);
  will-change: transform, opacity;
  transition: all var(--duration-base);
}

.btn-free {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  color: var(--text-primary);
}

.btn-free:hover {
  background: color-mix(in srgb, var(--primary) 6%, var(--bg-secondary));
  border-color: var(--primary);
}

.btn-pro {
  background: var(--primary);
  border: 1px solid var(--primary);
  color: var(--bg-secondary);
}

.btn-pro:hover {
  background: color-mix(in srgb, var(--primary) 92%, var(--bg-secondary));
  border-color: color-mix(in srgb, var(--primary) 92%, var(--bg-secondary));
}

.btn-premium {
  background: var(--accent);
  border: 1px solid var(--accent);
  color: var(--bg-secondary);
}

.btn-premium:hover {
  background: color-mix(in srgb, var(--accent) 92%, var(--bg-secondary));
  border-color: color-mix(in srgb, var(--accent) 92%, var(--bg-secondary));
}

/* Estados de acessibilidade e desativados dos botões de Pricing */
.plan-cta .btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 25%, transparent);
}

.btn-free:disabled,
.btn-pro:disabled,
.btn-premium:disabled {
  cursor: not-allowed;
  opacity: 0.85;
  filter: saturate(0.9);
}

.btn-free:disabled {
  background: color-mix(in srgb, var(--ink-light) 20%, var(--surface));
  color: var(--text-primary);
}

.btn-pro:disabled {
  background: color-mix(in srgb, var(--primary) 30%, var(--secondary) 10%);
  color: var(--bg-primary);
}

.btn-premium:disabled {
  background: color-mix(in srgb, var(--accent) 30%, var(--secondary) 10%);
  color: var(--bg-primary);
}

.faq-section {
  background: var(--surface);
  padding: var(--space-7) 0;
  margin-top: var(--space-7);
  border-top: 1px solid var(--border);
}

.faq-title {
  text-align: center;
  font-size: var(--font-size-3xl);
  font-weight: var(--font-weight-bold);
  margin-bottom: var(--space-6);
  font-family: var(--font-display);
  color: var(--text-primary);
}

.faq-item {
  background: var(--bg-secondary);
  padding: var(--space-5);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-4);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}

.faq-question {
  font-weight: var(--font-weight-semibold);
  font-size: var(--font-size-lg);
  margin-bottom: var(--space-2);
  color: var(--text-primary);
}

.faq-answer {
  color: var(--text-secondary);
  line-height: var(--line-height-relaxed);
}

/* ========================================
   UTILITY CLASSES
   ======================================== */

/* Text utilities */
.text-center {
  text-align: center;
}

.text-muted {
  color: var(--text-secondary) !important;
}

.text-small {
  font-size: var(--font-size-sm);
}

.text-extra-small {
  font-size: var(--font-size-xs);
}

/* Display utilities */
.d-inline-flex {
  display: inline-flex;
}

.d-flex {
  display: flex;
}

.d-block {
  display: block;
}

.align-items-center {
  align-items: center;
}

.justify-content-center {
  justify-content: center;
}

.flex-grow-1 {
  flex-grow: 1;
}

.gap-2 {
  gap: var(--space-2);
}

/* Spacing utilities */
.mb-2 {
  margin-bottom: var(--space-2);
}

.mb-3 {
  margin-bottom: var(--space-3);
}

.mb-4 {
  margin-bottom: var(--space-4);
}

.mb-5 {
  margin-bottom: var(--space-5);
}

.p-5 {
  padding: var(--space-5);
}

/* Image utilities */
.img-responsive {
  max-width: 100%;
  height: auto;
}

.img-contained {
  max-width: 100%;
  height: auto;
  max-height: 500px;
  object-fit: contain;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

.img-thumbnail {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: var(--radius-md);
}

.img-placeholder {
  width: 50px;
  height: 50px;
  background: var(--surface);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Badge utilities */
.badge-origin {
  background: #e3f2fd;
  color: #1976d2;
}

.badge-culture {
  background: #fff3e0;
  color: #f57c00;
}

.badge-tradition {
  background: #f3e5f5;
  color: #7b1fa2;
}

.badge-premium {
  background: var(--secondary);
  color: var(--bg-primary);
}

.badge-neutral {
  background: var(--surface);
  color: var(--text-primary);
}

.badge-category {
  background-color: var(--primary);
}

.badge-tag {
  background-color: var(--border);
  color: var(--text-secondary);
}

/* Icon utilities */
.icon-large {
  font-size: 2rem;
}

.icon-extra-large {
  font-size: 3rem;
  opacity: 0.3;
}

.upload-icon-color {
  color: var(--primary);
}

/* Animation utilities */
.fade-in-delay-1 {
  animation-delay: 0.1s;
}

.fade-in-delay-2 {
  animation-delay: 0.2s;
}

.fade-in-delay-3 {
  animation-delay: 0.3s;
}

/* Link utilities */
.link-inherit {
  color: inherit;
  text-decoration: underline;
}

/* Hero utilities */

.hero-subtitle {
  color: var(--text-secondary);
  font-size: var(--font-size-md);
}

/* Preview image for categories */
.category-preview-bg {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Width utilities */
.w-200 {
  width: 200px;
}

.w-60 {
  width: 60px;
}

.w-150 {
  width: 150px;
}

/* Opacity utilities */
.opacity-80 {
  opacity: 0.8;
}

/* Max height utilities */
.max-h-32 {
  max-height: 32px;
}

/* Font size utilities */
.text-2xl {
  font-size: 2rem;
}

/* Image placeholder */
.image-placeholder-content {
  padding: var(--space-5);
  background: var(--parchment-light);
}

/* ========================================
   COMPARISON PAGE STYLES
   ======================================== */

.compare-hero {
  background: var(--bg-secondary);
  color: var(--text-primary);
  padding: var(--space-7) 0;
  text-align: center;
  margin-bottom: var(--space-6);
}

.compare-hero h1 {
  font-size: var(--font-size-2xl);
  font-weight: 700;
  margin-bottom: var(--space-2);
}

.compare-hero p {
  opacity: 0.9;
  margin-bottom: 0;
}

.selector-section {
  background: var(--bg-primary);
  padding: var(--space-6);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  margin-bottom: var(--space-6);
}

.selector-label {
  font-weight: 600;
  margin-bottom: var(--space-2);
  display: block;
}

.symbol-select {
  width: 100%;
  padding: var(--space-3);
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  font-size: var(--font-size-base);
  transition: border-color 0.3s;
}

.symbol-select:focus {
  border-color: var(--primary);
  outline: none;
}

.compare-btn {
  background: var(--primary);
  border: 1px solid var(--primary);
  color: var(--bg-secondary);
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-md);
  font-weight: 600;
  width: 100%;
  margin-top: var(--space-4);
  cursor: pointer;
  will-change: transform;
  transition: transform 0.3s;
}

.compare-btn:hover {
  transform: scale(1.02);
}

.compare-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.comparison-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6);
  margin-bottom: var(--space-6);
}


.symbol-card-comparison {
  background: var(--bg-primary);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow-md);
}

.symbol-card-comparison-header {
  text-align: center;
  margin-bottom: var(--space-5);
  padding-bottom: var(--space-4);
  border-bottom: 2px solid var(--border);
}

.symbol-card-comparison-title {
  font-size: var(--font-size-xl);
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0;
}

.symbol-image-container {
  text-align: center;
  margin-bottom: var(--space-5);
}

.symbol-image-container img {
  max-width: 100%;
  height: auto;
  max-height: 300px;
  object-fit: contain;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.symbol-info-item {
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--border-light);
}

.symbol-info-item:last-child {
  border-bottom: none;
}

.symbol-info-label {
  font-weight: 600;
  color: var(--primary);
  margin-bottom: var(--space-1);
  font-size: 0.9rem;
}

.symbol-info-value {
  color: var(--text-primary);
  line-height: 1.6;
}

.empty-state {
  text-align: center;
  padding: var(--space-7);
  color: var(--text-secondary);
}

.empty-state svg {
  margin-bottom: var(--space-4);
  opacity: 0.5;
}

.badge-comparison {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  margin-right: var(--space-2);
  margin-bottom: var(--space-2);
}

/* Badge variants for comparison */
.badge-comparison-origin {
  background: #e3f2fd;
  color: #1976d2;
}

.badge-comparison-culture {
  background: #fff3e0;
  color: #f57c00;
}

.badge-comparison-tradition {
  background: #f3e5f5;
  color: #7b1fa2;
}

.badge-comparison-tag {
  background: #f5f5f5;
  color: #333;
}

/* Icon color utilities */
.icon-moss-green {
  color: var(--moss-green);
}

/* Text color utilities */
.text-ink-light {
  color: var(--ink-light);
}

/* Text truncation utilities */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Icon size + opacity utilities */
.icon-3xl-faded {
  font-size: 3rem;
  opacity: 0.3;
}

/* Background color utilities for badges */
.bg-moss-green {
  background-color: var(--moss-green);
}

.bg-medieval-blue {
  background-color: var(--medieval-blue);
}

.bg-ink-faded {
  background-color: var(--ink-faded);
}

.badge-parchment {
  background-color: var(--parchment-dark);
  color: var(--ink-secondary);
}

/* Thumbnail utilities */
.thumbnail-50 {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: var(--radius-md);
}

.thumbnail-placeholder-50 {
  width: 50px;
  height: 50px;
  background: #f0f0f0;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ========================================
   BUTTON OUTLINE THEME OVERRIDES
   ======================================== */

.btn-outline-secondary {
  background: color-mix(in srgb, var(--secondary) 12%, transparent);
  border-color: var(--secondary);
  color: var(--secondary);
  will-change: transform, opacity;
  transition: all var(--duration-base) var(--ease-out);
}

.btn-outline-secondary:hover,
.btn-outline-secondary:focus {
  background: var(--secondary);
  border-color: var(--secondary);
  color: var(--bg-secondary);
  box-shadow: var(--shadow-sm);
}

[data-theme="dark"] .btn-outline-secondary {
  background: color-mix(in srgb, var(--secondary) 20%, transparent);
}

[data-theme="dark"] .btn-outline-secondary:hover,
[data-theme="dark"] .btn-outline-secondary:focus {
  background: var(--secondary);
  color: var(--bg-secondary);
}

/* ========================================
   PRICING COMPARISON TABLE (Sprint 5)
   ======================================== */

/* Section wrapper */
.comparison-section {
  max-width: 1200px;
  margin: 0 auto var(--space-6);
  padding: var(--space-5) var(--space-3);
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.comparison-title {
  font-family: var(--font-display);
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-bold);
  text-align: center;
  color: var(--text-primary);
  margin-bottom: var(--space-4);
}

/* Table wrapper for horizontal scroll on mobile */
.comparison-table-wrapper {
  overflow-x: auto;
  margin-bottom: var(--space-3);
  border-radius: var(--radius-md);
}

/* Main table */
.comparison-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--surface);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

/* Table headers */
.comparison-table thead {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: var(--bg-secondary);
}

.comparison-table th {
  padding: var(--space-4);
  text-align: center;
  font-weight: var(--font-weight-semibold);
  border-bottom: 3px solid var(--border);
}

.comparison-table th.feature-column {
  text-align: left;
  background: var(--bg-secondary);
  color: var(--text-primary);
  width: 25%;
}

.comparison-table th.plan-column {
  width: 25%;
  position: relative;
}

/* Featured column (Pro) */
.comparison-table th.featured-column {
  background: linear-gradient(135deg, var(--accent) 0%, var(--primary) 100%);
  transform: scale(1.02);
  z-index: 2;
  box-shadow: var(--shadow-lg);
}

/* Plan header inside th */
.plan-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-1);
}

.plan-header .plan-name {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-bold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.plan-header .plan-price {
  font-family: var(--font-numbers);
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-bold);
}

.plan-header .plan-price small {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-normal);
  opacity: 0.9;
}

/* Badge "POPULAR" */
.badge-popular {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: var(--error);
  color: var(--bg-secondary);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-bold);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: var(--shadow-sm);
}

/* Table body */
.comparison-table tbody tr {
  border-bottom: 1px solid var(--border);
  transition: background var(--duration-fast);
}

.comparison-table tbody tr:hover {
  background: color-mix(in srgb, var(--primary) 5%, transparent);
}

.comparison-table tbody tr:last-child {
  border-bottom: none;
}

.comparison-table td {
  padding: var(--space-3) var(--space-4);
  text-align: center;
  vertical-align: middle;
}

.comparison-table td.feature-name {
  text-align: left;
  background: var(--bg-secondary);
  font-weight: var(--font-weight-medium);
  color: var(--text-primary);
}

.comparison-table td.featured-value {
  background: color-mix(in srgb, var(--accent) 8%, transparent);
  font-weight: var(--font-weight-semibold);
}

/* Value styles */
.value-text {
  font-family: var(--font-numbers);
  font-size: var(--font-size-base);
  color: var(--text-primary);
}

.value-text-small {
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
}

/* Badges */
.value-badge {
  display: inline-block;
  padding: 0.375rem 0.875rem;
  border-radius: var(--radius-full);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-bold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.value-badge.unlimited {
  background: linear-gradient(135deg, var(--success) 0%, #10b981 100%);
  color: white;
  box-shadow: 0 2px 4px rgba(16, 185, 129, 0.25);
}

.value-badge.priority {
  background: linear-gradient(135deg, var(--accent) 0%, var(--primary) 100%);
  color: white;
  box-shadow: 0 2px 4px rgba(var(--accent-rgb), 0.25);
}

/* Check/Cross icons */
.icon-yes {
  display: inline-block;
  color: var(--success);
  font-size: 1.5rem;
  font-weight: var(--font-weight-bold);
}

.icon-no {
  display: inline-block;
  color: var(--text-disabled);
  font-size: 1.5rem;
  font-weight: var(--font-weight-bold);
  opacity: 0.5;
}

/* CTA row */
.comparison-table tr.cta-row td {
  padding: var(--space-4);
  background: var(--bg-secondary);
}

.comparison-table tr.cta-row td.featured-value {
  background: color-mix(in srgb, var(--accent) 12%, var(--bg-secondary));
}

/* Comparison buttons */
.btn-comparison {
  display: inline-block;
  padding: 0.875rem 2rem;
  border-radius: var(--radius-md);
  font-weight: var(--font-weight-semibold);
  font-size: var(--font-size-base);
  text-decoration: none;
  text-align: center;
  border: 2px solid transparent;
  transition: all var(--duration-base) var(--ease-out);
  cursor: pointer;
  white-space: nowrap;
}

.btn-comparison.btn-free {
  background: var(--surface);
  color: var(--text-secondary);
  border-color: var(--border);
}

.btn-comparison.btn-free:hover:not(:disabled) {
  background: var(--bg-secondary);
  border-color: var(--secondary);
  color: var(--text-primary);
}

.btn-comparison.btn-pro {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: white;
  box-shadow: var(--shadow-md);
  transform: scale(1.05);
}

.btn-comparison.btn-pro:hover:not(:disabled) {
  transform: scale(1.08);
  box-shadow: var(--shadow-lg);
}

.btn-comparison.btn-premium {
  background: linear-gradient(135deg, var(--accent) 0%, var(--primary) 100%);
  color: white;
  box-shadow: var(--shadow-md);
}

.btn-comparison.btn-premium:hover:not(:disabled) {
  transform: scale(1.05);
  box-shadow: var(--shadow-lg);
}

.btn-comparison:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Comparison note */
.comparison-note {
  text-align: center;
  color: var(--text-secondary);
  font-style: italic;
  margin-top: var(--space-3);
}

/* Responsive: Mobile */
@media (max-width: 768px) {
  .comparison-table-wrapper {
    /* Enable horizontal scroll */
    -webkit-overflow-scrolling: touch;
  }

  .comparison-table {
    min-width: 600px;
  }

  .comparison-table th,
  .comparison-table td {
    padding: var(--space-2) var(--space-3);
    font-size: var(--font-size-sm);
  }

  .comparison-table th.feature-column,
  .comparison-table td.feature-name {
    position: sticky;
    left: 0;
    z-index: 1;
    box-shadow: 2px 0 4px rgba(0, 0, 0, 0.1);
  }

  .plan-header .plan-name {
    font-size: var(--font-size-base);
  }

  .plan-header .plan-price {
    font-size: var(--font-size-lg);
  }

  .btn-comparison {
    padding: 0.625rem 1.25rem;
    font-size: var(--font-size-sm);
  }
}

/* ========================================
   UPGRADE BANNER (Sprint 5: Conversão)
   ======================================== */

.upgrade-banner {
  margin: var(--space-5) 0;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  box-shadow: var(--shadow-lg);
  animation: slideInUp 0.5s var(--ease-out);
}

.upgrade-content {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.upgrade-icon {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.upgrade-icon svg {
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.upgrade-text {
  flex: 1;
  min-width: 250px;
  color: white;
}

.upgrade-title {
  font-family: var(--font-display);
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-bold);
  margin-bottom: var(--space-2);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.upgrade-description {
  font-size: var(--font-size-sm);
  margin: 0;
  opacity: 0.95;
  line-height: 1.5;
}

.upgrade-cta {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
  align-items: center;
}

.btn-upgrade {
  background: white;
  color: var(--primary);
  border: 2px solid white;
  padding: 0.875rem 1.75rem;
  border-radius: var(--radius-md);
  font-weight: var(--font-weight-bold);
  font-size: var(--font-size-base);
  text-decoration: none;
  transition: all var(--duration-base) var(--ease-out);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  text-align: center;
}

.btn-upgrade:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
  color: var(--primary);
}

.btn-outline-upgrade {
  background: transparent;
  color: white;
  border: 2px solid white;
  padding: 0.875rem 1.75rem;
  border-radius: var(--radius-md);
  font-weight: var(--font-weight-semibold);
  font-size: var(--font-size-base);
  text-decoration: none;
  transition: all var(--duration-base) var(--ease-out);
  text-align: center;
}

.btn-outline-upgrade:hover {
  background: white;
  color: var(--primary);
}

/* Animation */
@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */
@media (max-width: 768px) {
  .upgrade-content {
    flex-direction: column;
    text-align: center;
  }

  .upgrade-icon {
    width: 56px;
    height: 56px;
  }

  .upgrade-icon svg {
    width: 28px;
    height: 28px;
  }

  .upgrade-cta {
    width: 100%;
    justify-content: center;
  }

  .btn-upgrade,
  .btn-outline-upgrade {
    flex: 1;
    min-width: 120px;
  }
}

/* ========================================
   29. MICRO-INTERACTIONS (New)
   ======================================== */


/* Like Button (Heart) */
.btn-like {
  background: transparent;
  border: none;
  color: var(--primary);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 50%;
}

.card-like-btn {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  z-index: 5;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(2px);
  width: 32px;
  height: 32px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(-5px);
  transition: all 0.3s ease;
}

.symbol-card:hover .card-like-btn {
  opacity: 1;
  transform: translateY(0);
}

.btn-like:hover,
.card-like-btn:hover {
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  transform: scale(1.1);
}


.btn-like.active {
  color: var(--accent);
  animation: heart-burst 0.8s steps(28) forwards;
}

@keyframes heart-burst {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.3);
  }

  100% {
    transform: scale(1);
  }
}

/* Save Button (Bookmark) */
.btn-save {
  background: transparent;
  border: none;
  color: var(--primary);
  transition: all 0.3s ease;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 50%;
}

.btn-save:hover {
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  transform: translateY(-2px);
}

.btn-save.active {
  color: var(--accent);
  animation: bookmark-bounce 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes bookmark-bounce {
  0% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-5px);
  }

  100% {
    transform: translateY(0);
  }
}

/* Copy Button */
.btn-copy {
  position: relative;
  overflow: hidden;
}

.btn-copy.copied::after {
  content: 'Copiado!';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--primary);
  color: var(--bg-secondary);
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.75rem;
  animation: fade-up-out 1.5s forwards;
  pointer-events: none;
}

@keyframes fade-up-out {
  0% {
    opacity: 0;
    transform: translate(-50%, -40%);
  }

  20% {
    opacity: 1;
    transform: translate(-50%, -60%);
  }

  80% {
    opacity: 1;
    transform: translate(-50%, -60%);
  }

  100% {
    opacity: 0;
    transform: translate(-50%, -80%);
  }
}

/* ========================================
   30. SKELETON SCREENS (New)
   ======================================== */

.skeleton {
  background-color: var(--surface);
  background-image: linear-gradient(90deg,
      var(--surface) 0px,
      color-mix(in srgb, var(--surface) 80%, white) 40px,
      var(--surface) 80px);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite linear;
  border-radius: var(--radius-sm);
}

@keyframes skeleton-loading {
  0% {
    background-position: -200% 0;
  }

  100% {
    background-position: 200% 0;
  }
}

.skeleton-text {
  height: 1em;
  margin-bottom: 0.5rem;
  width: 100%;
}

.skeleton-text.w-50 {
  width: 50%;
}

.skeleton-text.w-75 {
  width: 75%;
}

.skeleton-img {
  width: 100%;
  height: 100%;
  min-height: 200px;
  display: block;
}

.skeleton-card {
  border: 1px solid var(--border-light);
  padding: 1rem;
  background: var(--bg-secondary);
}

.loading-img {
  opacity: 0;
  transition: opacity 0.5s ease;
}

/* ========================================
   31. 3D/PARALLAX EFFECTS (New)
   ======================================== */

.tilt-card {
  transform-style: preserve-3d;
  transform: perspective(1000px);
  will-change: transform;
}

.tilt-card .card-body,
.tilt-card .symbol-image-wrapper {
  transform: translateZ(20px);
  transition: transform 0.3s ease;
}

.tilt-card .btn-like {
  transform: translateZ(30px);
}

/* ========================================
   32. GUIDED TOUR (New)
   ======================================== */

.tour-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 9998;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.tour-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.tour-highlight {
  position: relative;
  z-index: 9999;
  box-shadow: 0 0 0 4px var(--accent), 0 0 0 10000px rgba(0, 0, 0, 0.7);
  border-radius: var(--radius-sm);
  transition: all 0.3s ease;
}

.tour-tooltip {
  position: absolute;
  background: var(--bg-secondary);
  border: 1px solid var(--accent);
  padding: 1.5rem;
  border-radius: var(--radius-md);
  width: 300px;
  z-index: 10000;
  box-shadow: var(--shadow-xl);
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s ease;
}

.tour-tooltip.active {
  opacity: 1;
  transform: translateY(0);
}

.tour-tooltip h4 {
  color: var(--accent);
  margin-bottom: 0.5rem;
  font-family: var(--font-display);
}

.tour-tooltip p {
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.tour-steps {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.tour-dots {
  display: flex;
  gap: 0.25rem;
}

.tour-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border-light);
  transition: background 0.3s ease;
}

.tour-dot.active {
  background: var(--accent);
}

/* ========================================
   33. IMMERSIVE READING MODE (New)
   ======================================== */

body.reading-mode {
  --bg-primary: #fdf6e3;
  /* Solarized Light base3 */
  --text-primary: #657b83;
  /* Solarized Light base00 */
  --bg-secondary: #eee8d5;
  /* Solarized Light base2 */
}

body.reading-mode.dark-theme {
  --bg-primary: #073642;
  /* Solarized Dark base02 */
  --text-primary: #839496;
  /* Solarized Dark base0 */
  --bg-secondary: #002b36;
  /* Solarized Dark base03 */
}

body.reading-mode .navbar,
body.reading-mode .footer,
body.reading-mode .sidebar,
body.reading-mode .related-symbols,
body.reading-mode .action-buttons {
  display: none !important;
}

body.reading-mode .detail-card {
  max-width: 800px;
  margin: 4rem auto;
  box-shadow: none;
  background: transparent;
  border: none;
}

body.reading-mode .symbol-description {
  font-size: 1.4rem;
  line-height: 1.8;
  font-family: 'Merriweather', serif;
  /* Or var(--font-body) if serif */
}

body.reading-mode .symbol-image-wrapper {
  max-width: 400px;
  margin: 0 auto 2rem;
}

.btn-reading-mode {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 1000;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  background: var(--bg-secondary);
  color: var(--text-primary);
  border: 1px solid var(--border-light);
  transition: all 0.3s ease;
}

.btn-reading-mode:hover {
  transform: scale(1.1);
  background: var(--accent);
  color: white;
}

#toast-container {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 1055;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.toast {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  color: var(--text-primary);
  padding: 0.75rem 1rem;
  min-width: 260px;
  box-shadow: var(--shadow-md);
  opacity: 0;
  transform: translateY(-6px);
  transition: all var(--duration-base) var(--ease-out);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.toast-show {
  opacity: 1;
  transform: translateY(0);
}

.toast-success {
  border-color: var(--success);
}

.toast-error {
  border-color: var(--error);
}

.toast-warning {
  border-color: var(--warning);
}

.toast-info {
  border-color: var(--info);
}

.toast-close {
  margin-left: auto;
  background: transparent;
  border: none;
  color: inherit;
  cursor: pointer;
  font-size: 1rem;
}

.toast-icon {
  font-size: 1rem;
}
/* ========================================
   PAINEL: WATERMARK PREVIEW (Refatorado do site_settings.html)
   ======================================== */

/* Inputs de cor como círculos clicáveis */
.color-circle {
  width: 50px !important;
  height: 50px !important;
  border-radius: 50% !important;
  border: 3px solid #ccc !important;
  cursor: pointer !important;
  padding: 0 !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15) !important;
  transition: all 0.2s ease !important;
}

.color-circle:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25) !important;
  border-color: #999 !important;
}

.color-circle:active {
  transform: scale(0.95);
}

/* ========================================
   APPEARANCE SETTINGS PAGE
   Sprint: UI Simplification
   ======================================== */

/* Color Input Grid - 3 columns */
.appearance-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.appearance-color-input {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.appearance-color-input label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.appearance-color-input input[type="color"] {
  width: 100%;
  height: 48px;
  border: 2px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.appearance-color-input input[type="color"]:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Preview Cards - Inline com grid */
.theme-preview-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  margin-top: 1rem;
}

.preview-buttons {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}

.preview-btn {
  padding: 0.5rem 1rem;
  border-radius: 6px;
  border: 1px solid;
  font-weight: 500;
  cursor: default;
}

/* Contrast Badge - Inline */
.contrast-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 500;
}

.contrast-badge.success {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.contrast-badge.warning {
  background: #fff3cd;
  color: #856404;
  border: 1px solid #ffeeba;
}

/* Toolbar Compacto */
.appearance-toolbar {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-bottom: 2rem;
  padding: 1rem;
  background: var(--bg-secondary);
  border-radius: 8px;
}

/* Responsive - Mobile Stack */
@media (max-width: 768px) {
  .appearance-grid {
    grid-template-columns: 1fr;
  }
  .appearance-toolbar {
    flex-direction: column;
  }
}
/* Theme Core Overrides (5-color system) */
body {
  background: var(--bg);
  color: var(--text);
}

.navbar-mystical {
  background: var(--bg);
  border-bottom: 2px solid var(--border);
}

.navbar-mystical .nav-link,
.navbar-mystical .navbar-brand {
  color: var(--text);
}

/* Bootstrap nav variables mapped to theme tokens */
.nav,
.nav-tabs {
  --bs-nav-link-color: var(--text);
}
.nav-tabs {
  --bs-nav-tabs-border-color: var(--border);
  --bs-nav-tabs-link-hover-border-color: var(--border);
  --bs-nav-tabs-link-active-color: var(--primary);
  --bs-nav-tabs-link-active-bg: var(--bg);
}
.nav .nav-link:hover { color: var(--accent); }
.nav .nav-link.active { color: var(--primary); }

.card,
.symbol-card,
.theme-preview-card {
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--border);
  box-shadow: 0 10px 20px -10px var(--shadow);
}

.alert {
  background: color-mix(in srgb, var(--accent) 10%, var(--bg));
  color: var(--text);
  border: 1px solid var(--border);
}

.badge,
.badge-secondary {
  background: var(--accent);
  color: var(--bg);
  border: 1px solid var(--border);
}

.btn-primary {
  background: var(--primary);
  color: var(--bg);
  border: 2px solid var(--primary);
}

.btn-primary:hover {
  background: var(--primary-hover);
}

.btn-secondary,
.btn-outline-primary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-secondary:hover,
.btn-outline-primary:hover {
  background: color-mix(in srgb, var(--primary) 10%, var(--bg));
}

.btn-link {
  color: var(--text);
  border-bottom: 1px dashed var(--border);
}

.thumb-wrap {
  background: var(--bg);
}

.footer-mystical {
  background: var(--bg);
  border-top: 2px solid var(--border);
}
/* Inline error highlight for appearance color inputs */
.appearance-color-input.has-error input[type="color"] {
  border-color: var(--secondary) !important;
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--secondary) 30%, transparent);
}
