/* Vedic Astrology Portal - Modern Indian Astrological Design System */
:root {
  --primary: #C2410C;
  --primary-hover: #9A3412;
  --primary-light: #FFEDD5;
  --saffron: #EA580C;
  --gold: #D97706;
  --gold-light: #FEF3C7;
  --maroon: #831843;
  --navy: #0F172A;
  --navy-light: #1E293B;
  --bg-creme: #FDFBF7;
  --card-bg: #FFFFFF;
  --text-main: #1E293B;
  --text-muted: #64748B;
  --border: #E2E8F0;
  --border-gold: #FDE68A;
  --success: #16A34A;
  --danger: #DC2626;
  --warning: #D97706;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 12px rgba(194, 65, 12, 0.08);
  --shadow-lg: 0 10px 25px rgba(15, 23, 42, 0.1);
  --font-sans: 'Outfit', 'Poppins', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-hindi: 'Noto Sans Devanagari', 'Mangal', 'Poppins', sans-serif;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  overflow-x: hidden;
  max-width: 100%;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-creme);
  color: var(--text-main);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  max-width: 100%;
}

body.lang-hi {
  font-family: var(--font-hindi);
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: all 0.2s ease;
}

a:hover {
  color: var(--primary-hover);
}

img {
  max-width: 100%;
  height: auto;
}

/* Header & Top Bar */
.top-bar {
  background: linear-gradient(90deg, #7C2D12 0%, #9A3412 50%, #C2410C 100%);
  color: #FEF3C7;
  padding: 6px 0;
  font-size: 0.825rem;
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-bar-left {
  display: flex;
  align-items: center;
  gap: 15px;
}

.top-bar-right {
  display: flex;
  align-items: center;
  gap: 15px;
}

.lang-switch-btn {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(254, 243, 199, 0.4);
  color: #FFF;
  padding: 2px 10px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.2s ease;
}

.lang-switch-btn:hover {
  background: #FEF3C7;
  color: #9A3412;
}

/* Main Navbar */
.site-header {
  background: #FFFFFF;
  border-bottom: 2px solid var(--border-gold);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 8px 20px;
  gap: 15px;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.om-symbol {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, #EA580C 0%, #D97706 100%);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: bold;
  box-shadow: 0 4px 10px rgba(234, 88, 12, 0.35);
  flex-shrink: 0;
}

.brand-text h1 {
  font-size: 1.2rem;
  font-weight: 700;
  color: #7C2D12;
  margin: 0;
  line-height: 1.2;
  white-space: nowrap;
}

.brand-text p {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin: 0;
  white-space: nowrap;
}

/* Nav Drawer: Positioned directly next to the brand on the left, filling available space */
.nav-drawer {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-grow: 1;
  margin-left: 12px;
  gap: 8px;
  min-width: 0;
}

/* Nav Menu: Strictly single row, aligned to left with compact padding */
.nav-menu {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 2px;
  margin: 0;
  padding: 0;
  flex-wrap: nowrap;
  flex-shrink: 0;
}

.nav-menu li {
  flex-shrink: 0;
  white-space: nowrap;
}

.nav-link {
  color: var(--text-main);
  font-weight: 500;
  font-size: 0.86rem;
  padding: 6px 8px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.nav-link:hover, .nav-link.active {
  color: var(--primary);
  background: var(--primary-light);
}

/* Unified Auth Group: Floated cleanly to far right with auto margin, strictly in 1 single row */
.nav-auth-group {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  margin-left: auto;
  white-space: nowrap;
}

.btn-auth {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 6px 14px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.85rem;
  white-space: nowrap;
  flex-shrink: 0;
  line-height: 1.2;
  transition: all 0.2s ease;
}

.btn-login {
  color: var(--primary);
  border: 1px solid var(--primary);
  background: transparent;
}

.btn-login:hover {
  background: var(--primary);
  color: #FFF;
}

.btn-signup {
  background: linear-gradient(135deg, var(--saffron) 0%, var(--gold) 100%);
  color: #FFF !important;
  border: 1px solid transparent;
  box-shadow: 0 2px 6px rgba(234, 88, 12, 0.25);
}

.btn-signup:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

/* Mobile Toggle */
.mobile-nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-main);
  cursor: pointer;
  padding: 6px 10px;
}

/* Layout Container */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, #FFF9F2 0%, #FEF3C7 50%, #FFEDD5 100%);
  border-bottom: 1px solid var(--border-gold);
  padding: 40px 0;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 30px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(234, 88, 12, 0.1);
  color: var(--primary);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 14px;
}

.hero-title {
  font-size: 2.3rem;
  font-weight: 800;
  color: #431407;
  line-height: 1.25;
  margin-bottom: 14px;
}

.hero-lead {
  font-size: 1.05rem;
  color: #475569;
  margin-bottom: 24px;
}

/* Card Components */
.astro-card {
  background: var(--card-bg);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  padding: 24px;
  transition: all 0.25s ease;
  position: relative;
  min-width: 0;
  max-width: 100%;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.astro-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--border-gold);
}

