/* budget_v2.css — Jadoo Light Theme for Budget Intelligence */

/* ── Page Base ── */
.budget-page {
  background-color: #FAFAFB;
  min-height: 100vh;
  padding-top: 80px;
  font-family: 'Poppins', sans-serif;
}

/* ── Active dock item — highlighted pill (matches home.html) ── */
.dock-item.active {
  background-color: #fff;
  box-shadow: 0 5px 15px rgba(24, 30, 75, 0.10);
  border-color: rgba(255, 255, 255, 1);
}

.dock-item.active .dock-icon i,
.dock-item.active .dock-icon svg {
  color: var(--clr-primary);
}

/* ── Scroll-nav: hidden by default, revealed on scroll ── */
#scroll-nav {
  display: flex;
  opacity: 0;
  pointer-events: none;
}

#scroll-nav.nav-visible {
  opacity: 1;
  pointer-events: all;
}

/* ── Landing-page cream blob background ── */
.budget-hero-blob {
  position: absolute;
  top: 0;
  right: 0;
  width: 705px;
  height: 814px;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 705 814' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M705 0H0C0 0 54.4983 147.16 186.294 205.82C318.09 264.479 285.344 433.003 338.401 534.821C391.458 636.639 494.619 655.772 543.684 723.111C592.748 790.451 705 814 705 814V0Z' fill='%23FFF1DA'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: top right;
  background-size: cover;
  z-index: 0;
  pointer-events: none;
}

/* ── Header base — clean when dock is showing ── */
header#site-header.header {
  background: rgba(250, 250, 251, 0.85) !important;
  backdrop-filter: blur(16px) saturate(140%) !important;
  -webkit-backdrop-filter: blur(16px) saturate(140%) !important;
  border-bottom: 1px solid rgba(24, 30, 75, 0.05) !important;
  box-shadow: none !important;
  transition: background 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease !important;
}

/* No accent line when dock navbar is active (top of page) */
header#site-header.header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg,
      transparent 0%,
      rgba(223, 105, 81, 0.5) 20%,
      rgba(65, 82, 203, 0.6) 50%,
      rgba(30, 181, 137, 0.5) 80%,
      transparent 100%);
  opacity: 0;
  transform: scaleX(0.6);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

/* ── Scrolled state — premium frosted glass + gradient accent ── */
header#site-header.header.scrolled {
  background: rgba(255, 255, 255, 0.96) !important;
  backdrop-filter: blur(28px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(28px) saturate(180%) !important;
  border-bottom: none !important;
  box-shadow:
    0 4px 6px -1px rgba(0, 0, 0, 0.04),
    0 12px 40px rgba(24, 30, 75, 0.08) !important;
}

/* Gradient accent only when scroll-nav is visible */
header#site-header.header.scrolled::after {
  opacity: 1;
  transform: scaleX(1);
}

.budget-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Hero Header ── */
.budget-hero {
  padding: 0px 0 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

.budget-hero-text {
  width: 100%;
  max-width: 420px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(30, 181, 137, 0.1);
  color: #1EB589;
  border: 1px solid rgba(30, 181, 137, 0.2);
  padding: 8px 18px;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.budget-hero-text h1 {
  font-family: 'Volkhov', serif;
  font-size: clamp(2rem, 5vw, 3.25rem);
  color: #181E4B;
  line-height: 1.15;
  margin-bottom: 16px;
}

.budget-hero-text h1 span {
  color: #DF6951;
}

.budget-hero-text p {
  color: #5E6282;
  font-size: 18px;
  line-height: 1.6;
  max-width: 440px;
}

.budget-hero-visual {
  flex: 0 0 auto;
}

.budget-hero-visual img {
  width: 100%;
  max-width: 340px;
  border-radius: 30px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.08);
  transition: transform 0.4s ease;
  object-fit: cover;
}

.budget-hero-visual img:hover {
  transform: scale(1.03) rotate(-1deg);
}

/* ── Trip Selector Banner ── */
.trip-selector-banner {
  background: #fff;
  border: 1px solid #E5E7EB;
  border-radius: 20px;
  padding: 20px 25px;
  margin-bottom: 40px;
  display: flex;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
}

.trip-selector-banner i {
  color: #4152CB;
  font-size: 18px;
}

.trip-selector-banner span {
  color: #5E6282;
  flex: 1;
  font-size: 15px;
}

.trip-selector-banner select {
  max-width: 280px;
  padding: 10px 16px;
  border-radius: 12px;
  border: 1px solid #E5E7EB;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  color: #181E4B;
  background: #FAFAFB;
  outline: none;
}

.trip-selector-banner select:focus {
  border-color: #DF6951;
  box-shadow: 0 0 0 4px rgba(223, 105, 81, 0.1);
}

.trip-selector-banner .load-btn {
  background: #DF6951;
  color: #fff;
  border: none;
  padding: 10px 24px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 14px;
  font-family: 'Poppins', sans-serif;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s;
  box-shadow: 0 5px 15px rgba(223, 105, 81, 0.2);
}

.trip-selector-banner .load-btn:hover {
  background: #c95540;
  transform: translateY(-2px);
}

/* ── Grid Layout ── */
.budget-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-bottom: 30px;
}

