:root {
  --bg-0: #1c1109;
  --bg-1: #2a190b;
  --bg-2: #38210f;
  --paper: #fbf3e3;
  --ink: #2b1908;
  --ink-soft: #6a4a2a;
  --gold: #d99b2b;
  --gold-bright: #f6c14a;
  --saffron: #cc4f10;
  --saffron-deep: #962f06;
  --vermillion: #b8290d;
  --line: rgba(217, 155, 43, 0.28);
  --shadow-soft: 0 30px 60px -30px rgba(0, 0, 0, 0.55);
  --shadow-card: 0 18px 40px -22px rgba(0, 0, 0, 0.5);
  --serif: "Cormorant Garamond", "Georgia", serif;
  --sans: "Inter", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  min-height: 100vh;
  font-family: var(--sans);
  color: var(--paper);
  background:
    radial-gradient(1200px 600px at 50% -10%, rgba(246, 193, 74, 0.18), transparent 60%),
    radial-gradient(800px 400px at 90% 10%, rgba(204, 79, 16, 0.15), transparent 60%),
    linear-gradient(180deg, var(--bg-1) 0%, var(--bg-0) 100%);
  background-attachment: fixed;
  position: relative;
  overflow-x: hidden;
}

.aura {
  position: fixed; inset: -10vh -10vw;
  background:
    radial-gradient(circle at 20% 30%, rgba(246, 193, 74, 0.10), transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(184, 41, 13, 0.10), transparent 45%);
  filter: blur(40px);
  pointer-events: none;
  z-index: -1;
}

/* ---------- header ---------- */
.site-header {
  padding: 56px 32px 24px;
  display: flex;
  justify-content: center;
}
.brand {
  display: flex;
  align-items: center;
  gap: 18px;
}
.brand-mark {
  width: 64px; height: 64px;
  filter: drop-shadow(0 8px 22px rgba(246,193,74,0.4));
}
.brand-text { display: flex; flex-direction: column; gap: 2px; }
.brand-text .dev {
  font-family: "Noto Serif Devanagari", "Cormorant Garamond", serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: rgba(246, 193, 74, 0.85);
  margin-bottom: -2px;
}
.brand-text h1 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 38px;
  margin: 0;
  line-height: 1.05;
  letter-spacing: 0.5px;
  background: linear-gradient(180deg, #fff1c4 0%, #f6c14a 60%, #d97706 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.tagline {
  margin: 4px 0 0;
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(251, 243, 227, 0.65);
}

/* ---------- container & cards ---------- */
.container {
  max-width: 880px;
  margin: 0 auto;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.card {
  background: rgba(251, 243, 227, 0.05);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 28px;
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow-card);
}

/* ---------- form ---------- */
.lookup-card form {
  display: grid;
  grid-template-columns: 1fr 200px;
  gap: 18px 20px;
}
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: rgba(251,243,227,0.7);
}
.field input {
  font: inherit;
  color: var(--paper);
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(28, 17, 9, 0.55);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  width: 100%;
}
.field input::placeholder { color: rgba(251, 243, 227, 0.4); }
.field input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(217, 155, 43, 0.15);
}
.field .meta { margin: 2px 0 0; font-size: 12px; color: rgba(251,243,227,0.55); min-height: 14px; }

.search-wrap { position: relative; }
.suggestions {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0;
  background: #fbf3e3; color: var(--ink);
  border-radius: 12px;
  list-style: none; padding: 6px; margin: 0;
  max-height: 280px; overflow: auto;
  box-shadow: var(--shadow-soft);
  z-index: 10;
}
.suggestions li {
  padding: 10px 12px;
  border-radius: 8px;
  cursor: pointer;
  display: flex; flex-direction: column; gap: 2px;
}
.suggestions li:hover, .suggestions li.active {
  background: rgba(217, 155, 43, 0.18);
}
.suggestions .sug-name { font-weight: 600; font-family: var(--serif); font-size: 17px; }
.suggestions .sug-meta { font-size: 12px; color: var(--ink-soft); }

