/* Astrotalk-inspired premium theme for IRFC Astrology */
:root {
  --at-orange: #ff6b00;
  --at-orange-light: #ff8c2a;
  --at-orange-dark: #e85d00;
  --at-gold: #ffc107;
  --at-purple: #2a1052;
  --at-purple-deep: #1a0638;
  --at-purple-soft: #3d1a6e;
  --at-green: #22c55e;
  --at-cream: #fff8f0;
  --at-white: #ffffff;
  --at-text-dark: #1a1025;
  --at-text-muted: #6b5b7a;
  --at-shadow: 0 8px 32px rgba(42, 16, 82, 0.12);
  --at-shadow-lg: 0 20px 60px rgba(42, 16, 82, 0.18);
  --at-radius: 16px;
  --at-radius-lg: 24px;
  --at-radius-pill: 999px;
  --nav-h: 72px;
  --at-page-gutter: clamp(20px, 5vw, 72px);
  --at-content-max: 1180px;
}

body.theme-astrotalk .container-wide,
body.theme-astrotalk .container-narrow {
  max-width: var(--at-content-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--at-page-gutter);
  padding-right: var(--at-page-gutter);
}

body.theme-astrotalk .at-promo-bar {
  padding-left: var(--at-page-gutter);
  padding-right: var(--at-page-gutter);
}

body.theme-astrotalk {
  --bg: var(--at-cream);
  --bg-elevated: var(--at-white);
  --surface: var(--at-white);
  --surface-2: #f5eef8;
  --border: rgba(42, 16, 82, 0.08);
  --text: var(--at-text-dark);
  --text-muted: var(--at-text-muted);
  --saffron: var(--at-orange);
  --saffron-bright: var(--at-orange-light);
  --saffron-deep: var(--at-orange-dark);
  --gold: var(--at-gold);
  --gradient-btn: linear-gradient(135deg, #ff8c2a 0%, #ff6b00 50%, #e85d00 100%);
  --gradient-text: linear-gradient(135deg, #ff6b00 0%, #ffc107 50%, #ff8c2a 100%);
  background: var(--at-cream);
  color: var(--at-text-dark);
}

body.theme-astrotalk::before { display: none; }

body.theme-astrotalk.has-celestial-bg {
  background: var(--at-cream);
}

/* Top promo bar */
.at-promo-bar {
  background: linear-gradient(90deg, var(--at-purple-deep), var(--at-purple), var(--at-purple-soft));
  color: #fff;
  text-align: center;
  padding: 8px 16px;
  font-size: 0.8125rem;
  font-weight: 500;
  position: relative;
  z-index: 1001;
  overflow: hidden;
}

.at-promo-bar span {
  background: linear-gradient(90deg, #fff, var(--at-gold), #fff);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 3s linear infinite;
}

@keyframes shimmer {
  to { background-position: 200% center; }
}

/* Nav */
body.theme-astrotalk .site-nav {
  height: var(--nav-h);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px) saturate(1.8);
  border-bottom: 1px solid rgba(42, 16, 82, 0.06);
  box-shadow: 0 4px 24px rgba(42, 16, 82, 0.06);
}

body.theme-astrotalk .site-nav.scrolled {
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 8px 32px rgba(42, 16, 82, 0.1);
}

body.theme-astrotalk .nav-links a {
  color: var(--at-text-dark);
  font-weight: 600;
}

body.theme-astrotalk .nav-links a:hover {
  color: var(--at-orange);
  background: rgba(255, 107, 0, 0.08);
}

body.theme-astrotalk .btn-primary {
  background: var(--gradient-btn);
  border: none;
  color: #fff;
  font-weight: 700;
  border-radius: var(--at-radius-pill);
  padding: 10px 22px;
  box-shadow: 0 4px 20px rgba(255, 107, 0, 0.35);
  transition: transform 0.25s, box-shadow 0.25s;
}

body.theme-astrotalk .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(255, 107, 0, 0.45);
  color: #fff;
}

body.theme-astrotalk .btn-ghost {
  border: 2px solid rgba(42, 16, 82, 0.12);
  color: var(--at-text-dark);
  border-radius: var(--at-radius-pill);
  font-weight: 600;
  background: transparent;
}

body.theme-astrotalk .btn-ghost:hover {
  border-color: var(--at-orange);
  color: var(--at-orange);
  background: rgba(255, 107, 0, 0.06);
}

body.theme-astrotalk .badge-cart {
  background: var(--at-orange);
  color: #fff;
}

body.theme-astrotalk .mobile-drawer {
  background: var(--at-white);
  border-left: 1px solid var(--border);
}

body.theme-astrotalk .mobile-drawer a {
  color: var(--at-text-dark);
  border-bottom: 1px solid var(--border);
}

/* Hero */
.at-hero {
  position: relative;
  min-height: calc(100vh - var(--nav-h) - 80px);
  max-height: 760px;
  margin-top: calc(-1 * (36px + var(--nav-h)));
  padding-top: calc(36px + var(--nav-h) + 32px);
  padding-bottom: 48px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(145deg, #120628 0%, var(--at-purple-deep) 25%, var(--at-purple) 55%, #3d1875 85%, var(--at-purple-soft) 100%);
}

/* Animated moon */
.at-hero-sky {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.at-moon {
  position: absolute;
  top: 14%;
  right: clamp(4%, 10vw, 14%);
  width: clamp(64px, 8vw, 96px);
  height: clamp(64px, 8vw, 96px);
  animation: moonFloat 10s ease-in-out infinite;
}

.at-moon-body {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: radial-gradient(circle at 38% 38%, #fffef5 0%, #fff3c4 35%, #f0d78c 65%, #d4a843 100%);
  box-shadow:
    0 0 30px rgba(255, 240, 180, 0.55),
    0 0 70px rgba(255, 200, 100, 0.25),
    inset -8px -4px 16px rgba(180, 140, 60, 0.2);
}

.at-moon-body::after {
  content: '';
  position: absolute;
  top: 8%;
  right: 10%;
  width: 78%;
  height: 78%;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(42, 16, 82, 0.95), rgba(26, 6, 56, 0.98));
  transform: translateX(18%);
}

.at-moon-glow {
  position: absolute;
  inset: -40%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 220, 120, 0.18) 0%, transparent 70%);
  animation: moonGlow 6s ease-in-out infinite;
}

@keyframes moonFloat {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-14px) rotate(3deg); }
}

