:root {
  --bg: #0d0b1a;
  --card: #171430;
  --card-hover: #1f1b40;
  --text: #ece8ff;
  --muted: #9a95c0;
  --gold: #e0b84f;
  --gold-glow: rgba(224, 184, 79, 0.2);
  --err: #ff7a7a;
  --ok: #7adf9b;
  --border: #2c2852;
  --accent-purple: #8e24aa;
  --accent-blue: #1e88e5;
  --accent-red: #d32f2f;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 system-ui, -apple-system, sans-serif;
  background-image: radial-gradient(circle at 50% 10%, #1e1740 0%, #0d0b1a 60%);
  min-height: 100vh;
}

.wrap { max-width: 520px; margin: 0 auto; padding: 20px 16px 56px; }

/* Navigation */
.brand {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.brand .logo {
  color: var(--gold);
  text-decoration: none;
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: .05em;
}
.nav-links { display: flex; align-items: center; gap: 14px; font-size: 0.9rem; }
.nav-links a { color: var(--muted); text-decoration: none; transition: color .2s; }
.nav-links a:hover { color: var(--gold); }
.nav-links button.link { color: var(--muted); background: none; border: 0; cursor: pointer; padding: 0; font-size: 0.9rem; }
.nav-links button.link:hover { color: var(--err); }

h1 { font-size: 1.65rem; margin: 0 0 8px; font-weight: 700; }
h2 { font-size: 1.2rem; margin: 0 0 6px; font-weight: 600; }
.muted { color: var(--muted); }
.center { text-align: center; }

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

label { display: flex; flex-direction: column; gap: 6px; font-size: .9rem; color: var(--muted); }
input[type=text], input[type=email], input[type=date], input[type=time], select {
  background: #0d0b1a;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px;
  font-size: 1rem;
  width: 100%;
}
input:focus, select:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 2px var(--gold-glow);
}

.check { flex-direction: row; align-items: flex-start; gap: 10px; cursor: pointer; }
fieldset { border: 1px solid var(--border); border-radius: 12px; padding: 14px; }
legend { color: var(--muted); padding: 0 6px; font-size: .9rem; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 8px; }

.btn {
  display: block;
  text-align: center;
  background: var(--gold);
  color: #1a1405;
  border: 0;
  border-radius: 12px;
  padding: 14px;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: transform .15s, background .15s;
}
.btn:hover { background: #ecd077; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn.secondary { background: transparent; color: var(--text); border: 1px solid var(--gold); }
.btn.secondary:hover { background: rgba(224, 184, 79, 0.1); }
.btn.sm { padding: 8px 14px; font-size: 0.9rem; border-radius: 8px; width: fit-content; }

.error { color: var(--err); margin: 0; font-size: 0.95rem; }
.ok { color: var(--ok); margin: 0; font-size: 0.95rem; }
.legal { text-align: center; color: var(--muted); font-size: .8rem; margin-top: 40px; }

/* Connection Pills */
.connection-pills {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 16px 0 20px;
}
.pill {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 0.9rem;
}
.pill-astro { background: rgba(30, 136, 229, 0.15); border: 1px solid rgba(30, 136, 229, 0.35); }
.pill-chakra { background: rgba(224, 184, 79, 0.15); border: 1px solid rgba(224, 184, 79, 0.35); }
.pill-location { background: rgba(142, 36, 170, 0.15); border: 1px solid rgba(142, 36, 170, 0.35); }
.pill-label { color: var(--muted); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em; }
.pill-value { font-weight: 600; color: #fff; }

/* Result Cards */
.cards-grid { display: flex; flex-direction: column; gap: 14px; }
.result-card { gap: 6px; padding: 18px; margin: 0; }
.result-card p { margin: 0; font-size: 0.95rem; line-height: 1.6; }
.card-tag { font-size: 0.75rem; text-transform: uppercase; color: var(--gold); letter-spacing: 0.06em; font-weight: 700; }
.highlight-card {
  border-color: var(--gold);
  background: linear-gradient(180deg, rgba(224, 184, 79, 0.12) 0%, var(--card) 100%);
}
.padoms-text { font-weight: 500; font-size: 1.05rem !important; color: #fff; }
.result-actions { margin-top: 24px; display: flex; justify-content: center; }

/* Steps / Generating */
.steps-card { gap: 14px; }
.step-item { display: flex; align-items: center; gap: 12px; font-size: 1rem; }
.step-check { color: var(--ok); font-weight: bold; width: 20px; }
.step-dot { color: var(--muted); width: 20px; }
.step-pulse {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--gold);
  margin-left: 4px;
  margin-right: 4px;
  box-shadow: 0 0 0 rgba(224, 184, 79, 0.4);
  animation: pulse 1.5s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(224, 184, 79, 0.7); }
  70% { box-shadow: 0 0 0 10px rgba(224, 184, 79, 0); }
  100% { box-shadow: 0 0 0 0 rgba(224, 184, 79, 0); }
}

/* History List */
.history-list { display: flex; flex-direction: column; gap: 12px; }
.history-card { margin: 0; gap: 10px; }
.history-meta { display: flex; justify-content: space-between; align-items: center; }
.history-period { font-weight: 700; color: var(--gold); }
.badge { background: #2c2852; padding: 4px 10px; border-radius: 20px; font-size: 0.8rem; color: var(--muted); }
.history-preview { font-size: 0.9rem; color: var(--muted); margin: 0; }