button.primary {
  grid-column: 1 / -1;
  appearance: none;
  border: 0;
  border-radius: 12px;
  padding: 14px 18px;
  cursor: pointer;
  font: 600 15px var(--sans);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #2b1908;
  background:
    linear-gradient(180deg, #ffd87a 0%, #f6c14a 50%, #d99b2b 100%);
  box-shadow: 0 12px 30px -12px rgba(217, 155, 43, 0.7);
  transition: transform 0.08s ease, filter 0.2s;
  position: relative;
}
button.primary:hover { filter: brightness(1.05); }
button.primary:active { transform: translateY(1px); }
button.primary[disabled] { opacity: 0.7; cursor: progress; }
.btn-spinner {
  display: none;
  width: 14px; height: 14px;
  border-radius: 50%;
  border: 2px solid rgba(43,25,8,0.25);
  border-top-color: #2b1908;
  margin-left: 8px;
  animation: spin 0.8s linear infinite;
  vertical-align: middle;
}
button.primary.loading .btn-spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- results ---------- */
.results {
  display: flex; flex-direction: column; gap: 20px;
  animation: rise 0.4s ease;
}
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.result-header { text-align: center; }
.result-header h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 600;
  background: linear-gradient(180deg, #fff1c4, #f6c14a);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.result-header .meta { margin-top: 4px; }

.muhurta-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.muhurta {
  position: relative;
  border-radius: 18px;
  padding: 26px 24px 22px;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(251,243,227,0.06), rgba(251,243,227,0.02));
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.muhurta::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(140% 80% at 50% -20%, rgba(246,193,74,0.18), transparent 60%);
  pointer-events: none;
}
.muhurta header {
  display: flex; align-items: center; gap: 10px; margin-bottom: 14px;
}
.muhurta header h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 600;
  color: #fff1c4;
}
.badge {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(246, 193, 74, 0.16);
  color: var(--gold-bright);
  border: 1px solid rgba(246, 193, 74, 0.35);
}
.muhurta .time-range {
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}
.muhurta .duration {
  font-size: 13px;
  color: rgba(251,243,227,0.65);
  margin-bottom: 12px;
}
.muhurta .lore {
  font-size: 13.5px;
  color: rgba(251,243,227,0.7);
  margin: 0;
  line-height: 1.5;
}
.muhurta.amrit::after,
.muhurta.vijaya::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
}
.muhurta.amrit::after { background: linear-gradient(90deg, transparent, var(--gold), transparent); }
.muhurta.vijaya::after { background: linear-gradient(90deg, transparent, var(--saffron), transparent); }

.sun-strip {
  display: flex; align-items: stretch; justify-content: space-between;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 18px;
  background: rgba(251,243,227,0.04);
}
.sun-stat { display: flex; flex-direction: column; align-items: center; gap: 4px; flex: 1; }
.sun-stat .label {
  font-size: 10px; text-transform: uppercase; letter-spacing: 0.22em; color: rgba(251,243,227,0.55);
}
.sun-stat .value {
  font-family: var(--serif); font-size: 18px; color: #fff1c4;
}
.sun-divider { width: 1px; background: var(--line); margin: 4px 8px; }