.budget-grid .full-width {
  grid-column: 1 / -1;
}

/* ── Cards ── */
.b-card {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(20px);
  border-radius: 30px;
  padding: 35px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.04), inset 0 0 0 1px rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.3);
  position: relative;
  overflow: hidden;
}

.b-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(223, 105, 81, 0.04) 0%, transparent 70%);
  border-radius: 50%;
  transform: translate(30%, -30%);
  pointer-events: none;
}

.b-card h3 {
  font-family: 'Volkhov', serif;
  color: #181E4B;
  font-size: 22px;
  margin-bottom: 25px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.b-card h3 i {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

/* ── Budget Meter ── */
.budget-trip-info {
  margin-bottom: 20px;
}

.budget-trip-label {
  font-size: 11px;
  color: #8C92B1;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 4px;
}

.budget-trip-dest {
  font-size: 20px;
  font-weight: 700;
  color: #181E4B;
}

.budget-trip-dur {
  font-size: 13px;
  color: #8C92B1;
  margin-top: 2px;
}

.meter-amounts {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 10px;
}

.meter-spent-val {
  font-size: 36px;
  font-weight: 800;
  color: #DF6951;
  font-family: 'Volkhov', serif;
}

.meter-total-val {
  font-size: 15px;
  color: #8C92B1;
}

.progress-track {
  height: 10px;
  background: #F0F0F5;
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 10px;
}

.progress-fill {
  height: 100%;
  border-radius: 20px;
  background: linear-gradient(90deg, #1EB589, #DF6951);
  transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.meter-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: #8C92B1;
}

.meter-meta .remaining {
  font-weight: 700;
  color: #1EB589;
  font-size: 14px;
}

/* ── AI Advisor ── */
.ai-advisor-content {
  color: #181E4B;
  font-size: 15px;
  line-height: 1.8;
  min-height: 100px;
  background: linear-gradient(135deg, rgba(30, 181, 137, 0.1) 0%, rgba(30, 181, 137, 0.02) 100%);
  border-left: 4px solid #1EB589;
  padding: 20px;
  border-radius: 0 16px 16px 0;
  margin-top: 10px;
}

/* ── Log Expense Form ── */
.expense-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.expense-form label {
  font-size: 12px;
  font-weight: 700;
  color: #8C92B1;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
  display: block;
}

.expense-form select,
.expense-form input[type="number"],
.expense-form input[type="text"] {
  width: 100%;
  box-sizing: border-box;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid #E5E7EB;
  background: #FAFAFB;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  color: #181E4B;
  outline: none;
  transition: all 0.3s ease;
}

.expense-form select:focus,
.expense-form input:focus {
  border-color: #DF6951;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(223, 105, 81, 0.1);
}

.expense-form .submit-btn {
  background: #181E4B;
  color: #fff;
  border: none;
  padding: 16px;
  border-radius: 14px;
  font-weight: 600;
  font-size: 15px;
  font-family: 'Poppins', sans-serif;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.3s;
}

.expense-form .submit-btn:hover {
  background: #DF6951;
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(223, 105, 81, 0.3);
}

/* ── Chart Card ── */
.chart-container {
  position: relative;
  height: 300px;
}

/* ── Transactions ── */
.transactions-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
}

.transactions-header h3 {
  margin-bottom: 0;
}

.tx-count {
  font-size: 13px;
  color: #8C92B1;
  background: #FAFAFB;
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid #E5E7EB;
}

.expense-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.expense-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  border-radius: 16px;
  background: #FAFAFB;
  border: 1px solid #E5E7EB;
  transition: 0.3s;
}

.expense-item:hover {
  background: #fff;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.04);
}

.expense-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: rgba(223, 105, 81, 0.1);
  color: #DF6951;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.expense-info {
  flex: 1;
}

.expense-name {
  font-weight: 600;
  color: #181E4B;
  font-size: 15px;
}

.expense-cat {
  font-size: 12px;
  color: #8C92B1;
  margin-top: 2px;
}

.expense-amount {
  font-weight: 700;
  color: #DF6951;
  font-size: 17px;
}

.expense-empty {
  text-align: center;
  padding: 50px 20px;
  color: #8C92B1;
}

.expense-empty i {
  font-size: 3rem;
  opacity: 0.2;
  display: block;
  margin-bottom: 12px;
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .budget-grid {
    grid-template-columns: 1fr;
  }

  .budget-hero-text h1 {
    font-size: 36px;
  }

  .budget-hero-visual img {
    width: 100%;
  }

  .budget-stats-strip {
    grid-template-columns: 1fr 1fr;
  }

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

/* ── Ambient animated orbs (landing-page style) ── */
.budget-orb {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  animation: orb-float 14s ease-in-out infinite;
}

.budget-orb-1 {
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(223, 105, 81, 0.10) 0%, transparent 70%);
  top: -120px;
  right: -100px;
  animation-duration: 16s;
}

