/* ============================================================
   JyotishGuru.in — Main Stylesheet
   Mystical Light Theme with Gold Accents
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cinzel+Decorative:wght@400;700&family=Cinzel:wght@400;600;700&family=Lato:wght@300;400;700&display=swap');

/* ── CSS Variables ─────────────────────────────────────────── */
:root {
  --bg-deepest:   #fdf8f0;
  --bg-dark:      #faf3e8;
  --bg-card:      #ffffff;
  --bg-card2:     #fff8ee;
  --border:       rgba(180,140,40,0.18);
  --border-glow:  rgba(180,140,40,0.45);
  --gold:         #b8860b;
  --gold-light:   #d4a017;
  --gold-dim:     #c8a84b;
  --saffron:      #e85d20;
  --violet:       #6a3fcb;
  --teal:         #0097a7;
  --text-primary: #2c1a06;
  --text-secondary:#6b4c1e;
  --text-muted:   #9e7a45;
  --green:        #2e7d32;
  --red:          #c62828;
  --shadow-gold:  0 0 20px rgba(180,140,40,0.18);
  --shadow-deep:  0 8px 32px rgba(180,140,40,0.10);
  --radius:       12px;
  --radius-lg:    20px;
  --font-display: 'Cinzel Decorative', serif;
  --font-heading: 'Cinzel', serif;
  --font-body:    'Lato', sans-serif;
  --transition:   0.3s ease;
}

/* ── Reset & Base ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  background-color: var(--bg-deepest);
  color: var(--text-primary);
  line-height: 1.7;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Warm light background */
body::before {
  content: '';
  position: fixed; inset: 0;
  background:
    radial-gradient(ellipse at 20% 10%, rgba(180,140,40,0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 80%, rgba(232,93,32,0.04) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 50%, rgba(253,248,240,0.95) 0%, var(--bg-deepest) 100%);
  pointer-events: none;
  z-index: 0;
}

/* ── Typography ────────────────────────────────────────────── */
h1, h2, h3 { font-family: var(--font-heading); color: var(--gold); letter-spacing: 0.05em; }
h4, h5, h6 { font-family: var(--font-body); color: var(--text-primary); }

a { color: var(--gold); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--gold-light); }

/* ── Layout ────────────────────────────────────────────────── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; position: relative; z-index: 1; }
.container-sm { max-width: 680px; margin: 0 auto; padding: 0 20px; }

/* ── Navigation ────────────────────────────────────────────── */
.navbar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(253,248,240,0.95);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding: 0 20px;
}
.navbar-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.navbar-brand {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--gold) !important;
  display: flex; align-items: center; gap: 10px;
}
.navbar-brand span { font-size: 1.5rem; }
.navbar-links { display: flex; align-items: center; gap: 8px; }
.navbar-links a {
  color: var(--text-secondary);
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 0.9rem;
  transition: all var(--transition);
}
.navbar-links a:hover, .navbar-links a.active {
  color: var(--gold);
  background: rgba(212,175,55,0.08);
}
.btn-nav-cta {
  background: linear-gradient(135deg, var(--gold), var(--saffron)) !important;
  color: #000 !important;
  font-weight: 700 !important;
  padding: 8px 20px !important;
  border-radius: 20px !important;
}
.hamburger {
  display: none;
  background: none; border: none;
  color: var(--gold); font-size: 1.5rem;
  cursor: pointer;
}

/* ── Hero Section ──────────────────────────────────────────── */
.hero {
  position: relative;
  padding: 100px 20px 80px;
  text-align: center;
  overflow: hidden;
}
.hero::before {
  content: '🕉';
  position: absolute; top: -20px; left: 50%;
  transform: translateX(-50%);
  font-size: 300px; opacity: 0.03;
  pointer-events: none; user-select: none;
}
.hero-tag {
  display: inline-block;
  background: rgba(212,175,55,0.1);
  border: 1px solid var(--border-glow);
  color: var(--gold);
  padding: 6px 18px;
  border-radius: 20px;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 24px;
  animation: pulse-border 2s infinite;
}
@keyframes pulse-border {
  0%, 100% { box-shadow: 0 0 0 0 rgba(212,175,55,0.3); }
  50% { box-shadow: 0 0 0 8px rgba(212,175,55,0); }
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.2;
  margin-bottom: 20px;
  background: linear-gradient(135deg, var(--gold-light), var(--gold), var(--saffron));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 40px;
}
.hero-symbols {
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  pointer-events: none; overflow: hidden;
}
.hero-symbols span {
  position: absolute;
  font-size: 1.5rem; opacity: 0.04;
  animation: float-symbol 8s ease-in-out infinite;
}
@keyframes float-symbol {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(10deg); }
}

