.header {
  margin: 0;
  padding-top: 32px;
}






/* =========================
   FIN-OS LOGIN UNIVERSE
   ========================= */

/* Update in components.css */
/* Update in components.css */
/* =========================
   FIXED LOGIN UNIVERSE
   ========================= */

/* =========================
   FIXED LOGIN LAYOUT
   ========================= */

/* =========================
   FIXED LOGIN LAYOUT (components.css)
   ========================= */

/* =========================
   FIXED LOGIN UNIVERSE
   ========================= */

.login-universe {
  min-height: 100vh;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;    /* Fixes left-drift in image_140f48.jpg */
  justify-content: center; 
  padding: 60px 20px;
  
  /* CRITICAL: Use the theme variable from base.css */
  background: var(--bg-main) !important; 
  color: var(--text-main);
  transition: background 0.4s ease, color 0.4s ease;
}

/* Constrain the core content to the center */
.login-core {
  width: 100%;
  max-width: 480px; 
  margin: 0 auto;
  text-align: center;
}

/* =========================
   FIXED AUTH PANEL (The Box)
   ========================= */

/* =========================
   FIXED LAYOUT & THEME
   ========================= */

.login-universe {
  min-height: 100vh;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;    /* Fixes left-drift */
  justify-content: center; 
  padding: 60px 20px;
  background: var(--bg-main) !important; /* Theme support */
  color: var(--text-main);
  transition: all 0.4s ease;
}

.login-core {
  width: 100%;
  max-width: 480px; 
  margin: 0 auto;
  text-align: center;
}

/* FIX: Top cut issue */
.login-energy {
  margin: 0 auto 1.5rem auto !important; /* Resets massive top margin */
}


/* Ensure the box turns dark in Dark Mode */
.auth-panel {
  background: var(--bg-surface) !important; 
  border: 1px solid var(--border-soft);
  box-shadow: var(--card-shadow);
}

/* Make inputs look stylish and themed */
.auth-form input {
  background: var(--bg-glass) !important;
  color: var(--text-main) !important;
  border: 1px solid var(--border-soft);
  padding: 16px;
  border-radius: 14px;
}

/* Primary Button Styling */
.primary-btn {
  width: 100%;
  padding: 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  color: #0b0d12;
  font-weight: 700;
  border: none;
  cursor: pointer;
  margin-top: 20px;
  box-shadow: var(--glow-primary);
}

/* =========================
   THEME-REACTIVE COMPONENTS
   ========================= */

/* Update these in components.css */

.auth-panel {
  width: 100%;
  margin-top: 24px;
  padding: 30px;
  border-radius: 20px;
  /* Use surface variable instead of hardcoded white */
  background: var(--bg-surface) !important; 
  border: 1px solid var(--border-soft);
  box-shadow: var(--card-shadow);
  backdrop-filter: blur(14px);
}

.choice-card {
  width: 100%;
  background: var(--bg-surface) !important;
  color: var(--text-main) !important;
  border: 1px solid var(--border-soft);
}

.auth-form input {
  background: var(--bg-glass) !important;
  border: 1px solid var(--border-soft);
  color: var(--text-main) !important;
}

.back-link {
  position: absolute;
  top: 1.0rem;
  left: 1.5rem;
  text-decoration: none;
  opacity: 0.6;
}

/* CORE */
.login-core {
  max-width: 480px;
  text-align: center;
  padding-bottom: 4rem;
}

/* ENERGY */
.login-energy {
  position: relative;
  width: 120px;
  height: 120px;

  margin: 12.5rem auto 50rem;
  /* 🔽 moves FIN-OS down */

  border-radius: 50%;
  background: linear-gradient(135deg, #C7F000, #B6FF3B);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}


.pulse {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  animation: pulse 2.5s ease-in-out infinite;
  background: rgba(199, 240, 0, 0.4);
}

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 0.7;
  }

  100% {
    transform: scale(1.6);
    opacity: 0;
  }
}

/* TEXT */
.login-sub {
  opacity: 0.7;
  margin: 1.5rem 0;
}

/* CHOICES */
.login-choices {
  display: grid;
  gap: 1rem;
  margin: 2rem 0;
}

.choice-card {
  padding: 1.2rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(0, 0, 0, 0.08);
  cursor: pointer;
  transition: all 0.3s ease;
}

.choice-card small {
  display: block;
  opacity: 0.6;
  margin-top: 0.4rem;
}

.choice-card:hover,
.choice-card.active {
  transform: translateY(-4px);
  border-color: rgba(182, 255, 59, 0.8);
  background: var(--bg-surface);
  color: var(--text-main);
}

/* Ensure text color adapts */
.choice-card {
  color: var(--text-main);
}

/* DARK MODE */
[data-theme="dark"] .login-universe {
  background: radial-gradient(circle at center, rgba(79, 124, 255, 0.18), transparent 70%);
}

[data-theme="dark"] .choice-card {
  background: rgba(18, 22, 34, 0.7);
  border-color: rgba(255, 255, 255, 0.08);
}

