/* ═══════════════════════════════════════════════════════════════
   Dasha Astro — Sleek & Minimalist Auth Stylesheet
   Theme: Serene Cosmic Dark · Dasha Guided Verification
   ═══════════════════════════════════════════════════════════════ */

:root,
[data-theme="light"] {
  /* ── Jyotish Sacred Sand & Antique Alabaster Tokens (Default) ── */
  --bg-main: #f0ebe1;           /* Soothing warm sacred parchment / sand */
  --bg-surface: #f8f4ec;        /* Soft antique alabaster (zero pure-white glare) */
  --bg-card: #fbf8f2;           /* Elevated warm cream card */
  --bg-input: #e6ded0;          /* Warm tactile sand input well */
  --bg-hover: rgba(124, 58, 237, 0.08);

  --border-subtle: rgba(138, 120, 95, 0.22); /* Warm stone / antique brass whisper */
  --border-accent: rgba(180, 83, 9, 0.32);
  --border-purple: rgba(124, 58, 237, 0.24);
  --border-focus: rgba(124, 58, 237, 0.7);

  --accent-gold: #d97706;
  --accent-gold-light: #fef3c7;
  --accent-purple: #7c3aed;
  --success: #059669;
  --danger: #dc2626;

  --text-main: #18181b;         /* Deep obsidian warm ink (AAA contrast) */
  --text-muted: #4a433a;        /* Warm earthy charcoal (AAA contrast) */
  --text-dim: #71675a;          /* Warm stone slate (AA contrast) */
  --text-heading: #1b1622;      /* Deep midnight astral indigo */

  --shadow-sm: 0 1px 3px rgba(35, 25, 15, 0.06);
  --shadow-md: 0 4px 18px -2px rgba(35, 25, 15, 0.08);
  --shadow-lg: 0 16px 36px -4px rgba(35, 25, 15, 0.12);

  --font-sans: 'Plus Jakarta Sans', 'Noto Sans Tamil', 'Noto Sans Devanagari', 'Noto Sans Telugu', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', Consolas, monospace;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
}

[data-theme="dark"] {
  /* ── Serene Cosmic Dark Tokens ── */
  --bg-main: #06070a;
  --bg-surface: #0c0e15;
  --bg-card: #0f121a;
  --bg-input: #07090e;
  --bg-hover: rgba(168, 85, 247, 0.12);

  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-accent: rgba(245, 158, 11, 0.35);
  --border-purple: rgba(168, 85, 247, 0.35);
  --border-focus: rgba(245, 158, 11, 0.7);

  --accent-gold: #f59e0b;
  --accent-gold-light: #fef08a;
  --accent-purple: #c084fc;
  --success: #10b981;
  --danger: #ef4444;

  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --text-heading: #ffffff;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 12px 35px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 25px 60px rgba(0, 0, 0, 0.7);
}

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

button,
input,
select,
textarea {
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
}

html, body {
  overflow-x: hidden;
  max-width: 100vw;
  width: 100%;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-main);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.25rem 1rem;
  background-image: radial-gradient(circle at 50% 15%, rgba(217, 119, 6, 0.04) 0%, rgba(124, 58, 237, 0.03) 40%, rgba(248, 246, 240, 0) 70%);
}

[data-theme="dark"] body {
  background-image: radial-gradient(circle at 50% 15%, rgba(245, 158, 11, 0.04) 0%, rgba(124, 58, 237, 0.03) 40%, rgba(6, 7, 10, 0) 70%);
}

.font-serif { font-family: var(--font-serif); }
.font-mono { font-family: var(--font-mono); }
.font-sans { font-family: var(--font-sans); }

/* Particle Canvas */
#particle-canvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
}

/* Tactile button physics */
.btn-tactile {
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  cursor: pointer;
  user-select: none;
}
.btn-tactile:hover {
  transform: translateY(-1px);
}
.btn-tactile:active {
  transform: scale(0.96);
}

/* ── Auth Container & Sovereign Brand Masthead ──────────────── */
.auth-container {
  width: 100%;
  max-width: 440px;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 10;
}

