/* ============================================================
   ChandreshAstro - Main Stylesheet
   Color Palette: Saffron, Cream, Golden, Lavender, Maroon
   Developed@Projexive Technologies
   ============================================================ */

:root {
  --saffron: #FF6B00;
  --saffron-light: #FF8C3A;
  --saffron-pale: #FFF0E0;
  --golden: #D4A017;
  --golden-light: #F5C842;
  --golden-pale: #FFF8E1;
  --maroon: #8B1A1A;
  --maroon-dark: #6B1212;
  --maroon-light: #C0392B;
  --cream: #FFF5E6;
  --ivory: #FFFFF0;
  --peach: #FFDAB9;
  --lavender: #E6D5F5;
  --lavender-dark: #9B72CF;
  --earthy: #8B6914;
  --brown: #5C3A1E;
  --text-dark: #2C1810;
  --text-medium: #5D4037;
  --text-light: #8D6E63;
  --white: #FFFFFF;
  --border: #E8D5C4;
  --shadow: rgba(139, 26, 26, 0.12);
  --shadow-gold: rgba(212, 160, 23, 0.2);
  --gradient-hero: linear-gradient(135deg, #2C1810 0%, #8B1A1A 40%, #D4A017 100%);
  --gradient-card: linear-gradient(145deg, #FFF5E6, #FFF0E0);
  --gradient-gold: linear-gradient(135deg, #D4A017, #F5C842);
  --font-heading: 'Cinzel', Georgia, serif;
  --font-body: 'Poppins', sans-serif;
  --font-hindi: 'Tiro Devanagari Hindi', serif;
  --radius: 12px;
  --radius-lg: 20px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  /* Admin/User panel extras */
  --gradient-primary: linear-gradient(135deg, #8B1A1A, #D4A017);
  --border-color: #E8D5C4;
  --golden-dark: #B8860B;
  --cream-dark: #F5E6C8;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background: var(--cream);
  line-height: 1.7;
  overflow-x: hidden;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--cream); }
::-webkit-scrollbar-thumb { background: var(--golden); border-radius: 4px; }

/* ===== NAVBAR ===== */
.navbar {
  background: rgba(44, 24, 16, 0.97);
  backdrop-filter: blur(10px);
  padding: 0 2rem;
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 2px solid var(--golden);
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.navbar-brand .brand-icon {
  font-size: 2rem;
  color: var(--golden);
  animation: spin-slow 20s linear infinite;
}

.navbar-brand .brand-text {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--white);
  font-weight: 700;
  letter-spacing: 1px;
}

.navbar-brand .brand-text span { color: var(--golden); }

@keyframes spin-slow { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  list-style: none;
}

.nav-menu a {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  padding: 0.5rem 0.9rem;
  border-radius: 6px;
  font-size: 0.88rem;
  font-weight: 500;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 5px;
}

.nav-menu a:hover { color: var(--golden); background: rgba(212,160,23,0.1); }
.nav-menu a.active { color: var(--golden); }

.nav-right { display: flex; align-items: center; gap: 0.8rem; }

/* Language Toggle */
.lang-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.1);
  border-radius: 20px;
  padding: 4px 12px;
  cursor: pointer;
  transition: var(--transition);
}

.lang-toggle:hover { background: rgba(212,160,23,0.2); }
.lang-toggle span { color: var(--white); font-size: 0.8rem; font-weight: 500; }
.lang-toggle .switch { width: 32px; height: 18px; background: var(--golden); border-radius: 9px; position: relative; transition: var(--transition); }
.lang-toggle .switch::after { content: ''; position: absolute; width: 14px; height: 14px; background: white; border-radius: 50%; top: 2px; left: 2px; transition: var(--transition); }
.lang-toggle.hindi .switch::after { left: 16px; }

.btn-nav {
  padding: 0.45rem 1.2rem;
  border-radius: 25px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.btn-nav-outline { background: transparent; color: var(--golden); border: 1.5px solid var(--golden); }
.btn-nav-outline:hover { background: var(--golden); color: var(--text-dark); }
.btn-nav-primary { background: var(--gradient-gold); color: var(--text-dark); }
.btn-nav-primary:hover { transform: translateY(-2px); box-shadow: 0 4px 15px var(--shadow-gold); }

/* Mobile Menu Toggle */
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; }
.hamburger span { width: 24px; height: 2px; background: var(--white); border-radius: 2px; transition: var(--transition); }

/* ===== HERO SECTION ===== */
.hero {
  min-height: 100vh;
  background: var(--gradient-hero);
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23D4A017' fill-opacity='0.05'%3E%3Cpath d='M40 40m-35 0a35 35 0 1 0 70 0a35 35 0 1 0 -70 0'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") repeat;
  animation: bg-drift 30s linear infinite;
}

@keyframes bg-drift { from { background-position: 0 0; } to { background-position: 80px 80px; } }

.hero-particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--golden);
  border-radius: 50%;
  opacity: 0.4;
  animation: float-particle linear infinite;
}

@keyframes float-particle {
  0% { transform: translateY(100vh) rotate(0deg); opacity: 0; }
  10% { opacity: 0.4; }
  90% { opacity: 0.4; }
  100% { transform: translateY(-10vh) rotate(360deg); opacity: 0; }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-text { color: var(--white); }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(212,160,23,0.15);
  border: 1px solid rgba(212,160,23,0.4);
  color: var(--golden-light);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  margin-bottom: 1.5rem;
  animation: fadeInDown 0.6s ease;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5vw, 3.8rem);
  line-height: 1.2;
  margin-bottom: 1rem;
  animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-title .gold { color: var(--golden); }
.hero-title .saffron { color: var(--saffron-light); }

.hero-subtitle {
  font-size: 1.1rem;
  opacity: 0.85;
  margin-bottom: 1.5rem;
  animation: fadeInUp 0.8s ease 0.4s both;
}

