:root {
  /* Dark cosmic theme - shifted from the old light palette, same variable names
     so pages using var(--primary) etc keep working without markup changes */
  --primary: #8b5cf6;
  --primary-dark: #6d28d9;
  --accent-orange: #f5b942;
  --accent-blue: #ec4899;
  --gold: #f5b942;
  --gold-light: #f0c988;
  --bg: #0b0712;
  --card-bg: rgba(255,255,255,0.045);
  --text: #ece6f5;
  --muted: rgba(236,230,245,0.55);
  --border: rgba(255,255,255,0.08);
}

* { box-sizing: border-box; }

body {
  font-family: 'Manrope', 'Segoe UI', Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  margin: 0;
  padding: 0;
  line-height: 1.5;
}

/* Base navbar styles - partials-navbar.ejs carries its own <style> block that
   overrides this with the fixed glass-header treatment; this stays as a
   sane fallback for any page that doesn't include that partial. */
.navbar {
  background: rgba(11,7,18,0.45);
  color: white;
  padding: 15px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border);
}

.navbar .logo {
  font-size: 20px;
  font-weight: bold;
  text-decoration: none;
  color: var(--gold-light);
  letter-spacing: 0.5px;
}

.navbar .nav-links a {
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  margin-left: 20px;
  font-weight: 500;
  transition: color 0.2s;
}

.navbar .nav-links a:hover {
  color: #fff;
}

.container-wide {
  max-width: 1650px;
  margin: 40px auto;
  padding: 0 20px;
}
.container {
  max-width: 600px;
  margin: 40px auto;
  padding: 0 20px;
}

h1 { color: #fff; font-family: 'Cormorant Garamond', serif; }
h2, h3 { color: #fff; }

.card {
  background: var(--card-bg);
  border-radius: 14px;
  padding: 25px;
  border: 1px solid var(--border);
  margin-top: 20px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.card:hover {
  border-color: rgba(236,72,153,.3);
  box-shadow: 0 20px 50px -20px rgba(139,92,246,.4);
}

label { display: block; margin-top: 15px; font-weight: 600; color: var(--text); }

input {
  width: 100%;
  padding: 11px;
  margin-top: 6px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  box-sizing: border-box;
  font-size: 15px;
  transition: border-color 0.2s;
  background: rgba(255,255,255,0.04);
  color: var(--text);
}

input::placeholder { color: rgba(236,230,245,0.35); }

input:focus {
  outline: none;
  border-color: var(--primary);
}

button, .btn {
  display: inline-block;
  margin-top: 20px;
  padding: 12px 22px;
  background: linear-gradient(135deg, var(--primary), var(--accent-blue) 55%, var(--gold));
  color: white;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  text-decoration: none;
  font-weight: 600;
  text-align: center;
  box-shadow: 0 8px 30px -6px rgba(236,72,153,.5), 0 0 0 1px rgba(255,255,255,.06) inset;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

button:hover, .btn:hover {
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 12px 40px -6px rgba(236,72,153,.7), 0 0 0 1px rgba(255,255,255,.08) inset;
}

.btn-outline {
  padding: 9px 16px;
  background: transparent;
  color: var(--gold-light);
  border: 1.5px solid var(--gold);
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
}

.btn-outline:hover {
  background: rgba(245,185,66,0.1);
}

.error { color: #f87171; margin-top: 10px; font-weight: 500; }

.label {
  color: var(--gold);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.value { font-size: 18px; font-weight: 600; margin-bottom: 15px; color: var(--text); }
.prediction { line-height: 1.7; font-weight: normal; font-size: 15.5px; color: var(--muted); }

.kundli-card {
  background: var(--card-bg);
  border-radius: 12px;
  padding: 18px 22px;
  border: 1px solid var(--border);
  margin-top: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.chart-grid {
  display: grid;
  grid-template-columns: 2fr 1.4fr 1.6fr;
  gap: 20px;
  align-items: start;
}

.dasha-panel {
  grid-column: 3;
}

.chart-side .card svg {
  width: 100%;
  height: auto;
  max-width: 300px;
  display: block;
  margin: 0 auto;
}

.chart-main .card svg {
  width: 100%;
  height: auto;
  max-width: 500px;
  display: block;
  margin: 0 auto;
}

.chart-selector {
  width: 100%;
  padding: 10px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  margin-top: 10px;
  font-family: inherit;
  background: rgba(255,255,255,0.04);
  color: var(--text);
}

@media (max-width: 1100px) {
  .chart-grid {
    grid-template-columns: 1fr;
  }
}

/* Base dropdown styles - partials-navbar.ejs's own <style> block overrides
   these with the glass treatment; kept here as a fallback. */
.nav-dropdown {
  position: relative;
  display: inline-block;
}
.nav-dropdown-toggle {
  background: none;
  border: none;
  color: white;
  font-weight: 500;
  font-size: 15px;
  cursor: pointer;
  padding: 0;
  margin-left: 20px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.nav-dropdown-menu {
  position: absolute;
  top: 130%;
  right: 0;
  background: rgba(15,10,28,0.9);
  border: 1px solid var(--border);
  border-radius: 10px;
  min-width: 160px;
  overflow: hidden;
  display: none;
  z-index: 100;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.nav-dropdown.open .nav-dropdown-menu { display: block; }
.nav-dropdown-menu a {
  display: block !important;
  padding: 12px 18px !important;
  color: rgba(255,255,255,0.75) !important;
  background: transparent !important;
  text-decoration: none !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  margin: 0 !important;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.nav-dropdown-menu a:last-child { border-bottom: none; }
.nav-dropdown-menu a:hover {
  background: rgba(255,255,255,0.06) !important;
  color: #fff !important;
}

.user-avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(139,92,246,.4), rgba(236,72,153,.35));
  color: #fff;
  border: 1px solid rgba(255,255,255,0.12);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
}
@media (max-width: 600px) {
  button, .btn {
    width: 100%;
  }
}