/* ============================================================
   NAMHOLOGY — COSMIC DESIGN SYSTEM
   A premium Indian astrology portal theme
   ============================================================ */

/* ── CSS Custom Properties ─────────────────────────────── */
:root {
  /* Colors — Deep Cosmic Palette */
  --bg-primary: #0A0A1A;
  --bg-secondary: #0D0D2B;
  --bg-tertiary: #111140;
  --bg-card: rgba(13, 13, 43, 0.7);
  --bg-card-hover: rgba(20, 20, 60, 0.85);
  --bg-glass: rgba(13, 13, 43, 0.45);

  --gold: #D4AF37;
  --gold-light: #F5C842;
  --gold-dark: #B8941E;
  --gold-glow: rgba(212, 175, 55, 0.3);
  --gold-gradient: linear-gradient(135deg, #D4AF37, #F5C842, #D4AF37);

  --silver: #E8E8F0;
  --silver-dim: #A0A0B8;
  --silver-dark: #6B6B80;

  --accent-purple: #7B2FBE;
  --accent-indigo: #4A3AFF;
  --accent-teal: #2DD4BF;
  --accent-rose: #F43F5E;
  --accent-amber: #F59E0B;

  --text-primary: #F0F0FF;
  --text-secondary: #C0C0D8;
  --text-muted: #8080A0;
  --text-gold: #D4AF37;

  --border-subtle: rgba(212, 175, 55, 0.15);
  --border-gold: rgba(212, 175, 55, 0.4);
  --border-glow: rgba(212, 175, 55, 0.6);

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
  --shadow-gold: 0 0 20px rgba(212, 175, 55, 0.15);
  --shadow-gold-lg: 0 0 40px rgba(212, 175, 55, 0.25);

  /* Typography */
  --font-display: 'Cinzel', serif;
  --font-serif: 'Cormorant Garamond', serif;
  --font-body: 'Inter', -apple-system, sans-serif;

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;

  /* Border Radius */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 300ms ease;
  --transition-slow: 500ms ease;
  --transition-cosmic: 800ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Reset & Base ──────────────────────────────────────── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--gold);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--gold-light);
}

img {
  max-width: 100%;
  display: block;
}

button {
  font-family: var(--font-body);
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

input, select, textarea {
  font-family: var(--font-body);
  color: var(--text-primary);
}

/* ── Starfield Canvas ──────────────────────────────────── */
#starfield {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* ── Mandala Decorations ───────────────────────────────── */
.mandala {
  position: fixed;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  border: 1px solid rgba(212, 175, 55, 0.08);
  pointer-events: none;
  z-index: 0;
  animation: mandala-rotate 60s linear infinite;
}

.mandala::before,
.mandala::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(212, 175, 55, 0.06);
}

.mandala::before {
  top: 15%;
  left: 15%;
  right: 15%;
  bottom: 15%;
}

.mandala::after {
  top: 30%;
  left: 30%;
  right: 30%;
  bottom: 30%;
  border-style: dashed;
}

.mandala--top-right {
  top: -100px;
  right: -100px;
}

.mandala--bottom-left {
  bottom: -100px;
  left: -100px;
  animation-direction: reverse;
  animation-duration: 80s;
}

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

/* ── App Shell ─────────────────────────────────────────── */
#app {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ── Header ────────────────────────────────────────────── */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 26, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
}

.header__inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0.75rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header__logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text-primary);
}

.header__logo:hover {
  color: var(--text-primary);
}

.header__logo-icon {
  font-size: 1.8rem;
  animation: float 3s ease-in-out infinite;
}

.header__title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 0.05em;
}

.header__tagline {
  font-family: var(--font-display), serif;
  font-size: 0.58rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 2px;
  display: block;
  margin-top: 2px;
  opacity: 0.8;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.05);
}

.header__nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-link {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--silver-dim);
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-full);
  transition: all var(--transition-base);
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--gold-light);
  background: rgba(212, 175, 55, 0.08);
}

.nav-link.active {
  color: var(--gold);
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid var(--border-subtle);
}

.nav-link--logout {
  color: var(--accent-rose) !important;
  opacity: 0.7;
}

.nav-link--logout:hover {
  opacity: 1;
  background: rgba(244, 63, 94, 0.1) !important;
  color: var(--accent-rose) !important;
}

.btn--lang {
  padding: 0.45rem 1rem;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-subtle);
  background: rgba(212, 175, 55, 0.05);
  color: var(--gold);
  transition: all var(--transition-base);
  cursor: pointer;
}

.btn--lang:hover {
  background: rgba(212, 175, 55, 0.15);
  border-color: var(--gold);
  color: var(--gold-light);
  box-shadow: var(--shadow-sm);
}

.header__mobile-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}

.header__mobile-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
  transition: all var(--transition-base);
}

.header--nav-hidden .header__nav {
  display: none;
}

/* ── Main Content ──────────────────────────────────────── */
.main {
  flex: 1;
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
  padding: var(--space-2xl) var(--space-xl);
}

/* ── Page Transitions ──────────────────────────────────── */
.page-enter {
  animation: pageEnter 0.5s ease forwards;
}

.page-exit {
  animation: pageExit 0.3s ease forwards;
}

@keyframes pageEnter {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pageExit {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(-10px);
  }
}

/* ── Footer ────────────────────────────────────────────── */
.footer {
  background: rgba(10, 10, 26, 0.95);
  border-top: 1px solid var(--border-subtle);
  margin-top: auto;
}

.footer__inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: var(--space-3xl) var(--space-xl) var(--space-xl);
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--space-2xl);
}

.footer__brand {
  grid-column: 1;
}

.footer__logo {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--gold);
}