.hero-astrologer {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(212,160,23,0.3);
  border-radius: 12px;
  padding: 12px 16px;
  margin-bottom: 2rem;
  animation: fadeInUp 0.8s ease 0.5s both;
}

.hero-astrologer .avatar {
  width: 52px;
  height: 52px;
  background: var(--gradient-gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.hero-astrologer .info h4 { font-size: 0.95rem; font-weight: 600; color: var(--golden); }
.hero-astrologer .info p { font-size: 0.8rem; opacity: 0.8; }

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  animation: fadeInUp 0.8s ease 0.6s both;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.75rem 1.5rem;
  border-radius: 30px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  text-decoration: none;
  white-space: nowrap;
}

.btn-gold { background: var(--gradient-gold); color: var(--text-dark); }
.btn-gold:hover { transform: translateY(-3px); box-shadow: 0 8px 25px rgba(212,160,23,0.4); }

.btn-outline-white { background: transparent; color: var(--white); border: 2px solid rgba(255,255,255,0.5); }
.btn-outline-white:hover { background: rgba(255,255,255,0.1); border-color: var(--white); }

.btn-saffron { background: var(--saffron); color: var(--white); }
.btn-saffron:hover { background: var(--saffron-light); transform: translateY(-3px); box-shadow: 0 8px 25px rgba(255,107,0,0.4); }

.btn-maroon { background: var(--maroon); color: var(--white); }
.btn-maroon:hover { background: var(--maroon-light); transform: translateY(-3px); }

.btn-youtube { background: #FF0000; color: var(--white); }
.btn-youtube:hover { background: #CC0000; transform: translateY(-3px); }

.btn-sm { padding: 0.5rem 1rem; font-size: 0.82rem; }
.btn-lg { padding: 1rem 2rem; font-size: 1rem; }

/* Hero Visual */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  animation: fadeInRight 1s ease 0.3s both;
}

.zodiac-wheel {
  width: 380px;
  height: 380px;
  position: relative;
}

.zodiac-outer {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 3px solid rgba(212,160,23,0.4);
  position: absolute;
  animation: rotate-wheel 60s linear infinite;
  background: conic-gradient(
    rgba(212,160,23,0.05) 0deg,
    rgba(255,107,0,0.05) 30deg,
    rgba(139,26,26,0.08) 60deg,
    rgba(212,160,23,0.05) 90deg,
    rgba(255,107,0,0.05) 120deg,
    rgba(139,26,26,0.08) 150deg,
    rgba(212,160,23,0.05) 180deg,
    rgba(255,107,0,0.05) 210deg,
    rgba(139,26,26,0.08) 240deg,
    rgba(212,160,23,0.05) 270deg,
    rgba(255,107,0,0.05) 300deg,
    rgba(139,26,26,0.08) 330deg,
    rgba(212,160,23,0.05) 360deg
  );
}

@keyframes rotate-wheel { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes counter-rotate { from { transform: rotate(0deg); } to { transform: rotate(-360deg); } }

.zodiac-signs {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.zodiac-sign {
  position: absolute;
  font-size: 1.5rem;
  color: var(--golden);
  text-shadow: 0 0 10px rgba(212,160,23,0.6);
  animation: counter-rotate 60s linear infinite;
}

.zodiac-inner {
  position: absolute;
  width: 60%;
  height: 60%;
  top: 20%;
  left: 20%;
  border-radius: 50%;
  border: 2px solid rgba(212,160,23,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(44,24,16,0.8);
}

.zodiac-center {
  font-size: 4rem;
  animation: pulse-glow 3s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% { text-shadow: 0 0 20px rgba(212,160,23,0.6); }
  50% { text-shadow: 0 0 40px rgba(212,160,23,1), 0 0 60px rgba(255,107,0,0.5); }
}

/* ===== STATS BAR ===== */
.stats-bar {
  background: var(--maroon);
  padding: 1.5rem 2rem;
}

.stats-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  text-align: center;
}

.stat-item { color: var(--white); }
.stat-item .stat-number { font-family: var(--font-heading); font-size: 2rem; color: var(--golden); display: block; }
.stat-item .stat-label { font-size: 0.85rem; opacity: 0.85; }

/* ===== SECTION STYLES ===== */
section { padding: 5rem 2rem; }
.section-alt { background: var(--ivory); }
.section-dark { background: var(--brown); color: var(--white); }

.section-header { text-align: center; margin-bottom: 3rem; }
.section-header .eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--saffron);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.section-header h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  color: var(--maroon);
  margin-bottom: 1rem;
}

.section-header p { color: var(--text-medium); max-width: 600px; margin: 0 auto; }
.section-header .divider {
  width: 80px;
  height: 3px;
  background: var(--gradient-gold);
  margin: 1rem auto;
  border-radius: 2px;
}

/* ===== SERVICES GRID ===== */
.services-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  border: 1px solid var(--border);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  cursor: default;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-gold);
  transform: scaleX(0);
  transition: var(--transition);
}

.service-card:hover { transform: translateY(-6px); box-shadow: 0 15px 40px var(--shadow); }
.service-card:hover::before { transform: scaleX(1); }

.service-icon {
  width: 60px;
  height: 60px;
  background: var(--saffron-pale);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 1.2rem;
}

.service-card h3 { font-family: var(--font-heading); font-size: 1.1rem; color: var(--maroon); margin-bottom: 0.5rem; }
.service-card .hindi-name { font-family: var(--font-hindi); font-size: 0.85rem; color: var(--saffron); margin-bottom: 0.8rem; }
.service-card p { font-size: 0.88rem; color: var(--text-medium); line-height: 1.6; }
.service-badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-top: 1rem;
}
.badge-free { background: #E8F5E9; color: #2E7D32; }
.badge-paid { background: var(--saffron-pale); color: var(--saffron); }
.badge-both { background: var(--lavender); color: var(--lavender-dark); }

/* ===== RASHIFAL SECTION ===== */
.rashifal-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
}

