@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@500;600;700&family=Noto+Sans+Devanagari:wght@400;500;600;700&family=Plus+Jakarta+Sans:wght@400;500;600;700&family=Tiro+Devanagari+Hindi&display=swap');
:root {
  --bg-deep: #faf8f5;
  --bg-card: #ffffff;
  --bg-elevated: #f3efe6;
  --gold-primary: #b88917;
  --gold-light: #966b0a;
  --gold-btn-light: #edd078;
  --gold-dim: rgba(184, 137, 23, 0.25);
  --text-main: #1c1826;
  --text-muted: #5c566b;
  --border-subtle: rgba(184, 137, 23, 0.22);
  --shadow-soft: 0 8px 24px rgba(28, 24, 38, 0.06);
  --radius: 14px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}


body.landing-body {
  font-family: 'Plus Jakarta Sans', 'Noto Sans Devanagari', sans-serif;
  background-color: var(--bg-deep);
  background-image:
    radial-gradient(circle at 15% 15%, rgba(212, 175, 55, 0.12) 0%, transparent 45%),
    radial-gradient(circle at 85% 80%, rgba(230, 126, 34, 0.08) 0%, transparent 45%);
  color: var(--text-main);
  line-height: 1.75;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body.landing-body h1,
body.landing-body h2,
body.landing-body h3,
body.landing-body .brand-title {
 font-family: 'Cinzel', 'Tiro Devanagari Hindi', serif;
  letter-spacing: 0.03em;
}

body.landing-body a {
  color: inherit;
  text-decoration: none;
}

.landing-container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.03);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-btn-light), var(--gold-primary));
  display: grid;
  place-items: center;
  color: #1c1826;
  font-weight: 700;
  font-size: 1.2rem;
}

.brand-title {
  font-size: 1.45rem;
  font-weight: 700;
  background: linear-gradient(90deg, var(--gold-light), var(--gold-primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 22px;
  align-items: center;
}

.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 8px 4px;
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--gold-light);
  font-weight: 600;
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--gold-primary);
}

.nav-login-btn {
  padding: 8px 16px !important;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--gold-btn-light), var(--gold-primary));
  color: #1c1826 !important;
  font-weight: 600 !important;
}

.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border-subtle);
  color: var(--gold-light);
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 1.2rem;
  cursor: pointer;
}

body.landing-body main {
  flex: 1;
}

.hero {
  padding: 78px 0 64px;
  text-align: center;
}

.badge {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 999px;
  background: rgba(184, 137, 23, 0.12);
  border: 1px solid var(--gold-dim);
  color: var(--gold-light);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.hero h1 {
  font-size: clamp(2.1rem, 4.5vw, 3.4rem);
  line-height: 1.2;
  margin-bottom: 18px;
  color: var(--text-main);
}

.hero h1 span {
  color: var(--gold-primary);
}

.hero p {
  max-width: 680px;
  margin: 0 auto 32px;
  color: var(--text-muted);
  font-size: 1.06rem;
}

.btn-group {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-gold {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 26px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  background: linear-gradient(135deg, var(--gold-btn-light), var(--gold-primary));
  color: #1c1826;
  box-shadow: 0 4px 14px rgba(184, 137, 23, 0.25);
}

.btn-gold-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  background: #ffffff;
  color: var(--gold-light);
  border: 1px solid var(--gold-primary);
}

.section {
  padding: 56px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 40px;
}

.section-header h2 {
  font-size: 2rem;
  color: var(--gold-light);
  margin-bottom: 10px;
}

.section-header p {
  color: var(--text-muted);
  max-width: 620px;
  margin: 0 auto;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-soft);
}

.card-icon {
  font-size: 1.8rem;
  margin-bottom: 14px;
}

.card h3 {
  font-size: 1.25rem;
  color: var(--text-main);
  margin-bottom: 10px;
}

.card p {
  color: var(--text-muted);
  font-size: 0.94rem;
}

.kundli-box {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 32px;
  max-width: 820px;
  margin: 0 auto;
  box-shadow: var(--shadow-soft);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 18px;
  margin-bottom: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.form-group label {
  font-size: 0.86rem;
  color: var(--gold-light);
  font-weight: 600;
}

.form-group input,
.form-group textarea,
.form-group select {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: 9px;
  padding: 12px 14px;
  color: var(--text-main);
  font-family: inherit;
  font-size: 0.95rem;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--gold-primary);
  background: #ffffff;
}

.result-panel {
  display: none;
  margin-top: 24px;
  padding: 22px;
  border-radius: 12px;
  background: rgba(184, 137, 23, 0.08);
  border: 1px solid var(--gold-primary);
}

.result-panel.show {
  display: block;
}

.result-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px;
  margin-top: 12px;
}

.result-item {
  background: #ffffff;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid var(--border-subtle);
}