@keyframes moonGlow {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.08); }
}

.at-shooting-star {
  position: absolute;
  top: 22%;
  left: 15%;
  width: 120px;
  height: 2px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.9), transparent);
  border-radius: 2px;
  transform: rotate(-35deg);
  opacity: 0;
  animation: shootingStar 8s ease-in-out infinite;
}

@keyframes shootingStar {
  0%, 85%, 100% { opacity: 0; transform: rotate(-35deg) translateX(0); }
  88% { opacity: 1; }
  92% { opacity: 0; transform: rotate(-35deg) translateX(180px) translateY(80px); }
}

.at-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 80%, rgba(255, 107, 0, 0.25) 0%, transparent 40%),
    radial-gradient(circle at 80% 20%, rgba(255, 193, 7, 0.15) 0%, transparent 35%),
    url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.at-hero-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.at-hero-particles span {
  position: absolute;
  border-radius: 50%;
  background: #fff;
  animation: twinkleStar var(--dur, 4s) ease-in-out infinite;
  animation-delay: var(--delay, 0s);
}

.at-hero-particles span.star-sm {
  width: 2px;
  height: 2px;
  opacity: 0.5;
}

.at-hero-particles span.star-md {
  width: 3px;
  height: 3px;
  opacity: 0.7;
  box-shadow: 0 0 4px rgba(255, 255, 255, 0.6);
}

.at-hero-particles span.star-lg {
  width: 4px;
  height: 4px;
  opacity: 0.85;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
}

@keyframes twinkleStar {
  0%, 100% { opacity: var(--o-min, 0.3); transform: scale(1); }
  50% { opacity: var(--o-max, 1); transform: scale(1.4); }
}

@keyframes floatStar {
  0%, 100% { transform: translateY(0) scale(1); opacity: 0.4; }
  50% { transform: translateY(-20px) scale(1.3); opacity: 1; }
}

.at-hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  padding: 32px 0 56px;
  width: 100%;
}

.at-hero-content h1 {
  font-family: 'Outfit', var(--font);
  font-size: clamp(1.75rem, 3.8vw, 2.65rem);
  font-weight: 800;
  line-height: 1.15;
  color: #fff;
  margin: 0 0 16px;
  letter-spacing: -0.02em;
}

.at-hero-content h1 .highlight {
  background: linear-gradient(135deg, #ffc107, #ff8c2a, #ff6b00);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.at-hero-sub {
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(0.9375rem, 1.8vw, 1.05rem);
  max-width: 440px;
  margin-bottom: 28px;
  line-height: 1.65;
}

.at-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
  padding: 7px 14px;
  border-radius: var(--at-radius-pill);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 18px;
  animation: pulseBadge 2.5s ease-in-out infinite;
}

@keyframes pulseBadge {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 107, 0, 0.4); }
  50% { box-shadow: 0 0 0 8px rgba(255, 107, 0, 0); }
}

.at-hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 36px;
}