/* ---------- error & footer ---------- */
.card.error { border-color: rgba(184, 41, 13, 0.5); background: rgba(184, 41, 13, 0.08); color: #ffd6cc; }
.site-footer { text-align: center; padding: 32px 16px 48px; color: rgba(251,243,227,0.45); font-size: 12px; }

/* Global: ensure HTML `hidden` attribute always wins over flex/grid display rules. */
[hidden] { display: none !important; }

/* ---------- install hint ---------- */
.install-hint {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px 12px 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(246,193,74,0.10), rgba(246,193,74,0.04));
  color: rgba(251, 243, 227, 0.9);
  font-size: 13.5px;
  line-height: 1.4;
}
.install-hint span { flex: 1; }
.install-hint strong { color: #fff1c4; font-weight: 600; }
button.ghost {
  appearance: none;
  border: 1px solid rgba(246, 193, 74, 0.45);
  background: rgba(246, 193, 74, 0.08);
  color: #fff1c4;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 10px;
  cursor: pointer;
  letter-spacing: 0.05em;
  transition: background 0.15s, border-color 0.15s;
}
button.ghost:hover { background: rgba(246, 193, 74, 0.16); }
button.ghost.subtle {
  border-color: rgba(251, 243, 227, 0.18);
  background: transparent;
  color: rgba(251, 243, 227, 0.6);
  padding: 6px 10px;
  font-size: 18px;
  line-height: 1;
}
button.ghost.subtle:hover { color: #fff1c4; }

/* ---------- responsive ---------- */
@media (max-width: 720px) {
  .lookup-card form { grid-template-columns: 1fr; }
  .muhurta-grid { grid-template-columns: 1fr; }
  .brand-text h1 { font-size: 28px; }
  .sun-strip { flex-wrap: wrap; gap: 10px; }
  .sun-divider { display: none; }
  .sun-stat { flex: 1 1 45%; }
}


/* ---------- auth nav + nudge + auth pages ---------- */
.site-header {
  position: relative;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
}
.account-bar {
  position: absolute;
  top: 24px;
  right: 24px;
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 13px;
}
.account-bar a, .account-bar button.linkish {
  color: var(--paper);
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(251,243,227,0.04);
  cursor: pointer;
  font: inherit;
  transition: background 0.15s ease, transform 0.15s ease;
}
.account-bar a:hover, .account-bar button.linkish:hover {
  background: rgba(246,193,74,0.12);
  transform: translateY(-1px);
}
.account-bar .who {
  color: rgba(251,243,227,0.7);
  padding: 0 6px;
  font-size: 12px;
}
@media (max-width: 640px) {
  .account-bar { position: static; margin-top: 14px; justify-content: center; }
}

.signup-nudge {
  margin: 18px 0 8px;
  padding: 16px 20px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(246,193,74,0.10), rgba(251,243,227,0.04));
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}
.signup-nudge strong { display: block; font-family: var(--serif); font-size: 18px; color: #fff1c4; }
.signup-nudge span { color: rgba(251,243,227,0.75); font-size: 13px; }
.nudge-actions { display: flex; gap: 10px; }
.primary.small, .ghost.small { padding: 10px 16px; font-size: 13px; }
.ghost {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(251,243,227,0.04);
  color: var(--paper);
  text-decoration: none;
  cursor: pointer;
  font: inherit;
}
.ghost:hover { background: rgba(246,193,74,0.10); }

/* Auth pages */
.auth-shell {
  max-width: 460px;
  margin: 24px auto;
  padding: 28px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(42,25,11,0.85), rgba(28,17,9,0.85));
  box-shadow: var(--shadow-card);
}
.auth-shell h2 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 28px;
  margin: 0 0 6px;
  color: #fff1c4;
}
.auth-shell .sub { color: rgba(251,243,227,0.7); margin-bottom: 18px; font-size: 14px; }
.auth-shell label { display: block; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(251,243,227,0.6); margin: 14px 0 6px; }
.auth-shell input, .auth-shell select {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(251,243,227,0.06);
  color: var(--paper);
  font: inherit;
  font-size: 15px;
}
.auth-shell input:focus { outline: 2px solid var(--gold); outline-offset: 1px; }
.auth-shell button.primary { width: 100%; margin-top: 18px; }
.auth-shell .swap { margin-top: 14px; font-size: 13px; color: rgba(251,243,227,0.65); text-align: center; }
.auth-shell .swap a { color: var(--gold-bright); text-decoration: none; }
.auth-shell .err {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(184,41,13,0.18);
  border: 1px solid rgba(184,41,13,0.4);
  color: #ffd9c8;
  font-size: 13px;
}

/* Settings page */
.settings-grid { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 640px) {
  .settings-grid { grid-template-columns: 1fr 1fr; }
  .settings-grid .full { grid-column: 1 / -1; }
}
.send-time-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(251,243,227,0.04);
  color: var(--paper);
  cursor: pointer;
  font-size: 13px;
}
.chip.on { background: linear-gradient(180deg, rgba(246,193,74,0.30), rgba(204,79,16,0.20)); border-color: var(--gold); color: #fff1c4; font-weight: 600; }


/* ---------- kundali ---------- */
.card-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.75rem;
  margin-top: 0.75rem;
}
.card-row .card {
  background: rgba(251, 243, 227, 0.04);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.9rem 1rem;
}
.card-row .card-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold);
  margin-bottom: 0.25rem;
}
.card-row .card-value {
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--paper);
  line-height: 1.1;
}
.card-row .card-meta {
  font-size: 0.85rem;
  color: var(--paper);
  opacity: 0.75;
  margin-top: 0.25rem;
}