/* ── Cards ─────────────────────────────────────────────────── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.card:hover {
  border-color: var(--border-glow);
  box-shadow: var(--shadow-gold);
  transform: translateY(-2px);
}
.card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0;
  transition: opacity var(--transition);
}
.card:hover::before { opacity: 1; }
.card-title {
  font-family: var(--font-heading);
  color: var(--gold);
  font-size: 1.1rem;
  margin-bottom: 12px;
  display: flex; align-items: center; gap: 10px;
}

/* ── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border: none; border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  letter-spacing: 0.03em;
}
.btn-primary {
  background: linear-gradient(135deg, var(--gold), #c49b0a);
  color: #000;
}
.btn-primary:hover {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  box-shadow: 0 4px 20px rgba(212,175,55,0.4);
  transform: translateY(-1px);
  color: #000;
}
.btn-saffron {
  background: linear-gradient(135deg, var(--saffron), #e05a29);
  color: #fff;
}
.btn-saffron:hover {
  box-shadow: 0 4px 20px rgba(255,107,53,0.4);
  transform: translateY(-1px);
}
.btn-outline {
  background: transparent;
  border: 1px solid var(--border-glow);
  color: var(--gold);
}
.btn-outline:hover {
  background: rgba(212,175,55,0.08);
}
.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border);
}
.btn-ghost:hover { color: var(--text-primary); border-color: var(--border-glow); }
.btn-lg { padding: 16px 40px; font-size: 1.05rem; border-radius: 10px; }
.btn-sm { padding: 8px 18px; font-size: 0.85rem; }
.btn-full { width: 100%; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }

/* ── Forms ──────────────────────────────────────────────────── */
.form-group { margin-bottom: 20px; }
.form-label {
  display: block;
  color: var(--gold);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.form-control {
  width: 100%;
  background: rgba(255,255,255,0.9);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 12px 16px;
  transition: all var(--transition);
  outline: none;
}
.form-control:focus {
  border-color: var(--gold);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(180,140,40,0.12);
}
.form-control::placeholder { color: var(--text-muted); }
select.form-control option { background: var(--bg-card); }
.form-hint { color: var(--text-muted); font-size: 0.8rem; margin-top: 6px; }
.form-error { color: var(--red); font-size: 0.85rem; margin-top: 6px; }

/* ── Alert / Toast ──────────────────────────────────────────── */
.alert {
  padding: 14px 18px;
  border-radius: var(--radius);
  margin-bottom: 16px;
  font-size: 0.9rem;
  display: flex; align-items: flex-start; gap: 10px;
}
.alert-error   { background: rgba(198,40,40,0.08); border: 1px solid rgba(198,40,40,0.3); color: #b71c1c; }
.alert-success { background: rgba(46,125,50,0.08); border: 1px solid rgba(46,125,50,0.3); color: #1b5e20; }
.alert-info    { background: rgba(180,140,40,0.08); border: 1px solid var(--border); color: var(--gold); }

.toast {
  position: fixed; bottom: 24px; right: 24px;
  background: var(--bg-card2);
  border: 1px solid var(--border-glow);
  color: var(--text-primary);
  padding: 14px 20px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-deep);
  z-index: 1000;
  max-width: 340px;
  transform: translateX(120%);
  transition: transform 0.4s ease;
}
.toast.show { transform: translateX(0); }

/* ── Chat UI ────────────────────────────────────────────────── */
.chat-wrapper {
  display: flex; flex-direction: column;
  height: calc(100vh - 64px);
  max-width: 860px;
  margin: 0 auto;
}
.chat-header {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  padding: 16px 24px;
  display: flex; align-items: center; gap: 14px;
}
.chat-avatar {
  width: 48px; height: 48px;
  background: linear-gradient(135deg, var(--gold-dim), var(--saffron));
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}
.chat-header-info h3 {
  font-size: 1rem;
  color: var(--gold);
  margin-bottom: 2px;
}
.chat-header-info p {
  font-size: 0.8rem;
  color: var(--green);
}
.chat-messages {
  flex: 1; overflow-y: auto;
  padding: 24px 20px;
  display: flex; flex-direction: column; gap: 16px;
  scroll-behavior: smooth;
}
.chat-messages::-webkit-scrollbar { width: 4px; }
.chat-messages::-webkit-scrollbar-track { background: transparent; }
.chat-messages::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }
.chat-bubble {
  max-width: 80%;
  padding: 14px 18px;
  border-radius: 18px;
  font-size: 0.95rem;
  line-height: 1.6;
  position: relative;
  word-wrap: break-word;
}
.chat-bubble.user {
  background: linear-gradient(135deg, rgba(212,175,55,0.15), rgba(212,175,55,0.08));
  border: 1px solid rgba(212,175,55,0.2);
  border-bottom-right-radius: 4px;
  align-self: flex-end;
  color: var(--text-primary);
}
.chat-bubble.ai {
  background: var(--bg-card2);
  border: 1px solid var(--border);
  border-bottom-left-radius: 4px;
  align-self: flex-start;
  color: var(--text-primary);
}
.chat-bubble.ai strong { color: var(--gold); }
.chat-bubble .bubble-time {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 8px;
  text-align: right;
}
.chat-bubble.ai::before {
  content: '🔮';
  position: absolute; top: -10px; left: 8px;
  font-size: 0.9rem;
}
.chat-typing {
  align-self: flex-start;
  background: var(--bg-card2);
  border: 1px solid var(--border);
  border-radius: 18px; border-bottom-left-radius: 4px;
  padding: 14px 18px;
  display: none;
}
.typing-dots span {
  display: inline-block;
  width: 8px; height: 8px;
  background: var(--gold);
  border-radius: 50%;
  margin: 0 2px;
  animation: typing-bounce 1s ease infinite;
}
.typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.typing-dots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes typing-bounce {
  0%, 80%, 100% { transform: translateY(0); opacity: 0.4; }
  40% { transform: translateY(-8px); opacity: 1; }
}
.chat-input-area {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  padding: 16px 20px;
}
.chat-quick-prompts {
  display: flex; gap: 8px; flex-wrap: wrap;
  margin-bottom: 12px;
}
.quick-prompt-btn {
  background: rgba(212,175,55,0.06);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}
.quick-prompt-btn:hover {
  border-color: var(--border-glow);
  color: var(--gold);
  background: rgba(212,175,55,0.1);
}
.chat-input-row {
  display: flex; gap: 10px; align-items: flex-end;
}
.chat-input {
  flex: 1;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 24px;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 12px 20px;
  resize: none;
  outline: none;
  max-height: 120px;
  transition: border-color var(--transition);
}
.chat-input:focus { border-color: var(--gold); }
.chat-send-btn {
  background: linear-gradient(135deg, var(--gold), var(--saffron));
  border: none;
  width: 48px; height: 48px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2rem;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--transition);
  flex-shrink: 0;
}
.chat-send-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 16px rgba(212,175,55,0.4);
}
.chat-limit-bar {
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.chat-limit-bar span { color: var(--gold); }

/* ── Kundli Chart ───────────────────────────────────────────── */
.kundli-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 2px solid var(--border-glow);
  border-radius: var(--radius);
  overflow: hidden;
  max-width: 400px;
  margin: 0 auto;
  aspect-ratio: 1;
}
.kundli-cell {
  border: 1px solid var(--border);
  padding: 8px;
  font-size: 0.7rem;
  color: var(--text-secondary);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
  background: var(--bg-card);
  min-height: 80px;
}
.kundli-cell.center { background: var(--bg-card2); }
.kundli-cell .planet-icon { font-size: 1.1rem; }
.kundli-cell .house-num { color: var(--gold-dim); font-size: 0.65rem; }
.kundli-cell .sign-name { color: var(--gold); font-weight: bold; }