/* =========================
   LOGIN BACK BUTTON
   ========================= */

.back-link {
  position: absolute;
  top: 1.5rem;
  left: 1.5rem;

  padding: 0.45rem 0.85rem;
  border-radius: 999px;

  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;

  display: inline-flex;
  align-items: center;
  gap: 0.4rem;

  background: rgba(0, 0, 0, 0.05);
  color: #0B0D12;

  transition: all 0.25s ease;
}

/* Hover */
.back-link:hover {
  background: rgba(0, 0, 0, 0.08);
  transform: translateY(-1px);
}

/* Dark mode */
[data-theme="dark"] .back-link {
  background: rgba(255, 255, 255, 0.08);
  color: #F5F7FA;
}

[data-theme="dark"] .back-link:hover {
  background: rgba(255, 255, 255, 0.14);
}






/* =========================
   MONEY BRAIN SIMULATION
   ========================= */

.money-brain-section {
  text-align: center;
  margin-top: 6rem;
}

/* ENERGY CORE */
.money-energy {
  position: relative;
  margin: 4rem auto;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(199, 240, 0, 0.15), transparent);
}

.energy-core {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: linear-gradient(135deg, #C7F000, #B6FF3B);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.75rem;
}

.energy-stream {
  position: absolute;
  padding: 0.3rem 0.6rem;
  font-size: 0.7rem;
  border-radius: 999px;
  opacity: 0.7;
  animation: orbit 10s linear infinite;
}

.salary {
  top: 10%;
  left: 50%;
}

.business {
  top: 50%;
  right: 5%;
  animation-delay: -3s;
}

.capital {
  bottom: 10%;
  left: 20%;
  animation-delay: -6s;
}

/* ===== EXTEND ENERGY STREAMS (MIDDLE CLASS REALITY) ===== */

/* Positioning + staggered orbits */
.emi {
  top: 15%;
  right: 15%;
  animation-delay: -1s;
}

.marriage {
  bottom: 15%;
  right: 20%;
  animation-delay: -4s;
}

.home-loan {
  bottom: 5%;
  left: 50%;
  animation-delay: -7s;
}

.liabilities {
  top: 55%;
  left: 5%;
  animation-delay: -9s;
}

.obligations {
  top: 35%;
  left: 65%;
  animation-delay: -12s;
}

/* Visual tone — subtle pressure */
.emi,
.marriage,
.home-loan,
.liabilities,
.obligations {
  background: rgba(255, 140, 0, 0.18);
  color: #0B0D12;
  font-weight: 600;
}

/* Dark mode tuning */
[data-theme="dark"] .emi,
[data-theme="dark"] .marriage,
[data-theme="dark"] .home-loan,
[data-theme="dark"] .liabilities,
[data-theme="dark"] .obligations {
  background: rgba(255, 180, 80, 0.25);
  color: #F5F7FA;
}

@keyframes orbit {
  0% {
    transform: rotate(0deg) translateX(100px) rotate(0deg);
  }

  100% {
    transform: rotate(360deg) translateX(100px) rotate(-360deg);
  }
}

/* THREE INDIAS */
.india-realities {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 1000px;
  margin: 4rem auto;
}

.india-card {
  padding: 2rem;
  border-radius: 20px;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  cursor: pointer;
}

.india-card:hover {
  transform: translateY(-10px);
}

/* THEMES */
.india-3 {
  background: rgba(200, 80, 80, 0.1);
}

.india-2 {
  background: rgba(255, 200, 100, 0.12);
}

.india-1 {
  background: rgba(182, 255, 59, 0.18);
}

.mindset {
  font-weight: 600;
  opacity: 0.8;
  margin-bottom: 1rem;
}

.india-card ul {
  list-style: none;
  padding: 0;
  font-size: 0.85rem;
  opacity: 0.75;
}

.life-end {
  margin-top: 1.5rem;
  font-weight: 600;
  opacity: 0.8;
}

/* QUESTION */
.choice-question {
  margin-top: 4rem;
}

.choice-question p {
  opacity: 0.6;
}




/* =========================
   LIFE MONEY SIMULATION
   ========================= */

.money-life-section {
  text-align: center;
  margin-top: 6rem;
}

.life-simulator {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 3rem;
  max-width: 900px;
  margin: 4rem auto;
  align-items: flex-start;
}

.life-column h3 {
  margin-bottom: 1.5rem;
}

.life-track {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.life-node {
  padding: 0.6rem 1.1rem;
  border-radius: 999px;
  font-size: 0.8rem;
  opacity: 0.7;
  background: rgba(0, 0, 0, 0.05);
}

.life-node.end {
  font-weight: 700;
}

.life-line {
  width: 2px;
  height: 28px;
  background: rgba(0, 0, 0, 0.15);
  margin: 0.4rem 0;
  opacity: 0.3;
}

.life-line.grow {
  background: linear-gradient(180deg, transparent, #C7F000);
  height: 0;
}

.life-divider {
  font-size: 2.5rem;
  opacity: 0.3;
  align-self: center;
}

/* Notes */
.life-note {
  margin-top: 1.5rem;
  font-size: 0.85rem;
  opacity: 0.65;
}

/* Message */
.life-message {
  margin-top: 2rem;
  opacity: 0;
  transform: translateY(12px);
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  font-weight: 600;
}

.life-message.show {
  opacity: 1;
  transform: translateY(0);
}

/* Dark mode */
[data-theme="dark"] .life-node {
  background: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .life-line {
  background: rgba(255, 255, 255, 0.25);
}




/* =========================
   FINANCIAL LITERACY SYSTEM
   ========================= */

.literacy-section {
  text-align: center;
  margin-top: 5rem;
}

.literacy-simulator {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 2.5rem;
  align-items: center;
  max-width: 760px;
  margin: 3rem auto;
}

.literacy-column h3 {
  margin-bottom: 1rem;
}

.literacy-bar {
  height: 14px;
  background: rgba(0, 0, 0, 0.1);
  border-radius: 999px;
  overflow: hidden;
  position: relative;
  margin-bottom: 1rem;
}

.literacy-fill {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 0%;
  transition: width 1s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Misconceptions dominate */
.misconception-fill {
  background: rgba(200, 80, 80, 0.6);
}

/* Correct literacy */
.literacy-fill-correct {
  background: rgba(182, 255, 59, 0.45);
}

/* Invested portion */
.literacy-fill-invest {
  background: linear-gradient(90deg, #C7F000, #B6FF3B);
}

/* Lists */
.literacy-list {
  list-style: none;
  padding: 0;
  font-size: 0.85rem;
  opacity: 0.75;
}

.literacy-arrow {
  font-size: 2.2rem;
  opacity: 0.4;
}

/* Message */
.literacy-message {
  margin-top: 2rem;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.4s ease;
  font-weight: 600;
}

.literacy-message.show {
  opacity: 1;
  transform: translateY(0);
}

/* Dark mode */
[data-theme="dark"] .literacy-bar {
  background: rgba(255, 255, 255, 0.12);
}




/* =========================
   PAYCHECK TO PAYCHECK SIMULATOR
   ========================= */

.paycheck-section {
  text-align: center;
}

.paycheck-simulator {
  max-width: 520px;
  margin: 3rem auto 0;
}

.income-bar span {
  font-size: 0.85rem;
  opacity: 0.6;
}

.bar {
  height: 14px;
  background: rgba(0, 0, 0, 0.1);
  border-radius: 999px;
  overflow: hidden;
  margin: 0.5rem 0;
}

.income-fill {
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, #C7F000, #B6FF3B);
  transition: width 0.8s ease;
}

/* Expenses list */
.expenses {
  display: flex;
  justify-content: space-between;
  margin: 2rem 0;
  font-size: 0.85rem;
}

.expense {
  opacity: 0.6;
  transition: opacity 0.3s ease;
}

/* Balance */
.balance {
  font-size: 1.1rem;
  margin: 1rem 0;
}

/* Message */
.paycheck-message {
  margin-top: 1.5rem;
  opacity: 0;
  font-weight: 600;
  transform: translateY(10px);
  transition: all 0.4s ease;
}

.paycheck-message.show {
  opacity: 1;
  transform: translateY(0);
}

/* Dark mode */
[data-theme="dark"] .bar {
  background: rgba(255, 255, 255, 0.12);
}


/* =========================
   PAYCHECK SOLUTION SYSTEM
   ========================= */

.paycheck-solution {
  text-align: center;
  margin-top: 5rem;
}

.solution-simulator {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 2rem;
  align-items: center;
  max-width: 720px;
  margin: 3rem auto;
}

.solution-column h3 {
  margin-bottom: 1rem;
}

.solution-bar {
  height: 14px;
  background: rgba(0, 0, 0, 0.1);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 1rem;
}

.solution-fill {
  height: 100%;
  width: 0%;
  transition: width 1s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Before */
.before-fill {
  background: rgba(180, 180, 180, 0.8);
}

/* After */
.after-fill {
  background: linear-gradient(90deg, #C7F000, #B6FF3B);
}


/* =========================
   DESI MONEY UNIVERSE
   ========================= */

.desi-money-universe {
  text-align: center;
  margin-top: 7rem;
}

/* CHULHA */
.chulha {
  position: relative;
  width: 320px;
  height: 320px;
  margin: 4rem auto;
  border-radius: 50%;
}

/* FIRE */
.fire-core {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: radial-gradient(circle, #ffcc80, #ff9800);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.75rem;
  opacity: 0.6;
  transition: all 1s ease;
  box-shadow: 0 0 0 rgba(255, 152, 0, 0);
}

/* ORBITS */
.orbit {
  position: absolute;
  padding: 0.6rem 0.9rem;
  border-radius: 999px;
  font-size: 0.75rem;
  opacity: 0.75;
  animation: orbitSlow 14s linear infinite;
}

.roti {
  top: 5%;
  left: 50%;
  background: rgba(255, 224, 178, 0.9);
}

.ghee {
  bottom: 8%;
  right: 15%;
  background: rgba(255, 241, 118, 0.9);
  animation-delay: -6s;
}

@keyframes orbitSlow {
  0% {
    transform: rotate(0deg) translateX(120px) rotate(0deg);
  }

  100% {
    transform: rotate(360deg) translateX(120px) rotate(-360deg);
  }
}

/* NOTE */
.desi-note {
  font-size: 0.95rem;
  opacity: 0.7;
  margin-top: 2rem;
}

/* MESSAGE */
.desi-message {
  margin-top: 2rem;
  opacity: 0;
  transform: translateY(12px);
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  font-weight: 600;
}

.desi-message.show {
  opacity: 1;
  transform: translateY(0);
}




.solution-list {
  list-style: none;
  padding: 0;
  font-size: 0.85rem;
  opacity: 0.75;
}

.solution-arrow {
  font-size: 2rem;
  opacity: 0.4;
}

/* Message */
.solution-message {
  margin-top: 2rem;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.4s ease;
  font-weight: 600;
}

.solution-message.show {
  opacity: 1;
  transform: translateY(0);
}

/* Dark mode */
[data-theme="dark"] .solution-bar {
  background: rgba(255, 255, 255, 0.12);
}




/* =========================
   FIN-OS CARD SYSTEM — PREMIUM
   ========================= */

/* Base card intelligence */
.value-card,
.belief-card,
.vision-card,
.timeline-card {
  position: relative;
  border-radius: 18px;
  padding: 1.5rem;
  transition:
    transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.4s ease;
  will-change: transform;
}

/* Glass refinement */
.glass {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* LIGHT MODE */
[data-theme="light"] .value-card,
[data-theme="light"] .belief-card,
[data-theme="light"] .vision-card,
[data-theme="light"] .timeline-card {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow:
    0 12px 28px rgba(0, 0, 0, 0.08);
}

/* DARK MODE */
[data-theme="dark"] .value-card,
[data-theme="dark"] .belief-card,
[data-theme="dark"] .vision-card,
[data-theme="dark"] .timeline-card {
  background: rgba(18, 22, 34, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    0 16px 36px rgba(0, 0, 0, 0.45);
}

/* =========================
   HOVER — CALM & INTENTIONAL
   ========================= */

.value-card:hover,
.belief-card:hover,
.vision-card:hover,
.timeline-card:hover {
  transform: translateY(-8px);
}

/* Light hover glow */
[data-theme="light"] .value-card:hover,
[data-theme="light"] .belief-card:hover,
[data-theme="light"] .vision-card:hover,
[data-theme="light"] .timeline-card:hover {
  box-shadow:
    0 20px 48px rgba(0, 0, 0, 0.12);
  border-color: rgba(182, 255, 59, 0.45);
}

/* Dark hover glow */
[data-theme="dark"] .value-card:hover,
[data-theme="dark"] .belief-card:hover,
[data-theme="dark"] .vision-card:hover,
[data-theme="dark"] .timeline-card:hover {
  box-shadow:
    0 28px 64px rgba(0, 0, 0, 0.6);
  border-color: rgba(79, 124, 255, 0.5);
}

/* =========================
   EDGE GLOW — PREMIUM DETAIL
   ========================= */

.value-card::after,
.belief-card::after,
.vision-card::after,
.timeline-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
}

/* Light */
[data-theme="light"] .value-card::after,
[data-theme="light"] .belief-card::after,
[data-theme="light"] .vision-card::after,
[data-theme="light"] .timeline-card::after {
  box-shadow: inset 0 0 0 1px rgba(182, 255, 59, 0.35);
}

/* Dark */
[data-theme="dark"] .value-card::after,
[data-theme="dark"] .belief-card::after,
[data-theme="dark"] .vision-card::after,
[data-theme="dark"] .timeline-card::after {
  box-shadow: inset 0 0 0 1px rgba(79, 124, 255, 0.35);
}

.value-card:hover::after,
.belief-card:hover::after,
.vision-card:hover::after,
.timeline-card:hover::after {
  opacity: 1;
}






/* =========================
   HEADER
   ========================= */

.header h1 {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.4px;
  margin-bottom: 6px;
  margin-top: 0;
  /* critical */
}

.header p {
  color: var(--text-secondary);
  font-size: 15px;
}

/* =========================
   BADGES / PILLS
   ========================= */

.pill {
  background: var(--accent-soft);
  color: var(--accent);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  display: inline-block;
}

/* =========================
   CARD SYSTEM (ONE SOURCE)
   ========================= */

.card {
  background: var(--bg-surface);
  color: var(--text-primary);

  padding: 20px 24px;
  border-radius: 20px;

  box-shadow: var(--card-shadow);

  transition:
    transform 0.28s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.28s ease,
    background 0.3s ease;

  cursor: pointer;

  border-radius: 24px;
  /* more curvy */
  font-size: 15.5px;
  font-weight: 500;
  line-height: 1.55;
}

.card:hover {
  transform: translateY(-6px) scale(1.01);
}

.card {
  transition:
    transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.35s ease,
    letter-spacing 0.25s ease;
}

.card:hover {
  letter-spacing: 0.2px;
}

/* =========================
   GRID SYSTEM (GLOBAL)
   ========================= */

.grid {
  display: grid;
  gap: 24px;
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

/* =========================
   CARD CONTAINERS (HORIZONTAL)
   ========================= */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 24px;
}





/*-------------------------------------------------------------------------------------------------------*/
/* =========================
   HOME PAGE LAYOUT
   ========================= */

.home-grid {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 32px;
  margin-top: 32px;
}

.home-actions .card {
  margin-bottom: 16px;
}

.home-hero {
  align-self: start;
}

.home-hero h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 10px;
}

.home-hero p {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 16px;
}

/* =========================
   THEME TOGGLE BUTTON
   ========================= */

.header-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
}

.theme-btn {
  background: var(--bg-surface);
  color: var(--text-primary);

  border: none;
  border-radius: 999px;

  width: 44px;
  height: 44px;

  font-size: 18px;
  cursor: pointer;

  display: flex;
  align-items: center;
  justify-content: center;

  box-shadow: var(--card-shadow);

  transition:
    transform 0.25s ease,
    background 0.3s ease;
}

.theme-btn:hover {
  transform: scale(1.08);
}

/* =========================
   CARD ICONS
   ========================= */

.card {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* =========================
   CARD WITH IMAGE (MEDIA)
   ========================= */

.card-media {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px;
}

.card-image {
  width: 110px;
  height: 72px;
  border-radius: 16px;
  flex-shrink: 0;

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.08),
    0 12px 24px rgba(0, 0, 0, 0.06);

  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.card-media:hover .card-image {
  transform: scale(1.05);
}

.card-content {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.4;
}

.card:hover .card-icon {
  transform: scale(1.05);
}



/* =========================
   INSIGHT CARD IMAGE SETUP
   ========================= */

.card.insight {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* image box */
.card-image {
  width: 96px;
  height: 96px;

  border-radius: 18px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  flex-shrink: 0;
}

/* text */
.card-content h4 {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
}

/* =========================
   IMAGE MAPPING
   ========================= */

.inflation .card-image {
  background-image: url("../assets/images/inflation.jpg");
}

.sip .card-image {
  background-image: url("../assets/images/sip.jpg");
}

.debt .card-image {
  background-image: url("../assets/images/debt.jpg");
}

.emi .card-image {
  background-image: url("../assets/images/emi.jpg");
}

.policy .card-image {
  background-image: url("../assets/images/rbi.jpg");
}

/* =========================
   INSIGHT CARD (FINAL)
   ========================= */

.card.insight {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* image box */
.card.insight .card-image {
  width: 96px;
  height: 96px;

  border-radius: 16px;
  flex-shrink: 0;

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.08),
    0 12px 24px rgba(0, 0, 0, 0.06);
}

/* text */
.card.insight .card-content h4 {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
}


/* =========================
   IMAGE MAPPING
   ========================= */
.learning .card-image {
  background-image: url("../assets/images/learning.jpg");
}

.thinking .card-image {
  background-image: url("../assets/images/thinking.jpg");
}

.clarity .card-image {
  background-image: url("../assets/images/clarity.jpg");
}

.focus .card-image {
  background-image: url("../assets/images/focus.jpg");
}



.investing .card-image {
  background-image: url("../assets/images/investing.jpg");
}

.invest-why .card-image {
  background-image: url("../assets/images/why-invest.jpg");
}

.inflation .card-image {
  background-image: url("../assets/images/inflation.jpg");
}

.inflation-compare .card-image {
  background-image: url("../assets/images/inflation-compare.jpg");
}

.education .card-image {
  background-image: url("../assets/images/education.jpg");
}

.debt .card-image {
  background-image: url("../assets/images/debt.jpg");
}

.asset .card-image {
  background-image: url("../assets/images/asset-liability.jpg");
}

.emi .card-image {
  background-image: url("../assets/images/emi.jpg");
}


.sip-impact .card-image {
  background-image: url("../assets/images/sip-impact.jpg");
}

.home-impact .card-image {
  background-image: url("../assets/images/home-impact.jpg");
}

.simplicity-impact .card-image {
  background-image: url("../assets/images/simplicity.jpg");
}

.delay-impact .card-image {
  background-image: url("../assets/images/delay.jpg");
}



.fd-impact .card-image {
  background-image: url("../assets/images/fd-vs-market.jpg");
}

.gold-impact .card-image {
  background-image: url("../assets/images/gold-vs-equity.jpg");
}

.lic-impact .card-image {
  background-image: url("../assets/images/lic-myth.jpg");
}

.lifestyle-impact .card-image {
  background-image: url("../assets/images/lifestyle-inflation.jpg");
}



/*---------------------------------------------------------------------------------------------------*/
/* =========================
   IMPACT FLOW SYSTEM
   ========================= */

.impact-flow {
  max-width: 720px;
  margin: 120px auto 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
}

.flow-step {
  width: 100%;
  padding: 22px 28px;
  border-radius: 20px;
  background: var(--bg-surface);
  box-shadow: var(--card-shadow);
  display: flex;
  align-items: center;
  gap: 16px;
  cursor: pointer;

  opacity: 0.55;
  transition: all 0.45s cubic-bezier(0.16, 1, 0.3, 1);

  /* required for glow */
  position: relative;
}

.flow-step:hover {
  transform: translateY(-4px);
  opacity: 0.85;
}

.flow-step.active {
  opacity: 1;
}

/* =========================
   EDGE GLOW (FLOW STEPS)
   ========================= */

.flow-step::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;

  /* subtle always-on edge */
  box-shadow: inset 0 0 0 1px rgba(120, 130, 160, 0.25);
  opacity: 0.6;

  transition: box-shadow 0.45s ease, opacity 0.45s ease;
}

/* Hover glow */
.flow-step:hover::after {
  opacity: 1;
  box-shadow:
    inset 0 0 0 1px rgba(120, 130, 160, 0.45),
    0 8px 28px rgba(79, 124, 255, 0.18);
}

/* Active (focused) glow */
.flow-step.active::after {
  opacity: 1;
  box-shadow:
    inset 0 0 0 1px rgba(79, 124, 255, 0.85),
    0 0 0 6px rgba(79, 124, 255, 0.12),
    0 18px 45px rgba(79, 124, 255, 0.28);
}

/* =========================
   STEP DOT
   ========================= */

.step-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 rgba(79, 124, 255, 0);
  transition: box-shadow 0.4s ease;
}

.flow-step.active .step-dot {
  box-shadow: 0 0 0 6px rgba(79, 124, 255, 0.18);
}

/* =========================
   FLOW ARROW
   ========================= */

.flow-arrow {
  position: relative;
  width: 3px;
  height: 36px;

  background: linear-gradient(180deg,
      transparent,
      rgba(120, 130, 160, 0.9),
      transparent);

  border-radius: 4px;
  opacity: 0.9;
}

/* Arrow head */
.flow-arrow::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 50%;

  width: 8px;
  height: 8px;

  border-right: 2px solid rgba(120, 130, 160, 0.95);
  border-bottom: 2px solid rgba(120, 130, 160, 0.95);

  transform: translateX(-50%) rotate(45deg);
}

/* =========================
   INSIGHT PANEL
   ========================= */

.flow-insight {
  max-width: 900px;
  margin: 0 auto 140px;
  padding: 42px;
  border-radius: 28px;
  background: var(--bg-surface);
  box-shadow: var(--card-shadow);

  opacity: 0;
  transform: translateY(24px);
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);

  position: relative;
}

.flow-insight.show {
  opacity: 1;
  transform: translateY(0);
}

/* Insight glow (reward) */
.flow-insight::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s ease, box-shadow 0.5s ease;
}

.flow-insight.show::after {
  opacity: 1;
  box-shadow:
    inset 0 0 0 1px rgba(199, 240, 0, 0.6),
    0 0 0 8px rgba(199, 240, 0, 0.14),
    0 26px 65px rgba(199, 240, 0, 0.28);
}

.flow-insight h4 {
  font-size: 22px;
  margin-bottom: 12px;
}

.flow-insight p {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* =========================
   DARK MODE TUNING
   ========================= */

[data-theme="dark"] .flow-step::after {
  box-shadow: inset 0 0 0 1px rgba(200, 210, 255, 0.22);
}

[data-theme="dark"] .flow-step.active::after {
  box-shadow:
    inset 0 0 0 1px rgba(111, 140, 255, 0.9),
    0 0 0 6px rgba(111, 140, 255, 0.18),
    0 22px 60px rgba(0, 0, 0, 0.65);
}

[data-theme="dark"] .flow-insight.show::after {
  box-shadow:
    inset 0 0 0 1px rgba(199, 240, 0, 0.7),
    0 0 0 8px rgba(199, 240, 0, 0.18),
    0 28px 70px rgba(0, 0, 0, 0.7);
}



/*---------------------------------------------------------------------------------------------------*/

.card.insight.inflation .card-image {
  background-image: url("../assets/images/inflation.jpg");
}

.card.insight.sip .card-image {
  background-image: url("../assets/images/sip.jpg");
}

.card.insight.debt .card-image {
  background-image: url("../assets/images/debt.jpg");
}

.card.insight.emi .card-image {
  background-image: url("../assets/images/emi.jpg");
}

.card.insight.policy .card-image {
  background-image: url("../assets/images/rbi.jpg");
}


/* ===============================
   HOME TIMELINE – PREMIUM MOTION
   =============================== */

.timeline-section {
  margin-top: 120px;
}

.timeline-header h2 {
  font-size: 36px;
  letter-spacing: -0.5px;
}

.timeline-header p {
  margin-top: 10px;
  color: var(--text-secondary);
  max-width: 600px;
}

/* Horizontal track */
.timeline-track {
  display: flex;
  gap: 28px;
  margin-top: 48px;
  overflow-x: auto;
  padding-bottom: 20px;
  scroll-snap-type: x mandatory;
}

.timeline-track::-webkit-scrollbar {
  display: none;
}

/* Cards */
.timeline-card {
  min-width: 260px;
  scroll-snap-align: start;

  background: var(--bg-surface);
  border-radius: 24px;
  padding: 28px;

  box-shadow: var(--card-shadow);
  transition:
    transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.5s ease;
}

/* Hover physics */
.timeline-card:hover {
  transform: translateY(-10px) scale(1.03);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.12);
}

/* Year */
.timeline-card .year {
  font-size: 12px;
  letter-spacing: 1px;
  opacity: 0.6;
}

/* Amount */
.timeline-card h4 {
  font-size: 22px;
  margin-top: 10px;
}

/* Text */
.timeline-card p {
  margin-top: 6px;
  color: var(--text-secondary);
}

/* Highlighted insight */
.timeline-card.highlight {
  background: linear-gradient(135deg,
      rgba(79, 124, 255, 0.18),
      var(--bg-surface));
}

/* Final glow */
.timeline-card.glow {
  position: relative;
}

.timeline-card.glow::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(120deg,
      transparent,
      rgba(255, 255, 255, 0.12),
      transparent);
  opacity: 0;
  transition: opacity 0.6s ease;
}

.timeline-card.glow:hover::after {
  opacity: 1;
}



.primary-btn {
  margin: 40px auto 0;
  padding: 18px 52px;

  border-radius: 999px;
  font-size: 1.05rem;
  font-weight: 900;
  letter-spacing: 0.3px;

  border: none;
  cursor: pointer;

  background: linear-gradient(135deg,
      #5f8cff,
      #c7f000);
  color: #0B0D12;

  box-shadow:
    0 26px 60px rgba(95, 140, 255, 0.45);

  transition:
    transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.3s ease;
}

.primary-btn:hover {
  transform: translateY(-3px);
}






/*------------------------------------------------------------------------------------------------------*/

/* =========================
   FIN-OS AUTH — FINAL POLISH
   ========================= */

/* Auth Panel */
/* Update this in components.css */
/* Update the Auth Box */
.auth-panel {
  width: 100%;
  background: var(--bg-surface) !important;
  border: 1px solid var(--border-soft);
  border-radius: 26px;
  padding: 30px;
  box-shadow: var(--card-shadow);
}

/* Fix Inputs */
/* =========================
   STYLISH INPUT FIELDS
   ========================= */

.auth-form input {
  width: 100%;
  /* Increased padding for a premium feel */
  padding: 16px 20px; 
  margin-bottom: 12px;
  
  /* Matches your cards and buttons */
  border-radius: 14px; 
  font-size: 0.95rem;
  font-family: 'Inter', sans-serif;

  /* Theme-aware background and borders */
  background: var(--bg-glass) !important;
  border: 1px solid var(--border-soft);
  color: var(--text-main);

  /* Smooth transition for focus states */
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Elegant Focus State */
.auth-form input:focus {
  outline: none;
  background: var(--bg-surface) !important;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 4px var(--glow-primary);
  transform: translateY(-1px);
}

/* Styled Placeholder */
.auth-form input::placeholder {
  color: var(--text-muted);
  opacity: 0.6;
}

/* Tabs */
.auth-toggle {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 20px;
}

.auth-tab {
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;

  border: 1px solid rgba(0, 0, 0, 0.08);
  background: transparent;
  color: #5E6475;

  cursor: pointer;
  transition: all 0.25s ease;
}

.auth-tab.active {
  background: linear-gradient(135deg,
      #7f9cff,
      #cde85a);
  color: #0B0D12;
  border-color: absolute;

  box-shadow:
    0 8px 20px rgba(95, 140, 255, 0.35);
}

/* Form */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Input field updates */
.auth-form input {
  background: var(--bg-glass) !important; 
  border: 1px solid var(--border-soft);
  color: var(--text-main);
}

/* Choice card updates */
.choice-card {
  background: var(--bg-surface) !important;
  border: 1px solid var(--border-soft);
  color: var(--text-main); /* Prevents text from disappearing */
}

/* Fix for the sub-text (small tags) */
.choice-card small, .login-sub {
  color: var(--text-muted);
}

.auth-form input:focus {
  outline: none;
  border-color: rgba(79, 124, 255, 0.6);
  background: #fff;
  box-shadow:
    0 0 0 4px rgba(79, 124, 255, 0.15);
}


.auth-form input::placeholder {
  color: var(--text-muted);
}

.auth-form input:focus {
  outline: none;
  border-color: #7aa2ff;
  box-shadow: 0 0 0 3px rgba(122, 162, 255, 0.15);
}

/* Email CTA */
.auth-action {
  margin-top: 10px;
  padding: 15px;

  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;

  border: none;
  cursor: pointer;

  background: linear-gradient(135deg,
      #7f9cff,
      #cde85a);
  color: #0B0D12;

  box-shadow:
    0 16px 36px rgba(95, 140, 255, 0.35);

  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.auth-action:hover {
  transform: translateY(-2px);
  box-shadow:
    0 22px 48px rgba(95, 140, 255, 0.45);
}


/* Divider */
.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 14px 0;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border-soft);
}

/* Google Button */
/* Google Button */
.google-btn {
  padding: 13px;
  border-radius: 999px;
  background: var(--bg-surface);
  border: 1px solid var(--border-soft);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-main);
  /* Ensure this variable is set correctly in root */
  background: var(--bg-surface);
  transition: all 0.2s ease;
  width: 100%;
  /* Ensure full width */
  margin-top: 10px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.google-btn:hover {
  border-color: var(--accent);
  background: var(--bg-main);
  transform: translateY(-1px);
}

/* Fixed Theme Button (For Login/Standalone Pages) */
.fixed-theme-btn {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  z-index: 100;

  width: 40px;
  height: 40px;
  border-radius: 50%;

  background: var(--bg-surface);
  border: 1px solid var(--border-soft);
  color: var(--text-main);

  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;

  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.fixed-theme-btn:hover {
  transform: scale(1.1);
  border-color: var(--accent);
}

/* FINAL DECISION CTA */
.primary-btn {
  margin: 36px 0 0;
  padding: 16px 46px;
  border-radius: 999px;
  font-size: 1.05rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  background: linear-gradient(135deg,
      #7f9cff,
      #cde85a);
  color: #0b0d12;
  box-shadow: 0 20px 48px rgba(95, 140, 255, 0.35);
}



/* =========================
   SIGN-UP SPECIFIC STYLES
   ========================= */

/* Use the same stylish input class we created for login */
.auth-form input {
  width: 100%;
  padding: 16px 20px; 
  margin-bottom: 12px;
  border-radius: 14px; 
  font-size: 0.95rem;
  background: var(--bg-glass) !important; /* Frosted glass effect */
  border: 1px solid var(--border-soft);
  color: var(--text-main);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Ensure forms are hidden/shown as flexible columns */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Password strength bar styling */
.password-strength {
  height: 6px;
  width: 100%;
  background: var(--border-soft);
  border-radius: 10px;
  margin-top: -6px;
  margin-bottom: 16px;
  overflow: hidden;
}

.password-strength-fill {
  height: 100%;
  width: 0%; /* Start at zero */
  background: var(--accent-secondary);
  transition: width 0.3s ease;
}













/* =========================
   LOGIN PAGE THEME BUTTON
   ========================= */

.login-theme-btn {
  position: fixed;
  top: 20px;
  right: 20px;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid var(--border-soft);
  background: var(--bg-surface);
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12);
  z-index: 50;
}

.login-theme-btn span {
  position: absolute;
  font-size: 1.05rem;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

/* Icon visibility */
html[data-theme="light"] .login-theme-btn .icon-sun {
  opacity: 1;
  transform: scale(1);
}

html[data-theme="light"] .login-theme-btn .icon-moon {
  opacity: 0;
  transform: scale(0.6);
}

html[data-theme="dark"] .login-theme-btn .icon-sun {
  opacity: 0;
  transform: scale(0.6);
}

html[data-theme="dark"] .login-theme-btn .icon-moon {
  opacity: 1;
  transform: scale(1);
}

.theme-btn,
.login-theme-btn,
.finos-logo {
  pointer-events: auto;
}




/* --- FOOTER BUTTON OPTIMIZATION --- */
.footer-forensic-zone {
    padding: 20px;
    display: flex;
    justify-content: center;
    border-top: 1px solid var(--border-glass); /* Adaptive border */
}

.footer-audit-btn {
    position: relative;
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 24px;
    background: var(--bg-primary); /* Adaptive background */
    border: 1px solid var(--neon-lime); /* Adaptive theme color */
    color: var(--text-primary); /* Adaptive text color */
    text-decoration: none;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    letter-spacing: 1px;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    overflow: hidden;
    /* Angled forensic corners */
    clip-path: polygon(5% 0, 100% 0, 100% 75%, 95% 100%, 0 100%, 0 25%);
}

.btn-tag {
    color: var(--neon-lime);
    font-weight: 800;
    font-size: 0.65rem;
    border-right: 1px solid var(--border-glass);
    padding-right: 15px;
}

.btn-text {
    font-weight: 600;
}

/* Hover Energy Sweep */
.footer-audit-btn:hover {
    background: var(--neon-lime);
    color: #000 !important; /* High contrast flip on hover */
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(199, 240, 0, 0.3);
}

.btn-energy-glid {
    position: absolute;
    top: 0; left: -100%; width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(199, 240, 0, 0.2), transparent);
    transition: left 0.6s ease;
}

.footer-audit-btn:hover .btn-energy-glid {
    left: 100%;
}