.card-header-styled {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
  border-bottom: 2px solid #FEF3C7;
  padding-bottom: 12px;
}

.card-title-styled {
  font-size: 1.25rem;
  font-weight: 700;
  color: #7C2D12;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

/* Quick Kundli Form on Home */
.quick-kundli-box {
  background: #FFFFFF;
  border: 2px solid #FDBA74;
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: 0 10px 25px rgba(234, 88, 12, 0.12);
}

.form-group {
  margin-bottom: 14px;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: #334155;
  margin-bottom: 5px;
}

.form-control, .form-select {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid #CBD5E1;
  border-radius: var(--radius-sm);
  font-size: 0.925rem;
  font-family: inherit;
  transition: border-color 0.2s;
  background-color: #FAFAFA;
}

.form-control:focus, .form-select:focus {
  outline: none;
  border-color: var(--saffron);
  background-color: #FFFFFF;
  box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.15);
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.form-row-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
}

.btn-primary {
  background: linear-gradient(135deg, #EA580C 0%, #D97706 100%);
  color: #FFFFFF;
  border: none;
  padding: 11px 22px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  transition: all 0.2s ease;
  box-shadow: 0 3px 8px rgba(234, 88, 12, 0.25);
}

.btn-primary:hover {
  filter: brightness(1.1);
  color: #FFF;
  transform: translateY(-1px);
}

.btn-secondary {
  background: #F1F5F9;
  color: #334155;
  border: 1px solid #CBD5E1;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.btn-secondary:hover {
  background: #E2E8F0;
  color: #0F172A;
}

/* Panchang Highlights Grid */
.panchang-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  gap: 14px;
  margin-top: 14px;
}

.panchang-item {
  background: #FFFDF9;
  border: 1px solid #FED7AA;
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.panchang-icon {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: #FFEDD5;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
}

.panchang-text {
  min-width: 0;
  overflow: hidden;
}

.panchang-text .label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.panchang-text .val {
  font-size: 1rem;
  font-weight: 700;
  color: #1E293B;
  word-break: break-word;
}

/* Home Page 2-Column Panchang & Choghadiya Grid */
.home-panchang-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

/* Featured Calculators Grid */
.featured-calc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

/* Responsive Table Wrapper */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 12px;
}