.result-item span {
  display: block;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.result-item strong {
  color: var(--gold-light);
  font-size: 1.02rem;
}

.page-banner {
  padding: 54px 0 36px;
  border-bottom: 1px solid var(--border-subtle);
  text-align: center;
  background: linear-gradient(180deg, rgba(184, 137, 23, 0.06) 0%, transparent 100%);
}

.page-banner h1 {
  font-size: 2.3rem;
  color: var(--gold-light);
  margin-bottom: 10px;
}

.page-banner p {
  color: var(--text-muted);
}

.content-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 34px;
  margin: 40px auto;
  max-width: 900px;
  box-shadow: var(--shadow-soft);
}

.content-card h2 {
  color: var(--gold-light);
  font-size: 1.35rem;
  margin: 24px 0 10px;
}

.content-card h2:first-child {
  margin-top: 0;
}

.content-card p,
.content-card li {
  color: var(--text-muted);
  margin-bottom: 12px;
}

.content-card ul {
  padding-left: 20px;
  margin-bottom: 14px;
}

.alert-success {
  background: rgba(22, 163, 74, 0.1);
  border: 1px solid rgba(22, 163, 74, 0.35);
  color: #15803d;
  padding: 14px 18px;
  border-radius: 10px;
  margin-bottom: 20px;
}

.site-footer {
  background: #f1ede4;
  border-top: 1px solid var(--border-subtle);
  padding: 40px 0 28px;
  margin-top: 48px;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(28, 24, 38, 0.08);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.92rem;
}

.footer-links a:hover {
  color: var(--gold-light);
}

.footer-bottom {
  padding-top: 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.owner-credit {
  color: var(--gold-light);
  font-weight: 600;
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }
  .nav-links {
    display: none;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--bg-card);
    flex-direction: column;
    padding: 20px;
    border-bottom: 1px solid var(--border-subtle);
    gap: 14px;
  }
  .nav-links.open {
    display: flex;
  }
}

/* Clean single-row header layout & right-corner wallet + dashboard controls */
.nav-main {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 18px;
  align-items: center;
  margin: 0;
  padding: 0;
}

.nav-links li {
  white-space: nowrap;
}

.nav-dash-link {
  color: var(--gold-light) !important;
  font-weight: 600 !important;
}

.landing-user-controls {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  padding-left: 8px;
  border-left: 1px solid var(--border-subtle);
}

.landing-balance-pill {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-end;
  padding: 4px 10px;
  border-radius: 9px;
  border: 1px solid var(--gold-dim);
  background: rgba(184, 137, 23, 0.1);
  line-height: 1.15;
  white-space: nowrap;
}

.landing-balance-pill span {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.landing-balance-pill strong {
  font-size: 12.5px;
  color: var(--gold-light);
}

.landing-topup-btn {
  padding: 7px 11px !important;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--gold-btn-light), var(--gold-primary));
  color: #1c1826 !important;
  font-weight: 700 !important;
  font-size: 12px !important;
  white-space: nowrap;
}

.landing-user-menu {
  position: relative;
}

.landing-avatar-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-btn-light), var(--gold-primary));
  color: #1c1826;
  font-weight: 700;
  font-size: 12px;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.landing-user-dropdown {
  display: none;
  position: absolute;
  right: 0;
  top: 42px;
  width: 215px;
  background: var(--bg-card);
  border: 1px solid var(--gold-dim);
  border-radius: 12px;
  box-shadow: 0 12px 28px rgba(28, 24, 38, 0.14);
  padding: 6px;
  z-index: 200;
}

.landing-user-dropdown.open {
  display: block;
}

.landing-dropdown-head {
  padding: 8px 10px;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 4px;
}

.landing-dropdown-head .d-name {
  font-weight: 600;
  font-size: 13px;
  color: var(--text-main);
}

.landing-dropdown-head .d-sub {
  font-size: 11px;
  color: var(--gold-light);
  font-weight: 600;
}

.landing-dropdown-item {
  display: block;
  padding: 7px 10px;
  border-radius: 8px;
  font-size: 12.5px;
  color: var(--text-muted) !important;
}

.landing-dropdown-item:hover {
  background: var(--bg-elevated);
  color: var(--gold-light) !important;
}

.landing-dropdown-item.danger {
  color: #dc2626 !important;
}

.req-star {
  color: #ef4444;
  font-weight: 700;
  margin-left: 2px;
}

.field-hint {
  font-size: 11.5px;
  margin-top: 4px;
  display: block;
}

.field-hint.ok {
  color: #16a34a;
}

.field-hint.err {
  color: #dc2626;
}

.landing-cart-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 12px;
  border-radius: 8px;
  border: 1px solid var(--gold-dim);
  background: rgba(184, 137, 23, 0.1);
  color: var(--gold-light);
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.landing-cart-btn:hover {
  background: rgba(184, 137, 23, 0.2);
  border-color: var(--gold-primary);
}

@media (max-width: 900px) {
  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .nav-main {
    display: none;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--bg-card);
    flex-direction: column;
    align-items: stretch;
    padding: 18px 20px;
    border-bottom: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-soft);
    gap: 14px;
    z-index: 150;
  }
  .nav-main.open {
    display: flex;
  }
  .nav-links {
    display: flex !important;
    position: static !important;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .landing-user-controls {
    border-left: none;
    padding-left: 0;
    padding-top: 10px;
    border-top: 1px solid var(--border-subtle);
    justify-content: space-between;
  }
}