/* ==========================================================================
   ACHARYA PANKAJ ASTRO - Stylesheet
   Vedic Spiritual Luxury Aesthetics: Dark Red (गहरा लाल), Royal Blue (गहरा नीला), Gold (स्वर्ण)
   High Contrast & Crisp Legibility
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@500;600;700;800;900&family=Noto+Sans+Devanagari:wght@400;500;600;700;800;900&family=Poppins:wght@400;500;600;700;800&family=Rozha+One&family=Yatra+One&display=swap');

:root {
  --primary-dark-red: #7c0a0a;
  --primary-dark-red-deep: #4c0505;
  --primary-royal-blue: #0b1d3a;
  --primary-royal-blue-deep: #061021;
  --royal-blue-accent: #1e3a8a;
  --gold-accent: #d4af37;
  --gold-light: #fef08a;
  --gold-dark: #a16207;
  --bg-creme: #fdfbf7;
  --bg-surface: #ffffff;
  --text-main: #0f172a;
  --text-dark-red: #500707;
  --text-dark-blue: #091e42;
  --text-muted: #334155;
  --border-gold: rgba(212, 175, 55, 0.4);
  --shadow-royal: 0 12px 32px -4px rgba(11, 29, 58, 0.2);
}

body {
  font-family: 'Noto Sans Devanagari', 'Poppins', sans-serif;
  background-color: var(--bg-creme);
  color: var(--text-main);
  overflow-x: hidden;
  line-height: 1.7;
}

h1, h2, h3, .font-heading {
  font-family: 'Rozha One', 'Noto Sans Devanagari', serif;
  letter-spacing: 0.01em;
}

.font-english-heading {
  font-family: 'Cinzel', serif;
  letter-spacing: 0.04em;
}

.font-devanagari {
  font-family: 'Noto Sans Devanagari', sans-serif;
}

/* Background Gradients: Dark Red + Royal Deep Blue Hybrid */
.bg-dark-vedic {
  background: linear-gradient(135deg, #061021 0%, #0b1d3a 50%, #3d0404 100%) !important;
  background-color: #061021 !important;
  color: #e2e8f0 !important;
}

.bg-vedic-gradient {
  background: linear-gradient(135deg, #091528 0%, #11284d 40%, #580808 80%, #3d0404 100%);
}

.bg-dark-red-gradient {
  background: linear-gradient(135deg, #7c0a0a 0%, #580808 50%, #380404 100%);
}

.bg-royal-blue-gradient {
  background: linear-gradient(135deg, #0f274a 0%, #0b1d3a 50%, #061021 100%);
}

.bg-red-blue-bar {
  background: linear-gradient(90deg, #3d0404 0%, #630808 30%, #0b1d3a 70%, #061021 100%);
}

.bg-gold-gradient {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 50%, #eab308 100%);
}

.bg-gold-button {
  background: linear-gradient(135deg, #d4af37 0%, #b45309 100%);
  color: #ffffff;
  font-weight: 700;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
  transition: all 0.3s ease;
}

.bg-gold-button:hover {
  background: linear-gradient(135deg, #eab308 0%, #ca8a04 100%);
  box-shadow: 0 8px 24px rgba(212, 175, 55, 0.45);
  transform: translateY(-2px);
}

.bg-red-button {
  background: linear-gradient(135deg, #991b1b 0%, #7c0a0a 100%);
  color: #ffffff;
  transition: all 0.3s ease;
}

.bg-red-button:hover {
  background: linear-gradient(135deg, #b91c1c 0%, #991b1b 100%);
  box-shadow: 0 8px 24px rgba(153, 27, 27, 0.35);
  transform: translateY(-2px);
}

.bg-blue-button {
  background: linear-gradient(135deg, #1e3a8a 0%, #0f274a 100%);
  color: #ffffff;
  transition: all 0.3s ease;
}

.bg-blue-button:hover {
  background: linear-gradient(135deg, #2563eb 0%, #1e3a8a 100%);
  box-shadow: 0 8px 24px rgba(30, 58, 138, 0.35);
  transform: translateY(-2px);
}

.bg-dark-vedic {
  background: linear-gradient(180deg, #08111f 0%, #040810 100%);
}

/* Crisp Text Contrast Utilities */
.text-dark-contrast {
  color: #091528 !important;
}

.text-red-contrast {
  color: #580808 !important;
}

.text-blue-contrast {
  color: #0b254a !important;
}

/* Yantra Pattern Backgrounds */
.pattern-yantra {
  background-image: radial-gradient(rgba(212, 175, 55, 0.15) 1.2px, transparent 0);
  background-size: 24px 24px;
}

/* Gold Text Shimmer */
.text-gold-shimmer {
  background: linear-gradient(90deg, #fef08a 0%, #facc15 50%, #eab308 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  font-weight: 800;
}

/* Lo Shu Grid Table Styling */
.loshu-grid-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  width: 100%;
  max-width: 340px;
  margin: 0 auto;
  padding: 14px;
  background: #0b1d3a;
  border-radius: 18px;
  border: 2px solid #d4af37;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.loshu-cell {
  background: linear-gradient(145deg, #132a52, #08162d);
  border: 1.5px solid rgba(212, 175, 55, 0.4);
  border-radius: 12px;
  min-height: 85px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
}

.loshu-cell.has-number {
  background: linear-gradient(145deg, #7c0a0a, #4a0606);
  border-color: #fde047;
  box-shadow: 0 0 15px rgba(234, 179, 8, 0.4), inset 0 1px 2px rgba(255, 255, 255, 0.2);
}

.loshu-cell .active-num {
  font-family: 'Cinzel', serif;
  color: #fef08a;
  font-weight: 900;
  letter-spacing: 2px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
}

.loshu-cell .empty-num {
  color: #475569;
  font-size: 20px;
  font-weight: 300;
}

/* Card Hover Animations */
.vedic-card {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 20px;
  box-shadow: 0 4px 16px -2px rgba(15, 23, 42, 0.08);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.vedic-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px -4px rgba(15, 23, 42, 0.15);
  border-color: #d4af37;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 9px;
  height: 9px;
}

::-webkit-scrollbar-track {
  background: #0b1d3a;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #7c0a0a, #d4af37);
  border-radius: 5px;
}

/* Floating WhatsApp Button */
.whatsapp-float {
  position: fixed;
  bottom: 26px;
  right: 26px;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  color: white;
  border-radius: 50%;
  text-align: center;
  font-size: 32px;
  line-height: 60px;
  box-shadow: 0 8px 25px rgba(22, 163, 74, 0.45);
  z-index: 100;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border: 2px solid #ffffff;
}

.whatsapp-float:hover {
  transform: scale(1.1) rotate(8deg);
  box-shadow: 0 12px 30px rgba(22, 163, 74, 0.6);
}

/* Navigation Tab Active Indicator */
.nav-tab-active {
  color: #7c0a0a !important;
  font-weight: 800 !important;
  background-color: #fef3c7 !important;
  border-bottom: 3px solid #7c0a0a !important;
}

/* 6-Stage Order Tracker Line */
.order-step-line {
  height: 4px;
  background-color: #e2e8f0;
  flex-grow: 1;
  position: relative;
  top: -14px;
  z-index: 1;
}

.order-step-line.completed {
  background: linear-gradient(90deg, #16a34a, #22c55e);
}

.order-step-circle {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background-color: #ffffff;
  border: 2px solid #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: #64748b;
  position: relative;
  z-index: 2;
  transition: all 0.3s ease;
}

.order-step-item.completed .order-step-circle {
  background: #16a34a;
  border-color: #16a34a;
  color: #ffffff;
}

.order-step-item.active .order-step-circle {
  background: #7c0a0a;
  border-color: #fde047;
  color: #ffffff;
  box-shadow: 0 0 0 4px rgba(124, 10, 10, 0.25);
}

/* PDF Print / A4 Layout */
@media print {
  body * {
    visibility: hidden;
  }
  #report-page-container, #report-page-container * {
    visibility: visible;
  }
  #report-page-container {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    margin: 0;
    padding: 0;
  }
  .no-print {
    display: none !important;
  }
  .print-page {
    page-break-after: always;
    border: none !important;
    box-shadow: none !important;
    min-height: 100vh;
    padding: 20mm !important;
  }
}