.rashi-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem 1rem;
  text-align: center;
  border: 1px solid var(--border);
  transition: var(--transition);
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  display: block;
}

.rashi-card:hover { transform: translateY(-4px); box-shadow: 0 10px 30px var(--shadow); border-color: var(--golden); }
.rashi-symbol { font-size: 2.5rem; margin-bottom: 0.5rem; }
.rashi-name { font-family: var(--font-heading); font-size: 0.95rem; color: var(--maroon); font-weight: 600; }
.rashi-hindi { font-family: var(--font-hindi); font-size: 0.85rem; color: var(--saffron); }

/* ===== PLANETARY SECTION ===== */
.planet-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.2rem;
}

.planet-card {
  background: linear-gradient(135deg, var(--brown), var(--maroon-dark));
  border-radius: var(--radius);
  padding: 1.5rem;
  color: var(--white);
  position: relative;
  overflow: hidden;
  transition: var(--transition);
  border: 1px solid rgba(212,160,23,0.2);
}

.planet-card::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(212,160,23,0.1) 0%, transparent 70%);
}

.planet-card:hover { transform: translateY(-4px); box-shadow: 0 10px 30px rgba(0,0,0,0.3); }
.planet-symbol { font-size: 2rem; margin-bottom: 0.5rem; }
.planet-name { font-family: var(--font-heading); font-size: 1rem; color: var(--golden); }
.planet-hindi { font-family: var(--font-hindi); font-size: 0.85rem; color: rgba(255,255,255,0.7); }
.planet-sign { font-size: 0.82rem; margin-top: 0.8rem; color: rgba(255,255,255,0.85); }
.planet-sign span { color: var(--golden-light); font-weight: 600; }
.retrograde-badge { background: rgba(255,107,0,0.2); color: var(--saffron-light); padding: 2px 8px; border-radius: 10px; font-size: 0.72rem; font-weight: 600; margin-left: 6px; }

/* ===== PANCHANG SECTION ===== */
.panchang-card {
  max-width: 900px;
  margin: 0 auto;
  background: linear-gradient(135deg, var(--maroon-dark), var(--brown));
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  color: var(--white);
  border: 1px solid rgba(212,160,23,0.3);
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.panchang-header { text-align: center; margin-bottom: 2rem; }
.panchang-header h3 { font-family: var(--font-heading); color: var(--golden); font-size: 1.5rem; }
.panchang-header .date { color: rgba(255,255,255,0.7); margin-top: 0.3rem; }
.panchang-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 1rem; }
.panchang-item { text-align: center; background: rgba(255,255,255,0.05); border-radius: 10px; padding: 1rem; border: 1px solid rgba(212,160,23,0.15); }
.panchang-item .label { font-size: 0.75rem; color: var(--golden); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 0.4rem; }
.panchang-item .value { font-size: 0.95rem; font-weight: 600; }
.panchang-mantra { margin-top: 1.5rem; text-align: center; padding: 1rem; background: rgba(212,160,23,0.1); border-radius: 10px; border: 1px solid rgba(212,160,23,0.2); }
.panchang-mantra .mantra-text { font-family: var(--font-hindi); font-size: 1.1rem; color: var(--golden); }

/* ===== FEATURES SECTION ===== */
.features-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.feature-item {
  display: flex;
  gap: 1.2rem;
  align-items: flex-start;
}

.feature-icon {
  width: 50px;
  height: 50px;
  background: var(--gradient-gold);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
  color: var(--text-dark);
}

.feature-item h4 { font-weight: 600; color: var(--maroon); margin-bottom: 0.3rem; }
.feature-item p { font-size: 0.88rem; color: var(--text-medium); }

/* ===== FACTS/TIPS ===== */
.facts-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.fact-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem;
  border-left: 4px solid var(--golden);
  box-shadow: 0 2px 15px var(--shadow);
  transition: var(--transition);
}

.fact-card:hover { transform: translateX(4px); }
.fact-card .fact-category { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 2px; color: var(--saffron); font-weight: 600; margin-bottom: 0.5rem; }
.fact-card h4 { font-weight: 600; color: var(--maroon); margin-bottom: 0.5rem; font-size: 0.95rem; }
.fact-card p { font-size: 0.86rem; color: var(--text-medium); }

/* ===== CTA SECTION ===== */
.cta-section {
  background: var(--gradient-hero);
  color: var(--white);
  text-align: center;
  padding: 5rem 2rem;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '☸';
  position: absolute;
  font-size: 20rem;
  opacity: 0.03;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: spin-slow 60s linear infinite;
}

.cta-section h2 { font-family: var(--font-heading); font-size: 2.5rem; margin-bottom: 1rem; }
.cta-section p { opacity: 0.85; max-width: 600px; margin: 0 auto 2rem; font-size: 1.05rem; }
.cta-buttons { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; }

/* ===== TESTIMONIALS ===== */
.testimonials-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.testimonial-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  border: 1px solid var(--border);
  position: relative;
}

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: -10px;
  left: 20px;
  font-size: 4rem;
  color: var(--golden);
  font-family: Georgia, serif;
  line-height: 1;
}

.testimonial-stars { color: var(--golden); margin-bottom: 1rem; font-size: 0.9rem; }
.testimonial-text { font-size: 0.9rem; color: var(--text-medium); margin-bottom: 1.2rem; font-style: italic; }
.testimonial-author { display: flex; align-items: center; gap: 10px; }
.testimonial-author .avatar { width: 40px; height: 40px; background: var(--saffron-pale); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; }
.testimonial-author h5 { font-size: 0.9rem; font-weight: 600; color: var(--maroon); }
.testimonial-author span { font-size: 0.78rem; color: var(--text-light); }