/* Muhurat Pills */
.muhurat-badge-auspicious {
  background: #DCFCE7;
  color: #15803D;
  border: 1px solid #BBF7D0;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.muhurat-badge-inauspicious {
  background: #FEE2E2;
  color: #B91C1C;
  border: 1px solid #FECACA;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

/* Horoscope Sign Grid / Tabs */
.rashi-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.rashi-tab-btn {
  background: #FFFFFF;
  border: 1px solid #CBD5E1;
  border-radius: var(--radius-sm);
  padding: 10px 6px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.rashi-tab-btn:hover {
  border-color: var(--saffron);
  background: #FFF7ED;
}

.rashi-tab-btn.active {
  background: #EA580C;
  color: #FFF;
  border-color: #EA580C;
  box-shadow: 0 4px 10px rgba(234, 88, 12, 0.25);
}

.rashi-icon {
  font-size: 1.5rem;
}

.rashi-name {
  font-size: 0.8rem;
  font-weight: 700;
}

.horoscope-detail-box {
  background: #FFFDF9;
  border: 1px solid #FED7AA;
  border-radius: var(--radius-md);
  padding: 24px;
}

/* Hindu Calendar Month View */
.calendar-month-table {
  width: 100%;
  border-collapse: collapse;
  background: #FFF;
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.calendar-month-table th {
  background: #9A3412;
  color: #FFF;
  padding: 10px 8px;
  font-size: 0.85rem;
  font-weight: 600;
  text-align: center;
}

.cal-th-short {
  display: none;
}

.cal-th-full {
  display: inline;
}

.calendar-month-table td {
  border: 1px solid #F1F5F9;
  vertical-align: top;
  height: 85px;
  padding: 6px;
  font-size: 0.8rem;
  transition: all 0.15s ease;
  position: relative;
  cursor: pointer;
}

.calendar-month-table td:hover {
  background: #FFF7ED;
}

.calendar-month-table td.cal-cell-empty {
  cursor: default;
  background: #F8FAFC !important;
}

.calendar-month-table td.cal-cell-active {
  box-shadow: 0 0 0 2px var(--saffron) inset, 0 4px 10px rgba(234, 88, 12, 0.15);
  background: #FFFBEB !important;
  position: relative;
  z-index: 2;
}

.cal-cell-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2px;
}

.cal-day-num {
  font-size: 0.95rem;
  font-weight: 700;
  color: #0F172A;
  user-select: none;
  -webkit-user-select: none;
  pointer-events: none;
}

.cal-tithi-label {
  font-size: 0.72rem;
  color: #C2410C;
  margin-top: 2px;
  font-weight: 600;
  user-select: none;
  -webkit-user-select: none;
  pointer-events: none;
}

.cal-fest-pill {
  background: #FEF3C7;
  color: #92400E;
  padding: 2px 4px;
  border-radius: 4px;
  font-size: 0.68rem;
  font-weight: 700;
  margin-top: 4px;
  display: inline-block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  user-select: none;
  -webkit-user-select: none;
  pointer-events: none;
}

.cal-fest-indicator {
  display: none;
  color: #D97706;
  font-size: 0.65rem;
  margin-top: 2px;
  line-height: 1;
}

.cal-purnima {
  background: #FEF9C3 !important;
}

.cal-amavasya {
  background: #F1F5F9 !important;
}

.cal-ekadashi {
  background: #FFF7ED !important;
  border-left: 3px solid #EA580C !important;
}

.cal-pradosh {
  background: #EFF6FF !important;
  border-left: 3px solid #2563EB !important;
}

/* Calendar View Switcher (Grid vs List) */
.cal-view-switcher {
  display: inline-flex;
  background: #F1F5F9;
  padding: 4px;
  border-radius: 30px;
  border: 1px solid #E2E8F0;
  gap: 4px;
}

.cal-view-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  border: none;
  background: transparent;
  color: #475569;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.cal-view-tab:hover {
  color: #0F172A;
}

.cal-view-tab.active {
  background: var(--saffron);
  color: #FFFFFF;
  box-shadow: 0 2px 6px rgba(234, 88, 12, 0.25);
}

/* Interactive Day Preview Card */
.cal-day-preview-card {
  background: #FFFDF9;
  border: 1px solid #FED7AA;
  border-left: 5px solid var(--saffron);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  margin-top: 18px;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}

.cal-preview-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  border-bottom: 1px solid #FED7AA;
  padding-bottom: 12px;
  margin-bottom: 14px;
}

