@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@500;700;800;900&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Space+Grotesk:wght@500;700&display=swap');

:root {
  --font-serif: 'Cinzel', serif;
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-mono: 'Space Grotesk', monospace;

  --primary-50: #f5f3ff;
  --primary-100: #ede9fe;
  --primary-200: #ddd6fe;
  --primary-600: #7c3aed;
  --primary-700: #5b21b6;
  --primary-900: #2e1065;
  --primary-glow: rgba(91, 33, 182, 0.4);

  --accent-gold: #f59e0b;
  --accent-gold-light: #fef3c7;
  --accent-gold-glow: rgba(245, 158, 11, 0.35);

  --bg-body: #faf7ff;
  --bg-card: #ffffff;
  --bg-card-glass: rgba(255, 255, 255, 0.95);
  --text-primary: #1e1b4b;
  --text-secondary: #475569;
  --border-subtle: rgba(91, 33, 182, 0.12);
  --border-gold: rgba(245, 158, 11, 0.3);

  --shadow-sm: 0 4px 12px rgba(91, 33, 182, 0.05);
  --shadow-md: 0 12px 28px -6px rgba(91, 33, 182, 0.12);
  --shadow-lg: 0 24px 48px -12px rgba(91, 33, 182, 0.2);
  --shadow-gold: 0 10px 25px -5px rgba(245, 158, 11, 0.35);
}

body {
  background-color: var(--bg-body);
  color: var(--text-primary);
  font-family: var(--font-sans);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color 0.4s ease, color 0.4s ease;
}

h1, h2, h3, .font-serif {
  font-family: var(--font-serif);
  letter-spacing: -0.01em;
}

/* Custom Utilities for Background & Text Visibility */
.bg-purple {
  background-color: #3b0764 !important;
  color: #ffffff !important;
}
.bg-purple-subtle {
  background-color: #f3e8ff !important;
  color: #5b21b6 !important;
}
.text-purple {
  color: #5b21b6 !important;
}
.text-purple-light {
  color: #c084fc !important;
}
.border-purple {
  border-color: #5b21b6 !important;
}
.font-mono {
  font-family: var(--font-mono);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 9px;
}
::-webkit-scrollbar-track {
  background: var(--bg-body);
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--primary-700), var(--accent-gold));
  border-radius: 6px;
}

/* Top Live Ticker Bar */
.live-ticker-bar {
  background: #090514;
  color: #fbbf24;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.45rem 0;
  border-bottom: 1px solid rgba(245, 158, 11, 0.2);
}

.pulse-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  background-color: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: pulse-ring 1.8s infinite;
}
@keyframes pulse-ring {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* Modern Header Navbar (Text-Only Links & Fixed Button Pill Widths) */
.navbar-astro {
  background: #0d0722 !important;
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(245, 158, 11, 0.2) !important;
  padding: 0.75rem 0 !important;
  margin: 0 !important;
}

.navbar-astro .navbar-nav {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 0.15rem !important;
}

.navbar-astro .nav-item {
  display: inline-flex !important;
  align-items: center !important;
}

.navbar-astro .nav-link {
  display: inline-block !important;
  white-space: nowrap !important;
  color: #ede9fe !important;
  font-weight: 600 !important;
  font-size: 0.95rem !important;
  padding: 0.5rem 1rem !important;
  border-radius: 50rem !important;
  transition: all 0.25s ease !important;
  background: transparent !important;
}

.navbar-astro .nav-link:hover {
  color: #ffffff !important;
  background: rgba(245, 158, 11, 0.15) !important;
}

.navbar-astro .nav-link.active {
  color: #0f0a2a !important;
  background: #f59e0b !important;
  font-weight: 700 !important;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.35) !important;
}