.footer__about {
  margin-top: var(--space-md);
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.footer__links h4 {
  font-family: var(--font-display);
  font-size: 0.9rem;
  color: var(--gold);
  margin-bottom: var(--space-md);
  letter-spacing: 0.05em;
}

.footer__links a {
  display: block;
  font-size: 0.85rem;
  color: var(--silver-dim);
  padding: 0.3rem 0;
  transition: color var(--transition-fast);
}

.footer__links a:hover {
  color: var(--gold-light);
}

.footer__disclaimer {
  grid-column: 1 / -1;
  padding-top: var(--space-lg);
  border-top: 1px solid var(--border-subtle);
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.footer__bottom {
  text-align: center;
  padding: var(--space-md) var(--space-xl);
  border-top: 1px solid var(--border-subtle);
  font-size: 0.75rem;
  color: var(--silver-dark);
}

/* ── Typography Utilities ──────────────────────────────── */
.heading-display {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.04em;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.heading-serif {
  font-family: var(--font-serif);
  font-weight: 600;
  color: var(--text-primary);
}

.text-gold { color: var(--gold); }
.text-muted { color: var(--text-muted); }
.text-silver { color: var(--silver-dim); }

.subtitle-hindi {
  font-size: 0.85em;
  color: var(--silver-dim);
  font-style: italic;
  margin-top: 0.15em;
}

/* ── Card Component ────────────────────────────────────── */
.cosmic-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.cosmic-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gold-gradient);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.cosmic-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-gold);
  box-shadow: var(--shadow-gold);
  transform: translateY(-2px);
}

.cosmic-card:hover::before {
  opacity: 1;
}

.cosmic-card--glow {
  box-shadow: var(--shadow-gold);
  border-color: var(--border-gold);
}

.cosmic-card--glow::before {
  opacity: 1;
}

/* ── Module Card (Dashboard) ───────────────────────────── */
.module-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-slow);
  position: relative;
  overflow: hidden;
}

.module-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(212, 175, 55, 0.06) 0%, transparent 60%);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.module-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gold-gradient);
  transform: scaleX(0);
  transition: transform var(--transition-slow);
}

.module-card:hover {
  border-color: var(--border-glow);
  box-shadow: var(--shadow-gold-lg);
  transform: translateY(-6px);
}

.module-card:hover::before {
  opacity: 1;
}

.module-card:hover::after {
  transform: scaleX(1);
}

.module-card__icon {
  font-size: 3.5rem;
  margin-bottom: var(--space-lg);
  display: inline-block;
  animation: float 4s ease-in-out infinite;
}

.module-card__title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--gold);
  margin-bottom: var(--space-xs);
}

.module-card__subtitle {
  font-family: var(--font-serif);
  font-size: 1rem;
  color: var(--silver-dim);
  font-style: italic;
  margin-bottom: var(--space-lg);
}

.module-card__desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.module-card__status {
  margin-top: var(--space-lg);
  font-size: 0.8rem;
  padding: 0.35rem 1rem;
  border-radius: var(--radius-full);
  display: inline-block;
}

.module-card__status--pending {
  background: rgba(212, 175, 55, 0.1);
  color: var(--gold);
  border: 1px solid rgba(212, 175, 55, 0.2);
}

.module-card__status--complete {
  background: rgba(45, 212, 191, 0.1);
  color: var(--accent-teal);
  border: 1px solid rgba(45, 212, 191, 0.2);
}

/* ── Form Components ───────────────────────────────────── */
.form-group {
  margin-bottom: var(--space-lg);
}

.form-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--silver);
  margin-bottom: var(--space-sm);
}

.form-label__hindi {
  font-size: 0.8rem;
  color: var(--silver-dark);
  font-weight: 400;
  margin-left: 0.5rem;
}

.form-input,
.form-select {
  width: 100%;
  padding: 0.85rem 1.1rem;
  background: rgba(17, 17, 64, 0.5);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 0.95rem;
  transition: all var(--transition-base);
  outline: none;
}

.form-input:focus,
.form-select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-glow);
  background: rgba(17, 17, 64, 0.7);
}

.form-input::placeholder {
  color: var(--silver-dark);
}

.form-input--with-prefix {
  padding-left: 3.5rem;
}

.form-prefix {
  position: absolute;
  left: 1.1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gold);
  font-weight: 600;
  font-size: 0.95rem;
  pointer-events: none;
}

.form-hint {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.3rem;
}

.form-error {
  font-size: 0.8rem;
  color: var(--accent-rose);
  margin-top: 0.3rem;
  display: none;
}

.form-group--error .form-input {
  border-color: var(--accent-rose);
}

.form-group--error .form-error {
  display: block;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
}

.form-checkbox {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--silver-dim);
}

.form-checkbox input {
  accent-color: var(--gold);
  width: 16px;
  height: 16px;
}

/* Autocomplete dropdown */
.autocomplete-list {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--bg-secondary);
  border: 1px solid var(--border-gold);
  border-top: none;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  max-height: 200px;
  overflow-y: auto;
  z-index: 50;
  display: none;
}

.autocomplete-list.show {
  display: block;
}

.autocomplete-item {
  padding: 0.6rem 1.1rem;
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: background var(--transition-fast);
}

.autocomplete-item:hover,
.autocomplete-item.active {
  background: rgba(212, 175, 55, 0.1);
  color: var(--gold);
}

.autocomplete-item small {
  color: var(--text-muted);
  margin-left: 0.5rem;
}

/* ── Buttons ───────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  border-radius: var(--radius-md);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.btn--primary {
  background: var(--gold-gradient);
  color: var(--bg-primary);
  box-shadow: var(--shadow-gold);
}

.btn--primary:hover {
  box-shadow: var(--shadow-gold-lg);
  transform: translateY(-2px);
  filter: brightness(1.1);
}

.btn--primary:active {
  transform: translateY(0);
}

.btn--secondary {
  background: transparent;
  color: var(--gold);
  border: 1px solid var(--border-gold);
}

.btn--secondary:hover {
  background: rgba(212, 175, 55, 0.1);
  box-shadow: var(--shadow-gold);
}

.btn--large {
  padding: 1.1rem 2.5rem;
  font-size: 1rem;
}

.btn--full {
  width: 100%;
}

.btn--icon {
  padding: 0.7rem;
  border-radius: var(--radius-full);
}

.btn:disabled {
  opacity: 0.5;
  pointer-events: none;
}

/* Shimmer effect on buttons */
.btn--primary::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    to right,
    transparent 0%,
    rgba(255, 255, 255, 0.15) 50%,
    transparent 100%
  );
  transform: rotate(30deg) translateX(-100%);
  transition: transform 0.6s;
}