/* ── Dashboard ──────────────────────────────────────────────── */
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}
.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex; align-items: center; gap: 20px;
  transition: all var(--transition);
}
.stat-card:hover { border-color: var(--border-glow); box-shadow: var(--shadow-gold); }
.stat-icon {
  font-size: 2.5rem;
  width: 64px; height: 64px;
  background: rgba(212,175,55,0.08);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.stat-info h3 { font-size: 1.8rem; color: var(--gold); font-family: var(--font-body); }
.stat-info p  { color: var(--text-muted); font-size: 0.85rem; }

/* ── Luck Meter ─────────────────────────────────────────────── */
.luck-meter { margin: 16px 0; }
.luck-meter-label {
  display: flex; justify-content: space-between;
  font-size: 0.85rem; color: var(--text-secondary);
  margin-bottom: 8px;
}
.luck-bar {
  height: 10px;
  background: rgba(180,140,40,0.12);
  border-radius: 5px;
  overflow: hidden;
}
.luck-bar-fill {
  height: 100%;
  border-radius: 5px;
  background: linear-gradient(90deg, var(--saffron), var(--gold), var(--gold-light));
  transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 8px rgba(212,175,55,0.4);
}

/* ── Horoscope Page ─────────────────────────────────────────── */
.zodiac-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 16px;
  margin: 32px 0;
}
.zodiac-card {
  background: var(--bg-card);
  border: 1.5px solid rgba(180,140,40,0.35);
  border-radius: var(--radius-lg);
  padding: 20px 16px;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition);
  box-shadow: 0 2px 8px rgba(180,140,40,0.08);
}
.zodiac-card:hover, .zodiac-card.active {
  border-color: var(--border-glow);
  box-shadow: var(--shadow-gold);
  background: var(--bg-card2);
}
.zodiac-card.active { border-color: var(--gold); }
.zodiac-symbol { font-size: 2.5rem; margin-bottom: 8px; }
.zodiac-name { color: var(--gold); font-family: var(--font-heading); font-size: 0.9rem; }
.zodiac-rashi { color: var(--text-muted); font-size: 0.75rem; }

/* ── Auth Pages ─────────────────────────────────────────────── */
.auth-page {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  padding: 40px 20px;
}
.auth-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  width: 100%;
  max-width: 480px;
  position: relative;
  overflow: hidden;
}
.auth-card::before {
  content: '🕉';
  position: absolute; top: -30px; right: -30px;
  font-size: 120px; opacity: 0.04;
  transform: rotate(15deg);
}
.auth-logo {
  text-align: center;
  margin-bottom: 32px;
}
.auth-logo h1 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  background: linear-gradient(135deg, var(--gold-light), var(--gold), var(--saffron));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.auth-logo p { color: var(--text-muted); font-size: 0.85rem; margin-top: 4px; }
.auth-divider {
  text-align: center; position: relative;
  color: var(--text-muted); font-size: 0.85rem;
  margin: 20px 0;
}
.auth-divider::before, .auth-divider::after {
  content: '';
  position: absolute; top: 50%;
  width: 40%; height: 1px;
  background: var(--border);
}
.auth-divider::before { left: 0; }
.auth-divider::after  { right: 0; }