.auth-brand-masthead {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.6rem;
  text-align: center;
}

.auth-brand-link {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.brand-logo-wrap {
  position: relative;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-logo-img {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  object-fit: cover;
  display: block;
  border: 1.5px solid rgba(245, 158, 11, 0.85);
  box-shadow: 0 0 16px rgba(245, 158, 11, 0.35);
}

.brand-logo-ring {
  position: absolute;
  inset: -3px;
  border-radius: var(--radius-full);
  border: 1px dashed rgba(245, 158, 11, 0.45);
  animation: spin-clockwise 25s linear infinite;
  pointer-events: none;
}

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

.auth-theme-toggle-wrap {
  position: fixed;
  top: 1.25rem;
  right: 1.25rem;
  z-index: 100;
}

.auth-theme-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.85rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-purple);
  border-radius: var(--radius-full);
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  backdrop-filter: blur(8px);
}

.auth-theme-toggle-btn:hover {
  border-color: var(--accent-gold);
  color: var(--accent-gold);
  background: var(--bg-hover);
}

.brand-title {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.1em;
  color: var(--text-heading);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.brand-title-accent {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--accent-gold);
}

.brand-badge {
  display: none;
}

.nav-icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.theme-icon-svg {
  display: block;
}

.theme-icon-svg.hidden {
  display: none !important;
}

/* ── Auth Card ─────────────────────────────────────────────── */
.auth-card {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.25rem 2rem 2rem;
  box-shadow: var(--shadow-lg), 0 0 40px rgba(217, 119, 6, 0.04);
  position: relative;
  overflow: hidden;
}

/* ── Embedded Top-Edge Segmented Progress Bar ──────────────── */
.card-progress-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  display: flex;
  background: var(--border-subtle);
  gap: 2px;
  overflow: hidden;
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
}

/* Hide Google reCAPTCHA v2 invisible floating badge ghost box */
.grecaptcha-badge {
  visibility: hidden !important;
}

.progress-segment {
  flex: 1;
  height: 100%;
  background: var(--border-subtle);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.progress-segment.active {
  background: linear-gradient(90deg, #d97706, #f59e0b);
  box-shadow: 0 0 10px rgba(217, 119, 6, 0.5);
}

[data-theme="dark"] .progress-segment.active {
  background: linear-gradient(90deg, #f59e0b, #fbbf24);
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.7);
}

.progress-segment.completed {
  background: rgba(217, 119, 6, 0.4);
}

/* ── Unified Card Header (Centered & Serene) ───────────────── */
.auth-card-header {
  text-align: center;
  margin-bottom: 1.6rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.step-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.2rem 0.7rem;
  border-radius: var(--radius-full);
  background: var(--bg-hover);
  border: 1px solid var(--border-subtle);
  font-size: 0.7rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
  letter-spacing: 0.04em;
  margin-bottom: 0.65rem;
}

.step-indicator-dot {
  width: 6px;
  height: 6px;
  border-radius: var(--radius-full);
  background: var(--accent-gold);
  box-shadow: 0 0 6px rgba(217, 119, 6, 0.8);
  animation: pulse-glow 2s infinite ease-in-out;
}

@keyframes pulse-glow {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.85); }
}

.step-label {
  color: var(--text-muted);
}

.auth-card-title {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-heading);
  letter-spacing: -0.01em;
  margin-bottom: 0.45rem;
}

.auth-card-sub {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.5;
  max-width: 320px;
  margin: 0 auto;
  transition: all 0.3s ease;
}

/* Error Banner */
.error-box {
  background: rgba(220, 38, 38, 0.12);
  border: 1px solid rgba(220, 38, 38, 0.35);
  color: #dc2626;
  font-size: 0.78rem;
  padding: 0.6rem 0.85rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
}

[data-theme="dark"] .error-box {
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.35);
  color: #fca5a5;
}

/* ── Step 1: Phone Input ───────────────────────────────────── */
.form-group {
  margin-bottom: 1.15rem;
}

.form-label {
  display: block;
  font-size: 0.76rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 0.45rem;
}