.btn--primary:hover::after {
  transform: rotate(30deg) translateX(100%);
}

/* ── Result Cards ──────────────────────────────────────── */
.result-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  margin-bottom: var(--space-lg);
  animation: fadeInUp 0.5s ease forwards;
  opacity: 0;
}

.result-card:nth-child(1) { animation-delay: 0.1s; }
.result-card:nth-child(2) { animation-delay: 0.2s; }
.result-card:nth-child(3) { animation-delay: 0.3s; }
.result-card:nth-child(4) { animation-delay: 0.4s; }
.result-card:nth-child(5) { animation-delay: 0.5s; }

.result-card__header {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}

.result-card__icon {
  font-size: 2rem;
  width: 3.5rem;
  height: 3.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(212, 175, 55, 0.1);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}

.result-card__title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--gold);
}

.result-card__subtitle {
  font-family: var(--font-serif);
  font-size: 0.85rem;
  color: var(--silver-dim);
  font-style: italic;
}

.result-card__body {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

.result-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-top: var(--space-md);
}

.tag {
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 500;
  background: rgba(212, 175, 55, 0.1);
  color: var(--gold);
  border: 1px solid rgba(212, 175, 55, 0.15);
}

.tag--teal {
  background: rgba(45, 212, 191, 0.1);
  color: var(--accent-teal);
  border-color: rgba(45, 212, 191, 0.15);
}

.tag--purple {
  background: rgba(123, 47, 190, 0.1);
  color: #B47EFF;
  border-color: rgba(123, 47, 190, 0.15);
}

.tag--rose {
  background: rgba(244, 63, 94, 0.1);
  color: var(--accent-rose);
  border-color: rgba(244, 63, 94, 0.15);
}

/* ── Section Headers ───────────────────────────────────── */
.section-header {
  text-align: center;
  margin-bottom: var(--space-2xl);
}

.section-header__icon {
  font-size: 2.5rem;
  margin-bottom: var(--space-md);
  display: inline-block;
  animation: float 3s ease-in-out infinite;
}

.section-header__icon-container {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 1.5px solid var(--border-gold);
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #090919;
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.45);
  margin-bottom: var(--space-md);
  animation: float 3s ease-in-out infinite;
}

.section-header__icon-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 45%; /* Lock exactly on the center of the star mandala */
  transform: scale(2.0) translateY(5.27%); /* Translate down to perfectly center the medallion, then scale */
}

.section-header__title {
  font-family: var(--font-display);
  font-size: 2rem;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: var(--space-xs);
}

.section-header__subtitle {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: var(--silver-dim);
  font-style: italic;
}

.section-header__desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: var(--space-md) auto 0;
  line-height: 1.7;
}

/* ── Upload Area ───────────────────────────────────────── */
.upload-area {
  border: 2px dashed var(--border-gold);
  border-radius: var(--radius-lg);
  padding: var(--space-3xl) var(--space-xl);
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-base);
  background: rgba(212, 175, 55, 0.03);
}

.upload-area:hover {
  border-color: var(--gold);
  background: rgba(212, 175, 55, 0.06);
  box-shadow: var(--shadow-gold);
}

.upload-area__icon {
  font-size: 3rem;
  margin-bottom: var(--space-md);
  opacity: 0.7;
}

.upload-area__text {
  font-size: 1rem;
  color: var(--text-secondary);
}

.upload-area__hint {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: var(--space-sm);
}

.upload-area--active {
  border-color: var(--gold);
  background: rgba(212, 175, 55, 0.08);
}

/* Palm image preview */
.palm-preview {
  max-width: 350px;
  margin: var(--space-lg) auto;
  border-radius: var(--radius-lg);
  border: 2px solid var(--border-gold);
  overflow: hidden;
  position: relative;
}

.palm-preview img {
  width: 100%;
}

.palm-preview__overlay {
  position: absolute;
  inset: 0;
  background: rgba(212, 175, 55, 0.05);
  pointer-events: none;
}

/* ── Kundli Chart ──────────────────────────────────────── */
.kundli-chart-container {
  display: flex;
  justify-content: center;
  margin: var(--space-xl) 0;
}

.kundli-chart {
  width: 100%;
  max-width: 500px;
  aspect-ratio: 1;
}

/* ── Numerology Wheel ──────────────────────────────────── */
.numerology-wheel {
  display: flex;
  justify-content: center;
  margin: var(--space-xl) 0;
}

.numerology-wheel svg {
  max-width: 400px;
  width: 100%;
}

/* ── Number Cards Grid ─────────────────────────────────── */
.number-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-xl);
}

.number-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  text-align: center;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.number-card:hover {
  border-color: var(--border-gold);
  box-shadow: var(--shadow-gold);
  transform: translateY(-3px);
}

.number-card__number {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 900;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: var(--space-sm);
}

.number-card__label {
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--gold);
  margin-bottom: var(--space-xs);
}

.number-card__hindi {
  font-size: 0.85rem;
  color: var(--silver-dim);
  font-style: italic;
  margin-bottom: var(--space-md);
}

.number-card__planet {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.8rem;
  background: rgba(212, 175, 55, 0.1);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  color: var(--gold);
  margin-bottom: var(--space-md);
}

.number-card__traits {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ── Lucky Items Grid ──────────────────────────────────── */
.lucky-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

.lucky-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  text-align: center;
}

.lucky-item__icon {
  font-size: 1.5rem;
  margin-bottom: var(--space-xs);
}

.lucky-item__label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-xs);
}

.lucky-item__value {
  font-size: 0.9rem;
  color: var(--gold);
  font-weight: 600;
}

/* ── Prediction Sections ───────────────────────────────── */
.prediction-accordion {
  margin-top: var(--space-xl);
}