/* ===== FAQ ===== */
.faq-container { max-width: 800px; margin: 0 auto; }
.faq-item { border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 1rem; overflow: hidden; }
.faq-question {
  padding: 1.2rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  background: var(--white);
  transition: var(--transition);
  font-weight: 500;
  color: var(--maroon);
}
.faq-question:hover { background: var(--saffron-pale); }
.faq-question i { transition: var(--transition); color: var(--golden); }
.faq-item.open .faq-question i { transform: rotate(45deg); }
.faq-answer { padding: 0 1.5rem; max-height: 0; overflow: hidden; transition: max-height 0.3s ease, padding 0.3s ease; }
.faq-item.open .faq-answer { max-height: 200px; padding: 1rem 1.5rem; border-top: 1px solid var(--border); }
.faq-answer p { font-size: 0.9rem; color: var(--text-medium); }

/* ===== FOOTER ===== */
.site-footer { background: var(--text-dark); color: rgba(255,255,255,0.8); }
.footer-top { padding: 4rem 2rem; }
.footer-container { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 3rem; }
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 1rem; }
.footer-logo-icon { font-size: 2rem; color: var(--golden); }
.footer-logo-text { font-family: var(--font-heading); font-size: 1.4rem; color: var(--white); }
.footer-tagline { font-size: 0.88rem; opacity: 0.7; margin-bottom: 1.5rem; line-height: 1.6; }
.footer-social { display: flex; gap: 10px; }
.footer-social a { width: 36px; height: 36px; background: rgba(255,255,255,0.08); border-radius: 8px; display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.7); transition: var(--transition); font-size: 1rem; }
.footer-social a:hover { background: var(--golden); color: var(--text-dark); }
.footer-col h4 { font-family: var(--font-heading); color: var(--golden); margin-bottom: 1.2rem; font-size: 1rem; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.6rem; }
.footer-col ul li a { color: rgba(255,255,255,0.7); text-decoration: none; font-size: 0.88rem; transition: var(--transition); }
.footer-col ul li a:hover { color: var(--golden); padding-left: 5px; }
.footer-col p { font-size: 0.88rem; margin-bottom: 0.6rem; display: flex; align-items: center; gap: 8px; }
.footer-col p i { color: var(--golden); width: 16px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding: 1.2rem 2rem; text-align: center; font-size: 0.85rem; color: rgba(255,255,255,0.5); }
.footer-bottom strong { color: var(--golden); }

/* ===== AUTH FORMS ===== */
.auth-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: var(--gradient-hero); padding: 2rem; }
.auth-card { background: var(--white); border-radius: var(--radius-lg); padding: 3rem; width: 100%; max-width: 520px; box-shadow: 0 30px 80px rgba(0,0,0,0.3); }
.auth-card .auth-logo { text-align: center; margin-bottom: 2rem; }
.auth-card .auth-logo .logo-icon { font-size: 3rem; color: var(--golden); display: block; }
.auth-card .auth-logo h2 { font-family: var(--font-heading); color: var(--maroon); margin-top: 0.5rem; }
.auth-card .auth-logo p { color: var(--text-light); font-size: 0.9rem; }