/* ── Section Heading ────────────────────────────────────────── */
.section-heading {
  text-align: center;
  margin-bottom: 48px;
}
.section-heading h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 12px;
}
.section-heading p { color: var(--text-secondary); max-width: 540px; margin: 0 auto; }

/* ── Feature Grid ───────────────────────────────────────────── */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: all var(--transition);
}
.feature-card:hover {
  border-color: var(--border-glow);
  transform: translateY(-4px);
  box-shadow: var(--shadow-gold);
}
.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
  display: block;
}
.feature-card h3 { color: var(--gold); margin-bottom: 8px; font-size: 1.05rem; }
.feature-card p  { color: var(--text-secondary); font-size: 0.9rem; }

/* ── Badges / Pills ─────────────────────────────────────────── */
.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.badge-gold    { background: rgba(180,140,40,0.12); color: var(--gold); border: 1px solid rgba(180,140,40,0.3); }
.badge-free    { background: rgba(46,125,50,0.10); color: #2e7d32; }
.badge-premium { background: rgba(106,63,203,0.12); color: #6a3fcb; }

/* ── Page Header ────────────────────────────────────────────── */
.page-header {
  background: linear-gradient(135deg, var(--bg-card), var(--bg-dark));
  border-bottom: 1px solid var(--border);
  padding: 40px 20px;
  text-align: center;
}
.page-header h1 {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 2rem);
}
.page-header p { color: var(--text-secondary); margin-top: 8px; }

/* ── Utility ────────────────────────────────────────────────── */
.text-gold    { color: var(--gold); }
.text-muted   { color: var(--text-muted); }
.text-center  { text-align: center; }
.mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; } .mt-4 { margin-top: 32px; }
.mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; } .mb-4 { margin-bottom: 32px; }
.p-section { padding: 64px 0; }
.divider { border: none; border-top: 1px solid var(--border); margin: 24px 0; }
.loading-spinner {
  display: inline-block; width: 20px; height: 20px;
  border: 2px solid rgba(212,175,55,0.2);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Markdown in chat ───────────────────────────────────────── */
.ai-message p { margin-bottom: 10px; }
.ai-message strong { color: var(--gold); }
.ai-message em { color: var(--text-secondary); font-style: normal; }
.ai-message hr { border-color: var(--border); margin: 12px 0; }
.ai-message ul { padding-left: 20px; }
.ai-message li { margin-bottom: 6px; }

/* ── Mobile ─────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .navbar-links { display: none; position: absolute; top: 64px; left: 0; right: 0;
    background: rgba(253,248,240,0.99); padding: 16px; flex-direction: column; gap: 4px;
    border-bottom: 1px solid var(--border); }
  .navbar-links.open { display: flex; }
  .hamburger { display: block; }
  .hero { padding: 60px 20px 50px; }
  .auth-card { padding: 28px 24px; }
  .kundli-grid { max-width: 320px; }
  .kundli-cell { min-height: 60px; font-size: 0.6rem; padding: 4px; }
  .chat-bubble { max-width: 90%; }
  .zodiac-grid { grid-template-columns: repeat(3, 1fr); }
  .feature-grid { grid-template-columns: 1fr; }
  .dashboard-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .zodiac-grid { grid-template-columns: repeat(2, 1fr); }
  .chat-quick-prompts { display: none; }
}

/* ── Admin ──────────────────────────────────────────────────── */
.admin-sidebar {
  width: 240px; background: var(--bg-card);
  border-right: 1px solid var(--border);
  min-height: calc(100vh - 64px);
  padding: 24px 0;
  position: fixed; top: 64px; left: 0;
  overflow-y: auto;
}
.admin-sidebar a {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 24px;
  color: var(--text-secondary);
  font-size: 0.9rem;
  transition: all var(--transition);
  border-left: 3px solid transparent;
}
.admin-sidebar a:hover, .admin-sidebar a.active {
  color: var(--gold);
  background: rgba(212,175,55,0.06);
  border-left-color: var(--gold);
}
.admin-content { margin-left: 240px; padding: 32px; }
.admin-stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px; margin-bottom: 32px;
}
.admin-stat {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px;
  text-align: center;
}
.admin-stat .number { font-size: 2.5rem; color: var(--gold); font-weight: 700; }
.admin-stat .label  { color: var(--text-muted); font-size: 0.85rem; margin-top: 4px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--border); font-size: 0.9rem; }
th { color: var(--gold); font-family: var(--font-heading); font-weight: 600; background: var(--bg-card2); }
tr:hover td { background: rgba(212,175,55,0.02); }
@media (max-width: 768px) {
  .admin-sidebar { display: none; }
  .admin-content { margin-left: 0; padding: 16px; }
}