.phone-input-card {
  display: flex;
  align-items: center;
  background: var(--bg-input);
  border: 1px solid var(--border-purple);
  border-radius: var(--radius-md);
  padding: 0.45rem 0.75rem;
  transition: all 0.2s ease;
  box-shadow: inset 0 2px 4px rgba(15, 23, 42, 0.04);
  width: 100%;
  box-sizing: border-box;
}

.phone-input-card:focus-within {
  border-color: var(--accent-gold);
  box-shadow: inset 0 2px 4px rgba(15, 23, 42, 0.04), 0 0 15px rgba(217, 119, 6, 0.15);
}

.phone-input-card .country-select {
  flex: 0 0 auto !important;
  width: auto !important;
  max-width: 110px !important;
  background: transparent !important;
  border: none !important;
  border-right: 1px solid var(--border-subtle) !important;
  border-radius: 0 !important;
  outline: none !important;
  font-family: var(--font-sans);
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--text-main);
  cursor: pointer;
  padding: 0.35rem 1.25rem 0.35rem 0.2rem !important;
  margin-right: 0.65rem;
  line-height: 1.4;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='5' viewBox='0 0 8 5'%3E%3Cpath fill='none' stroke='%2394a3b8' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round' d='M1 1l3 3 3-3'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 0.25rem center !important;
}

.phone-input-card .country-select:focus {
  color: var(--text-heading);
  border-right-color: var(--accent-gold) !important;
}

.phone-input-card .country-select option {
  background: var(--bg-surface);
  color: var(--text-main);
  padding: 6px 10px;
}

.phone-input-card .phone-digits-input {
  flex: 1 1 0% !important;
  min-width: 0 !important;
  width: 100% !important;
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  outline: none !important;
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--text-main) !important;
  padding: 0.4rem 0.25rem !important;
  box-shadow: none !important;
}

.phone-input-card .phone-digits-input::placeholder {
  color: var(--text-dim);
  font-weight: 400;
}

.phone-input-card .phone-status-badge {
  width: 22px;
  height: 22px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  flex: 0 0 22px !important;
  margin-left: 0.35rem;
  transition: all 0.2s ease;
}

.phone-input-card .phone-status-badge.valid {
  background: rgba(16, 185, 129, 0.15);
  color: var(--success);
}

.form-help-text {
  font-size: 0.7rem;
  color: var(--text-dim);
  margin-top: 0.4rem;
}

/* Submit Button */
.btn-submit {
  width: 100%;
  background: var(--accent-gold);
  color: #fff;
  border: none;
  font-family: var(--font-sans);
  font-size: 0.84rem;
  font-weight: 600;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  box-shadow: 0 4px 18px rgba(217, 119, 6, 0.25);
  margin-top: 0.5rem;
  transition: all 0.2s ease;
}

[data-theme="dark"] .btn-submit {
  color: #000;
  box-shadow: 0 4px 18px rgba(245, 158, 11, 0.25);
}

.btn-submit:hover {
  filter: brightness(1.08);
  box-shadow: 0 6px 24px rgba(217, 119, 6, 0.35);
}

.btn-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ── Step 2: Beautified Split OTP ──────────────────────────── */
.otp-header {
  text-align: center;
  margin-bottom: 1.25rem;
}

.otp-target-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-hover);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 0.25rem 0.75rem;
  font-size: 0.76rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
  margin-top: 0.35rem;
}

.otp-edit-btn {
  background: none;
  border: none;
  color: var(--accent-gold);
  font-size: 0.68rem;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
}

.otp-split-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  margin: 1.25rem 0;
  width: 100%;
}

