/* CELESTRAL — Design System Celestial (navy profundo + ouro-champanhe) */
:root {
  --bg-deep: #070B15;
  --bg-base: #0B1322;
  --surface: #101A2D;
  --surface-hover: #15213A;
  --border: #223049;
  --border-subtle: rgba(214, 226, 255, 0.07);

  --text-primary: #F2EFE6;
  --text-secondary: #9AA7C2;
  --text-muted: #64718C;

  /* Acento único: ouro-champanhe (nomes antigos mantidos por compatibilidade) */
  --pink: #E3B873;
  --pink-hover: #D4A055;
  --rose: #F2D5A0;
  --purple: #8F82C9;
  --indigo: #5B6CC7;
  --cyan: #7FB8D8;

  --gold-ink: #241805; /* texto sobre botões dourados */
  --gold-grad: linear-gradient(135deg, #F4DCA8 0%, #E3B873 48%, #C8924B 100%);

  --fire: #E66A5A;
  --earth: #4FB58B;
  --air: #DCA84F;
  --water: #5FA8C7;

  --font-disp: 'Fraunces', 'Georgia', serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --shadow-sm: 0 4px 12px rgba(3, 6, 14, 0.35);
  --shadow-md: 0 12px 32px rgba(3, 6, 14, 0.5);
  --shadow-lg: 0 24px 60px rgba(3, 6, 14, 0.65), 0 0 70px rgba(227, 184, 115, 0.07);
}

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

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-deep);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  background-image:
    radial-gradient(ellipse 70% 45% at 50% -5%, rgba(227, 184, 115, 0.075) 0%, transparent 60%),
    radial-gradient(ellipse 45% 35% at 88% 38%, rgba(91, 108, 199, 0.08) 0%, transparent 65%),
    radial-gradient(ellipse 50% 40% at 8% 78%, rgba(143, 130, 201, 0.055) 0%, transparent 60%);
  background-attachment: fixed;
  min-height: 100dvh;
  position: relative;
}

/* Campo de estrelas fixo (duas camadas, cintilação sutil) */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    radial-gradient(1px 1px at 12% 22%, rgba(242, 239, 230, 0.8) 50%, transparent 100%),
    radial-gradient(1px 1px at 68% 8%, rgba(242, 239, 230, 0.55) 50%, transparent 100%),
    radial-gradient(1.5px 1.5px at 42% 48%, rgba(227, 184, 115, 0.65) 50%, transparent 100%),
    radial-gradient(1px 1px at 86% 62%, rgba(242, 239, 230, 0.45) 50%, transparent 100%),
    radial-gradient(1px 1px at 24% 76%, rgba(242, 239, 230, 0.6) 50%, transparent 100%),
    radial-gradient(1.5px 1.5px at 94% 28%, rgba(242, 239, 230, 0.5) 50%, transparent 100%),
    radial-gradient(1px 1px at 55% 88%, rgba(227, 184, 115, 0.5) 50%, transparent 100%),
    radial-gradient(1px 1px at 5% 50%, rgba(242, 239, 230, 0.4) 50%, transparent 100%);
  background-size: 520px 520px;
  animation: starTwinkle 7s ease-in-out infinite alternate;
}

@keyframes starTwinkle {
  from { opacity: 0.55; }
  to { opacity: 1; }
}

/* Grain sutil para quebrar o flat digital */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

body > * {
  position: relative;
  z-index: 1;
}

@media (prefers-reduced-motion: reduce) {
  body::before { animation: none; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-deep);
}
::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--pink);
}

/* Container */
.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Navigation */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(9, 15, 28, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-primary);
  font-family: var(--font-disp);
  font-weight: 900;
  font-size: 20px;
  letter-spacing: 1.5px;
}

.brand-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 0 10px rgba(143, 130, 201, 0.45));
  transition: transform 0.25s ease;
}

.brand-link:hover .brand-icon {
  transform: rotate(30deg) scale(1.08);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
}

.nav-item {
  position: relative;
}

.nav-link-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  padding: 10px 0;
  transition: color 0.2s;
}

.nav-link-btn:hover, .nav-link-btn.active {
  color: var(--pink);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: -20px;
  min-width: 220px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 8px 0;
  box-shadow: var(--shadow-md);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: all 0.2s ease;
  z-index: 110;
}

