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

:root {
  --bg: #0a0a0f;
  --bg2: #111118;
  --bg3: #1a1a24;
  --bg4: #0f0f18;
  --border: rgba(255,255,255,0.08);
  --border2: rgba(255,255,255,0.14);
  --text: #e8e6e0;
  --text2: #9e9b94;
  --text3: #5a5855;
  --gold: #c9a84c;
  --gold2: #e8c97a;
  --gold-dim: rgba(201,168,76,0.10);
  --teal: #5bbfb5;
  --teal-dim: rgba(91,191,181,0.12);
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
  --radius: 12px;
  --transition: 0.2s ease;
}

html { background: var(--bg); color: var(--text); font-family: var(--font-body); }

body {
  min-height: 100vh;
  background:
    radial-gradient(ellipse 60% 40% at 20% 10%, rgba(201,168,76,0.04) 0%, transparent 60%),
    radial-gradient(ellipse 40% 60% at 80% 80%, rgba(100,80,180,0.05) 0%, transparent 60%),
    var(--bg);
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(1px 1px at 15% 20%, rgba(255,255,255,0.3) 0%, transparent 100%),
    radial-gradient(1px 1px at 40% 60%, rgba(255,255,255,0.2) 0%, transparent 100%),
    radial-gradient(1px 1px at 70% 15%, rgba(255,255,255,0.25) 0%, transparent 100%),
    radial-gradient(1px 1px at 85% 45%, rgba(255,255,255,0.15) 0%, transparent 100%),
    radial-gradient(1px 1px at 25% 80%, rgba(255,255,255,0.2) 0%, transparent 100%),
    radial-gradient(1.5px 1.5px at 90% 70%, rgba(255,255,255,0.2) 0%, transparent 100%);
  pointer-events: none;
  z-index: 0;
}

.container {
  position: relative;
  z-index: 1;
  max-width: 700px;
  margin: 0 auto;
  padding: 3rem 1.5rem 5rem;
}

/* Header */
.header {
  text-align: center;
  margin-bottom: 2.5rem;
  animation: fadeUp 0.8s ease both;
}

.header-logo {
  max-width: 150px;
  height: auto;
  margin-bottom: 1rem;
  display: inline-block;
  opacity: 0.9;
  cursor: pointer;
  filter: drop-shadow(0 0 8px rgba(255,255,255,0.05));
  transition: var(--transition);
}
.header-logo:hover {
  opacity: 1;
  transform: scale(1.02);
}

.header-symbol {
  font-size: 2rem;
  margin-bottom: 0.75rem;
  display: block;
  opacity: 0.5;
  letter-spacing: 0.3em;
}

.header h1 {
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 300;
  letter-spacing: 0.04em;
  color: var(--text);
  line-height: 1.1;
  margin-bottom: 0.6rem;
}

.header h1 em { font-style: italic; color: var(--gold2); }

.header p {
  font-size: 0.85rem;
  color: var(--text2);
  font-weight: 300;
  letter-spacing: 0.03em;
}

/* Landing Page Grid */
.landing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 1.5rem;
  animation: fadeUp 0.8s 0.2s ease both;
}

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