.at-hero-cta .btn-accent {
  background: linear-gradient(135deg, #ffc107, #ff8c2a);
  color: var(--at-purple-deep);
  font-weight: 800;
  border-radius: var(--at-radius-pill);
  padding: 14px 28px;
  border: none;
  box-shadow: 0 8px 32px rgba(255, 193, 7, 0.4);
  transition: transform 0.25s;
}

.at-hero-cta .btn-accent:hover {
  transform: translateY(-3px) scale(1.02);
  color: var(--at-purple-deep);
}

.at-hero-cta .btn-outline-light {
  border: 2px solid rgba(255, 255, 255, 0.4);
  color: #fff;
  border-radius: var(--at-radius-pill);
  padding: 12px 26px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
}

.at-hero-cta .btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  border-color: #fff;
}

.at-hero-stats {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}

.at-hero-stat strong {
  display: block;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--at-gold);
}

.at-hero-stat span {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.6);
}

body.theme-astrotalk .site-nav .nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 12px;
  min-height: var(--nav-h);
}

body.theme-astrotalk .site-logo {
  flex-shrink: 0;
}

body.theme-astrotalk .nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 auto;
  flex-wrap: nowrap;
  gap: 2px;
  margin: 0;
  padding: 0;
  min-width: 0;
}

body.theme-astrotalk .nav-links > li {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

body.theme-astrotalk .nav-links li.dropdown {
  position: relative;
}

body.theme-astrotalk .nav-links a {
  font-size: 0.8125rem;
  padding: 8px 12px;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  line-height: 1.2;
}

body.theme-astrotalk .nav-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

body.theme-astrotalk .nav-actions .btn-sm {
  padding: 7px 12px;
  font-size: 0.8125rem;
  white-space: nowrap;
}

body.theme-astrotalk .nav-icon-btn {
  width: 40px;
  height: 40px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

body.theme-astrotalk .nav-user-btn .nav-btn-label {
  margin-left: 4px;
}

body.theme-astrotalk .site-logo img {
  height: 38px;
  max-width: 180px;
}

@media (min-width: 992px) and (max-width: 1280px) {
  body.theme-astrotalk .nav-links a {
    padding: 7px 9px;
    font-size: 0.75rem;
  }

  body.theme-astrotalk .site-logo img {
    height: 34px;
    max-width: 150px;
  }

  body.theme-astrotalk .nav-user-btn .nav-btn-label {
    display: none;
  }

  body.theme-astrotalk .nav-actions .btn-sm {
    padding: 7px 10px;
  }
}

/* Hero phone mockup */
.at-hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.at-phone-mock {
  width: 280px;
  background: linear-gradient(180deg, #1a0638 0%, #2a1052 100%);
  border-radius: 36px;
  padding: 12px;
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.1);
  animation: phoneFloat 4s ease-in-out infinite;
}

@keyframes phoneFloat {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-12px) rotate(2deg); }
}

.at-phone-screen {
  background: var(--at-cream);
  border-radius: 28px;
  overflow: hidden;
  min-height: 420px;
}

.at-phone-header {
  background: var(--gradient-btn);
  padding: 16px;
  color: #fff;
  font-weight: 700;
  font-size: 0.875rem;
}

.at-phone-chat {
  padding: 16px;
}

.at-chat-bubble {
  background: #fff;
  border-radius: 16px 16px 16px 4px;
  padding: 12px 14px;
  margin-bottom: 10px;
  font-size: 0.8125rem;
  box-shadow: var(--at-shadow);
  animation: bubbleIn 0.6s ease backwards;
}