.cal-preview-date-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cal-preview-day-num {
  background: var(--saffron);
  color: #FFF;
  font-size: 1.5rem;
  font-weight: 800;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  box-shadow: 0 2px 6px rgba(234, 88, 12, 0.2);
}

.cal-preview-full-date {
  font-size: 1.15rem;
  font-weight: 700;
  color: #7C2D12;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.cal-preview-weekday {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.cal-preview-festival-banner {
  background: #FEF3C7;
  border: 1px solid #FDE68A;
  color: #92400E;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.92rem;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.cal-preview-details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.cal-preview-detail-item {
  background: #FFFFFF;
  border: 1px solid #FED7AA;
  border-radius: var(--radius-sm);
  padding: 8px 12px;
}

.cal-preview-label {
  font-size: 0.75rem;
  color: #64748B;
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 3px;
}

.cal-preview-val {
  font-size: 0.92rem;
  font-weight: 600;
  color: #0F172A;
}

.cal-preview-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 10px;
  border-top: 1px dashed #FED7AA;
}

.cal-preview-hint {
  font-size: 0.8rem;
  color: #9A3412;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Agenda / List View */
.cal-list-view {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cal-list-item {
  background: #FFFFFF;
  border: 1px solid #FED7AA;
  border-radius: var(--radius-md);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: all 0.2s ease;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow-sm);
}

.cal-list-item:hover {
  border-color: var(--saffron);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.cal-list-item.cal-list-today {
  border: 2px solid var(--saffron);
  background: #FFFDF7;
}

.cal-list-date-box {
  min-width: 48px;
  height: 50px;
  background: #FFF7ED;
  border: 1px solid #FED7AA;
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1.1;
  color: #7C2D12;
  font-weight: 700;
}

.cal-list-today .cal-list-date-box {
  background: var(--saffron);
  color: #FFFFFF;
  border-color: var(--saffron);
}

.cal-list-date-num {
  font-size: 1.2rem;
}

.cal-list-date-day {
  font-size: 0.65rem;
  text-transform: uppercase;
}

.cal-list-content {
  flex-grow: 1;
  min-width: 0;
}

.cal-list-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 2px;
}

.cal-list-tithi {
  font-weight: 700;
  font-size: 0.95rem;
  color: #0F172A;
}

.cal-list-sub {
  font-size: 0.8rem;
  color: #64748B;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.cal-list-festival {
  margin-top: 4px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #92400E;
  background: #FEF3C7;
  padding: 2px 8px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  max-width: 100%;
}

.cal-list-action {
  display: flex;
  align-items: center;
}

.cal-list-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #FFF7ED;
  color: #7C2D12;
  border: 1px solid #FED7AA;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  transition: all 0.2s ease;
}

.cal-list-item:hover .cal-list-btn {
  background: var(--saffron);
  color: #FFFFFF;
  border-color: var(--saffron);
}

/* Calendar Month Navigation Toolbar */
.cal-nav-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  background: #FFF7ED;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  border: 1px solid #FED7AA;
  margin-bottom: 20px;
}

.cal-nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  background: #FFFFFF;
  border: 1px solid #FDBA74;
  color: #7C2D12;
  font-weight: 600;
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.cal-nav-btn:hover {
  background: var(--saffron);
  color: #FFFFFF;
  border-color: var(--saffron);
}