.prediction-section {
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-sm);
  overflow: hidden;
  transition: border-color var(--transition-base);
}

.prediction-section:hover {
  border-color: var(--border-gold);
}

.prediction-section__header {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  cursor: pointer;
  background: rgba(17, 17, 64, 0.3);
  transition: background var(--transition-base);
}

.prediction-section__header:hover {
  background: rgba(17, 17, 64, 0.5);
}

.prediction-section__icon {
  font-size: 1.3rem;
}

.prediction-section__title {
  flex: 1;
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--text-primary);
  letter-spacing: 0.03em;
}

.prediction-section__arrow {
  color: var(--gold);
  transition: transform var(--transition-base);
  font-size: 0.8rem;
}

.prediction-section.open .prediction-section__arrow {
  transform: rotate(180deg);
}

.prediction-section__body {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-slow);
}

.prediction-section.open .prediction-section__body {
  max-height: 800px;
}

.prediction-section__content {
  padding: var(--space-lg);
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

/* ── Dasha Timeline ────────────────────────────────────── */
.dasha-timeline {
  margin: var(--space-xl) 0;
}

.dasha-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  padding: var(--space-md) 0;
  border-left: 2px solid var(--border-subtle);
  padding-left: var(--space-lg);
  position: relative;
}

.dasha-item::before {
  content: '';
  position: absolute;
  left: -5px;
  top: var(--space-md);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--silver-dark);
  border: 2px solid var(--bg-primary);
}

.dasha-item--active {
  border-left-color: var(--gold);
}

.dasha-item--active::before {
  background: var(--gold);
  box-shadow: 0 0 8px var(--gold-glow);
}

.dasha-item__planet {
  font-family: var(--font-display);
  font-size: 0.9rem;
  color: var(--gold);
  min-width: 80px;
}

.dasha-item__period {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.dasha-item__desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* ── Yoga Cards ────────────────────────────────────────── */
.yoga-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-md);
  margin: var(--space-xl) 0;
}

.yoga-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  transition: all var(--transition-base);
}

.yoga-card:hover {
  border-color: var(--border-gold);
  box-shadow: var(--shadow-gold);
}

.yoga-card--positive {
  border-left: 3px solid var(--accent-teal);
}

.yoga-card--negative {
  border-left: 3px solid var(--accent-amber);
}

.yoga-card__name {
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--gold);
  margin-bottom: var(--space-xs);
}

.yoga-card__hindi {
  font-size: 0.8rem;
  color: var(--silver-dim);
  margin-bottom: var(--space-sm);
}

.yoga-card__desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ── Planet Table ──────────────────────────────────────── */
.planet-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: var(--space-xl) 0;
  font-size: 0.88rem;
}

.planet-table th {
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold);
  padding: var(--space-md) var(--space-lg);
  border-bottom: 1px solid var(--border-gold);
  text-align: left;
}

.planet-table td {
  padding: var(--space-md) var(--space-lg);
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}

.planet-table tr:hover td {
  background: rgba(212, 175, 55, 0.04);
}

.planet-table .planet-symbol {
  font-size: 1.2rem;
  margin-right: 0.5rem;
}

/* ── Loading Spinner ───────────────────────────────────── */
.loading-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 26, 0.9);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 200;
  backdrop-filter: blur(8px);
}

.loading-spinner {
  width: 60px;
  height: 60px;
  border: 3px solid var(--border-subtle);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.loading-text {
  margin-top: var(--space-lg);
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--silver-dim);
  font-style: italic;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ── Cosmic Summary Card ───────────────────────────────── */
.summary-hero {
  background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 50%, var(--bg-secondary) 100%);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-xl);
  padding: var(--space-3xl);
  text-align: center;
  position: relative;
  overflow: hidden;
  margin-bottom: var(--space-2xl);
}

.summary-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 20%, rgba(212, 175, 55, 0.08) 0%, transparent 50%),
              radial-gradient(circle at 70% 80%, rgba(123, 47, 190, 0.06) 0%, transparent 50%);
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-xl);
}

/* ── Share Card ────────────────────────────────────────── */
.share-preview {
  display: flex;
  justify-content: center;
  margin: var(--space-xl) 0;
}

.share-card-canvas {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-gold-lg);
}

/* ── Dashboard Greeting ────────────────────────────────── */
.dashboard-greeting {
  text-align: center;
  margin-bottom: var(--space-3xl);
  padding: var(--space-2xl) 0;
}

.dashboard-greeting__welcome {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: var(--silver-dim);
  margin-bottom: var(--space-sm);
}

.dashboard-greeting__name {
  font-family: var(--font-display);
  font-size: 2.5rem;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: var(--space-sm);
}

.dashboard-greeting__tagline {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--silver-dim);
  font-style: italic;
}

.dashboard-modules {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--space-xl);
  margin-bottom: var(--space-3xl);
}

/* ── Profile Page ──────────────────────────────────────── */
.profile-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-xl);
  align-items: start;
}

.profile-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: var(--gold-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 2.5rem;
  color: var(--bg-primary);
  font-weight: 700;
}

.profile-info {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
}

.profile-field {
  font-size: 0.9rem;
}

.profile-field__label {
  color: var(--text-muted);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.2rem;
}

.profile-field__value {
  color: var(--text-primary);
}

/* ── Name Correction ───────────────────────────────────── */
.name-correction {
  background: var(--bg-card);
  border: 1px solid var(--accent-teal);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  margin-top: var(--space-xl);
}

.name-correction__before {
  font-size: 1.3rem;
  color: var(--silver-dim);
  text-decoration: line-through;
  opacity: 0.6;
}

.name-correction__arrow {
  font-size: 1.5rem;
  color: var(--gold);
  margin: 0 var(--space-md);
}

.name-correction__after {
  font-size: 1.3rem;
  color: var(--accent-teal);
  font-weight: 600;
}

