/* ==========================================================================
   COSMICVEDA DESIGN SYSTEM (Astrotalk-Inspired Premium Cosmic Theme)
   Palette: Soft Ivory/Pearl White (#FFFDF7 / #FFFFFF)
   Primary: Deep Mystic Violet (#6D28D9 / #5B21B6)
   Secondary/Divine: Radiant Gold (#D4AF37 / #F59E0B)
   Text: Slate (#1E293B / #475569)
   Status: Online (#10B981), Busy (#F59E0B), Offline (#94A3B8)
   ========================================================================== */

:root {
  --bg-primary: #FFFDF7;
  --bg-surface: #FFFFFF;
  --bg-subtle: #F8FAFC;
  --bg-violet-subtle: #F5F3FF;
  --bg-gold-subtle: #FFFBEB;
  
  --primary-violet: #6D28D9;
  --primary-violet-hover: #5B21B6;
  --primary-violet-glow: rgba(109, 40, 217, 0.25);
  
  --radiant-gold: #D4AF37;
  --radiant-amber: #F59E0B;
  --gold-glow: rgba(212, 175, 55, 0.35);

  --text-heading: #1E293B;
  --text-body: #475569;
  --text-muted: #64748B;
  --text-light: #94A3B8;

  --border-subtle: #E2E8F0;
  --border-violet: rgba(109, 40, 217, 0.2);
  --border-gold: rgba(212, 175, 55, 0.3);

  --status-online: #10B981;
  --status-busy: #F59E0B;
  --status-offline: #94A3B8;
  --status-danger: #EF4444;

  --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.05);
  --shadow-card: 0 4px 20px -2px rgba(109, 40, 217, 0.08), 0 2px 6px -1px rgba(0, 0, 0, 0.04);
  --shadow-elevated: 0 12px 30px -4px rgba(109, 40, 217, 0.15), 0 4px 10px -2px rgba(0, 0, 0, 0.05);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  --font-heading: 'Cinzel', serif, Georgia;
  --font-body: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  overflow-x: hidden;
  width: 100%;
}

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

/* Typography */
h1, h2, h3, h4, .brand-font {
  font-family: var(--font-heading);
  color: var(--text-heading);
  font-weight: 700;
  line-height: 1.25;
}

a {
  color: var(--primary-violet);
  text-decoration: none;
  transition: var(--transition);
}

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

/* Container */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Sticky Header */
.sticky-header {
  position: sticky;
  top: 0;

  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  /* height: 70px; */
}

.brand-wrap {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--primary-violet);
  flex-shrink: 0;
}

.brand-icon {
  font-size: 1.8rem;
  color: var(--radiant-amber);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-heading);
  padding: 0.4rem 0.6rem;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
  position: relative;
}

.nav-link:hover, .nav-link.active {
  color: var(--primary-violet) !important;
  background: var(--bg-violet-subtle);
  font-weight: 800;
  box-shadow: inset 0 -2.5px 0 var(--primary-violet);
}

/* Mobile Hamburger Toggle Button */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 36px;
  height: 36px;
  padding: 8px 6px;
  background: transparent;
  border: 1.5px solid var(--border-subtle);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.25s ease;
}

.mobile-menu-toggle:hover {
  background: var(--bg-subtle);
  border-color: var(--primary-violet);
}

.hamburger-bar {
  display: block;
  width: 100%;
  height: 2.5px;
  background: var(--text-heading);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.mobile-menu-toggle.open .hamburger-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
  background: var(--primary-violet);
}

.mobile-menu-toggle.open .hamburger-bar:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.mobile-menu-toggle.open .hamburger-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
  background: var(--primary-violet);
}

/* Collapsible Mobile Navigation Drawer Base */
.mobile-nav-drawer {
  display: block;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 2px solid var(--border-subtle);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
  transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
  z-index: 999;
}

.mobile-nav-drawer.active {
  max-height: calc(100vh - 65px);
  overflow-y: auto;
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.8rem 1.25rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-heading);
  text-decoration: none;
  border-bottom: 1px solid #F1F5F9;
  transition: all 0.2s ease;
}

.mobile-nav-link:hover {
  background: #F8FAFC;
  color: var(--primary-violet);
  padding-left: 1.5rem;
}

