/* ============================================
   Editorial Celestial Design System
   Obsidian Midnight (#090B11) • Slate (#111420) • Champagne Gold (#E2C38B)
   ============================================ */

* { box-sizing: border-box; }

/* Subtle static SVG constellation backdrop (replaces 120-span DOM starfield) */
.celestial-backdrop {
  position: fixed;
  inset: 0;
  z-index: -10;
  pointer-events: none;
  background:
    radial-gradient(ellipse 75% 42% at 50% 0%, rgba(20, 25, 43, 0.95) 0%, rgba(9, 11, 17, 0) 70%),
    radial-gradient(circle at 82% 18%, rgba(226, 195, 139, 0.04) 0%, transparent 45%),
    #090B11;
}

.celestial-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.25;
  background-image:
    radial-gradient(1px 1px at 14% 18%, rgba(244, 239, 230, 0.65), transparent),
    radial-gradient(1px 1px at 28% 42%, rgba(226, 195, 139, 0.55), transparent),
    radial-gradient(1.2px 1.2px at 46% 12%, rgba(244, 239, 230, 0.55), transparent),
    radial-gradient(1px 1px at 67% 28%, rgba(226, 195, 139, 0.45), transparent),
    radial-gradient(1.2px 1.2px at 84% 16%, rgba(244, 239, 230, 0.6), transparent),
    radial-gradient(1px 1px at 91% 52%, rgba(214, 140, 136, 0.45), transparent),
    radial-gradient(1px 1px at 19% 74%, rgba(244, 239, 230, 0.45), transparent),
    radial-gradient(1px 1px at 58% 82%, rgba(226, 195, 139, 0.4), transparent);
  background-size: 100% 100%;
  background-repeat: no-repeat;
}

/* Editorial Elevated Slate Card */
.card-editorial {
  background: #111420;
  border: 1px solid rgba(226, 195, 139, 0.16);
  border-radius: 1rem;
  transition: border-color 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease;
}

.card-editorial-interactive:hover {
  border-color: rgba(226, 195, 139, 0.40);
  box-shadow: 0 12px 36px -14px rgba(0, 0, 0, 0.65);
}

/* Primary Solid Champagne Gold CTA */
.btn-gold {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background-color: #E2C38B;
  color: #090B11;
  font-weight: 600;
  border-radius: 9999px;
  padding: 0.85rem 1.75rem;
  border: 1px solid #E2C38B;
  transition: background-color 0.18s ease, transform 0.15s ease, box-shadow 0.18s ease;
  cursor: pointer;
}

.btn-gold:hover {
  background-color: #EED7AE;
  box-shadow: 0 8px 24px -8px rgba(226, 195, 139, 0.45);
  transform: translateY(-1px);
}

.btn-gold:active { transform: translateY(0); }
.btn-gold:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }

/* Secondary Hairline Button */
.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: transparent;
  color: #F4EFE6;
  font-weight: 500;
  border-radius: 9999px;
  padding: 0.7rem 1.35rem;
  border: 1px solid rgba(226, 195, 139, 0.28);
  transition: border-color 0.18s ease, color 0.18s ease, background-color 0.18s ease;
  cursor: pointer;
}

.btn-outline:hover {
  border-color: rgba(226, 195, 139, 0.65);
  background: rgba(226, 195, 139, 0.06);
  color: #E2C38B;
}