/* ── Disclaimer ────────────────────────────────────────── */
.disclaimer {
  margin-top: var(--space-2xl);
  padding: var(--space-lg);
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-radius: var(--radius-md);
  background: rgba(245, 158, 11, 0.05);
  font-size: 0.82rem;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.6;
}

/* ── Registration Page ─────────────────────────────────── */
.registration-page {
  max-width: 600px;
  margin: 0 auto;
}

.registration-form {
  margin-top: var(--space-xl);
}

/* ── Animations ────────────────────────────────────────── */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

@keyframes glow-pulse {
  0%, 100% { box-shadow: 0 0 20px rgba(212, 175, 55, 0.1); }
  50% { box-shadow: 0 0 40px rgba(212, 175, 55, 0.25); }
}

.animate-float { animation: float 3s ease-in-out infinite; }
.animate-pulse { animation: pulse 2s ease-in-out infinite; }
.animate-fade-in { animation: fadeIn 0.5s ease forwards; }
.animate-glow { animation: glow-pulse 3s ease-in-out infinite; }

/* ── Scrollbar ─────────────────────────────────────────── */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: rgba(212, 175, 55, 0.3);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(212, 175, 55, 0.5);
}

/* ── Responsive ────────────────────────────────────────── */
@media (max-width: 1024px) {
  .footer__inner {
    grid-template-columns: 1fr 1fr;
  }
  .footer__brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 768px) {
  html { font-size: 15px; }

  .header__inner {
    padding: 0.75rem 1rem;
  }

  .header__mobile-btn {
    display: flex;
  }

  .header__nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(10, 10, 26, 0.97);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: var(--space-md);
    border-bottom: 1px solid var(--border-subtle);
  }

  .header__nav.show {
    display: flex;
  }

  .nav-link {
    width: 100%;
    text-align: center;
    padding: 0.75rem;
  }

  .main {
    padding: var(--space-lg) var(--space-md);
  }

  .section-header__title {
    font-size: 1.5rem;
  }

  .dashboard-greeting__name {
    font-size: 1.8rem;
  }

  .dashboard-modules {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .footer__inner {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .profile-card {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .profile-avatar {
    margin: 0 auto;
  }

  .profile-info {
    grid-template-columns: 1fr;
  }

  .summary-grid {
    grid-template-columns: 1fr;
  }

  .module-card {
    padding: var(--space-xl);
  }

  .module-card__icon {
    font-size: 2.5rem;
  }
}

@media (max-width: 480px) {
  html { font-size: 14px; }

  .number-cards {
    grid-template-columns: 1fr;
  }

  .lucky-grid {
    grid-template-columns: 1fr 1fr;
  }

  .yoga-grid {
    grid-template-columns: 1fr;
  }

  .planet-table {
    font-size: 0.8rem;
  }

  .planet-table th,
  .planet-table td {
    padding: var(--space-sm) var(--space-md);
  }
}

/* ── Hand Selection Toggle ─────────────────────────────── */
.hand-toggle {
  display: flex;
  justify-content: center;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}

.hand-toggle__btn {
  padding: 0.6rem 1.5rem;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--silver-dim);
  border: 1px solid var(--border-subtle);
  background: transparent;
  cursor: pointer;
  transition: all var(--transition-base);
}

.hand-toggle__btn.active {
  color: var(--gold);
  border-color: var(--gold);
  background: rgba(212, 175, 55, 0.1);
  box-shadow: var(--shadow-gold);
}

.hand-toggle__btn:hover:not(.active) {
  border-color: var(--border-gold);
  color: var(--gold-light);
}

/* ── Hidden utility ────────────────────────────────────── */
.hidden { display: none !important; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

/* ── Custom Cosmic Modal ────────────────────────────── */
.cosmic-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 5, 15, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  transition: opacity var(--transition-base);
}

.cosmic-modal-overlay.show {
  opacity: 1;
}

.cosmic-modal {
  max-width: 450px;
  width: 90%;
  padding: var(--space-xl) !important;
  background: var(--bg-secondary) !important;
  text-align: center;
  transform: scale(0.9);
  transition: transform var(--transition-base);
}

.cosmic-modal-overlay.show .cosmic-modal {
  transform: scale(1);
}

.cosmic-modal__message {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: var(--text-primary);
  margin-bottom: var(--space-xl);
  line-height: 1.6;
}

.cosmic-modal__actions {
  display: flex;
  justify-content: center;
  gap: var(--space-md);
}

.cosmic-modal__actions .btn {
  padding: 0.6rem 1.8rem;
  font-size: 0.85rem;
  min-width: 100px;
}

/* ── Kundli House Hover & significance styling ───────────── */
.kundli-house {
  fill: rgba(10, 10, 26, 0.05);
  transition: fill 0.3s ease, stroke 0.3s ease, filter 0.3s ease;
  cursor: pointer;
}

.kundli-house:hover,
.kundli-house--pinned {
  fill: rgba(212, 175, 55, 0.16) !important;
  stroke: rgba(245, 200, 66, 0.95) !important;
  filter: drop-shadow(0 0 6px rgba(245, 200, 66, 0.6));
}

.kundli-tooltip {
  position: absolute;
  pointer-events: none;
  z-index: 1000;
  background: rgba(10, 10, 26, 0.96);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-gold);
  padding: 0.6rem 0.9rem;
  max-width: 250px;
  color: var(--text-primary);
  font-size: 0.85rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
  backdrop-filter: blur(8px);
}

.kundli-tooltip.show {
  opacity: 1;
  visibility: visible;
}

.kundli-tooltip__title {
  font-family: var(--font-display);
  color: var(--gold);
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.kundli-tooltip__subtitle {
  font-family: var(--font-serif);
  color: var(--text-primary);
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
  padding-bottom: 0.2rem;
}

.kundli-tooltip__desc {
  color: var(--text-secondary);
  font-size: 0.75rem;
  line-height: 1.4;
}

.kundli-house-details {
  background: rgba(13, 13, 43, 0.35);
  border: 1px solid rgba(212, 175, 55, 0.15);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  margin-top: var(--space-xl);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-align: left;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(10px);
}

.kundli-house-details.active {
  border-color: var(--border-gold);
  box-shadow: var(--shadow-gold);
  background: rgba(13, 13, 43, 0.65);
}

.kundli-house-details__title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
  padding-bottom: var(--space-xs);
  margin-bottom: var(--space-sm);
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.kundli-house-details__num {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--gold);
  text-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
}