table.kundali-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
table.kundali-table th, table.kundali-table td {
  border-bottom: 1px solid var(--line);
  padding: 0.4rem 0.6rem;
  text-align: left;
}
table.kundali-table th {
  color: var(--gold);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
}

button.ghost {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--paper);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  cursor: pointer;
  font: inherit;
}
button.ghost:hover { background: rgba(251,243,227,0.06); }


/* ---------- today reading banner ---------- */
.today-reading {
  margin-top: 1rem;
  background: linear-gradient(135deg, rgba(217, 155, 43, 0.16), rgba(184, 41, 13, 0.10));
  border: 1px solid rgba(246, 193, 74, 0.45);
  position: relative;
  overflow: hidden;
}
.today-reading::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(circle at 110% -20%, rgba(246, 193, 74, 0.22), transparent 55%);
  pointer-events: none;
}
.today-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.6rem;
}
.today-header h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.7rem;
  color: var(--gold-bright);
  font-weight: 600;
}
.today-meta {
  margin: 0.15rem 0 0;
  color: var(--paper);
  opacity: 0.7;
  font-size: 0.85rem;
}
.today-content {
  white-space: pre-line;
  line-height: 1.65;
  color: var(--paper);
  font-size: 1rem;
}
.today-content p { margin: 0 0 0.85rem; }
.today-cta {
  margin: 0.5rem 0 0;
  font-size: 0.95rem;
}
.today-cta a {
  color: var(--gold-bright);
  text-decoration: underline;
}
.today-loading {
  display: inline-block;
  font-style: italic;
  opacity: 0.75;
}

button.ghost.small {
  font-size: 0.8rem;
  padding: 0.35rem 0.7rem;
}