.nav-item:hover .dropdown-menu,
.nav-item:focus-within .dropdown-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.15s;
}

.dropdown-item:hover {
  background: rgba(227, 184, 115, 0.1);
  color: var(--pink);
  padding-left: 22px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-signin {
  background: var(--gold-grad);
  color: var(--gold-ink);
  border: none;
  border-radius: 30px;
  padding: 9px 20px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 15px rgba(227, 184, 115, 0.35);
  transition: all 0.2s;
}

.btn-signin:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(227, 184, 115, 0.5);
}

.mobile-toggle {
  display: none;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  cursor: pointer;
  flex-direction: column;
  gap: 4px;
}

.mobile-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all 0.2s;
}

@media (max-width: 900px) {
  .mobile-toggle { display: flex; }
  .nav-menu {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 20px;
    gap: 12px;
    box-shadow: var(--shadow-lg);
  }
  .nav-menu.open {
    display: flex;
  }
}


/* Header & Banner */
.page-header {
  padding: 50px 0 90px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.stars-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.12;
  pointer-events: none;
}

.breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.breadcrumb a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s;
}

.breadcrumb a:hover {
  color: var(--pink);
}

.page-title {
  font-family: var(--font-disp);
  font-size: clamp(42px, 7vw, 78px);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.05;
  margin-bottom: 20px;
  text-wrap: balance;
}

.page-title .highlight {
  font-style: italic;
  font-weight: 500;
  background: linear-gradient(120deg, #F6E3B4 0%, #E3B873 45%, #C08A45 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.page-desc {
  font-size: clamp(16px, 2.2vw, 20px);
  color: var(--text-secondary);
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Calculator Grid Section */
.calc-section {
  margin-top: -60px;
  position: relative;
  z-index: 10;
  margin-bottom: 80px;
}

.calc-layout {
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 32px;
  align-items: start;
}

@media (max-width: 1024px) {
  .calc-layout {
    grid-template-columns: 1fr;
  }
}

/* Form Card */
.form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 36px 32px;
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(12px);
}

.form-header-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--pink);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 8px;
}

.form-title {
  font-family: var(--font-disp);
  font-size: 22px;
  font-weight: 900;
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}

.form-subtitle {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 28px;
}

.form-group {
  margin-bottom: 20px;
  position: relative;
}

.form-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 8px;
  margin-left: 2px;
}

.form-input {
  width: 100%;
  background: var(--bg-deep);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  font-size: 15px;
  color: var(--text-primary);
  font-family: var(--font-body);
  outline: none;
  transition: all 0.2s;
}

.form-input:focus {
  border-color: var(--pink);
  box-shadow: 0 0 0 3px rgba(227, 184, 115, 0.15);
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* City Autocomplete Dropdown */
.city-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--bg-base);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-top: 6px;
  max-height: 220px;
  overflow-y: auto;
  z-index: 50;
  box-shadow: var(--shadow-md);
  display: none;
}

.city-option {
  padding: 12px 16px;
  font-size: 13px;
  color: var(--text-primary);
  cursor: pointer;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  gap: 8px;
  transition: background 0.15s;
}

.city-option:last-child {
  border-bottom: none;
}

.city-option:hover {
  background: rgba(227, 184, 115, 0.12);
  color: var(--pink);
}

.btn-submit {
  width: 100%;
  background: var(--gold-grad);
  color: var(--gold-ink);
  border: none;
  border-radius: var(--radius-md);
  padding: 17px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.2px;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(227, 184, 115, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  transition: transform 0.2s ease, box-shadow 0.25s ease, filter 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 8px;
}

.btn-submit:hover {
  transform: translateY(-2px);
  filter: brightness(1.06);
  box-shadow: 0 16px 36px rgba(227, 184, 115, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.btn-submit:active {
  transform: scale(0.98);
}

.btn-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.trust-badges {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
}

.trust-title {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.trust-check {
  color: var(--earth);
  font-weight: 900;
}

/* Result / Mandala Card */
.result-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  min-height: 560px;
  padding: 40px;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
}

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  min-height: 480px;
  text-align: center;
}

.pulsing-sun {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: rgba(227, 184, 115, 0.12);
  color: var(--pink);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  animation: pulse-glow 3s infinite ease-in-out;
}

@keyframes pulse-glow {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 20px rgba(227, 184, 115, 0.2);
  }
  50% {
    transform: scale(1.08);
    box-shadow: 0 0 40px rgba(227, 184, 115, 0.45);
  }
}

.empty-title {
  font-family: var(--font-disp);
  font-size: 24px;
  font-weight: 900;
  margin-bottom: 12px;
}

.empty-desc {
  font-size: 14px;
  color: var(--text-secondary);
  max-width: 380px;
  line-height: 1.6;
  margin-bottom: 32px;
}

.empty-preview-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  width: 100%;
  max-width: 320px;
}