.mobile-nav-link.active {
  background: #EDE9FE !important;
  color: #6D28D9 !important;
  font-weight: 800 !important;
  border-left: 4px solid #6D28D9;
  padding-left: 1.25rem;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

/* Language Toggle Pill */
.lang-toggle {
  display: flex;
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 2px;
}

.lang-btn {
  padding: 0.25rem 0.6rem;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  color: var(--text-muted);
}

.lang-btn.active {
  background: var(--primary-violet);
  color: #fff;
}

/* Wallet Balance Pill */
.wallet-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--bg-gold-subtle);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-full);
  padding: 0.35rem 0.85rem;
  font-weight: 700;
  font-size: 0.85rem;
  color: #92400e;
  cursor: pointer;
  transition: var(--transition);
}

.wallet-pill:hover {
  background: #fef3c7;
  transform: translateY(-1px);
}

.wallet-plus {
  background: var(--radiant-amber);
  color: #fff;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 900;
}

/* Buttons */
.btn-cosmic {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.55rem 1.25rem;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid transparent;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-violet) 0%, var(--primary-violet-hover) 100%);
  color: #fff;
  box-shadow: 0 4px 12px var(--primary-violet-glow);
}

.btn-primary:hover {
  background: var(--primary-violet-hover);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(109, 40, 217, 0.35);
}

.btn-gold {
  background: linear-gradient(135deg, #F59E0B 0%, #D4AF37 100%);
  color: #fff;
  box-shadow: 0 4px 12px var(--gold-glow);
}

.btn-gold:hover {
  transform: translateY(-2px);
  color: #fff;
  box-shadow: 0 6px 18px rgba(245, 158, 11, 0.4);
}

.btn-outline {
  background: var(--bg-surface);
  border-color: var(--border-subtle);
  color: var(--text-heading);
}

.btn-outline:hover {
  border-color: var(--primary-violet);
  color: var(--primary-violet);
  background: var(--bg-violet-subtle);
}

.btn-danger {
  background: var(--status-danger);
  color: #fff;
}

/* Hero Carousel Banner */
.hero-slider-wrap {
  margin: 1.5rem 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-card);
  background: linear-gradient(135deg, #4C1D95 0%, #2E1065 100%);
  color: #fff;
}

.hero-slide {
  padding: 3rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 750px;
}

.hero-slide h1 {
  color: #FFFFFF;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  line-height: 1.15;
}

.hero-slide p {
  color: #E9D5FF;
  font-size: 1.05rem;
}

/* Quick Action Chips */
.quick-chips-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.75rem;
  margin: 1.5rem 0 2.5rem;
}

.chip-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  color: var(--text-heading);
  font-weight: 600;
  font-size: 0.9rem;
}

.chip-card:hover {
  border-color: var(--primary-violet);
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
  color: var(--primary-violet);
}

.chip-icon {
  font-size: 1.6rem;
}

/* Astrologers Grid */
.astro-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin: 1.5rem 0;
}

.astro-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: var(--transition);
}

.astro-card:hover {
  border-color: var(--border-violet);
  transform: translateY(-3px);
  box-shadow: var(--shadow-elevated);
}

.astro-card-top {
  display: flex;
  gap: 1rem;
}

.astro-avatar-wrap {
  position: relative;
  width: 76px;
  height: 76px;
  flex-shrink: 0;
}

.astro-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border-subtle);
}

.status-badge {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid #fff;
}

.status-badge.online { background: var(--status-online); }
.status-badge.busy { background: var(--status-busy); }
.status-badge.offline { background: var(--status-offline); }

.astro-details h3 {
  font-size: 1.15rem;
  margin-bottom: 0.2rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.verified-icon {
  color: #0284c7;
  font-size: 1rem;
}

.astro-spec {
  color: var(--text-muted);
  font-size: 0.8rem;
  margin-bottom: 0.2rem;
}

.astro-stats-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0.75rem 0;
}

.astro-price {
  font-weight: 800;
  color: var(--primary-violet);
  font-size: 1.1rem;
  margin-left: auto;
}

.astro-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-top: auto;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-subtle);
}

/* Modals */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

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

.modal-card {
  width: 100%;
  max-width: 480px;
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  position: relative;
  animation: modalEnter 0.25s ease-out;
}

@keyframes modalEnter {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  background: none;
  border: none;
  font-size: 1.6rem;
  color: var(--text-light);
  cursor: pointer;
}

.modal-close:hover {
  color: var(--text-heading);
}

/* Forms */
.form-group {
  margin-bottom: 1rem;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-heading);
  margin-bottom: 0.35rem;
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 0.95rem;
  background: var(--bg-surface);
  color: var(--text-heading);
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-violet);
  box-shadow: 0 0 0 3px var(--primary-violet-glow);
}