/* ── Chat Page ──────────────────────────────────────────────── */
.chat-wrapper {
  max-width: 860px;
  margin: 0 auto;
  padding: 24px 20px 40px;
  display: flex;
  flex-direction: column;
  height: calc(100vh - 64px);
  box-sizing: border-box;
  position: relative;
  z-index: 1;
}
.chat-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  margin-bottom: 16px;
  flex-shrink: 0;
}
.chat-avatar {
  font-size: 2rem;
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(212,175,55,0.1);
  border-radius: 50%;
  flex-shrink: 0;
}
.chat-header-info h3 { margin: 0; font-size: 1rem; font-weight: 600; color: var(--text-primary); font-family: var(--font-body); }
.chat-header-info p  { margin: 0; font-size: 0.78rem; color: #22c55e; }

.chat-messages {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 4px 4px 12px;
  min-height: 0;
}
.chat-bubble {
  max-width: 78%;
  padding: 14px 18px;
  border-radius: 18px;
  font-size: 0.92rem;
  line-height: 1.65;
  position: relative;
  word-break: break-word;
}
.chat-bubble.user {
  align-self: flex-end;
  background: linear-gradient(135deg, #d4a017, #b8860b);
  color: #fff8ee;
  border-bottom-right-radius: 4px;
}
.chat-bubble.ai {
  align-self: flex-start;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-primary);
  border-bottom-left-radius: 4px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.bubble-time {
  font-size: 0.68rem;
  opacity: 0.5;
  margin-top: 6px;
  text-align: right;
}

.chat-typing {
  display: none;
  align-self: flex-start;
  align-items: center;
  gap: 6px;
  padding: 14px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 18px;
  border-bottom-left-radius: 4px;
}
.typing-dots { display: flex; gap: 5px; align-items: center; }
.typing-dots span {
  width: 7px; height: 7px;
  background: var(--gold);
  border-radius: 50%;
  animation: bounce 1.2s infinite;
}
.typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.typing-dots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes bounce {
  0%,80%,100% { transform: translateY(0); }
  40%         { transform: translateY(-8px); }
}

.chat-input-area {
  flex-shrink: 0;
  margin-top: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 14px 16px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}
.chat-limit-bar {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 10px;
  text-align: center;
}
.chat-limit-bar span { font-weight: 700; color: var(--gold); }
.chat-quick-prompts {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 12px;
}
.quick-prompt-btn {
  background: rgba(212,175,55,0.08);
  border: 1px solid rgba(212,175,55,0.25);
  border-radius: 100px;
  padding: 5px 13px;
  font-size: 0.78rem;
  color: var(--gold);
  cursor: pointer;
  transition: all 0.18s;
  font-family: var(--font-body);
}
.quick-prompt-btn:hover {
  background: rgba(212,175,55,0.18);
  border-color: var(--border-glow);
}
.chat-input-row {
  display: flex;
  gap: 10px;
  align-items: flex-end;
}
.chat-input {
  flex: 1;
  background: var(--bg-card2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 11px 14px;
  font-size: 0.92rem;
  font-family: var(--font-body);
  color: var(--text-primary);
  resize: none;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
  line-height: 1.5;
  max-height: 120px;
  overflow-y: auto;
}
.chat-input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(212,175,55,0.1);
}
.chat-input::placeholder { color: var(--text-muted); }
.chat-send-btn {
  width: 46px; height: 46px;
  border: none; border-radius: var(--radius);
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  font-size: 1.2rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: all var(--transition);
  box-shadow: 0 4px 12px rgba(180,134,11,0.3);
}
.chat-send-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(180,134,11,0.45);
}

/* ── Mobile-Only Fixes (max-width: 600px) ───────────────────── */
@media (max-width: 600px) {

  /* Chat header: keep everything in one row, smaller */
  .chat-header {
    flex-wrap: nowrap;
    gap: 8px;
    padding: 10px 12px;
    align-items: center;
  }
  .chat-avatar {
    width: 36px;
    height: 36px;
    font-size: 1.4rem;
    flex-shrink: 0;
  }
  .chat-header-info {
    flex: 1;
    min-width: 0;
  }
  .chat-header-info h3 {
    font-size: 0.88rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .chat-header-info p {
    font-size: 0.7rem;
    white-space: nowrap;
  }
  /* Buttons on the right: smaller */
  .chat-header .btn-sm {
    padding: 4px 8px;
    font-size: 0.72rem;
    white-space: nowrap;
  }
  .chat-header .badge {
    font-size: 0.65rem;
    padding: 3px 7px;
  }

  /* Chat bubbles: user text must be visible (white on gold) */
  .chat-bubble.user {
    color: #ffffff;
    font-size: 0.9rem;
  }
  .chat-bubble {
    max-width: 88%;
    padding: 11px 14px;
    font-size: 0.88rem;
  }

  /* Chat wrapper padding */
  .chat-wrapper {
    padding: 12px 10px 20px;
    height: calc(100vh - 56px);
  }

  /* Quick prompts smaller */
  .quick-prompt-btn {
    font-size: 0.72rem;
    padding: 4px 10px;
  }

  /* Input area tighter */
  .chat-input-area {
    padding: 10px 12px;
  }
}


/* ═══════════════════════════════════════════════════════════════
   VEDIC TOOLS SLIDER — jg-tools section
   ═══════════════════════════════════════════════════════════════ */

.jg-tools {
  padding: 80px 0 72px;
  background: var(--bg-dark);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.jg-tools-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
}

.jg-tools-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 36px;
  gap: 20px;
  flex-wrap: wrap;
}

.jg-tools-nav {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.jg-tools-arrow {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1.5px solid var(--border-glow);
  background: var(--bg-card);
  color: var(--gold);
  font-size: 1.1rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.22s;
  flex-shrink: 0;
}
.jg-tools-arrow:hover {
  background: var(--gold);
  color: #fff8ee;
  border-color: var(--gold);
  box-shadow: 0 4px 16px rgba(180,140,40,0.3);
  transform: scale(1.08);
}
.jg-tools-arrow:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  transform: none;
}

/* Track wrapper — clips overflow */
.jg-tools-track-wrap {
  overflow: hidden;
  margin: 0 -4px;
  cursor: grab;
  user-select: none;
}
.jg-tools-track-wrap:active { cursor: grabbing; }

/* The scrolling row */
.jg-tools-track {
  display: flex;
  gap: 20px;
  padding: 8px 4px 16px;
  transition: transform 0.42s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

/* Individual Tool Card */
.jg-tool-card {
  flex: 0 0 calc(25% - 15px);   /* 4 visible on desktop */
  min-width: 240px;
  max-width: 300px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px 24px 22px;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  overflow: hidden;
  transition: all 0.28s ease;
}
.jg-tool-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--saffron));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.jg-tool-card:hover {
  border-color: var(--border-glow);
  box-shadow: 0 12px 40px rgba(180,140,40,0.14);
  transform: translateY(-5px);
}
.jg-tool-card:hover::before { transform: scaleX(1); }

