/* MeraKundli - Apple Liquid Glass Design System (Enhanced) */

:root {
  /* Cosmic palette — mystery of the unknown, depth of space */
  --cosmic-bg-start: #030311;
  --cosmic-bg-mid: #0a0820;
  --cosmic-bg-end: #120630;
  --cosmic-accent: #1a0d3a;

  /* Glass — ethereal, like looking through a crystal ball */
  --glass-bg: rgba(255, 255, 255, 0.06);
  --glass-bg-hover: rgba(255, 255, 255, 0.11);
  --glass-bg-strong: rgba(255, 255, 255, 0.09);
  --glass-border: rgba(255, 255, 255, 0.12);
  --glass-border-hover: rgba(255, 255, 255, 0.25);
  --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.45), 0 0 0 0.5px rgba(255,255,255,0.05);
  --glass-shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.55), 0 0 0 0.5px rgba(255,255,255,0.07);
  --glass-inset: inset 0 1px 0 rgba(255, 255, 255, 0.10), inset 0 -1px 0 rgba(255, 255, 255, 0.03);
  --glass-blur: blur(24px) saturate(200%);

  /* Text — warm white, not harsh */
  --text-primary: rgba(255, 252, 245, 0.95);
  --text-secondary: rgba(255, 252, 245, 0.62);
  --text-tertiary: rgba(255, 252, 245, 0.38);

  /* Accents — hope (warm gold), mystery (deep violet), future (cyan), wisdom (amber) */
  --accent-gold: #f0c040;
  --accent-purple: #b366ff;
  --accent-blue: #38bdf8;
  --accent-teal: #2dd4a8;
  --accent-red: #f87171;

  /* Spacing */
  --radius-sm: 14px;
  --radius-md: 18px;
  --radius-lg: 24px;
  --radius-xl: 32px;
}

/* ================================================================
   CORE GLASS EFFECT — Apple Liquid Glass with refraction + depth
   ================================================================ */
.glass {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--glass-shadow), var(--glass-inset);
  transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
}

/* Refraction light streak — the Apple Liquid Glass signature */
.glass::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: inherit;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.08) 0%,
    rgba(255, 255, 255, 0.02) 30%,
    transparent 50%,
    rgba(255, 255, 255, 0.015) 70%,
    rgba(255, 255, 255, 0.06) 100%
  );
  pointer-events: none;
  z-index: 0;
}

.glass > * {
  position: relative;
  z-index: 1;
}

.glass:hover {
  background: var(--glass-bg-hover);
  border-color: var(--glass-border-hover);
  transform: translateY(-3px);
  box-shadow: var(--glass-shadow-lg), var(--glass-inset);
}

/* Glass card variants */
.glass-card {
  padding: 1.5rem;
}

.glass-card-sm {
  padding: 1.25rem;
  border-radius: var(--radius-md);
}

.glass-card-lg {
  padding: 3rem;
  border-radius: var(--radius-xl);
}

/* ================================================================
   GLASS BUTTON — frosted with gradient + light reflection
   ================================================================ */
.glass-btn {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px) saturate(150%);
  -webkit-backdrop-filter: blur(12px) saturate(150%);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  padding: 0.75rem 1.5rem;
  font-family: 'Ubuntu Condensed', 'Ubuntu', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  position: relative;
  overflow: hidden;
}

/* Button light reflection */
.glass-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(180deg, rgba(255,255,255,0.1) 0%, transparent 100%);
  border-radius: inherit;
  pointer-events: none;
}