.at-chat-bubble.user {
  background: linear-gradient(135deg, #ff8c2a, #ff6b00);
  color: #fff;
  border-radius: 16px 16px 4px 16px;
  margin-left: 40px;
}

.at-chat-bubble:nth-child(1) { animation-delay: 0.2s; }
.at-chat-bubble:nth-child(2) { animation-delay: 0.5s; }
.at-chat-bubble:nth-child(3) { animation-delay: 0.8s; }

@keyframes bubbleIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.at-floating-card {
  position: absolute;
  background: #fff;
  border-radius: var(--at-radius);
  padding: 12px 16px;
  box-shadow: var(--at-shadow-lg);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8125rem;
  font-weight: 600;
  animation: floatCard 3s ease-in-out infinite;
}

.at-floating-card.card-1 { top: 10%; right: -20px; animation-delay: 0s; }
.at-floating-card.card-2 { bottom: 20%; left: -30px; animation-delay: 1s; }

@keyframes floatCard {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.at-floating-card .dot-online {
  width: 10px;
  height: 10px;
  background: var(--at-green);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--at-green);
  animation: blink 1.5s infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* Quick actions */
.at-quick-actions {
  background: var(--at-white);
  margin: -40px auto 0;
  position: relative;
  z-index: 10;
  max-width: 1100px;
  border-radius: var(--at-radius-lg);
  box-shadow: var(--at-shadow-lg);
  padding: 24px 32px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.at-quick-action {
  text-align: center;
  padding: 20px 12px;
  border-radius: var(--at-radius);
  transition: transform 0.25s, background 0.25s;
  text-decoration: none;
  color: var(--at-text-dark);
}

.at-quick-action:hover {
  background: rgba(255, 107, 0, 0.06);
  transform: translateY(-4px);
  color: var(--at-orange);
}

.at-quick-action .icon-wrap {
  width: 56px;
  height: 56px;
  margin: 0 auto 12px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  background: linear-gradient(135deg, rgba(255, 107, 0, 0.12), rgba(255, 193, 7, 0.12));
  color: var(--at-orange);
  transition: transform 0.25s, box-shadow 0.25s;
}

.at-quick-action:hover .icon-wrap {
  transform: scale(1.1);
  box-shadow: 0 8px 24px rgba(255, 107, 0, 0.2);
}

.at-quick-action span {
  display: block;
  font-weight: 700;
  font-size: 0.875rem;
}

/* Zodiac strip */
.at-zodiac-strip {
  padding: 48px 0;
  overflow: hidden;
}

.at-zodiac-scroll {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 8px 24px 16px;
  scrollbar-width: none;
}

.at-zodiac-scroll::-webkit-scrollbar { display: none; }

.at-zodiac-item {
  flex: 0 0 auto;
  scroll-snap-align: start;
  text-align: center;
  padding: 16px 20px;
  background: var(--at-white);
  border-radius: var(--at-radius);
  box-shadow: var(--at-shadow);
  min-width: 90px;
  transition: transform 0.25s, box-shadow 0.25s;
  cursor: pointer;
  text-decoration: none;
  color: var(--at-text-dark);
}

.at-zodiac-item:hover {
  transform: translateY(-6px);
  box-shadow: var(--at-shadow-lg);
  color: var(--at-orange);
}

.at-zodiac-item .symbol {
  font-size: 2rem;
  display: block;
  margin-bottom: 6px;
}

.at-zodiac-item .name {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Section headers */
.at-section {
  padding: 64px 0;
}

.at-section-header {
  text-align: center;
  margin-bottom: 40px;
}

.at-section-header .label {
  display: inline-block;
  background: rgba(255, 107, 0, 0.1);
  color: var(--at-orange);
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 6px 14px;
  border-radius: var(--at-radius-pill);
  margin-bottom: 12px;
}

.at-section-header h2 {
  font-family: 'Outfit', var(--font);
  font-size: clamp(1.5rem, 2.8vw, 2.1rem);
  font-weight: 800;
  color: var(--at-text-dark);
  margin: 0 0 12px;
}

.at-section-header p {
  color: var(--at-text-muted);
  max-width: 560px;
  margin: 0 auto;
}

/* Expert cards */
.at-experts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}

.at-expert-card {
  background: var(--at-white);
  border-radius: var(--at-radius-lg);
  overflow: hidden;
  box-shadow: var(--at-shadow);
  transition: transform 0.3s, box-shadow 0.3s;
  text-decoration: none;
  color: inherit;
  position: relative;
}

.at-expert-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--at-shadow-lg);
  color: inherit;
}

.at-expert-card .avatar {
  height: 140px;
  background: linear-gradient(135deg, var(--at-purple), var(--at-purple-soft));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  position: relative;
}

.at-expert-card .online-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--at-green);
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--at-radius-pill);
  display: flex;
  align-items: center;
  gap: 4px;
}

.at-expert-card .online-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  background: #fff;
  border-radius: 50%;
}

.at-expert-body {
  padding: 20px;
}

.at-expert-body h3 {
  font-size: 1.0625rem;
  font-weight: 800;
  margin: 0 0 4px;
}

.at-expert-body .skills {
  font-size: 0.8125rem;
  color: var(--at-text-muted);
  margin-bottom: 12px;
}

.at-expert-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.at-expert-meta .rating {
  color: var(--at-gold);
  font-weight: 700;
  font-size: 0.875rem;
}

.at-expert-meta .price {
  color: var(--at-orange);
  font-weight: 800;
  font-size: 0.9375rem;
}

.at-expert-meta .price small {
  font-weight: 500;
  color: var(--at-text-muted);
}

/* Services grid */
.at-services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 20px;
}

.at-service-card {
  background: var(--at-white);
  border-radius: var(--at-radius);
  padding: 28px 20px;
  text-align: center;
  box-shadow: var(--at-shadow);
  transition: all 0.3s;
  text-decoration: none;
  color: var(--at-text-dark);
  border: 2px solid transparent;
}

.at-service-card:hover {
  border-color: var(--at-orange);
  transform: translateY(-6px);
  box-shadow: var(--at-shadow-lg);
  color: var(--at-orange);
}