.jg-tool-icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  font-size: 1.7rem;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  margin-bottom: 4px;
}

.jg-tool-tag {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(180,140,40,0.1);
  border: 1px solid rgba(180,140,40,0.2);
  border-radius: 20px;
  padding: 2px 10px;
  display: inline-block;
  width: fit-content;
}

.jg-tool-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--text-primary);
  letter-spacing: 0.04em;
  margin: 0;
  line-height: 1.3;
}

.jg-tool-desc {
  font-size: 0.84rem;
  color: var(--text-secondary);
  line-height: 1.6;
  flex: 1;
  margin: 0;
}

.jg-tool-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.jg-tool-chip {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg-card2);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2px 9px;
}

.jg-tool-cta {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--gold);
  margin-top: 6px;
  letter-spacing: 0.02em;
  opacity: 0;
  transform: translateX(-4px);
  transition: all 0.22s;
}
.jg-tool-card:hover .jg-tool-cta {
  opacity: 1;
  transform: translateX(0);
}

/* Dot Indicators */
.jg-tools-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
}
.jg-tools-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--border-glow);
  border: none;
  cursor: pointer;
  transition: all 0.22s;
  padding: 0;
}
.jg-tools-dot.active {
  background: var(--gold);
  width: 24px;
  border-radius: 4px;
}

/* ── Tool Pages — Shared Header ───────────────────────────── */
.tool-page-hero {
  background: linear-gradient(135deg, #2c1a06 0%, #4a2c0a 60%, #2c1a06 100%);
  padding: 60px 20px 50px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.tool-page-hero::before {
  content: attr(data-symbol);
  position: absolute; top: -30px; left: 50%;
  transform: translateX(-50%);
  font-size: 220px; opacity: 0.04;
  pointer-events: none; line-height: 1;
}
.tool-page-hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700; color: #fdf8f0;
  margin-bottom: 12px; letter-spacing: -0.02em;
}
.tool-page-hero h1 em {
  font-style: italic; font-weight: 400;
  background: linear-gradient(135deg, #d4a017, #e8c56a, #e85d20);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.tool-page-hero p {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic; font-size: 1.15rem;
  color: rgba(253,248,240,0.65); max-width: 560px; margin: 0 auto;
}
.tool-page-hero .hero-pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(212,160,23,0.15);
  border: 1px solid rgba(212,160,23,0.35);
  border-radius: 100px; padding: 5px 16px;
  font-size: 0.78rem; font-weight: 600; color: #d4a017;
  letter-spacing: 0.06em; text-transform: uppercase;
  margin-bottom: 20px;
}
.tool-page-body {
  max-width: 1100px;
  margin: 0 auto;
  padding: 48px 20px 80px;
}

/* Panchang specific */
.pancha-5-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  margin-bottom: 36px;
}
.pancha-limb {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px 16px;
  text-align: center;
  transition: all 0.25s;
  position: relative; overflow: hidden;
}
.pancha-limb::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--saffron));
}
.pancha-limb:hover { border-color: var(--border-glow); box-shadow: var(--shadow-gold); transform: translateY(-3px); }
.pancha-limb-num { font-size: 1.8rem; margin-bottom: 6px; }
.pancha-limb-label { font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--gold); margin-bottom: 6px; }
.pancha-limb-value { font-family: var(--font-heading); font-size: 1rem; color: var(--text-primary); margin-bottom: 4px; }
.pancha-limb-sub { font-size: 0.72rem; color: var(--text-muted); }