.cal-nav-form {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.cal-nav-actions {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.cal-select {
  padding: 6px 12px;
  border: 1px solid #CBD5E1;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  background: #FFFFFF;
  color: #0F172A;
  font-weight: 500;
  outline: none;
}

.cal-select:focus {
  border-color: var(--saffron);
}

.cal-today-badge {
  background: var(--saffron);
  color: #FFFFFF;
  font-size: 0.65rem;
  padding: 2px 6px;
  border-radius: 10px;
  font-weight: 600;
}

/* Choghadiya Table */
.choghadiya-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
}

.choghadiya-table th, .choghadiya-table td {
  padding: 10px 14px;
  border-bottom: 1px solid #E2E8F0;
  text-align: left;
  font-size: 0.9rem;
}

.choghadiya-table th {
  background: #F8FAFC;
  font-weight: 600;
  color: #475569;
}

.choghadiya-pill {
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 700;
  color: #FFF;
  display: inline-block;
}

/* Kundli Details & SVG View */
.kundli-grid {
  display: grid;
  grid-template-columns: 460px 1fr;
  gap: 25px;
}

.table-astro {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.table-astro th {
  background: #F8FAFC;
  padding: 9px 12px;
  color: #475569;
  font-weight: 600;
  border-bottom: 2px solid #E2E8F0;
  text-align: left;
}

.table-astro td {
  padding: 9px 12px;
  border-bottom: 1px solid #F1F5F9;
}

.table-astro tr:hover td {
  background: #FFFDF9;
}

/* Modal Popup (for signup gatekeeper) */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-overlay.active {
  display: flex;
}

.modal-box {
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  max-width: 500px;
  width: 100%;
  padding: 30px;
  position: relative;
  box-shadow: 0 20px 40px rgba(0,0,0,0.2);
  border: 1px solid #FED7AA;
  animation: modalSlide 0.25s ease;
}

@keyframes modalSlide {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

.modal-close-btn {
  position: absolute;
  top: 15px;
  right: 18px;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #94A3B8;
}

.modal-close-btn:hover {
  color: #0F172A;
}

/* Footer */
.site-footer {
  background: #0F172A;
  color: #94A3B8;
  margin-top: auto;
  border-top: 4px solid var(--saffron);
}

.footer-main {
  padding: 50px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 30px;
}

.footer-col h4 {
  color: #F8FAFC;
  font-size: 1.05rem;
  margin-bottom: 16px;
  position: relative;
  padding-bottom: 8px;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 32px;
  height: 2px;
  background: var(--saffron);
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 8px;
}

.footer-col ul li a {
  color: #94A3B8;
  font-size: 0.9rem;
}

.footer-col ul li a:hover {
  color: #FDBA74;
  padding-left: 4px;
}

.footer-bottom {
  background: #020617;
  padding: 16px 0;
  font-size: 0.825rem;
  text-align: center;
  border-top: 1px solid #1E293B;
}

/* Print Styles for Kundli Patrika PDF Download */
@media print {
  body {
    background: #FFF;
    color: #000;
    font-size: 11pt;
  }

  .site-header, .top-bar, .site-footer, .no-print, .btn, button, .modal-overlay {
    display: none !important;
  }

  .print-only {
    display: block !important;
  }

  .container {
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  .astro-card {
    border: 1px solid #000 !important;
    box-shadow: none !important;
    page-break-inside: avoid;
    margin-bottom: 15px;
  }

  .kundli-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 15px !important;
  }
}

/* Responsive Breakpoints */
@media (max-width: 1200px) {
  .brand-text p {
    display: none;
  }
  .nav-link {
    font-size: 0.81rem;
    padding: 5px 6px;
    gap: 3px;
  }
  .nav-drawer {
    margin-left: 8px;
    gap: 6px;
  }
  .btn-auth {
    padding: 5px 10px;
    font-size: 0.8rem;
  }
}

@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .kundli-grid {
    grid-template-columns: 1fr;
  }
  .rashi-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  /* Responsive Navigation Drawer */
  .mobile-nav-toggle {
    display: block;
  }
  .nav-drawer {
    display: none;
    flex-direction: column;
    align-items: stretch;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #FFFFFF;
    border-bottom: 2px solid var(--border-gold);
    box-shadow: var(--shadow-lg);
    padding: 18px 20px;
    margin-left: 0;
    gap: 14px;
    z-index: 1000;
  }
  .nav-drawer.open {
    display: flex;
  }
  .nav-menu {
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
  }
  .nav-auth-group {
    display: flex;
    width: 100%;
    padding-top: 14px;
    border-top: 1px solid #F1F5F9;
    gap: 10px;
  }
  .nav-auth-group .btn-auth {
    flex: 1;
    text-align: center;
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 14px;
  }
  .hero-section {
    padding: 28px 0;
  }
  .hero-title {
    font-size: 1.75rem;
  }
  .home-panchang-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 25px;
  }
  .featured-calc-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .astro-card {
    padding: 18px 14px;
  }
  .quick-kundli-box {
    padding: 18px 14px;
  }
  .panchang-meta-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .rashi-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }
  .rashi-tab-btn {
    padding: 8px 4px;
  }
  .rashi-name {
    font-size: 0.75rem;
  }
  .cal-nav-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 10px 12px;
  }
  .cal-nav-toolbar > .cal-nav-btn {
    width: 100%;
    text-align: center;
    justify-content: center;
  }
  .cal-nav-form {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }
  .cal-nav-form .cal-select {
    flex: 1 1 calc(50% - 6px);
    min-width: 110px;
  }
  .cal-nav-form .cal-nav-btn {
    flex: 1 1 100%;
    justify-content: center;
    text-align: center;
  }
  .cal-nav-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    width: 100%;
  }
  .cal-nav-actions .cal-nav-btn {
    flex: 1 1 calc(50% - 6px);
    justify-content: center;
    text-align: center;
    font-size: 0.8rem;
    padding: 7px 10px;
  }

  /* Mobile Responsive Calendar Grid & Table */
  .cal-th-full {
    display: none;
  }
  .cal-th-short {
    display: inline;
  }
  .calendar-month-table {
    table-layout: fixed;
    width: 100%;
  }
  .calendar-month-table th {
    padding: 7px 1px;
    font-size: 0.72rem;
  }
  .calendar-month-table td {
    height: auto;
    min-height: 54px;
    padding: 4px 1px;
    text-align: center;
    -webkit-tap-highlight-color: transparent;
  }
  .cal-cell-header {
    justify-content: center;
    position: relative;
    margin-bottom: 1px;
  }
  .cal-day-num {
    font-size: 0.85rem;
    display: inline-block;
  }
  .cal-today-cell .cal-day-num {
    background: var(--saffron);
    color: #FFFFFF !important;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    line-height: 22px;
    font-size: 0.78rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
  }
  .cal-tithi-label {
    font-size: 0.62rem;
    line-height: 1.15;
    margin-top: 1px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    display: block;
  }
  .cal-nakshatra-text {
    display: none;
  }
  .cal-fest-pill {
    display: none;
  }
  .cal-fest-indicator {
    display: inline-block;
  }
  .cal-today-badge {
    display: none;
  }
  .cal-preview-details-grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .cal-preview-footer {
    flex-direction: column;
    align-items: stretch;
  }
  .cal-preview-action {
    width: 100%;
  }
  .cal-preview-action .btn-primary {
    width: 100%;
    justify-content: center;
    text-align: center;
  }
  .cal-view-switcher {
    width: 100%;
    display: flex;
  }
  .cal-view-tab {
    flex: 1;
    justify-content: center;
    text-align: center;
  }
  .form-row-2, .form-row-3 {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 12px;
  }
  .hero-section {
    padding: 20px 0;
  }
  .hero-title {
    font-size: 1.45rem;
    line-height: 1.3;
  }
  .hero-lead {
    font-size: 0.9rem;
    margin-bottom: 18px;
  }
  .astro-card {
    padding: 16px 12px;
  }
  .quick-kundli-box {
    padding: 16px 12px;
  }
  .rashi-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
  }
  .rashi-tab-btn {
    padding: 6px 2px;
  }
  .rashi-icon {
    font-size: 1.25rem;
  }
  .rashi-name {
    font-size: 0.7rem;
  }
  .horoscope-detail-box {
    padding: 16px 12px;
  }
  .table-astro td, .table-astro th {
    padding: 7px 8px;
    font-size: 0.8rem;
  }
  .choghadiya-table th, .choghadiya-table td {
    padding: 7px 8px;
    font-size: 0.8rem;
  }
  .cal-nav-actions .cal-nav-btn {
    flex: 1 1 100%;
  }
  .card-title-styled {
    font-size: 1.1rem;
  }

  /* Ultra-compact styles for small mobile screens (<= 480px) */
  .calendar-month-table th {
    font-size: 0.64rem;
    padding: 5px 0;
  }
  .calendar-month-table td {
    min-height: 48px;
    padding: 3px 0;
  }
  .cal-day-num {
    font-size: 0.78rem;
  }
  .cal-today-cell .cal-day-num {
    width: 19px;
    height: 19px;
    line-height: 19px;
    font-size: 0.72rem;
  }
  .cal-tithi-label {
    font-size: 0.54rem;
  }
  .cal-fest-indicator {
    font-size: 0.6rem;
  }
  .cal-view-tab {
    padding: 6px 10px;
    font-size: 0.8rem;
  }
  .cal-day-preview-card {
    padding: 14px 12px;
  }
  .cal-preview-day-num {
    width: 42px;
    height: 42px;
    font-size: 1.3rem;
  }
  .cal-preview-full-date {
    font-size: 0.95rem;
  }
  .cal-list-item {
    padding: 10px 12px;
    gap: 10px;
  }
  .cal-list-date-box {
    min-width: 42px;
    height: 44px;
  }
  .cal-list-date-num {
    font-size: 1.05rem;
  }
  .cal-list-tithi {
    font-size: 0.88rem;
  }
}