.form-group { margin-bottom: 1.2rem; }
.form-group label { display: block; font-size: 0.85rem; font-weight: 500; color: var(--text-medium); margin-bottom: 0.4rem; }
.form-group label span.req { color: var(--saffron); }
.form-control {
  width: 100%;
  padding: 0.65rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text-dark);
  background: var(--ivory);
  transition: var(--transition);
  outline: none;
}
.form-control:focus { border-color: var(--golden); background: var(--white); box-shadow: 0 0 0 3px rgba(212,160,23,0.15); }
.form-control.is-invalid { border-color: var(--saffron); }
.invalid-feedback { color: var(--saffron); font-size: 0.8rem; margin-top: 0.3rem; }
.form-check { display: flex; align-items: flex-start; gap: 8px; margin-bottom: 1rem; }
.form-check input[type="checkbox"] { margin-top: 3px; accent-color: var(--golden); }
.form-check label { font-size: 0.85rem; color: var(--text-medium); }
.form-check label a { color: var(--saffron); text-decoration: none; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-text { font-size: 0.8rem; color: var(--text-light); margin-top: 0.3rem; }

.btn-primary { background: var(--gradient-gold); color: var(--text-dark); width: 100%; padding: 0.8rem; font-size: 0.95rem; font-weight: 600; border: none; border-radius: 8px; cursor: pointer; transition: var(--transition); display: flex; align-items: center; justify-content: center; gap: 8px; }
.btn-primary:hover { box-shadow: 0 6px 20px rgba(212,160,23,0.4); transform: translateY(-2px); }

.auth-footer { text-align: center; margin-top: 1.5rem; font-size: 0.88rem; color: var(--text-light); }
.auth-footer a { color: var(--saffron); text-decoration: none; font-weight: 500; }

/* Alerts */
.alert { padding: 0.8rem 1rem; border-radius: 8px; margin-bottom: 1rem; font-size: 0.88rem; display: flex; align-items: center; gap: 8px; }
.alert-success { background: #E8F5E9; color: #2E7D32; border: 1px solid #A5D6A7; }
.alert-danger { background: #FFEBEE; color: #C62828; border: 1px solid #FFCDD2; }
.alert-warning { background: var(--golden-pale); color: var(--earthy); border: 1px solid var(--golden); }
.alert-info { background: var(--lavender); color: var(--lavender-dark); border: 1px solid var(--lavender-dark); }

/* ===== DASHBOARD LAYOUT ===== */
.dashboard-wrapper { display: flex; min-height: 100vh; }
.sidebar {
  width: 260px;
  background: linear-gradient(180deg, var(--text-dark) 0%, var(--maroon-dark) 100%);
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  z-index: 900;
  overflow-y: auto;
  transition: var(--transition);
}

.sidebar-logo {
  padding: 1.5rem 1.5rem 1rem;
  border-bottom: 1px solid rgba(212,160,23,0.2);
  display: flex;
  align-items: center;
  gap: 10px;
}
.sidebar-logo .logo-icon { font-size: 1.8rem; color: var(--golden); }
.sidebar-logo .logo-text { font-family: var(--font-heading); color: var(--white); font-size: 1.15rem; }
.sidebar-logo .logo-sub { font-size: 0.72rem; color: var(--golden); display: block; }

.sidebar-nav { flex: 1; padding: 1rem 0; }
.sidebar-section { padding: 0.5rem 1.5rem 0.3rem; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 2px; color: rgba(255,255,255,0.35); font-weight: 600; }

.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0.7rem 1.5rem;
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  font-size: 0.88rem;
  transition: var(--transition);
  border-left: 3px solid transparent;
}
.sidebar-nav a:hover { color: var(--white); background: rgba(212,160,23,0.1); border-left-color: var(--golden); }
.sidebar-nav a.active { color: var(--golden); background: rgba(212,160,23,0.12); border-left-color: var(--golden); font-weight: 500; }
.sidebar-nav a i { width: 18px; text-align: center; }

.sidebar-footer { padding: 1rem 1.5rem; border-top: 1px solid rgba(255,255,255,0.1); }
.sidebar-user { display: flex; align-items: center; gap: 10px; }
.sidebar-user .user-avatar { width: 36px; height: 36px; background: var(--gradient-gold); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1rem; }
.sidebar-user .user-info { flex: 1; min-width: 0; }
.sidebar-user .user-info h5 { font-size: 0.85rem; color: var(--white); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar-user .user-info span { font-size: 0.72rem; color: rgba(255,255,255,0.5); }

.main-content { margin-left: 260px; flex: 1; display: flex; flex-direction: column; min-height: 100vh; }

.topbar {
  height: 60px;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  position: sticky;
  top: 0;
  z-index: 800;
  box-shadow: 0 2px 10px var(--shadow);
}

.topbar-title h1 { font-size: 1.1rem; color: var(--maroon); font-weight: 600; font-family: var(--font-heading); }
.topbar-title p { font-size: 0.78rem; color: var(--text-light); }
.topbar-right { display: flex; align-items: center; gap: 1rem; }
.topbar-icon { position: relative; width: 36px; height: 36px; background: var(--saffron-pale); border-radius: 8px; display: flex; align-items: center; justify-content: center; cursor: pointer; color: var(--saffron); transition: var(--transition); border: none; }
.topbar-icon:hover { background: var(--saffron); color: var(--white); }
.badge-count { position: absolute; top: -5px; right: -5px; background: var(--saffron); color: var(--white); width: 18px; height: 18px; border-radius: 50%; font-size: 0.65rem; display: flex; align-items: center; justify-content: center; font-weight: 600; }

.page-content { padding: 2rem; flex: 1; }

/* ===== DASHBOARD CARDS ===== */
.stats-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1.2rem; margin-bottom: 2rem; }
.stat-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.4rem;
  border: 1px solid var(--border);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.stat-card::before { content: ''; position: absolute; top: 0; right: 0; width: 80px; height: 80px; border-radius: 0 0 0 80px; opacity: 0.08; }
.stat-card:hover { transform: translateY(-3px); box-shadow: 0 8px 25px var(--shadow); }
.stat-card .stat-icon { width: 44px; height: 44px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; margin-bottom: 1rem; }
.stat-card .stat-value { font-size: 2rem; font-weight: 700; font-family: var(--font-heading); line-height: 1; }
.stat-card .stat-label { font-size: 0.8rem; color: var(--text-light); margin-top: 0.3rem; }
.stat-card .stat-change { font-size: 0.75rem; margin-top: 0.5rem; display: flex; align-items: center; gap: 4px; }
.stat-card.gold .stat-icon { background: var(--golden-pale); color: var(--golden); }
.stat-card.gold .stat-value { color: var(--golden); }
.stat-card.saffron .stat-icon { background: var(--saffron-pale); color: var(--saffron); }
.stat-card.saffron .stat-value { color: var(--saffron); }
.stat-card.maroon .stat-icon { background: #FFEBEE; color: var(--maroon); }
.stat-card.maroon .stat-value { color: var(--maroon); }
.stat-card.lavender .stat-icon { background: var(--lavender); color: var(--lavender-dark); }
.stat-card.lavender .stat-value { color: var(--lavender-dark); }
.stat-card.green .stat-icon { background: #E8F5E9; color: #2E7D32; }
.stat-card.green .stat-value { color: #2E7D32; }

/* Tables */
.table-container { background: var(--white); border-radius: var(--radius); border: 1px solid var(--border); overflow: hidden; }
.table-header { padding: 1.2rem 1.5rem; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; }
.table-header h3 { font-size: 1rem; color: var(--maroon); font-weight: 600; }
table { width: 100%; border-collapse: collapse; }
thead tr { background: var(--saffron-pale); }
thead th { padding: 0.75rem 1rem; text-align: left; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 1px; color: var(--saffron); font-weight: 600; white-space: nowrap; }
tbody tr { border-bottom: 1px solid var(--border); transition: var(--transition); }
tbody tr:hover { background: var(--golden-pale); }
tbody td { padding: 0.75rem 1rem; font-size: 0.88rem; color: var(--text-medium); }
tbody tr:last-child { border-bottom: none; }

/* Badges */
.badge { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 20px; font-size: 0.75rem; font-weight: 600; }
.badge-success { background: #E8F5E9; color: #2E7D32; }
.badge-warning { background: var(--golden-pale); color: var(--earthy); }
.badge-danger { background: #FFEBEE; color: #C62828; }
.badge-primary { background: var(--saffron-pale); color: var(--saffron); }
.badge-info { background: var(--lavender); color: var(--lavender-dark); }

/* Action buttons */
.action-btn { padding: 4px 10px; border-radius: 6px; font-size: 0.78rem; cursor: pointer; border: none; transition: var(--transition); display: inline-flex; align-items: center; gap: 4px; text-decoration: none; font-weight: 500; }
.action-btn.edit { background: var(--golden-pale); color: var(--earthy); }
.action-btn.delete { background: #FFEBEE; color: #C62828; }
.action-btn.view { background: var(--lavender); color: var(--lavender-dark); }
.action-btn.approve { background: #E8F5E9; color: #2E7D32; }
.action-btn.reject { background: #FFEBEE; color: #C62828; }
.action-btn:hover { transform: translateY(-1px); filter: brightness(0.95); }

/* Cards / Panels */
.panel { background: var(--white); border-radius: var(--radius); border: 1px solid var(--border); overflow: hidden; margin-bottom: 1.5rem; }
.panel-header { padding: 1rem 1.5rem; border-bottom: 1px solid var(--border); background: var(--saffron-pale); display: flex; justify-content: space-between; align-items: center; }
.panel-header h3 { font-size: 0.95rem; color: var(--maroon); font-weight: 600; display: flex; align-items: center; gap: 8px; }
.panel-body { padding: 1.5rem; }

/* Rashifal Detail Card */
.rashifal-detail {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 4px 20px var(--shadow);
}
.rashifal-detail-header {
  background: var(--gradient-hero);
  color: var(--white);
  padding: 2rem;
  text-align: center;
}
.rashifal-detail-header .rashi-big { font-size: 4rem; }
.rashifal-detail-header h2 { font-family: var(--font-heading); font-size: 1.8rem; color: var(--golden); }
.rashifal-detail-header .rashi-date { font-size: 0.85rem; opacity: 0.7; }
.rashifal-detail-body { padding: 2rem; }
.rashifal-section { margin-bottom: 1.5rem; }
.rashifal-section h4 { font-weight: 600; color: var(--maroon); margin-bottom: 0.5rem; display: flex; align-items: center; gap: 8px; font-size: 0.95rem; }
.rashifal-section p { font-size: 0.9rem; color: var(--text-medium); }
.lucky-items { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 0.5rem; }
.lucky-item { background: var(--saffron-pale); border-radius: 8px; padding: 0.5rem 1rem; font-size: 0.85rem; }
.lucky-item .label { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 1px; color: var(--saffron); }
.lucky-item .value { font-weight: 600; color: var(--text-dark); }

/* Report styles */
.report-paper {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  max-width: 800px;
  margin: 0 auto;
  overflow: hidden;
  box-shadow: 0 5px 30px var(--shadow);
}
.report-header {
  background: var(--gradient-hero);
  color: var(--white);
  padding: 2rem;
  text-align: center;
  border-bottom: 4px solid var(--golden);
}
.report-header h1 { font-family: var(--font-heading); font-size: 2rem; color: var(--golden); }
.report-header p { opacity: 0.8; font-size: 0.9rem; }
.report-body { padding: 2rem; }
.report-section { margin-bottom: 2rem; border-bottom: 1px dashed var(--border); padding-bottom: 1.5rem; }
.report-section:last-child { border-bottom: none; }
.report-section h3 { font-family: var(--font-heading); color: var(--maroon); margin-bottom: 1rem; display: flex; align-items: center; gap: 8px; }
.report-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; }
.report-item { background: var(--saffron-pale); border-radius: 8px; padding: 0.8rem 1rem; }
.report-item .key { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 1px; color: var(--saffron); }
.report-item .val { font-weight: 600; color: var(--text-dark); font-size: 0.95rem; }
.report-footer { background: var(--text-dark); color: var(--white); padding: 1rem 2rem; text-align: center; font-size: 0.82rem; }
.report-footer strong { color: var(--golden); }

/* Consultation booking */
.consultation-modes { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 0.5rem; }
.mode-option { flex: 1; min-width: 120px; border: 2px solid var(--border); border-radius: 10px; padding: 1rem; text-align: center; cursor: pointer; transition: var(--transition); }
.mode-option:hover { border-color: var(--golden); }
.mode-option.selected { border-color: var(--saffron); background: var(--saffron-pale); }
.mode-option input { display: none; }
.mode-option .mode-icon { font-size: 1.5rem; margin-bottom: 0.3rem; }
.mode-option .mode-name { font-size: 0.82rem; font-weight: 500; color: var(--text-medium); }

/* Upload area */
.upload-area {
  border: 2px dashed var(--golden);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  background: var(--golden-pale);
  transition: var(--transition);
  cursor: pointer;
}
.upload-area:hover { background: var(--saffron-pale); border-color: var(--saffron); }
.upload-area i { font-size: 2.5rem; color: var(--golden); margin-bottom: 0.5rem; }
.upload-area p { color: var(--text-medium); font-size: 0.9rem; }
.upload-area span { font-size: 0.8rem; color: var(--text-light); }

/* Notification items */
.notification-list { list-style: none; }
.notification-item { display: flex; gap: 12px; padding: 0.8rem 0; border-bottom: 1px solid var(--border); align-items: flex-start; }
.notification-item:last-child { border-bottom: none; }
.notif-icon { width: 36px; height: 36px; border-radius: 8px; background: var(--saffron-pale); display: flex; align-items: center; justify-content: center; color: var(--saffron); font-size: 1rem; flex-shrink: 0; }
.notif-content h5 { font-size: 0.88rem; color: var(--text-dark); font-weight: 500; }
.notif-content p { font-size: 0.8rem; color: var(--text-light); }
.notif-time { font-size: 0.75rem; color: var(--text-light); white-space: nowrap; }

/* Print styles */
@media print {
  .no-print, .sidebar, .topbar, .navbar, .site-footer, .page-actions { display: none !important; }
  .main-content { margin-left: 0 !important; }
  body { background: white !important; }
  .report-paper { box-shadow: none !important; border: none !important; }
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInDown { from { opacity: 0; transform: translateY(-20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInRight { from { opacity: 0; transform: translateX(40px); } to { opacity: 1; transform: translateX(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.animate-fadein { animation: fadeIn 0.5s ease; }
.animate-up { animation: fadeInUp 0.6s ease; }

/* ===== SCROLL ANIMATIONS ===== */
.scroll-reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.6s ease, transform 0.6s ease; }
.scroll-reveal.visible { opacity: 1; transform: translateY(0); }

/* ============================================================
   RESPONSIVE — Full Mobile / Tablet Coverage
   Developed@Projexive Technologies
   ============================================================ */

/* ── Sidebar overlay (mobile) ──────────────────────────────── */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  z-index: 999;
  backdrop-filter: blur(2px);
}
.sidebar-overlay.active { display: block; }

/* ── 1200px — wide ─────────────────────────────────────────── */
@media (max-width: 1200px) {
  .hero-content { padding: 3rem 1.5rem; gap: 3rem; }
  .zodiac-wheel { width: 320px; height: 320px; }
  .footer-container { gap: 2rem; }
}

/* ── 1024px — tablet landscape ─────────────────────────────── */
@media (max-width: 1024px) {
  .hero-content { grid-template-columns: 1fr; text-align: center; gap: 2.5rem; }
  .hero-visual { order: -1; }
  .hero-cta { justify-content: center; }
  .zodiac-wheel { width: 260px; height: 260px; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-container { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  section { padding: 4rem 1.5rem; }
}

/* ── 768px — tablet portrait / large phone ──────────────────── */
@media (max-width: 768px) {

  /* Navbar */
  .navbar { padding: 0 1rem; height: 60px; }
  .navbar-brand .brand-text { font-size: 1.15rem; }
  .nav-menu {
    display: none;
    position: fixed;
    top: 60px; left: 0; right: 0; bottom: 0;
    background: rgba(44,24,16,.97);
    flex-direction: column;
    padding: 1.5rem 1rem;
    gap: 0.2rem;
    overflow-y: auto;
    z-index: 999;
  }
  .nav-menu.open { display: flex; }
  .nav-menu a { padding: 0.85rem 1rem; font-size: 1rem; border-radius: 8px; }
  .nav-right .btn-nav { display: none; }
  .nav-right .btn-nav-primary { display: inline-flex; padding: 0.4rem 0.9rem; font-size: .8rem; }
  .hamburger { display: flex; }
  .hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .hamburger.open span:nth-child(2) { opacity: 0; }
  .hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .lang-toggle { padding: 4px 8px; }
  .lang-toggle span { display: none; }

  /* Hero */
  .hero { min-height: auto; padding-bottom: 3rem; }
  .hero-content { padding: 3rem 1rem 2rem; }
  .hero-title { font-size: clamp(1.8rem, 7vw, 2.6rem); }
  .hero-subtitle { font-size: 0.95rem; }
  .hero-astrologer { flex-wrap: wrap; }
  .hero-cta { flex-direction: column; align-items: center; }
  .hero-cta .btn { width: 100%; max-width: 300px; justify-content: center; }
  .zodiac-wheel { width: 200px; height: 200px; }

  /* Sections */
  section { padding: 3rem 1rem; }
  .section-header { margin-bottom: 2rem; }
  .section-header h2 { font-size: clamp(1.4rem, 5vw, 2rem); }

  /* Stats bar */
  .stats-bar { padding: 1.5rem 1rem; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .stat-item .stat-number { font-size: 1.6rem; }

  /* Rashifal grid */
  .rashifal-grid { grid-template-columns: repeat(3, 1fr); gap: 0.7rem; }
  .rashi-card { padding: 1rem 0.5rem; }
  .rashi-symbol { font-size: 1.8rem; }
  .rashi-name { font-size: 0.8rem; }
  .rashi-hindi { font-size: 0.72rem; }

  /* Planet grid */
  .planet-grid { grid-template-columns: repeat(2, 1fr); gap: 0.8rem; }
  .planet-card { padding: 1.2rem; }

  /* Panchang */
  .panchang-card { padding: 1.5rem 1rem; }
  .panchang-grid { grid-template-columns: repeat(2, 1fr); gap: 0.8rem; }

  /* Features */
  .features-grid { grid-template-columns: 1fr; gap: 1.5rem; }

  /* Facts grid */
  .facts-grid { grid-template-columns: 1fr; }

  /* Testimonials */
  .testimonials-grid { grid-template-columns: 1fr; }

  /* CTA */
  .cta-section { padding: 3rem 1rem; }
  .cta-section h2 { font-size: 1.6rem; }
  .cta-buttons { flex-direction: column; align-items: center; }
  .cta-buttons .btn { width: 100%; max-width: 300px; justify-content: center; }

  /* Footer */
  .footer-top { padding: 2.5rem 1rem; }
  .footer-container { grid-template-columns: 1fr; gap: 1.8rem; }
  .footer-bottom { padding: 1rem; font-size: .78rem; }

  /* Auth forms */
  .auth-page { padding: 1rem; align-items: flex-start; padding-top: 2rem; }
  .auth-card { padding: 2rem 1.2rem; }

  /* Form row — stack on mobile */
  .form-row { grid-template-columns: 1fr; gap: 0 }

  /* ── Admin / User panel sidebar ────────────────────────────── */
  .admin-sidebar,
  .user-sidebar {
    transform: translateX(-100%);
    transition: transform 0.28s cubic-bezier(0.4,0,0.2,1);
    z-index: 1000;
  }
  .admin-sidebar.open,
  .user-sidebar.open { transform: translateX(0); }

  .admin-main,
  .user-main { margin-left: 0 !important; }

  .admin-topbar,
  .user-topbar { padding: 10px 14px; }

  .admin-content { padding: 14px 12px; }
  .user-content  { padding: 14px 12px; }

  /* Dashboard stat cards */
  .stats-cards { grid-template-columns: repeat(2, 1fr); gap: 0.8rem; }
  .stat-card .stat-value { font-size: 1.5rem; }

  /* Dash cards */
  .dash-card-body { padding: 14px; }

  /* Tables — horizontal scroll */
  .table-container,
  .table-responsive-wrapper { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  table { min-width: 520px; }
  thead th { font-size: 0.72rem; padding: 0.6rem 0.7rem; }
  tbody td { font-size: 0.82rem; padding: 0.6rem 0.7rem; }

  /* Page header */
  .page-header h4 { font-size: 1.1rem; }
  .page-header .breadcrumb { font-size: .75rem; }

  /* Report grid */
  .report-grid { grid-template-columns: 1fr; }
  .report-body { padding: 1.2rem; }
  .report-header { padding: 1.5rem 1rem; }
  .report-header h1 { font-size: 1.5rem; }

  /* User sidebar topbar-admin text — hide name, show only icon */
  .topbar-admin .admin-name-text { display: none; }
}

/* ── 480px — small phone ────────────────────────────────────── */
@media (max-width: 480px) {

  /* Navbar brand */
  .navbar-brand .brand-text { font-size: 1rem; letter-spacing: 0; }
  .navbar-brand .brand-icon { font-size: 1.5rem; }

  /* Hero */
  .hero-content { padding: 2.5rem 0.8rem 1.5rem; }
  .hero-badge { font-size: 0.72rem; padding: 5px 12px; }
  .hero-astrologer { padding: 10px 12px; }
  .hero-astrologer .avatar { width: 44px; height: 44px; font-size: 1.2rem; }

  /* Rashifal grid — 3 columns on small phone too */
  .rashifal-grid { grid-template-columns: repeat(3, 1fr); gap: 0.5rem; }
  .rashi-card { padding: 0.8rem 0.3rem; }
  .rashi-symbol { font-size: 1.5rem; margin-bottom: 0.3rem; }
  .rashi-name  { font-size: 0.72rem; }
  .rashi-hindi { font-size: 0.65rem; }

  /* Planet grid */
  .planet-grid { grid-template-columns: 1fr; }

  /* Stats grid */
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 0.7rem; }

  /* Dashboard stat cards */
  .stats-cards { grid-template-columns: repeat(2, 1fr); gap: 0.6rem; }
  .stat-card { padding: 1rem; }
  .stat-card .stat-value { font-size: 1.3rem; }

  /* Auth card */
  .auth-card { padding: 1.5rem 1rem; border-radius: 12px; }
  .auth-card .auth-logo .logo-icon { font-size: 2.5rem; }
  .auth-card .auth-logo h2 { font-size: 1.3rem; }

  /* Panchang */
  .panchang-card { padding: 1.2rem 0.8rem; }
  .panchang-grid { grid-template-columns: repeat(2, 1fr); gap: 0.6rem; }
  .panchang-item { padding: 0.7rem 0.5rem; }
  .panchang-item .value { font-size: 0.82rem; }

  /* Section padding */
  section { padding: 2.5rem 0.8rem; }

  /* Admin/User content */
  .admin-content { padding: 10px 8px; }
  .user-content  { padding: 10px 8px; }

  /* Topbar — smaller */
  .topbar-admin { gap: 6px; }
  .admin-topbar .topbar-title,
  .user-topbar span { font-size: 0.95rem; }

  /* Sidebar nav links — smaller */
  .sidebar-link,
  .user-link { padding: 9px 14px; font-size: .84rem; }

  /* Forms */
  .form-control { padding: 0.6rem 0.8rem; font-size: 0.88rem; }
  .btn { padding: 0.65rem 1.2rem; font-size: 0.85rem; }

  /* CTA section */
  .cta-section h2 { font-size: 1.4rem; }
  .cta-section p  { font-size: 0.88rem; }

  /* Footer */
  .footer-top { padding: 2rem 0.8rem; }
  .footer-logo-text { font-size: 1.2rem; }
}

/* ── Print ─────────────────────────────────────────────────── */
@media print {
  .no-print, .admin-sidebar, .user-sidebar, .admin-topbar, .user-topbar,
  .navbar, .site-footer, .page-actions, .sidebar-overlay { display: none !important; }
  .admin-main, .user-main, .main-content { margin-left: 0 !important; }
  body { background: white !important; }
  .report-paper { box-shadow: none !important; border: none !important; }
}

/* ── Animations ─────────────────────────────────────────────── */
@keyframes fadeInUp   { from { opacity:0; transform:translateY(30px); }  to { opacity:1; transform:translateY(0); } }
@keyframes fadeInDown { from { opacity:0; transform:translateY(-20px); } to { opacity:1; transform:translateY(0); } }
@keyframes fadeInRight{ from { opacity:0; transform:translateX(40px); }  to { opacity:1; transform:translateX(0); } }
@keyframes fadeIn     { from { opacity:0; }                               to { opacity:1; } }

.animate-fadein { animation: fadeIn 0.5s ease; }
.animate-up     { animation: fadeInUp 0.6s ease; }

/* Scroll-reveal */
.scroll-reveal { opacity:0; transform:translateY(30px); transition:opacity .6s ease, transform .6s ease; }
.scroll-reveal.visible { opacity:1; transform:translateY(0); }