/* Timing rows */
.timing-block { background: var(--bg-card); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; }
.timing-block-head { padding: 14px 20px; background: var(--bg-card2); border-bottom: 1px solid var(--border); font-family: var(--font-heading); font-size: 0.95rem; color: var(--gold); }
.timing-row { display: flex; justify-content: space-between; align-items: center; padding: 13px 20px; border-bottom: 1px solid var(--border); gap: 12px; }
.timing-row:last-child { border-bottom: none; }
.timing-name { font-weight: 700; font-size: 0.88rem; color: var(--text-primary); }
.timing-note { font-size: 0.72rem; color: var(--text-muted); margin-top: 2px; }
.timing-val { font-family: var(--font-heading); font-size: 0.95rem; color: var(--gold); font-weight: 700; white-space: nowrap; }
.timing-bad { color: #c62828; background: rgba(198,40,40,0.08); border: 1px solid rgba(198,40,40,0.2); border-radius: 8px; padding: 3px 10px; font-size: 0.82rem; font-weight: 700; }
.timing-good { color: #2e7d32; background: rgba(46,125,50,0.08); border: 1px solid rgba(46,125,50,0.2); border-radius: 8px; padding: 3px 10px; font-size: 0.82rem; font-weight: 700; }

/* Numerology cards */
.num-result-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; margin: 32px 0; }
.num-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 20px; padding: 28px 22px; text-align: center;
  transition: all 0.25s; position: relative; overflow: hidden;
}
.num-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--gold), var(--saffron)); }
.num-card:hover { border-color: var(--border-glow); box-shadow: var(--shadow-gold); transform: translateY(-3px); }
.num-big { font-size: 3.5rem; font-family: var(--font-display); color: var(--gold); line-height: 1; margin-bottom: 8px; }
.num-label { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-muted); margin-bottom: 10px; }
.num-name { font-family: var(--font-heading); font-size: 1.05rem; color: var(--text-primary); margin-bottom: 8px; }
.num-desc { font-size: 0.82rem; color: var(--text-secondary); line-height: 1.6; }

/* Nakshatra cards */
.nakshatra-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.nak-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px; padding: 22px 20px;
  cursor: pointer; transition: all 0.25s; position: relative; overflow: hidden;
}
.nak-card:hover, .nak-card.active { border-color: var(--border-glow); box-shadow: var(--shadow-gold); background: var(--bg-card2); }
.nak-card.active { border-color: var(--gold); }
.nak-num { position: absolute; top: 14px; right: 16px; font-size: 0.7rem; color: var(--text-muted); font-weight: 700; }
.nak-symbol { font-size: 1.8rem; margin-bottom: 8px; }
.nak-name { font-family: var(--font-heading); color: var(--gold); font-size: 1rem; margin-bottom: 2px; }
.nak-rashi { font-size: 0.75rem; color: var(--text-muted); margin-bottom: 8px; }
.nak-chips { display: flex; flex-wrap: wrap; gap: 5px; }
.nak-chip { font-size: 0.68rem; background: var(--bg-card2); border: 1px solid var(--border); border-radius: 20px; padding: 2px 8px; color: var(--text-secondary); }

/* Vastu directions wheel */
.vastu-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; max-width: 700px; margin: 0 auto 40px; }
.vastu-dir {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 14px; padding: 20px 16px; text-align: center;
  transition: all 0.25s;
}
.vastu-dir:hover { border-color: var(--border-glow); box-shadow: var(--shadow-gold); transform: translateY(-3px); }
.vastu-dir.center { background: rgba(180,140,40,0.06); border-color: var(--border-glow); }
.vastu-dir-icon { font-size: 2rem; margin-bottom: 8px; }
.vastu-dir-name { font-family: var(--font-heading); color: var(--gold); font-size: 0.9rem; margin-bottom: 4px; }
.vastu-dir-lord { font-size: 0.72rem; color: var(--text-muted); margin-bottom: 8px; }
.vastu-dir-desc { font-size: 0.78rem; color: var(--text-secondary); line-height: 1.5; }