/* Consultation Room */
.consult-grid {
  display: grid;
  grid-template-columns: 340px 1fr;
  height: calc(100vh - 120px);
  gap: 1.25rem;
  margin: 1rem 0;
}

.chat-pane {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.chat-header {
  padding: 1rem 1.25rem;
  background: var(--bg-subtle);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.bubble {
  max-width: 78%;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.92rem;
  line-height: 1.45;
}

.bubble-user {
  align-self: flex-end;
  background: var(--primary-violet);
  color: #fff;
  border-bottom-right-radius: 2px;
}

.bubble-astrologer {
  align-self: flex-start;
  background: var(--bg-subtle);
  color: var(--text-heading);
  border: 1px solid var(--border-subtle);
  border-bottom-left-radius: 2px;
}

.bubble-system {
  align-self: center;
  background: var(--bg-gold-subtle);
  border: 1px dashed var(--radiant-amber);
  color: #92400e;
  font-size: 0.8rem;
  text-align: center;
  max-width: 90%;
}

.chat-input-bar {
  padding: 0.85rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  gap: 0.5rem;
}

/* ==========================================================================
   COMPREHENSIVE RESPONSIVE DESIGN SYSTEM
   1. TABLETS / SMALL LAPTOPS (<= 1024px)
   2. TABLETS & LARGE MOBILE (<= 768px)
   3. SMARTPHONES & COMPACT MOBILE (<= 480px)
   ========================================================================== */

/* --------------------------------------------------------------------------
   BREAKPOINT 1: TABLETS & SMALL LAPTOPS (max-width: 1024px)
   Activates mobile drawer so 10 links never overflow 1024px screens
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  html, body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
  }

  .container {
    width: 100%;
    max-width: 100%;
    padding: 0 1rem;
    box-sizing: border-box;
  }

  /* Header: Hide 10 desktop links and activate mobile hamburger */
  .main-nav {
    display: none !important;
  }

  .mobile-menu-toggle {
    display: flex !important;
  }

  .header-actions .btn-cosmic:not(#openAuthModalBtn) {
    display: none !important; /* Ledger & Admin buttons cleanly accessible in drawer */
  }

  .header-inner {
    width: 100%;
    justify-content: space-between;
    align-items: center;
  }

  .brand-wrap {
    font-size: 1.15rem;
    gap: 0.4rem;
  }

  .brand-icon {
    font-size: 1.6rem;
  }

  .header-actions {
    gap: 0.5rem;
  }

  /* Hero Slider Banner */
  .hero-slide {
    padding: 2.25rem 1.75rem;
  }

  .hero-slide h1 {
    font-size: 2rem;
  }

  .hero-slide p {
    font-size: 0.95rem;
  }

  /* Quick Action Chips: 3 columns */
  .quick-chips-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 0.75rem;
  }

  /* Astrologers Grid: 2 columns */
  .astro-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1rem;
  }

  /* Consultation Room (Voice / Chat) */
  .consult-grid {
    grid-template-columns: 1fr !important;
    height: auto;
    min-height: calc(100vh - 120px);
  }

  /* Dashboards Metric Grids */
  .metrics-grid,
  .dashboard-stats-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1rem !important;
  }

  /* Panchang & Vedic Content Grids */
  .panchang-grid,
  .shastra-grid,
  .mantra-grid,
  .nakshatra-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1rem !important;
  }

  /* Footer Layout */
  .footer-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 2rem !important;
  }
}