.at-service-card i {
  font-size: 2rem;
  margin-bottom: 12px;
  display: block;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.at-service-card h4 {
  font-size: 0.9375rem;
  font-weight: 700;
  margin: 0;
}

/* Products on light bg */
body.theme-astrotalk .product-card {
  background: var(--at-white);
  border-radius: var(--at-radius-lg);
  box-shadow: var(--at-shadow);
  border: 1px solid var(--border);
}

body.theme-astrotalk .product-card:hover {
  box-shadow: var(--at-shadow-lg);
  border-color: rgba(255, 107, 0, 0.2);
}

body.theme-astrotalk .product-price {
  color: var(--at-orange);
  font-weight: 800;
}

body.theme-astrotalk .section-label {
  color: var(--at-orange);
}

body.theme-astrotalk .section-alt {
  background: var(--at-white);
}

body.theme-astrotalk .testimonial-card {
  background: var(--at-white);
  border: 1px solid var(--border);
  box-shadow: var(--at-shadow);
}

/* CTA band */
.at-cta-band {
  background: linear-gradient(135deg, var(--at-purple-deep), var(--at-purple), var(--at-orange-dark));
  border-radius: var(--at-radius-lg);
  padding: 48px 40px;
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
  width: min(var(--at-content-max), calc(100% - 2 * var(--at-page-gutter)));
  margin: 0 auto 64px;
}

.at-cta-band::before {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(255, 193, 7, 0.3), transparent 70%);
  top: -100px;
  right: -50px;
  animation: ctaGlow 4s ease-in-out infinite;
}

@keyframes ctaGlow {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.2); opacity: 0.8; }
}

.at-cta-band h2 {
  font-family: 'Outfit', var(--font);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 800;
  margin-bottom: 12px;
  position: relative;
}

.at-cta-band p {
  opacity: 0.85;
  margin-bottom: 28px;
  position: relative;
}

/* Footer */
body.theme-astrotalk .site-footer {
  background: linear-gradient(180deg, #ffffff 0%, var(--at-cream) 55%, #f3ebe3 100%);
  color: var(--at-text-dark);
  border-top: 1px solid rgba(42, 16, 82, 0.1);
  padding-bottom: 80px;
}

body.theme-astrotalk .site-footer h4 {
  color: var(--at-purple);
}

body.theme-astrotalk .site-footer a {
  color: var(--at-text-muted);
}

body.theme-astrotalk .site-footer a:hover {
  color: var(--at-orange);
}

body.theme-astrotalk .footer-social a {
  background: rgba(42, 16, 82, 0.08);
  color: var(--at-purple);
}

body.theme-astrotalk .footer-social a:hover {
  background: var(--at-orange);
  color: #fff;
}

body.theme-astrotalk .footer-bottom {
  color: var(--at-text-muted);
  border-top-color: rgba(42, 16, 82, 0.1);
}

body.theme-astrotalk .footer-contact .bi,
body.theme-astrotalk .footer-contact span,
body.theme-astrotalk .footer-company-legal {
  color: var(--at-text-dark);
}

body.theme-astrotalk .footer-contact a {
  color: var(--at-text-muted);
}

body.theme-astrotalk .footer-contact a:hover {
  color: var(--at-orange);
}

body.theme-astrotalk .footer-tagline {
  color: var(--at-text-muted) !important;
}

/* Mobile bottom nav */
.at-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 999;
  background: var(--at-white);
  border-top: 1px solid var(--border);
  box-shadow: 0 -8px 32px rgba(42, 16, 82, 0.1);
  padding: 8px 0 calc(8px + env(safe-area-inset-bottom));
}

.at-bottom-nav-inner {
  display: flex;
  justify-content: space-around;
  max-width: 480px;
  margin: 0 auto;
}

.at-bottom-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 8px 12px;
  color: var(--at-text-muted);
  font-size: 0.6875rem;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s;
}

.at-bottom-nav a i {
  font-size: 1.25rem;
}

.at-bottom-nav a.active,
.at-bottom-nav a:hover {
  color: var(--at-orange);
}

.at-bottom-nav a.chat-fab {
  position: relative;
  top: -20px;
  background: var(--gradient-btn);
  color: #fff !important;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(255, 107, 0, 0.4);
}

.at-bottom-nav a.chat-fab span { display: none; }

/* Reveal animations */
body.theme-astrotalk .reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

body.theme-astrotalk .reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Home page nav offset for promo bar */
body.theme-astrotalk .at-promo-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1002;
}

body.theme-astrotalk .at-nav-home {
  top: 36px !important;
}

body.theme-astrotalk .at-main-home {
  padding-top: calc(36px + var(--nav-h)) !important;
}

body.theme-astrotalk .dropdown-menu {
  background: var(--at-white);
  border: 1px solid var(--border);
  border-radius: var(--at-radius);
  box-shadow: var(--at-shadow-lg);
  padding: 8px;
}