/* City Autocomplete Type-Ahead Component */
.city-autocomplete-wrapper {
  position: relative;
  width: 100%;
}

.city-autocomplete-input {
  width: 100%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%2394A3B8' viewBox='0 0 24 24'%3E%3Cpath d='M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px 16px;
  padding-right: 36px;
}

.city-autocomplete-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: #FFFFFF;
  border: 1px solid #CBD5E1;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.15), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  max-height: 280px;
  overflow-y: auto;
  z-index: 1050;
  display: none;
}

.city-autocomplete-dropdown.show {
  display: block;
}

.city-autocomplete-item {
  padding: 10px 14px;
  cursor: pointer;
  border-bottom: 1px solid #F1F5F9;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  transition: background 0.15s ease;
}

.city-autocomplete-item:last-child {
  border-bottom: none;
}

.city-autocomplete-item:hover,
.city-autocomplete-item.active {
  background: #FFF7ED;
}

.city-autocomplete-name {
  font-weight: 600;
  color: #0F172A;
  font-size: 0.9rem;
}

.city-autocomplete-name mark {
  background: #FEF08A;
  color: #713F12;
  padding: 0 2px;
  border-radius: 2px;
}

.city-autocomplete-sub {
  font-size: 0.775rem;
  color: #64748B;
  margin-top: 2px;
}

.city-autocomplete-badge {
  font-size: 0.72rem;
  background: #F1F5F9;
  color: #475569;
  padding: 3px 8px;
  border-radius: 12px;
  white-space: nowrap;
}

.city-autocomplete-item:hover .city-autocomplete-badge,
.city-autocomplete-item.active .city-autocomplete-badge {
  background: #FED7AA;
  color: #7C2D12;
}

.city-autocomplete-loading,
.city-autocomplete-empty {
  padding: 14px 16px;
  font-size: 0.85rem;
  color: #64748B;
  text-align: center;
}