.pillar-chip {
  background: var(--bg-deep);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px 8px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-secondary);
  text-align: center;
}

/* Post-Calculation Result View */
.chart-result-view {
  display: none;
}

.result-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  flex-wrap: wrap;
  gap: 16px;
}

.result-user-info h3 {
  font-size: 22px;
  margin-bottom: 4px;
}

.result-user-info p {
  font-size: 13px;
  color: var(--text-secondary);
  font-family: var(--font-mono);
}

.result-actions {
  display: flex;
  gap: 10px;
}

.btn-secondary {
  background: var(--bg-deep);
  border: 1px solid var(--border);
  color: var(--text-primary);
  border-radius: 30px;
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-secondary:hover {
  border-color: var(--pink);
  color: var(--pink);
}

/* 3 Pillars Summary */
.pillars-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}

@media (max-width: 640px) {
  .pillars-summary {
    grid-template-columns: 1fr;
  }
}

.pillar-card {
  background: var(--bg-deep);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.pillar-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
}

.pillar-card.sun::before { background: #F2D5A0; }
.pillar-card.moon::before { background: #E2E8F0; }
.pillar-card.asc::before { background: var(--pink); }

.pillar-badge {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.pillar-sign {
  font-family: var(--font-disp);
  font-size: 20px;
  font-weight: 900;
  margin-bottom: 6px;
}

.pillar-card.sun .pillar-sign { color: #F2D5A0; }
.pillar-card.moon .pillar-sign { color: #F8FAFC; }
.pillar-card.asc .pillar-sign { color: var(--pink); }

.pillar-deg {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-secondary);
}

/* Mandala Container */
.mandala-wrap {
  width: 100%;
  max-width: 520px;
  margin: 0 auto 32px;
  position: relative;
}

.mandala-svg {
  width: 100%;
  height: auto;
  display: block;
}

/* Result Tabs */
.result-tabs-nav {
  display: flex;
  gap: 8px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
  overflow-x: auto;
}

.tab-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  padding: 12px 18px;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
  white-space: nowrap;
}

.tab-btn:hover {
  color: var(--text-primary);
}

.tab-btn.active {
  color: var(--pink);
  border-bottom-color: var(--pink);
}

.tab-pane {
  display: none;
}

.tab-pane.active {
  display: block;
}

/* Tables */
.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table th, .data-table td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 13px;
}

.data-table th {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 1px;
}

.data-table tr:hover {
  background: rgba(255, 255, 255, 0.02);
}

/* Section Grids */
.section-wrap {
  padding: 80px 0;
  border-top: 1px solid var(--border-subtle);
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 40px;
  flex-wrap: wrap;
  gap: 20px;
}

.section-eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--pink);
  margin-bottom: 8px;
}

.section-h2 {
  font-family: var(--font-disp);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 900;
  letter-spacing: -0.01em;
}

/* Signs Grid */
.signs-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}

@media (max-width: 1024px) {
  .signs-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 640px) {
  .signs-grid { grid-template-columns: repeat(2, 1fr); }
}

.sign-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 16px;
  text-align: center;
  text-decoration: none;
  color: var(--text-primary);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: all 0.2s ease;
}

.sign-card:hover {
  transform: translateY(-4px);
  border-color: rgba(227, 184, 115, 0.5);
  box-shadow: var(--shadow-md);
}

.sign-icon-circle {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin-bottom: 12px;
  transition: transform 0.2s;
}

.sign-card:hover .sign-icon-circle {
  transform: scale(1.1);
}

.sign-glyph {
  font-size: 20px;
  font-weight: 900;
  margin-bottom: 4px;
}

.sign-name {
  font-family: var(--font-disp);
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 4px;
  transition: color 0.2s;
}

.sign-card:hover .sign-name {
  color: var(--pink);
}

.sign-element {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 600;
}

/* Hubs Grid */
.hubs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