body.theme-astrotalk .dropdown-item {
  border-radius: 8px;
  font-weight: 500;
  color: var(--at-text-dark);
}

body.theme-astrotalk .dropdown-item:hover {
  background: rgba(255, 107, 0, 0.08);
  color: var(--at-orange);
}

/* Inner pages — match homepage theme */
body.theme-astrotalk .page-hero {
  background: linear-gradient(135deg, var(--at-purple-deep) 0%, var(--at-purple) 55%, #4a1d8a 100%);
  padding: calc(var(--nav-h) + 28px) 0 36px;
  position: relative;
  overflow: hidden;
  border: none;
  box-shadow: none;
}

body.theme-astrotalk .page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 85% 15%, rgba(255, 193, 7, 0.14), transparent 45%),
    radial-gradient(circle at 10% 80%, rgba(255, 107, 0, 0.1), transparent 40%);
  pointer-events: none;
}

body.theme-astrotalk .page-hero::after {
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.12), transparent);
}

body.theme-astrotalk .page-hero .container-narrow,
body.theme-astrotalk .page-hero .container-wide {
  position: relative;
  z-index: 1;
}

body.theme-astrotalk .page-hero h1 {
  font-family: 'Outfit', var(--font);
  color: #fff;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

body.theme-astrotalk .page-hero p,
body.theme-astrotalk .page-hero .text-muted {
  color: rgba(255, 255, 255, 0.78) !important;
  font-size: 0.9375rem;
}

body.theme-astrotalk .page-content {
  padding: 40px 0 88px;
  background: var(--at-cream);
}

/* Wider cards on inner pages */
body.theme-astrotalk .auth-page-wrap {
  max-width: min(720px, calc(100% - 2 * var(--at-page-gutter)));
}

body.theme-astrotalk .auth-page-wrap--wide {
  max-width: min(860px, calc(100% - 2 * var(--at-page-gutter)));
}

body.theme-astrotalk .page-content > .container-narrow:not(.auth-page-wrap) {
  max-width: min(var(--at-content-max), calc(100% - 2 * var(--at-page-gutter)));
}

body.theme-astrotalk .page-content .card-panel {
  width: 100%;
}

/* All cards — white premium style with accent top bar */
body.theme-astrotalk .card-panel {
  background: var(--at-white);
  border: 1px solid var(--border);
  border-radius: var(--at-radius-lg);
  padding: clamp(22px, 4vw, 32px);
  box-shadow: var(--at-shadow);
  backdrop-filter: none;
  position: relative;
  overflow: hidden;
  transition: box-shadow 0.25s, transform 0.25s;
}

body.theme-astrotalk .card-panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--at-purple), var(--at-orange) 55%, var(--at-gold));
}

body.theme-astrotalk .card-panel:hover {
  box-shadow: var(--at-shadow-lg);
}

body.theme-astrotalk .auth-card-header {
  text-align: center;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

body.theme-astrotalk .auth-card-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 12px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(255, 107, 0, 0.12), rgba(42, 16, 82, 0.08));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--at-orange);
}

body.theme-astrotalk .auth-card-header h2 {
  font-family: 'Outfit', var(--font);
  font-size: 1.25rem;
  font-weight: 800;
  margin: 0 0 4px;
  color: var(--at-text-dark);
}

body.theme-astrotalk .auth-card-header p {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--at-text-muted);
}

body.theme-astrotalk .card-panel .form-label {
  color: var(--at-text-dark);
  font-weight: 600;
  font-size: 0.875rem;
}

body.theme-astrotalk .form-control,
body.theme-astrotalk .form-select {
  background: #fafafa;
  border: 1.5px solid var(--border);
  color: var(--at-text-dark);
  border-radius: 12px;
  padding: 12px 16px;
}

body.theme-astrotalk .form-control:focus,
body.theme-astrotalk .form-select:focus {
  background: var(--at-white);
  border-color: var(--at-orange);
  box-shadow: 0 0 0 3px rgba(255, 107, 0, 0.12);
  color: var(--at-text-dark);
}

body.theme-astrotalk .form-control::placeholder {
  color: #9ca3af;
}

body.theme-astrotalk .input-group .form-control {
  border-right: none;
}

body.theme-astrotalk .input-group .btn-ghost,
body.theme-astrotalk .input-group .btn-primary,
body.theme-astrotalk .otp-send-btn {
  background: var(--gradient-btn);
  color: #fff !important;
  border: none;
  font-weight: 700;
  font-size: 0.8125rem;
  padding-left: 16px;
  padding-right: 16px;
  white-space: nowrap;
  border-radius: 0 12px 12px 0 !important;
}

body.theme-astrotalk .input-group .btn-ghost:hover,
body.theme-astrotalk .otp-send-btn:hover {
  filter: brightness(1.06);
  color: #fff !important;
}