.landing-card {
  background: var(--bg2);
  border: 0.5px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  text-decoration: none;
  color: var(--text);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.landing-card:hover {
  border-color: var(--gold);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(201,168,76,0.06);
}

.landing-card h2 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 300;
  color: var(--gold2);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.landing-card h2 span {
  font-size: 1.2rem;
  opacity: 0.6;
  transition: transform var(--transition);
}

.landing-card:hover h2 span {
  transform: translateX(4px);
  opacity: 1;
}

.landing-card p {
  font-size: 0.88rem;
  color: var(--text2);
  font-weight: 300;
  line-height: 1.6;
}

.landing-footer {
  text-align: center;
  margin-top: 3rem;
  font-size: 0.75rem;
  color: var(--text3);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Tabs / Navigation */
.tabs {
  display: flex;
  gap: 2px;
  background: var(--bg2);
  border: 0.5px solid var(--border);
  border-radius: var(--radius);
  padding: 4px;
  margin-bottom: 1.25rem;
  animation: fadeUp 0.8s 0.1s ease both;
}

.tab {
  flex: 1;
  padding: 10px 8px;
  border: none;
  border-radius: 9px;
  background: transparent;
  color: var(--text2);
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
  text-decoration: none;
}

.tab.active {
  background: var(--bg3);
  color: var(--gold2);
  border: 0.5px solid var(--border2);
  font-weight: 500;
}

/* Card */
.card {
  background: var(--bg2);
  border: 0.5px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  animation: fadeUp 0.8s 0.2s ease both;
}

.card-hint {
  font-size: 0.8rem;
  color: var(--text3);
  margin-bottom: 1.5rem;
  line-height: 1.65;
  font-weight: 300;
}

/* Form */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
.form-grid.full { grid-template-columns: 1fr; }
.form-grid.triple { grid-template-columns: 1fr 1fr 1fr; }
.form-group { display: flex; flex-direction: column; gap: 5px; }

.form-group label {
  font-size: 0.68rem;
  color: var(--text3);
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
  background: var(--bg3);
  border: 0.5px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 300;
  transition: border-color var(--transition);
  outline: none;
  -webkit-appearance: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text3); }

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--gold); }

.form-group select option { background: var(--bg3); }

.form-group textarea {
  resize: vertical;
  min-height: 90px;
  line-height: 1.6;
}

/* Context field hint */
.context-hint {
  font-size: 0.75rem;
  color: var(--text3);
  margin-top: 5px;
  line-height: 1.55;
  font-style: italic;
}

/* Pessoa blocks */
.pessoa-label {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 300;
  font-style: italic;
  color: var(--gold);
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 0.5px solid var(--border);
}

.pessoa-block { margin-bottom: 1.25rem; }

.divider {
  text-align: center;
  color: var(--text3);
  font-size: 1.1rem;
  margin: 0.25rem 0 1.25rem;
  letter-spacing: 0.3em;
}

/* Submit */
.btn-submit {
  width: 100%;
  margin-top: 1.25rem;
  padding: 14px;
  background: transparent;
  border: 0.5px solid var(--gold);
  border-radius: var(--radius);
  color: var(--gold2);
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 300;
  font-style: italic;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: background var(--transition);
}

.btn-submit:hover { background: var(--gold-dim); }
.btn-submit:disabled { opacity: 0.4; cursor: not-allowed; }

/* Loading */
.loading { display: none; text-align: center; padding: 3.5rem 1rem; }
.loading.visible { display: block; }

.loading-symbol {
  font-size: 2rem;
  animation: spin 8s linear infinite;
  display: inline-block;
  margin-bottom: 1rem;
  opacity: 0.4;
}

.loading p {
  font-family: var(--font-display);
  font-size: 1rem;
  font-style: italic;
  color: var(--text2);
  font-weight: 300;
}

/* Result */
.result { display: none; animation: fadeUp 0.6s ease both; margin-top: 1.5rem; }
.result.visible { display: block; }

.result-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 0.5px solid var(--border);
}

.result-meta {
  font-size: 0.72rem;
  color: var(--text3);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.result-meta span { color: var(--gold); margin-left: 6px; }

.btn-back {
  background: transparent;
  border: 0.5px solid var(--border2);
  border-radius: 8px;
  padding: 6px 14px;
  color: var(--text2);
  font-family: var(--font-body);
  font-size: 0.75rem;
  cursor: pointer;
  transition: var(--transition);
}

.btn-back:hover { border-color: var(--gold); color: var(--gold2); }

/* Leitura content — shared styles */
.leitura-content {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 300;
  line-height: 1.85;
  color: var(--text);
}

.leitura-content h1 {
  font-size: 1.7rem;
  font-weight: 400;
  color: var(--gold2);
  margin-bottom: 1.5rem;
}

.leitura-content h2 {
  font-size: 1.15rem;
  font-weight: 400;
  font-style: italic;
  color: var(--gold);
  margin: 2.25rem 0 0.75rem;
  letter-spacing: 0.02em;
}

.leitura-content h3 {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text3);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 1.25rem 0 0.5rem;
  font-family: var(--font-body);
}