.glass-btn:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.32);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.glass-btn-primary {
  background: linear-gradient(135deg, #9333ea, #38bdf8);
  border: 1px solid rgba(147, 51, 234, 0.5);
  box-shadow: 0 4px 16px rgba(147, 51, 234, 0.2), 0 0 12px rgba(56, 189, 248, 0.1);
}

.glass-btn-primary:hover {
  background: linear-gradient(135deg, #a855f7, #60ccfa);
  box-shadow: 0 6px 24px rgba(147, 51, 234, 0.35), 0 0 20px rgba(56, 189, 248, 0.15);
  border-color: rgba(147, 51, 234, 0.6);
}

.glass-btn-gold {
  background: linear-gradient(135deg, #f0c040, #e8a020);
  border: 1px solid rgba(240, 192, 64, 0.5);
  color: #0a0a1a;
  box-shadow: 0 4px 16px rgba(240, 192, 64, 0.2), 0 0 10px rgba(240, 192, 64, 0.08);
}

.glass-btn-gold:hover {
  box-shadow: 0 6px 24px rgba(240, 192, 64, 0.35), 0 0 16px rgba(240, 192, 64, 0.15);
}

/* ================================================================
   GLASS NAVBAR — premium frosted header
   ================================================================ */
.glass-nav {
  background: rgba(5, 5, 16, 0.65);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0.75rem 0;
}

/* ================================================================
   GLASS INPUT
   ================================================================ */
.glass-input {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  padding: 0.75rem 1rem;
  font-family: 'Ubuntu Condensed', 'Ubuntu', sans-serif;
  font-size: 1rem;
  width: 100%;
  outline: none;
  transition: all 0.3s ease;
}

.glass-input:focus {
  border-color: var(--accent-purple);
  box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.15);
  background: rgba(255, 255, 255, 0.08);
}

/* ================================================================
   GLASS PRICING — featured card with luminous border
   ================================================================ */
.glass-pricing {
  position: relative;
  overflow: hidden;
}

.glass-pricing.featured {
  border-color: rgba(245, 200, 66, 0.35);
  box-shadow: 0 8px 40px rgba(245, 200, 66, 0.12), var(--glass-inset), 0 0 0 0.5px rgba(245,200,66,0.15);
}

.glass-pricing.featured::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-gold), var(--accent-purple), var(--accent-gold));
  z-index: 2;
}

/* ================================================================
   GLASS BADGE — pill with glow
   ================================================================ */
.glass-badge {
  display: inline-block;
  padding: 0.3rem 0.85rem;
  background: rgba(168, 85, 247, 0.15);
  border: 1px solid rgba(168, 85, 247, 0.3);
  border-radius: 999px;
  font-family: 'Ubuntu Condensed', 'Ubuntu', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent-purple);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.glass-badge-gold {
  background: rgba(245, 200, 66, 0.12);
  border-color: rgba(245, 200, 66, 0.3);
  color: var(--accent-gold);
}

/* ================================================================
   COMPACT CARD VARIANT
   ================================================================ */
.glass-card-compact {
  padding: 1.25rem;
  border-radius: var(--radius-md);
}

/* ================================================================
   COLORED LEFT-BORDER ACCENTS
   ================================================================ */