/* Editorial Inputs */
.input-editorial {
  width: 100%;
  background: #090B11;
  border: 1px solid rgba(226, 195, 139, 0.20);
  border-radius: 0.65rem;
  padding: 0.72rem 0.95rem;
  color: #F4EFE6;
  font-size: 0.94rem;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.input-editorial:focus {
  outline: none;
  border-color: #E2C38B;
  box-shadow: 0 0 0 3px rgba(226, 195, 139, 0.14);
}

.input-editorial::placeholder { color: rgba(156, 163, 184, 0.52); }

.input-editorial.invalid {
  border-color: #D97770;
  box-shadow: 0 0 0 3px rgba(217, 119, 112, 0.16);
}

/* Inline validation feedback */
.field-error {
  color: #D97770;
  font-size: 0.78rem;
  margin-top: 0.35rem;
}

/* Geo Locate Button */
.btn-geo {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(226, 195, 139, 0.08);
  border: 1px solid rgba(226, 195, 139, 0.26);
  color: #E2C38B;
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.5rem 0.75rem;
  border-radius: 0.55rem;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.btn-geo:hover {
  background: rgba(226, 195, 139, 0.16);
  border-color: rgba(226, 195, 139, 0.55);
}

.btn-geo:disabled { opacity: 0.6; cursor: wait; }

/* Date & Time Picker (Editorial Celestial) */
.dt-picker {
  background: #090B11;
  border: 1px solid rgba(226, 195, 139, 0.20);
  border-radius: 0.65rem;
  padding: 0.65rem 0.85rem;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.dt-picker:focus-within {
  border-color: #E2C38B;
  box-shadow: 0 0 0 3px rgba(226, 195, 139, 0.14);
}

.dt-picker.invalid {
  border-color: #D97770;
  box-shadow: 0 0 0 3px rgba(217, 119, 112, 0.16);
}

.dt-picker.is-disabled {
  opacity: 0.45;
  pointer-events: none;
}

.dt-picker-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
}

.dt-seg-group {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
}

.dt-seg-select,
.dt-seg-input {
  background: #111420;
  border: 1px solid rgba(226, 195, 139, 0.18);
  border-radius: 0.45rem;
  color: #F4EFE6;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.32rem 0.45rem;
  text-align: center;
  outline: none;
  font-variant-numeric: tabular-nums;
}

.dt-seg-select:focus,
.dt-seg-input:focus {
  border-color: #E2C38B;
  background: #161A29;
}

.dt-seg-input::placeholder {
  color: rgba(156, 163, 184, 0.45);
}

.dt-sep {
  color: rgba(156, 163, 184, 0.55);
  font-size: 0.85rem;
  user-select: none;
}

.dt-ampm-btn {
  background: rgba(226, 195, 139, 0.12);
  border: 1px solid rgba(226, 195, 139, 0.28);
  color: #E2C38B;
  border-radius: 0.45rem;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.36rem 0.55rem;
  cursor: pointer;
}

.dt-ampm-btn:hover {
  background: rgba(226, 195, 139, 0.22);
}

.dt-meta-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: 0.5rem;
  padding-top: 0.45rem;
  border-top: 1px solid rgba(226, 195, 139, 0.10);
  font-size: 0.75rem;
  color: #9CA3B8;
}

.dt-mode-toggle {
  display: inline-flex;
  border: 1px solid rgba(226, 195, 139, 0.20);
  border-radius: 9999px;
  overflow: hidden;
}

.dt-mode-toggle button {
  padding: 0.18rem 0.55rem;
  font-size: 0.6875rem;
  font-weight: 500;
  color: #9CA3B8;
  background: transparent;
  cursor: pointer;
}

.dt-mode-toggle button.active {
  background: #E2C38B;
  color: #090B11;
  font-weight: 600;
}

/* Segmented Mode Tabs (Western <-> Vedic, Aspect filters) */
.seg-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  max-width: 100%;
  background: #090B11;
  border: 1px solid rgba(226, 195, 139, 0.20);
  border-radius: 1.25rem;
  padding: 0.25rem;
  gap: 0.25rem;
}

.seg-tab {
  padding: 0.45rem 1rem;
  border-radius: 9999px;
  font-size: 0.84rem;
  font-weight: 500;
  color: #9CA3B8;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.18s ease;
}

.seg-tab:hover { color: #F4EFE6; }
.seg-tab.active {
  background: #E2C38B;
  color: #090B11;
  font-weight: 600;
}

/* Progress track */
.meter-track {
  height: 6px;
  background: rgba(244, 239, 230, 0.08);
  border-radius: 9999px;
  overflow: hidden;
}

.meter-fill {
  height: 100%;
  border-radius: 9999px;
  transition: width 0.5s ease;
}

/* CLS-Safe Reserved Deep Editorial / Ad Container */
.slot-ad-deep {
  min-height: 250px;
  background: #111420;
  border: 1px solid rgba(226, 195, 139, 0.16);
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Print Styles */
@media print {
  .no-print, header, footer, .slot-ad-deep { display: none !important; }
  body { background: #fff !important; color: #111 !important; }
  .card-editorial { background: #fff !important; border: 1px solid #ddd !important; color: #111 !important; }
}