/* --------------------------------------------------------------------------
   BREAKPOINT 2: TABLETS & LARGE MOBILE (max-width: 768px)
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  .container {
    padding: 0 1rem;
  }

  /* Typography scale */
  h1 { font-size: 1.65rem !important; }
  h2 { font-size: 1.35rem !important; }
  h3 { font-size: 1.12rem !important; }

  /* Brand and Header */
  .brand-wrap {
    font-size: 1.08rem;
    gap: 0.35rem;
  }

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

  /* Hero Slider Banner */
  .hero-slider-wrap {
    margin: 1.25rem 0;
    border-radius: var(--radius-md);
  }

  .hero-slide {
    padding: 1.75rem 1.25rem;
    max-width: 100%;
  }

  .hero-slide h1 {
    font-size: 1.65rem !important;
    line-height: 1.25;
  }

  .hero-slide p {
    font-size: 0.9rem;
  }

  /* Quick Action Chips: 3 columns */
  .quick-chips-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 0.55rem;
    margin: 1.25rem 0 2rem;
  }

  .chip-card {
    padding: 0.7rem 0.8rem;
    font-size: 0.82rem;
    gap: 0.5rem;
  }

  .chip-icon {
    font-size: 1.35rem;
  }

  /* Astrologers Grid: 1 column clean cards */
  .astro-grid {
    grid-template-columns: 1fr !important;
    gap: 1rem;
  }

  .astro-card {
    padding: 1.1rem;
  }

  .astro-avatar-wrap {
    width: 68px;
    height: 68px;
  }

  .astro-actions {
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
  }

  /* Consultation Room (Voice Call & Chat) */
  .chat-pane {
    height: 75vh;
  }

  .bubble {
    max-width: 88%;
    font-size: 0.88rem;
  }

  /* Modals */
  .modal-overlay {
    padding: 0.75rem;
  }

  .modal-card {
    max-width: 440px;
    width: 95%;
    padding: 1.5rem 1.25rem;
    max-height: 90vh;
    overflow-y: auto;
  }

  /* Responsive Tables Wrapper */
  .table-responsive,
  table {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  /* Panchang & Directory Grids */
  .panchang-grid,
  .shastra-grid,
  .mantra-grid,
  .nakshatra-grid {
    grid-template-columns: 1fr !important;
  }

  /* Dashboards & Admin Action Bars */
  .dashboard-header-bar,
  .admin-top-bar {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0.85rem !important;
  }

  /* Footer Layout */
  .footer-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1.75rem !important;
  }

  .footer-bottom-bar {
    flex-direction: column !important;
    text-align: center !important;
    gap: 0.85rem !important;
  }

  /* Floating AI Astrologer Chatbot */
  #aiAstroWidget {
    bottom: 18px !important;
    right: 18px !important;
  }

  #aiChatWindow {
    width: calc(100vw - 36px) !important;
    max-width: 360px !important;
    height: 460px !important;
    bottom: 58px !important;
    right: 0 !important;
  }
}

/* --------------------------------------------------------------------------
   BREAKPOINT 3: SMARTPHONES & COMPACT MOBILE (max-width: 480px)
   -------------------------------------------------------------------------- */