.kundli-house-details__names {
  text-align: right;
}

@media (max-width: 480px) {
  .kundli-house-details__names {
    text-align: left;
  }
}

.kundli-house-details__sanskrit {
  font-family: var(--font-serif);
  font-weight: 600;
  color: var(--text-primary);
  font-size: 1.1rem;
}

.kundli-house-details__english {
  font-size: 0.8rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.kundli-house-details__planets {
  margin-bottom: var(--space-md);
  font-size: 0.9rem;
  background: rgba(212, 175, 55, 0.08);
  padding: 0.5rem var(--space-md);
  border-radius: var(--radius-md);
  border-left: 3px solid var(--gold);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.kundli-house-details__planets-label {
  color: var(--text-secondary);
  font-weight: 600;
}

.kundli-house-details__planets-val {
  color: var(--text-primary);
  font-weight: 700;
}

.kundli-house-details__highlights {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  margin-bottom: var(--space-md);
}

.kundli-house-details__body {
  line-height: 1.6;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.kundli-house-details__placeholder {
  text-align: center;
  color: var(--text-secondary);
  font-style: italic;
  padding: var(--space-md) 0;
  opacity: 0.85;
}

/* ── Brand Logo Header Medallion ────────────────────────── */
.header__logo-img {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1.5px solid var(--border-gold);
  object-fit: cover;
  object-position: 50% 45%; /* Lock exactly on the center of the star mandala */
  transform: scale(2.0); /* Zoom in to completely hide the NAMHOLOGY image text, slightly smaller outer circle */
  box-shadow: 0 0 8px rgba(212, 175, 55, 0.35);
  margin-right: 1.15rem; /* Increased spacing to prevent the outer circle and its glow from overlapping the name */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.header__logo:hover .header__logo-img {
  transform: scale(2.2) rotate(5deg); /* Maintain zoom and scale up slightly on hover while keeping it compact */
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.7);
  border-color: var(--gold);
}

/* ── Cosmic Preloader Splash Screen ─────────────────────── */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: radial-gradient(circle at center, #0d0d2b 0%, #060612 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.6s cubic-bezier(0.25, 1, 0.5, 1), visibility 0.6s;
  overflow: hidden;
}

.preloader.fade-out {
  opacity: 0;
  visibility: hidden;
}

.preloader__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-md);
  animation: preloaderContentIntro 1.2s cubic-bezier(0.25, 1, 0.5, 1);
}

.preloader__logo-container {
  width: 280px;
  height: 280px;
  border-radius: 20px;
  overflow: hidden;
  border: 1.5px solid rgba(212, 175, 55, 0.25);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6), 0 0 20px rgba(212, 175, 55, 0.15);
  background: #090919;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-lg);
  animation: preloaderLogoPulse 3s infinite ease-in-out;
}

.preloader__logo {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Show full square artwork with text fully visible */
}

.preloader__progress-bar {
  width: 200px;
  height: 3px;
  background: rgba(212, 175, 55, 0.15);
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.5);
  margin-bottom: var(--space-xs);
}

.preloader__progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--gold) 0%, var(--gold-light) 50%, var(--gold) 100%);
  box-shadow: 0 0 8px var(--gold);
  transition: width 0.15s ease-out;
}

.preloader__loading-text {
  font-family: var(--font-serif), serif;
  font-style: italic;
  font-size: 0.85rem;
  color: var(--text-secondary);
  letter-spacing: 2px;
  animation: preloaderTextPulse 1.8s infinite ease-in-out;
  opacity: 0.8;
  margin-top: 0.25rem;
}

body.preloading {
  overflow: hidden !important;
  pointer-events: none;
}

/* ── Preloader Animations ────────────────────────────── */
@keyframes preloaderContentIntro {
  0% {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes preloaderLogoPulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6), 0 0 20px rgba(212, 175, 55, 0.15);
    border-color: rgba(212, 175, 55, 0.25);
  }
  50% {
    transform: scale(1.02);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.7), 0 0 35px rgba(215, 185, 65, 0.35);
    border-color: rgba(212, 175, 55, 0.6);
  }
}

@keyframes preloaderTextPulse {
  0%, 100% {
    opacity: 0.5;
    transform: scale(0.98);
  }
  50% {
    opacity: 0.95;
    transform: scale(1);
  }
}

/* ── Premium Astro Guide CTA ───────────────────────────── */
.astro-guide-cta {
  background: linear-gradient(135deg, rgba(20, 20, 50, 0.9), rgba(10, 10, 30, 0.95));
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  margin: var(--space-xl) auto;
  max-width: 600px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-gold-lg);
  transition: transform var(--transition-base), border-color var(--transition-base), box-shadow var(--transition-base);
}

.astro-guide-cta:hover {
  transform: translateY(-4px);
  border-color: var(--gold-light);
  box-shadow: 0 12px 40px rgba(212, 175, 55, 0.3);
}

.astro-guide-cta::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.astro-guide-cta__badge {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  background: var(--gold-gradient);
  color: var(--bg-primary);
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  letter-spacing: 0.05em;
  box-shadow: 0 2px 10px rgba(212, 175, 55, 0.4);
}

.astro-guide-cta__header {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.astro-guide-cta__icon {
  font-size: 2.5rem;
  background: rgba(212, 175, 55, 0.1);
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}

.astro-guide-cta__title {
  font-family: var(--font-display);
  color: var(--gold-light);
  font-size: 1.3rem;
  margin-bottom: var(--space-xs);
}

.astro-guide-cta__expert {
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-style: italic;
}

.astro-guide-cta__price-row {
  display: flex;
  align-items: baseline;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
  border-bottom: 1px solid rgba(212, 175, 55, 0.15);
  padding-bottom: var(--space-md);
}

.astro-guide-cta__price {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--text-primary);
  font-family: var(--font-display);
}