.leitura-content p { margin-bottom: 0.9rem; }
.leitura-content strong { color: var(--gold2); font-weight: 400; }
.leitura-content em { font-style: italic; }
.leitura-content hr { border: none; border-top: 0.5px solid var(--border); margin: 1.75rem 0; }

/* Nota técnica block — previsão */
.nota-tecnica {
  background: var(--teal-dim);
  border-left: 2px solid var(--teal);
  border-radius: 0 8px 8px 0;
  padding: 10px 14px;
  margin: 0.5rem 0 1rem;
  font-family: var(--font-body);
  font-size: 0.82rem;
  color: var(--teal);
  font-weight: 300;
  line-height: 1.6;
}

/* Na tua situação block */
.situacao-block {
  background: var(--gold-dim);
  border-left: 2px solid var(--gold);
  border-radius: 0 8px 8px 0;
  padding: 10px 14px;
  margin: 0.75rem 0 0.5rem;
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--gold2);
  font-weight: 300;
  line-height: 1.65;
}

.situacao-label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold);
  font-weight: 500;
  margin-bottom: 4px;
  display: block;
}

/* Error */
.error-box {
  display: none;
  background: rgba(180,50,50,0.1);
  border: 0.5px solid rgba(180,50,50,0.3);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin-top: 1rem;
  font-size: 0.85rem;
  color: #e08080;
  line-height: 1.5;
}
.error-box.visible { display: block; }

/* Animations */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

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

@media (max-width: 520px) {
  .form-grid, .form-grid.triple { grid-template-columns: 1fr; }
  .header h1 { font-size: 2rem; }
  .tabs { flex-direction: column; }
}

/* ==========================================================================
   ASTROLOGICAL DASHBOARD PREMIUM STYLING (PREVISÃO)
   ========================================================================== */

.dashboard-hero {
  text-align: center;
  padding: 2.5rem 1.5rem;
  margin-bottom: 2rem;
  background: rgba(26, 26, 36, 0.45);
  backdrop-filter: blur(10px);
  border: 0.5px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
}

.dashboard-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.hero-symbol {
  font-size: 1.6rem;
  margin-bottom: 0.75rem;
  color: var(--gold2);
  letter-spacing: 0.3em;
  opacity: 0.85;
}

.hero-title {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 300;
  letter-spacing: 0.1em;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.hero-subtitle {
  font-size: 1rem;
  color: var(--text2);
  font-weight: 300;
  margin-bottom: 0.25rem;
}

.hero-period {
  font-size: 0.78rem;
  color: var(--text3);
  letter-spacing: 0.03em;
}

/* Quick Scores Grid */
.dashboard-grid-scores {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 2.5rem;
}

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

@media (max-width: 480px) {
  .dashboard-grid-scores {
    grid-template-columns: 1fr;
  }
}

.score-card {
  background: rgba(26, 26, 36, 0.4);
  backdrop-filter: blur(8px);
  border: 0.5px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius);
  padding: 1.5rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform 0.3s cubic-bezier(0.1, 0.8, 0.2, 1), border-color 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}

.score-card:hover {
  transform: translateY(-4px);
  border-color: rgba(201, 168, 76, 0.35);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35), inset 0 0 10px rgba(255, 255, 255, 0.02);
}

.score-label {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text2);
  margin-bottom: 0.5rem;
}