/* Festival table */
.fest-table { width: 100%; border-collapse: collapse; }
.fest-table th { background: var(--bg-card2); color: var(--gold); font-family: var(--font-heading); font-size: 0.82rem; padding: 12px 16px; text-align: left; border-bottom: 2px solid var(--border-glow); letter-spacing: 0.06em; }
.fest-table td { padding: 13px 16px; border-bottom: 1px solid var(--border); font-size: 0.88rem; color: var(--text-primary); }
.fest-table tr:hover td { background: rgba(212,175,55,0.03); }
.fest-table tr:last-child td { border-bottom: none; }
.fest-month-row td { background: rgba(180,140,40,0.06); color: var(--gold); font-family: var(--font-heading); font-size: 0.85rem; font-weight: 700; padding: 10px 16px; }
.fest-type-badge { display: inline-block; padding: 2px 9px; border-radius: 20px; font-size: 0.68rem; font-weight: 700; }
.fest-type-major { background: rgba(212,175,55,0.12); color: var(--gold); border: 1px solid rgba(212,175,55,0.3); }
.fest-type-ekadashi { background: rgba(106,63,203,0.1); color: #6a3fcb; border: 1px solid rgba(106,63,203,0.2); }
.fest-type-vrat { background: rgba(0,151,167,0.1); color: #0097a7; border: 1px solid rgba(0,151,167,0.2); }
.fest-type-amavasya { background: rgba(44,26,6,0.08); color: var(--text-secondary); border: 1px solid var(--border); }

/* ── Responsive Slider ─────────────────────────────────────── */
@media (max-width: 1100px) {
  .jg-tool-card { flex: 0 0 calc(33.33% - 14px); }
}
@media (max-width: 768px) {
  .jg-tool-card { flex: 0 0 calc(50% - 10px); min-width: 220px; }
  .jg-tools { padding: 56px 0 48px; }
  .jg-tools-head { margin-bottom: 24px; }
  .pancha-5-grid { grid-template-columns: repeat(3, 1fr); }
  .vastu-grid { grid-template-columns: 1fr 1fr; max-width: 100%; }
}
@media (max-width: 520px) {
  .jg-tool-card { flex: 0 0 calc(85vw); max-width: 85vw; min-width: unset; }
  .jg-tools-track { scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; }
  .jg-tool-card { scroll-snap-align: start; }
  .pancha-5-grid { grid-template-columns: 1fr 1fr; }
  .nakshatra-grid { grid-template-columns: 1fr; }
}

/* ── Google Fonts for all tool pages ──────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400;1,600&family=Cormorant+Garamond:ital,wght@0,300;0,400;1,300;1,400&display=swap');

/* ── Global Gold Button ────────────────────────────────────── */
.jg-btn-gold {
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 600;
  padding: 14px 30px;
  border-radius: 8px;
  background: linear-gradient(135deg, #d4a017, #b8860b);
  color: #fff8ee !important;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 4px 20px rgba(180,134,11,0.25);
  display: inline-block;
}
.jg-btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(180,134,11,0.4);
  color: #fff !important;
}

/* ── Section Eyebrow ───────────────────────────────────────── */
.jg-section-eyebrow {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold-light);
  display: block;
}

/* ── Generic hover card ────────────────────────────────────── */
.card-hover {
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s !important;
}
.card-hover:hover {
  border-color: rgba(180,140,40,0.45) !important;
  box-shadow: 0 8px 32px rgba(180,140,40,0.12) !important;
  transform: translateY(-3px) !important;
}

/* ── Tool page inline cards hover (replaces JS) ────────────── */
.tool-page-body [style*="background:var(--bg-card)"] {
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s;
}

/* ── Nakshatra grid fix ────────────────────────────────────── */
.nakshatra-grid {
  max-width: 1060px;
  margin: 0 auto;
}
#nak-detail {
  max-width: 1060px;
  margin: 16px auto 0;
  width: 100%;
  box-sizing: border-box;
}

/* ── Index tools section gap fix ──────────────────────────── */
.jg-tools {
  padding: 72px 0 60px !important;
}
.jg-tools-head {
  padding: 0 20px;
  margin-bottom: 32px !important;
}

/* ── Fix body scroll ───────────────────────────────────────── */
body {
  overflow-x: hidden;
  overflow-y: auto !important;
  min-height: 100vh;
}
body::before {
  z-index: -1 !important;
}

/* ── Tool page body cards — ensure visible ─────────────────── */
.tool-page-body .card,
.tool-page-body > div > div {
  color: var(--text-primary);
}

/* ── Vedic Tools Dropdown ───────────────────────────────────── */
.nav-dropdown { position: relative; display: inline-block; }
.nav-dropdown-btn {
  background: none; border: none; cursor: pointer;
  font-family: inherit; font-size: 0.95rem;
  color: var(--text-primary); padding: 8px 12px;
  border-radius: 8px; transition: color var(--transition);
  display: flex; align-items: center; gap: 4px;
}
.nav-dropdown-btn:hover, .nav-dropdown-btn.active { color: var(--gold); }

/* Bridge: invisible padding so mouse doesn't leave hover zone */
.nav-dropdown-menu {
  display: none;
  position: absolute; top: 100%; left: 0;
  padding-top: 8px; /* bridge gap — keeps hover alive */
  z-index: 999; min-width: 220px;
}
.nav-dropdown-menu-inner {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
  overflow: hidden;
  display: flex; flex-direction: column;
  max-height: 70vh; overflow-y: auto;
}
.nav-dropdown.open .nav-dropdown-menu { display: block; }
.nav-dropdown-menu a {
  padding: 9px 16px; color: var(--text-secondary);
  font-size: 0.88rem; text-decoration: none;
  display: block; transition: all 0.15s;
  white-space: nowrap;
}
.nav-dropdown-menu a:hover { background: var(--bg-card2); color: var(--gold); }

/* Mobile */
@media (max-width: 768px) {
  .nav-dropdown { width: 100%; }
  .nav-dropdown-btn { width: 100%; justify-content: flex-start; padding: 10px 16px; }
  .nav-dropdown-menu { position: static; padding-top: 0; display: none; }
  .nav-dropdown-menu-inner {
    box-shadow: none; border: none; border-radius: 0;
    background: var(--bg-card2); padding-left: 16px;
    max-height: none;
  }
  .nav-dropdown.open .nav-dropdown-menu { display: block; }
}

/* ── newborn form grid ─────────────────────────────────────── */
.newborn-form-grid {
  grid-template-columns: 1fr 1fr; /* 2 cols on desktop */
}
@media (max-width: 600px) {
  .newborn-form-grid {
    grid-template-columns: 1fr; /* 1 col on mobile */
  }
}