body.theme-astrotalk .input-group .form-control:first-child {
  border-radius: 12px 0 0 12px !important;
}

body.theme-astrotalk .btn-outline-light,
body.theme-astrotalk .otp-verify-btn {
  background: linear-gradient(135deg, var(--at-purple), var(--at-purple-soft));
  color: #fff !important;
  border: none;
  font-weight: 700;
  border-radius: 12px !important;
}

body.theme-astrotalk .btn-outline-light:hover,
body.theme-astrotalk .otp-verify-btn:hover {
  filter: brightness(1.08);
  color: #fff !important;
}

body.theme-astrotalk .card-panel a:not(.btn) {
  color: var(--at-orange);
  font-weight: 600;
}

body.theme-astrotalk .card-panel a:not(.btn):hover {
  color: var(--at-orange-dark);
}

body.theme-astrotalk .card-panel .text-muted,
body.theme-astrotalk .page-content .text-muted {
  color: var(--at-text-muted) !important;
}

body.theme-astrotalk .card-panel code {
  background: rgba(255, 107, 0, 0.1);
  color: var(--at-orange-dark);
  padding: 2px 8px;
  border-radius: 6px;
}

/* Alerts — soft premium style */
body.theme-astrotalk .alert-danger {
  background: #fff5f5;
  border: 1px solid #fecaca;
  color: #b91c1c;
  border-radius: var(--at-radius);
  font-weight: 500;
}

body.theme-astrotalk .alert-success {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #047857;
  border-radius: var(--at-radius);
}

body.theme-astrotalk .alert-warning {
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #92400e;
  border-radius: var(--at-radius);
}

body.theme-astrotalk .alert-dark {
  background: rgba(42, 16, 82, 0.06);
  border: 1px solid var(--border);
  color: var(--at-text-dark);
  border-radius: var(--at-radius);
}

body.theme-astrotalk .alert-info {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1d4ed8;
  border-radius: var(--at-radius);
}

/* Nav pills (consultation tabs etc.) */
body.theme-astrotalk .nav-pills .nav-link {
  color: var(--at-text-muted);
  background: var(--at-white);
  border: 1px solid var(--border);
  border-radius: var(--at-radius-pill);
  font-weight: 600;
  font-size: 0.875rem;
}

body.theme-astrotalk .nav-pills .nav-link:hover {
  color: var(--at-orange);
  border-color: rgba(255, 107, 0, 0.3);
  background: rgba(255, 107, 0, 0.06);
}

body.theme-astrotalk .nav-pills .nav-link.active {
  background: var(--gradient-btn);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 16px rgba(255, 107, 0, 0.3);
}

/* Product & testimonial cards */
body.theme-astrotalk .product-card {
  background: var(--at-white);
  border: 1px solid var(--border);
}

body.theme-astrotalk .testimonial-card {
  background: var(--at-white);
  border: 1px solid var(--border);
  border-radius: var(--at-radius-lg);
  padding: 24px;
}

body.theme-astrotalk .feature-card {
  background: var(--at-white);
  border: 1px solid var(--border);
}

/* Chat layout cards */
body.theme-astrotalk .chat-sidebar.card-panel,
body.theme-astrotalk .chat-main.card-panel {
  padding-top: 28px;
}

body.theme-astrotalk .chat-sidebar.card-panel::before,
body.theme-astrotalk .chat-main.card-panel::before {
  height: 3px;
}

body.theme-astrotalk .wallet-pill {
  background: var(--at-white);
  border: 1px solid var(--border);
  color: var(--at-text-dark);
}

body.theme-astrotalk .wallet-pill-free {
  border-color: rgba(34, 197, 94, 0.35);
  color: #15803d;
}

body.theme-astrotalk .wallet-pill-coins {
  border-color: rgba(255, 107, 0, 0.35);
  color: var(--at-orange);
}

/* Modal */
body.theme-astrotalk .modal-content.card-panel {
  background: var(--at-white);
  color: var(--at-text-dark);
}

body.theme-astrotalk .modal-content .modal-header {
  border-color: var(--border);
}

body.theme-astrotalk .modal-content .modal-title {
  color: var(--at-text-dark);
  font-weight: 700;
}

body.theme-astrotalk .modal-content .btn-close {
  filter: none;
}

/* Tables in cards */
body.theme-astrotalk .card-panel .table {
  color: var(--at-text-dark);
}

body.theme-astrotalk .card-panel .table-dark {
  --bs-table-bg: transparent;
  --bs-table-striped-bg: #f9fafb;
  --bs-table-hover-bg: rgba(255, 107, 0, 0.05);
  color: var(--at-text-dark);
}