.otp-group {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.otp-separator {
  font-size: 0.75rem;
  color: var(--accent-gold);
  user-select: none;
  padding: 0 0.15rem;
}

.otp-box {
  width: 42px;
  height: 50px;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  font-size: 1.25rem;
  font-weight: 600;
  font-family: var(--font-mono);
  text-align: center;
  color: var(--text-heading);
  outline: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.otp-box:focus {
  border-color: var(--accent-gold);
  background: var(--bg-surface);
  box-shadow: 0 0 15px rgba(217, 119, 6, 0.2);
  transform: translateY(-2px);
}

.otp-box.filled {
  border-color: var(--accent-gold);
  color: var(--accent-gold);
}

.otp-resend-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.74rem;
  color: var(--text-dim);
  margin-bottom: 1.15rem;
  padding: 0 0.2rem;
}

.btn-resend-active {
  background: none;
  border: none;
  color: var(--accent-gold);
  font-size: 0.74rem;
  cursor: pointer;
  text-decoration: underline;
  padding: 0;
}

/* Shake Animation on OTP Error */
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-6px); }
  40%, 80% { transform: translateX(6px); }
}

.shake-error {
  animation: shake 0.5s ease-in-out;
}

/* ── Step 3: Fast Profile Onboarding ───────────────────────── */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
}

#signupForm .form-group input,
#signupForm .form-group select {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.55rem 0.75rem;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  color: var(--text-main);
  outline: none;
  transition: border-color 0.2s ease;
}

#signupForm .form-group input:focus,
#signupForm .form-group select:focus {
  border-color: var(--accent-gold);
}

#signupForm .form-group select option {
  background: var(--bg-surface);
  color: var(--text-main);
}

.suggestions-list {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  list-style: none;
  max-height: 180px;
  overflow-y: auto;
  z-index: 50;
  box-shadow: var(--shadow-md);
}

.suggestions-list li {
  padding: 0.5rem 0.75rem;
  font-size: 0.76rem;
  color: var(--text-main);
  cursor: pointer;
}

.suggestions-list li:hover {
  background: var(--bg-hover);
  color: var(--accent-gold);
}

/* ── Auth Footer ───────────────────────────────────────────── */
.auth-footer {
  text-align: center;
  font-size: 0.68rem;
  color: var(--text-dim);
  margin-top: 1.25rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-subtle);
}

.hidden {
  display: none !important;
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE MOBILE RULES
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 480px) {
  .auth-brand-masthead {
    margin-bottom: 1.25rem;
  }

  .brand-title {
    font-size: 1.15rem;
  }

  .brand-logo-wrap {
    width: 38px;
    height: 38px;
  }

  .brand-logo-img {
    width: 32px;
    height: 32px;
  }

  .auth-card {
    padding: 1.6rem 1.15rem 1.25rem;
    border-radius: var(--radius-md);
  }

  .auth-card-title {
    font-size: 1.15rem;
  }

  .auth-card-sub {
    font-size: 0.76rem;
  }

  .otp-box {
    width: 36px;
    height: 46px;
    font-size: 1.15rem;
  }

  .otp-split-container {
    gap: 0.25rem;
  }

  .otp-group {
    gap: 0.25rem;
  }

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

/* ── Birth Time Rectification (BTR) UI Components ─────────── */
.btr-toggle-container {
  margin: 0.75rem 0;
  padding: 0.65rem 0.85rem;
  background: var(--bg-hover);
  border: 1px dashed var(--border-accent);
  border-radius: 8px;
}
.btr-checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  cursor: pointer;
  font-size: 0.82rem;
  color: var(--text-main);
}
.btr-checkbox-label input[type="checkbox"] {
  accent-color: var(--accent-gold);
  width: 15px;
  height: 15px;
  cursor: pointer;
}
.btr-uncertainty-row {
  margin-top: 0.5rem;
  padding-top: 0.45rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: var(--text-muted);
}
.btr-select {
  background: var(--bg-surface);
  color: var(--text-main);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  padding: 0.3rem 0.5rem;
  font-size: 0.75rem;
  outline: none;
}
.btr-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.btr-modal.hidden {
  display: none !important;
}
.btr-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
}
[data-theme="dark"] .btr-modal-backdrop {
  background: rgba(0, 0, 0, 0.8);
}
.btr-modal-content {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-accent);
  border-radius: 14px;
  max-width: 480px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 1.4rem;
  box-shadow: var(--shadow-lg);
  z-index: 1;
}
.btr-badge {
  display: inline-block;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  background: rgba(217, 119, 6, 0.15);
  color: var(--accent-gold);
  font-weight: 700;
  margin-bottom: 0.4rem;
}
.btr-title {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-heading);
  margin-bottom: 0.3rem;
}
.btr-subtitle {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 1.1rem;
  line-height: 1.4;
}
.btr-question-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 0.9rem;
  margin-bottom: 0.9rem;
}
.btr-q-num {
  font-size: 0.7rem;
  text-transform: uppercase;
  color: var(--accent-gold);
  font-weight: 700;
}
.btr-q-headline {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-heading);
  margin: 0.2rem 0 0.35rem;
}
.btr-q-text {
  font-size: 0.8rem;
  color: var(--text-main);
  margin-bottom: 0.65rem;
  line-height: 1.35;
}
.btr-input-field {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  color: var(--text-main);
  padding: 0.45rem 0.6rem;
  font-size: 0.82rem;
  outline: none;
}
.btr-input-field:focus {
  border-color: var(--accent-gold);
}
.btr-skip-row {
  margin-top: 0.4rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.74rem;
  color: var(--text-muted);
  cursor: pointer;
}
.btr-result-card {
  background: rgba(217, 119, 6, 0.08);
  border: 1px solid var(--border-accent);
  border-radius: 8px;
  padding: 0.9rem;
  margin-bottom: 1rem;
}
.btr-result-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.45rem;
}
.btr-time-tag {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent-gold);
}
.btr-confidence-tag {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  background: rgba(5, 150, 105, 0.15);
  color: var(--success);
}
.btr-rationale-text {
  font-size: 0.78rem;
  color: var(--text-main);
  line-height: 1.4;
}
.btr-actions {
  display: flex;
  gap: 0.6rem;
  justify-content: flex-end;
  margin-top: 1rem;
}