@media (max-width: 900px) {
  .hubs-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .hubs-grid { grid-template-columns: 1fr; }
}

.hub-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 32px;
  text-decoration: none;
  color: var(--text-primary);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.2s;
}

.hub-card:hover {
  transform: translateY(-4px);
  border-color: rgba(227, 184, 115, 0.4);
  box-shadow: var(--shadow-md);
}

.hub-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.hub-icon {
  font-size: 32px;
  background: rgba(255, 255, 255, 0.05);
  padding: 12px;
  border-radius: var(--radius-md);
}

.hub-badge {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--pink);
  background: rgba(227, 184, 115, 0.1);
  padding: 4px 10px;
  border-radius: 20px;
}

.hub-title {
  font-family: var(--font-disp);
  font-size: 20px;
  font-weight: 900;
  margin-bottom: 6px;
  transition: color 0.2s;
}

.hub-card:hover .hub-title {
  color: var(--pink);
}

.hub-subtitle {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.hub-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.hub-footer {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-primary);
}

/* Interactive Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(9, 13, 22, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}

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

.modal-window {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  max-width: 680px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  padding: 36px;
  position: relative;
  box-shadow: var(--shadow-lg);
  transform: scale(0.95);
  transition: transform 0.2s;
}

.modal-overlay.active .modal-window {
  transform: scale(1);
}

.btn-close-modal {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: var(--text-secondary);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.btn-close-modal:hover {
  background: var(--pink);
  color: white;
}

/* FAQ Accordion */
.faq-wrap {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  overflow: hidden;
  transition: border-color 0.2s;
}

.faq-item:hover {
  border-color: rgba(227, 184, 115, 0.4);
}

.faq-btn {
  width: 100%;
  background: none;
  border: none;
  padding: 22px 24px;
  text-align: left;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.faq-icon {
  font-size: 20px;
  color: var(--pink);
  transition: transform 0.2s;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

.faq-content {
  display: none;
  padding: 0 24px 24px;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

.faq-item.active .faq-content {
  display: block;
}

/* CTA Banner */
.cta-banner {
  background: linear-gradient(135deg, rgba(22, 32, 53, 0.9) 0%, rgba(91, 108, 199, 0.15) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 60px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
  margin: 80px 0;
  box-shadow: var(--shadow-lg);
}

.cta-banner h2 {
  font-size: clamp(32px, 5vw, 48px);
  margin-bottom: 16px;
}

.cta-banner p {
  color: var(--text-secondary);
  font-size: 17px;
  max-width: 600px;
  margin: 0 auto 32px;
}

/* Footer */
footer {
  background: var(--bg-base);
  border-top: 1px solid var(--border);
  padding: 60px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 40px;
}

@media (max-width: 800px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 500px) {
  .footer-grid { grid-template-columns: 1fr; }
}

.footer-col h4 {
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 10px;
}

.footer-col a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 13px;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: var(--pink);
}

.footer-bottom {
  padding-top: 30px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 16px;
}

/* Hubs interactive and compatibility */
.hub-clickable {
  cursor: pointer;
}

.compat-form-row {
  margin-top: 18px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@media (max-width: 500px) {
  .compat-form-row {
    grid-template-columns: 1fr;
  }
}

/* Big 3 Archetype description */
.pillar-archetype {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 6px;
  line-height: 1.4;
}

/* Tables and responsive wraps */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* Elements breakdown */
.elements-bars-wrap {
  display: grid;
  gap: 16px;
}

.element-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.element-label-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 700;
}

.element-track {
  background: rgba(255, 255, 255, 0.08);
  height: 8px;
  border-radius: 4px;
  overflow: hidden;
}

.element-bar {
  height: 100%;
  transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Steps section */
.steps-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 60px 40px;
  box-shadow: var(--shadow-sm);
}

.steps-list {
  list-style: none;
  max-width: 680px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.step-item {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.step-number {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--indigo) 0%, var(--purple) 100%);
  color: #fff;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-disp);
  font-weight: 900;
  font-size: 16px;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(91, 108, 199, 0.35);
}

.step-body h3 {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 6px;
  color: var(--text-primary);
}

.step-body p {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.6;
}

.card-icon {
  font-size: 32px;
  margin-bottom: 12px;
}

.highlight-link {
  color: var(--pink) !important;
}

.toast-msg {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--surface);
  border: 1px solid var(--pink);
  color: #fff;
  padding: 14px 22px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  z-index: 999;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: slideInUp 0.3s ease;
}

@keyframes slideInUp {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}


/* ——— PAYWALL: PRÉVIA, CTA & AGUARDANDO PAGAMENTO ——— */

.form-hint {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 6px;
  line-height: 1.5;
}

.lgpd-notice {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-top: 14px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
}

.premium-wrap {
  position: relative;
}

.premium-wrap.locked .mandala-wrap,
.premium-wrap.locked .result-tabs-nav,
.premium-wrap.locked .tab-pane {
  filter: blur(7px) saturate(0.7);
  pointer-events: none;
  user-select: none;
}

.paywall-cta {
  display: flex;
  position: absolute;
  inset: 0;
  z-index: 5;
  align-items: flex-start;
  justify-content: center;
  padding-top: 48px;
}

.paywall-cta-box {
  position: sticky;
  top: 90px;
  max-width: 420px;
  width: calc(100% - 32px);
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--pink);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6), 0 0 40px rgba(227, 184, 115, 0.15);
}