.progress-ring-container {
  position: relative;
  width: 120px;
  height: 120px;
  margin: 0.5rem 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.progress-ring {
  transform: rotate(-90deg);
  width: 120px;
  height: 120px;
}

.progress-ring-circle-bg {
  stroke: rgba(255, 255, 255, 0.05);
}

.progress-ring-circle {
  stroke-linecap: round;
  transition: stroke-dashoffset 1.5s cubic-bezier(0.1, 0.8, 0.25, 1);
}

.score-number {
  position: absolute;
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 300;
  color: #ffffff;
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.score-desc {
  font-size: 0.72rem;
  color: var(--text3);
  font-weight: 300;
  line-height: 1.4;
  margin-top: 0.5rem;
}

/* Quick Insights Section */
.dashboard-insights {
  margin-bottom: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.section-title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 300;
  color: var(--gold2);
  margin-bottom: 0.5rem;
  text-align: center;
  letter-spacing: 0.03em;
}

.insight-row {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 1.25rem 1.5rem;
  background: rgba(26, 26, 36, 0.35);
  backdrop-filter: blur(8px);
  border: 0.5px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius);
  transition: all 0.3s ease;
}

.insight-row:hover {
  border-color: rgba(255, 255, 255, 0.12);
  transform: translateX(4px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.insight-icon {
  font-size: 1.6rem;
  background: var(--bg3);
  border: 0.5px solid var(--border2);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.insight-body {
  flex: 1;
}

.insight-body h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--gold);
  margin-bottom: 0.3rem;
  margin-top: 2px;
}

.insight-body p {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--text);
  line-height: 1.6;
  font-weight: 300;
}

/* Premium Locked Section Hook */
.dashboard-locked {
  position: relative;
  overflow: hidden;
  background: rgba(15, 15, 24, 0.65);
  backdrop-filter: blur(12px);
  border: 0.5px solid rgba(201, 168, 76, 0.25);
  box-shadow: 
    0 15px 35px rgba(0, 0, 0, 0.45),
    inset 0 0 15px rgba(201, 168, 76, 0.04);
  padding: 2.5rem 2rem;
  border-radius: var(--radius);
  text-align: center;
  margin-top: 2rem;
}

.locked-overlay {
  position: relative;
  z-index: 2;
}

.locked-lock {
  font-size: 2.4rem;
  margin-bottom: 0.75rem;
  color: var(--gold2);
  display: inline-block;
  animation: pulse 2.2s infinite ease-in-out;
}

.locked-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--gold2);
  margin-bottom: 0.75rem;
}

.locked-desc {
  font-family: var(--font-body);
  font-size: 0.88rem;
  color: var(--text2);
  line-height: 1.6;
  max-width: 580px;
  margin: 0 auto 1.5rem;
  font-weight: 300;
}

.locked-bullets {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 520px;
  margin: 0 auto 2rem;
  text-align: left;
}

.locked-bullet {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.84rem;
  color: var(--text);
  line-height: 1.5;
  font-weight: 300;
}

.locked-bullet span {
  color: var(--teal);
  font-weight: bold;
  font-size: 0.95rem;
  flex-shrink: 0;
  line-height: 1.2;
}

.locked-bullet strong {
  color: var(--gold);
  font-weight: 500;
}

.btn-locked-cta {
  background: linear-gradient(135deg, var(--gold) 0%, #b3923b 100%) !important;
  color: #0a0a0f !important;
  font-style: normal !important;
  font-weight: 600 !important;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border: none !important;
  text-shadow: none !important;
  box-shadow: 0 6px 18px rgba(201, 168, 76, 0.25);
  display: inline-block;
  margin: 0 auto;
  text-align: center;
  max-width: 320px;
  text-decoration: none;
  padding: 12px 28px !important;
  font-size: 0.9rem !important;
  border-radius: var(--radius);
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}

.btn-locked-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(201, 168, 76, 0.45);
  background: linear-gradient(135deg, #e8c97a 0%, var(--gold) 100%) !important;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    filter: drop-shadow(0 0 2px rgba(201, 168, 76, 0.2));
  }
  50% {
    transform: scale(1.08);
    filter: drop-shadow(0 0 8px rgba(201, 168, 76, 0.6));
  }
  100% {
    transform: scale(1);
    filter: drop-shadow(0 0 2px rgba(201, 168, 76, 0.2));
  }
}

/* Language Selector */
.lang-selector-container {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 1.5rem;
  animation: fadeUp 0.8s ease both;
}

.lang-selector-container select {
  background: var(--bg2);
  color: var(--text2);
  border: 0.5px solid var(--border);
  padding: 6px 12px;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.75rem;
  outline: none;
  cursor: pointer;
  transition: var(--transition);
}

.lang-selector-container select:focus,
.lang-selector-container select:hover {
  border-color: var(--gold);
  color: var(--gold2);
}

.lang-selector-container select option {
  background: var(--bg2);
  color: var(--text);
}