/* ========== Muhurta Finder (wizard results list) ========== */
.muhurta-list {
  list-style: none;
  padding: 0;
  margin: 1.2rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.muhurta-card {
  display: flex;
  gap: 1rem;
  background: rgba(251, 243, 227, 0.04);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.95rem 1.05rem;
}
.muhurta-rank {
  font-family: var(--serif);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--gold-bright);
  min-width: 2.2rem;
  text-align: center;
  line-height: 1;
  padding-top: 0.15rem;
}
.muhurta-body { flex: 1; min-width: 0; }
.muhurta-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.9rem;
  justify-content: space-between;
  margin-bottom: 0.25rem;
}
.muhurta-when {
  font-weight: 600;
  font-size: 1.02rem;
  color: #fbe7c0;
}
.muhurta-tag {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(246, 193, 74, 0.3);
  background: rgba(246, 193, 74, 0.08);
  color: #f0d8a8;
  white-space: nowrap;
}
.score-excellent { color: #ffe39a; border-color: rgba(246, 193, 74, 0.55); background: rgba(246, 193, 74, 0.18); }
.score-verygood  { color: #f5d28e; }
.score-good      { color: #d8c890; }
.score-mild      { color: #b9ad8b; opacity: 0.85; }
.muhurta-meta {
  font-size: 0.82rem;
  color: rgba(251, 243, 227, 0.6);
  margin-bottom: 0.45rem;
}
.muhurta-positives, .muhurta-negatives {
  list-style: none;
  padding: 0;
  margin: 0.25rem 0 0;
  font-size: 0.88rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.05rem 0.9rem;
}
.muhurta-positives li { color: #cfe6c5; }
.muhurta-negatives li { color: #e8b8a8; }
.muhurta-empty {
  background: rgba(251, 243, 227, 0.03);
  border: 1px dashed var(--line);
  border-radius: 12px;
  padding: 1rem;
  text-align: center;
  color: rgba(251, 243, 227, 0.6);
}
@media (max-width: 600px) {
  .muhurta-positives, .muhurta-negatives { grid-template-columns: 1fr; }
  .muhurta-rank { font-size: 1.5rem; min-width: 1.8rem; }
}


/* ========== AI Vastu page ========== */
.vastu-scope {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.scope-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 1.05rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(251, 243, 227, 0.04);
  cursor: pointer;
  font-size: 0.92rem;
  user-select: none;
}
.scope-pill input { accent-color: var(--gold-bright); }
.scope-pill:has(input:checked) {
  background: rgba(246, 193, 74, 0.14);
  border-color: rgba(246, 193, 74, 0.5);
  color: #fbe7c0;
}

.vastu-input-wrap { position: relative; }
.vastu-input-wrap textarea {
  width: 100%;
  padding: 14px 14px 56px 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(251, 243, 227, 0.06);
  color: var(--paper);
  font: inherit;
  font-size: 15px;
  line-height: 1.5;
  resize: vertical;
  min-height: 180px;
}
.vastu-input-wrap textarea:focus {
  outline: 2px solid var(--gold);
  outline-offset: 1px;
}
.mic-btn {
  position: absolute;
  right: 10px;
  bottom: 10px;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(246, 193, 74, 0.4);
  background: rgba(28, 17, 9, 0.85);
  color: #fbe7c0;
  cursor: pointer;
  font: inherit;
  font-size: 0.82rem;
}
.mic-btn:hover:not(:disabled) {
  background: rgba(246, 193, 74, 0.18);
}
.mic-btn:disabled, .mic-btn.mic-unsupported {
  opacity: 0.5;
  cursor: not-allowed;
}
.mic-btn .mic-icon {
  display: inline-block;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: #f6c14a;
}
.mic-btn.recording {
  background: rgba(184, 41, 13, 0.25);
  border-color: rgba(255, 130, 90, 0.55);
  color: #ffd9c8;
}
.mic-btn.recording .mic-icon {
  background: #ff6a4a;
  animation: micpulse 1.1s ease-in-out infinite;
}
@keyframes micpulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.5); opacity: 0.4; }
}

.vastu-list {
  list-style: none;
  padding: 0;
  margin: 1.2rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.vastu-card {
  display: flex;
  gap: 1rem;
  background: rgba(251, 243, 227, 0.04);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.95rem 1.05rem;
}
.vastu-rank {
  font-family: var(--serif);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--gold-bright);
  min-width: 2.2rem;
  text-align: center;
  line-height: 1;
  padding-top: 0.15rem;
}
.vastu-body { flex: 1; min-width: 0; }
.vastu-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.9rem;
  justify-content: space-between;
  margin-bottom: 0.4rem;
}
.vastu-area {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.15rem;
  color: #fbe7c0;
}
.vastu-impact {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  padding: 0.18rem 0.6rem;
  border-radius: 999px;
  border: 1px solid rgba(246, 193, 74, 0.3);
  background: rgba(246, 193, 74, 0.08);
  color: #f0d8a8;
  white-space: nowrap;
}
.impact-high {
  color: #ffe39a;
  border-color: rgba(246, 193, 74, 0.6);
  background: rgba(246, 193, 74, 0.22);
}
.impact-medium { color: #f5d28e; }
.impact-low { color: #b9ad8b; opacity: 0.85; }

.vastu-issue, .vastu-rec, .vastu-reason {
  margin: 0.25rem 0;
  font-size: 0.93rem;
  line-height: 1.45;
  color: rgba(251, 243, 227, 0.86);
}
.vastu-issue strong, .vastu-rec strong, .vastu-reason strong {
  color: #fbe7c0;
  font-weight: 600;
}
.vastu-empty {
  background: rgba(251, 243, 227, 0.03);
  border: 1px dashed var(--line);
  border-radius: 12px;
  padding: 1rem;
  text-align: center;
  color: rgba(251, 243, 227, 0.6);
}

/* Home-page CTA tile (used for Muhurta + Vastu entry points) */
.feature-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: linear-gradient(180deg, rgba(42,25,11,0.85), rgba(28,17,9,0.85));
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.1rem 1.25rem;
  margin-top: 1.1rem;
}
.feature-cta .feature-cta-text strong {
  font-family: var(--serif);
  font-size: 1.15rem;
  color: #fbe7c0;
  display: block;
  margin-bottom: 0.18rem;
}
.feature-cta .feature-cta-text span {
  color: rgba(251, 243, 227, 0.7);
  font-size: 0.9rem;
}
.feature-cta a.primary, .feature-cta a.ghost {
  flex-shrink: 0;
  white-space: nowrap;
}
@media (max-width: 540px) {
  .feature-cta { flex-direction: column; align-items: stretch; text-align: left; }
}