.paywall-lock {
  font-size: 40px;
  margin-bottom: 12px;
}

.paywall-cta-box h3 {
  font-family: var(--font-disp);
  font-size: 22px;
  font-weight: 900;
  color: #fff;
  margin-bottom: 10px;
}

.paywall-cta-box p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 18px;
}

.paywall-price-row {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 18px;
}

.paywall-price-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-muted);
}

.paywall-price {
  font-family: var(--font-disp);
  font-size: 34px;
  font-weight: 900;
  color: var(--pink);
}

.paywall-methods {
  font-size: 11px !important;
  color: var(--text-muted) !important;
  margin-top: 14px;
  margin-bottom: 0 !important;
}

.payment-pending-view {
  text-align: center;
  padding: 72px 28px;
}

.pending-spinner {
  font-size: 44px;
  color: var(--pink);
  margin-bottom: 18px;
  display: inline-block;
  animation: pendingSpin 2.4s linear infinite;
}

@keyframes pendingSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.pending-icon {
  font-size: 44px;
  margin-bottom: 18px;
}

.pending-support {
  margin-top: 22px;
  font-size: 12px;
  color: var(--text-muted);
}

.pending-support a {
  color: var(--pink);
  text-decoration: none;
}

.pending-retry-btn {
  max-width: 320px;
  margin: 22px auto 0;
}

/* ——— REDESIGN CELESTIAL: TIPOGRAFIA DISPLAY (Fraunces) ——— */

.page-title, .section-h2, .form-title, .empty-title, .hub-title,
.pillar-sign, .paywall-cta-box h3, .modal-window h3, .cta-banner h2,
.result-user-info h3 {
  font-weight: 600;
  letter-spacing: -0.01em;
}

.section-h2 {
  font-family: var(--font-disp);
  text-wrap: balance;
  line-height: 1.12;
}

.cta-banner h2,
.result-user-info h3,
.modal-window h3 {
  font-family: var(--font-disp);
}

.brand-link {
  font-weight: 600;
  letter-spacing: 3px;
  font-size: 18px;
}

.page-desc {
  text-wrap: pretty;
}

.data-table td, .pillar-deg, .result-user-info p {
  font-variant-numeric: tabular-nums;
}

/* ——— HERO: ÓRBITA ZODIACAL DECORATIVA ——— */

.page-header {
  padding: 72px 0 110px;
}

.hero-orbit {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(980px, 160vw);
  aspect-ratio: 1;
  transform: translate(-50%, -42%);
  pointer-events: none;
  opacity: 0.5;
}

.hero-orbit-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px dashed rgba(227, 184, 115, 0.22);
  animation: orbitSpin 140s linear infinite;
}

.hero-orbit-ring.r2 {
  inset: 11%;
  border-style: solid;
  border-color: rgba(214, 226, 255, 0.07);
  animation-direction: reverse;
  animation-duration: 200s;
}

.hero-orbit-glyph {
  position: absolute;
  top: 50%;
  left: 50%;
  font-size: 15px;
  color: rgba(227, 184, 115, 0.55);
  transform: rotate(calc(var(--i) * 30deg)) translateY(calc(min(980px, 160vw) / -2)) rotate(calc(var(--i) * -30deg));
}