/* Dashboard stat boxes */
body.theme-astrotalk .dash-stat,
body.theme-astrotalk .order-detail-box {
  background: #f9fafb;
  border: 1px solid var(--border);
  border-radius: var(--at-radius);
}

body.theme-astrotalk .btn-accent {
  background: linear-gradient(135deg, var(--at-gold), var(--at-orange-light));
  color: var(--at-purple-deep);
  font-weight: 800;
  border: none;
  border-radius: var(--at-radius-pill);
}

body.theme-astrotalk .btn-accent:hover {
  filter: brightness(1.05);
  color: var(--at-purple-deep);
}


/* Responsive */
@media (max-width: 991px) {
  .at-hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 24px 0 48px;
  }

  .at-hero-sub { margin-left: auto; margin-right: auto; }
  .at-hero-cta { justify-content: center; }
  .at-hero-stats { justify-content: center; }
  .at-hero-visual { display: none; }

  .at-moon {
    top: 8%;
    right: 6%;
    opacity: 0.7;
  }

  .at-quick-actions {
    grid-template-columns: repeat(2, 1fr);
    margin-top: -30px;
  }
}

@media (max-width: 767px) {
  .at-bottom-nav { display: block; }
  body.theme-astrotalk main { padding-bottom: 72px; }
  .at-promo-bar { font-size: 0.75rem; padding: 6px 12px; }
}

@media (max-width: 575px) {
  .at-quick-actions { grid-template-columns: 1fr 1fr; gap: 8px; }
  .at-quick-action { padding: 14px 8px; }
  .at-quick-action .icon-wrap { width: 48px; height: 48px; font-size: 1.25rem; }
}

/* Human-style live chat */
.chat-human-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  margin: -1.25rem -1.25rem 16px;
  background: linear-gradient(135deg, var(--at-purple-deep), var(--at-purple));
  color: #fff;
  border-radius: var(--at-radius) var(--at-radius) 0 0;
}

.chat-human-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
}

.chat-human-header strong {
  display: block;
  font-size: 1rem;
}

.chat-human-status {
  font-size: 0.75rem;
  opacity: 0.85;
  display: flex;
  align-items: center;
  gap: 6px;
}

.chat-online-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--at-green);
  box-shadow: 0 0 8px var(--at-green);
  display: inline-block;
  animation: blink 1.5s infinite;
}

body.theme-astrotalk .chat-box {
  background: #f0f2f5;
  border: 1px solid var(--border);
  padding: 16px;
}

body.theme-astrotalk .chat-msg.human-chat {
  max-width: 100%;
  margin-bottom: 14px;
}

body.theme-astrotalk .chat-row {
  display: flex;
  align-items: flex-end;
  gap: 10px;
}

body.theme-astrotalk .chat-msg.user .chat-row {
  flex-direction: row-reverse;
}

body.theme-astrotalk .chat-content {
  max-width: 78%;
  min-width: 0;
}

body.theme-astrotalk .chat-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
  font-size: 0.6875rem;
}

body.theme-astrotalk .chat-meta-user {
  justify-content: flex-end;
}

body.theme-astrotalk .chat-sender {
  font-weight: 700;
  color: var(--at-teal, #0d9488);
}

body.theme-astrotalk .chat-msg.user .chat-sender {
  color: var(--at-orange);
}

body.theme-astrotalk .chat-time {
  color: var(--at-text-muted);
  font-weight: 500;
}

body.theme-astrotalk .chat-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 800;
}

body.theme-astrotalk .chat-avatar.bot-avatar {
  background: linear-gradient(135deg, var(--at-purple), var(--at-purple-soft));
}

body.theme-astrotalk .chat-avatar.user-avatar {
  background: linear-gradient(135deg, var(--at-orange-light), var(--at-orange));
  color: #fff;
}

body.theme-astrotalk .chat-msg.bot .chat-bubble {
  background: #fff;
  border: none;
  border-radius: 4px 18px 18px 18px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
  color: var(--at-text-dark);
  text-align: left;
}

body.theme-astrotalk .chat-msg.user .chat-bubble {
  background: linear-gradient(135deg, #dcf8c6, #c8f0b8);
  color: #1a2e1a;
  border-radius: 18px 4px 18px 18px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
  text-align: left;
}

body.theme-astrotalk .chat-welcome .chat-bubble {
  border-left: 3px solid var(--at-orange);
}

body.theme-astrotalk .chat-typing .chat-bubble {
  padding: 12px 16px;
  color: var(--at-text-muted);
  font-size: 0.8125rem;
}

body.theme-astrotalk .chat-form textarea {
  border-radius: 24px;
  padding: 12px 18px;
  border: 1px solid var(--border);
  background: #fff;
}

body.theme-astrotalk .chat-form textarea:focus {
  border-color: var(--at-orange);
  box-shadow: 0 0 0 3px rgba(255, 107, 0, 0.12);
}