.astro-guide-cta__price-label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.astro-guide-cta__benefits {
  list-style: none;
  margin-bottom: var(--space-xl);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.astro-guide-cta__benefits li {
  font-size: 0.95rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.astro-guide-cta__btn {
  animation: pulseGoldButton 2s infinite;
}

@keyframes pulseGoldButton {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.4);
  }
  50% {
    box-shadow: 0 0 15px 5px rgba(212, 175, 55, 0.2);
  }
}

/* ── Payment Overlay & Modal ────────────────────────────── */
.payment-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(5, 5, 15, 0.85);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-base);
  padding: var(--space-md);
}

.payment-overlay.show {
  opacity: 1;
  pointer-events: auto;
}

.payment-modal {
  background: var(--bg-secondary);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: var(--shadow-lg), var(--shadow-gold-lg);
  padding: var(--space-xl);
  transform: scale(0.9) translateY(20px);
  transition: transform var(--transition-base);
}

.payment-overlay.show .payment-modal {
  transform: scale(1) translateY(0);
}

.payment-modal__close {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.8rem;
  cursor: pointer;
  transition: color var(--transition-fast);
}

.payment-modal__close:hover {
  color: var(--accent-rose);
}

/* Steps Indicator */
.payment-steps {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-xl);
  padding: 0 var(--space-sm);
}

.payment-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xs);
  font-size: 0.75rem;
  color: var(--text-muted);
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.05em;
  position: relative;
}

.payment-step__num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid var(--text-muted);
  background: var(--bg-secondary);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  transition: all var(--transition-base);
}

.payment-step.active {
  color: var(--gold-light);
}

.payment-step.active .payment-step__num {
  border-color: var(--gold-light);
  background: var(--gold-gradient);
  color: var(--bg-primary);
  box-shadow: 0 0 10px var(--gold-glow);
}

.payment-step__line {
  flex: 1;
  height: 2px;
  background: var(--text-muted);
  margin: 0 var(--space-xs);
  margin-top: -16px;
  opacity: 0.3;
  transition: all var(--transition-base);
}

.payment-step__line.active {
  background: var(--gold-light);
  opacity: 1;
}

/* Payment content */
.payment-content {
  animation: fadeIn var(--transition-base);
}

.payment-header {
  text-align: center;
  margin-bottom: var(--space-lg);
}

.payment-header__icon {
  font-size: 2.2rem;
  display: inline-block;
  margin-bottom: var(--space-xs);
}

.payment-header__title {
  font-family: var(--font-display);
  color: var(--gold-light);
  font-size: 1.15rem;
}

.payment-header__expert {
  font-size: 0.8rem;
  color: var(--text-secondary);
  font-style: italic;
}

.payment-amount {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(212, 175, 55, 0.08);
  border: 1px dashed var(--border-subtle);
  padding: var(--space-md);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-lg);
}

.payment-amount__label {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.payment-amount__value {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--gold-light);
  font-family: var(--font-display);
}

.payment-qr {
  text-align: center;
  background: linear-gradient(135deg, rgba(20, 20, 45, 0.6), rgba(10, 10, 25, 0.85));
  border: 1px solid rgba(212, 175, 55, 0.25);
  padding: var(--space-xl) var(--space-lg);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-lg);
  box-shadow: var(--shadow-gold-sm);
  backdrop-filter: blur(10px);
}

.payment-qr__label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-md);
  font-weight: 500;
  font-family: var(--font-serif);
}

.payment-qr__container {
  background: white;
  padding: 16px;
  border-radius: var(--radius-lg);
  display: inline-block;
  box-shadow: 0 4px 24px rgba(255, 255, 255, 0.05), 0 0 20px rgba(212, 175, 55, 0.1);
  margin-bottom: var(--space-sm);
  line-height: 0;
}

.payment-qr__img {
  width: 180px;
  height: 180px;
  display: block;
  border-radius: var(--radius-md);
}

.payment-qr__name {
  font-size: 0.95rem;
  color: var(--gold-light);
  font-weight: 600;
  margin-top: var(--space-sm);
  letter-spacing: 0.05em;
  font-family: var(--font-display);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.payment-methods {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-xs);
  margin-bottom: var(--space-lg);
}

.payment-method-tag {
  font-size: 0.75rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
}

/* Upload Area */
.payment-upload {
  border: 2px dashed rgba(212, 175, 55, 0.3);
  border-radius: var(--radius-md);
  padding: var(--space-xl);
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-base);
  background: rgba(13, 13, 43, 0.4);
  margin-bottom: var(--space-lg);
}

.payment-upload:hover, .payment-upload--active {
  border-color: var(--gold-light);
  background: rgba(212, 175, 55, 0.05);
}

.payment-upload__icon {
  font-size: 2.2rem;
  margin-bottom: var(--space-sm);
  color: var(--gold);
}

.payment-upload__text {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.payment-preview {
  position: relative;
  margin-bottom: var(--space-lg);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-gold);
}

.payment-preview img {
  width: 100%;
  max-height: 250px;
  object-fit: contain;
  background: rgba(0,0,0,0.5);
  display: block;
}

.payment-preview__remove {
  position: absolute;
  top: var(--space-sm);
  right: var(--space-sm);
  background: rgba(244, 63, 94, 0.9);
  color: white;
  border: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 700;
  transition: background var(--transition-fast);
}

.payment-preview__remove:hover {
  background: rgb(220, 38, 70);
}

/* Success step */
.payment-success {
  text-align: center;
}