@keyframes orbitSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--pink);
  border: 1px solid rgba(227, 184, 115, 0.3);
  background: rgba(227, 184, 115, 0.06);
  border-radius: 999px;
  padding: 7px 16px;
  margin-bottom: 22px;
}

/* ——— SEÇÃO EDUCACIONAL: GRID + CARDS (antes inexistentes) ——— */

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

@media (max-width: 900px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .grid-3 { grid-template-columns: 1fr; }
}

.card {
  background: linear-gradient(180deg, rgba(227, 184, 115, 0.045) 0%, rgba(16, 26, 45, 0.6) 30%);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 28px 26px;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(227, 184, 115, 0.3);
  box-shadow: var(--shadow-md);
}

.card-title {
  font-family: var(--font-disp);
  font-size: 19px;
  font-weight: 600;
  margin-bottom: 8px;
}

.card-desc {
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.65;
  max-width: 42ch;
}

/* ——— SUPERFÍCIES: refinamento de cards existentes ——— */

.sign-card, .hub-card {
  background: linear-gradient(180deg, rgba(214, 226, 255, 0.025) 0%, var(--surface) 55%);
  border-color: var(--border-subtle);
}

.sign-card:hover, .hub-card:hover {
  border-color: rgba(227, 184, 115, 0.35);
}

.form-card, .result-card {
  background:
    radial-gradient(120% 70% at 50% -10%, rgba(227, 184, 115, 0.05) 0%, transparent 55%),
    var(--surface);
  border-color: var(--border-subtle);
}

.pillar-card {
  background: linear-gradient(180deg, rgba(214, 226, 255, 0.03) 0%, var(--bg-deep) 60%);
}

.paywall-cta-box {
  border: 1px solid rgba(227, 184, 115, 0.45);
  background:
    radial-gradient(130% 80% at 50% -15%, rgba(227, 184, 115, 0.1) 0%, transparent 60%),
    var(--surface);
}

.paywall-lock {
  filter: drop-shadow(0 0 18px rgba(227, 184, 115, 0.5));
}

.steps-box {
  background:
    radial-gradient(90% 60% at 50% 0%, rgba(91, 108, 199, 0.07) 0%, transparent 60%),
    var(--surface);
  border-color: var(--border-subtle);
}

.step-number {
  background: var(--gold-grad);
  color: var(--gold-ink);
  box-shadow: 0 6px 18px rgba(227, 184, 115, 0.25);
  font-weight: 700;
}

.cta-banner {
  background:
    radial-gradient(85% 120% at 50% 115%, rgba(227, 184, 115, 0.13) 0%, transparent 60%),
    radial-gradient(60% 80% at 15% -20%, rgba(91, 108, 199, 0.12) 0%, transparent 60%),
    var(--surface);
  border-color: var(--border-subtle);
}

/* ——— MOTION: reveal no scroll (ativado via app.js) ——— */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1), transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0ms);
}

.reveal.revealed {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
}

/* ——— ACESSIBILIDADE: foco visível ——— */

a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--pink);
  outline-offset: 2px;
  border-radius: 4px;
}

.btn-submit:focus-visible, .btn-signin:focus-visible {
  outline-offset: 3px;
}

/* ——— POLIMENTOS ——— */

.form-header-tag, .section-eyebrow {
  color: var(--pink);
  letter-spacing: 2.5px;
}

.trust-check { color: var(--pink); }

.pillar-card.sun::before { background: linear-gradient(90deg, transparent, #F2D5A0, transparent); }
.pillar-card.moon::before { background: linear-gradient(90deg, transparent, #C9D4EC, transparent); }
.pillar-card.asc::before { background: linear-gradient(90deg, transparent, var(--pink), transparent); }

.faq-item {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border-subtle);
  border-radius: 0;
  margin-bottom: 0;
}

.faq-item:hover { border-color: rgba(227, 184, 115, 0.3); }

.faq-btn { font-size: 17px; font-weight: 600; }

.faq-icon { font-weight: 400; }

.footer-bottom { color: var(--text-muted); }

.toast-msg { border-color: rgba(227, 184, 115, 0.5); }

.tab-btn.active { font-weight: 700; }

.hub-icon { background: rgba(227, 184, 115, 0.07); }

::selection {
  background: rgba(227, 184, 115, 0.3);
  color: #fff;
}
