:root {
  --primary-gold: #FFD700;
  --secondary-gold: #D4AF37;
  --dark-blue: #011035;
  --darker-blue: #000813;
  --light-gold: #FFF9C4;
  --text-light: #F5F5F5;
  --text-gray: #CCCCCC;
  --navy: #0a1930;
}

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

body {
  background: linear-gradient(135deg, var(--darker-blue) 0%, var(--dark-blue) 50%, #000000 100%);
  color: var(--text-light);
  font-family: 'DM Sans', sans-serif;
  line-height: 1.7;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  text-align: center;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23FFD700" fill-opacity="0.03" d="M0,128L48,117.3C96,107,192,85,288,112C384,139,480,213,576,218.7C672,224,768,160,864,138.7C960,117,1056,139,1152,149.3C1248,160,1344,160,1392,160L1440,160L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
  background-size: cover;
  z-index: -1;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

/* Header Styles */
.main-header {
  text-align: center;
  margin: 30px 0;
  position: relative;
}

.main-header h1 {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  margin-bottom: 15px;
  background: linear-gradient(to right, var(--primary-gold) 0%, #ffffff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.main-header p {
  font-size: 1.2rem;
  color: var(--text-gray);
  max-width: 600px;
  margin: 0 auto;
}

/* Form Styles */
.form-container {
  background: rgba(1, 16, 53, 0.7);
  border-radius: 20px;
  padding: 30px;
  margin: 30px auto;
  max-width: 600px;
  border: 1px solid rgba(255, 215, 0, 0.2);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  position: relative;
}

.form-container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(to right, transparent, var(--primary-gold), transparent);
}

.form-group {
  margin-bottom: 20px;
  text-align: left;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: var(--primary-gold);
  font-weight: 500;
}

.form-control {
  width: 100%;
  padding: 14px;
  border-radius: 10px;
  border: 1px solid rgba(255, 215, 0, 0.3);
  background: rgba(0, 0, 0, 0.4);
  color: var(--text-light);
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-gold);
  box-shadow: 0 0 0 2px rgba(255, 215, 0, 0.2);
}

.mode-buttons {
  display: flex;
  gap: 15px;
  margin-top: 25px;
}

.mode-btn {
  flex: 1;
  padding: 16px;
  border-radius: 10px;
  border: none;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.normal-btn {
  background: linear-gradient(to right, var(--primary-gold), #ffbb00);
  color: var(--darker-blue);
}

.deep-btn {
  background: linear-gradient(to right, var(--navy), #1a2b57);
  color: var(--primary-gold);
  border: 1px solid var(--primary-gold);
}

.mode-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Response + Verses (NO CARD STYLE) */
#response, #verses {
  margin: 30px auto;
  width: 92%;
  max-width: 900px;
  text-align: left;
  font-size: clamp(15px, 2vw, 20px);
  line-height: 1.7;
  color: #ffe066;
  padding: 10px 0;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  max-height: none;
  overflow-y: visible;
}

/* Sloka inside response */
#response b {
  display: block;
  font-family: "Noto Sans Devanagari", serif;
  font-size: clamp(18px, 3vw, 24px);
  margin: 20px 0 10px;
  text-align: center;
  color: #ffecb3;
}

#response b + span {
  font-size: clamp(14px, 2.5vw, 18px);
  color: #fff9c4;
  display: block;
  text-align: center;
  margin-bottom: 15px;
  font-style: italic;
}

/* Verse block */
.verse-block {
  margin: 20px 0;
  padding: 10px;
  border-left: 4px solid var(--primary-gold);
}

/* Loader */
#loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100vh;
  background: rgba(0,0,0,0.7);
  position: fixed;
  inset: 0;
  z-index: 1000;
}

.chakra {
  width: clamp(70px, 20vw, 120px);
  height: auto;
  animation: flipFast 0.1s linear infinite;
  transform-style: preserve-3d;
}

@keyframes flipFast {
  0% { transform: rotateY(0deg); }
  50% { transform: rotateY(180deg); }
  100% { transform: rotateY(360deg); }
}

.loading-text {
  margin-top: 15px;
  font-size: clamp(13px, 3vw, 18px);
  color: gold;
}

/* Responsive */
@media (max-width: 768px) {
  .form-container {
    padding: 20px;
  }
  #response, #verses {
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 1.6rem;
  }
  .mode-btn {
    font-size: 14px;
    padding: 12px;
  }
  #response, #verses {
    font-size: 15px;
  }
}
/* Response + Verses CARD STYLE */
#response, #verses {
  margin: 30px auto;
  width: 92%;
  max-width: 900px;
  text-align: left;
  font-size: clamp(15px, 2vw, 20px);
  line-height: 1.7;
  color: #ffe066;

  /* 🔥 Card style */
  background: rgba(0, 0, 0, 0.85);
  border-radius: 20px;
  padding: 25px;
  border: 1px solid var(--primary-gold);
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.3);
}

/* Section headings inside */
#response h2, #verses h2 {
  color: var(--primary-gold);
  margin-bottom: 15px;
  text-align: center;
  font-size: clamp(20px, 3vw, 26px);
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.6);
}

/* Sloka inside response */
#response b {
  display: block;
  font-family: "Noto Sans Devanagari", serif;
  font-size: clamp(18px, 3vw, 24px);
  margin: 20px 0 10px;
  text-align: center;
  color: #ffecb3;
}

#response b + span {
  font-size: clamp(14px, 2.5vw, 18px);
  color: #fff9c4;
  display: block;
  text-align: center;
  margin-bottom: 15px;
  font-style: italic;
}

/* Verse block (inside references card) */
.verse-block {
  margin: 15px 0;
  padding: 15px;
  border-left: 4px solid var(--primary-gold);
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
}