.budget-orb-2 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(65, 82, 203, 0.09) 0%, transparent 70%);
  bottom: 20%;
  left: -80px;
  animation-duration: 20s;
  animation-delay: -5s;
}

.budget-orb-3 {
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(30, 181, 137, 0.10) 0%, transparent 70%);
  bottom: 10%;
  right: 10%;
  animation-duration: 12s;
  animation-delay: -8s;
}

@keyframes orb-float {

  0%,
  100% {
    transform: translateY(0) scale(1);
  }

  50% {
    transform: translateY(-30px) scale(1.05);
  }
}

/* ── Plus dot decoration (from landing) ── */
.plus-decor-budget {
  position: absolute;
  opacity: 0.5;
  pointer-events: none;
  z-index: 0;
}

/* ── Stats strip (like landing page counters) ── */
.budget-stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.05), inset 0 0 0 1px rgba(24, 30, 75, 0.06);
  margin-bottom: 50px;
  overflow: hidden;
}

.budget-stat-item {
  padding: 32px 24px;
  text-align: center;
  border-right: 1px solid rgba(24, 30, 75, 0.06);
  transition: background 0.3s;
}

.budget-stat-item:last-child {
  border-right: none;
}

.budget-stat-item:hover {
  background: rgba(223, 105, 81, 0.03);
}

.budget-stat-num {
  font-family: 'Volkhov', serif;
  font-size: 36px;
  font-weight: 700;
  color: #181E4B;
  line-height: 1;
  margin-bottom: 6px;
}

.budget-stat-num span {
  color: #DF6951;
}

.budget-stat-label {
  font-size: 13px;
  color: #8C92B1;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.budget-stat-icon {
  font-size: 22px;
  margin-bottom: 10px;
  display: block;
}

/* ── Feature pills row (landing-page services style) ── */
.budget-features-section {
  margin: 60px 0 50px;
}

.budget-features-head {
  text-align: center;
  margin-bottom: 36px;
}

.budget-features-head h4 {
  font-size: 13px;
  font-weight: 700;
  color: #DF6951;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.budget-features-head h2 {
  font-family: 'Volkhov', serif;
  font-size: 30px;
  color: #181E4B;
}

.budget-features-head h2 span {
  color: #DF6951;
}

.budget-features-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.budget-feature-card {
  background: #fff;
  border-radius: 20px;
  padding: 28px 24px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(24, 30, 75, 0.06);
  display: flex;
  align-items: flex-start;
  gap: 16px;
  transition: transform 0.3s, box-shadow 0.3s;
}

.budget-feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
}

.budget-feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.budget-feature-card h3 {
  font-size: 16px;
  font-weight: 700;
  color: #181E4B;
  margin-bottom: 6px;
}

.budget-feature-card p {
  font-size: 13px;
  color: #5E6282;
  line-height: 1.6;
}

/* ── Section divider (wavy line from landing) ── */
.budget-section-divider {
  text-align: center;
  margin: 10px 0 40px;
  opacity: 0.4;
}

/* ── Floating AI chat (from home) ── */
.budget-chat-fab {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, #DF6951, #4152CB);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 22px;
  box-shadow: 0 10px 30px rgba(223, 105, 81, 0.35);
  cursor: pointer;
  z-index: 9999;
  text-decoration: none;
  transition: transform 0.3s, box-shadow 0.3s;
  animation: fab-pulse 3s ease-in-out infinite;
}

.budget-chat-fab:hover {
  transform: scale(1.1);
  box-shadow: 0 15px 40px rgba(223, 105, 81, 0.5);
  animation: none;
}

@keyframes fab-pulse {

  0%,
  100% {
    box-shadow: 0 10px 30px rgba(223, 105, 81, 0.35);
  }

  50% {
    box-shadow: 0 10px 50px rgba(65, 82, 203, 0.45);
  }
}

/* ── Entrance animations ── */
@keyframes slide-up {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.budget-hero {
  animation: slide-up 0.7s ease both;
}

.budget-stats-strip {
  animation: slide-up 0.7s 0.15s ease both;
}

.budget-features-section {
  animation: slide-up 0.7s 0.25s ease both;
}

.budget-grid {
  animation: slide-up 0.7s 0.35s ease both;
}

@media (max-width: 768px) {
  .budget-hero {
    flex-direction: column;
    text-align: center;
  }
  .budget-stats-strip {
    grid-template-columns: 1fr;
  }
  .meter-amounts {
    flex-direction: column;
    align-items: flex-start;
  }
  .b-card {
    padding: 20px;
  }
  .expense-item {
    flex-direction: column;
    align-items: flex-start;
  }
  .expense-amount {
    margin-top: 10px;
    align-self: flex-end;
  }
}