.btr-astro-context {
  background: rgba(217, 119, 6, 0.08);
  border: 1px solid var(--border-accent);
  border-radius: 6px;
  padding: 0.55rem 0.75rem;
  margin: 0.4rem 0 0.75rem 0;
}
.btr-astro-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent-gold);
  margin-bottom: 0.25rem;
}
.btr-astro-reason {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.35;
}

/* ═══════════════════════════════════════════════════════════════
   CELESTIAL CLOCKWORK ASTROLABE BACKDROP (Feature: Visual Continuity)
   ═══════════════════════════════════════════════════════════════ */
.login-astrolabe-backdrop {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(520px, 92vw);
  height: min(520px, 92vw);
  pointer-events: none;
  z-index: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-astrolabe-svg {
  width: 100%;
  height: 100%;
  opacity: 0.7;
  filter: drop-shadow(0 0 25px rgba(245, 158, 11, 0.16));
}

.login-ring-outer {
  transform-box: view-box;
  transform-origin: 50% 50%;
  animation: astrolabeRotateCW 80s linear infinite;
}

.login-ring-middle {
  transform-box: view-box;
  transform-origin: 50% 50%;
  animation: astrolabeRotateCCW 50s linear infinite;
}

.login-ring-inner {
  transform-box: view-box;
  transform-origin: 50% 50%;
  animation: astrolabeRotateCW 35s linear infinite;
}

.login-crossbeams {
  transform-box: view-box;
  transform-origin: 50% 50%;
  animation: astrolabeRotateCCW 120s linear infinite;
}

.login-planets-group {
  transform-box: view-box;
  transform-origin: 50% 50%;
  animation: astrolabeRotateCW 45s linear infinite;
}

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

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

/* ── Welcome Transition Overlay (Post-OTP & Registration) ──── */
.welcome-overlay {
  text-align: center;
  padding: 1.75rem 0;
  animation: fadeIn 0.35s ease;
}

.welcome-icon {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
  animation: pulse-gentle 2s infinite ease-in-out;
}

.welcome-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-heading);
  font-family: var(--font-serif);
}

.welcome-title span {
  color: var(--accent-gold);
}

.welcome-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
  line-height: 1.5;
}

@media (prefers-reduced-motion: reduce) {
  .login-ring-outer,
  .login-ring-middle,
  .login-ring-inner,
  .login-crossbeams,
  .login-planets-group {
    animation: none !important;
  }
}