.glass-border-gold { border-left: 3px solid var(--accent-gold); }
.glass-border-purple { border-left: 3px solid var(--accent-purple); }
.glass-border-teal { border-left: 3px solid var(--accent-teal); }
.glass-border-blue { border-left: 3px solid var(--accent-blue); }
.glass-border-red { border-left: 3px solid var(--accent-red); }
.glass-border-green { border-left: 3px solid #22c55e; }
.glass-border-pink { border-left: 3px solid #ec4899; }

/* ================================================================
   COLORED TOP-BORDER ACCENTS
   ================================================================ */
.glass-top-gold { border-top: 3px solid var(--accent-gold); }
.glass-top-purple { border-top: 3px solid var(--accent-purple); }
.glass-top-teal { border-top: 3px solid var(--accent-teal); }
.glass-top-blue { border-top: 3px solid var(--accent-blue); }
.glass-top-red { border-top: 3px solid var(--accent-red); }
.glass-top-pink { border-top: 3px solid #ec4899; }

/* ================================================================
   COLORED ICON CIRCLES
   ================================================================ */
.icon-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  font-size: 1.3rem;
  margin-bottom: 0.75rem;
}
.icon-circle-gold { background: rgba(245, 200, 66, 0.12); border: 1px solid rgba(245, 200, 66, 0.25); }
.icon-circle-purple { background: rgba(168, 85, 247, 0.12); border: 1px solid rgba(168, 85, 247, 0.25); }
.icon-circle-teal { background: rgba(20, 184, 166, 0.12); border: 1px solid rgba(20, 184, 166, 0.25); }
.icon-circle-blue { background: rgba(79, 143, 247, 0.12); border: 1px solid rgba(79, 143, 247, 0.25); }
.icon-circle-red { background: rgba(239, 68, 68, 0.12); border: 1px solid rgba(239, 68, 68, 0.25); }
.icon-circle-pink { background: rgba(236, 72, 153, 0.12); border: 1px solid rgba(236, 72, 153, 0.25); }
.icon-circle-green { background: rgba(34, 197, 94, 0.12); border: 1px solid rgba(34, 197, 94, 0.25); }

/* ================================================================
   SECTION DIVIDER — gradient line between sections
   ================================================================ */
.section-divider {
  height: 1px;
  max-width: 200px;
  margin: 0 auto;
  background: linear-gradient(90deg, transparent, var(--accent-purple), var(--accent-gold), var(--accent-blue), transparent);
  opacity: 0.4;
}

/* ================================================================
   GLOW ACCENTS — for featured elements
   ================================================================ */
.glow-gold { box-shadow: 0 0 20px rgba(245, 200, 66, 0.15), var(--glass-shadow); }
.glow-purple { box-shadow: 0 0 20px rgba(168, 85, 247, 0.15), var(--glass-shadow); }
.glow-teal { box-shadow: 0 0 20px rgba(20, 184, 166, 0.15), var(--glass-shadow); }

/* ================================================================
   ADDITIONAL BADGE VARIANTS
   ================================================================ */
.glass-badge-teal {
  background: rgba(20, 184, 166, 0.12);
  border-color: rgba(20, 184, 166, 0.3);
  color: var(--accent-teal);
}
.glass-badge-blue {
  background: rgba(79, 143, 247, 0.12);
  border-color: rgba(79, 143, 247, 0.3);
  color: var(--accent-blue);
}

/* ================================================================
   SECTION HEADER DECORATIVE UNDERLINE
   ================================================================ */
/* ================================================================
   PROFESSIONAL FORM STYLING
   ================================================================ */
.form-step-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}
.form-step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #9333ea, #38bdf8);
  font-size: 0.85rem;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
  box-shadow: 0 0 12px rgba(147, 51, 234, 0.25);
}
.form-step-title {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-primary);
}
.form-step-subtitle {
  font-size: 0.8rem;
  color: var(--text-tertiary);
  margin-top: 0.1rem;
}
.form-field-label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-secondary);
  font-size: 0.8rem;
  margin-bottom: 0.4rem;
  font-weight: 500;
}
.form-field-label .label-icon {
  font-size: 0.85rem;
  opacity: 0.7;
}
.form-status {
  text-align: center;
  margin-top: 0.75rem;
  font-size: 0.85rem;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
}
.form-status.error {
  color: var(--accent-red);
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.15);
}
.form-status.success {
  color: var(--accent-teal);
  background: rgba(20, 184, 166, 0.08);
  border: 1px solid rgba(20, 184, 166, 0.15);
}
.form-status.loading {
  color: var(--accent-purple);
  background: rgba(168, 85, 247, 0.08);
  border: 1px solid rgba(168, 85, 247, 0.15);
}
.auth-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  justify-content: space-between;
  padding: 0.6rem 1rem;
  border-radius: var(--radius-sm);
  background: rgba(20, 184, 166, 0.06);
  border: 1px solid rgba(20, 184, 166, 0.15);
}
.auth-bar .auth-email {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--accent-teal);
  font-size: 0.85rem;
  font-weight: 500;
}

.section-header h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 2px;
  margin: 0.75rem auto 0;
  background: linear-gradient(90deg, var(--accent-gold), var(--accent-purple), var(--accent-blue));
  border-radius: 1px;
}