/* Brand Logo */
.brand-logo-text {
  font-family: var(--font-serif);
  font-weight: 800;
  background: linear-gradient(135deg, #ffffff 0%, #fef3c7 50%, #f59e0b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Hero Section */
.hero-banner {
  background: radial-gradient(circle at 50% 30%, #3b0764 0%, #1e1b4b 60%, #090514 100%);
  position: relative;
  overflow: hidden;
  padding: 5rem 0 5rem;
  color: #ffffff;
  margin-top: 0 !important;
}
.hero-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(2px 2px at 20px 30px, #ffffff, rgba(0,0,0,0)),
              radial-gradient(2px 2px at 40px 70px, #f59e0b, rgba(0,0,0,0)),
              radial-gradient(1px 1px at 90px 40px, #ffffff, rgba(0,0,0,0)),
              radial-gradient(2px 2px at 160px 120px, #c084fc, rgba(0,0,0,0));
  background-repeat: repeat;
  background-size: 250px 250px;
  opacity: 0.4;
  pointer-events: none;
}

/* Spinning Golden Zodiac Wheel Image Animation */
.spinning-zodiac-box {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1rem;
}
.spinning-zodiac-img {
  width: 100%;
  max-width: 440px;
  height: auto;
  border-radius: 50%;
  clip-path: circle(48% at 50% 50%);
  mix-blend-mode: screen;
  filter: drop-shadow(0 0 35px rgba(245, 158, 11, 0.6));
  animation: spin-zodiac-wheel 50s linear infinite;
}
@keyframes spin-zodiac-wheel {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Cards & Elevated Containers */
.astro-card {
  background: var(--bg-card-glass);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-radius: 1.25rem;
  box-shadow: var(--shadow-sm);
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
}
.astro-card:hover {
  transform: translateY(-7px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-gold);
}

/* Custom Buttons */
.btn-primary-astro {
  background: linear-gradient(135deg, #6d28d9 0%, #4c1d95 100%);
  color: #ffffff !important;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50rem;
  padding: 0.8rem 1.75rem;
  box-shadow: 0 8px 20px rgba(109, 40, 217, 0.35);
  transition: all 0.3s ease;
  white-space: nowrap !important;
}
.btn-primary-astro:hover {
  background: linear-gradient(135deg, #7c3aed 0%, #5b21b6 100%);
  transform: translateY(-2px);
  box-shadow: 0 12px 25px rgba(109, 40, 217, 0.5);
}

.btn-secondary-astro {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #0f0a2a !important;
  font-weight: 800;
  border: none;
  border-radius: 50rem;
  padding: 0.7rem 1.6rem;
  box-shadow: var(--shadow-gold);
  transition: all 0.3s ease;
  white-space: nowrap !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}
.btn-secondary-astro:hover {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(245, 158, 11, 0.5);
}

/* Zodiac Rashi Pills */
.zodiac-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.65rem 1.2rem;
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
  border-radius: 50rem;
  font-weight: 700;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  text-decoration: none !important;
}
.zodiac-badge:hover, .zodiac-badge.active {
  background: linear-gradient(135deg, #5b21b6 0%, #4c1d95 100%);
  color: #fbbf24 !important;
  border-color: #f59e0b;
  box-shadow: 0 6px 18px rgba(91, 33, 182, 0.35);
  transform: translateY(-3px) scale(1.03);
}

/* Astrologer Card Badges */
.badge-astro-rate {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  color: #78350f;
  font-weight: 800;
  font-family: var(--font-mono);
  padding: 0.4rem 0.8rem;
  border-radius: 50rem;
  border: 1px solid #f59e0b;
}

/* Authentic Diamond Kundli Chart */
.kundli-diamond-container {
  width: 320px;
  height: 320px;
  margin: 0 auto;
  position: relative;
  background: radial-gradient(circle, #fef3c7 0%, #fef08a 100%);
  border: 4px solid #b45309;
  box-shadow: 0 10px 30px rgba(180, 83, 9, 0.25);
  border-radius: 8px;
}
.kundli-diamond-svg {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
}
.house-label {
  position: absolute;
  font-weight: 800;
  font-size: 0.75rem;
  color: #78350f;
  text-transform: uppercase;
}

/* Admin Sidebar */
.admin-sidebar {
  width: 270px;
  background: radial-gradient(circle at 10% 20%, #1e1b4b 0%, #0f0a2a 100%);
  border-right: 1px solid rgba(245, 158, 11, 0.2);
  min-height: 100vh;
}
.admin-sidebar .nav-link {
  color: #cbd5e1;
  font-weight: 600;
  padding: 0.8rem 1.2rem;
  border-radius: 0.75rem;
  margin: 0.2rem 0.5rem;
  transition: all 0.25s ease;
}
.admin-sidebar .nav-link:hover, .admin-sidebar .nav-link.active {
  background: linear-gradient(90deg, #5b21b6 0%, #4c1d95 100%);
  color: #fbbf24;
  box-shadow: 0 4px 15px rgba(91, 33, 182, 0.4);
}

/* Custom Bootstrap 5 Pagination Styling */
.pagination {
  margin-bottom: 0;
  gap: 0.25rem;
}
.page-link {
  color: #5b21b6 !important;
  border-radius: 0.5rem !important;
  border: 1px solid rgba(91, 33, 182, 0.15) !important;
  font-weight: 600;
  padding: 0.45rem 0.85rem;
  transition: all 0.25s ease;
}
.page-link:hover {
  background-color: #f3e8ff !important;
  color: #5b21b6 !important;
  border-color: #5b21b6 !important;
}
.page-item.active .page-link {
  background: linear-gradient(135deg, #5b21b6 0%, #4c1d95 100%) !important;
  border-color: #5b21b6 !important;
  color: #fbbf24 !important;
  box-shadow: 0 4px 12px rgba(91, 33, 182, 0.3) !important;
}
.page-item.disabled .page-link {
  color: #94a3b8 !important;
  background-color: #f8fafc !important;
}