.payment-success__icon {
  font-size: 3rem;
  color: var(--accent-teal);
  margin-bottom: var(--space-sm);
  animation: successScale 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes successScale {
  0% { transform: scale(0.5); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.payment-success__title {
  font-family: var(--font-display);
  color: var(--accent-teal);
  font-size: 1.25rem;
  margin-bottom: var(--space-md);
}

.payment-success__desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: var(--space-lg);
}

.payment-success__details {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  margin-bottom: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.payment-success__detail {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
}

.payment-success__detail span {
  color: var(--text-muted);
}

.payment-success__detail strong {
  color: var(--text-primary);
}

.payment-success__note {
  font-size: 0.8rem;
  color: var(--gold-light);
  font-style: italic;
  margin-bottom: var(--space-lg);
}

/* ── Admin Login & Dashboard ────────────────────────────── */
.admin-login-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 100px);
  padding: var(--space-md);
}

.admin-login {
  background: var(--bg-secondary);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl) var(--space-xl);
  max-width: 400px;
  width: 100%;
  box-shadow: var(--shadow-lg), var(--shadow-gold);
  text-align: center;
}

.admin-login__icon {
  font-size: 3rem;
  margin-bottom: var(--space-sm);
}

.admin-login__title {
  font-family: var(--font-display);
  color: var(--gold-light);
  font-size: 1.6rem;
  margin-bottom: var(--space-xs);
}

.admin-login__subtitle {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: var(--space-xl);
}

.admin-login__form {
  text-align: left;
}

/* Admin Dashboard layout */
.admin-page {
  max-width: 1000px;
  margin: 0 auto;
  padding: var(--space-xl) var(--space-md);
}

.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
  padding-bottom: var(--space-lg);
  margin-bottom: var(--space-xl);
  flex-wrap: wrap;
  gap: var(--space-md);
}

.admin-header__title {
  font-family: var(--font-display);
  color: var(--gold-light);
  font-size: 1.6rem;
}

.admin-header__subtitle {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.admin-header__right {
  display: flex;
  gap: var(--space-sm);
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}

.admin-stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: var(--space-lg) var(--space-md);
  text-align: center;
  transition: transform var(--transition-fast);
}

.admin-stat-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-gold);
}

.admin-stat-card__value {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text-primary);
  font-family: var(--font-display);
  margin-bottom: var(--space-xs);
}

.admin-stat-card__label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.admin-stat-card--pending {
  border-color: rgba(245, 158, 11, 0.2);
}
.admin-stat-card--pending .admin-stat-card__value {
  color: var(--accent-amber);
}

.admin-stat-card--approved {
  border-color: rgba(45, 212, 191, 0.2);
}
.admin-stat-card--approved .admin-stat-card__value {
  color: var(--accent-teal);
}

.admin-stat-card--completed {
  border-color: rgba(74, 58, 255, 0.2);
}
.admin-stat-card--completed .admin-stat-card__value {
  color: #8b5cf6;
}

.admin-stat-card--revenue {
  border-color: rgba(212, 175, 55, 0.4);
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.05), rgba(13, 13, 43, 0.7));
}
.admin-stat-card--revenue .admin-stat-card__value {
  color: var(--gold-light);
}

/* Filters */
.admin-filters {
  display: flex;
  gap: var(--space-xs);
  margin-bottom: var(--space-lg);
  overflow-x: auto;
  padding-bottom: var(--space-xs);
}

.admin-filter {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  font-size: 0.85rem;
  white-space: nowrap;
  transition: all var(--transition-fast);
}

.admin-filter:hover {
  background: rgba(255, 255, 255, 0.08);
}

.admin-filter.active {
  background: var(--gold-gradient);
  color: var(--bg-primary);
  border-color: var(--gold-light);
  font-weight: 600;
}

/* Request Cards List */
.admin-requests {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.admin-request-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  transition: border-color var(--transition-fast);
}

.admin-request-card:hover {
  border-color: rgba(212, 175, 55, 0.3);
}

.admin-request-card__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: var(--space-md);
}

.admin-request-card__name {
  font-size: 1.1rem;
  color: var(--text-primary);
  margin-bottom: var(--space-xs);
}

.admin-request-card__phone {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.admin-request-card__date {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.admin-request-card__meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: var(--space-xs);
}

@media (max-width: 600px) {
  .admin-request-card__meta {
    align-items: flex-start;
  }
}

.admin-request-card__module {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gold-light);
}

.admin-request-card__amount {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.admin-status {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-sm);
}

.admin-status--pending {
  background: rgba(245, 158, 11, 0.15);
  color: var(--accent-amber);
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.admin-status--approved {
  background: rgba(45, 212, 191, 0.15);
  color: var(--accent-teal);
  border: 1px solid rgba(45, 212, 191, 0.3);
}

.admin-status--completed {
  background: rgba(139, 92, 246, 0.15);
  color: #a78bfa;
  border: 1px solid rgba(139, 92, 246, 0.3);
}

.admin-status--rejected {
  background: rgba(244, 63, 94, 0.15);
  color: var(--accent-rose);
  border: 1px solid rgba(244, 63, 94, 0.3);
}

.admin-request-card__screenshot {
  border-top: 1px solid rgba(255,255,255,0.05);
  padding-top: var(--space-md);
}

.admin-request-card__screenshot-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: var(--space-sm);
}

.admin-screenshot-img {
  max-width: 150px;
  max-height: 150px;
  object-fit: contain;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255,255,255,0.1);
  cursor: pointer;
  transition: transform var(--transition-base), max-width var(--transition-base), max-height var(--transition-base);
}

.admin-screenshot-img--expanded {
  max-width: 100%;
  max-height: 500px;
  box-shadow: var(--shadow-lg);
}

.admin-request-card__notes {
  background: rgba(255,255,255,0.02);
  border-left: 3px solid var(--gold);
  padding: var(--space-sm) var(--space-md);
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.admin-request-card__actions {
  border-top: 1px solid rgba(255,255,255,0.05);
  padding-top: var(--space-md);
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

.admin-empty {
  text-align: center;
  padding: var(--space-3xl) var(--space-md);
  background: var(--bg-card);
  border: 1px dashed var(--border-subtle);
  border-radius: var(--radius-md);
}

.admin-empty__icon {
  font-size: 3rem;
  margin-bottom: var(--space-md);
  color: var(--text-muted);
}


