:root {
  --bg: #06101b;
  --bg-soft: #0d1f34;
  --bg-card: rgba(10, 24, 41, 0.84);
  --bg-card-strong: rgba(12, 30, 51, 0.95);
  --gold: #f4cd74;
  --gold-strong: #ffdd85;
  --accent: #77c7ff;
  --text: #f5f7fb;
  --muted: #bcc8da;
  --danger: #ff9b8b;
  --success: #8cf0c4;
  --border: rgba(244, 205, 116, 0.18);
  --shadow: 0 24px 50px rgba(0, 0, 0, 0.35);
  --radius-xl: 34px;
  --radius-lg: 28px;
  --radius-md: 22px;
  --radius-sm: 16px;
  --content-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(244, 205, 116, 0.12), transparent 28%),
    radial-gradient(circle at top right, rgba(119, 199, 255, 0.12), transparent 20%),
    linear-gradient(180deg, #040b14 0%, #091626 44%, #102544 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 68px 68px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.7), transparent 92%);
}

a {
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(18px);
  background: rgba(6, 16, 27, 0.8);
  border-bottom: 1px solid rgba(244, 205, 116, 0.12);
}

.nav-shell {
  width: min(var(--content-width), calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  position: relative;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-mark {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(244, 205, 116, 0.18), 0 0 28px rgba(244, 205, 116, 0.15);
}

.brand-copy strong {
  display: block;
  color: var(--gold-strong);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.84rem;
}

.brand-copy span {
  display: block;
  color: var(--muted);
  font-size: 0.9rem;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 28px;
  height: 3px;
  margin: 5px 0;
  border-radius: 999px;
  background: var(--gold);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

[data-auth-slot] {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links > a,
.nav-dropdown-trigger,
[data-auth-slot] a {
  text-decoration: none;
  color: var(--muted);
  padding: 10px 14px;
  border-radius: 999px;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.nav-links > a:hover,
.nav-links > a.active,
.nav-dropdown-trigger:hover,
.nav-dropdown.open .nav-dropdown-trigger,
[data-auth-slot] a:hover {
  background: rgba(244, 205, 116, 0.1);
  color: var(--gold-strong);
  transform: translateY(-1px);
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  font: inherit;
  cursor: pointer;
}

.nav-dropdown-trigger::after {
  content: "";
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-1px);
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 280px;
  display: none;
  flex-direction: column;
  padding: 12px;
  gap: 6px;
  border-radius: 20px;
  background: rgba(8, 19, 33, 0.98);
  border: 1px solid rgba(244, 205, 116, 0.18);
  box-shadow: var(--shadow);
}

.nav-dropdown.open .nav-dropdown-menu {
  display: flex;
}

.nav-dropdown-menu a {
  color: var(--muted);
  text-decoration: none;
  padding: 12px 14px;
  border-radius: 14px;
  transition: background 0.2s ease, color 0.2s ease;
}

.nav-dropdown-menu a:hover,
.nav-dropdown-menu a.active {
  background: rgba(244, 205, 116, 0.1);
  color: var(--gold-strong);
}

.page-shell {
  width: min(var(--content-width), calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0 64px;
}

.hero-panel,
.content-panel,
.ask-panel,
.result-card,
.mini-card,
.cta-strip,
.service-card,
.directory-item,
.form-card {
  border: 1px solid var(--border);
  background: var(--bg-card);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.hero-panel {
  border-radius: var(--radius-xl);
  overflow: hidden;
  position: relative;
}

.hero-panel::before {
  content: "";
  position: absolute;
  width: 360px;
  height: 360px;
  right: -110px;
  top: -160px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(244, 205, 116, 0.24), transparent 70%);
  filter: blur(10px);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
  gap: 18px;
  align-items: center;
  padding: 34px;
}

[hidden] {
  display: none !important;
}

.muted-copy {
  color: var(--muted);
}

.badge-line {
  display: flex;
  gap: 10px;
  margin: 12px 0 18px;
}

.role-badge {
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(244, 205, 116, 0.12);
  color: var(--gold-strong);
  border: 1px solid rgba(244, 205, 116, 0.28);
  font-weight: 600;
}

.checkbox-row {
  display: flex;
  align-items: center;
}

.checkbox-row label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px;
}

.stat-card {
  padding: 18px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--bg-card);
  box-shadow: var(--shadow);
}

.stat-card span {
  display: block;
  color: var(--muted);
  font-size: 0.9rem;
}

.stat-card strong {
  display: block;
  margin-top: 10px;
  color: var(--gold-strong);
  font-size: 2rem;
}

.listing-card {
  display: grid;
  gap: 6px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(244, 205, 116, 0.12);
}

.listing-card:last-child {
  border-bottom: none;
}

.listing-card strong {
  color: var(--text);
}

.listing-card span,
.listing-card small {
  color: var(--muted);
}

.listing-card-wide {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

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

.compact-list {
  display: grid;
  gap: 8px;
  padding-left: 18px;
  color: var(--muted);
}

.compact-list li {
  display: grid;
  gap: 4px;
}

.inline-order-form {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.message-box.compact {
  min-height: 0;
  margin-top: 0;
}

.btn-small {
  padding: 10px 14px;
  font-size: 0.92rem;
}

.btn-danger {
  background: rgba(255, 86, 76, 0.12);
  border: 1px solid rgba(255, 86, 76, 0.3);
  color: #ffc2ba;
}

.hero-ai {
  background:
    linear-gradient(115deg, rgba(4, 11, 20, 0.88), rgba(7, 20, 34, 0.7)),
    url("/assets/krishna.png") center right/cover no-repeat;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.05);
  color: var(--accent);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-copy h1 {
  margin: 16px 0 14px;
  font-size: clamp(2.5rem, 5vw, 4.9rem);
  line-height: 0.95;
  color: var(--gold-strong);
}

.hero-copy p,
.body-copy,
.field-help,
.disclaimer {
  color: var(--muted);
  line-height: 1.8;
  font-size: 1.02rem;
}

.hero-actions,
.chip-row,
.stat-row,
.button-row,
.theme-list,
.directory-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 999px;
  padding: 14px 22px;
  text-decoration: none;
  border: none;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.24);
}

.btn-primary {
  background: linear-gradient(135deg, #f4cd74, #ffea9f);
  color: #08111d;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-link {
  background: rgba(119, 199, 255, 0.08);
  color: var(--accent);
  border: 1px solid rgba(119, 199, 255, 0.18);
  padding: 10px 14px;
}

.hero-figure {
  position: relative;
  min-height: 380px;
  display: flex;
  align-items: end;
  justify-content: center;
}

.hero-figure::before {
  content: "";
  position: absolute;
  width: 320px;
  height: 320px;
  bottom: 20px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(119, 199, 255, 0.35), transparent 68%);
  filter: blur(12px);
}

.hero-figure img {
  position: relative;
  z-index: 1;
  max-height: 480px;
  object-fit: contain;
}

.section-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin: 38px 0 16px;
}

.section-header h1,
.section-header h2,
.panel-title,
.service-card h3,
.directory-item h3,
.mini-card h3,
.result-card h3 {
  margin: 0 0 8px;
  color: var(--gold-strong);
}

.ask-layout,
.content-grid,
.results-grid,
.mini-grid,
.services-grid,
.directory-grid,
.two-column-grid,
.form-grid {
  display: grid;
  gap: 18px;
}

.ask-layout,
.content-grid,
.two-column-grid {
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.75fr);
}

.services-grid,
.mini-grid,
.directory-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.anchor-grid,
.directory-stack,
.service-subnav {
  display: grid;
  gap: 18px;
}

.form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ask-panel,
.content-panel,
.cta-strip,
.service-card,
.directory-item,
.form-card {
  border-radius: var(--radius-lg);
  padding: 28px;
}

.textarea,
.input,
.select {
  width: 100%;
  border-radius: 16px;
  padding: 14px 16px;
  border: 1px solid rgba(244, 205, 116, 0.18);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font: inherit;
  outline: none;
}

.textarea {
  min-height: 170px;
  resize: vertical;
  line-height: 1.7;
}

.textarea:focus,
.input:focus,
.select:focus {
  border-color: rgba(244, 205, 116, 0.42);
  box-shadow: 0 0 0 4px rgba(244, 205, 116, 0.08);
}

.field-group {
  display: grid;
  gap: 8px;
}

.field-group label {
  color: var(--gold-strong);
  font-size: 0.92rem;
}

.field-span-2 {
  grid-column: span 2;
}

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.checkbox-row input {
  margin-top: 5px;
}

.helper-text {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.94rem;
}

.service-subnav {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  margin-top: 18px;
}

.subnav-link {
  display: block;
  padding: 16px 18px;
  border-radius: 18px;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.subnav-link:hover {
  transform: translateY(-2px);
  border-color: rgba(244, 205, 116, 0.28);
  background: rgba(244, 205, 116, 0.08);
}

.subnav-link strong {
  display: block;
  color: var(--gold-strong);
  margin-bottom: 4px;
}

.chip {
  background: rgba(119, 199, 255, 0.08);
  color: var(--text);
  border: 1px solid rgba(119, 199, 255, 0.18);
  border-radius: 999px;
  padding: 10px 14px;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.chip:hover {
  transform: translateY(-1px);
  border-color: rgba(244, 205, 116, 0.32);
  background: rgba(244, 205, 116, 0.08);
}

.status-card {
  border-radius: 22px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.status-card strong {
  color: var(--gold-strong);
  display: block;
  margin-bottom: 8px;
}

.theme-pill,
.tag-pill,
.service-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(244, 205, 116, 0.1);
  color: var(--gold-strong);
  font-size: 0.8rem;
  text-transform: capitalize;
}

.anchor-grid {
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
}

.directory-stack {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.service-section {
  scroll-margin-top: 110px;
}

.service-meta {
  color: var(--accent);
  font-size: 0.86rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

.inline-note {
  color: var(--muted);
  font-size: 0.92rem;
}

.result-card,
.mini-card {
  border-radius: var(--radius-md);
  padding: 22px;
}

.verse-meta {
  color: var(--accent);
  font-size: 0.88rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.sloka {
  color: var(--gold);
  line-height: 1.8;
  margin-bottom: 14px;
}

.empty-state {
  text-align: center;
  padding: 40px 24px;
  color: var(--muted);
}

.loading {
  display: none;
  align-items: center;
  gap: 12px;
  color: var(--accent);
  margin-top: 14px;
}

.loading.active {
  display: inline-flex;
}

.spinner {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid rgba(119, 199, 255, 0.22);
  border-top-color: var(--accent);
  animation: spin 0.9s linear infinite;
}

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

.stat-card {
  min-width: 160px;
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.stat-card strong {
  display: block;
  color: var(--gold-strong);
  font-size: 1.25rem;
}

.list-clean {
  margin: 12px 0 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.8;
}

.audio-player {
  width: 100%;
  margin-top: 18px;
}

.contact-frame {
  width: 100%;
  min-height: 900px;
  border: 0;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.04);
}

.message-box {
  display: none;
  margin-top: 16px;
  padding: 16px;
  border-radius: 16px;
  font-weight: 600;
}

.message-box.success {
  display: block;
  background: rgba(140, 240, 196, 0.12);
  border: 1px solid rgba(140, 240, 196, 0.28);
  color: var(--success);
}

.message-box.error {
  display: block;
  background: rgba(255, 155, 139, 0.12);
  border: 1px solid rgba(255, 155, 139, 0.28);
  color: var(--danger);
}

.site-footer {
  width: min(var(--content-width), calc(100% - 32px));
  margin: 0 auto 30px;
  padding-top: 20px;
  border-top: 1px solid rgba(244, 205, 116, 0.12);
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

@media (max-width: 920px) {
  .nav-toggle {
    display: inline-block;
  }

  .nav-links {
    position: absolute;
    right: 0;
    top: calc(100% + 10px);
    width: min(360px, calc(100vw - 32px));
    padding: 16px;
    border-radius: 22px;
    background: rgba(9, 21, 35, 0.98);
    border: 1px solid rgba(244, 205, 116, 0.18);
    box-shadow: var(--shadow);
    display: none;
    flex-direction: column;
    align-items: stretch;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links > a,
  .nav-dropdown-trigger {
    justify-content: space-between;
  }

  .nav-dropdown-menu {
    position: static;
    margin-top: 8px;
    width: 100%;
  }

  .hero-grid,
  .ask-layout,
  .content-grid,
  .two-column-grid,
  .form-grid,
  .anchor-grid {
    grid-template-columns: 1fr;
  }

  .field-span-2 {
    grid-column: span 1;
  }
}

@media (max-width: 640px) {
  .page-shell {
    width: min(var(--content-width), calc(100% - 20px));
    padding: 22px 0 42px;
  }

  .hero-grid,
  .ask-panel,
  .content-panel,
  .cta-strip,
  .service-card,
  .directory-item,
  .form-card {
    padding: 22px;
  }

  .hero-copy h1 {
    font-size: 2.45rem;
  }

  .contact-frame {
    min-height: 1080px;
  }
}