@media (max-width: 480px) {
  html {
    font-size: 15px;
  }

  .container {
    padding: 0 0.75rem;
  }

  /* Typography scale */
  h1 { font-size: 1.4rem !important; }
  h2 { font-size: 1.2rem !important; }
  h3 { font-size: 1.05rem !important; }
  h4 { font-size: 0.92rem !important; }
  p  { font-size: 0.86rem; }

  /* Header & Branding */
  .header-inner {
    padding: 8px 0;
  }

  .brand-wrap {
    font-size: 1.02rem;
    gap: 0.3rem;
  }

  .brand-icon {
    font-size: 1.4rem;
  }

  .header-actions {
    gap: 0.3rem;
  }

  .wallet-pill {
    padding: 0.22rem 0.5rem;
    font-size: 0.76rem;
    gap: 0.25rem;
  }

  .wallet-plus {
    width: 16px;
    height: 16px;
    font-size: 0.72rem;
  }

  .lang-toggle {
    padding: 1px;
  }

  .lang-btn {
    padding: 0.2rem 0.45rem;
    font-size: 0.7rem;
  }

  .mobile-menu-toggle {
    width: 34px;
    height: 34px;
    padding: 7px 5px;
  }

  /* Hero Slider Banner */
  .hero-slider-wrap {
    margin: 0.85rem 0 1.25rem;
    border-radius: 14px;
  }

  .hero-slide {
    padding: 1.25rem 0.85rem;
    gap: 0.75rem;
  }

  .hero-slide h1 {
    font-size: 1.3rem !important;
    line-height: 1.25;
  }

  .hero-slide p {
    font-size: 0.84rem;
    line-height: 1.45;
  }

  .hero-slide .btn-cosmic {
    width: 100%;
    text-align: center;
  }

  /* Quick Action Chips: 2 equal columns on small screens */
  .quick-chips-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.45rem;
    margin: 1rem 0 1.5rem;
  }

  .chip-card {
    padding: 0.6rem 0.65rem;
    font-size: 0.76rem;
    gap: 0.4rem;
    border-radius: 10px;
  }

  .chip-icon {
    font-size: 1.2rem;
  }

  /* Astrologer Card */
  .astro-card {
    padding: 0.85rem;
    border-radius: 14px;
  }

  .astro-card-top {
    gap: 0.75rem;
  }

  .astro-avatar-wrap {
    width: 56px;
    height: 56px;
  }

  .astro-details h3 {
    font-size: 0.98rem;
  }

  .astro-spec {
    font-size: 0.76rem;
  }

  .astro-stats-row {
    flex-wrap: wrap;
    gap: 0.4rem;
    font-size: 0.75rem;
    margin: 0.5rem 0;
  }

  .astro-price {
    font-size: 0.92rem;
    margin-left: 0;
    width: 100%;
  }

  .astro-actions {
    grid-template-columns: 1fr 1fr;
    gap: 0.4rem;
    padding-top: 0.55rem;
  }

  .astro-actions .btn-cosmic {
    padding: 0.5rem 0.35rem;
    font-size: 0.78rem;
    text-align: center;
  }

  /* Universal Buttons */
  .btn-cosmic {
    min-height: 40px;
    padding: 0.5rem 0.85rem;
    font-size: 0.84rem;
    border-radius: 10px;
  }

  /* Forms & Form Controls */
  .form-control {
    padding: 0.65rem 0.85rem;
    font-size: 16px !important; /* Prevents auto-zoom on mobile iOS */
    border-radius: 10px;
  }

  .form-label {
    font-size: 0.8rem;
    margin-bottom: 0.25rem;
  }

  /* Modals */
  .modal-overlay {
    padding: 0.5rem;
  }

  .modal-card {
    width: 100%;
    max-width: 100%;
    padding: 1.25rem 0.95rem;
    border-radius: 16px;
    max-height: 94vh;
  }

  .modal-close {
    top: 0.75rem;
    right: 0.85rem;
    font-size: 1.45rem;
  }

  /* Quick Recharge Pack Buttons in Modal */
  .recharge-pack-btn {
    padding: 0.65rem 0.4rem !important;
    font-size: 0.82rem !important;
  }

  /* Chat Room (chat.php) */
  .chat-pane {
    height: calc(100vh - 105px);
    border-radius: 14px;
  }

  .chat-header {
    padding: 0.75rem 0.85rem;
  }

  .chat-messages {
    padding: 0.85rem;
    gap: 0.65rem;
  }

  .bubble {
    max-width: 92%;
    padding: 0.65rem 0.85rem;
    font-size: 0.84rem;
    line-height: 1.4;
  }

  .chat-input-bar {
    padding: 0.5rem;
    gap: 0.35rem;
  }

  .chat-input-bar .btn-cosmic {
    padding: 0.5rem 0.85rem;
    font-size: 0.82rem;
  }

  /* Voice Call Screen (consultation.php) */
  .voice-call-screen {
    padding: 1.25rem 0.85rem !important;
    border-radius: 16px !important;
  }

  .voice-call-avatar {
    width: 75px !important;
    height: 75px !important;
  }

  .voice-call-timer {
    font-size: 1.5rem !important;
  }

  .voice-wave-container {
    height: 28px !important;
    gap: 2px !important;
  }

  .voice-wave-bar {
    width: 3px !important;
  }

  .voice-call-controls {
    gap: 0.75rem !important;
  }

  .voice-control-btn {
    width: 48px !important;
    height: 48px !important;
    font-size: 1.15rem !important;
  }

  .voice-phone-direct {
    width: 100% !important;
    padding: 0.65rem 1rem !important;
    font-size: 0.85rem !important;
  }

  /* Panchang & Vedic Content */
  .panchang-card,
  .shastra-card,
  .mantra-card,
  .nakshatra-card {
    padding: 0.85rem !important;
    border-radius: 12px !important;
  }

  /* Dashboards Metrics */
  .metrics-grid,
  .dashboard-stats-grid {
    grid-template-columns: 1fr !important;
    gap: 0.65rem !important;
  }

  /* Footer */
  footer {
    padding: 2.25rem 0 1rem !important;
  }

  .footer-grid {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }

  .footer-bottom-bar {
    flex-direction: column !important;
    text-align: center !important;
    gap: 0.75rem !important;
    font-size: 0.74rem !important;
  }

  .footer-portal-login-btn {
    width: 100% !important;
    justify-content: center !important;
    padding: 0.55rem 1rem !important;
  }

  /* Floating AI Astrologer Bot */
  #aiAstroWidget {
    bottom: 12px !important;
    right: 12px !important;
  }

  #toggleAiAstroBtn {
    padding: 0.55rem 0.95rem !important;
    font-size: 0.8rem !important;
    gap: 0.4rem !important;
  }

  #aiChatWindow {
    width: calc(100vw - 24px) !important;
    height: 420px !important;
    bottom: 54px !important;
    right: 0 !important;
    border-radius: 14px !important;
  }
}
